/* =========================================================================
   Dott. Feliciano Caserta — Osteopata
   Palette e tipografia nascono dal logo Instagram (verde bosco + oliva su
   crema): i colori qui sotto sono campionati dal file assets/img/logo.jpg,
   così il sito e il logo non sembrano due marchi diversi.
   ========================================================================= */

:root {
  --verde-900: #06371f;
  --verde-800: #084a2c;
  --verde-700: #0b5c37;
  --verde-600: #0f7248;
  --verde-300: #5f957b;
  --oliva: #8a9b52;
  --oliva-chiaro: #cfd8ad;

  --crema: #f4f7ec;
  --panna: #fdfefa;
  --bianco: #ffffff;

  --testo: #17251d;
  --testo-soft: #4c5f55;
  --bordo: rgba(11, 92, 55, 0.14);

  --ombra-sm: 0 1px 2px rgba(6, 55, 31, 0.06), 0 2px 8px rgba(6, 55, 31, 0.05);
  --ombra-md: 0 4px 12px rgba(6, 55, 31, 0.08), 0 12px 32px rgba(6, 55, 31, 0.08);
  --ombra-lg: 0 12px 28px rgba(6, 55, 31, 0.12), 0 32px 64px rgba(6, 55, 31, 0.12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --h-topbar: 40px;
  --h-header: 76px;
}

/* ---------- reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  /* Le ancore non devono finire sotto la barra fissa. */
  scroll-padding-top: calc(var(--h-topbar) + var(--h-header) + 12px);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--testo);
  background: var(--panna);
  overflow-x: hidden;
}

a { color: var(--verde-700); text-decoration-color: rgba(11, 92, 55, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--verde-600); }

:focus-visible {
  outline: 3px solid var(--oliva);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--verde-700);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde-600);
  margin-bottom: 12px;
}

.lead { font-size: 1.1rem; color: var(--testo-soft); }
.note { font-size: 0.95rem; color: var(--testo-soft); font-style: italic; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--verde-700); color: #fff; box-shadow: var(--ombra-sm); }
.btn--primary:hover { background: var(--verde-600); color: #fff; box-shadow: var(--ombra-md); }

.btn--ghost { background: transparent; color: var(--verde-800); border-color: var(--bordo); }
.btn--ghost:hover { background: var(--crema); color: var(--verde-800); border-color: var(--verde-300); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- barra contatti ---------- */
.topbar {
  background: var(--verde-900);
  color: #dcebe1;
  font-size: 0.85rem;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--h-topbar);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--h-topbar);
  overflow: hidden;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dcebe1;
  text-decoration: none;
  white-space: nowrap;
}
.topbar__item:hover { color: #fff; }
.topbar__item--addr { margin-left: auto; color: #a9c9b6; }
.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: var(--h-topbar);
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 254, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--bordo);
  box-shadow: var(--ombra-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--h-header);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bordo);
  background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; color: var(--verde-900); }
.brand__text em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oliva);
  font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--testo-soft);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav > a:hover { background: var(--crema); color: var(--verde-800); }
.nav > a.is-active { color: var(--verde-800); font-weight: 600; }
.nav__cta { margin-left: 8px; color: #fff !important; }
.nav__cta:hover { background: var(--verde-600) !important; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--bordo);
  border-radius: var(--r-sm);
  background: var(--bianco);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--verde-800);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--h-topbar) + var(--h-header) + 64px) 0 72px;
  background:
    radial-gradient(70% 90% at 88% 8%, rgba(138, 155, 82, 0.16), transparent 62%),
    linear-gradient(180deg, var(--crema), var(--panna) 76%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--verde-900); margin-bottom: 20px; }
/* Il "tu" del titolo è la parola chiave: corsivo e colore d'accento, con una
   sottolineatura morbida in oliva chiaro che lo stacca dal resto. */
.hero h1 em {
  font-style: italic;
  color: var(--verde-600);
  background: linear-gradient(transparent 68%, var(--oliva-chiaro) 68%, var(--oliva-chiaro) 90%, transparent 90%);
  padding: 0 0.06em;
}
.hero .lead { max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--bordo);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--verde-700);
  line-height: 1.1;
}
.hero__badges span { font-size: 0.82rem; color: var(--testo-soft); }

.hero__media { position: relative; justify-self: center; }
/* height:auto è indispensabile: gli attributi width/height dell'<img> (messi
   per evitare salti di layout) diventano un'altezza fissa in pixel che
   scavalca aspect-ratio, e la foto diventava alta 1185px (27/10/2026).
   4:5 invece del vecchio 9:13: più larga e meno lunga, taglia sopra e sotto. */
/* width fissa + max-width, non min(…, 100%): il contenitore è centrato
   (justify-self) e quindi largo quanto il suo contenuto; una larghezza in %
   diventa circolare e con l'immagine non ancora caricata (lazy) la foto
   collassava a 12px. */
.hero__media img {
  width: 420px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--ombra-lg);
  border: 6px solid #fff;
}
.hero__sticker {
  position: absolute;
  left: -26px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--verde-700);
  color: #fff;
  box-shadow: var(--ombra-md);
  text-align: center;
}
.hero__sticker-price { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.hero__sticker-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }

/* ---------- contatti in evidenza ---------- */
.quick { margin-top: -34px; position: relative; z-index: 2; padding-bottom: 20px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 22px 20px;
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--r-md);
  box-shadow: var(--ombra-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.quick__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombra-md);
  border-color: var(--verde-300);
  color: inherit;
}
.quick__ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--crema);
  margin-bottom: 12px;
}
.quick__ico svg { width: 19px; height: 19px; fill: var(--verde-700); }
.quick__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oliva);
  font-weight: 700;
}
.quick__value { font-size: 1.02rem; color: var(--verde-900); }
.quick__hint { font-size: 0.85rem; color: var(--testo-soft); }

/* ---------- sezioni ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--crema); }

.section__head { max-width: 62ch; margin: 0 auto 48px; text-align: center; }
.section__head h2 { color: var(--verde-900); }
.section__sub { margin-top: 14px; color: var(--testo-soft); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split__copy h2 { color: var(--verde-900); margin-bottom: 18px; }
.split__copy p + p { margin-top: 16px; }
.split__copy .btn { margin-top: 28px; }
.split__media { justify-self: center; }

/* Stesso discorso della foto hero: height:auto perché aspect-ratio valga. */
.frame {
  width: 420px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 6px solid #fff;
  box-shadow: var(--ombra-md);
}

.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--testo-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verde-700);
  /* Spunta disegnata in CSS: evita un'immagine in più da caricare. */
  clip-path: polygon(14% 47%, 8% 55%, 38% 82%, 92% 24%, 84% 17%, 37% 66%);
}
.checklist strong { color: var(--verde-800); }
/* Sede del corso su una riga sua sotto il titolo: in coda al titolo dopo un
   trattino andava a capo a metà ("Università Parthenope di / Napoli"). */
.checklist__sede { display: block; font-size: 0.9rem; }

/* Frasi che non devono spezzarsi a metà, es. "dalle 8:00 alle 18:30". */
.nowrap { white-space: nowrap; }

/* ---------- card trattamenti ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--ombra-sm);
  transition: transform 0.2s ease, box-shadow 0.24s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ombra-md); }
.card__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--verde-700), var(--verde-600));
  margin-bottom: 20px;
}
.card__ico svg { width: 26px; height: 26px; fill: #fff; }
.card h3 { color: var(--verde-900); margin-bottom: 10px; }
.card p { color: var(--testo-soft); font-size: 0.98rem; }
/* Le tecniche sono quattro: in tre colonne l'ultima resterebbe da sola. */
.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* Sottotitolo dentro una sezione (es. "Cosa fa l'osteopata" sotto "Cos'è
   l'osteopatia"): stesso impianto centrato dell'intestazione, ma più piccolo e
   staccato dal blocco precedente. */
.section__head--sub { margin-top: 64px; margin-bottom: 36px; }
.section__h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--verde-900); }
.split__h3 { color: var(--verde-900); font-size: 1.12rem; margin-top: 28px; }
.split__h3 + .checklist { margin-top: 14px; }

/* Testo discorsivo centrato (introduzione all'osteopatia). */
.prose { max-width: 68ch; margin: -16px auto 0; text-align: center; color: var(--testo-soft); font-size: 1.05rem; }
.prose p + p { margin-top: 14px; }

/* Disturbi: card con elenco puntato invece delle pastiglie, perché le voci
   fornite da Feliciano sono frasi lunghe. Cinque gruppi: 3 + 2 centrati. */
.disturbi { grid-template-columns: repeat(6, 1fr); }
.disturbi .card { grid-column: span 2; padding: 28px 26px; }
.disturbi .card:nth-child(4) { grid-column: 2 / span 2; }
.disturbi .checklist { margin-top: 14px; gap: 10px; }
.disturbi .checklist li { font-size: 0.95rem; }
.disturbi__note { text-align: center; max-width: 70ch; margin: 36px auto 0; }

/* ---------- chips disturbi ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chips li {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--bianco);
  border: 1px solid var(--bordo);
  font-size: 0.92rem;
  color: var(--verde-800);
}

/* ---------- galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--ombra-sm);
  position: relative;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 55, 31, 0.35));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cta { text-align: center; margin-top: 32px; }

/* ---------- prenotazione ---------- */
.booking { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 28px; align-items: start; }
.booking__frame {
  /* Il flusso di Reservio (servizio → data → orario → dati) sotto i ~740px
     costringe a scorrere dentro l'iframe ad ogni passaggio. */
  min-height: 760px;
  border-radius: var(--r-md);
  border: 1px solid var(--bordo);
  background: var(--bianco);
  box-shadow: var(--ombra-sm);
  overflow: hidden;
  display: grid;
}
.booking__frame iframe { width: 100%; height: 100%; min-height: 760px; border: 0; }

/* Scheda mostrata al posto dell'iframe quando Reservio non può essere incorporato
   (pagina aperta da file:// o servita in http://). */
.booking__fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 56px 32px;
}
.booking__fallback img { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--bordo); }
.booking__fallback h3 { color: var(--verde-900); }
.booking__fallback p { color: var(--testo-soft); max-width: 46ch; }
.booking__fallback-text { padding: 40px; text-align: center; color: var(--testo-soft); }

/* Scheda "Mostra la mappa / Mostra il calendario": stessa impaginazione della
   scheda di fallback, così il riquadro non cambia aspetto tra locale e online.
   min-height uguale a quella dell'iframe: al clic la pagina non salta. */
.consenso {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 48px 28px;
  min-height: 400px;
  background: var(--crema);
}
.booking__frame.consenso { background: var(--bianco); min-height: 760px; }
.consenso img { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--bordo); }
.consenso h3 { color: var(--verde-900); }
.consenso p { color: var(--testo-soft); max-width: 46ch; font-size: 0.95rem; }
.consenso__azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

.booking__side {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--ombra-sm);
}
.booking__h3 { color: var(--verde-900); margin: 22px 0 12px; font-size: 1.05rem; }

.pricecard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--verde-800), var(--verde-600));
  color: #fff;
}
.pricecard__label { font-size: 0.9rem; opacity: 0.9; }
.pricecard__price { font-family: var(--serif); font-size: 1.7rem; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--bordo); vertical-align: top; }
.hours th { text-align: left; font-weight: 600; color: var(--verde-900); }
.hours td { text-align: right; color: var(--testo-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-closed td { color: #a2ada6; }

.booking__actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- contatti ---------- */
.contact { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: stretch; }
.contact__map {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bordo);
  box-shadow: var(--ombra-sm);
  min-height: 400px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

.contact__list {
  display: grid;
  gap: 14px;
  align-content: start;
}
.contact__list li {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--ombra-sm);
}
.contact__k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oliva);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact__v { display: block; color: var(--verde-900); font-weight: 500; }
.contact__v a { text-decoration: none; }
.contact__note { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--testo-soft); }
.contact__a { display: inline-block; margin-top: 8px; font-size: 0.88rem; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--verde-900); color: #c3d9cb; padding: 68px 0 28px; }
.footer__grid {
  display: grid;
  /* Larghezze tarate sul testo più lungo di ogni colonna, misurato a 1440px:
     "Osteopata · Posturologo · Chiroterapia" (~260px), "80014 Giugliano in
     Campania (NA)" (230px), "@dr_feliciano.osteopata" (160px), "Sab–Dom" +
     orario (161px). Con le frazioni precedenti la seconda colonna si fermava a
     227px e l'indirizzo andava a capo per 3px. */
  grid-template-columns: 1.26fr 1.15fr 0.9fr 0.99fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer h3 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oliva-chiaro);
  margin-bottom: 14px;
}
.footer p { font-size: 0.94rem; }
.footer a { color: #e4f0e8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__logo { width: 68px; height: 68px; border-radius: 50%; margin-bottom: 16px; }
.footer__name { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer__role { font-size: 0.9rem; color: var(--oliva-chiaro); }
.footer__reg { font-size: 0.84rem; margin-top: 8px; opacity: 0.75; }
.footer__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--oliva-chiaro) !important;
}

.footer__hours { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 0.88rem; }
.footer__day { color: #fff; font-weight: 600; }
.footer__times { display: flex; flex-direction: column; gap: 2px; }
/* nowrap sul singolo intervallo: se lo spazio manca va a capo prima
   dell'orario, mai dentro. */
.footer__times span { white-space: nowrap; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 0.83rem;
  color: #90ab99;
}
.footer__disclaimer { max-width: 62ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a,
.footer__btnlink { color: #c3d9cb; }
/* "Preferenze cookie" è un'azione (cancella i consensi), quindi un <button>,
   ma nel footer deve sembrare un link come "Privacy e cookie" accanto. */
.footer__btnlink {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}
.footer__btnlink:hover { color: #fff; text-decoration: underline; }

/* ---------- pannello preferenze cookie ---------- */
.cookie-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--panna);
  color: var(--testo);
  box-shadow: var(--ombra-lg);
}
.cookie-dialog::backdrop { background: rgba(6, 30, 18, 0.55); backdrop-filter: blur(2px); }
.cookie-dialog__box { padding: 28px 26px 24px; }
.cookie-dialog h2 { font-size: 1.45rem; color: var(--verde-900); margin-bottom: 10px; }
.cookie-dialog p { font-size: 0.94rem; color: var(--testo-soft); }
.cookie-dialog__list { display: grid; gap: 10px; margin: 18px 0 14px; }
.cookie-dialog__more { font-size: 0.88rem; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
/* Su telefono i due pulsanti non stanno in riga e andavano a capo sfalsati:
   meglio impilati a tutta larghezza, con "Salva" sopra. */
@media (max-width: 480px) {
  .cookie-dialog__actions { flex-direction: column-reverse; }
  .cookie-dialog__actions .btn { width: 100%; }
}

/* Interruttore on/off: checkbox vero (accessibile da tastiera e screen
   reader) nascosto visivamente, con una "pista" disegnata accanto. */
.cookie-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--r-md);
  cursor: pointer;
}
.cookie-switch__text { display: grid; gap: 2px; }
.cookie-switch__text strong { color: var(--verde-900); font-size: 0.98rem; }
.cookie-switch__text span { font-size: 0.86rem; color: var(--testo-soft); }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch__track {
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: var(--r-pill);
  background: #c9d3cc;
  transition: background-color 0.2s ease;
}
.cookie-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--verde-700); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 3px solid var(--oliva); outline-offset: 2px; }

/* ---------- pagina privacy ---------- */
/* Nella pagina privacy non c'è la topbar dei contatti: l'header sale in cima. */
.page-legal .site-header { top: 0; border-bottom-color: var(--bordo); }
.legal { padding: calc(var(--h-header) + 48px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--verde-900); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; color: var(--verde-900); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--testo-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }
.legal__date { font-size: 0.9rem; }
.legal__back { margin-top: 44px; }

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 55, 31, 0.92);
  display: grid;
  place-items: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { max-width: min(560px, 100%); text-align: center; }
.lightbox__fig img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__fig figcaption { margin-top: 14px; color: #d9eadf; font-size: 0.92rem; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- animazione di ingresso ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  /* Senza questo lo "span 2" del layout 3+2 creerebbe colonne implicite. */
  .disturbi .card, .disturbi .card:nth-child(4) { grid-column: auto; }
  .booking { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 880px) {
  :root { --h-header: 68px; }

  .nav {
    position: fixed;
    top: calc(var(--h-topbar) + var(--h-header));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 22px 22px;
    background: var(--panna);
    border-bottom: 1px solid var(--bordo);
    box-shadow: var(--ombra-md);
    /* Chiuso di default: niente display:none, così la transizione è fluida. */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 13px 6px; border-bottom: 1px solid var(--bordo); border-radius: 0; }
  .nav > a:last-child { border-bottom: 0; }
  .nav__cta { margin: 12px 0 0; border-radius: var(--r-pill); text-align: center; justify-content: center; }
  .burger { display: block; }

  .hero__inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__badges { justify-content: center; text-align: center; }
  .hero__sticker { left: auto; right: -10px; bottom: -14px; width: 92px; height: 92px; }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 38px; }
  /* Su mobile la foto va sempre dopo il testo, anche nella variante invertita. */
  .split--reverse .split__copy { order: 1; }
  .split--reverse .split__media { order: 2; }

  .section { padding: 64px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .topbar__item--addr { display: none; }
  .topbar__inner { gap: 18px; justify-content: center; }

  .quick { margin-top: -22px; }
  .quick__grid { grid-template-columns: 1fr; gap: 12px; }
  /* Su schermo stretto le card diventano righe: icona a sinistra, testo a destra.
     La griglia a due colonne evita i margini negativi che servirebbero con flex. */
  .quick__card {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas: "ico label" "ico value" "ico hint";
    column-gap: 14px;
    row-gap: 0;
    padding: 16px 18px;
  }
  .quick__ico { grid-area: ico; align-self: center; margin-bottom: 0; }
  .quick__label { grid-area: label; }
  .quick__value { grid-area: value; }
  .quick__hint { grid-area: hint; }

  .booking__frame, .booking__frame iframe { min-height: 680px; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .hero { padding-top: calc(var(--h-topbar) + var(--h-header) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
