/* ── COMPONENTS – condivisi tra tutte le pagine ── */

/* ── NAVBAR ── */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 200;
  /* height: 0 → non occupa spazio nel flusso, l'hero parte esattamente
     da y=0 senza dipendere da altezze hardcoded */
  height: 0;
  overflow: visible;
  transition: transform 0.3s ease;
}
.navbar-wrapper.navbar--hidden {
  transform: translateY(calc(-1 * var(--navbar-height)));
}

/* Il background è su ::before per non influenzare l'altezza del wrapper */
.navbar-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Copre l'altezza visiva della navbar (padding 24px × 2 + logo 48px) */
  height: var(--navbar-height);
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  pointer-events: none;
  z-index: -1; /* dietro al contenuto navbar, davanti all'hero */
}

/* Stato scrolled: sfondo bianco pieno + ombra leggera */
.navbar-wrapper.navbar--scrolled::before {
  background: #fff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-m);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar__logo { width: 48px; height: 48px; flex-shrink: 0; }
.navbar__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.navbar__links {
  display: flex;
  gap: var(--sp-m);
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  /* Bianco su hero trasparente */
  color: #fff;
  white-space: nowrap;
  transition: color 0.35s ease;
}
/* Scuro dopo lo scroll */
.navbar--scrolled .navbar__links { color: var(--text-primary); }

.navbar__links a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.navbar__links a:hover { opacity: .75; }

.navbar__lang {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  /* Bordo bianco su hero trasparente */
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-s);
  padding: var(--sp-s);
  color: var(--text-on-dark-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.35s ease, color 0.35s ease;
}
/* Bordo scuro dopo lo scroll */
.navbar--scrolled .navbar__lang {
  border-color: var(--border);
  color: var(--text-primary);
}
.navbar__lang img { width: 24px; height: 24px; }

/* ── LANGUAGE DROPDOWN ── */
.navbar__lang {
  position: relative;
  user-select: none;
}
.lang-chevron {
  transition: transform 0.2s ease, filter 0.35s ease;
  /* Bianco su sfondo trasparente (hero) */
  filter: brightness(0) invert(1);
}
/* Scuro dopo lo scroll */
.navbar--scrolled .lang-chevron {
  filter: none;
}
.navbar__lang.open .lang-chevron {
  transform: rotate(180deg);
}
.navbar__lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Nascosto di default */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}
.navbar__lang.open .navbar__lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  width: 100%;
  padding: 8px var(--sp-s);
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  white-space: nowrap;
  transition: background 0.15s;
}
.lang-option:hover { background: var(--bg); }
.lang-option.active { color: var(--brand); }

/* ── HERO – stili condivisi ── */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-m);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero__title {
  font-family: var(--font-label);
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  color: #fff;
  max-width: 800px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  margin-top: var(--sp-m);
  transition: background .2s;
}
.btn-outline:hover { background: var(--bg); }

/* ── FOOTER ── */
.footer {
  background: var(--surface-inverse);
  padding: var(--sp-xl) 80px;
  display: flex;
  gap: var(--sp-l);
}
.footer-col { flex: 1; min-width: 0; }
.footer-brand-name {
  font-family: var(--font-label);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-on-dark-primary);
  line-height: 42px;
}
.footer-brand-desc {
  font-size: 16px;
  color: var(--text-on-dark-secondary);
  line-height: 24px;
  margin-top: 4px;
  margin-bottom: var(--sp-s);
}
.footer-info-label {
  font-size: 14px;
  font-weight: 600;
  color: #7d706c;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 20px;
}
.footer-info-value {
  font-size: 16px;
  color: var(--text-on-dark-secondary);
  line-height: 24px;
  margin-bottom: var(--sp-s);
}
.footer-legal-title,
.footer-booking-title {
  font-size: 14px;
  font-weight: 600;
  color: #7d706c;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--sp-s);
}
.booking-link {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-s);
  padding: var(--sp-s);
  margin-bottom: 4px;
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: background .2s;
}
.booking-link:hover { background: rgba(255, 255, 255, .05); }
.booking-link .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.booking-link span.label { flex: 1; }
/* Freccia: colore #cbc4c1 (--text-on-dark-secondary), uguale al testo del link */
.booking-link img.arrow {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1) brightness(0.8);
}
.dot-airbnb  { background: #ff5a5f; }
.dot-booking { background: #003580; }
.dot-vrbo    { background: #1b4ec8; }
.dot-direct  { background: var(--brand); }
