/* Rovente · Time to Tap Table — v3
   Mobile-first, scuro come la sala la sera. Palette presa dal locale:
   nero caldo, oro delle tovagliette, noce dei tavoli, avorio, rosso del logo. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/v2/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/v2/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/v2/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --ink: #120e0c;
  --coal: #1a1411;
  --walnut: #241a15;
  --line: rgba(201, 164, 92, .24);
  --line-strong: rgba(227, 200, 143, .5);
  --gold: #c9a45c;
  --gold-soft: #e3c88f;
  --ivory: #f6f0e9;
  --muted: #bfb3a5;
  --red: #cd1c2d;
  --red-hi: #dd2536;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 20px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  /* tempi delle animazioni nuove (menu e «Torna su»), allineati a quelli già usati: tocco 140 ms, interfaccia 260-280 ms */
  --dur-press: 140ms;
  --dur-ui: 280ms;
  --dur-accent: 460ms;
  color-scheme: dark;
  accent-color: var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* niente lampo grigio al tocco: ogni controllo ha il suo :active */
  scroll-behavior: smooth;
  scrollbar-color: var(--walnut) var(--ink);
  scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); /* la barra rapida non copre ciò che riceve il focus */
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }

/* controlli: tocco immediato, nessuna selezione del testo con la pressione lunga */
a, button {
  touch-action: manipulation;
}
.action, .pill, .rows__item, .links a, .tabbar a, .wifi__copy, .wifi__close, .hero__more, .link-cta {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon circle { fill: currentColor; stroke: none; }
.icon--sm { width: 16px; height: 16px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 10.5vw, 60px);
  line-height: .98;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}

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

/* ---------- Prima schermata ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* Safari < 15.4: altezza reale calcolata da script.js */
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero__media,
.hero__shade { position: absolute; inset: 0; z-index: -2; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.hero__shade {
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(18,14,12,.9) 0%, rgba(18,14,12,.35) 55%, transparent 75%),
    linear-gradient(180deg, transparent 38%, rgba(18,14,12,.4) 56%, rgba(18,14,12,.93) 78%, var(--ink) 100%);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(36px + env(safe-area-inset-top, 0px)) var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); /* 96px: la barra delle pagine è sempre visibile in basso */
}

.hero__brand { display: grid; justify-items: center; gap: 14px; text-align: center; }

.hero__logo { width: min(80vw, 340px); }
.hero__logo img { width: 100%; filter: drop-shadow(0 2px 16px rgba(0,0,0,.5)); }

.hero__tagline {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}

/* dove siamo, già nella prima schermata: chi arriva da Google deve capirlo in un colpo d'occhio */
.hero__place {
  margin-top: -4px;
  color: var(--ivory);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}

.hero__actions { display: grid; gap: 10px; }

.hero__hint {
  margin-bottom: 4px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ivory);
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  /* vetro scuro: serve a leggere il bottone sopra la foto, non è decorazione */
  background: rgba(18, 14, 12, .66);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  color: var(--ivory);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.action:active { transform: scale(.97); background: rgba(36, 26, 21, .9); }

.action--primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(205, 28, 45, .9);
}
.action--primary:active { background: var(--red-hi); }

.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__more .icon { color: var(--gold); }

/* ---------- Sezioni ---------- */

.block {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px var(--gutter) 72px;
}

.block__head { display: grid; gap: 12px; }

/* la carta: nome, puntini, provenienza */
.cuts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cuts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
}

.cuts__name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance; /* a 320 px "Manzetta prussiana" va a capo invece di allargare la pagina */
}

.cuts__lead {
  flex: 1;
  min-width: 18px;
  border-bottom: 1px dotted rgba(201, 164, 92, .55);
  transform: translateY(-5px);
}

.cuts__origin {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mosaic img,
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--coal);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 200ms var(--ease-out);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery .gallery__wide { grid-column: 1 / -1; aspect-ratio: 5 / 4; }

/* Eventi */
.feature {
  display: grid;
  background: var(--walnut);
}

.feature__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  object-fit: cover;
}

.feature__text {
  display: grid;
  gap: 16px;
  padding: 48px var(--gutter) 60px;
}
.feature__text > p { color: var(--muted); max-width: 34em; }

.pair { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.pill:active { transform: scale(.97); background: rgba(201,164,92,.12); }
.pill--strong { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.pill--strong:active { background: var(--gold-soft); }

/* feste: la prossima in cima, in oro */
.feste {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.feste li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.feste__name { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.feste__date { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.feste .is-next { padding: 16px 2px 14px; }
.feste .is-next .feste__name { color: var(--gold-soft); font-size: 30px; }
.feste .is-next .feste__date { color: var(--ivory); font-weight: 600; }
.feste__tag {
  flex-basis: 100%;
  order: -1;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Prenota / a casa */
.rows { display: grid; border-top: 1px solid var(--line); }

.rows__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 240ms var(--ease-out), background-color 200ms var(--ease-out);
}
.rows__item:active { background: rgba(201,164,92,.06); }
.rows__title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
}
.rows__via {
  grid-row: 2;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: .04em;
}
.rows__item .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--gold); width: 24px; height: 24px; transition: transform 240ms var(--ease-out); }

/* Contatti */
.contact { padding-top: 40px; }

.address {
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hours { display: grid; margin: 0; border-top: 1px solid var(--line); }

.hours > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.hours dt { color: var(--muted); font-size: 14.5px; }
.hours dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), border-color 200ms var(--ease-out);
}
.links a:active { transform: scale(.97); border-color: var(--gold); }

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px var(--gutter) calc(112px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.footer img { width: 150px; opacity: .9; }
.footer__ttt { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.footer__legal { max-width: 34em; font-size: 12.5px; line-height: 1.5; }
.footer__links a { display: inline-block; padding: 8px 4px; color: var(--gold-soft); font-size: 13px; text-underline-offset: 3px; }

/* testo accessibile ma non visibile (titolo h1 con logo) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Chi siamo */
.about { padding-top: 56px; padding-bottom: 8px; gap: 18px; }
.about__text { max-width: 34em; color: var(--muted); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.about__text a, .faq__list p a { color: var(--gold-soft); text-underline-offset: 3px; }

/* Prima di venire: domande frequenti, si aprono anche senza JavaScript */
.faq { padding-top: 56px; padding-bottom: 8px; gap: 18px; }
.faq__list { display: grid; max-width: 44em; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 2px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 400;
  transition: transform 200ms var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { max-width: 38em; padding: 0 2px 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Pagina di testo (informativa privacy) */
.doc { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.doc__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: var(--gold-soft); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 9vw, 52px); line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; text-wrap: balance; }
.doc h2 { margin: 36px 0 10px; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--gold-soft); text-underline-offset: 3px; }
.doc strong { color: var(--ivory); font-weight: 600; }
.doc code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--gold-soft); font-size: 14px; }
.doc__date { font-size: 14px; }

/* ---------- Navigazione tra le pagine ---------- */

.tabbar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  background: rgba(18, 14, 12, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 260ms;
}
.tabbar[hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(100%); }

.tabbar a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 6px 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 200ms var(--ease-out);
}
.tabbar a:active { background: rgba(246, 240, 233, .08); }
.tabbar a[aria-current="page"] { color: var(--gold-soft); }
.tabbar .icon { width: 22px; height: 22px; }

/* Entrata dal basso: la barra sale con una curva morbida, poi le cinque voci si alzano una dopo l'altra.
   Nella Home parte dopo l'apertura della prima schermata (--tb-delay); nelle altre pagine quasi subito. */
@keyframes tabbar-in { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes tabbar-in-desk { from { transform: translate(-50%, 160%); } to { transform: translate(-50%, 0); } }
@keyframes tab-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabbar { --tb-delay: 180ms; animation: tabbar-in 520ms var(--ease-drawer) var(--tb-delay) both; }
.tabbar--home { --tb-delay: 0ms; } /* era 1100 ms: "Prenota" deve esserci subito (entro mezzo secondo), anche per chi arriva da Google */
.tabbar a { animation: tab-rise 360ms var(--ease-out) both; }
.tabbar a:nth-child(1) { animation-delay: calc(var(--tb-delay) + 120ms); }
.tabbar a:nth-child(2) { animation-delay: calc(var(--tb-delay) + 160ms); }
.tabbar a:nth-child(3) { animation-delay: calc(var(--tb-delay) + 200ms); }
.tabbar a:nth-child(4) { animation-delay: calc(var(--tb-delay) + 240ms); }
.tabbar a:nth-child(5) { animation-delay: calc(var(--tb-delay) + 280ms); }

/* ---------- Wi-Fi: foglio dal basso ---------- */

.wifi {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 520px;
  max-height: calc(100% - 40px);
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--coal);
  color: var(--ivory);
  box-shadow: 0 -24px 60px -20px rgba(0,0,0,.8);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 380ms var(--ease-drawer);
}
@supports (transition-behavior: allow-discrete) {
  .wifi { transition: transform 380ms var(--ease-drawer), overlay 380ms allow-discrete, display 380ms allow-discrete; }
}
.wifi[open] { transform: none; }
@starting-style { .wifi[open] { transform: translateY(100%); } }
.wifi:not([open]) { display: none; }

.wifi::backdrop {
  background: rgba(8, 6, 5, 0);
  transition: background-color 380ms var(--ease-out);
}
@supports (transition-behavior: allow-discrete) {
  .wifi::backdrop { transition: background-color 380ms var(--ease-out), overlay 380ms allow-discrete, display 380ms allow-discrete; }
}
.wifi[open]::backdrop { background: rgba(8, 6, 5, .72); }
@starting-style { .wifi[open]::backdrop { background: rgba(8, 6, 5, 0); } }

/* browser senza <dialog> (Safari < 15.4): foglio fisso, sfondo scuro disegnato dall'ombra */
.wifi.is-fallback { transform: none; z-index: 50; }
.wifi-veil { position: fixed; inset: 0; z-index: 49; background: rgba(8, 6, 5, .78); }

.wifi__box {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px));
}

.wifi__grip {
  justify-self: center;
  width: 40px;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(246,240,233,.22);
}

.wifi h2 { font-size: 36px; padding-right: 44px; }

.wifi__close {
  position: absolute;
  top: 18px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms var(--ease-out);
}
.wifi__close:active { transform: scale(.94); background: rgba(246,240,233,.08); }
.wifi__close svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }

.wifi__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink);
}

.wifi__label {
  grid-column: 1;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* monospazio perché è un dato da digitare: distingue l, I, 0 e O */
.wifi__value {
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  -webkit-user-select: all;
  user-select: all;
}

.wifi__copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 88px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.wifi__copy:active { transform: scale(.96); }
.wifi__copy--main { border-color: var(--red); background: var(--red); color: #fff; }
.wifi__copy.is-done { border-color: var(--gold); background: var(--gold); color: var(--ink); }
/* password nascosta: si copia lo stesso; l'occhio (chiuso = nascosta, aperto = a vista) la mostra a chi deve scriverla a mano */
.wifi__row--secret { grid-template-columns: 1fr auto auto; }
.wifi__row--secret .wifi__copy { grid-column: 3; }
.wifi__value.is-masked { letter-spacing: .08em; }
.wifi__eye {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.wifi__eye:active { transform: scale(.94); }
.wifi__eye[aria-pressed="true"] { border-color: var(--line-strong); background: rgba(201, 164, 92, .08); }
.wifi__eye svg {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out);
}
.wifi__eye circle { fill: currentColor; stroke: none; }
/* l'occhio si apre: la palpebra chiusa sparisce e quello aperto si allarga in verticale, come un battito di ciglia */
.wifi__eye-open { opacity: 0; transform: scaleY(.15); }
.wifi__eye[aria-pressed="true"] .wifi__eye-open { opacity: 1; transform: none; }
.wifi__eye[aria-pressed="true"] .wifi__eye-shut { opacity: 0; transform: translateY(-3px) scaleY(.5); }
@media (hover: hover) and (pointer: fine) { .wifi__eye:hover { border-color: var(--gold); } }
html:not(.js) .wifi__eye { display: none; }

/* telefoni: «Copia» sotto il dato, così nome e password restano su una riga sola (niente «BraceriaRovent / e26!») */
@media (max-width: 440px) {
  .wifi__row { grid-template-columns: 1fr; }
  .wifi__copy { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .wifi__row--secret { grid-template-columns: 1fr auto; }
  .wifi__row--secret .wifi__copy { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .wifi__value { font-size: 16.5px; }
}

.wifi__steps {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
}
.wifi__steps strong { color: var(--ivory); font-weight: 600; }

.wifi__status { min-height: 1.4em; color: var(--gold-soft); font-size: 14px; font-weight: 600; }



/* ---------- Puntatore preciso: hover solo dove esiste davvero ---------- */
@media (hover: hover) and (pointer: fine) {
  .action:hover { background: rgba(36, 26, 21, .88); border-color: var(--gold-soft); }
  .action--primary:hover { background: var(--red-hi); border-color: var(--red-hi); }
  .pill:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
  .pill--strong:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
  .rows__item:hover { padding-left: 10px; }
  .rows__item:hover .icon { transform: translateX(4px); }
  .link-cta:hover { gap: 12px; }
  .links a:hover { border-color: var(--gold); }
  .hero__more:hover { color: var(--ivory); }
}

/* ---------- Un solo momento animato: l'apertura ---------- */
/* il logo si svela come una brace che si accende, poi arrivano le azioni; tutto resta cliccabile da subito */
.js .hero__media img { animation: settle 1600ms var(--ease-out) both; }
.js .hero__logo { animation: unveil 900ms var(--ease-out) 120ms both; }
.js .hero__tagline { animation: lift 500ms var(--ease-out) 520ms both; }
.js .hero__place { animation: lift 500ms var(--ease-out) 560ms both; }
.js .hero__actions > * { animation: lift 460ms var(--ease-out) both; }
.js .hero__actions > :nth-child(1) { animation-delay: 560ms; }
.js .hero__actions > :nth-child(2) { animation-delay: 610ms; }
.js .hero__actions > :nth-child(3) { animation-delay: 660ms; }
.js .hero__actions > :nth-child(4) { animation-delay: 710ms; }
.js .hero__actions > :nth-child(5) { animation-delay: 760ms; }

@keyframes settle { from { transform: scale(1.06); filter: brightness(.7); } to { transform: none; filter: none; } }
@keyframes unveil {
  from { clip-path: inset(0 100% 0 0); filter: blur(6px); opacity: .4; }
  to { clip-path: inset(0 0 0 0); filter: none; opacity: 1; }
}
@keyframes lift { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* telefoni bassi (iPhone SE e simili): tutto nella prima schermata */
@media (max-height: 700px) {
  .hero__panel { gap: 16px; padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .hero__logo { width: min(70vw, 280px); }
  .hero__brand { gap: 10px; }
  .hero__place { font-size: 16px; }
  .hero__hint { font-size: 19px; margin-bottom: 0; }
  .action { min-height: 52px; }
  .hero__more { margin-top: 0; padding: 6px 12px; }
}

/* telefoni stretti (320 px): "Lascia una recensione" resta su una riga */
@media (max-width: 340px) {
  .action { gap: 10px; padding: 0 14px; font-size: 14px; letter-spacing: .05em; }
}

@media (min-width: 600px) {
  :root { --gutter: 40px; }
  .rows { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* Schermi larghi: foto a sinistra, logo e azioni a destra */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .hero__media { position: relative; inset: auto; z-index: 0; grid-column: 1; grid-row: 1; overflow: hidden; }
  .hero__media img { position: absolute; inset: 0; object-position: 50% 60%; }
  .hero__shade { display: none; }
  .hero__panel {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 60px;
    max-width: 440px;
    padding: 64px 40px;
  }
  .hero__logo { width: 380px; }
  .action { background: var(--coal); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .action--primary { background: var(--red); }

  .block { padding: 120px 48px 100px; gap: 36px; }
  .carni { grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: start; }
  .carni .block__head, .carni .cuts, .carni .link-cta { grid-column: 1; }
  .carni .mosaic { grid-column: 2; grid-row: 1 / span 4; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .gallery__wide { grid-column: span 2; aspect-ratio: auto; height: 100%; }
  .feature { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature__img { max-height: none; height: 100%; }
  .feature__text { padding: 80px 64px; }
  .contact { grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .contact .links { grid-column: 1 / -1; }
  .tabbar {
    left: 50%;
    right: auto;
    bottom: 16px;
    width: min(560px, calc(100% - 32px));
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transform: translateX(-50%);
  }
  .tabbar[hidden] { transform: translate(-50%, 24px); }
  .tabbar { animation-name: tabbar-in-desk; }
  .tabbar a { border-radius: 999px; }

  .wifi {
    inset: 0;
    margin: auto;
    max-width: 440px;
    height: fit-content;
    border-bottom: 1px solid var(--line);
    border-radius: 22px;
    transform: none;
    opacity: 1;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  }
  @starting-style { .wifi[open] { transform: scale(.96); opacity: 0; } }
  .wifi__grip { display: none; }
}

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

/* ---------- Pagine interne: prenota, galleria, contatti, come arrivare ---------- */

.sub { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.sub .footer { padding-top: 40px; padding-bottom: 28px; }

.topbar { display: flex; justify-content: center; padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 4px; }
.topbar a { display: block; padding: 8px 6px; }
.topbar img { width: 132px; }

.page { display: grid; gap: 28px; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px var(--gutter) 36px; }
.page__head { display: grid; gap: 12px; }
.page h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 12vw, 64px);
  line-height: .98;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.embed { width: 100%; height: 860px; border: 0; border-radius: 14px; background: #fff; color-scheme: light; }

/* Prenota: pulsante che apre il modulo TheFork, e subito sotto l'alternativa WhatsApp/telefono */
.book, .book__alt { display: grid; gap: 12px; }
.book__open { justify-content: center; width: 100%; min-height: 58px; font-size: 14px; }
@media (min-width: 900px) { .book__open { max-width: 440px; } }

.note { max-width: 40em; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.note a { color: var(--gold-soft); text-underline-offset: 3px; }

.stack { display: grid; gap: 10px; }
.stack .pill { justify-content: center; min-height: 54px; }

.page .gallery { grid-auto-flow: dense; }
@media (min-width: 900px) {
  .page { max-width: 960px; }
  /* 4 colonne: la foto larga ne occupa 2 (più un vano di 6px) e ha la stessa altezza delle verticali accanto: 1.622 = (2c+6)/(1.25c) con c = larghezza di una colonna */
  .page .gallery { grid-template-columns: repeat(4, 1fr); }
  .page .gallery .gallery__wide { grid-column: span 2; aspect-ratio: 1.622; height: auto; }
  .stack { max-width: 440px; }
}

/* ---------- Rifiniture (v8) ---------- */

/* Orario di oggi evidenziato (script.js) */
.hours > div.is-today dt { color: var(--gold-soft); }
.hours__today { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hours__today::before { content: "· "; }

/* Pagine interne: la barra è già lì (passaggio fluido tra pagine), niente nuova entrata ad ogni apertura */
.sub .tabbar, .sub .tabbar a { animation: none; }

/* Senza JavaScript il foglio Wi-Fi non si apre: il pulsante sparisce e restano i dati in chiaro (noscript) */
html:not(.js) [data-open-wifi] { display: none; }
.hero__noscript { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; line-height: 1.5; background: rgba(18, 14, 12, .72); }

/* ---------- Menu (pagina generata da tools/aggiorna-menu.mjs) ---------- */

/* Barra delle sezioni: resta in alto mentre si scorre, si sfoglia di lato col pollice.
   script.js aggiunge l'indicatore rosso che scivola sulla sezione che stai leggendo (scrollspy),
   porta al centro la sezione attiva e misura l'altezza della barra in --menu-nav-h. */
:root { --menu-nav-h: 66px; }
.menu-index {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5; /* sopra i piatti; sotto «Torna su» (15), barra delle pagine (20) e Wi-Fi (49/50) */
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) 10px max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: rgba(18, 14, 12, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.menu-index::-webkit-scrollbar { display: none; }
.menu-index a {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.menu-index a:active { transform: scale(.97); border-color: var(--gold); background-color: rgba(201,164,92,.1); }
.menu-index a[aria-current="true"] { border-color: transparent; color: var(--ivory); }
/* senza indicatore (niente JavaScript) la sezione attiva ha comunque il suo fondo */
.menu-index:not(.has-ink) a[aria-current="true"] { background-color: var(--red); }
/* l'indicatore: una sola pillola che scivola da una sezione all'altra, nella direzione in cui si legge */
.menu-ink {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 44px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 6px 18px -8px rgba(221, 37, 54, .7);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-ui) var(--ease-drawer), width var(--dur-ui) var(--ease-drawer), opacity 200ms var(--ease-out);
}

/* la sezione ritrovata sotto la barra (anche da link /menu/#secondi) */
.menu-sec { display: grid; gap: 6px; scroll-margin-top: calc(var(--menu-nav-h) + env(safe-area-inset-top, 0px) + 18px); }
.menu-sec h2 { font-size: clamp(34px, 9vw, 46px); }
/* filo sotto il titolo: si accende di rosso quando la sezione è quella che stai leggendo */
.menu-sec h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--line-strong);
  transform-origin: left center;
  transition: background-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.menu-sec.is-current h2::after { background: var(--red-hi); box-shadow: 0 0 14px rgba(221, 37, 54, .55); }
/* all'arrivo: il filo si allunga e il titolo prende un breve riflesso di brace, poi resta fermo */
.menu-sec.is-arriving h2 { animation: sec-glow var(--dur-accent) var(--ease-out) both; }
.menu-sec.is-arriving h2::after { animation: sec-accent var(--dur-accent) var(--ease-out) both; }
@keyframes sec-accent { from { transform: scaleX(.12); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes sec-glow { from { text-shadow: 0 0 22px rgba(221, 37, 54, .5); } to { text-shadow: 0 0 0 rgba(221, 37, 54, 0); } }
.menu-sec__note { color: var(--gold-soft); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
/* foto di un piatto dentro la sua sezione (oggi la Babbaiola tra i dolci): stessa cornice 4:5 delle foto della Home */
.menu-photo { display: grid; gap: 10px; max-width: 420px; margin: 10px 0 6px; }
.menu-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1087 / 1359; object-fit: cover; border-radius: 3px; background: var(--walnut); }
.menu-photo figcaption { color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }
.menu-photo figcaption strong { color: var(--gold-soft); font-weight: 600; }

.dishes { display: grid; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.dish__name { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.dish__price { color: var(--gold-soft); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.dish__price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.dish__desc { grid-column: 1 / -1; max-width: 38em; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.menu-end { display: grid; gap: 14px; }
.menu-end strong { color: var(--ivory); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .menu-index a:hover { border-color: var(--gold); }
  .menu-index a[aria-current="true"]:hover { border-color: transparent; }
}
/* schermo largo: colonna più stretta (nome e prezzo vicini); la barra resta in alto, tutta visibile, su due righe se serve */
@media (min-width: 900px) {
  :root { --menu-nav-h: 108px; }
  .page--menu { max-width: 760px; }
  .menu-index { flex-wrap: wrap; overflow: visible; margin: 0 -14px; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
  .menu-index a { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .menu-ink { height: 38px; }
}
/* tablet e telefoni larghi in orizzontale: col dito servono sempre tocchi da 44 px */
@media (min-width: 900px) and (pointer: coarse) {
  .menu-index a { min-height: 44px; }
}
/* contrasto elevato di Windows: colori di sistema, la sezione attiva ha un bordo spesso */
@media (forced-colors: active) {
  .menu-ink { display: none; }
  .menu-index a[aria-current="true"] { border: 2px solid Highlight; color: Highlight; }
  .menu-sec.is-current h2::after { background: Highlight; }
  .to-top { border-color: ButtonText; }
}

/* ---------- «Torna su» (tutte le pagine, creato da script.js) ---------- */
/* compare appena si scende di un tratto dalla schermata iniziale (75% dello schermo, max 600 px) e resta fino in cima;
   sta sopra la barra delle pagine, misurata da script.js in --tabbar-h (cresce col testo ingrandito) */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h, calc(63px + env(safe-area-inset-bottom, 0px))) + 14px);
  z-index: 15;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 14, 12, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--gold-soft);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility var(--dur-ui), border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top.is-shown:active { transform: scale(.94); }
.to-top .icon { width: 22px; height: 22px; }
.to-top:focus-visible { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { border-color: var(--gold); background: rgba(36, 26, 21, .94); }
}
@media (min-width: 900px) {
  .to-top { right: max(24px, env(safe-area-inset-right, 0px)); bottom: 22px; }
}

/* Passaggio fluido tra le pagine (Chrome/Edge/Safari recenti): la barra in basso resta ferma */
@view-transition { navigation: auto; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
