/* FUOCO LENTO — v9 (2026-11-05): più corto, più pulito, I CRITERI.
 * Categoria Luxury & Premium: Bodoni Moda per i titoli (400), Inter per i testi (400/500).
 * Colori della v8 invariati. Spigoli netti, griglia 1280 px, spaziature 8·16·24·32·48·64·96.
 * Il film d'apertura è quello della v8, senza modifiche. Nessuna risorsa esterna.
 */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations"),
       url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colori della v8 */
  --carbone: #0d0907;
  --fuliggine: #17110d;
  --tizzone: #2b1c13;
  --brace: #e2622b;
  --brace-hi: #ff9a4a;
  --brace-ink: #b0431a;
  --cenere: #b9ab9b;
  --cenere-hi: #d8cdbf;
  --lino: #efe7da;
  --lino-2: #e5dacb;
  --inchiostro: #241812;
  --caffe: #6b4a35;
  --seppia: #5a4636;
  --riga-scura: rgba(239, 231, 218, .14);
  --riga-chiara: rgba(36, 24, 18, .14);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* spaziature */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: var(--s6);
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1280px;
  --col-gap: var(--s2);
  --nav-h: 72px;
  --ease-slow: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 960px) { :root { --section: var(--s7); --col-gap: var(--s3); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carbone);
  color: var(--lino);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
em { font-style: normal; }
strong, b { font-weight: 500; }
::selection { background: var(--brace); color: var(--carbone); }

:focus-visible { outline: 2px solid var(--brace-hi); outline-offset: 3px; }
[data-tone="light"] :focus-visible, .book :focus-visible, .carta :focus-visible { outline-color: var(--brace-ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 16px; background: var(--lino); color: var(--inchiostro);
  font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: var(--nav-h); }

/* ── tipografia ─────────────────────────────────────────────── */
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase;
}
.label--ember { color: var(--brace); }
.label--ash { color: var(--cenere-hi); }
.label--coffee { color: var(--caffe); }
.h2 {
  margin-top: var(--s2);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.lede { margin-top: var(--s3); max-width: 30em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--cenere-hi); text-wrap: pretty; }
.body { margin-top: var(--s2); max-width: 32em; color: var(--cenere); text-wrap: pretty; }
.body--ink { color: var(--seppia); }
.price { font-variant-numeric: tabular-nums lining-nums; font-weight: 500; white-space: nowrap; }
.price__cur { margin-left: .15em; font-weight: 400; opacity: .75; }

/* ── bottoni e link ─────────────────────────────────────────── */
/* Una sola azione in evidenza: «Prenota» (brace). Tutto il resto è a filo. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s5); }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 var(--s4); border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--ember { background: var(--brace); color: #1a0c05; }
.btn--ember:hover { background: var(--brace-hi); }
.btn--ghost { border-color: rgba(239, 231, 218, .4); color: var(--lino); }
.btn--ghost:hover { border-color: var(--lino); background: rgba(239, 231, 218, .08); }
.btn--light { min-width: 240px; border-color: var(--lino); color: var(--lino); background: rgba(13, 9, 7, .28); }
.btn--light:hover { background: var(--lino); color: var(--inchiostro); }
.btn--line { border-color: rgba(36, 24, 18, .45); color: var(--inchiostro); background: transparent; }
.btn--line:hover { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--lino); }
.btn--sm { min-height: 40px; padding: 0 var(--s3); font-size: 14px; }
.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .32em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: currentColor; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(36, 24, 18, .24); border-radius: 0; background: transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.icon-btn:hover { background: rgba(36, 24, 18, .07); }
.icon-btn--light { border-color: rgba(239, 231, 218, .32); color: var(--lino); }
.icon-btn--light:hover { background: rgba(239, 231, 218, .1); }

/* ── marchio testuale (✦ FUOCO LENTO) ───────────────────────── */
.mark { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; font-family: var(--serif); font-size: 17px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.mark__spark { color: var(--brace); font-family: var(--sans); font-size: .95em; letter-spacing: 0; }

/* ── navigazione ────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  color: var(--lino); transition: color .4s, background-color .4s, box-shadow .4s;
}
.nav__inner { height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--s4); }
.nav__links { display: flex; gap: var(--s4); margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.nav__links a { padding: 6px 0; text-decoration: none; opacity: .82; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: opacity .2s, background-size .35s var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; background-size: 100% 1px; }
.nav__actions { display: flex; align-items: center; gap: var(--s3); }
.nav__tel { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; opacity: .86; }
.nav__tel:hover { opacity: 1; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav__burger, .nav__burger::before { display: block; width: 22px; height: 1.5px; margin: auto; background: currentColor; }
.nav__burger { position: relative; transform: translateY(-4px); }
.nav__burger::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; }
.nav.is-solid { background: rgba(13, 9, 7, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(239, 231, 218, .08); }
.nav.is-solid[data-tone="light"] { background: rgba(239, 231, 218, .9); color: var(--inchiostro); box-shadow: 0 1px 0 var(--riga-chiara); }

@media (max-width: 1059px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; gap: var(--s1); }
}
@media (max-width: 719px) {
  :root { --nav-h: 64px; }
  .nav__tel { display: none; }
  .mark { font-size: 15px; letter-spacing: .16em; }
}

/* ── IL FILM (v8, invariato) ────────────────────────────────── */
.film { position: relative; background: var(--carbone); }
.film__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.film__stills, .film__still, .film__still img, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__still img, .film__video { object-fit: cover; }
.film__still { transform: scale(calc(1.06 - var(--p, 0) * .06)); }
.film__video { opacity: 0; transition: opacity .9s ease; background: transparent; }
.film.is-video .film__video { opacity: 1; }
.film__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(13, 9, 7, .5), rgba(13, 9, 7, 0) 18%),
    linear-gradient(to top, rgba(13, 9, 7, .55), rgba(13, 9, 7, 0) 30%);
}
.film__titles { position: absolute; inset: 0; pointer-events: none; }
.ft { position: absolute; }
/* il titolo d'apertura sta sulla stessa griglia del sito (1280 px) */
.ft--open { left: 0; right: 0; bottom: clamp(72px, 14vh, 150px); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ft__brand {
  margin-top: var(--s2); font-family: var(--serif); font-weight: 400;
  font-size: clamp(54px, 10vw, 168px); line-height: .92; letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 0 60px rgba(13, 9, 7, .6);
}
.ft__brand .mark__spark { display: inline-block; vertical-align: top; margin-right: .18em; font-size: .3em; transform: translateY(.35em); }
.ft__sub { margin-top: var(--s2); font-size: clamp(17px, 1.5vw, 21px); color: var(--cenere-hi); }
.ft--open { text-shadow: 0 1px 2px rgba(13, 9, 7, .55), 0 0 28px rgba(13, 9, 7, .6); }
.fuse, .film__hint { display: none; }

/* il trittico: il film fermo (prefers-reduced-motion / JS assente) */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--carbone); }
.triptych li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.triptych picture, .triptych img { width: 100%; height: 100%; }
.triptych img { object-fit: cover; }

/* statico: la sala d'apertura mostra il piatto vero */
.film__still--start, .film__still--glow { opacity: 0; }
html:not(.motion) .film__veil::after { content: ""; position: absolute; inset: 0; background: rgba(13, 9, 7, .4); }

/* con movimento: il film è guidato dallo scroll */
.motion .film { height: 600vh; }
.motion .film__stage { position: sticky; top: 0; }
.motion .film__still--start { opacity: 1; }
.motion .film__still--glow { opacity: var(--glow, 0); }
.motion .film__still--end { opacity: var(--end, 0); }
.motion .ft { opacity: var(--o, 0); transform: translate3d(0, calc((1 - var(--o, 0)) * 28px), 0); will-change: opacity, transform; }
.motion .ft--open { transform: translate3d(0, calc((1 - var(--o, 1)) * -36px), 0); opacity: var(--o, 1); }
.motion .triptych { display: none; }
.motion .fuse {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px;
  background: rgba(239, 231, 218, .16); overflow: hidden;
}
.fuse__burn {
  position: absolute; inset: 0; transform: translate3d(calc((var(--p, 0) - 1) * 100%), 0, 0);
  background: linear-gradient(90deg, rgba(226, 98, 43, 0), var(--brace) 70%, #ffd6a0);
}
.motion .film__hint {
  display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: 52px;
  transform: translateX(-50%); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cenere-hi); opacity: var(--hint, 1); white-space: nowrap;
}
.film__hint span { position: relative; width: 1px; height: 28px; background: rgba(239, 231, 218, .25); overflow: hidden; }
.film__hint span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brace-hi); animation: hint 2.4s var(--ease-slow) infinite; }
@keyframes hint { to { top: 100%; } }

@media (max-width: 719px) {
  .motion .film { height: 500vh; }
  .ft--open { bottom: auto; top: calc(var(--nav-h) + 9vh); }
  .ft__brand { font-size: clamp(60px, 20vw, 120px); line-height: .88; }
  .ft__brand .mark__spark { display: block; margin: 0 0 14px; transform: none; font-size: 22px; }
  .motion .film__hint { bottom: 60px; }
  .motion .fuse { bottom: 40px; }
  .film__veil {
    background:
      linear-gradient(to bottom, rgba(13, 9, 7, .6), rgba(13, 9, 7, 0) 30%),
      linear-gradient(to top, rgba(13, 9, 7, .7), rgba(13, 9, 7, .3) 30%, rgba(13, 9, 7, 0) 52%);
  }
}

/* fine del film: ✦ FUOCO LENTO su un velo con i colori del piatto */
.ft--end { display: none; }
.motion .ft--end {
  inset: 0; display: grid; place-items: center; transform: none;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
  background:
    radial-gradient(60% 70% at 82% 88%, rgba(70, 110, 40, .38), rgba(70, 110, 40, 0) 70%),
    linear-gradient(155deg, rgba(150, 30, 16, .66), rgba(200, 60, 34, .52) 40%, rgba(226, 150, 120, .42) 68%, rgba(236, 222, 200, .5));
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .motion .ft--end { background: linear-gradient(155deg, #8e1e10, #c23c22 40%, #d99a80 68%, #e8dcc6); }
}
.ft__end {
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  font-family: var(--serif); font-size: clamp(56px, 11vw, 190px); line-height: .9; letter-spacing: .02em;
  text-transform: uppercase; text-align: center; color: var(--lino);
  text-shadow: 0 2px 40px rgba(70, 14, 6, .5);
  transform: scale(1.06); transition: transform 1.8s cubic-bezier(.2, .7, .1, 1);
}
.motion .ft--end.is-on { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.ft--end.is-on .ft__end { transform: none; }
.ft__end-spark { font-family: var(--sans); font-size: .22em; color: #ffe1c9; letter-spacing: 0; }
@media (max-width: 719px) { .ft__end { font-size: clamp(56px, 19vw, 110px); padding-inline: 12px; } }

/* telefono in verticale: il film in una finestra 4:5 con i bordi sfumati, così la pasta resta intera;
   attorno, i tre fotogrammi del film sfocati fanno da alone di colore che cambia con lo scroll */
@media (max-aspect-ratio: 4/5) {
  .motion .film__video {
    top: 50%; bottom: auto; height: auto; aspect-ratio: 4 / 5; transform: translateY(-46%);
    -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  }
  .motion .film.is-video .film__still img { filter: blur(26px) brightness(.72) saturate(1.15); transform: scale(1.2); }
}

/* ── comparsa al passaggio: discreta ────────────────────────── */
.motion [data-reveal="fade"] { opacity: 0; transform: translate3d(0, 16px, 0); }
.motion [data-reveal="fade"].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1.2s var(--ease-out) var(--d, 0ms); }
/* la foto si apre da una fessura di luce, come lo sportello del forno */
.motion [data-reveal="slit"] .frame { clip-path: inset(46% 0 46% 0); }
.motion [data-reveal="slit"] .frame img { transform: scale(1.1); }
.motion [data-reveal="slit"] figcaption { opacity: 0; }
.motion [data-reveal="slit"].is-in .frame { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-slow) var(--d, 0ms); }
.motion [data-reveal="slit"].is-in .frame img { transform: none; transition: transform 2s var(--ease-slow) var(--d, 0ms); }
.motion [data-reveal="slit"].is-in figcaption { opacity: 1; transition: opacity .8s ease calc(var(--d, 0ms) + 600ms); }

.frame { overflow: hidden; background: var(--tizzone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: var(--s2); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cenere); }

/* ── LA CUCINA · cottura lenta ──────────────────────────────── */
.cucina { padding-block: var(--section); background: var(--carbone); }
.cucina__grid { display: grid; gap: var(--s5); }
.cucina__photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.cucina__photos .frame { aspect-ratio: 4 / 5; }
@media (min-width: 960px) {
  .cucina__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .cucina__copy { grid-column: 1 / 6; }
  .cucina__photos { grid-column: 7 / 13; }
}

/* ── IL MENU · la foto e il pulsante ────────────────────────── */
.menu { position: relative; display: grid; place-items: center; min-height: clamp(560px, 92vh, 960px); min-height: clamp(560px, 92svh, 960px); overflow: hidden; isolation: isolate; text-align: center; background: var(--tizzone); }
.menu__bg, .menu__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.menu__bg img { object-fit: cover; }
.menu__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 48% at 50% 50%, rgba(13, 9, 7, .7), rgba(13, 9, 7, .38) 100%),
    linear-gradient(rgba(13, 9, 7, .45), rgba(13, 9, 7, 0) 22%, rgba(13, 9, 7, 0) 78%, rgba(13, 9, 7, .45));
}
.menu__inner { display: flex; flex-direction: column; align-items: center; padding-block: var(--section); }
.menu__title { margin-top: var(--s2); font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 10vw, 144px); line-height: .95; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(13, 9, 7, .5); }
.menu__sub { margin-top: var(--s3); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--cenere-hi); }
.menu .actions { margin-top: var(--s5); }

/* la carta: una finestra a schede */
.carta { width: min(1040px, calc(100vw - 48px)); height: min(880px, calc(100dvh - 48px)); margin: auto; background: var(--lino); color: var(--inchiostro); }
.carta[open] { display: flex; }
.carta__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.carta__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.carta__close { flex: none; }
.carta__title { margin-top: var(--s1); font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.carta__tabs { display: flex; gap: var(--s4); margin-top: var(--s4); padding-inline: var(--s5); border-bottom: 1px solid var(--riga-chiara); overflow-x: auto; scrollbar-width: none; }
.carta__tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 0 0 var(--s2); border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: .03em; color: var(--seppia); white-space: nowrap;
  transition: color .2s;
}
.tab span { margin-left: var(--s1); font-size: 12px; color: var(--caffe); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--inchiostro); }
.tab[aria-selected="true"] { color: var(--inchiostro); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brace-ink); }
.carta__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s2) var(--s5) var(--s4); }
.course + .course { margin-top: var(--s5); }
.course__title { padding-block: var(--s3) var(--s1); font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.js:not(.no-dialog) .course__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.course:focus-visible { outline-offset: -2px; }
.dishes { display: grid; column-gap: var(--s5); }
@media (min-width: 840px) { .dishes { grid-template-columns: 1fr 1fr; } }
.dish { padding: var(--s3) 0; border-bottom: 1px solid var(--riga-chiara); }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.dish__name { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 23px); line-height: 1.2; }
.dish .price { font-size: 16px; }
.dish__desc { margin-top: var(--s1); max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--seppia); }
.carta__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); padding: var(--s3) var(--s5); border-top: 1px solid var(--riga-chiara); font-size: 14px; color: var(--seppia); }
@media (max-width: 719px) {
  .carta { width: 100vw; height: 100vh; height: 100dvh; }
  .carta__head { padding: var(--s3) 20px 0; }
  .carta__tabs { gap: var(--s3); margin-top: var(--s3); padding-inline: 20px; }
  .carta__body { padding: var(--s1) 20px var(--s4); }
  .carta__foot { padding: var(--s2) 20px calc(var(--s2) + env(safe-area-inset-bottom)); }
  .carta__foot p { display: none; }
  .carta__foot .btn { width: 100%; }
}
/* senza JavaScript (o senza <dialog>) la carta resta nella pagina, completa */
html:not(.js) .carta, .no-dialog .carta { display: block; position: static; width: auto; height: auto; margin: 0; padding-block: var(--section); }
html:not(.js) .carta__panel, .no-dialog .carta__panel { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
html:not(.js) .carta__tabs, .no-dialog .carta__tabs,
html:not(.js) .carta__close, .no-dialog .carta__close { display: none; }

/* ── LA SALA ────────────────────────────────────────────────── */
.sala { padding-block: var(--section); color: var(--inchiostro); background: var(--lino); }
.sala__grid { display: grid; gap: var(--s5); }
/* la foto del locale è il pulsante della galleria: «Guarda la gallery» compare al passaggio del cursore */
.sala__photo { max-width: 427px; }                 /* la foto è 427 px: mai mostrata più grande */
.sala__open { position: relative; display: block; width: 100%; aspect-ratio: 427 / 571; padding: 0; border: 0; cursor: pointer; }
.sala__open img { transition: transform 1.2s var(--ease-out); }
.sala__hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13, 9, 7, .42); opacity: 0; transition: opacity .45s var(--ease-out);
}
.sala__hint span {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--s4);
  border: 1px solid var(--lino); color: var(--lino);
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
  transform: translateY(8px); transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .sala__open:hover .sala__hint { opacity: 1; }
  .sala__open:hover .sala__hint span { transform: none; }
  .sala__open:hover img, .motion [data-reveal="slit"].is-in .sala__open:hover img { transform: scale(1.03); transition: transform 1.2s var(--ease-out); }
}
.sala__open:focus-visible .sala__hint { opacity: 1; }
.sala__open:focus-visible .sala__hint span { transform: none; }
/* telefono e tablet (nessun cursore): la scritta resta visibile, piccola, in fondo alla foto */
@media (hover: none) {
  .sala__hint { place-items: end start; padding: var(--s2); background: linear-gradient(rgba(13, 9, 7, 0) 60%, rgba(13, 9, 7, .55)); opacity: 1; }
  .sala__hint span { min-height: 44px; padding: 0 var(--s3); font-size: 14px; transform: none; background: rgba(13, 9, 7, .3); }
}
.voice { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--riga-chiara); }
.voice__value { font-family: var(--serif); font-size: clamp(72px, 7vw, 104px); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.voice__value small { margin-left: .1em; font-size: .3em; letter-spacing: 0; color: var(--caffe); }
.voice__count { margin-top: var(--s1); font-size: 15px; color: var(--seppia); }
.voice__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.voice__metrics dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--caffe); }
.voice__metrics dd { margin-top: var(--s1); font-family: var(--serif); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.voice__value span, .voice__count span { font-variant-numeric: tabular-nums; }
.sala .h2 { font-size: clamp(40px, 4.4vw, 60px); }
.sala .body { margin-top: var(--s3); }
.sala .actions { margin-top: var(--s4); }
@media (min-width: 960px) {
  .sala__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .sala__photo { grid-column: 1 / 6; }
  .sala__copy { grid-column: 7 / 13; }
}
@media (min-width: 1200px) {
  .sala__photo { grid-column: 1 / 5; }
  .sala__copy { grid-column: 6 / 12; }
}

/* barre di valutazione (<meter>, corrette anche senza JavaScript) */
.meter {
  display: block; width: 100%; height: 3px; margin-top: var(--s2); border: 0; border-radius: 0;
  background: rgba(36, 24, 18, .12); -webkit-appearance: none; appearance: none; overflow: hidden;
}
.meter--big { height: 4px; max-width: 320px; }
.meter::-webkit-meter-bar { height: inherit; border: 0; border-radius: 0; background: rgba(36, 24, 18, .12); }
.meter::-webkit-meter-optimum-value, .meter::-webkit-meter-suboptimum-value, .meter::-webkit-meter-even-less-good-value { border-radius: 0; background: var(--caffe); }
.meter::-moz-meter-bar { border-radius: 0; background: var(--caffe); }

/* ── PRENOTA E DOVE SIAMO ───────────────────────────────────── */
.arrivo { padding-block: var(--section); color: var(--inchiostro); background: var(--lino-2); text-align: center; }
.arrivo__inner { display: flex; flex-direction: column; align-items: center; }
.arrivo__inner .label .mark__spark { margin-right: .4em; }
.arrivo__title { margin-top: var(--s2); font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
.arrivo__sub { margin-top: var(--s2); color: var(--seppia); font-size: 18px; }
.ways { display: grid; gap: var(--s2); width: 100%; max-width: 784px; margin-top: var(--s5); }
@media (min-width: 720px) { .ways { grid-template-columns: 1fr 1fr; gap: var(--s3); } }
.way {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); padding: var(--s3) var(--s4) var(--s4);
  border: 1px solid rgba(36, 24, 18, .22); border-radius: 0; text-align: left; text-decoration: none;
  background: rgba(255, 255, 255, .2); transition: border-color .25s, background-color .25s;
}
.way:hover { border-color: var(--brace-ink); background: rgba(255, 255, 255, .45); }
.way__label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brace-ink); }
.way__main { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.05; font-variant-numeric: lining-nums; }
.way__note { font-size: 14px; color: var(--seppia); }
.where { display: grid; gap: var(--s3); width: 100%; max-width: 784px; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--riga-chiara); text-align: left; }
.where__title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.where address { margin-top: var(--s1); color: var(--seppia); }
.where__links { display: flex; flex-direction: column; gap: var(--s1); }
.where__hours { font-size: 14px; color: var(--seppia); }
@media (min-width: 720px) {
  .where { grid-template-columns: 1fr 1fr; }
  .where__links { align-items: flex-end; justify-content: flex-end; }
  .where__hours { grid-column: 1 / -1; }
}

/* ── footer ─────────────────────────────────────────────────── */
.footer { padding-block: var(--s7) var(--s5); background: var(--carbone); color: var(--cenere); font-size: 15px; }
.footer__grid { display: grid; gap: var(--s5); grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand .mark { color: var(--lino); }
.footer__brand p { margin-top: var(--s2); max-width: 26em; }
.footer__h { margin-bottom: var(--s2); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--lino); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lino); text-decoration: underline; text-underline-offset: .3em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(239, 231, 218, .1); font-size: 13px; }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 8fr 2fr 2fr; gap: var(--col-gap); }
  .footer__brand { grid-column: auto; }
}

/* ── barra azioni (telefono) ────────────────────────────────── */
.actionbar { display: none; }
@media (max-width: 719px) {
  .actionbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35;
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 4px; padding: 4px;
    background: rgba(13, 9, 7, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(239, 231, 218, .1);
    transform: translateY(calc(100% + 24px)); transition: transform .5s var(--ease-out);
  }
  .actionbar.is-on { transform: none; }
  html:not(.js) .actionbar { position: static; transform: none; margin: 0 12px 12px; }
  .footer { padding-bottom: 112px; }
}
.actionbar__btn { display: flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 48px; color: var(--lino); text-decoration: none; font-size: 14px; font-weight: 500; }
.actionbar__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.actionbar__btn--primary { background: var(--brace); color: #1a0c05; }
.actionbar__spark { font-size: 12px; }

/* ── finestre (dialog) ──────────────────────────────────────── */
html.has-dialog { overflow: hidden; }
dialog { padding: 0; border: 0; border-radius: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(13, 9, 7, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .45s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }

.book { width: min(520px, calc(100vw - 24px)); margin: auto; background: var(--lino); color: var(--inchiostro); }
.book__panel { position: relative; display: grid; gap: var(--s2); padding: var(--s5) var(--s4) var(--s4); }
.book__close { position: absolute; top: var(--s2); right: var(--s2); }
.book__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 44px); line-height: 1.02; }
.book__sub { margin-bottom: var(--s1); color: var(--seppia); }
.book .way { background: rgba(255, 255, 255, .4); }
.book__where { margin-top: var(--s1); font-size: 14px; color: var(--seppia); text-align: center; }

.sheet { width: 100%; height: 100%; margin: 0; background: var(--carbone); color: var(--lino); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: var(--carbone); }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--gutter); }
.sheet__links { display: flex; flex-direction: column; gap: var(--s1); padding: 8vh var(--gutter) 0; }
.sheet__links a { font-family: var(--serif); font-size: clamp(38px, 11vw, 64px); line-height: 1.12; text-decoration: none; }
.sheet__links a:hover { color: var(--brace-hi); }
.sheet__foot { margin-top: auto; display: grid; gap: var(--s2); padding: var(--s3) var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom)); color: var(--cenere); }

/* ── LA GALLERIA (galleria.html): tutte le foto su una pagina bianca a scorrimento ── */
.page-galleria { background: #fff; color: var(--inchiostro); }
.page-galleria :focus-visible { outline-color: var(--brace-ink); }
.gbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--riga-chiara); }
.gbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--nav-h); }
.gbar__actions { display: flex; align-items: center; gap: var(--s3); }
.gbar__back { font-size: 14px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--seppia); }
.gbar__back:hover { color: var(--inchiostro); text-decoration: underline; text-underline-offset: .32em; }
.galleria { padding-block: var(--s6) var(--section); }
.galleria__head { max-width: 640px; margin-bottom: var(--s6); }
.galleria__title { margin-top: var(--s2); font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: -.012em; }
.galleria__sub { margin-top: var(--s2); color: var(--seppia); }
/* colonne: ogni foto con le sue proporzioni, senza ritagli; mai più larga del file (le foto del locale sono 427 px) */
.galleria__grid { columns: 1; column-gap: var(--s3); }
@media (min-width: 600px) { .galleria__grid { columns: 2; } }
@media (min-width: 1024px) { .galleria__grid { columns: 3; } }
.shot { break-inside: avoid; margin-bottom: var(--s5); }
.shot img { width: 100%; height: auto; background: var(--lino); }
.shot figcaption { margin-top: var(--s1); color: var(--caffe); }
.galleria__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--riga-chiara); }
.gfoot { padding-block: var(--s4) var(--s5); border-top: 1px solid var(--riga-chiara); font-size: 13px; color: var(--seppia); background: #fff; }
.gfoot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); }
.gfoot a { text-decoration: none; }
.gfoot a:hover { color: var(--inchiostro); text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 599px) {
  .gbar__back { display: none; }
  .galleria { padding-top: var(--s5); }
  .galleria__head { margin-bottom: var(--s5); }
  .shot { margin-bottom: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
