/* A Casa di Guido · Affittacamere Nilo · Napoli — style.css
   Design: Design/kit/design-a-casa-di-guido/home-approvata.png (ChatGPT), seguito fedele e rifinito.
   Colori misurati sul design (confronta-design.py --colori e campioni sulle sezioni del kit), in #hex.
   Caratteri (il kit non li ha: i più simili, serviti dal sito):
   - Newsreader (variabile, opsz 6-72): titoli e testi, serif; il corsivo per «Sei a Napoli.», «Napoli.», «scoperte.»
   - Plus Jakarta Sans (variabile): menu, pulsanti, occhielli, etichette, calendario */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* blu del marchio */
  --blu: #0044AC;          /* pulsanti, schede, testo */
  --blu-titolo: #003CB4;   /* titoli */
  --blu-notte: #003C98;    /* piè di pagina */
  --blu-vivo: #0048DC;     /* date scelte, didascalie */
  /* sole e maioliche */
  --giallo: #FCCC5C;       /* badge, tondi dei numeri */
  --oro: #FCB818;          /* virgolette, filetti */
  --oro-chiaro: #FCE090;
  --ambra: #C8802C;        /* occhielli delle sezioni */
  --terra: #8C3800;        /* occhiello della hero */
  /* celesti */
  --celeste: #88C4FC;      /* periodo scelto nel calendario */
  --celeste-chiaro: #D4E4FC;
  --azzurrino: #ECF0F6;    /* schede spente, bordi chiari */
  /* fondi */
  --crema: #FEFBF6;
  --carta: #FEFDFA;
  --bianco: #FFFFFF;
  --grigio: #D0D0D8;       /* non disponibile */
  --rosso: #F42824;        /* la casa sulla mappa */
  --testo-tenue: #7C9CE0;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --ombra: 0 18px 50px -24px rgba(0, 40, 110, .28), 0 2px 8px rgba(0, 40, 110, .06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --testata: 84px;
}

/* ── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--testata) + 12px);
}
html.menu-aperto { overflow: hidden; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--blu);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blu); color: var(--bianco); padding: 10px 16px; border-radius: 8px;
  font-family: var(--sans); font-weight: 700; text-decoration: none;
}
.salta:focus { top: 12px; }

.dentro {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ── pezzi comuni ─────────────────────────────────────────────────── */
.occhiello {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ambra);
}
.occhiello::after {
  content: ""; width: 68px; height: 2px; background: var(--oro); border-radius: 2px;
}
.occhiello--hero { display: block; color: var(--terra); font-size: 15px; line-height: 1.45; letter-spacing: .1em; }
.occhiello--hero::after { display: none; }
.occhiello--riga::after { flex: 1; width: auto; max-width: 980px; height: 1px; background: var(--oro-chiaro); }

.titolo-sezione {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--blu-titolo);
  text-wrap: balance;
}
.titolo-sezione em { font-style: italic; font-weight: 600; }
.titolo-sezione--medio { font-size: clamp(2rem, 2.65vw, 2.45rem); }
.sotto-sezione {
  margin-top: 10px;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.35;
  color: var(--blu);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.btn img { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--blu { background: var(--blu); color: var(--bianco); box-shadow: 0 10px 24px -14px rgba(0, 50, 140, .7); }
.btn--bordo { background: var(--bianco); color: var(--blu); border-color: var(--blu); border-radius: 12px; }
.btn--bordo img { width: 24px; height: 24px; transition: transform .2s var(--ease-out); }
.btn--grande { min-height: 58px; padding-inline: 30px; font-size: 17px; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--blu:hover { background: var(--blu-notte); }
  .btn--bordo:hover { background: var(--azzurrino); }
  .btn--bordo:hover img { transform: translateX(4px); }
}

.link-freccia {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--blu);
  text-decoration: none; padding-bottom: 6px;
  border-bottom: 2px solid var(--oro);
  -webkit-user-select: none; user-select: none;
}
.link-freccia img { width: 24px; height: 24px; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-freccia:hover img { transform: translateX(5px); } }
.link-freccia:active img { transform: translateX(5px); }

/* ── intestazione ─────────────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: var(--bianco);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow .25s ease;
}
.testata.scorsa { box-shadow: 0 8px 24px -16px rgba(0, 40, 110, .35); }
.testata__dentro {
  display: flex; align-items: center; gap: 24px;
  height: var(--testata);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.testata__logo { flex: none; display: block; }
.testata__logo img { width: 230px; }
.menu { flex: 1; display: flex; justify-content: center; }
.menu__voci { display: flex; gap: clamp(20px, 3.4vw, 54px); }
.menu__voci a {
  display: inline-block; padding: 10px 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--blu);
  text-decoration: none; position: relative; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
.menu__voci a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--oro); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .menu__voci a:hover::after { transform: scaleX(1); } }
.menu__wa { display: none; }
.testata__destra { flex: none; display: flex; align-items: center; gap: 14px; }
.lingue-posto:empty { display: none; }
.testata__wa { min-height: 46px; padding: 10px 22px; font-size: 15px; }
.testata__apri { display: none; }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(500px, 39vw, 580px);
  background: var(--crema);
  overflow: hidden;
  isolation: isolate;
}
.hero__sfondo { position: absolute; top: 0; bottom: 0; left: 38%; right: 0; z-index: -1; }
.hero__sfondo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%);
}
.hero__badge {
  position: absolute; z-index: 1;
  width: clamp(120px, 10.6vw, 160px);
  left: 73.5%; top: 15%;
  filter: drop-shadow(0 12px 22px rgba(120, 80, 0, .22));
}
.hero__dentro {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(30px, 3vw, 44px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(92px, 7vw, 104px) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.hero__testo { max-width: 560px; }
.hero__titolo {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 5.6vw, 5.2rem);
  line-height: .96;
  letter-spacing: -0.035em;
  color: var(--blu-titolo);
}
.hero__titolo em { font-style: italic; font-weight: 700; letter-spacing: -0.03em; }
.hero__sotto {
  margin-top: 16px;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  line-height: 1.12;
  color: var(--blu-titolo);
  letter-spacing: -0.01em;
}
.hero__casa { display: flex; align-items: center; gap: 28px; margin-top: 20px; }
.hero__casa > img {
  width: clamp(160px, 14vw, 205px); aspect-ratio: 230 / 130; object-fit: cover;
  border-radius: var(--r-s); box-shadow: var(--ombra);
}
.hero__casa p { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.15; color: var(--blu-titolo); margin-bottom: 14px; }

/* ── disponibilità ────────────────────────────────────────────────── */
.disponibilita {
  position: relative; z-index: 2;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: calc(-1 * clamp(64px, 5.6vw, 84px)) auto 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.disponibilita__scheda {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px clamp(24px, 4vw, 60px);
  background: var(--bianco);
  border-radius: var(--r-l);
  box-shadow: var(--ombra);
  padding: clamp(20px, 2.2vw, 30px) clamp(20px, 3vw, 44px);
}
.disponibilita__titolo {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 2.5vw, 2.35rem); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--blu-titolo);
}
.disponibilita__sotto { margin-top: 4px; font-family: var(--sans); font-size: 15px; color: var(--blu); }

.cal { margin-top: 10px; max-width: 540px; font-family: var(--sans); }
.cal__testa { display: flex; align-items: center; justify-content: space-between; }
.cal__mese { font-weight: 700; font-size: 17px; color: var(--blu); text-transform: capitalize; }
.cal__freccia {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--blu);
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, transform .16s var(--ease-out), opacity .2s ease;
}
.cal__freccia svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cal__freccia:active { transform: scale(.92); }
.cal__freccia:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cal__freccia:not(:disabled):hover { background: var(--azzurrino); } }
.cal__settimana, .cal__giorni { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__settimana span { text-align: center; font-size: 12px; font-weight: 600; color: var(--testo-tenue); padding: 0 0 4px; }
.cal__giorni { row-gap: 2px; }
.giorno {
  position: relative;
  height: 30px; border: 0; background: transparent; padding: 0;
  font-size: 14px; font-weight: 700; color: var(--blu);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.giorno span {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%;
  transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out);
}
.giorno:active span { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .giorno:not(:disabled):hover span { background: var(--azzurrino); } }
.giorno--vuoto { cursor: default; }
.giorno:disabled { cursor: default; color: var(--grigio); font-weight: 600; }
.giorno--occupato span { text-decoration: line-through; text-decoration-thickness: 1px; }
.giorno--oggi span { box-shadow: inset 0 0 0 1.5px var(--celeste); }
.giorno--dentro::before, .giorno--inizio::before, .giorno--fine::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--celeste); opacity: .55;
}
.giorno--inizio::before { left: 50%; border-radius: 0; }
.giorno--fine::before { right: 50%; }
.giorno--inizio.giorno--fine::before { display: none; }
.giorno--inizio span, .giorno--fine span { background: var(--blu-vivo) !important; color: var(--bianco); }
.giorno--dentro span { background: transparent; }

.disponibilita__destra { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.disponibilita__campi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; gap: 10px; align-items: stretch; }
.disponibilita__campi .btn { white-space: nowrap; padding-inline: 22px; }
.campo-data {
  display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px 12px;
  background: var(--bianco); border: 1.5px solid var(--celeste-chiaro); border-radius: 12px;
  text-align: left; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out);
}
.campo-data:active { transform: scale(.98); }
.campo-data img { width: 26px; height: 26px; flex: none; }
.campo-data span { display: flex; flex-direction: column; min-width: 0; }
.campo-data small { font-family: var(--sans); font-size: 12px; color: var(--testo-tenue); font-weight: 600; }
.campo-data strong { font-family: var(--sans); font-size: 15px; color: var(--blu); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo-data.attivo { border-color: var(--blu-vivo); box-shadow: 0 0 0 3px rgba(0, 72, 220, .12); }
@media (hover: hover) and (pointer: fine) { .campo-data:hover { border-color: var(--celeste); } }

.disponibilita__sotto-campi { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.legenda { display: grid; gap: 8px; font-family: var(--sans); font-size: 14px; color: var(--blu); }
.legenda li { display: flex; align-items: center; gap: 12px; }
.pallino { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.pallino--scelte { background: var(--blu-vivo); }
.pallino--libere { background: var(--celeste); }
.pallino--occupate { background: var(--grigio); }
.ospiti { display: flex; align-items: center; gap: 14px; font-family: var(--sans); }
.ospiti__nome { font-size: 14px; font-weight: 600; color: var(--blu); }
.ospiti__scelta { display: flex; align-items: center; border: 1.5px solid var(--celeste-chiaro); border-radius: 999px; padding: 3px; }
.ospiti__scelta button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--azzurrino);
  font-size: 20px; font-weight: 600; color: var(--blu); cursor: pointer; line-height: 1;
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.ospiti__scelta button:active { transform: scale(.9); }
.ospiti__scelta button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .ospiti__scelta button:not(:disabled):hover { background: var(--celeste-chiaro); } }
.ospiti__scelta output { min-width: 40px; text-align: center; font-weight: 700; font-size: 16px; color: var(--blu); }
.disponibilita__stato {
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--blu);
  padding: 10px 14px; border-radius: 10px; background: var(--azzurrino);
}
.disponibilita__stato.errore { background: var(--crema); color: var(--terra); }
.disponibilita__nota { font-family: var(--sans); font-size: 13px; color: var(--testo-tenue); }
.thk-cin { font-family: var(--sans); font-size: 12px; color: var(--testo-tenue); letter-spacing: .02em; }

/* ── l'appartamento ───────────────────────────────────────────────── */
.casa { padding: clamp(40px, 4.2vw, 60px) 0 clamp(36px, 4vw, 56px); }
.casa .titolo-sezione { margin-top: 10px; }
.schede {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin-top: 26px;
}
.schede__voce {
  min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 0;
  background: var(--azzurrino); color: var(--blu);
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.schede__voce:active { transform: scale(.97); }
.schede__voce[aria-selected="true"] { background: var(--blu); color: var(--bianco); }
@media (hover: hover) and (pointer: fine) { .schede__voce[aria-selected="false"]:hover { background: var(--celeste-chiaro); } }

.ambienti { margin-top: 18px; }
.ambiente {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: clamp(220px, 21vw, 300px) clamp(180px, 17vw, 238px);
  gap: 16px 18px;
  animation: ambiente-entra .45s var(--ease-out);
}
.ambiente[hidden] { display: none; }
@keyframes ambiente-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ambiente[data-n="5"] .foto:nth-child(-n+2) { grid-column: span 3; }
.ambiente[data-n="5"] .foto:nth-child(n+3) { grid-column: span 2; }
.ambiente[data-n="4"] .foto { grid-column: span 3; }
.ambiente[data-n="3"] .foto:first-child { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.ambiente[data-n="3"] .foto:nth-child(2) { grid-column: 5 / span 2; grid-row: 1; }
.ambiente[data-n="3"] .foto:nth-child(3) { grid-column: 5 / span 2; grid-row: 2; }
.ambiente[data-n="2"] .foto { grid-column: span 3; grid-row: 1 / span 2; }
.ambiente--verticale[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ambiente--verticale[data-n="4"] .foto { grid-column: auto; grid-row: 1 / span 2; }
.foto__apri img.taglio-ballatoio { object-position: 50% 72%; }
.foto__apri img.taglio-sinistra { object-position: 28% 50%; }
.foto__apri img.taglio-centro-sx { object-position: 42% 50%; }
.foto { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.foto__apri {
  display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0;
  border-radius: var(--r-s); overflow: hidden; background: var(--azzurrino); cursor: zoom-in;
}
.foto__apri img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foto__apri:hover img { transform: scale(1.035); } }
.foto figcaption { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--blu-vivo); line-height: 1.2; }

.casa__piede { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.dotazioni { display: flex; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; }
.dotazioni li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--blu); }
.dotazioni img { width: 40px; height: 40px; }

/* ── panorama ─────────────────────────────────────────────────────── */
.panorama { position: relative; min-height: clamp(260px, 23vw, 340px); overflow: hidden; isolation: isolate; }
.panorama__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; z-index: -1; }
.panorama__dentro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: clamp(26px, 2.6vw, 40px); padding-bottom: 40px; }
.panorama__titolo {
  font-weight: 700; font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: .98; letter-spacing: -0.03em;
  color: var(--blu-titolo);
}
.panorama__titolo em { font-weight: 700; }
.panorama__base { display: flex; flex-direction: column; font-family: var(--sans); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.3; color: var(--blu); padding-top: 6px; min-width: 0; }
.panorama__base strong { font-size: clamp(19px, 1.85vw, 26px); font-weight: 700; color: var(--blu-titolo); }

/* ── 50 m dalla meraviglia ────────────────────────────────────────── */
.meraviglia { position: relative; min-height: clamp(320px, 25vw, 380px); background: var(--carta); overflow: hidden; isolation: isolate; }
.meraviglia__img { position: absolute; top: 0; bottom: 0; right: 0; width: 66%; z-index: -1; }
.meraviglia__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.meraviglia__dentro { padding-top: clamp(26px, 2.6vw, 40px); padding-bottom: clamp(26px, 2.6vw, 40px); }
.meraviglia__testo { max-width: 440px; }
.meraviglia__titolo { font-weight: 700; font-size: clamp(2rem, 2.9vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--blu-titolo); }
.meraviglia__cifra { display: block; font-size: clamp(5rem, 8.4vw, 7.8rem); line-height: .86; letter-spacing: -0.045em; font-weight: 800; }
.meraviglia__cifra small { font-size: .62em; letter-spacing: -0.02em; }
.meraviglia__sotto { margin-top: 12px; font-size: clamp(1.25rem, 1.75vw, 1.6rem); line-height: 1.15; color: var(--blu); }
.percorso { display: flex; align-items: flex-start; gap: 0; margin-top: 22px; font-family: var(--sans); }
.percorso li { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.percorso__piedi img { width: 40px; height: 40px; }
.percorso__piedi, .percorso__tappa { padding-right: 76px; }
.percorso__tappa--arrivo { padding-right: 0; }
.percorso__piedi::after, .percorso__tappa:not(.percorso__tappa--arrivo)::after {
  content: ""; position: absolute; top: 19px; right: 10px; width: 56px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--oro) 0 8px, transparent 8px 13px);
}
.percorso__piedi::before, .percorso__tappa:not(.percorso__tappa--arrivo)::before {
  content: ""; position: absolute; top: 14px; right: 8px; width: 8px; height: 8px;
  border-top: 2px solid var(--oro); border-right: 2px solid var(--oro); transform: rotate(45deg);
}
.percorso__tappa img { width: 40px; height: 40px; }
.percorso__tondo { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--blu); }
.percorso__tappa strong { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--blu-titolo); white-space: nowrap; }
.percorso__tappa:first-of-type strong { color: var(--rosso); }
.percorso__tappa span { font-size: 12px; color: var(--blu); white-space: nowrap; }

/* ── una passeggiata ──────────────────────────────────────────────── */
.passeggiata { padding: clamp(28px, 3vw, 44px) 0 clamp(26px, 3vw, 40px); }
.passeggiata__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.passeggiata__testo .titolo-sezione { margin-top: 10px; font-size: clamp(2.1rem, 3.5vw, 3.25rem); }
.passeggiata__testo .sotto-sezione { margin-top: 18px; }
.tappe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.tappa__fondo { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-s); }
.tappa { min-width: 0; }
.tappa__fondo {
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--carta) 0, var(--crema) 45%, var(--azzurrino) 100%);
  border: 1px solid var(--azzurrino);
}
.tappa__fondo img { width: 82%; height: auto; aspect-ratio: auto; border-radius: 0; object-fit: contain; margin-bottom: -2%; }
.tappa h3 { margin-top: 8px; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--blu-vivo); line-height: 1.25; }
.tappa p { font-family: var(--sans); font-size: 13px; color: var(--blu); }

/* ── dove siamo ───────────────────────────────────────────────────── */
.dove { padding: clamp(12px, 1.6vw, 20px) 0 clamp(16px, 2vw, 28px); }
.dove__griglia { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: 8px; }
.dove__mappa { position: relative; }
.mappa { margin-top: 10px; border-radius: var(--r-m); overflow: hidden; }
.mappa img { width: 100%; height: clamp(240px, 21vw, 300px); object-fit: cover; object-position: 50% 44%; }
.dove__elenco { border-left: 1px solid var(--oro-chiaro); padding-left: clamp(20px, 2.6vw, 40px); align-self: center; }
.dove__intro { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--blu-titolo); }
.luoghi { display: grid; gap: 12px; margin-top: 16px; }
.luoghi li { display: flex; align-items: center; gap: 16px; font-size: clamp(17px, 1.45vw, 20px); color: var(--blu); line-height: 1.15; }
.luoghi small { font-size: .9em; }
.num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--giallo); color: var(--blu-titolo); font-family: var(--sans); font-size: 13px; font-weight: 700;
}

/* ── da qui, tutta Napoli ─────────────────────────────────────────── */
.collegamenti { background: var(--bianco); overflow: hidden; }
.collegamenti__dentro {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px); align-items: stretch;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}
.collegamenti__testo { padding: clamp(28px, 3vw, 44px) 0; }
.collegamenti__sotto { margin-top: 14px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--blu); }
.collegamenti__centro { padding: clamp(28px, 3vw, 44px) 0; display: flex; flex-direction: column; gap: 22px; }
.mezzi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mezzi li { display: flex; align-items: flex-start; gap: 12px; }
.tondo { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--giallo); }
.tondo img { width: 28px; height: 28px; }
.mezzi p { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--blu); }
.mezzi strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--blu-titolo); line-height: 1.15; margin-bottom: 2px; }
.gite { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gite li { min-width: 0; }
.gite img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); }
.gite span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--blu); }
.collegamenti__img { position: relative; min-height: 260px; }
.collegamenti__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}

/* ── recensioni ───────────────────────────────────────────────────── */
.recensioni { padding: clamp(26px, 3vw, 44px) 0 clamp(26px, 3vw, 44px); background: var(--crema); }
.recensioni__titolo {
  display: flex; align-items: center; gap: 18px;
  font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.9rem); color: var(--blu-titolo); letter-spacing: -0.015em;
}
.recensioni__titolo::after { content: ""; width: 68px; height: 2px; background: var(--oro); border-radius: 2px; }
.recensioni__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 18px; }
.recensione { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-content: start; }
.recensione + .recensione { border-left: 1px solid var(--oro-chiaro); padding-left: clamp(24px, 4vw, 64px); }
.recensione > img { width: 44px; height: 44px; grid-row: span 2; margin-top: 4px; }
.recensione blockquote p { font-style: italic; font-size: clamp(1.3rem, 1.85vw, 1.7rem); line-height: 1.22; color: var(--blu-titolo); }
.recensione figcaption {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--blu-titolo);
}
.recensione figcaption::before { content: ""; width: 60px; height: 2px; background: var(--oro); border-radius: 2px; }

/* ── scegli i giorni ──────────────────────────────────────────────── */
.invito { position: relative; min-height: clamp(260px, 22vw, 330px); overflow: hidden; isolation: isolate; }
.invito { background: var(--crema); }
.invito__img {
  position: absolute; top: 0; bottom: 0; left: 24%; width: 76%; height: 100%; object-fit: cover; object-position: center 46%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.invito__dentro { padding-top: clamp(26px, 2.8vw, 42px); padding-bottom: clamp(26px, 2.8vw, 42px); }
.invito__titolo { font-weight: 700; font-size: clamp(2.2rem, 3.7vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--blu-titolo); }
.invito__titolo em { font-weight: 600; }
.invito__titolo::after { content: ""; display: block; width: 68px; height: 3px; margin-top: 14px; background: var(--oro); border-radius: 2px; }
.invito__azione { display: flex; align-items: center; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.invito__azione p { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--blu-titolo); }

/* ── piè di pagina ────────────────────────────────────────────────── */
.piede { background: var(--blu-notte); color: var(--bianco); }
.piede__dentro {
  display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: clamp(20px, 3.4vw, 52px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: 34px max(var(--gutter), env(safe-area-inset-right, 0px)) 26px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.piede__logo img { width: 260px; }
.piede__menu { display: flex; gap: clamp(18px, 2.6vw, 38px); padding-inline: clamp(20px, 3.4vw, 52px); border-left: 1px solid rgba(255, 255, 255, .35); border-right: 1px solid rgba(255, 255, 255, .35); }
.piede__menu a { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--bianco); text-decoration: none; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .piede__menu a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--giallo); } }
.piede__indirizzo { font-style: normal; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--bianco); }
.piede__vesuvio { width: 190px; justify-self: end; opacity: .9; }
.piede__legale {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .78);
}
.piede__legale a { color: var(--bianco); }
.credit a { font-weight: 600; }

/* ── barra da telefono ────────────────────────────────────────────── */
.barra-tel { display: none; }

/* ── galleria ─────────────────────────────────────────────────────── */
.galleria {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 22, 64, .94); color: var(--bianco);
  overscroll-behavior: contain;
}
.galleria[open] { display: grid; place-items: center; animation: galleria-entra .28s var(--ease-out); }
.galleria::backdrop { background: rgba(0, 22, 64, .6); }
@keyframes galleria-entra { from { opacity: 0; } to { opacity: 1; } }
.galleria__foto { display: grid; justify-items: center; gap: 12px; padding: 64px 72px 56px; max-width: 100%; }
.galleria__foto img { max-width: min(1200px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.galleria__foto figcaption { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.galleria__btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: var(--bianco); cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.galleria__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.galleria__btn:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .galleria__btn:hover { background: rgba(255, 255, 255, .26); } }
.galleria__chiudi { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.galleria__prima { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; margin-top: -26px; }
.galleria__dopo { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; margin-top: -26px; }
.galleria__conta { position: fixed; top: calc(28px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ── 5-bis · il movimento ─────────────────────────────────────────
   Curve e durate di Emil Kowalski (09 § 0-bis-2): entrate con --ease-out, spostamenti con --ease-in-out,
   solo transform e opacity; hero ed entrate allo scroll «da vetrina» (500-900 ms, 20-40 px). */

/* entrate allo scroll, una volta sola */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
/* i gruppi: il contenitore resta fermo, i figli arrivano uno dopo l'altro (60 ms) */
html.js .reveal--figli { opacity: 1; transform: none; }
html.js .reveal--figli > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
html.js .reveal--figli.in > * { opacity: 1; transform: none; }
.reveal--figli > :nth-child(2) { --i: 1; } .reveal--figli > :nth-child(3) { --i: 2; } .reveal--figli > :nth-child(4) { --i: 3; }
.reveal--figli > :nth-child(5) { --i: 4; } .reveal--figli > :nth-child(6) { --i: 5; }
/* il Cristo Velato si svela, da destra verso il testo */
html.js .reveal--velo { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-in-out); }
html.js .reveal--velo.in { clip-path: inset(0 0 0 0); }
html.js .reveal--velo img { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
html.js .reveal--velo.in img { transform: none; }
/* il Vesuvio del piè di pagina si disegna */
html.js .reveal--linea { opacity: .9; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-in-out) .2s; }
html.js .reveal--linea.in { clip-path: inset(0 0 0 0); }

/* la hero entra al caricamento, in CSS: titolo riga per riga, poi il resto; l'immagine non parte mai da opacity 0 */
.hero__testo > * { animation: hero-entra .9s var(--ease-out) both; }
.hero__testo > :nth-child(2) { animation-delay: .07s; }
.hero__testo > :nth-child(3) { animation-delay: .28s; }
.hero__testo > :nth-child(4) { animation-delay: .38s; }
.hero__titolo em { display: inline-block; animation: hero-entra .9s .18s var(--ease-out) both; }
.hero__badge { animation: badge-entra 1s .5s var(--ease-out) both, badge-galleggia 6s 1.6s ease-in-out infinite; }
.hero__sfondo { transform-origin: 62% 42%; will-change: transform; }
@keyframes hero-entra { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes badge-entra { from { opacity: 0; transform: scale(.85) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes badge-galleggia { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* l'intestazione si fa più compatta scorrendo (solo transform, l'altezza non cambia) */
.testata__logo img { transform-origin: left center; transition: transform .3s var(--ease-out); }
.testata.scorsa .testata__logo img { transform: scale(.88); }
.testata__wa { transition: background-color .2s ease, transform .16s var(--ease-out), box-shadow .25s ease; }
.testata.scorsa .testata__wa { box-shadow: 0 8px 20px -12px rgba(0, 50, 140, .8); }

/* profondità: il panorama e il golfo scorrono più piano della pagina (il JS muove solo l'immagine) */
@media (min-width: 768px) {
  .panorama__img { top: -12%; height: 124%; inset-inline: 0; bottom: auto; will-change: transform; }
  .invito__img { top: -8%; height: 116%; bottom: auto; will-change: transform; }
}

/* il percorso: la casa piena col suo cerchio che pulsa, i trattini che camminano */
.percorso__casa {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rosso); box-shadow: 0 6px 14px -6px rgba(200, 30, 20, .7);
}
.percorso__casa img { width: 22px !important; height: 22px !important; }
.percorso__casa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rosso);
  animation: casa-pulsa 2.4s var(--ease-out) infinite;
}
@keyframes casa-pulsa { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.percorso__piedi::after, .percorso__tappa:not(.percorso__tappa--arrivo)::after { animation: cammina 1.1s linear infinite; }
@keyframes cammina { from { background-position: 0 0; } to { background-position: 13px 0; } }
.conta { display: inline-block; min-width: 1.9ch; text-align: left; font-variant-numeric: tabular-nums; }

/* le card dei monumenti: si toccano e si aprono grandi */
.tappa__apri {
  display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--r-s);
  overflow: hidden; background: var(--azzurrino); cursor: zoom-in;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .16s var(--ease-out), box-shadow .3s ease;
}
.tappa__apri img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; transition: transform .7s var(--ease-out); }
.tappa__apri.tappa__fondo img { width: 82%; height: auto; object-fit: contain; margin: 0 auto -2%; }
.tappa__apri:active { transform: scale(.97); }
.tappa h3 { transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .tappa__apri:hover { box-shadow: 0 14px 28px -18px rgba(0, 40, 110, .55); }
  .tappa__apri:hover img { transform: scale(1.06); }
  .tappa:hover h3 { color: var(--blu-titolo); }
  .gite li:hover img { transform: translateY(-3px); box-shadow: 0 12px 22px -16px rgba(0, 40, 110, .6); }
}
.gite img { transition: transform .4s var(--ease-out), box-shadow .3s ease; }
.foto__apri { transition: transform .16s var(--ease-out); }
.foto__apri:active { transform: scale(.97); }
.recensione > img { transition: transform .6s var(--ease-out) .25s; }
html.js .recensioni__griglia:not(.in) .recensione > img { transform: scale(.7) rotate(-12deg); }

/* il calendario: il mese nuovo arriva dal lato della freccia */
.cal__giorni.va-dopo { animation: mese-dopo .26s var(--ease-out); }
.cal__giorni.va-prima { animation: mese-prima .26s var(--ease-out); }
@keyframes mese-dopo { from { opacity: .3; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes mese-prima { from { opacity: .3; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.giorno--inizio span, .giorno--fine span { box-shadow: 0 6px 14px -8px rgba(0, 72, 220, .9); }

/* le righe che scorrono col dito non tirano la pagina (niente «indietro» per sbaglio) */
.schede, .ambiente, .tappe, .gite, .mappa { overscroll-behavior-x: contain; }

/* il menu da telefono: le voci arrivano una dopo l'altra, la chiusura è più rapida */
.menu__voci li, .menu__wa { transition: opacity .2s ease, transform .2s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* meno movimento, non zero: restano le dissolvenze, spariscono gli spostamenti */
  html.js .reveal, html.js .reveal--figli > * { transform: none; transition: opacity .5s ease; transition-delay: 0s; }
  html.js .reveal--velo { clip-path: none; opacity: 0; transition: opacity .6s ease; }
  html.js .reveal--velo.in { opacity: 1; }
  html.js .reveal--velo img { transform: none; }
  html.js .reveal--linea { clip-path: none; }
  .hero__testo > *, .hero__titolo em { animation-name: hero-dissolve; }
  .hero__badge { animation: hero-dissolve .6s .2s ease both; }
  .ambiente, .cal__giorni.va-dopo, .cal__giorni.va-prima { animation-name: hero-dissolve; }
  .percorso__casa::after { animation: none; opacity: 0; }
  .percorso__piedi::after, .percorso__tappa:not(.percorso__tappa--arrivo)::after { animation-duration: 8s; }
  html.js .recensioni__griglia:not(.in) .recensione > img { transform: none; }
  .foto__apri img, .tappa__apri img, .gite img { transition: none; }
  .testata__logo img { transition: none; }
}
@keyframes hero-dissolve { from { opacity: 0; } to { opacity: 1; } }

/* ── tablet ───────────────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .disponibilita__campi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .disponibilita__campi .btn { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .testata__logo img { width: 190px; }
  .menu__voci { gap: 22px; }
  .hero__sfondo { left: 44%; }
  .hero__testo { max-width: calc(44vw - var(--gutter) - 8px); }
  .hero__titolo { font-size: clamp(2.9rem, 6vw, 4.4rem); }
  .hero__sotto { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
  .hero__casa { gap: 18px; }
  .hero__casa > img { width: clamp(120px, 14vw, 160px); }
  .hero__casa p { font-size: 1.1rem; }
  .disponibilita__campi { grid-template-columns: 1fr 1fr; }
  .disponibilita__campi .btn { grid-column: 1 / -1; }
  .collegamenti__dentro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .collegamenti__img { display: none; }
  .piede__dentro { grid-template-columns: auto 1fr; }
  .piede__menu { border: 0; padding: 0; justify-content: flex-end; }
  .piede__vesuvio { display: none; }
}

/* ── telefono ─────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1000px) {
  .testata__dentro { gap: 16px; }
  .testata__logo img { width: 170px; }
  .menu__voci { gap: 18px; }
  .menu__voci a { font-size: 15px; }
  .testata__wa { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
  .testata__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero__badge { width: 110px; left: 76%; }
}

@media (max-width: 767px) {
  :root { --testata: 64px; }
  body { font-size: 17px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .testata__dentro { gap: 10px; }
  .testata__logo img { width: 150px; }
  .testata__destra { margin-left: auto; gap: 8px; }
  .testata__wa { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
  .testata__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .testata__apri {
    display: grid; align-content: center; justify-items: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--celeste-chiaro); background: var(--bianco); cursor: pointer;
    -webkit-user-select: none; user-select: none;
  }
  .testata__apri span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--blu); transition: transform .3s var(--ease-out), opacity .2s ease; }
  .testata__apri[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .testata__apri[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .testata__apri[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: fixed; inset: calc(var(--testata) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    height: calc(100dvh - var(--testata) - env(safe-area-inset-top, 0px));
    flex-direction: column; justify-content: flex-start; gap: 28px;
    padding: 28px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--crema);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .menu.aperto { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s; }
  .menu:not(.aperto) .menu__voci li, .menu:not(.aperto) .menu__wa { opacity: 0; transform: translateY(14px); }
  .menu.aperto .menu__voci li, .menu.aperto .menu__wa { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  .menu.aperto .menu__voci li:nth-child(2) { transition-delay: .05s; }
  .menu.aperto .menu__voci li:nth-child(3) { transition-delay: .1s; }
  .menu.aperto .menu__wa { transition-delay: .15s; }
  .menu__voci { flex-direction: column; gap: 4px; }
  .menu__voci a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--blu-titolo); border-bottom: 1px solid var(--azzurrino); }
  .menu__voci a::after { display: none; }
  .menu__wa { display: inline-flex; align-self: flex-start; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__sfondo { position: relative; order: 2; left: auto; right: auto; width: 100%; height: auto; z-index: 0; }
  .hero__sfondo img { position: relative; height: auto; aspect-ratio: 1100 / 746; object-position: center; -webkit-mask-image: none; mask-image: none; }
  .hero__testo { max-width: none; }
  .hero__dentro { width: 100%; }
  .hero__dentro { order: 1; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .hero__badge { width: 96px; left: auto; right: 14px; top: auto; bottom: calc(100vw * 746 / 1100 - 110px); }
  .occhiello--hero { font-size: 12.5px; }
  .hero__titolo { font-size: clamp(2.6rem, 12.4vw, 3.4rem); margin-top: 10px; }
  .hero__sotto { font-size: 1.35rem; margin-top: 12px; }
  .hero__casa { gap: 16px; margin-top: 18px; }
  .hero__casa > img { width: 128px; }
  .hero__casa p { font-size: 1.05rem; margin-bottom: 8px; }
  .link-freccia { font-size: 15px; }

  .disponibilita { margin-top: -36px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .disponibilita__scheda { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 16px; border-radius: 18px; }
  .disponibilita__titolo { font-size: 1.85rem; }
  .cal { margin-top: 14px; }
  .giorno { height: 40px; }
  .giorno span { width: 38px; height: 38px; }
  .disponibilita__campi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .campo-data { padding: 8px 10px; gap: 8px; }
  .campo-data img { width: 22px; height: 22px; }
  .campo-data strong { font-size: 14px; }
  .btn--grande { min-height: 54px; font-size: 16px; padding-inline: 18px; }
  .legenda { font-size: 13px; }

  .schede { display: flex; overflow-x: auto; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .schede::-webkit-scrollbar { display: none; }
  .schede__voce { flex: none; scroll-snap-align: start; font-size: 16px; padding-inline: 18px; }
  .ambiente, .ambiente[data-n] {
    display: flex; overflow-x: auto; gap: 12px; grid-template-rows: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .ambiente::-webkit-scrollbar { display: none; }
  .ambiente[hidden] { display: none; }
  .ambiente .foto { flex: 0 0 82%; scroll-snap-align: start; grid-column: auto !important; grid-row: auto !important; }
  .foto__apri { aspect-ratio: 4 / 3; height: auto; }
  .ambiente--verticale .foto { flex-basis: 62%; }
  .ambiente--verticale .foto__apri { aspect-ratio: 3 / 4; }
  .foto figcaption { font-size: 16px; }
  .casa__piede { flex-direction: column; align-items: stretch; }
  .dotazioni { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .dotazioni li { font-size: 15px; gap: 10px; }
  .dotazioni img { width: 32px; height: 32px; }

  .panorama { min-height: 0; display: flex; flex-direction: column; background: var(--crema); }
  .panorama__img {
    position: relative; inset: auto; order: 2; z-index: 0; height: 230px; object-position: 50% 78%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%); mask-image: linear-gradient(180deg, transparent 0, #000 34%);
    margin-top: -40px;
  }
  .panorama__dentro { order: 1; flex-direction: column; gap: 10px; padding-top: 28px; padding-bottom: 0; position: relative; z-index: 1; }
  .panorama__titolo { font-size: 2.45rem; }
  .panorama__base { padding: 0; }

  .meraviglia { min-height: 0; display: flex; flex-direction: column; }
  .meraviglia__img { position: relative; width: 100%; height: 220px; order: 2; }
  .meraviglia__img img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .meraviglia__dentro { order: 1; padding-top: 28px; padding-bottom: 8px; }
  .percorso__piedi, .percorso__tappa { padding-right: 40px; }
  .percorso__piedi::after, .percorso__tappa:not(.percorso__tappa--arrivo)::after { width: 24px; right: 8px; }

  .passeggiata__griglia { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tappe { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tappe::-webkit-scrollbar { display: none; }
  .tappa { flex: 0 0 72%; scroll-snap-align: start; }

  .dove__griglia { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mappa { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; overflow-x: auto; scrollbar-width: none; }
  .mappa::-webkit-scrollbar { display: none; }
  .mappa img { width: 600px; max-width: none; height: auto; }
  .dove__elenco { border-left: 0; padding-left: 0; }

  .collegamenti__dentro { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .collegamenti__testo { padding-bottom: 0; }
  .collegamenti__centro { padding-top: 20px; }
  .mezzi { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mezzi strong br { display: none; }
  .gite { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .gite::-webkit-scrollbar { display: none; }
  .gite li { flex: 0 0 46%; scroll-snap-align: start; }

  .recensioni__griglia { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .recensione + .recensione { border-left: 0; padding-left: 0; border-top: 1px solid var(--oro-chiaro); padding-top: 22px; }
  .recensione { gap: 6px 16px; }
  .recensione > img { width: 34px; height: 34px; }

  .invito { min-height: 0; }
  .invito::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(254, 251, 246, .92) 0, rgba(254, 251, 246, .7) 48%, rgba(254, 251, 246, 0) 78%); }
  .invito__img { left: 0; width: 100%; object-position: 34% 50%; -webkit-mask-image: none; mask-image: none; }
  .invito__dentro { padding-top: 28px; padding-bottom: 150px; }
  .invito__azione { gap: 14px; }

  .piede__dentro { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 30px; }
  .piede__logo img { width: 230px; }
  .piede__menu { justify-content: flex-start; flex-wrap: wrap; gap: 6px 22px; }
  .piede__legale { flex-direction: column; }

  .barra-tel {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 60px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--blu); color: var(--bianco);
    font-family: var(--sans); font-size: 16px; font-weight: 700; text-decoration: none;
    box-shadow: 0 -8px 24px -14px rgba(0, 30, 90, .6);
    -webkit-user-select: none; user-select: none;
    transition: transform .3s var(--ease-out);
  }
  .barra-tel img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
  .barra-tel:active { background: var(--blu-notte); }
  .barra-tel.nascosta { transform: translateY(110%); }

  .galleria__foto { padding: 64px 12px 72px; }
  .galleria__prima, .galleria__dopo { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
}

@media (max-width: 360px) {
  .percorso__piedi, .percorso__tappa { padding-right: 30px; }
  .percorso__piedi::after, .percorso__tappa:not(.percorso__tappa--arrivo)::after { width: 16px; right: 7px; }
  .percorso__piedi::before, .percorso__tappa:not(.percorso__tappa--arrivo)::before { right: 6px; }
  .percorso__tappa strong { font-size: 12px; }
  .testata__logo img { width: 128px; }
  .testata__wa, .testata__apri { width: 44px; height: 44px; min-height: 44px; }
  .hero__casa > img { width: 104px; }
  .campo-data small { font-size: 11px; }
  .campo-data strong { font-size: 13px; }
}

/* ── pagine interne: legali e 404 ─────────────────────────────────── */
.interna { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.interna__dentro { max-width: calc(860px + 2 * var(--gutter)); }
.legale { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--blu); }
.legale h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--blu-titolo); margin-bottom: 8px; }
.legale h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; color: var(--blu-titolo); margin: 32px 0 8px; }
.legale h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; margin: 22px 0 6px; color: var(--blu-titolo); }
.legale p, .legale ul, .legale ol, .legale table { margin: 0 0 12px; }
.legale ul { list-style: disc; padding-left: 22px; }
.legale ol { list-style: decimal; padding-left: 22px; }
.legale li { margin-bottom: 6px; }
.legale a { color: var(--blu-vivo); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legale table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legale th, .legale td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--azzurrino); }
.legale th { background: var(--azzurrino); }
.pagina-404 { padding: 20px 0 40px; }
.pagina-404 .titolo-sezione { margin-top: 12px; }
.pagina-404__azioni { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.tappa__apri.tappa__fondo {
  display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--carta) 0, var(--crema) 45%, var(--azzurrino) 100%);
  border: 1px solid var(--azzurrino);
}
