/* ==========================================================
   Giulio Guida Matera — design system
   Palette "Murgia in fiore": lichene, calcare, verde salvia,
   giallo ferula, carbone. Firma visiva: l'arco della casa-grotta
   ========================================================== */
:root {
  --tufo: #F1F2E9;
  --tufo-deep: #E3E5D2;
  --pietra: #C6C4B0;
  --terra: #56684A;
  --terra-dark: #414F37;
  --oro: #DCAE36;
  --verde: #7C8F63;
  --bruno: #2E2C26;
  --bruno-soft: #47443C;
  --foot-text: #D7D5C7;
  --foot-dim: #C9C7B8;
  --white: #FCFCF7;
  --arch: 999px 999px 18px 18px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 44, 38, 0.12);
  --maxw: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  /* Scala di spaziatura coerente */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --gutter: 20px;          /* padding laterale del container, uniforme */
  --section-y: var(--s6);  /* padding verticale sezioni (desktop) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--tufo);
  color: var(--bruno);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terra); font-weight: 700; margin-bottom: 0.9rem;
}
.lead { font-size: 1.15rem; color: var(--bruno-soft); }

/* ============================================================
   HEADER + NAV + DRAWER  (riscrittura pulita)
   - header sticky con sfondo opaco (NIENTE backdrop-filter)
   - animazioni solo su transform/opacity
   ============================================================ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--tufo);
  border-bottom: 1px solid var(--tufo-deep);
}
header.site .container {
  display: flex; align-items: center; gap: 1.5rem; height: 76px; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand-full { height: 48px; width: auto; display: block; }
.brand-compact { display: none; }

/* --- nav desktop --- */
.nav-main { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-main > a, .nav-drop-btn {
  font: 600 0.97rem/1.4 var(--font-body); color: var(--bruno); text-decoration: none;
  padding: 0.3rem 0; border: 0; border-bottom: 2px solid transparent;
  background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-main > a:hover, .nav-main > a.active,
.nav-drop-btn:hover, .nav-drop.active .nav-drop-btn, .nav-drop.open .nav-drop-btn {
  color: var(--terra-dark); border-bottom-color: var(--terra);
}

/* dropdown "Tour" */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop-btn .caret { transition: transform 0.15s ease; }
.nav-drop.open .nav-drop-btn .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 210px; z-index: 60;
  padding: 6px; margin: 0; background: var(--white);
  border: 1px solid var(--tufo-deep); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(46, 44, 38, 0.14);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%); }
.nav-drop-menu a {
  display: block; padding: 10px 16px; border-radius: 8px; text-decoration: none;
  color: var(--bruno); font-weight: 600; font-size: 0.96rem; white-space: nowrap;
}
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible, .nav-drop-menu a.current {
  background: var(--tufo); color: var(--terra-dark);
}

/* --- strumenti a destra: lingua + Prenota (+ hamburger su mobile) --- */
.header-tools { display: flex; align-items: center; gap: 1.1rem; }
.header-book { padding: 0.6rem 1.4rem; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font: 600 0.97rem var(--font-body); color: var(--bruno);
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.35rem; border-radius: 8px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--terra-dark); }
.lang .lang-caret { font-size: 0.7em; transition: transform 0.15s ease; }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; padding: 6px; margin: 0;
  background: var(--white); border: 1px solid var(--tufo-deep); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(46, 44, 38, 0.14); min-width: 160px; z-index: 60;
}
.lang ul a { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--bruno); font-size: 0.95rem; }
.lang ul a:hover { background: var(--tufo); color: var(--terra-dark); }
.lang ul a.current { font-weight: 700; color: var(--terra); }

/* hamburger (solo mobile) */
.burger {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  color: var(--bruno); cursor: pointer; align-items: center; justify-content: center;
}
.burger svg { display: block; }

/* --- overlay + drawer (mobile) --- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(46, 44, 38, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease-out;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(85vw, 360px); background: var(--white);
  box-shadow: -16px 0 40px rgba(46, 44, 38, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); will-change: transform; visibility: hidden;
  transition: transform 0.2s ease-out;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-top {
  display: flex; align-items: center; justify-content: flex-end; flex: none;
  height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--tufo-deep);
}
.drawer-close {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--bruno);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-right: -10px;
}
.drawer-close svg { display: block; }
.drawer-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-nav > a {
  position: relative; font: 500 17px/1.3 var(--font-body); color: var(--bruno);
  text-decoration: none; padding: 16px 24px;
}
.drawer-nav > a.dn-tour { font-weight: 600; }   /* i tre tour più marcati */
/* separatori rientrati a sinistra; nessuno attorno alle etichette di gruppo */
.drawer-nav > a::after {
  content: ""; position: absolute; left: 24px; right: 0; bottom: 0; height: 1px; background: var(--tufo-deep);
}
.drawer-nav > a:has(+ .drawer-label)::after, .drawer-nav > a:last-child::after { display: none; }
.drawer-nav > a:active { background: var(--tufo-deep); }   /* pressed, nessuna transition */
.drawer-nav > a:hover, .drawer-nav > a.active { color: var(--terra); }
.drawer-nav > a.active { font-weight: 600; }
.drawer-label {
  font: 700 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bruno-soft); padding: 18px 24px 8px;
}
/* fondo ancorato: azioni rapide + Prenota, con safe-area iPhone */
.drawer-foot {
  flex: none; border-top: 1px solid var(--tufo-deep);
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
}
.drawer-actions { display: flex; gap: 12px; margin-bottom: 12px; }
.drawer-actions a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--terra); font: 600 15px var(--font-body); text-decoration: none;
  padding: 11px; border: 1px solid var(--tufo-deep); border-radius: 10px;
}
.drawer-actions a:active { background: var(--tufo-deep); }
.drawer-actions svg { fill: currentColor; }
.drawer-book { display: block; text-align: center; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: var(--terra-dark); }
.btn-ghost { border-color: var(--bruno); color: var(--bruno); background: transparent; }
.btn-ghost:hover { background: var(--bruno); color: var(--tufo); }
.btn-light { background: var(--white); color: var(--terra-dark); }

/* ---------- Hero ---------- */
.hero { padding: var(--section-y) 0; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s5); align-items: center; }
.hero p.lead { margin: var(--s3) 0 var(--s4); max-width: 34rem; }
.hero-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.arch-img { border-radius: var(--arch); box-shadow: var(--shadow); border: 6px solid var(--white); }
.hero-img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
.section-alt { background: var(--tufo-deep); }
.section-dark { background: var(--bruno); color: var(--tufo); }
.section-dark .eyebrow { color: var(--oro); }
.section-head { max-width: 44rem; margin-bottom: var(--s4); }
.section-head p { color: var(--bruno-soft); margin-top: var(--s2); }
.section-dark .section-head p { color: var(--foot-text); }
.section-dark .feature p { color: var(--bruno-soft); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }

.feature {
  background: var(--white); border-radius: var(--radius); padding: var(--s3);
  border-top: 4px solid var(--pietra);
}
.feature h3 { font-size: 1.08rem; margin-bottom: var(--s1); font-family: var(--font-body); font-weight: 700; color: var(--bruno); }
.feature p { font-size: 0.95rem; color: var(--bruno-soft); }
.feature .f-icon { width: 40px; height: 40px; margin-bottom: var(--s2); }
.feature .f-icon img { width: 40px; height: 40px; display: block; }
/* Icona orari: stesso linguaggio delle .f-icon, forma ad arco come il brand */
.sched-icon {
  width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px 999px 6px 6px; background: var(--tufo-deep); color: var(--terra);
  margin-bottom: var(--s2);
}
.sched-icon svg { width: 1.35rem; height: 1.35rem; }

/* ---------- Riga valutazione (stelle) ---------- */
.rating { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rating .stars { display: inline-flex; color: var(--oro); line-height: 0; }
.rating .stars svg { width: 20px; height: 20px; fill: currentColor; }
.rating .rating-link {
  font-size: 0.88rem; font-weight: 700; color: var(--terra-dark); text-decoration: none;
}
.rating .rating-link:hover { text-decoration: underline; }
.tour-card .rating { margin: 0.1rem 0 0.2rem; }

/* ---------- Tour cards ---------- */
.tour-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  text-decoration: none; color: var(--bruno);
  transition: transform 0.18s ease;
}
.tour-card:hover { transform: translateY(-5px); }
.tour-card .tc-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.tour-card .tc-body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.tour-card h3 { font-size: 1.35rem; }
.tour-card p { font-size: 0.95rem; color: var(--bruno-soft); flex: 1; margin: 0; }
.tc-meta { display: flex; justify-content: flex-end; align-items: baseline; border-top: 1px dashed var(--pietra); padding-top: var(--s2); margin-top: auto; }
.tc-link { font-weight: 700; color: var(--terra); }
.tour-card.t-sassi { border-top: 6px solid var(--pietra); }
.tour-card.t-murgia { border-top: 6px solid var(--verde); }
.tour-card.t-serale { border-top: 6px solid var(--oro); }

/* ---------- Lingue disponibili + prezzo per lingua (card + pagina tour) ---------- */
.tour-langs { display: flex; flex-direction: column; gap: 0.45rem; }
/* Bandiere pagina tour: SEMPRE in orizzontale (riga), su ogni browser/viewport */
.tour-langs .flags { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.tour-langs .flag { width: 30px; height: 22px; flex: none; object-fit: cover; border-radius: 4px; display: block; }
/* Bandiere nelle card della home: solo immagini, 32x24, gap 4px */
/* Bandiere card home: stesso comportamento orizzontale */
.card-flags { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.card-flags .cf { width: 32px; height: 24px; flex: none; object-fit: cover; border-radius: 4px; display: block; }
.tour-prices { font-size: 0.86rem; color: var(--bruno-soft); margin: 0; line-height: 1.5; }
.tour-prices .tp-label { font-weight: 700; color: var(--terra-dark); }
.tour-prices.wa-only { font-weight: 600; color: var(--terra-dark); }
.tour-hero .tour-langs { margin: var(--s2) 0 var(--s3); }
.tour-hero .tour-prices { font-size: 0.95rem; }

/* ---------- Tour page ---------- */
.tour-hero { padding: var(--section-y) 0; }
.tour-hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); align-items: start; }
.tour-facts { list-style: none; margin: var(--s3) 0; display: grid; gap: var(--s1); }
.tour-facts li { display: flex; gap: 0.6rem; font-size: 0.98rem; }
.tour-facts b { min-width: 9.5rem; color: var(--terra-dark); }

.itinerary { counter-reset: step; list-style: none; display: grid; gap: 0; max-width: 44rem; }
.itinerary li {
  counter-increment: step; position: relative; padding: 0 0 var(--s3) 3.4rem;
  border-left: 2px dashed var(--pietra); margin-left: 1.2rem;
}
.itinerary li:last-child { border-left-color: transparent; padding-bottom: 0; }
.itinerary li::before {
  content: counter(step);
  position: absolute; left: -1.25rem; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 999px 999px 8px 8px;
  background: var(--terra); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.itinerary h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.2rem; }
.itinerary p { font-size: 0.96rem; color: var(--bruno-soft); }

/* ---------- Booking box ---------- */
.booking {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s3); border-top: 6px solid var(--terra); position: sticky; top: 6rem;
  width: 100%; overflow: hidden;   /* il campo data non sfora dal box */
}
.booking h2 { font-size: 1.4rem; margin-bottom: var(--s2); }
.booking label { display: block; font-weight: 700; font-size: 0.88rem; margin: var(--s2) 0 var(--s1); }
/* Selettore lingua del tour (bandiere come immagini) */
.lang-pick { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lang-pick .lp {
  width: 44px; height: 34px; padding: 0; cursor: pointer;   /* area tap iOS minima */
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tufo); border: 2px solid transparent; border-radius: 6px;
  opacity: 0.7; transition: opacity 0.12s ease, border-color 0.12s ease;
}
.lang-pick .lp img { width: 32px; height: 24px; object-fit: cover; border-radius: 4px; display: block; }
.lang-pick .lp:hover { opacity: 1; }
.lang-pick .lp[aria-pressed="true"] { opacity: 1; border-color: var(--terra); }
.lang-pick .lp:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
/* Tre campi numerici affiancati */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
.bk-grid > div { min-width: 0; }   /* le 3 colonne possono restringersi senza sforare */
.bk-grid label { font-size: 0.78rem; margin: var(--s2) 0 var(--s1); }
.bk-grid input { text-align: center; padding: 12px 6px; }
.bk-amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
/* Nome + Cognome: affiancati su desktop, impilati su mobile */
.bk-name { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.bk-name > div { min-width: 0; }
@media (max-width: 560px) { .bk-name { grid-template-columns: 1fr; gap: 0; } }
/* Campi data e persone identici: stessa altezza, padding, bordo, sfondo, raggio */
.booking input, .booking select {
  width: 100%; height: 48px; padding: 12px 16px; border: 1.5px solid var(--pietra);
  border-radius: 10px; font-size: 1rem; line-height: 1.2; font-family: var(--font-body);
  background: var(--tufo); color: var(--bruno); text-align: left;
}
.booking select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2347443C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
/* iOS Safari centra il valore della data: forziamo l'allineamento a sinistra
   (senza togliere l'appearance, così il datepicker nativo resta su desktop) */
/* input data: stesso stile degli altri campi, niente overflow su iOS */
.booking input[type="date"] {
  width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
  appearance: none; -webkit-appearance: none; text-align: left;
}
.booking input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.booking input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; cursor: pointer; }
.booking input:focus, .booking select:focus { outline: 3px solid var(--oro); outline-offset: 1px; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s3) 0 var(--s2); padding: var(--s2) 16px 0; border-top: 1px dashed var(--pietra); }
.bk-total strong { font-weight: 700; }
.bk-total span { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.booking .btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: var(--s1); }
.btn-wa { background: #1F7A4D; color: #fff; }
.btn-wa:hover { background: #16613C; }
.bk-note { font-size: 0.82rem; color: var(--bruno-soft); margin-top: 0.9rem; }
/* Messaggio di errore inline nel box prenotazione */
.bk-err { color: var(--terra); font-weight: 600; font-size: 0.9rem; line-height: 1.4; margin: 0.15rem 0 0.3rem; }

/* ---------- Cookie banner (GDPR) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
  background: var(--bruno); color: var(--tufo);
  padding: 1rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1.5rem;
  transform: translateY(110%); opacity: 0; visibility: hidden;
  transition: transform .25s ease-out, opacity .25s ease-out;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-text { margin: 0; max-width: 62ch; font-size: 0.95rem; line-height: 1.5; }
.cookie-text a { color: var(--oro); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-actions .btn { width: auto; min-height: 44px; padding: 0.6rem 1.5rem; margin: 0; }
.cookie-decline { background: transparent; border: 1.5px solid var(--tufo); color: var(--tufo); }
.cookie-decline:hover { background: var(--tufo); color: var(--bruno); }
@media (max-width: 560px) {
  .cookie-banner {
    left: 50%; right: auto; width: 90%; max-width: 90%; bottom: 1rem;
    transform: translate(-50%, 130%); border-radius: var(--radius);
    flex-direction: column; align-items: stretch; text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .cookie-banner.show { transform: translate(-50%, 0); }
  .cookie-actions { justify-content: center; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Staff / gallery ---------- */
.person { text-align: center; }
.person img { aspect-ratio: 1/1.2; object-fit: cover; width: 100%; border-radius: var(--arch); border: 5px solid var(--white); box-shadow: var(--shadow); margin-bottom: 0.9rem; }
.person h3 { font-size: 1.15rem; }
.person p { color: var(--bruno-soft); font-size: 0.92rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* ---------- Prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin: var(--s4) 0 var(--s2); }
.prose p { margin-bottom: var(--s2); color: #45433A; }
.prose .legal-updated { margin-top: var(--s4); font-size: 0.88rem; color: var(--bruno-soft); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terra); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: var(--s2) auto var(--s4); max-width: 36rem; color: #E7ECDC; }
.cta-actions { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
.cta-actions .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (max-width: 560px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
footer.site { background: var(--bruno); color: var(--foot-text); padding: var(--s5) 0 var(--s3); font-size: 0.94rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s4); margin-bottom: var(--s4); }
footer.site h4 { color: var(--tufo); font-size: 0.95rem; margin-bottom: var(--s2); letter-spacing: 0.06em; text-transform: uppercase; }
footer.site a { color: var(--foot-text); text-decoration: none; }
footer.site a:hover { color: var(--oro); }
footer.site ul { list-style: none; display: grid; gap: var(--s1); }
.foot-legal { border-top: 1px solid #4C4A40; padding-top: var(--s3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--foot-dim); }
.foot-legal a { color: var(--foot-dim); }
.foot-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Pagina "I Sassi di Matera" (editoriale) ---------- */
.sassi-hero { padding: var(--section-y) 0; text-align: center; }
.sassi-hero h1 { max-width: 18ch; margin: 0 auto; }
.sassi-hero .sassi-sub { max-width: 46rem; margin: var(--s3) auto 0; }

.stats-band { background: var(--bruno); color: var(--tufo); padding: var(--section-y) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.stat { text-align: center; padding: 0 0.5rem; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: #4C4A40;
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 600; color: var(--oro);
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
}
.stat-label { display: block; margin-top: var(--s1); font-size: 0.92rem; color: var(--foot-text); }

.editorial .container { display: flex; flex-direction: column; gap: var(--s5); }
.editorial-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.editorial-row.flip .ed-text { order: 2; }
.editorial-row.flip .ed-img { order: 1; }
.editorial-row .ed-text h2 { margin-bottom: var(--s2); }
.editorial-row .ed-text p { color: var(--bruno-soft); }
.editorial-row .ed-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.pull-quote { background: var(--tufo-deep); }
.pull-quote blockquote {
  max-width: 40rem; margin: 0 auto; text-align: center; position: relative;
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.3; color: var(--terra-dark);
}
.pull-quote blockquote::before {
  content: "\201C"; display: block; font-size: 3.5rem; line-height: 0.6; color: var(--oro); margin-bottom: var(--s1);
}

.sassi-cta { background: var(--tufo); }
.sassi-cta .section-head { text-align: center; max-width: 44rem; margin: 0 auto var(--s4); }

/* ---------- Blog: indice (griglia card) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s3); }
.blog-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--bruno);
  transition: transform 0.18s ease;
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card .bc-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: auto; display: block; }
.blog-card .bc-body { display: flex; flex-direction: column; gap: 0.6rem; padding: var(--s3); flex: 1; }
.bc-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.bc-cat {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--terra-dark); background: var(--tufo-deep);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.bc-date { font-size: 0.8rem; color: var(--bruno-soft); }
.bc-title {
  font-size: 1.2rem; line-height: 1.25; margin: 0.1rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-excerpt {
  font-size: 0.95rem; color: var(--bruno-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-more { font-weight: 700; color: var(--terra); margin-top: auto; padding-top: 0.2rem; }

/* ---------- Blog: pagina articolo (editoriale) ---------- */
.blog-article { max-width: 46rem; margin: 0 auto; }
/* blocchi di testo su colonna stretta e leggibile; l'immagine resta più larga */
.blog-article > .breadcrumb,
.blog-article > .article-head,
.blog-article > .prose,
.blog-article > .article-cta { max-width: 42rem; margin-left: auto; margin-right: auto; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--bruno-soft); margin-bottom: var(--s3);
}
.breadcrumb a { color: var(--terra); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-current { color: var(--bruno-soft); }
.article-head { margin-bottom: var(--s4); }
.article-head h1 { margin-bottom: var(--s2); }
.article-cat {
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra-dark);
}
.article-meta { color: var(--bruno-soft); font-size: 0.92rem; }
.article-img {
  width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius); margin-bottom: var(--s5);
}
.blog-article .prose { line-height: 1.75; }
.blog-article .prose p { line-height: 1.75; }
.blog-article .prose h2 { margin: var(--s5) 0 var(--s2); }
/* immagini inline nel corpo articolo: stessa proporzione 3:2, coerente */
.blog-article .prose img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); margin: var(--s3) 0; display: block; }
.article-cta {
  margin-top: var(--s5); padding: var(--s4); background: var(--tufo-deep);
  border-radius: var(--radius); text-align: center;
}
.article-cta h2 { margin-bottom: var(--s2); }
.article-cta p { color: var(--bruno-soft); max-width: 34rem; margin: 0 auto var(--s3); }
.article-more { display: inline-block; margin-top: var(--s3); color: var(--terra); font-weight: 700; text-decoration: none; }
.article-more:hover { text-decoration: underline; }
.blog-related .section-head { text-align: center; max-width: 44rem; margin: 0 auto var(--s4); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80;
  width: 3.4rem; height: 3.4rem; border-radius: 999px; background: #1F7A4D;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.wa-float svg { width: 1.8rem; height: 1.8rem; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  /* padding verticale sezioni più compatto su mobile/tablet */
  html { --section-y: var(--s5); }
  .hero .container, .tour-hero .container, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .stat:nth-child(odd)::before { display: none; }
  .editorial-row { grid-template-columns: 1fr; gap: var(--s3); }
  .editorial-row.flip .ed-text { order: 0; }
  .editorial-row.flip .ed-img { order: -1; }
  .editorial-row .ed-img { aspect-ratio: 16/10; }
  .booking { position: static; }

  /* ---------- Header + drawer su mobile ---------- */
  header.site .container { height: 64px; }
  .nav-main, .header-book { display: none; }      /* nav e Prenota desktop nascosti */
  .header-tools { margin-left: auto; gap: 14px; }  /* IT + hamburger ancorati a destra */
  .burger { display: inline-flex; }
  body.nav-open { overflow: hidden; }              /* blocco scroll a drawer aperto */
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  /* box prenotazione: padding laterale uniforme 16px su mobile */
  .booking { padding: var(--s2); }
  .bk-grid { gap: 0.5rem; }
  /* footer: colonne impilate con respiro --s4 */
  footer.site .cols { grid-template-columns: 1fr; gap: var(--s4); }
  .foot-legal { justify-content: flex-start; }
}

/* Telefono in evidenza nel footer, solo su mobile (sotto 768px) */
.footer-phone-mobile { display: none; }
@media (max-width: 768px) {
  footer.site .footer-phone-mobile {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--oro); font-weight: 700; font-size: 1.05rem; margin-bottom: var(--s3);
  }
  footer.site .footer-phone-mobile:hover { color: var(--oro); }
  .footer-phone-mobile svg { width: 20px; height: 20px; flex: none; }
}

/* Logo: completo fino a 480px, compatto sotto (swap solo via CSS) */
@media (max-width: 480px) {
  .brand-full { display: none; }
  .brand-compact { display: block; height: 44px; width: auto; }
}
