/* ============================================================
   VIAJAR — Hero Section
   ============================================================ */

.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--container-pad) var(--sp-24);
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: calc(var(--navbar-height) + var(--sp-16));
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,63,73,.85) 0%,
    rgba(8,63,73,.6) 40%,
    rgba(8,63,73,.4) 100%
  );
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  text-align: center;
  color: var(--white);
  padding-inline: var(--container-pad);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-5);
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.2s forwards;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.6;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.4s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  opacity: 0;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto var(--sp-10);
  animation: hero-fade-up 0.8s ease 0.6s forwards;
}

/* ── Search box ── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  animation: hero-fade-up 0.8s ease 0.8s forwards;
}

.search-box__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  text-align: left;
}

.search-box__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .search-box__fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .search-box__fields {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
    gap: var(--sp-3);
  }
}

.search-box__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.search-box__field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-box__input {
  position: relative;
}

.search-box__input input,
.search-box__input select {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.search-box__input input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.search-box__input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Allinea verticalmente l'ultimo field (bottone) con i field che hanno label */
.search-box__field:last-child {
  justify-content: flex-end;
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  overflow: hidden;
  border: 1px solid var(--border);
}

.autocomplete-item {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--black);
  transition: background var(--transition-fast);
}

.autocomplete-item:hover {
  background: var(--cream);
  color: var(--teal);
}

.autocomplete-item__icon {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-box__btn {
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* ── Hero stats ── */
.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(8,63,73,.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: center;
}

.hero__stats-inner {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid rgba(255,255,255,.08);
}

.hero__stat {
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  position: relative;
}

.hero__stat + .hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,.12);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Animations ── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

