:root {
  --tenant-sst-blue: #3f84b8;
  --tenant-sst-blue-dark: #2f6ea1;
  --tenant-sst-orange: #ff9900;
  --tenant-sst-orange-dark: #d7881f;
  --tenant-sst-surface: #ecf2f9;
  --tenant-sst-dark: #020910;
  --tenant-sst-white: #ffffff;
  --tenant-sst-text: #2b2f33;
  --tenant-sst-text-muted: #708396;
}

.text--tenant-blue {
  color: var(--tenant-sst-blue) !important;
}

.text--tenant-orange {
  color: var(--tenant-sst-orange) !important;
}

.bg--tenant-surface {
  background-color: var(--tenant-sst-surface) !important;
}

.bg--tenant-blue {
  background-color: var(--tenant-sst-blue) !important;
}

.bg--tenant-dark {
  background-color: var(--tenant-sst-dark) !important;
}

.hero-section--sst {
  background: var(--tenant-sst-surface);
  padding-top: 0;
  padding-bottom: 0;
}

.hero-section__visual {
  min-height: 70vh;
}

.hero-section__overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-section--sst .container-lg,
.hero-section--sst .search-form,
.hero-section--sst .hero-section__mobile-search-wrap {
  position: relative;
  z-index: 2;
}

.hero-section__content {
  position: absolute !important;
  inset: 0;
  z-index: 2;
}

.hero-section--sst .hero-section__image {
  z-index: 0;
  object-position: center center !important;
}

.hero-section__clip {
  bottom: -1px;
  height: 120px;
  background: var(--tenant-sst-surface);
  clip-path: polygon(0 42%, 100% 100%, 100% 100%, 0 100%);
  z-index: 3;
}

.hero-section__title {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-section__search-shell {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.hero-section__search-shell .form-control,
.hero-section__search-shell .form-select {
  min-height: 44px;
}

.hero-section__mobile-search-wrap {
  max-width: 320px;
}

.hero-section__down-btn {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  color: #fff;
  background: var(--tenant-sst-blue);
  border: 3px solid var(--tenant-sst-white);
  z-index: 3;
}

.hero-section__down-btn:hover,
.hero-section__down-btn:focus {
  color: var(--tenant-sst-white);
  background: var(--tenant-sst-blue-dark);
}

.hero-section__intro-wrap {
  background: var(--tenant-sst-surface);
  margin-top: 0;
  padding: 2rem 0 2.4rem;
}

.hero-section__headline-bottom {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  color: var(--tenant-sst-orange);
}

.hero-section__subtitle {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--tenant-sst-text);
}

.hero-section__intro {
  color: var(--tenant-sst-text);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Override puntuale rispetto a escursi.css solo per hero SST */
.hero-section--sst .escursi-btn-primary {
  --bs-btn-bg: var(--tenant-sst-blue);
  --bs-btn-border-color: var(--tenant-sst-blue);
  --bs-btn-hover-bg: var(--tenant-sst-blue-dark);
  --bs-btn-hover-border-color: var(--tenant-sst-blue-dark);
  --bs-btn-active-bg: var(--tenant-sst-blue-dark);
  --bs-btn-active-border-color: var(--tenant-sst-blue-dark);
  --bs-btn-focus-shadow-rgb: 63, 132, 184;
}

.hero-section__search-btn {
  min-height: 44px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-section--sst .form-control:focus,
.hero-section--sst .form-select:focus {
  border-color: #9dc0da !important;
  box-shadow: 0 0 0 0.12rem rgba(63, 132, 184, 0.22) !important;
}

.home-itineraries-wrap h2 {
  margin-top: 0 !important;
}

.home-section-title {
  color: var(--tenant-sst-orange);
  text-transform: uppercase !important;
  text-align: center;
}

.home-section-subtitle {
  text-align: center;
}

.home-itineraries-wrap .home-section-subtitle {
  color: var(--tenant-sst-text-muted);
}

.home-about-wrap .home-section-subtitle,
.home-about-wrap .home-about-text,
.bg--tenant-surface .home-section-subtitle {
  color: var(--tenant-sst-text-muted);
}

.home-departure-wrap .home-section-subtitle {
  color: var(--tenant-sst-text-muted);
}

.home-itineraries-wrap .product-carousel-container .swiper-button-next,
.home-itineraries-wrap .product-carousel-container .swiper-button-prev {
  background: var(--tenant-sst-blue) !important;
}

.home-itineraries-wrap .location-thumbnail h3,
.home-itineraries-wrap .category-thumbnail h3,
.home-itineraries-wrap .offer-thumbnail h3 {
  color: var(--tenant-sst-white);
}

.home-departure-wrap .location-thumbnail h3,
.home-departure-wrap .category-thumbnail h3,
.home-departure-wrap .offer-thumbnail h3 {
  color: var(--tenant-sst-white);
}

.home-about-text {
  max-width: 72ch;
  color: var(--tenant-sst-text);
}

.home-about-wrap .escursi-btn-primary,
.home-itineraries-wrap .escursi-btn-primary,
.home-departure-wrap .escursi-btn-primary {
  --bs-btn-bg: var(--tenant-sst-blue);
  --bs-btn-border-color: var(--tenant-sst-blue);
  --bs-btn-hover-bg: var(--tenant-sst-blue-dark);
  --bs-btn-hover-border-color: var(--tenant-sst-blue-dark);
  --bs-btn-active-bg: var(--tenant-sst-blue-dark);
  --bs-btn-active-border-color: var(--tenant-sst-blue-dark);
}

footer {
  background-color: var(--tenant-sst-blue) !important;
  color: var(--tenant-sst-white) !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer span,
footer small,
footer li,
footer a {
  color: var(--tenant-sst-white) !important;
}

@media (max-width: 991px) {
  .hero-section__visual {
    min-height: 62vh;
  }

  .hero-section__clip {
    height: 90px;
  }
}

@media (max-width: 767px) {
  .hero-section__visual {
    min-height: 58vh;
  }

  .hero-section--sst .hero-section__image {
    object-position: center center !important;
  }

  .hero-section__title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    max-width: 24ch;
  }

  .hero-section__clip {
    height: 68px;
  }

  .hero-section__down-btn {
    width: 42px;
    height: 42px;
    bottom: 16px;
  }

  .hero-section__intro-wrap {
    padding-top: 1.4rem;
  }
}
