/* =========================================================
   Hotel Alla Nave — prototipo restyling v2
   Editoriale: titoli grandi in Forum maiuscolo, immagini a tutta larghezza.
   ========================================================= */

/* font ospitati sul sito (licenza SIL OFL), stessi file e stessi sottoinsiemi di Google Fonts.
   Le versioni latin sono precaricate nel <head>; latin-ext si scarica solo se serve. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/figtree-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: "Figtree"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/figtree-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: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/forum-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: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/forum-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 di riserva calibrati: finché Figtree e Forum non sono caricati (o se non si caricano) il testo usa
   Arial e Times New Roman ridimensionati sulle loro misure, così al cambio di font il testo non si sposta (CLS).
   Valori misurati con fontTools sui file del sito (larghezza media su un testo campione, ascender e descender). */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 95.94%; ascent-override: 99.03%; descent-override: 26.06%; line-gap-override: 0%; }
@font-face { font-family: "Forum Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 92.4%; ascent-override: 92.64%; descent-override: 26.84%; line-gap-override: 0%; }

:root {
  /* palette cliente */
  --accent: #750305;
  --ink: #332825;
  --beige: #C5A98F;
  --taupe: #BEA6A1;
  --bg: #F3ECE7;

  /* derivati */
  --paper: #F8F4F0;
  --sand: #E8DED5;
  --ink-soft: #5E4F4A;
  --muted: #6F605A; /* contrasto >= 4.5:1 su bg, paper e sand */
  --focus: var(--accent); /* colore dell'anello di focus; chiaro sugli sfondi scuri */
  --cream: #F3ECE7;
  --cream-dim: rgba(243, 236, 231, .74);
  --rule: rgba(51, 40, 37, .16);
  --rule-light: rgba(243, 236, 231, .22);
  --accent-deep: #560203;

  --f-display: "Forum", "Forum Fallback", "Times New Roman", serif;
  --f-body: "Figtree", "Figtree Fallback", system-ui, sans-serif;

  --gutter: clamp(16px, 3.6vw, 56px);
  --max: 1600px;
  /* larghezza utile della finestra: 100vw meno la barra di scorrimento (--sbw, misurata in main.js) */
  --vw: calc(100vw - var(--sbw, 0px));
  /* distanza tra il bordo della finestra e il margine del contenuto di .wrap */
  --page-pad: max(var(--gutter), calc((var(--vw) - var(--max)) / 2 + var(--gutter)));
  --sp-section: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1); /* easeOutCubic (easings.net): più morbida di --ease */
  --hdr-h: 92px;

  /* scala testi: corpo 17px su mobile, 20px su desktop; lead 18 -> 21px; titoli h3 */
  --fs-body: clamp(1.0625rem, .95rem + .35vw, 1.25rem);
  --fs-lead: clamp(1.125rem, 1rem + .35vw, 1.3125rem);
  --fs-h3: 1.9rem;
  --fs-small: 1.0625rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* sugli sfondi scuri (o su foto) l'anello bordeaux non si vede: diventa crema */
/* stesso motivo per il bordeaux dei link sottolineati all'hover (--link-hover): sullo scuro resta il colore del testo */
:root { --link-hover: var(--accent); }
:where(.dark, .wine, .ftr, .hero, .phero:not(.phero--short), .band, .closing, .mega, .pswp),
.hdr--over:not(.is-solid):not(.is-open) { --focus: var(--cream); --link-hover: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); }
.skip:focus { top: 16px; }
#main:focus { outline: none; }

.ico { display: inline-block; flex: none; line-height: 1; }

/* ---------- tipografia ---------- */
.d-xxl, .d-xl, .d-l, .d-m, .d-s { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; }
.d-xxl { font-size: clamp(3.4rem, 11.2vw, 11.5rem); line-height: .86; }
.d-xl  { font-size: clamp(2.9rem, 8vw, 8.2rem); line-height: .9; }
.d-l   { font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: .94; }
.d-m   { font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1; }
.d-s   { font-size: clamp(1.75rem, 2.4vw, 2.35rem); line-height: 1.08; }
.serif { font-family: var(--f-display); font-weight: 400; }
.statement { font-family: var(--f-display); font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.14; letter-spacing: -.005em; }
.label { font: 500 1.0625rem/1.4 var(--f-body); letter-spacing: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.dark .muted, .wine .muted { color: var(--cream-dim); }
.accent { color: var(--accent); }
/* andate a capo: titoli con righe di lunghezza simile, paragrafi senza una parola sola sull'ultima riga.
   Le proprietà "-style" non toccano white-space/nowrap; :where() lascia la specificità a zero.
   Dove non sono supportate il testo va a capo come prima. */
:where(h1, h2, h3, h4) { text-wrap-style: balance; }
:where(p, li, dd, blockquote, figcaption) { text-wrap-style: pretty; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--s { padding-block: calc(var(--sp-section) * .55); }
.dark { background: var(--ink); color: var(--cream); }
.paper { background: var(--paper); }
.sand { background: var(--sand); }
.wine { background: var(--accent); color: var(--cream); }

.sec-head { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-bottom: clamp(48px, 7vw, 104px); }
.sec-head > p { max-width: 32em; }
.sec-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.sec-head--row > div:first-child { display: grid; gap: clamp(22px, 2.6vw, 36px); }

/* ---------- link e bottoni ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--cream); --b-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 500 1.15rem/1 var(--f-body);
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform 160ms var(--ease);
}
.btn:hover { --b-bg: var(--accent-deep); --b-bd: var(--accent-deep); }
.btn .ico { font-size: 17px; transition: transform .35s var(--ease); }
/* movimento all'hover solo con il mouse: sul touch il tocco darebbe un falso hover */
@media (hover: hover) and (pointer: fine) { .btn:hover .ico { transform: translate(2px, -2px); } }
/* pressione: riscontro immediato, anche su telefono dove l'hover non c'è */
.btn:active, .hdr__book:active, .rail-btn:not([aria-disabled="true"]):not(:disabled):active { transform: scale(.97); }
.btn--light { --b-bg: var(--cream); --b-fg: var(--ink); --b-bd: var(--cream); }
.btn--light:hover { --b-bg: var(--beige); --b-bd: var(--beige); }
.btn--line { --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor; }
.btn--line:hover { --b-bg: var(--ink); --b-fg: var(--cream); --b-bd: var(--ink); }
.dark .btn--line:hover, .wine .btn--line:hover, .on-image .btn--line:hover { --b-bg: var(--cream); --b-fg: var(--ink); --b-bd: var(--cream); }

.ulink {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; align-self: start;
  font: 500 1.2rem/1 var(--f-body);
  padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.ulink:hover { background-size: 30% 1px; color: var(--link-hover); }
/* area cliccabile alta almeno 44 px senza cambiare l'impaginazione */
.ulink { position: relative; }
.ulink::after { content: ""; position: absolute; inset: -9px 0; }

/* link sottolineati (nei testi, sotto le recensioni, nelle fonti, nei moduli, nel box orari, nel banner cookie):
   all'hover la linea si ritira e il testo diventa bordeaux, come in .ulink */
:where(main, .ftr, .mnav__foot) p a:not(.btn):not(.ulink),
.prose li a:not(.btn):not(.ulink),
.review__meta a, .xsrc a, .check a, .hero__status-body a, .cc__txt a {
  text-decoration: none; padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
:where(main, .ftr, .mnav__foot) p a:not(.btn):not(.ulink):hover,
:where(main, .ftr, .mnav__foot) p a:not(.btn):not(.ulink):focus-visible,
.prose li a:not(.btn):not(.ulink):hover,
.prose li a:not(.btn):not(.ulink):focus-visible,
.review__meta a:hover, .review__meta a:focus-visible, .xsrc a:hover, .xsrc a:focus-visible,
.check a:hover, .check a:focus-visible, .hero__status-body a:hover, .hero__status-body a:focus-visible,
.cc__txt a:hover, .cc__txt a:focus-visible { background-size: 30% 1px; color: var(--link-hover); }
.ulink .ico { font-size: 18px; }

/* =========================================================
   HEADER — logo a sinistra, menu con tendine
   ========================================================= */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ink); background: var(--bg); border-bottom: 1px solid var(--rule); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.hdr--over:not(.is-solid):not(.is-open) { background: transparent; color: var(--cream); border-color: transparent; }
/* velatura sotto l'header trasparente: il menu crema deve restare >= 4.5:1 anche su foto chiare.
   Scende ben oltre l'header e si spegne a gradini morbidi, così non si vede dove finisce
   (misurato su tutte le pagine con header trasparente: voce peggiore 5.08:1). */
.hdr--over:not(.is-solid):not(.is-open)::before { content: ""; position: absolute; inset: 0 0 -150px; z-index: -1; background: linear-gradient(rgba(25, 18, 16, .62) 0, rgba(25, 18, 16, .5) 64px, rgba(25, 18, 16, .32) var(--hdr-h), rgba(25, 18, 16, .14) calc(var(--hdr-h) + 60px), rgba(25, 18, 16, .04) calc(var(--hdr-h) + 120px), rgba(25, 18, 16, 0)); pointer-events: none; }
.hdr__inner { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 64px); height: var(--hdr-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hdr__nav { flex: 1; }
.hdr__menu { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 38px); }
.hdr__menu > li { position: relative; }
.hdr__menu > li > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 30px 0; font: 400 1.32rem/1 var(--f-display); }
.hdr__menu > li > a .ph-caret-down { font-size: 12px; transition: transform .35s var(--ease); }
.hdr__menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr__menu > li > a:hover::after, .hdr__menu > li > a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.has-mega:hover > a .ph-caret-down, .has-mega:focus-within > a .ph-caret-down { transform: rotate(180deg); }
.mega { position: absolute; left: -28px; top: 100%; display: grid; grid-template-columns: 300px 340px; background: var(--ink); color: var(--cream); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .3s; box-shadow: 0 30px 60px -30px rgba(25, 18, 16, .5); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-mega.is-closed .mega { opacity: 0; visibility: hidden; } /* Esc chiude la tendina (main.js) */
/* la tendina dell'ultima voce si apre verso sinistra: tra 1201 e 1280 px usciva dal bordo destro dello schermo */
.has-mega--end .mega { left: auto; right: -28px; }
.mega__img { position: relative; display: block; overflow: hidden; min-height: 300px; }
.mega__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__img:hover img { transform: scale(1.05); }
/* Foto delle voci (main.js): la nuova va sopra le altre e compare in dissolvenza con un leggero zoom, come .room-pics */
.mega__img img.is-hidden { opacity: 0; }
.mega__img img.is-start { opacity: 0; scale: 1.04; transition: none; }
.mega__img img.is-shown { transition: opacity .9s var(--ease-out-cubic), scale .9s var(--ease), transform 1.2s var(--ease); }
/* La tendina non cade su pixel interi (segue la voce del menu): senza un livello grafico fisso, a fine animazione
   la foto verrebbe ridisegnata agganciata al pixel, con uno scatto di 1 px (stesso caso di .room-pics) */
@media (hover: hover) and (pointer: fine) { .mega__img img { will-change: opacity, scale; } }
.mega__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 35%, rgba(0,0,0,0) 65%); }
.mega__img span { position: absolute; z-index: 1; left: 22px; bottom: 18px; font: 400 1.6rem/1.1 var(--f-display); color: var(--cream); }
.mega ul { display: grid; align-content: start; gap: 2px; padding: 28px 30px; }
.mega ul a { display: block; padding: 7px 0; font-size: 1.1rem; color: var(--cream-dim); transition: color .25s, transform .35s var(--ease); }
.mega ul a:hover { color: var(--cream); transform: translateX(4px); }
.mega ul a[aria-current="page"] { position: relative; color: var(--cream); }
.mega ul a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 50%; width: 9px; height: 1px; background: currentColor; }
.hdr__actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; line-height: 1; }
.hdr__phone .ico { font-size: 20px; }
.hdr__phone { position: relative; }
.hdr__phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr__phone:hover::after, .hdr__phone:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hdr__book { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; background: var(--ink); color: var(--cream); font: 500 1.15rem/1 var(--f-body); transition: background .35s var(--ease), color .35s var(--ease), transform 160ms var(--ease); }
.hdr__book:hover { background: var(--accent); }
.hdr--over:not(.is-solid):not(.is-open) .hdr__book { background: var(--cream); color: var(--ink); }
.hdr--over:not(.is-solid):not(.is-open) .hdr__book:hover { background: var(--beige); }
body[data-area="ristorante"] .hdr__book { background: var(--accent); color: var(--cream); }
body[data-area="ristorante"] .hdr__book:hover { background: var(--accent-deep); }
.hdr__book .ico { font-size: 17px; }
.hdr__burger { display: none; width: 46px; height: 46px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.hdr__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.hdr__burger span:first-child { top: 18px; }
.hdr__burger span:last-child { top: 27px; }
.hdr.is-open .hdr__burger span:first-child { top: 22px; transform: rotate(45deg); }
.hdr.is-open .hdr__burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* logo SVG (assets/img/logo/logo.svg#logo): lettere e nave prendono il colore dell'header (currentColor),
   le stelle restano arancio. Il sottotitolo "Hotel - Ristorante - Pizzeria" a queste misure sarebbe alto
   circa 5 px: nell'header è nascosto. L'ombra delle lettere è calda sullo sfondo chiaro, scura sopra la foto. */
.logo {
  display: block; flex: none; width: 250px; aspect-ratio: 1400 / 312.5;
  --logo-sub: none; --logo-star: #ef7e17; --logo-shadow: rgba(51, 40, 37, .38); --logo-knock: var(--bg);
}
.logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hdr--over:not(.is-solid):not(.is-open) .logo { --logo-shadow: rgba(25, 18, 16, .55); --logo-knock: transparent; }

/* menu mobile a tutto schermo */
.mnav { position: fixed; inset: var(--hdr-h) 0 0; z-index: 59; overflow-y: auto; background: var(--bg); color: var(--ink); padding: 24px var(--gutter) 40px; display: grid; align-content: space-between; gap: 40px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .35s; }
.hdr.is-open .mnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav__links > li { border-bottom: 1px solid var(--rule); }
.mnav__links > li > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 400 clamp(2rem, 7vw, 2.8rem)/1 var(--f-display); text-transform: uppercase; }
.mnav__links > li > a .ico { font-size: 22px; }
.mnav__links > li > a[aria-current] { color: var(--accent); }
.mnav__sub a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.mnav__sub { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0 0 8px; font-size: 1.1rem; color: var(--muted); }
.mnav__sub a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; } /* area di tocco di almeno 44 px */
.mnav__foot { display: grid; gap: 18px; }
.mnav__foot .btn-row .btn { flex: 1; }
.mnav__foot p { color: var(--muted); }
.mnav__foot p a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
body.nav-open { overflow: hidden; }

/* sotto i 1200 px l'header passa all'hamburger: tra 1100 e 1200 px, con la spaziatura del testo
   aumentata (WCAG 1.4.12), il pulsante "Prenota" usciva dallo schermo. Il valore è anche in main.js. */
/* breakpoint dell'header in em (75em = 1200px con il carattere predefinito di 16px): se l'utente ingrandisce
   il carattere del browser, l'header passa all'hamburger invece di far uscire il menu dallo schermo (1.4.4) */
@media (max-width: 75em) {
  :root { --hdr-h: 68px; }
  /* il logo si restringe invece di spingere l'hamburger fuori dallo schermo */
  .logo { width: 212px; flex: 0 1 auto; min-width: 88px; }
  .hdr__nav, .hdr__phone { display: none; }
  .hdr__burger { display: block; }
  .hdr__book { flex: none; min-height: 44px; padding: 0 16px; white-space: nowrap; }
}
@media (min-width: 75.0625em) { .mnav { display: none; } }
@media (max-width: 26.25em) {
  .hdr__inner { gap: 10px; }
  .logo { width: 156px; }
  .hdr__actions { gap: 6px; }
  .hdr__book { padding: 0 10px; }
  .hdr__burger { margin-right: -4px; }
}

/* =========================================================
   HERO HOME — titolo grande, sfondo che cambia al passaggio
   ========================================================= */
.hero { position: relative; min-height: max(640px, 100svh); color: var(--cream); overflow: hidden; isolation: isolate; display: grid; grid-template-rows: 1fr auto; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 4.5s cubic-bezier(.2, .6, .3, 1) /* sotto i 5 s: nessun movimento automatico più lungo (WCAG 2.2.2) */; }
.hero__bg img.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25,18,16,.5) 0%, rgba(25,18,16,.3) 42%, rgba(25,18,16,.68) 100%); pointer-events: none; }
.hero__center { position: relative; align-self: center; text-align: center; padding: calc(var(--hdr-h) + 60px) var(--gutter) 40px; }
.hero__kicker { margin-bottom: clamp(18px, 2.4vw, 30px); transition: opacity .4s var(--ease); }
.hero__title { position: relative; display: inline-block; }
.hero__side { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.hero__side--l { right: calc(100% + clamp(18px, 3vw, 56px)); }
.hero__side--r { left: calc(100% + clamp(18px, 3vw, 56px)); }
@media (max-width: 73.75em) { .hero__side { display: none; } } /* 1180px; in em seguono il carattere del browser */

.hero__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 0 var(--gutter) clamp(24px, 3vw, 40px); }
.hero__intro { max-width: 19rem; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.25; }
.hero__choose { display: flex; border-top: 1px solid var(--rule-light); }
.choice { position: relative; display: grid; gap: 8px; min-width: clamp(240px, 23vw, 340px); padding: 22px clamp(18px, 2.4vw, 36px) 6px; text-align: left; transition: opacity .5s var(--ease); }
.choice + .choice { border-left: 1px solid var(--rule-light); }
.choice__k { opacity: .88; } /* .88: contrasto >= 4.5:1 anche sugli sfondi dell'hover */
.choice__t { display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 400 clamp(2.1rem, 3.4vw, 3.3rem)/1 var(--f-display); text-transform: uppercase; }
.choice__t .ico { font-size: .5em; transition: transform .45s var(--ease); }
.choice::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.choice:hover::before, .choice:focus-visible::before { transform: scaleX(1); }
.choice:hover .ico, .choice:focus-visible .ico { transform: translate(4px, -4px); }
/* all'hover si attenua solo il titolo grande dell'altra scelta, non l'etichetta piccola: contrasto >= 3:1 */
.hero__choose:hover .choice:not(:hover) .choice__t { opacity: .72; }
.hero__status { justify-self: end; width: 270px; background: var(--bg); color: var(--ink); --link-hover: var(--accent); }
.hero__status-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.hero__status-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.hero__status-top .dot.is-open { background: #3E7B47; }
.hero__status-body { padding: 14px 16px 16px; }
.hero__status-body p { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.hero__status-body a { display: inline-block; margin-top: 10px; font-size: 1.0625rem; }

@media (max-width: 61.25em) {
  .hero__foot { grid-template-columns: 1fr; justify-items: center; }
  .hero__intro, .hero__status { display: none; }
}
@media (max-width: 37.5em) {
  .hero__choose { width: 100%; flex-direction: column; border-top: 0; }
  .choice { min-width: 0; padding: 18px 0 14px; border-top: 1px solid var(--rule-light); }
  .choice + .choice { border-left: 0; }
  .hero__center { padding-top: calc(var(--hdr-h) + 100px); }
}

/* =========================================================
   PAGE HERO (interne)
   ========================================================= */
.phero { position: relative; isolation: isolate; color: var(--cream); min-height: max(560px, 92svh); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--hdr-h) + 80px) 0 clamp(28px, 4vw, 56px); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* foto delle camere allineata in basso: sugli schermi larghi si taglia il soffitto, non i letti */
.phero--bottom .phero__bg img { object-position: 50% 100%; }
/* <picture> con il ritaglio verticale (tools/optimize.py): non deve creare un box suo */
.hero__bg picture, .phero__bg picture, .band__img picture { display: contents; }
/* velatura: più scura nella metà bassa, dove stanno etichette, titolo e testi (contrasto >= 4.5:1 su foto chiare) */
/* --veil (0-1) attenua la velatura sulle foto che reggono il contrasto con meno: valori misurati in tools/build-pages.py (HERO_VEIL).
   Nella fascia dell'header la velatura resta piena: lì passa il menu trasparente, che ha bisogno di tutto il contrasto. */
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25,18,16,.52) 0, rgba(25,18,16,.47) var(--hdr-h), rgba(25,18,16, calc(.38 * var(--veil, 1))) 30%, rgba(25,18,16, calc(.66 * var(--veil, 1))) 55%, rgba(25,18,16, calc(.8 * var(--veil, 1)))); }
body[data-area="ristorante"] .phero::after { background: linear-gradient(180deg, rgba(25,18,16,.54), rgba(40,10,10,.36) 30%, rgba(50,8,8,.64) 58%, rgba(60,6,8,.82)); }
.phero__top { display: flex; justify-content: space-between; gap: 20px; font-size: 1.1rem; margin-bottom: clamp(18px, 2.6vw, 36px); }
/* "Tutte le camere" / "Tutte le esperienze": area di tocco alta 44 px */
.phero__top a { position: relative; background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat; transition: color .3s var(--ease), background-size .45s var(--ease); }
.phero__top a:hover, .phero__top a:focus-visible { color: var(--link-hover); background-position: left bottom; background-size: 100% 1px; }
.phero__top a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
/* velatura sfumata dietro le etichette piccole della testata: alcune foto hanno punti molto chiari proprio lì */
.phero:not(.phero--short):not(.phero--plain) .phero__top > * { position: relative; }
.phero:not(.phero--short):not(.phero--plain) .phero__top > *::before { content: ""; position: absolute; inset: -14px -28px; z-index: -1; opacity: var(--veil-top, 1); background: radial-gradient(closest-side, rgba(25, 18, 16, .5) 55%, rgba(25, 18, 16, 0)); pointer-events: none; }
.phero__foot { display: grid; gap: 22px; margin-top: clamp(24px, 3.6vw, 52px); padding-top: 22px; border-top: 1px solid var(--rule-light); }
@media (min-width: 900px) { .phero__foot { grid-template-columns: minmax(0, 32rem) 1fr; align-items: end; } }
.phero__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; }
@media (min-width: 900px) { .phero__meta { justify-content: flex-end; } }
.phero--short { min-height: 0; color: var(--ink); padding-top: calc(var(--hdr-h) + clamp(28px, 9vw, 150px)); padding-bottom: clamp(40px, 5vw, 72px); }
.phero--short::after { display: none; }
.phero--short .phero__foot { border-color: var(--rule); }
.phero--plain { background: var(--ink); min-height: max(520px, 80svh); }
.phero--plain::after { display: none; }
/* mobile e tablet: hero più bassa (prima 92svh: su un tablet verticale il testo partiva a metà schermo) */
@media (max-width: 1080px) { .phero:not(.phero--short) { min-height: max(480px, 64svh); padding-top: calc(var(--hdr-h) + 64px); } }

/* sotto-navigazione */
.subnav { position: sticky; top: var(--hdr-real, var(--hdr-h)); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.subnav ul { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 17px 0; white-space: nowrap; color: var(--muted); transition: color .3s; }
.subnav a:hover { color: var(--ink); }

/* =========================================================
   BLOCCHI EDITORIALI
   ========================================================= */
.intro { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) { .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); } }
.intro__aside { display: grid; gap: 28px; align-content: start; }
.fact { padding-top: 14px; border-top: 1px solid var(--rule); }
.dark .fact, .wine .fact { border-color: var(--rule-light); }
.fact .label { color: var(--muted); }
.dark .fact .label, .wine .fact .label { color: var(--cream-dim); }
.fact p { margin-top: 10px; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; }
.intro__body { display: grid; gap: 40px; }
.intro__body .statement { text-indent: clamp(40px, 9vw, 160px); }
.intro__links { display: flex; flex-wrap: wrap; gap: 28px; }

/* immagine a tutta larghezza con titolo sovrapposto */
.band { position: relative; isolation: isolate; overflow: hidden; height: clamp(520px, 100svh, 1000px); color: var(--cream); display: grid; place-items: center; text-align: center; }
.band__img { position: absolute; inset: -10% 0; z-index: -2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
/* velatura uniforme più una sfumatura in basso, dietro le etichette piccole */
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(25, 18, 16, .5), rgba(25, 18, 16, 0) 28%), rgba(25, 18, 16, .46); }
.band__inner { padding: 0 var(--gutter); }
.band__label { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; gap: 20px; }

/* due colonne testo/immagine */
.duo { display: grid; gap: clamp(40px, 6vw, 110px); align-items: center; }
@media (min-width: 960px) {
  .duo { grid-template-columns: 1.15fr 1fr; }
  .duo--flip { grid-template-columns: 1fr 1.15fr; }
  .duo--flip > :first-child { order: 2; }
}
.duo__img { overflow: hidden; }
.duo__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo__img--wide img { aspect-ratio: 5 / 4; }
/* da 960 px la foto è alta almeno quanto il testo accanto (sezione Le camere nella pagina Hotel) */
@media (min-width: 960px) {
  .duo--fill { align-items: stretch; }
  .duo--fill .duo__img img { height: 100%; }
}
/* foto delle camere che cambiano passando sull'elenco (main.js): la nuova compare in dissolvenza sopra le
   precedenti, che restano sotto (z-index crescente), e intanto si assesta da un leggero zoom, nello stesso
   tempo: la dissolvenza parte decisa e frena morbida, lo zoom rallenta verso la fine.
   .is-start è il punto di partenza, senza transizione; .is-shown il punto d'arrivo.
   Lo zoom usa la proprietà scale, separata da transform, che resta allo zoom d'ingresso di .rv-img
   (ripetuto nelle transizioni, che altrimenti lo sovrascriverebbero). */
.room-pics { position: relative; }
.room-pics img:not(:first-child) { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; opacity: 0; }
.room-pics img.is-start { opacity: 0; scale: 1.04; transition: none; }
.room-pics img.is-shown { opacity: 1; scale: 1; transition: opacity .9s var(--ease-out-cubic), scale .9s var(--ease), transform 1.8s var(--ease); }
/* Il riquadro non cade su pixel interi (colonna fluida): a fine animazione il browser toglierebbe la foto dal
   suo livello grafico e la ridisegnerebbe agganciata al pixel, con uno scatto di 1 px. Le foto restano sempre
   sul loro livello, solo dove c'è il mouse (l'unico caso in cui cambiano). */
@media (hover: hover) and (pointer: fine) { .room-pics img { will-change: opacity, scale; } }
/* movimento ridotto: la regola generale in fondo (transition-duration .01ms) rende il cambio istantaneo */
.duo__text { display: grid; gap: 26px; align-content: center; max-width: 36rem; }
.duo__text > .label { color: var(--muted); }
.dark .duo__text > .label, .wine .duo__text > .label { color: var(--cream-dim); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- camere: rotaia orizzontale ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.rail-ctrl { display: flex; gap: 8px; }
.rail-btn { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform 160ms var(--ease); }
.rail-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.dark .rail-btn { border-color: var(--rule-light); }
.dark .rail-btn:hover { background: var(--cream); color: var(--ink); }
.rail-btn .ico { font-size: 20px; }
/* Struttura già nell'HTML (tools/optimize.py): .rail > .rail__track > slide.
   Senza JS, o se Embla non si carica, il binario scorre in modo nativo con scroll-snap;
   main.js aggiunge .is-embla, che cambia solo overflow e cursore: la pagina non si sposta (CLS). */
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--rail-pad); }
.rail::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }

.room-card { display: grid; gap: 16px; align-content: start; }
.room-card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .room-card:hover .room-card__img img { transform: scale(1.045); } }
.room-card__name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.room-card__name .ico { font-size: 22px; transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .room-card:hover .room-card__name .ico { transform: translate(3px, -3px); } }
.specs { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); }
.specs span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--rule); }
.dark .specs { color: var(--cream-dim); }
.dark .specs span + span { border-color: var(--rule-light); }

/* elenco delle camere nella pagina Hotel: nome e freccia, sotto i dati (da 600 px tutto su una riga) */
.room-list { border-top: 1px solid var(--rule); }
.room-list li { border-bottom: 1px solid var(--rule); }
.dark .room-list, .dark .room-list li { border-color: var(--rule-light); }
.room-list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 20px; padding: 18px 0; }
.room-list h3 { font: 400 clamp(1.5rem, 1.2rem + .6vw, 1.9rem)/1.1 var(--f-display); }
.room-list .specs { grid-row: 2; }
/* hover: si muove solo la freccia (scelta del cliente: niente scivolamento a destra come in .menu-row) */
.room-list .ico { font-size: 22px; transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .room-list a:hover .ico { transform: translate(3px, -3px); } }
/* camera di cui si vede la foto (main.js): la freccia resta spostata */
.room-list a.is-active .ico { transform: translate(3px, -3px); }
@media (min-width: 600px) {
  .room-list a { grid-template-columns: 1fr auto auto; }
  .room-list .specs { grid-row: auto; }
}

/* ---------- filtri + griglie ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: clamp(36px, 5vw, 56px); }
.filter button { min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); font: 400 1.55rem/1.1 var(--f-display); transition: color .3s, border-color .3s; }
.filter button[aria-pressed="true"], .filter button:hover { color: var(--ink); border-color: var(--ink); }
.filter sup { font-family: var(--f-body); font-size: .85rem; vertical-align: top; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(48px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.rooms-grid .room-card__img { aspect-ratio: 4 / 3.4; }
[hidden] { display: none !important; }
/* filtri (main.js): le schede rimaste scivolano al nuovo posto, quelle tolte svaniscono */
::view-transition { pointer-events: none; }
::view-transition-group(*.flt) { animation-duration: 250ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(*.flt), ::view-transition-new(*.flt) { animation-duration: 250ms; }

/* ---------- dettaglio camera / esperienza ---------- */
.specbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.specbar > div { padding: 22px clamp(12px, 2vw, 28px); border-left: 1px solid var(--rule); }
.specbar > div:first-child { border-left: 0; padding-left: 0; }
.specbar .label { color: var(--muted); }
.specbar p { overflow-wrap: break-word; hyphens: auto; margin-top: 8px; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1; }
@media (max-width: 720px) {
  .specbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specbar > div { padding-left: 0; border-left: 0; }
  .specbar > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .specbar > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.detail { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; } }
.detail__main { display: grid; gap: clamp(48px, 5vw, 72px); }
.detail__main .statement { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.detail__aside { display: grid; gap: 24px; }
@media (min-width: 960px) { .detail__aside { position: sticky; top: calc(var(--hdr-real, var(--hdr-h)) + 32px); } }
.panel { padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--rule); display: grid; gap: 22px; }
.panel { container-type: inline-size; }
.panel .book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
/* pannello stretto (tablet, mobile): i campi data non stanno affiancati e uscirebbero dallo schermo */
@container (max-width: 380px) { .panel .book { grid-template-columns: minmax(0, 1fr); } }
.panel .book .btn { grid-column: 1 / -1; margin-top: 0; }
.block-title { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); color: var(--muted); }

/* liste */
.list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dark .list li, .wine .list li { border-color: var(--rule-light); }
.list--cols { columns: 2 240px; column-gap: clamp(28px, 4vw, 64px); }
.list--cols li { break-inside: avoid; }
.list .muted { text-align: right; }

/* galleria */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.gal > * { overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal .a { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.gal .b { grid-column: 8 / 13; }
.gal .c { grid-column: 1 / 5; aspect-ratio: 1; }
.gal .d { grid-column: 5 / 13; }
@media (max-width: 700px) {
  .gal .a, .gal .b, .gal .c, .gal .d { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* ---------- esperienze: elenco con anteprima ---------- */
.exp-list { border-top: 1px solid var(--rule); }
.exp-row { position: relative; display: grid; grid-template-columns: 4rem 1fr auto auto; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule); }
.exp-row__n { opacity: .72; } /* .72: contrasto >= 4.5:1 */
.exp-row__t { transition: transform .6s var(--ease); }
.exp-row__k { text-align: right; opacity: .7; }
@media (hover: hover) and (pointer: fine) { .exp-row:hover .exp-row__t { transform: translateX(14px); } }
.exp-row .ico { font-size: 26px; transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .exp-row:hover .ico { transform: translate(4px, -4px); } }
.exp-preview { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.exp-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.exp-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .exp-row { grid-template-columns: 1fr auto; }
  .exp-row__n, .exp-row__k { display: none; }
}
@media (hover: none) { .exp-preview { display: none; } }

/* esperienze: card */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: clamp(48px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.exp-card { display: grid; gap: 16px; align-content: start; }
.exp-card__img { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--ink); color: var(--cream); }
.exp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .exp-card:hover .exp-card__img img { transform: scale(1.045); } }
.typo { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.4vw, 32px); background: var(--ink); color: var(--cream); transition: transform 1.4s var(--ease); }
.typo--wine { background: var(--accent); }
.typo--beige { background: var(--beige); color: var(--ink); }
.typo--taupe { background: var(--taupe); color: var(--ink); }
.typo__t { font: 400 clamp(2.6rem, 4.6vw, 4.6rem)/.9 var(--f-display); text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .exp-card:hover .typo { transform: scale(1.02); } }
.exp-card__cat { color: var(--muted); }
.exp-card p { color: var(--ink-soft); }
.phero--typo { min-height: max(560px, 86svh); }

/* ---------- ristorante ---------- */
.dishes { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.dishes figure { overflow: hidden; }
.dishes img { width: 100%; object-fit: cover; }
.dishes .x1 { grid-column: 1 / 5; margin-top: 18%; }
.dishes .x1 img, .dishes .x3 img { aspect-ratio: 3 / 4; }
.dishes .x2 { grid-column: 5 / 9; }
.dishes .x2 img { aspect-ratio: 3 / 4.4; }
.dishes .x3 { grid-column: 9 / 13; margin-top: 34%; }
.dishes figcaption { margin-top: 12px; color: var(--cream-dim); }
@media (max-width: 700px) {
  .dishes .x1, .dishes .x2 { grid-column: span 6; margin-top: 0; }
  .dishes .x2 { margin-top: 18%; }
  .dishes .x3 { display: none; }
}
.hours-row { display: grid; border-top: 1px solid var(--rule-light); }
@media (min-width: 760px) { .hours-row { grid-template-columns: repeat(3, 1fr); } }
.hours-row > div { padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
@media (min-width: 760px) { .hours-row > div { border-bottom: 0; padding-right: 24px; } .hours-row > div + div { border-left: 1px solid var(--rule-light); padding-left: 24px; } }
.hours-row p { margin-top: 8px; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; }
.hours-row .label { color: var(--cream-dim); }
.hours-row p.hours-row__note { margin-top: 10px; font-family: var(--f-body); font-size: var(--fs-small); line-height: 1.5; color: var(--cream-dim); }
.hours-row a:hover { text-decoration: underline; }

.salas { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 28px); }
@media (min-width: 640px) { .salas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .salas { grid-template-columns: repeat(3, 1fr); } }
.sala figure { overflow: hidden; aspect-ratio: 4 / 3; }
.sala img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .sala:hover img { transform: scale(1.045); } }
.sala h3 { margin-top: 18px; }
.sala p { margin-top: 6px; }

/* menu: righe */
.menu-rows { border-top: 1px solid var(--rule); }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--rule); transition: background .4s var(--ease); }
@media (min-width: 53.75em) { .menu-row { grid-template-columns: 13rem minmax(0, 1fr) 22rem auto; } }
.menu-row__k { color: var(--accent); }
.menu-row p { color: var(--muted); }
/* all'hover il contenuto scorre con transform (prima animava il padding, che ricalcola il layout a ogni fotogramma) */
.menu-row > :not(.menu-row__dl) { transition: transform .5s var(--ease); }
.menu-row .ico { font-size: 24px; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .menu-row:hover > :not(.menu-row__dl) { transform: translateX(14px); }
  .menu-row:hover .ico { transform: translate(3px, -3px); }
}
.menu-row--today { --bleed: clamp(16px, 2vw, 28px); background: var(--ink); color: var(--cream); border: 0; box-shadow: calc(-1 * var(--bleed)) 0 0 var(--ink), var(--bleed) 0 0 var(--ink); }
.menu-row--today .menu-row__k { color: var(--taupe); }
.menu-row--today p { color: var(--cream-dim); }

@media (max-width: 53.6875em) { .menu-row p { grid-column: 1 / -1; } .menu-row__k { grid-column: 1 / -1; } }

/* =========================================================
   PRENOTAZIONE + FORM
   ========================================================= */
/* campi allineati in alto: l'errore sotto un campo (main.js) non deve spostare in basso quelli accanto */
.book { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: start; gap: 0 clamp(16px, 2vw, 32px); }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label { font: 500 1.0625rem/1.2 var(--f-body); color: var(--muted); }
.dark .fld label, .wine .fld label { color: var(--cream-dim); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.2; outline: none; appearance: none; -webkit-appearance: none;
}
.fld textarea { min-height: 110px; resize: vertical; font-size: 1.3rem; }
.fld select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23332825' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right center no-repeat; padding-right: 22px; }
.dark .fld input, .dark .fld select, .dark .fld textarea, .wine .fld input, .wine .fld select, .wine .fld textarea { border-color: var(--cream); color-scheme: dark; }
.dark .fld select, .wine .fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F3ECE7' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
.dark .fld select option, .wine .fld select option { color: var(--ink); }
.fld input:focus, .fld select:focus, .fld textarea:focus { box-shadow: inset 0 -1px 0 currentColor; }
/* la linea che si ispessisce non basta come indicatore: anello di focus come nel resto del sito */
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.book .btn { min-height: 60px; }
/* barra orizzontale: il bottone (60px) finisce a filo con il fondo dei campi (etichetta + 6px + campo da 52px) */
.book .btn { margin-top: calc(1.0625rem * 1.2 + 6px + 52px - 60px); }
@media (max-width: 900px) {
  .book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .book .btn { grid-column: 1 / -1; margin-top: 0; }
}
/* l'avviso resta nel DOM (vuoto) come regione live: main.js inserisce il testo all'invio */
.notice { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.notice:not(.is-on) { margin: 0; padding: 0; border: 0; }
.no-js .notice:not(.is-on) { display: none; }
.dark .notice, .wine .notice { border-color: var(--rule-light); color: var(--cream-dim); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.form .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.dark .check, .wine .check { color: var(--cream-dim); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .book { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   CTA FINALE
   ========================================================= */
.closing { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); text-align: center; padding: clamp(130px, 17vw, 260px) var(--gutter); }
.closing__bg { position: absolute; inset: -10% 0; z-index: -2; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(25, 18, 16, .5); }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(32px, 4vw, 52px); }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact { display: grid; gap: clamp(48px, 6vw, 100px); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.25fr; } }
.contact__item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.contact__item:first-child { border-top: 1px solid var(--rule); }
.contact__item .label { color: var(--muted); }
.contact__item p { margin-top: 10px; font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; }
/* nota sotto un contatto (consiglio per il navigatore): testo piccolo, non in Forum */
.contact__item p.contact__note { font-family: var(--f-body); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
/* altezza fissa e sfondo: lo spazio della mappa c'è subito, anche prima che Google risponda (niente CLS) */
.map { display: block; width: 100%; height: clamp(380px, 52vw, 620px); border: 0; background: var(--sand); filter: grayscale(.8) sepia(.18) contrast(.95); }
/* focus dentro la mappa: l'iframe non riceve :focus, la classe la mette main.js */
.map:focus, .map.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
/* mappa con consenso (consent.js): finché non c'è, sopra l'iframe vuoto c'è il riquadro "Mostra la mappa".
   L'iframe vuoto è invisibile, così non riceve il focus; lo spazio resta, quindi nessun salto alla comparsa. */
.map-box { position: relative; }
.map-box:not(.is-granted) .map { visibility: hidden; }
.map-box.is-granted .map-ph { display: none; }
.map-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px var(--gutter); text-align: center; background: var(--sand); color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.5; }
.map-ph p { max-width: 34em; }
.map-ph .btn-row { justify-content: center; }
.map-ph__ico { font-size: 40px; color: var(--accent); }
.no-js .map-ph__btn { display: none; }

/* prosa */
.prose { max-width: 46rem; }
/* gerarchia dei titoli: h2 in maiuscolo, grande e preceduto da un filetto che apre la sezione;
   h3 in tondo, più piccolo, vicino al testo che introduce */
.prose h2 {
  font: 400 clamp(2.1rem, 1.6rem + 1.4vw, 2.9rem)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: -.005em;
  color: var(--ink); margin: 3.4rem 0 1.2rem; padding-top: 2.4rem; border-top: 1px solid var(--rule);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* pagine con indice (accessibilità, privacy): il testo continua dopo l'introduzione, quindi il primo titolo apre comunque una sezione */
.prose.doc__body > h2:first-child { margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); }
@media (max-width: 1099.98px) { .prose.doc__toc > h2:first-child { margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); } }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; }
.prose h3 { font: 400 clamp(1.55rem, 1.35rem + .55vw, 1.85rem)/1.15 var(--f-display); color: var(--ink); margin: 2.4rem 0 .6rem; }
.prose h2 + h3 { margin-top: 1.6rem; }
.prose a { overflow-wrap: anywhere; }
.prose [id] { scroll-margin-top: 28px; } /* indice "In questa pagina": il titolo non finisce a filo dell'header */
/* accessibilità e privacy: su desktop l'indice "In questa pagina" è una colonna fissa a destra del testo;
   sotto i 1100 px (e con lo zoom alto) resta nel flusso, tra l'introduzione e il testo */
@media (min-width: 1100px) {
  .doc { display: grid; grid-template-columns: minmax(0, 46rem) minmax(220px, 18rem); column-gap: clamp(64px, 7vw, 140px); align-items: start; }
  .doc__intro { grid-column: 1; grid-row: 1; }
  .doc__body { grid-column: 1; grid-row: 2; }
  .doc__toc {
    grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--hdr-real, var(--hdr-h)) + 32px);
    max-height: calc(100vh - var(--hdr-real, var(--hdr-h)) - 64px); overflow-y: auto;
    padding: 6px; margin: -6px; /* spazio per l'anello di focus (2 px + 3 px di distanza), che overflow taglierebbe */
  }
  .doc__toc h2 { font: 500 var(--fs-small)/1.4 var(--f-body); text-transform: none; color: var(--ink); margin: 0 0 14px; padding: 0; border: 0; }
  .doc__toc ul { list-style: none; padding: 0; border-left: 1px solid var(--rule); }
  .doc__toc li { margin: 0; }
  .doc__toc li a:not(.btn):not(.ulink) {
    display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent;
    font-size: var(--fs-small); line-height: 1.4; color: var(--muted); background: none; transition: color .3s var(--ease), border-color .3s var(--ease);
  }
  .doc__toc li a:not(.btn):not(.ulink):hover { color: var(--ink); }
  .doc__toc li a:not(.btn):not(.ulink)[aria-current] { color: var(--ink); border-left-color: var(--accent); }
}
.legal-cols { display: grid; gap: 0 4rem; }
@media (min-width: 900px) { .legal-cols { grid-template-columns: 1fr 1fr; } }.note { padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-small); }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--ink); color: var(--cream); overflow: hidden; }
.ftr__cta { display: grid; gap: 32px; padding-block: clamp(80px, 10vw, 150px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule-light); }
@media (min-width: 900px) { .ftr__cta { grid-template-columns: 1fr auto; align-items: end; } }
.ftr__cols { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 47.5em) { .ftr__cols { grid-template-columns: repeat(4, 1fr); } } /* 47.5em = 760px */
.ftr__h { font: 400 var(--fs-h3)/1.1 var(--f-display); color: var(--beige); margin-bottom: 16px; }
.ftr__cols li { padding: 4px 0; font-size: 1.125rem; color: var(--cream-dim); }
/* link del footer: linea che entra da sinistra all'hover, come nel menu */
.ftr__cols a, .ftr__bottom a {
  padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.ftr__cols a:hover, .ftr__cols a:focus-visible, .ftr__bottom a:hover, .ftr__bottom a:focus-visible { color: var(--cream); background-position: left bottom; background-size: 100% 1px; }
.ftr__mark { font: 400 clamp(4.4rem, 20.5vw, 21rem)/.78 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; text-align: center; white-space: nowrap; color: var(--cream); margin-bottom: -.05em; user-select: none; }
.ftr__bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px 28px; border-top: 1px solid var(--rule-light); color: var(--cream-dim); font-size: var(--fs-small); }
.ftr__bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
/* credito Totalcom: logo al posto del testo, senza sottolineatura animata */
.ftr__bottom a.ftr__credit { display: inline-block; padding: 0; background: none; opacity: .8; transition: opacity .3s var(--ease); }
.ftr__bottom a.ftr__credit:hover, .ftr__bottom a.ftr__credit:focus-visible { opacity: 1; background: none; }
.ftr__credit img { height: 20px; width: auto; }

/* =========================================================
   MOVIMENTO
   ========================================================= */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(10% 0 0 0); transition: clip-path 1.4s var(--ease); }
.rv-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.rv-img.is-in { clip-path: inset(0 0 0 0); }
.rv-img.is-in img { transform: scale(1); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.no-js .rv, .no-js .rv-img { opacity: 1; transform: none; clip-path: none; }
.no-js .rv-img img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-img, .rv-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero__bg img { transition: opacity .01s; transform: none; }
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* gruppi di servizi (al posto di elenchi lunghi) */
.groups { display: grid; gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); }
@media (min-width: 47.5em) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.groups--2 { }
@media (min-width: 47.5em) { .groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.dark .group { border-color: var(--rule-light); }
.group h3 { font: 400 var(--fs-h3)/1.1 var(--f-display); }
.group p { color: var(--ink-soft); }
.dark .group p { color: var(--cream-dim); }

.specbar--dark, .specbar--dark > div { border-color: var(--rule-light); }
.specbar--dark .label { color: var(--cream-dim); }
.band__inner--stack { display: grid; justify-items: center; gap: 28px; }
.band__inner--stack .lead { max-width: 30em; }
.phero--mid { min-height: max(520px, 74svh); }
.phero--plain.wine { background: var(--accent); }
.band:has(.band__inner--stack)::after { background: rgba(25, 18, 16, .58); }
/* Nuovo parcheggio (pagina Hotel), foto provvisoria del cantiere: cemento e cielo chiari dietro al testo chiedono
   una velatura più scura. .66 è il valore più leggero a norma (testo 4.5:1 con l'8% di margine; .62 non basta),
   misurato con velature.mjs a 1440, 1024, 768 e 375 px. Quando arriva la foto vera, rimisura. */
#parcheggio.band::after { background: rgba(25, 18, 16, .66); }
/* velatura della hero: regge anche gli sfondi che compaiono all'hover (facciata, stube) */
.hero::after { background: linear-gradient(180deg, rgba(25,18,16,.6) 0%, rgba(25,18,16,.54) 42%, rgba(25,18,16,.74) 100%); }
/* velatura locale leggera dietro il centro della hero: il titolo grande regge anche senza (>= 3:1), ma le scritte
   piccole ai lati ("Piana Rotaliana", "Lavis, Trentino") e il sopratitolo no. Intensità minima misurata:
   più leggera di così "Lavis, Trentino" scende sotto 4.5:1 sul panorama (1280-1440px). */
.hero__center::before { content: ""; position: absolute; inset: calc(var(--hdr-h) + 20px) -6% 0; z-index: -1; background: radial-gradient(closest-side, rgba(25, 18, 16, .31), rgba(25, 18, 16, .17) 60%, rgba(25, 18, 16, 0)); pointer-events: none; }
/* velatura sfumata anche dietro il sopratitolo (testo piccolo): con lo sfondo della stube serve un margine in più */
/* il paragrafo prende la larghezza del testo (non del contenitore): la velatura resta solo dietro le parole */
.hero__kicker { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.hero__kicker::before { content: ""; position: absolute; inset: -14px -32px; z-index: -1; background: radial-gradient(closest-side, rgba(25, 18, 16, .34) 50%, rgba(25, 18, 16, 0)); pointer-events: none; }

/* icone nei gruppi */
.group__ico { font-size: 34px; color: var(--accent); margin-bottom: 4px; }
.dark .group__ico, .wine .group__ico { color: var(--beige); }

/* servizi con icona (parcheggio, garage, ricarica) */
.amen { display: grid; gap: clamp(56px, 7vw, 110px); }
@media (min-width: 1000px) { .amen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.amen__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.amen__item { display: grid; gap: 12px; align-content: start; }
.amen__item .ico { font-size: 40px; color: var(--accent); }
.amen__item h3 { font: 400 var(--fs-h3)/1.1 var(--f-display); }
.amen__item p { color: var(--ink-soft); }
@media (max-width: 560px) { .amen__list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; } }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 400 clamp(1.45rem, 1.9vw, 1.85rem)/1.2 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { font-size: 22px; transition: transform 250ms var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { max-width: 44rem; padding: 0 0 26px; color: var(--ink-soft); }
/* FAQ: la risposta si apre in altezza (solo dove il browser sa animare fino a height: auto) */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size 250ms var(--ease), content-visibility 250ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) {
    .faq details::details-content { transition: none; }
  }
}

/* partner: fascia discreta, loghi monocromatici senza riquadri */
.partners { background: var(--bg); border-top: 1px solid var(--rule); }
.partners__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 56px; padding-block: clamp(36px, 4vw, 52px); }
.partners__in h2 { font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.1 var(--f-display); text-transform: uppercase; color: var(--ink-soft); }
.partners__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(28px, 4vw, 64px); }
.partners__row a { display: block; }
.partners__row img { height: 72px; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: .75; transition: opacity .4s var(--ease), filter .4s var(--ease); }
.partners__row a:hover img, .partners__row a:focus-visible img { opacity: .9; filter: none; }
@media (max-width: 700px) { .partners__row img { height: 54px; } }

/* scritta del footer a tutta larghezza (dimensione calcolata da JS) */
.ftr__mark { display: block; width: 100%; font-size: 20vw; line-height: .8; text-align: center; padding: 0; margin: 0 0 -.06em; letter-spacing: -.01em; }
.mnav__foot .btn-row { flex-direction: column; } .mnav__foot .btn-row .btn { width: 100%; }

/* dotazioni camera */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 28px; }
.amenities li { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.amenities .ico { font-size: 26px; color: var(--accent); }

/* informazioni utili */
.info { display: grid; gap: 28px clamp(24px, 3vw, 48px); }
@media (min-width: 700px) { .info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info__item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.info__item .ico { font-size: 30px; color: var(--accent); }
.info__item h3 { font: 400 var(--fs-h3)/1.15 var(--f-display); margin-bottom: 6px; }
.info__item p { color: var(--ink-soft); }

/* crediti foto di terze parti */
.credit { font-size: var(--fs-small); color: var(--muted); }

/* Trentino Guest Card con immagine */
.gc { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .gc { grid-template-columns: minmax(0, 1fr) auto; } }
.gc__card { width: min(380px, 100%); transform: rotate(-3deg); box-shadow: 0 30px 50px -25px rgba(25, 10, 10, .6); }
@media (max-width: 85em) { .hdr__phone { display: none; } } .hdr__phone { white-space: nowrap; }

/* Guest Card: angoli arrotondati che nascondono il bordo bianco dell'immagine */
.gc__card { border-radius: 16px; clip-path: inset(4px round 14px); }

/* caroselli: senza JS scorrono nativamente (sopra); con Embla (main.js) diventano trascinabili con inerzia */
.rail { --rail-pad: var(--page-pad); --rail-gap: clamp(16px, 2vw, 28px); --rail-col: clamp(280px, 34vw, 520px); user-select: none; -webkit-user-select: none; }
.rail img { -webkit-user-drag: none; user-drag: none; }
.rail .exp-card { width: 100%; }
.rail.is-embla { overflow: hidden; scroll-snap-type: none; cursor: grab; touch-action: pan-y pinch-zoom; }
.rail.is-embla.is-dragging { cursor: grabbing; }
.rail.is-embla:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.rail__track { display: flex; gap: var(--rail-gap); padding-inline-start: var(--rail-pad); touch-action: pan-y pinch-zoom; backface-visibility: hidden; }
.rail__track > * { flex: 0 0 var(--rail-col); min-width: 0; }
.rail__track > :last-child { margin-right: var(--rail-pad); }
/* a inizio e fine corsa il pulsante resta focalizzabile (aria-disabled, non disabled): così il focus non si perde */
.rail-btn:disabled, .rail-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.rail-btn[aria-disabled="true"]:hover { background: transparent; color: inherit; border-color: var(--rule); }
.dark .rail-btn[aria-disabled="true"]:hover { border-color: var(--rule-light); }

/* recensioni: carosello di schede (build-pages.py, reviews()); --muted su --sand resta a 4,53:1 */
.rail--reviews { --rail-col: clamp(280px, 30vw, 440px); }
.rail--reviews .rail__track { align-items: stretch; }
.review { margin: 0; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); padding: clamp(28px, 3vw, 44px); background: var(--sand); }
.review__mark { font: 400 4.5rem/1 var(--f-display); color: var(--accent); height: .42em; overflow: visible; }
.review__text { margin: 0; flex: 1; font: 400 clamp(1.2rem, 1.45vw, 1.45rem)/1.35 var(--f-display); color: var(--ink); }
.review__by { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--rule); }
.review__name { font-weight: 500; }
.review__meta { font-size: var(--fs-small); color: var(--muted); }
.review__note { font-style: italic; }
.reviews__more { margin-top: clamp(36px, 4vw, 56px); }

/* pagina esperienza a colonna singola */
.detail--single { grid-template-columns: minmax(0, 1fr) !important; max-width: 1100px; }

/* parallax leggero degli sfondi delle hero.
   @supports controlla anche animation-range: esclude i browser con supporto parziale, che usano il fallback di main.js */
.hero__bg, .phero__bg { will-change: transform; }
@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg, .phero__bg { animation: hero-plx linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    @keyframes hero-plx { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 22%, 0); } }
  }
}

/* parallax delle sezioni a tutta larghezza: overflow clip non crea un contenitore di scroll,
   così view() segue lo scroll della pagina */
.band, .closing { overflow: clip; }
@supports (animation-timeline: view()) and (animation-range: 0% 100%) {
  @media (prefers-reduced-motion: no-preference) {
    [data-parallax] { animation: plx linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes plx { from { transform: translate3d(0, -9%, 0); } to { transform: translate3d(0, 9%, 0); } }
  }
}

/* carosello foto della camera */
.gslide { overflow: hidden; background: var(--sand); }
.gslide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gslider__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.gslider__bar .label { color: var(--muted); font-variant-numeric: tabular-nums; }

/* comparsa del testo nella hero della home */
.hero__line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero .hero__kicker, .hero .hero__line, .hero .hero__side, .hero .hero__intro, .hero .choice, .hero .hero__status {
    animation: hero-up 1s cubic-bezier(.2, .7, .2, 1) backwards;
  }
  .hero .hero__line { animation: hero-blur 1.4s cubic-bezier(.2, .7, .2, 1) .05s both; will-change: transform, filter, opacity; }
  .hero .hero__kicker { animation-delay: .1s; }
  .hero .hero__side { animation-name: hero-fade; animation-delay: .5s; }
  /* Scelte, intro e orari salgono senza dissolvenza: Chrome conta l'LCP solo quando un testo
     animato da opacity 0 finisce l'animazione, e le scelte sono l'elemento LCP della home.
     Con l'opacità l'LCP arrivava a 3,3 s (CPU 4x, rete lenta); solo con transform coincide col primo disegno. */
  .hero .hero__intro, .hero .choice, .hero .hero__status { animation-name: hero-rise; }
  .hero .hero__intro { animation-delay: .3s; }
  .hero .choice:nth-child(1) { animation-delay: .36s; }
  .hero .choice:nth-child(2) { animation-delay: .44s; }
  .hero .hero__status { animation-delay: .52s; }
}
@keyframes hero-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { transform: translateY(24px); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-blur {
  from { opacity: 0; filter: blur(16px); transform: translate3d(0, 18px, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

/* carosello camere: foto intere (nessun ritaglio), altezza fissa, larghezza naturale */
.rail--inset { --rail-pad: 0px; --rail-gap: 12px; }
.rail--inset .rail__track > * { flex-basis: auto; }

/* foto della camera e dei piatti (ristorante): si aprono nella lightbox (PhotoSwipe).
   Le schede dei piatti (a.room-card__img) tengono l'hover delle altre schede (.room-card: zoom lento della foto). */
.gslide__link, a.room-card__img { display: block; cursor: zoom-in; }
/* anello di focus a due toni (crema e inchiostro): resta visibile sia sulle foto chiare sia su quelle scure */
.gslide__link { position: relative; }
.gslide__link:focus-visible, a.room-card__img:focus-visible { outline: none; }
.gslide__link:focus-visible::after, a.room-card__img:focus-visible::after { content: ""; position: absolute; inset: 4px; border: 2px solid var(--cream); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink); pointer-events: none; }
.gslide__link img { transition: opacity .3s; }
.gslide__link:hover img { opacity: .9; }
.rail.is-dragging .gslide__link, .rail.is-dragging a.room-card__img { cursor: grabbing; }
/* lightbox aperta (lightbox.js): niente zoom da hover sotto l'animazione di apertura e chiusura */
[data-lightbox].is-lb-open .room-card .room-card__img img { transform: none; transition: none; }
html .pswp { --pswp-bg: #1d1716; --pswp-placeholder-bg: #2a2220; } /* html: vince su photoswipe.css, caricato dopo */
.pswp__counter { font-family: inherit; font-variant-numeric: tabular-nums; }
/* bottoni della lightbox come le frecce dei caroselli su fondo scuro (.dark .rail-btn), con icone Phosphor (lightbox.js).
   html .pswp: vince su photoswipe.css, che azzera bordo e transizione su :hover/:focus */
html .pswp .pswp__top-bar { height: auto; align-items: center; gap: 8px; padding: 12px clamp(12px, 2vw, 24px); }
html .pswp .pswp__counter { margin: 0; opacity: 1; text-shadow: none; }
html .pswp .pswp__button { width: 54px; height: 54px; place-items: center; margin: 0; overflow: visible; opacity: 1; color: var(--cream); background: rgba(29, 23, 22, .55); border: 1px solid var(--rule-light); transition: background .3s, color .3s, border-color .3s, transform 160ms var(--ease); }
html .pswp .pswp__button--close, html .pswp.pswp--zoom-allowed .pswp__button--zoom, html .pswp .pswp__button--arrow { display: grid; }
html .pswp .pswp__button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
html .pswp .pswp__button:active { transform: scale(.96); }
html .pswp .pswp__button .ico { font-size: 20px; }
html .pswp .pswp__button--arrow { top: 50%; margin-top: -27px; }
html .pswp .pswp__button--arrow--prev { left: clamp(12px, 2vw, 24px); }
html .pswp .pswp__button--arrow--next { right: clamp(12px, 2vw, 24px); }
html .pswp .pswp__button--arrow:disabled, html .pswp.pswp--one-slide .pswp__button--arrow { display: none; }
.pswp__button--zoom .ph-magnifying-glass-minus, .pswp--zoomed-in .pswp__button--zoom .ph-magnifying-glass-plus { display: none; }
.pswp--zoomed-in .pswp__button--zoom .ph-magnifying-glass-minus { display: inline-block; }
.gslide { background: none; }
.gslide img { height: clamp(220px, 26vw, 460px); width: auto; max-width: none; aspect-ratio: auto; object-fit: contain; }
.detail__main { grid-template-columns: minmax(0, 1fr); } .detail__main > *, .gslider { min-width: 0; }

/* galleria della camera a tutta larghezza: esce da .wrap e arriva ai bordi della finestra.
   La prima foto parte allineata al contenuto; scorrendo, le foto arrivano fino al bordo sinistro. */
.gslider .rail--inset { width: var(--vw); margin-left: calc(50% - var(--vw) / 2); --rail-pad: var(--page-pad); --rail-gap: clamp(8px, 1vw, 16px); }
.gslider .gslide img { height: clamp(260px, min(44vw, 68svh), 760px); }
@media (max-width: 600px) { .gslider .gslide img { height: 56vw; } }

/* scritta del footer: fade in up quando entra in vista */
.rv--mark { transform: translateY(18%); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.rv--mark.is-in { transform: none; }
/* colore della scritta del footer; l'opacità 0.3 è lo stato finale della comparsa */
.ftr__mark { color: #c0a189; opacity: .3; }
.ftr__mark.rv:not(.is-in) { opacity: 0; }
.no-js .ftr__mark { opacity: .3; }
.ftr__mark.rv.is-in { opacity: .3; }
.booking-widget { min-height: 520px; }

/* modalità a contrasto elevato (Windows): l'hamburger è disegnato con background, che verrebbe rimosso;
   il logo diventa tutto del colore del testo, senza ombre */
@media (forced-colors: active) {
  .hdr__burger span { forced-color-adjust: none; background: CanvasText; }
  .logo { color: CanvasText; --logo-star: CanvasText; --logo-shadow: transparent; --logo-knock: transparent; }
  .ulink, :where(main, .ftr, .mnav__foot) p a, .prose li a, .ftr__cols a, .ftr__bottom a,
  .review__meta a, .xsrc a, .check a, .hero__status-body a, .cc__txt a { text-decoration: underline; }
}
.hero__kicker { text-transform: uppercase; }

/* =========================================================
   ACCESSIBILITÀ — form, righe dei menu, aree di tocco
   ========================================================= */
/* nota sui campi obbligatori; l'asterisco nelle etichette è nascosto ai lettori di schermo, che leggono già "obbligatorio" */
.form__note { font-size: var(--fs-small); color: var(--muted); }
.dark .form__note, .wine .form__note { color: var(--cream-dim); }
.book .form__note { grid-column: 1 / -1; margin-bottom: 18px; }
.panel .book .form__note { margin-bottom: 0; }

/* errori sotto il campo (main.js), collegati con aria-describedby */
.fld__err { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; font-size: var(--fs-small); line-height: 1.35; font-weight: 500; color: var(--accent); }
.fld__err .ico { font-size: 1.15em; margin-top: .05em; }
.dark .fld__err, .wine .fld__err { color: var(--cream); }
.fld [aria-invalid="true"] { border-bottom: 2px solid var(--accent); }
.dark .fld [aria-invalid="true"], .wine .fld [aria-invalid="true"] { border-bottom-color: var(--cream); }
.check:has([aria-invalid="true"]) { color: inherit; }

/* righe dei menu: "Leggi" con la freccia, in fondo a ogni riga */
.menu-row__dl { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 500; }

/* footer su mobile: righe distanziate 44 px, così ogni link ha un'area di tocco adeguata */
.ftr__cols a, .ftr__bottom a { position: relative; }
@media (max-width: 760px) {
  .ftr__cols li { padding: 10px 0; }
  .ftr__cols a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .ftr__bottom ul { row-gap: 22px; }
  .ftr__bottom a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}

/* =========================================================
   CONSENSO COOKIE — banner, pannello delle scelte, link nel footer (consent.js)
   ========================================================= */
/* banner: riquadro in basso a sinistra, non blocca la pagina. "Rifiuta" e "Accetta tutti" hanno la stessa misura. */
.cc {
  position: fixed; z-index: 70; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px);
  width: min(27rem, calc(100% - 32px)); display: grid; gap: 14px;
  padding: clamp(20px, 2vw, 28px); background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); box-shadow: 0 24px 56px -24px rgba(25, 18, 16, .45);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.cc.is-on { opacity: 1; transform: none; }
/* uscita (consent.js, hideBanner): più rapida dell'entrata, verso lo stesso bordo */
.cc.is-out { transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.cc__t { font: 400 1.6rem/1.05 var(--f-display); text-transform: uppercase; }
.cc__txt { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.cc__txt a { color: var(--ink); }
.cc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc__btn { min-height: 48px; padding: 0 14px; font-size: 1.05rem; }
.cc__more, .cc-dlg__x, .ftr__consent { border: 0; background: none; padding: 0; cursor: pointer; }
.cc__more { justify-self: start; min-height: 44px; font-size: var(--fs-small); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.cc__more:hover { color: var(--accent); }
/* telefono: il banner non deve coprire mezza pagina; spazi più stretti, "Personalizza" più vicino */
@media (max-width: 30em) {
  .cc { left: 16px; bottom: 16px; gap: 10px; padding: 18px 18px 8px; }
  .cc__t { font-size: 1.35rem; }
  .cc__btn { min-height: 46px; }
}

/* pannello delle scelte: <dialog> nativo (focus trattenuto, Esc per chiudere) */
.cc-dlg { width: min(40rem, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(25, 18, 16, .6); }
.cc-dlg::backdrop { background: rgba(25, 18, 16, .55); }
/* con il pannello aperto la pagina sotto non scorre (rotella o dito sullo sfondo o nel pannello).
   Solo CSS: niente overflow: hidden su <body>, che toglierebbe la barra di scorrimento e sposterebbe la pagina.
   Dove non è supportato sugli elementi che non scorrono, resta il comportamento di prima. */
.cc-dlg:modal { overscroll-behavior: contain; }
.cc-dlg::backdrop { overflow: hidden; overscroll-behavior: contain; }
/* pannello delle scelte: entra in 200ms, esce in 150ms; resta centrato (è un dialogo modale) */
.cc-dlg {
  opacity: 0; transform: scale(.97);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), overlay 150ms allow-discrete, display 150ms allow-discrete;
}
.cc-dlg[open] {
  opacity: 1; transform: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
@starting-style { .cc-dlg[open] { opacity: 0; transform: scale(.97); } }
.cc-dlg::backdrop { opacity: 0; transition: opacity 150ms var(--ease), overlay 150ms allow-discrete, display 150ms allow-discrete; }
.cc-dlg[open]::backdrop { opacity: 1; transition: opacity 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete; }
@starting-style { .cc-dlg[open]::backdrop { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cc-dlg, .cc-dlg[open] { transform: none; }
}
.cc-dlg__in { display: grid; gap: 20px; padding: clamp(22px, 3vw, 40px); }
.cc-dlg__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cc-dlg__t { font: 400 clamp(1.9rem, 3vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; }
.cc-dlg__x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; font-size: 22px; }
.cc-dlg__x:hover { color: var(--accent); }
.cc-dlg__intro { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }
.cc-dlg__intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cc-cats { border-top: 1px solid var(--rule); }
.cc-cat { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.cc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-cat__name { font: 500 1.125rem/1.3 var(--f-body); cursor: pointer; }
h3.cc-cat__name { cursor: default; }
.cc-cat__always { font-size: var(--fs-small); color: var(--muted); }
.cc-cat__desc { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.cc-cat__svc { font-size: var(--fs-small); color: var(--muted); }
.cc-dlg__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 34em) { .cc-dlg__btns { display: grid; } }

/* interruttore: checkbox con role="switch"; il bordo spento è --muted (contrasto 5,6:1 su --paper) */
.cc-switch { appearance: none; position: relative; flex: none; width: 52px; height: 30px; margin: 0; border: 1px solid var(--muted); border-radius: 999px; background: var(--paper); cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease); }
.cc-switch::before { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .3s var(--ease); }
.cc-switch:checked { background: var(--accent); border-color: var(--accent); }
.cc-switch:checked::before { background: var(--cream); transform: translateX(22px); }
@media (forced-colors: active) {
  .cc-switch { appearance: auto; width: 22px; height: 22px; border: 0; }
  .cc-switch::before { display: none; }
}

/* "Impostazioni cookie" nel footer: è un pulsante, ma si presenta come gli altri link del footer */
.ftr__consent {
  position: relative; color: inherit; font: inherit; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.ftr__consent:hover, .ftr__consent:focus-visible { color: var(--cream); background-position: left bottom; background-size: 100% 1px; }
.no-js .ftr__bottom li:has(> [data-consent-open]) { display: none; }
/* "Impostazioni cookie" dentro un testo (privacy): pulsante con l'aspetto di un link */
.cc-inline { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-inline:hover { color: var(--accent); }
@media (max-width: 760px) {
  .ftr__consent::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
@media (forced-colors: active) { .ftr__consent { text-decoration: underline; } }

/* ICONS:START — generato da tools/build-icons.py, non modificare a mano */
/* Phosphor Icons (MIT, phosphoricons.com), variante light: solo le 59 icone usate dal sito */
@font-face { font-family: "Phosphor-Light"; src: url("../fonts/phosphor-light.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.ph-light { font-family: "Phosphor-Light" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph-light.ph-arrow-down:before { content: "\e03e"; }
.ph-light.ph-arrow-left:before { content: "\e058"; }
.ph-light.ph-arrow-right:before { content: "\e06c"; }
.ph-light.ph-arrow-up-right:before { content: "\e092"; }
.ph-light.ph-baby:before { content: "\e774"; }
.ph-light.ph-bank:before { content: "\e0b4"; }
.ph-light.ph-basket:before { content: "\e964"; }
.ph-light.ph-bed:before { content: "\e0cc"; }
.ph-light.ph-bicycle:before { content: "\e0d6"; }
.ph-light.ph-book:before { content: "\e0e2"; }
.ph-light.ph-bus:before { content: "\e106"; }
.ph-light.ph-calendar-check:before { content: "\e712"; }
.ph-light.ph-calendar-x:before { content: "\e10c"; }
.ph-light.ph-car:before { content: "\e112"; }
.ph-light.ph-car-simple:before { content: "\e114"; }
.ph-light.ph-cards:before { content: "\e0f8"; }
.ph-light.ph-caret-down:before { content: "\e136"; }
.ph-light.ph-castle-turret:before { content: "\e9d0"; }
.ph-light.ph-cat:before { content: "\e748"; }
.ph-light.ph-coffee:before { content: "\e1c2"; }
.ph-light.ph-cookie:before { content: "\e6ca"; }
.ph-light.ph-fork-knife:before { content: "\e262"; }
.ph-light.ph-garage:before { content: "\ecd6"; }
.ph-light.ph-hair-dryer:before { content: "\ea66"; }
.ph-light.ph-image:before { content: "\e2ca"; }
.ph-light.ph-info:before { content: "\e2ce"; }
.ph-light.ph-lock-key:before { content: "\e2fe"; }
.ph-light.ph-magnifying-glass-minus:before { content: "\e30e"; }
.ph-light.ph-magnifying-glass-plus:before { content: "\e310"; }
.ph-light.ph-map-pin:before { content: "\e316"; }
.ph-light.ph-map-trifold:before { content: "\e31a"; }
.ph-light.ph-mountains:before { content: "\e7ae"; }
.ph-light.ph-note:before { content: "\e348"; }
.ph-light.ph-paw-print:before { content: "\e648"; }
.ph-light.ph-person-simple-bike:before { content: "\e734"; }
.ph-light.ph-phone:before { content: "\e3b8"; }
.ph-light.ph-plus:before { content: "\e3d4"; }
.ph-light.ph-receipt:before { content: "\e3ec"; }
.ph-light.ph-road-horizon:before { content: "\e838"; }
.ph-light.ph-rows:before { content: "\e5a2"; }
.ph-light.ph-ruler:before { content: "\e6b8"; }
.ph-light.ph-seal-check:before { content: "\e606"; }
.ph-light.ph-security-camera:before { content: "\eca4"; }
.ph-light.ph-shower:before { content: "\e776"; }
.ph-light.ph-sign-in:before { content: "\e428"; }
.ph-light.ph-sign-out:before { content: "\e42a"; }
.ph-light.ph-snowflake:before { content: "\e5aa"; }
.ph-light.ph-sparkle:before { content: "\e6a2"; }
.ph-light.ph-television:before { content: "\e754"; }
.ph-light.ph-ticket:before { content: "\e490"; }
.ph-light.ph-towel:before { content: "\ede6"; }
.ph-light.ph-train:before { content: "\e496"; }
.ph-light.ph-users:before { content: "\e4d6"; }
.ph-light.ph-warning-circle:before { content: "\e4e2"; }
.ph-light.ph-wheelchair:before { content: "\e4e8"; }
.ph-light.ph-wifi-high:before { content: "\e4ea"; }
.ph-light.ph-wine:before { content: "\e6b2"; }
.ph-light.ph-wrench:before { content: "\e5d4"; }
.ph-light.ph-x:before { content: "\e4f6"; }
/* ICONS:END */

/* =========================================================
   PAGINE DEI MENU (generate da tools/build-menus.py)
   ========================================================= */
.menu-doc { max-width: 54rem; }
.menu-doc__back { margin-bottom: 14px; }
.menu-doc__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.menu-doc__key { padding: 14px 0; border-block: 1px solid var(--rule); color: var(--ink-soft); }
.menu-doc h2 { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.05 var(--f-display); text-transform: uppercase; margin: clamp(44px, 6vw, 76px) 0 6px; }
.menu-doc h3 { font: 400 1.65rem/1.15 var(--f-display); margin: 34px 0 6px; }
.menu-doc > p + p { margin-top: 10px; }
.menu-doc__group { color: var(--accent); }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dish__name { grid-column: 1; font: 400 clamp(1.6rem, 1.35rem + .6vw, 1.85rem)/1.2 var(--f-display); }
.dish__desc { grid-column: 1; margin-top: 4px; color: var(--ink-soft); }
.dish__meta { grid-column: 2; grid-row: 1 / span 2; display: grid; align-content: start; justify-items: end; gap: 4px; text-align: right; }
.dish__price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__alg { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 600px) {
  .dish { grid-template-columns: minmax(0, 1fr); }
  .dish__meta { grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: start; margin-top: 6px; text-align: left; }
  .dish__price { white-space: normal; }
}
/* larghezze fisse e a capo nelle parole lunghe: la tabella non supera mai lo schermo, anche con la spaziatura del testo aumentata (1.4.12) */
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { overflow-wrap: anywhere; hyphens: auto; }
.data-table thead th:first-child { width: 3.4em; }
.data-table thead th:nth-child(2) { width: 38%; }
@media (max-width: 600px) { .data-table th, .data-table td { padding-right: 10px; } .data-table tbody th { font-size: 1.2rem; } }
.data-table th, .data-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table thead th { font-weight: 500; color: var(--muted); border-bottom-color: var(--ink); }
.data-table tbody th { font: 400 1.35rem/1.25 var(--f-display); }
.data-table td { color: var(--ink-soft); }
.data-table td:first-child { font-variant-numeric: tabular-nums; }

/* pagine esperienze: testo dell'articolo (tools/data/esperienze/*.html), tabelle, foto e riquadro "perché dormire qui" */
.xprose { max-width: 44rem; }
.xprose > :first-child { margin-top: 0; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose ol li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.xtable { width: 100%; border-collapse: collapse; margin: .4rem 0 1.8rem; font-size: var(--fs-small); }
.xtable th, .xtable td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: break-word; hyphens: auto; }
.xtable th:last-child, .xtable td:last-child { padding-right: 0; }
.xtable thead th { font-weight: 500; color: var(--muted); border-bottom-color: var(--ink); }
.xtable tbody th { font: 400 1.25rem/1.25 var(--f-display); color: var(--ink); }
.xtable tbody th { min-width: 6.4em; hyphens: manual; } /* i nomi (Bolzano, Mezzolombardo) non vanno spezzati */
@media (max-width: 600px) { .xtable th, .xtable td { padding-right: 10px; } .xtable tbody th { font-size: 1.12rem; } }
.xtable td { color: var(--ink-soft); }
.xfig { margin: 2.2rem 0; }
.xfig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.xfig figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.xwhy { padding: clamp(24px, 3.4vw, 44px); background: var(--sand); display: grid; gap: 32px; }
.xwhy .btn-row { align-items: center; }
.xwhy .info__item p { font-size: var(--fs-small); line-height: 1.55; }
.xwhy__price { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--accent); }
.xwhy__price .ico { font-size: 24px; }
.xsrc { display: grid; gap: 8px; font-size: var(--fs-small); color: var(--muted); }
.xsrc a { overflow-wrap: anywhere; }
.panel__price { display: flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 500; }
