/* ============================================================================
   Camping La Roccia — sistema condiviso "Calce, pietra e blu" (redesign 2027)
   Unica fonte di verità per token, tipografia e componenti. Ogni pagina la
   include con <link rel="stylesheet" href="/tokens.css" /> e tiene inline SOLO
   le regole che le appartengono davvero.

   Il mondo: calce bianca dei muri, pietra a secco, il blu vernice delle
   ringhiere della terrazza. Il turchese del mare vive nelle fotografie, non
   nella vernice dell'interfaccia.

   Regole che non si rinegoziano (decise con il committente):
   · niente card: si compone con foto, colonne aperte, elenchi e filetti
   · niente corsivi, niente occhielli/eyebrow, niente numerazioni decorative
   · niente gradienti, niente ombre decorative, foto ad angolo vivo
   · una parola colorata dentro un titolo NON è un'enfasi del sistema
   · Prenota conserva il blu e porta alla richiesta di preventivo (/preventivo)
   ========================================================================== */
/* caratteri: dal nostro server (prima da Google Fonts, che bloccava la pagina e arrivava tardi sul telefono) */
@font-face {font-family: 'Archivo'; font-style: normal; font-weight: 500 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Archivo'; font-style: normal; font-weight: 500 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-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: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/schibsted-grotesk-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; }


:root {
  /* materia */
  --calce: #f7f7f4;          /* fondo: calce al sole, neutra, non crema */
  --bianco: #ffffff;         /* campi dei moduli */
  --pietra: #ecebe5;         /* seconda superficie, la pietra in ombra */
  --ink: #202725;            /* inchiostro: 14.2:1 su calce */
  --ink-2: #5a625f;          /* testo secondario: 5.85:1 su calce, 5.25 su pietra */
  --line: rgba(32, 39, 37, .16);   /* filetti di composizione */
  --line-strong: #747d79;    /* contorni dei controlli: 3.95:1 (>=3 per i non-testo) */

  /* il blu delle ringhiere: Prenota, chiusura, footer. Bianco sopra: 5.41:1 */
  --blu: #006fae;
  --blu-deep: #00578a;       /* hover, e testo blu piccolo: 7.17:1 su calce */
  --on-blu: #ffffff;
  --danger: #a3261b;         /* errori dei moduli: 6.6:1 su calce */

  /* accento del tema in vigore (link, filetti attivi). Mare = blu ringhiera */
  --accent: #006fae;
  --accent-ink: #00578a;     /* l'accento come TESTO leggibile */
  --bg: var(--calce);

  /* scala tipografica */
  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-text: 'Schibsted Grotesk', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --t-mega: clamp(3.4rem, 10.2vw, 9.6rem);   /* una parola monumentale per pagina, al massimo */
  --t-h1: clamp(2.75rem, 6.6vw, 6rem);
  --t-h2: clamp(2.15rem, 4.5vw, 4.1rem);
  --t-h3: clamp(1.32rem, 1.7vw, 1.7rem);
  --t-lead: clamp(1.14rem, 1.35vw, 1.32rem);
  --t-body: clamp(1.02rem, .98rem + .18vw, 1.125rem);
  --t-small: .9rem;
  --t-micro: .8rem;

  /* spazio */
  --maxw: 1280px;
  --gutter: clamp(1.15rem, 4.6vw, 4.5rem);
  --sp-section: clamp(4.5rem, 10vw, 9rem);   /* tra capitoli */
  --sp-block: clamp(2.2rem, 4.4vw, 3.6rem);  /* dentro un capitolo */
  --nav-h: 68px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* ---- alias per le pagine non ancora migrate (vecchi nomi → nuovi valori) ---- */
  --sea: var(--accent);
  --sea-bright: var(--accent);
  --sea-deep: var(--accent-ink);
  --abisso: #172b4d;
  --on-accent: #ffffff;
  --panel: var(--bianco);
  --mist: var(--pietra);
  --mist-line: var(--line);
  --sand: var(--pietra);
  --ink-70: var(--ink-2);
  --ink-50: var(--ink-2);
  --shadow: none;
  color-scheme: light;
}

/* ============================================================================
   TEMI — l'ora del giorno la decide il CONTENUTO, mai l'orologio.
   Pagina intera: <body data-theme="…">. Sezione: <section data-section="…">.
   Navbar allo scroll: data-nav="…" sulla sezione (vedi nav.js).
   Il logo dell'arco cambia con il tema, sempre.
   ========================================================================== */
[data-theme="bosco"], [data-section="bosco"] {
  --accent: #315b43;          /* macchia e pineta: 7.22:1 su calce */
  --accent-ink: #315b43;
}
[data-theme="tramonto"], [data-section="tramonto"] {
  --accent: #b34b17;          /* aperitivo: 4.97:1 su calce */
  --accent-ink: #9a3f12;
}
[data-theme="sera"], [data-section="sera"] {
  --bg: #172b4d;              /* la cena: blu notte pieno, piatto */
  --calce: #172b4d;
  --pietra: #1f3760;
  --bianco: #213b66;
  --ink: #f7f7f4;             /* 13.1:1 */
  --ink-2: #b9c3d3;           /* 7.9:1 */
  --line: rgba(247, 247, 244, .2);
  --line-strong: #8d9ab0;
  --accent: #7bd5d5;          /* riflesso sull'acqua: 8.27:1 */
  --accent-ink: #7bd5d5;
  --abisso: #0e1d36;
  color-scheme: dark;
}
[data-section] { background: var(--bg); color: var(--ink); }

/* ============================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.58;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: proportional-nums;
  overflow-x: clip;
  caret-color: var(--accent);
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
em, i, cite { font-style: normal; }           /* niente corsivi: l'enfasi è peso */
em { font-weight: 600; }
strong, b { font-weight: 600; }
::selection { background: var(--blu); color: var(--on-blu); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
[data-theme="sera"] :focus-visible, [data-section="sera"] :focus-visible { outline-color: var(--accent); }
html { scrollbar-color: color-mix(in srgb, var(--ink) 38%, transparent) transparent; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .7rem; left: .7rem; z-index: 300;
  padding: .75rem 1.1rem; background: var(--ink); color: var(--calce); font-weight: 600;
  transform: translateY(-220%); transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ============================================================================
   TIPOGRAFIA
   Archivo stretto per la voce dell'insegna (titoli), Schibsted per leggere.
   ========================================================================== */
.t-mega, .t-h1, .t-h2, h1, h2 {
  font-family: var(--f-display);
  font-stretch: 78%;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: .96;
  text-wrap: balance;
  color: var(--ink);
}
.t-mega { font-size: var(--t-mega); font-stretch: 72%; line-height: .9; letter-spacing: -.005em; }
h1, .t-h1 { font-size: var(--t-h1); }
h2, .t-h2 { font-size: var(--t-h2); font-stretch: 86%; font-weight: 640; line-height: 1.04; letter-spacing: -.01em; }
h3, .t-h3 {
  font-family: var(--f-text);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
/* <em> dentro un titolo: niente parola colorata di sistema, niente serif */
h1 em, h2 em, h3 em, h4 em { font-style: normal; font-weight: inherit; color: inherit; font-family: inherit; }
p { text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--ink-2); }
.note { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }   /* solo cifre: con virgole e due punti usa testo normale */

/* testo lungo (articoli, storie, regolamento) */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-top: 2.2em; }
.prose h3 { margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
/* pagine legali: il testo comincia da un titolo, che non ripete il filo già tracciato sopra l'articolo */
.legal .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-2); }
.prose blockquote {
  font-family: var(--f-display); font-stretch: 82%; font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.01em;
  max-width: 24ch; margin-block: 1.6em;
}
.prose figure { margin-block: 2em; }

/* ============================================================================
   LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(66ch + var(--gutter) * 2); }
.chapter { padding-block: var(--sp-section); }
.chapter--tight { padding-block: var(--sp-block); }
.rule { border: 0; border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* due colonne aperte: testo + foto, nessun contenitore */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--wide-media { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split--wide-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split__sticky { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
@media (max-width: 860px) {
  .split, .split--wide-media, .split--wide-text { grid-template-columns: 1fr; }
  .split__sticky, .fig.split__sticky { position: static; }
}

/* ============================================================================
   FOTOGRAFIA — angolo vivo, didascalia sotto, mai testo dentro un riquadro
   ========================================================================== */
.fig { position: relative; }
.fig img { width: 100%; height: 100%; object-fit: cover; background: var(--pietra); }
.fig figcaption, .caption {
  margin-top: .65rem; font-size: var(--t-micro); line-height: 1.45; color: var(--ink-2); max-width: 52ch;
}
.fig--43 img { aspect-ratio: 4 / 3; }
.fig--32 img { aspect-ratio: 3 / 2; }
.fig--45 img { aspect-ratio: 4 / 5; }
.fig--wide img { aspect-ratio: 21 / 9; }
.bleed { width: 100%; }
.bleed img { width: 100%; height: clamp(320px, 62vh, 760px); object-fit: cover; }

/* ============================================================================
   AZIONI
   ========================================================================== */
.btn {
  --b-bg: var(--ink); --b-fg: var(--calce); --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem;
  background: var(--b-bg); color: var(--b-fg);
  border: 1.5px solid var(--b-bd); border-radius: 2px;
  font-family: var(--f-text); font-size: 1rem; font-weight: 600; line-height: 1.1;
  letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .16s ease-out;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { --b-bg: color-mix(in srgb, var(--ink) 86%, var(--calce)); }
/* Prenota: sempre il blu ringhiera, su ogni pagina e ogni tema */
.btn--book { --b-bg: var(--blu); --b-fg: var(--on-blu); --b-bd: var(--blu); }
.btn--book:hover { --b-bg: var(--blu-deep); --b-bd: var(--blu-deep); }
/* preventivo e azioni secondarie: solo il filo */
.btn--line { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn--line:hover { --b-bg: var(--ink); --b-fg: var(--calce); }
/* su foto o su campo blu */
.btn--light { --b-bg: var(--calce); --b-fg: var(--blu-deep); --b-bd: var(--calce); }
.btn--light:hover { --b-bg: #fff; --b-bd: #fff; }
.btn--ghost-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .9); }
.btn--ghost-light:hover { --b-bg: #fff; --b-fg: var(--ink); }
[data-theme="sera"] .btn--line, [data-section="sera"] .btn--line { --b-fg: var(--ink); --b-bd: var(--ink); }
[data-theme="sera"] .btn--line:hover, [data-section="sera"] .btn--line:hover { --b-bg: var(--ink); --b-fg: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* collegamento testuale con freccia: "vai a" */
.go {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--accent-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color .18s;
}
.go::after {
  content: ''; width: .95em; height: .95em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.go:hover { text-decoration-color: currentColor; }
/* si muove solo la freccia (transform): allargando il gap i collegamenti accanto si spostavano */
@media (hover: hover) { .go:hover::after { transform: translateX(.2rem); } }
.go--light { color: #fff; }
/* col dito un link isolato offre almeno 44 px d'altezza; col mouse resta com'è */
@media (pointer: coarse) { .go { min-height: 44px; } }

/* percorso */
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem .55rem; font-size: var(--t-micro); color: var(--ink-2); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .6; }

/* ============================================================================
   TESTATA DI PAGINA — due varianti
   .ph        : titolo su calce + foto grande sotto (pagine di prodotto/indice)
   .ph--photo : foto a tutto schermo, titolo in basso a sinistra (luoghi, storie)
   ========================================================================== */
.ph { padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4.2rem)); }
.ph__head { display: grid; gap: 1.1rem; }
.ph__head .lead { margin-top: .3rem; }
.ph__head .actions { margin-top: .9rem; }
.ph__media { margin-top: clamp(2rem, 4.5vw, 3.6rem); }
.ph__media img { width: 100%; height: clamp(300px, 64vh, 760px); object-fit: cover; }

.ph--photo {
  position: relative; min-height: 88vh; min-height: 88svh; padding: 0;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.ph--photo > img, .ph--photo .ph__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
/* velo solo dove sta il testo: in basso a sinistra, neutro */
.ph--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 16, 15, .62) 0%, rgba(12, 16, 15, .28) 34%, rgba(12, 16, 15, 0) 60%),
    linear-gradient(to bottom, rgba(12, 16, 15, .32) 0, rgba(12, 16, 15, 0) 140px);
}
.ph--photo .ph__head { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.ph--photo h1, .ph--photo .lead { color: #fff; text-shadow: 0 1px 24px rgba(12, 16, 15, .35); }
.ph--photo .crumbs { font-size: var(--t-small); font-weight: 500; text-shadow: 0 1px 2px rgba(12, 16, 15, .6), 0 0 18px rgba(12, 16, 15, .55); }
.ph--photo .crumbs, .ph--photo .crumbs a { color: #fff; text-decoration-color: rgba(255, 255, 255, .75); }

/* ============================================================================
   ELENCHI APERTI — al posto delle griglie di card
   <ul class="rows"><li><a class="row" href>…</a></li></ul>
   ========================================================================== */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 2rem; align-items: baseline;
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
  transition: color .18s var(--ease);
}
.row__title { font-family: var(--f-text); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.row__text { grid-column: 1; color: var(--ink-2); max-width: 60ch; }
.row__meta { grid-column: 2; grid-row: 1; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; text-align: right; }
.row__meta b { color: var(--ink); font-weight: 600; }
a.row:hover .row__title, a.row:focus-visible .row__title { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* riga con miniatura (solo dove la foto distingue davvero la voce) */
.row--thumb { grid-template-columns: clamp(96px, 14vw, 168px) minmax(0, 1fr) auto; column-gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.row--thumb .row__img { grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pietra); }
.row--thumb .row__text { grid-column: 2; }
.row--thumb .row__meta { grid-column: 3; }
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .row__meta { grid-column: 1; grid-row: auto; text-align: left; white-space: normal; }
  .row--thumb { grid-template-columns: 88px minmax(0, 1fr); }
  .row--thumb .row__img { grid-row: 1 / span 3; align-self: start; }
  .row--thumb .row__meta { grid-column: 2; }
}

/* dati in riga: "4 ospiti · 2 camere · aria condizionata" */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 1rem 1.2rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-micro); color: var(--ink-2); }
.facts dd { font-weight: 600; margin-top: .15rem; }

/* ============================================================================
   TABELLE (listini) — cifre tabulari, unità esplicita
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table td.num, .table .num { font-variant-numeric: tabular-nums lining-nums; }   /* solo le celle di cifre: con le virgole il tabulare le allarga */
.table caption { text-align: left; font-size: var(--t-small); color: var(--ink-2); padding-bottom: .8rem; }
.table th, .table td { padding: .85rem 1rem .85rem 0; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); vertical-align: bottom; white-space: normal; border-bottom-color: var(--ink); }
.table tbody th { font-weight: 600; }
.table tbody tr:hover > * { background: color-mix(in srgb, var(--pietra) 70%, transparent); }

/* ============================================================================
   MODULI
   ========================================================================== */
.field { display: grid; gap: .4rem; }
.field > span, .field > label, .label { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  background: var(--bianco); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 2px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
.hint { font-size: var(--t-micro); color: var(--ink-2); }
.error { font-size: var(--t-small); color: var(--danger); font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--danger); }

/* ============================================================================
   GALLERIA A NASTRO — scorre in orizzontale per scelta, con frecce
   ========================================================================== */
.rail { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > figure { flex: none; width: clamp(260px, 38vw, 560px); scroll-snap-align: start; }
.rail > figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pietra); cursor: zoom-in; }
.rail-ctrl { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.rail-ctrl button { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 2px; color: var(--ink); transition: background .15s, color .15s; }
.rail-ctrl button:hover { background: var(--ink); color: var(--calce); border-color: var(--ink); }
.rail-ctrl button:disabled { opacity: .35; pointer-events: none; }
.rail-ctrl svg { width: 20px; height: 20px; }

/* ============================================================================
   CAMPO BLU — chiusura delle pagine (Prenota / Preventivo / contatti)
   Si salda al footer: <section class="close"> subito prima di #site-footer.
   ========================================================================== */
.close { background: var(--blu); color: var(--on-blu); padding-block: var(--sp-section) clamp(3rem, 6vw, 5rem); }
.close h2 { color: #fff; max-width: 16ch; }
.close p { color: #fff; max-width: 52ch; }
.close h2 + p { margin-top: 1.1rem; }
.close .go { color: #fff; }
.close__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2rem; }
.close__direct { display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .35); font-weight: 600; }
.close__direct a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: .25em; }
.close__direct a:hover { text-decoration-color: #fff; }

/* ============================================================================
   MOVIMENTO — un'entrata sola e sobria; il contenuto è visibile per default
   (la classe .js-reveal la mette nav.js solo quando può osservare)
   ========================================================================== */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================================
   SEO VISIBILE
   .h1-luogo : il luogo in seconda riga dentro l'h1 ("Diving Center / a Lampedusa"),
               più piccolo e meno pesante del titolo: si legge come una riga di
               completamento, non come un'etichetta
   .rn-static: il menù scritto nell'HTML (lo leggono i motori di ricerca); nav.js lo
               sostituisce al caricamento con la barra vera
   ========================================================================== */
.h1-luogo { display: block; margin-top: .3em; font-size: .4em; font-stretch: 100%; font-weight: 500; letter-spacing: 0; line-height: 1.2; opacity: .78; }
.rn-static { position: absolute; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 1.4rem; padding-inline: var(--gutter); font-weight: 500; font-size: 1rem; white-space: nowrap; }
.rn-static__brand { margin-right: auto; font-family: var(--f-display); font-stretch: 80%; font-weight: 700; }
.rn-static ul { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.rn-static li { position: relative; }
.rn-static li ul { position: absolute; top: 100%; left: -1rem; display: none; flex-direction: column; gap: 0; min-width: 16rem; padding: .6rem 0; background: var(--calce); color: var(--ink); border: 1px solid var(--line); }
.rn-static li ul a { display: block; padding: .4rem 1rem; }
.rn-static li:hover > ul, .rn-static li:focus-within > ul { display: flex; }
@media (max-width: 860px) { .rn-static > ul { display: none; } }
