/* ═══════════════════════════════════════════════════════
   DOLCE VITA GUEST HOUSE — style.css
   Design System unico per tutto il sito (7 pagine).
   Estetica: editoriale-naturale, rivista slow travel.

   STRUTTURA DEL FILE:
     · Variabili CSS (palette, font, layout)
     · Reset & base
     · Navigazione (desktop + mobile burger)
     · Bottoni
     · Hero (homepage)
     · Pillole servizi
     · Sezioni generali + layout editoriale alternato
     · Mosaico foto
     · Card servizi
     · CTA prenotazione
     · Footer
     · Animazioni (fadeUp, reveal, scrollDrop)
     · Menu mobile (overlay + pannello laterale)
     · Responsive (960px e 640px)
     · Nuovi componenti v5 (page hero, features, contact)
     · Social (icone footer + card contatti)

   Font caricati via Google Fonts:
     · Cormorant Garamond — titoli e display
     · DM Sans — testo corrente e UI
═══════════════════════════════════════════════════════ */

:root {
  /* Palette — verde bosco, sabbia, creme */
  --forest:   #2c4a3e;
  --forest2:  #1e3329;
  --sage:     #5a7a6a;
  --sand:     #c8b89a;
  --sand-lt:  #e8ddd0;
  --cream:    #faf7f2;
  --warm-wt:  #f3ede4;
  --text:     #1a1a18;
  --muted:    #6b6b60;
  --line:     rgba(44,74,62,.12);

  /* Alias di sistema */
  --bg:       #ffffff;
  --soft:     var(--cream);
  --accent:   var(--forest);
  --accent2:  var(--forest2);

  /* Tipografia */
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;

  /* Layout */
  --radius:   4px;
  --radius-lg:12px;
  --shadow:   0 2px 20px rgba(44,74,62,.10);
  --shadow-lg:0 8px 48px rgba(44,74,62,.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Contenitore ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════
   NAVIGAZIONE
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  transition: padding .35s;
}
.nav.scrolled .nav-inner { padding: 14px 0; }

/* Brand / Logo */
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-dark  { height: 38px; width: auto; opacity: 0; transition: opacity .3s; }
.brand .logo-white { height: 38px; width: auto; opacity: 1; transition: opacity .3s; position: absolute; }
.nav.scrolled .logo-dark  { opacity: 1; }
.nav.scrolled .logo-white { opacity: 0; }

/* Menu desktop */
.menu { display: flex; gap: 4px; font-size: .88rem; letter-spacing: .01em; }
.menu a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  transition: background .2s, color .2s;
}
.menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav.scrolled .menu a { color: var(--text); }
.nav.scrolled .menu a:hover { background: var(--cream); }

/* Bottoni nav */
.cta { display: flex; gap: 10px; align-items: center; }

/* ══════════════════════════════
   BOTTONI
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.btn.primary:hover { background: var(--forest2); border-color: var(--forest2); }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn.ghost:hover { background: var(--cream); border-color: var(--sand); }
.btn.outline-white {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn.outline-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn.large { padding: 14px 30px; font-size: .92rem; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
/* inset: -20% espande l'immagine oltre i bordi del contenitore
   in alto e in basso, lasciando spazio al parallax JS
   senza mostrare bordi bianchi durante lo scroll.
   will-change: prepara il browser a usare la GPU per transform,
   rendendo l'animazione parallax più fluida.           */
.hero-media {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroScale 8s ease-out forwards;
}
@keyframes heroScale { to { transform: scale(1); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,35,28,.15) 0%,
    rgba(20,35,28,.35) 45%,
    rgba(20,35,28,.94) 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 80px 0 100px;
  animation: fadeUp .9s .2s both;
}
.hero-location {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--sand-lt); }
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 46ch;
  line-height: 1.6;
  opacity: .88;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Indicatore scroll */
.hero-scroll {
  position: absolute;
  bottom: 32px; right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: fadeUp 1s .8s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 50%;
  background: rgba(255,255,255,.8);
  animation: scrollDrop 1.6s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ══════════════════════════════
   PILLOLE SERVIZI
══════════════════════════════ */
.pills-bar {
  background: var(--forest);
  padding: 18px 0;
}
.pills-row {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-right: 1px solid rgba(255,255,255,.12);
}
.pill:last-child { border-right: none; }
.pill-icon { font-size: 1rem; }

/* ══════════════════════════════
   SEZIONI GENERALI
══════════════════════════════ */
.section { padding: 96px 0; }
.section.soft { background: var(--cream); }

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .8rem;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.section-heading em { font-style: italic; color: var(--sage); }
.section-body {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 52ch;
  text-align: justify;
  hyphens: auto;
}
.section-intro { margin-bottom: 3rem; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2rem; }

/* ══════════════════════════════
   LAYOUT EDITORIALE (alternato)
══════════════════════════════ */
.editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Trucco direction:rtl per invertire l'ordine visivo
   delle colonne senza cambiare il markup HTML.
   I figli ripristinano direction:ltr per non
   ereditare l'inversione nel testo.                  */
.editorial-inner.reverse { direction: rtl; }
.editorial-inner.reverse > * { direction: ltr; }

.editorial-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.editorial-image img {
  width: 100%; height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .6s ease;
}
.editorial-image:hover img { transform: scale(1.03); }
.editorial-image-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--forest);
  color: #fff;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

/* ══════════════════════════════
   MOSAICO FOTO
══════════════════════════════ */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  grid-template-rows: 340px;
  gap: 6px;
  height: 340px;
}
.mosaic-item { overflow: hidden; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.mosaic-section { padding: 0; }

/* ══════════════════════════════
   SERVIZI — card orizzontali
══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background .2s;
  cursor: pointer;
}
.service-card:hover { background: var(--cream); }
.service-img { overflow: hidden; }
.service-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.service-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
}
.service-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}
.service-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.service-link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: .04em;
  margin-top: 8px;
}

/* ══════════════════════════════
   ESPERIENZE — griglia editoriale
══════════════════════════════ */
.exp-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 6px;
}
.exp-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
}
.exp-card.large { grid-row: span 2; }
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.exp-card:hover img { transform: scale(1.06); }
.exp-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,35,28,.72) 0%, transparent 55%);
}
.exp-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 1;
  color: #fff;
}
.exp-tag {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .4rem;
}
.exp-card-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}
.exp-card.large .exp-card-body h3 { font-size: 1.9rem; }

/* ══════════════════════════════
   BUSINESS BANNER
══════════════════════════════ */
.business-banner {
  background: var(--forest);
  padding: 72px 0;
  overflow: hidden;
}
.business-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.business-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.business-img img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); }

/* ══════════════════════════════
   CTA PRENOTAZIONE
══════════════════════════════ */
.cta-section {
  padding: 80px 0;
  background: var(--warm-wt);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  margin-bottom: .5rem;
}
.cta-sub { color: var(--muted); max-width: 44ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ══════════════════════════════
   FOOTER
   Layout flex invece di grid: si adatta
   automaticamente a 4 o 5 colonne senza
   modificare il CSS al variare dei contenuti.
══════════════════════════════ */
.footer {
  background: var(--forest2);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
/* La colonna brand è fissa e più larga delle altre */
.footer-brand   { flex: 0 0 200px; }
/* Le colonne link si espandono equamente */
.footer-links   { flex: 1 0 120px; }
/* La colonna contatti ha un minimo leggermente più ampio */
.footer-contact { flex: 1.2 0 180px; }
.footer-brand .footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-top: .5rem;
}
.footer-col-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.footer-contact a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.footer-legal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-nav a {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer-legal-nav a:hover { color: rgba(255,255,255,.65); }

/* ══════════════════════════════
   ANIMAZIONI REVEAL
   Gli elementi .reveal e .reveal-right partono
   nascosti (opacity:0). Il JS in main.js aggiunge
   la classe .visible quando entrano nel viewport,
   attivando la transizione CSS qui definita.
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal       { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   MENU MOBILE
══════════════════════════════ */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  cursor: pointer; gap: 5px; padding: 0;
  transition: background .2s, border-color .2s;
}
.nav.scrolled .burger {
  background: var(--cream);
  border-color: var(--line);
}
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s, background .3s;
}
.nav.scrolled .burger span { background: var(--text); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,35,28,.6);
  z-index: 99; opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

#mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(300px, 85vw);
  background: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -12px 0 48px rgba(20,35,28,.2);
}
#mobile-menu.open { transform: translateX(0); }
.menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.menu-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--forest);
}
.menu-close {
  background: none; border: 1px solid var(--line);
  border-radius: 999px; width: 34px; height: 34px;
  cursor: pointer; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
#mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
#mobile-menu nav a {
  display: block; padding: 11px 14px;
  border-radius: 8px;
  font-size: .95rem; font-weight: 500;
  color: var(--text); border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
#mobile-menu nav a:hover { background: var(--cream); border-color: var(--line); }
.menu-footer {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.menu-phone { font-size: .82rem; color: var(--muted); text-align: center; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .editorial-inner { grid-template-columns: 1fr; gap: 36px; }
  .editorial-inner.reverse { direction: ltr; }
  .editorial-inner.reverse .editorial-image { order: -1; }
  .editorial-image img { height: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .exp-card { height: 240px; }
  .exp-card.large { grid-row: span 1; }
  .business-inner { grid-template-columns: 1fr; }
  .business-img { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-brand { flex: 0 0 100%; }
  .mosaic { grid-template-columns: 1fr 1fr; height: auto; grid-template-rows: 180px 180px; }
  .mosaic-item.tall { display: none; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .burger { display: flex; }
  .mobile-overlay { display: block; }
  .cta .btn.primary { display: none; }
  .pills-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 8px;
    /* Nasconde la scrollbar mantenendo la funzionalità di scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pills-row::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; }
  /* Footer: tutte le colonne a larghezza piena su mobile */
  .footer-top { gap: 28px; }
  .footer-brand, .footer-links, .footer-contact { flex: 0 0 100%; }
  /* Footer-bottom: copyright e legal si impilano centrati */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal-nav { justify-content: center; }
  /* Testo giustificato: su mobile colonne troppo strette → torna a sinistra */
  .section-body { text-align: left; hyphens: none; }
  /* Hero: azzera l'inset su mobile — il margine extra per il parallax
     causa uno zoom eccessivo su schermi piccoli */
  .hero-media, .page-hero-media { inset: 0; }
  /* Hero homepage: riduce il padding inferiore su mobile */
  .hero-content { padding: 60px 0 72px; }
  .hero-title { font-size: 2.8rem; }
}

/* ══════════════════════════════
   NUOVI COMPONENTI v5
   Page Hero, Narrative, Features, Contact
══════════════════════════════ */

/* Badge / inline */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 2px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--forest);
}
.features-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Page Hero — per pagine interne */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero-short {
  min-height: 42vh;
}
.page-hero-media {
  position: absolute;
  inset: -25% 0;
  will-change: transform;
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,35,28,.15) 0%,
    rgba(20,35,28,.35) 45%,
    rgba(20,35,28,.94) 100%
  );
}
.page-hero-content {
  position: relative;
  width: 100%;
  padding: 60px 0 72px;
  animation: fadeUp .7s .1s both;
}

/* Two-column narrative (Chi siamo) */
.two-col-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.narrative-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.narrative-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.narrative-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .8rem;
}
.narrative-col p {
  color: var(--muted);
  line-height: 1.75;
}

/* Features row — 4 icon-items */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-item {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: .8rem;
}
.feature-item h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.feature-item p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* Breakfast gallery — 3×3 */
.breakfast-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.breakfast-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.breakfast-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.breakfast-item:hover img { transform: scale(1.05); }

/* Rooms gallery — griglia 3×3 (9 foto) */
.rooms-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px 280px;
  gap: 8px;
}
.room-item { overflow: hidden; border-radius: var(--radius); }
.room-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-item:hover img { transform: scale(1.04); }

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-card {
  background: var(--cream);
  border: 1px solid var(--sand-lt);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.contact-value {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
a.contact-value { transition: color .2s; }
a.contact-value:hover { color: var(--forest); }

/* Distances list */
.distances-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.distance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: .9rem;
}
.distance-label { color: var(--text); font-weight: 500; }
.distance-value { color: var(--sage); font-size: .85rem; }

/* Address block */
.address-block {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ══════════════════════════════
   SOCIAL
   Due componenti distinti:
   · .footer-social-icons + .social-icon-link
     → icone circolari nel footer (tutte le pagine)
   · .social-cards + .social-card
     → card cliccabili nella pagina Contatti
══════════════════════════════ */
.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: .6rem;
}
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.55);
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.social-icon-link:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  transform: none;
}

.social-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 680px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: background .2s, border-color .2s, transform .2s;
}
.social-card:hover {
  background: var(--cream);
  border-color: var(--sand);
  transform: translateY(-2px);
}
.social-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-card-icon.facebook { background: #1877f2; color: #fff; }
.social-card-icon.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.social-card-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  display: block;
}
.social-card-handle {
  font-size: .82rem;
  color: var(--muted);
  display: block;
  margin-top: .15rem;
}
.social-card-arrow {
  margin-left: auto;
  color: var(--sage);
  font-size: .9rem;
  transition: transform .2s;
}
.social-card:hover .social-card-arrow { transform: translateX(3px); }

/* ══════════════════════════════
   LIGHTBOX
   Overlay a schermo intero per ingrandire le foto delle gallery.
   Attivato via JS (main.js) su .room-item e .breakfast-item.
══════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,15,10,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  animation: lbFadeIn .2s ease;
}
#lightbox[hidden] { display: none; }
#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 64px rgba(0,0,0,.6);
  animation: lbScale .2s ease;
  user-select: none;
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1;
}
#lightbox-close:hover { background: rgba(255,255,255,.25); }
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  z-index: 1;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,.25); }
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbScale {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
/* Mostra cursore zoom sulle immagini cliccabili */
.room-item, .breakfast-item { cursor: zoom-in; }
@media (max-width: 640px) {
  /* Su mobile le frecce sono più piccole e ai bordi */
  #lightbox { padding: 16px 56px; }
  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }
  #lightbox-prev,
  #lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ══════════════════════════════
   COOKIE BANNER
   Banner fisso in basso, visibile solo se l'utente
   non ha ancora espresso una preferenza sui cookie
   (gestito via JS con attributo hidden).
══════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--forest2);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  box-shadow: 0 -4px 32px rgba(0,0,0,.25);
}
#cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
}
.cookie-banner-text {
  flex: 1;
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  margin: 0;
}
.cookie-banner-text a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
/* Tablet: testo e bottoni su due righe se necessario */
@media (max-width: 860px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-actions { align-self: flex-end; }
}
/* Mobile: bottoni a piena larghezza */
@media (max-width: 600px) {
  .cookie-banner-inner { gap: 12px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ── Responsive nuovi componenti ── */
@media (max-width: 960px) {
  .two-col-narrative { grid-template-columns: 1fr; }
  .features-row { grid-template-columns: 1fr 1fr; }
  /* Rooms gallery tablet: mantiene 3 colonne, altezze auto */
  .rooms-gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .page-hero { min-height: 50vh; }
}
@media (max-width: 640px) {
  .features-row { grid-template-columns: 1fr; }
  /* Rooms gallery mobile: 2 colonne (evita 9 righe su schermo piccolo) */
  .rooms-gallery { grid-template-columns: 1fr 1fr; }
  .narrative-col { padding: 24px; }
  .distance-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .address-block { padding: 28px 20px; }
  .page-hero-content { padding: 40px 0 52px; }
  .social-cards { grid-template-columns: 1fr; }
  .breakfast-gallery { grid-template-columns: 1fr 1fr; }
  /* Mosaic: quando i tall vengono nascosti, la colonna rimasta
     deve occupare tutta la larghezza disponibile */
  .mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mosaic-col { grid-template-columns: 1fr 1fr; grid-template-rows: 180px; display: grid; }
}

/* ══════════════════════════════
   LANGUAGE SWITCHER (DROPDOWN)
   Dropdown desktop + responsive menu
══════════════════════════════ */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255,255,255,.75);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--sans);
}
.lang-toggle:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav.scrolled .lang-toggle {
  color: var(--muted);
}
.nav.scrolled .lang-toggle:hover {
  background: var(--cream);
  color: var(--text);
}
.lang-icon {
  transition: transform .2s;
  flex-shrink: 0;
}
.lang-dropdown.open .lang-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(44,74,62,.15);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  overflow: hidden;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  transition: background .15s, color .15s;
  border-bottom: 1px solid var(--line);
}
.lang-menu a:last-child {
  border-bottom: none;
}
.lang-menu a:hover {
  background: var(--cream);
  color: var(--forest);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .lang-toggle {
    padding: 6px 10px;
    font-size: .68rem;
  }
  .lang-menu {
    right: auto;
    left: -40px;
    min-width: 130px;
  }
}

/* Mobile menu language switcher (usato nel pannello) */
.lang-switcher-mobile {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.lang-switcher-mobile a,
.lang-switcher-mobile .lang-active {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background .2s, border-color .2s;
}
.lang-switcher-mobile a:hover { background: var(--cream); border-color: var(--sand); }
.lang-switcher-mobile .lang-active { background: var(--forest); color: #fff; border-color: var(--forest); }
