/* ==========================================================================
   Buffet da Vittorio — style.css
   Mobile-first. Indice:
   1. Token (colori, font, spazi)   5. Header e menu mobile   9.  Gallery e lightbox
   2. Base e reset                  6. Hero                   10. Recensioni, perché, location
   3. Layout                        7. Storia                 11. Contatti e form
   4. Componenti (bottoni, link)    8. Cucina                 12. CTA, footer, action bar, motion
   ========================================================================== */

/* FONT ospitati sul sito (assets/fonts). Licenza SIL Open Font License 1.1: vedi assets/fonts/OFL-*.txt.
   Solo ciò che il sito usa: Fraunces e Instrument Sans in stile normale, alfabeto latino e latino esteso
   (lettere slovene e ceche). Il browser scarica un file solo se la pagina contiene i suoi caratteri. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-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: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font di riserva con le stesse misure di Fraunces e Instrument Sans (misurate nel browser):
   finché i font non sono caricati il testo occupa lo stesso spazio,
   così la pagina non "salta" quando arrivano (CLS). */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 102%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 100.5%;
  ascent-override: 96.5%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* 1. TOKEN ----------------------------------------------------------------
   Per cambiare i colori del sito modifica solo queste variabili. */
:root {
  --paper: #f4ede2;        /* sfondo principale (crema) */
  --paper-2: #ebe1d1;      /* sezioni alternate */
  --paper-3: #dfd1bb;
  --white: #fbf7f0;
  --ink: #1e1916;          /* testo */
  --ink-2: #473c35;        /* testo secondario */
  --ink-3: #6b5e55;        /* testo attenuato (contrasto AA su --paper) */
  --wine: #991611;         /* bordeaux del logo */
  --wine-600: #7d100c;
  --wine-800: #5c0b09;
  --wine-900: #3d0705;
  --brass: #b48a4e;        /* ottone: solo decorativo */
  --brass-200: #dcc39a;    /* ottone chiaro: testo su fondi scuri */
  --line: rgb(30 25 22 / 0.14);
  --line-light: rgb(244 237 226 / 0.16);
  --success: #2f6b43;
  --error: #b3261e;

  --font-display: "Fraunces", "Fraunces Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(2.05rem, 1.55rem + 2.3vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.75rem + 4vw, 5.5rem);

  /* Margine laterale: mai meno dell'area occupata da notch / Dynamic Island
     quando l'iPhone è in orizzontale (viewport-fit=cover nel meta viewport) */
  --gutter-base: clamp(1rem, 4vw, 2.5rem);
  --gutter: max(var(--gutter-base), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max: 1240px;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgb(30 25 22 / 0.06), 0 18px 40px -18px rgb(30 25 22 / 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. BASE ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Riflesso del tocco su iOS/Android nei colori del brand, al posto del grigio/azzurro di sistema */
  -webkit-tap-highlight-color: rgb(153 22 17 / 0.12);
  /* Ancore e campi messi a fuoco non finiscono mai sotto l'header fisso */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Su smartphone c'è anche la barra azioni in basso: lasciale spazio */
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(5.5rem + var(--safe-bottom)); }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.is-locked,
html.is-locked body { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  /* Evita righe finali con una sola parola, dove supportato */
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Elimina l'attesa del doppio tocco-zoom sui controlli, mantenendo pinch-zoom e scorrimento */
a, button, label, select, summary, [role="button"] { touch-action: manipulation; }

/* iOS aggiunge gradienti e angoli propri a pulsanti e campi: li togliamo per usare i nostri */
button,
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  -webkit-appearance: none;
  appearance: none;
}

[hidden] { display: none !important; }

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

::selection { background: var(--wine); color: var(--white); }

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  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: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* 3. LAYOUT --------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--wine-900); color: var(--paper); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 4rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  color: var(--wine);
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section--dark .eyebrow,
.cta-final .eyebrow { color: var(--brass-200); }

.section-title {
  max-width: 17ch;
  font-size: var(--step-3);
}

.section-lead {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}
.section-title + .section-lead { margin-top: 1.4rem; }

/* 4. COMPONENTI ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--wine);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.8em 1.45em;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.98rem/1.1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Gli effetti hover valgono solo per mouse e trackpad: su schermi touch
   resterebbero "incollati" dopo il tocco (vedi blocco HOVER più sotto). */
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.btn--sm { min-height: 44px; padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: rgb(30 25 22 / 0.3);
}
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--wine-900);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-border: rgb(244 237 226 / 0.45);
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(30 25 22 / 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.round-btn[disabled] { opacity: 0.35; cursor: default; }
.round-btn--light { border-color: rgb(244 237 226 / 0.35); color: var(--paper); }

/* Underline animato */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.link:focus-visible { background-size: 100% 1px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}
.text-link .icon { transition: transform 0.3s var(--ease); }

.tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35em 0.8em;
  border: 1px solid rgb(153 22 17 / 0.35);
  border-radius: 999px;
  color: var(--wine);
  font: 600 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Stato aperto/chiuso (compilato da script.js) */
.status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.status.is-open .status__dot {
  background: #2f8a4f;
  box-shadow: 0 0 0 4px rgb(47 138 79 / 0.18);
}
.status.is-closed .status__dot { background: var(--wine); }
.status__label { font-weight: 600; color: var(--ink); }
.status--light { color: rgb(244 237 226 / 0.85); }
.status--light .status__label { color: var(--paper); }
.status--light.is-closed .status__dot { background: var(--brass-200); }

/* 5. HEADER --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(244 237 226 / 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.site-header.is-scrolled::before,
.site-header.menu-open::before { opacity: 1; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand__text { display: grid; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__sub {
  margin-top: 0.2rem;
  color: var(--ink-3);
  font: 600 0.64rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link[aria-current="true"] { color: var(--wine); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Scelta della lingua: menu a tendina nell'header (desktop), fila di pulsanti nel menu mobile e nel footer */
.lang { position: relative; display: none; }
@media (min-width: 1024px) {
  .lang { display: block; }
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid rgb(30 25 22 / 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle .icon { width: 1.05em; height: 1.05em; }
.lang[open] .lang__toggle { border-color: var(--ink); }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 11rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lang__menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
}
.lang__menu a[aria-current] { color: var(--wine); font-weight: 600; }
.lang-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lang-list a {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-list a[aria-current] { border-color: var(--wine); background: var(--wine); color: var(--white); }
/* Avviso "questa pagina esiste anche nella tua lingua" (script.js → initLangSuggest).
   È sovrapposto in basso: non sposta il contenuto quando compare (CLS). */
.lang-suggest {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + var(--safe-bottom));
  z-index: 51;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.6rem 3.25rem 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--wine-900);
  color: var(--paper);
  font-size: 0.92rem;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.6);
  transform: translateX(-50%);
  animation: suggest-in 0.45s var(--ease) both;
  transition: bottom 0.45s var(--ease);
}
@keyframes suggest-in {
  from { opacity: 0; transform: translate(-50%, 1rem); }
}
/* Su smartphone sale sopra la barra azioni quando questa compare */
@media (max-width: 767px) {
  body:has(.action-bar.is-visible) .lang-suggest { bottom: calc(0.75rem + var(--safe-bottom) + 4.5rem); }
}
.lang-suggest p { margin: 0; }
.lang-suggest .btn { min-height: 36px; }
.lang-suggest__close {
  position: absolute;
  top: 50%;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
}
.lang-list--footer a { min-height: 36px; min-width: 42px; border-color: var(--line-light); color: rgb(244 237 226 / 0.85); }
.lang-list--footer a[aria-current] { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(30 25 22 / 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.25px; }
.nav-toggle__bars span:nth-child(3) { top: 10.5px; }
/* I selettori puntano solo alle tre barre: "span:nth-child(2)" da solo colpirebbe
   anche il contenitore delle barre (secondo figlio del pulsante) nascondendo la X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Su schermi molto stretti il pulsante "Chiama" diventa solo icona */
@media (max-width: 479px) {
  .brand__name { font-size: 1.05rem; }
  .header__call { width: 44px; padding: 0; }
  .header__call-label { display: none; }
}
/* Sotto i 360px il telefono resta raggiungibile da hero, menu e barra azioni in basso */
@media (max-width: 359px) {
  .brand__sub { display: none; }
  .header__call { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  /* dvh segue la barra degli indirizzi di Safari e Chrome mobile che compare e scompare */
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter) calc(1.5rem + var(--safe-bottom));
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.mobile-nav__list { border-top: 1px solid var(--line); }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  line-height: 1.2;
  text-decoration: none;
}
.mobile-nav__list .icon { color: var(--wine); transition: transform 0.3s var(--ease); }
.mobile-nav__list a:active .icon { transform: translateX(4px); }
.mobile-nav__footer { display: grid; gap: 0.75rem; }
.mobile-nav__footer .status { margin-bottom: 0.25rem; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle,
  .mobile-nav { display: none; }
}
.nav__link { white-space: nowrap; }
/* Tra 1024 e 1280 px il menu completo (più il selettore lingua) non sta accanto al nome:
   resta solo il disco del logo, e le voci si avvicinano un po' */
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand__text { display: none; }
  .nav__list { gap: clamp(0.9rem, 1.6vw, 1.4rem); }
}

/* 6. HERO -----------------------------------------------------------------
   Foto della sala a tutta larghezza, velata a sinistra (desktop) o in basso
   (smartphone) perché il testo chiaro resti leggibile. */
.hero { padding: 0 clamp(0.5rem, 1.2vw, 1rem); }

.hero__panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(560px, calc(100svh - var(--header-h) - 0.75rem), 960px);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(18px, 2vw, var(--radius-l));
  background: var(--wine-900);
  color: var(--paper);
}
/* La foto è più alta del riquadro: lo scarto serve alla parallasse (vedi MOTION) */
.hero__bg {
  position: absolute;
  inset: -12% 0 auto;
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 58% center;
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(33 10 8 / 0.94) 0%, rgb(33 10 8 / 0.78) 42%, rgb(33 10 8 / 0.2) 72%, rgb(33 10 8 / 0.35) 100%);
}
@media (min-width: 900px) {
  .hero__bg { object-position: center 45%; }
  .hero__panel::before {
    background:
      linear-gradient(90deg, rgb(33 10 8 / 0.9) 0%, rgb(33 10 8 / 0.72) 36%, rgb(33 10 8 / 0.1) 68%, rgb(33 10 8 / 0) 100%),
      linear-gradient(to top, rgb(33 10 8 / 0.55), transparent 45%);
  }
}

.hero__content {
  padding-block: clamp(5rem, 8vw, 6.5rem) clamp(1.75rem, 4.5vw, 4rem);
}
.hero__wordmark {
  width: clamp(200px, 23vw, 350px);
  height: auto;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  margin-left: -0.4%;
  filter: drop-shadow(0 2px 14px rgb(0 0 0 / 0.35));
}
.hero__title {
  max-width: 13ch;
  font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.028em;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.3);
}


.hero__lead {
  max-width: 44ch;
  margin-top: 1.3rem;
  color: rgb(244 237 226 / 0.88);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
}
@media (min-width: 360px) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hero__facts dt {
  color: var(--brass-200);
  font: 600 0.68rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__facts dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.9rem + 0.5vw, 1.3rem);
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

/* Stato "Aperto ora / Chiuso": in alto sulla foto */
.status-card {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  max-width: calc(100% - 1.5rem);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgb(251 247 240 / 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 479px) {
  .status-card { left: 0.75rem; right: auto; }
}

/* 7. STORIA --------------------------------------------------------------- */
.story__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .story__intro {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
  }
}

/* Il logo "dal 1933" in versione rame */
.story__year {
  width: clamp(230px, 34vw, 360px);
  height: auto;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
}

.story__figure {
  margin: 1.75rem 0 0;
  max-width: 420px;
}
.story__figure a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.story__figure img {
  transition: transform 1s var(--ease);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
}
.story__figure figcaption {
  margin-top: 0.7rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  padding: 0 0 clamp(2.25rem, 4vw, 3rem) 2.6rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--wine);
  border-radius: 50%;
  background: var(--paper);
}
.timeline__item:last-child::before { background: var(--wine); }
.timeline__date {
  margin-bottom: 0.55rem;
  color: var(--wine);
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.timeline__item h3 { margin-bottom: 0.6rem; font-size: var(--step-2); }
.timeline__item p:not(.timeline__date) { max-width: 52ch; color: var(--ink-2); }

/* 8. CUCINA --------------------------------------------------------------- */
.dish-feature {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .dish-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.dish-feature__media { position: relative; margin: 0; overflow: hidden; background: var(--wine-800); }
.dish-feature__media a { display: block; height: 100%; cursor: zoom-in; }
.dish-feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dish-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.dish-feature__title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3.1rem);
}
.dish-feature__body > p:not(.tag) { max-width: 44ch; color: var(--ink-2); }
.dish-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.menu__toolbar { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter__btn {
  flex: none;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgb(30 25 22 / 0.2);
  border-radius: 999px;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.filter__btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.dish-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  /* L'unico dolce chiude l'elenco a tutta larghezza, invece di restare da solo in una riga */
  .dish-card[data-category="dolci"] { grid-column: 1 / -1; }
}
.dish-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  animation: card-in 0.45s var(--ease) both;
}
.dish-card__cat {
  margin-bottom: 0.9rem;
  color: var(--wine);
  font: 600 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dish-card__title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
  line-height: 1.15;
}
.dish-card p:last-child { color: var(--ink-2); font-size: 0.97rem; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
}

.menu__note {
  max-width: 70ch;
  margin-top: 2rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}
.menu__note a { color: var(--wine); font-weight: 600; }

/* AL BANCO: su smartphone una fila che scorre col dito, da tablet in su una griglia */
.banco__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 320px);
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.banco__item { scroll-snap-align: start; }
@media (min-width: 600px) {
  .banco__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 900px) {
  .banco__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 2.5vw, 2rem); }
}
.banco__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.banco__link img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.banco__name {
  margin: 1.1rem 0 0.35rem;
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
}
.banco__item p { color: var(--ink-2); font-size: 0.97rem; }

/* MUSICA: testo a sinistra, mosaico di foto a destra */
.musica__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .musica__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.musica__text > p:not(.eyebrow) { max-width: 46ch; }
.musica__text > p:not(.eyebrow):not(.section-lead) { margin-top: 1.25rem; color: rgb(244 237 226 / 0.75); }
.musica__text .btn { margin-top: 2rem; }

.musica__media {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas:
    "palco palco"
    "live  angolo";
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.musica__photo--palco { grid-area: palco; }
.musica__photo--live { grid-area: live; }
.musica__photo--angolo { grid-area: angolo; }
.musica__photo a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgb(0 0 0 / 0.25);
  cursor: zoom-in;
}
.musica__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.musica__photo--palco img { aspect-ratio: 16 / 10; }
.musica__photo--live img,
.musica__photo--angolo img { aspect-ratio: auto; height: clamp(180px, 24vw, 330px); }
.musica__photo--angolo img { object-position: center 30%; }

.section--dark .section-lead { color: rgb(244 237 226 / 0.85); }

/* 9. GALLERY -------------------------------------------------------------- */
.gallery__grid {
  display: grid;
  gap: 0.75rem;
}
.gallery__item { position: relative; min-height: 0; }
.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  cursor: zoom-in;
}
.gallery__link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}
.gallery__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(30 25 22 / 0.55), transparent 45%);
  opacity: 0.85;
  transition: opacity 0.4s var(--ease);
}
.gallery__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 0.95rem;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

/* Nella foto verticale delle chitarre conviene privilegiare la parte alta */
.gallery__item--m img { object-position: center 38%; }

.gallery__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--wine);
  color: var(--paper);
}
.gallery__tile-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  line-height: 1.15;
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(200px, 32vw, 280px);
    grid-template-areas:
      "s s"
      "m u"
      "m u"
      "c k"
      "g g"
      "x x";
  }
  .gallery__link img { aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(210px, 20vw, 290px);
    grid-template-areas:
      "m s s u"
      "m c k u"
      "g g x x";
    gap: 1rem;
  }
}
@media (min-width: 640px) {
  .gallery__item--m { grid-area: m; }
  .gallery__item--s { grid-area: s; }
  .gallery__item--u { grid-area: u; }
  .gallery__item--c { grid-area: c; }
  .gallery__item--k { grid-area: k; }
  .gallery__item--g { grid-area: g; }
  .gallery__item--x { grid-area: x; }
}

/* Lightbox (<dialog>) */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  /* Lo swipe orizzontale va a JavaScript; scorrimento verticale e pinch-zoom restano al browser */
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
/* Apertura e chiusura animate del top layer (@starting-style + allow-discrete).
   Dove non sono supportati, la galleria appare e scompare di colpo: nessun problema di funzionamento. */
.lightbox {
  opacity: 0;
  transform: scale(0.985);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}
.lightbox[open] {
  opacity: 1;
  transform: none;
}
@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: scale(0.985);
  }
}

.lightbox::backdrop {
  background: rgb(20 12 12 / 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition-property: background-color, backdrop-filter, -webkit-backdrop-filter, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}
.lightbox[open]::backdrop {
  background: rgb(20 12 12 / 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@starting-style {
  .lightbox[open]::backdrop {
    background: rgb(20 12 12 / 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { transform: none; transition-duration: 0.1s; }
  @starting-style {
    .lightbox[open] { transform: none; }
  }
}

.lightbox__inner {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  padding: calc(4.5rem + var(--safe-top)) var(--gutter) calc(6rem + var(--safe-bottom));
}
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
/* Righe di altezza definita (minmax(0, 1fr)): senza, la griglia si allargherebbe
   sull'immagine e max-height: 100% non avrebbe effetto sulle foto verticali */
.lightbox__stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.lightbox__img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-s);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
  /* Il cambio immagine è animato da una view transition (vedi script.js) */
  view-transition-name: lightbox-image;
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  max-width: 60ch;
  text-align: center;
  font-size: 0.98rem;
}
.lightbox__counter { color: var(--brass-200); font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; top: calc(1rem + var(--safe-top)); right: var(--gutter); }
.lightbox__prev,
.lightbox__next { position: absolute; bottom: calc(1.25rem + var(--safe-bottom)); }
.lightbox__prev { left: calc(50% - 56px); }
.lightbox__next { right: calc(50% - 56px); }
@media (min-width: 960px) {
  .lightbox__inner { padding: 4rem 6.5rem; }
  .lightbox__prev,
  .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 1.5rem; }
  .lightbox__next { right: 1.5rem; }
}

/* 10. PERCHÉ ---------------------------------------------------------------- */
.reasons__grid {
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: reason;
}
@media (min-width: 700px) {
  .reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .reasons__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.reason {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line-light);
}
.reason__num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--brass-200);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  transition: transform 0.4s var(--ease);
}
.reason h3 { margin-bottom: 0.7rem; font-size: var(--step-2); }
.reason p { max-width: 40ch; color: rgb(244 237 226 / 0.78); }

/* RECENSIONI */
.reviews__aside { display: grid; gap: 1.5rem; justify-items: start; }
.carousel-controls { display: flex; gap: 0.5rem; }

.reviews__track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgb(30 25 22 / 0.25) transparent;
  padding-bottom: 1.25rem;
  border-radius: var(--radius);
}
.reviews__track:focus-visible { outline-offset: 6px; }
.reviews__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 400px);
  gap: 1rem;
}
.review { scroll-snap-align: start; }
.review figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.review__stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  color: var(--wine);
}
.review__text { flex: 1; margin: 0 0 1.5rem; }
.review__text p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.4;
}
.review__meta {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.review__meta span { color: var(--ink-3); }
.reviews__more { margin-top: 1.75rem; }

/* LOCATION */
.location__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: stretch;
}
@media (min-width: 960px) {
  .location__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.location__address {
  margin: 2rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
}
.location__address strong { font-weight: 500; }

.icon-list { display: grid; gap: 0.8rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--ink-2); }
.icon-list .icon { margin-top: 0.2rem; color: var(--wine); }

.location__note {
  margin: 1.75rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--brass);
  background: var(--paper-2);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.map {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--wine-900);
}
/* La mappa Google si carica sotto l'anteprima e compare in dissolvenza quando è pronta */
.map iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.map.is-loaded iframe { opacity: 1; }
.map.is-loaded .map__facade {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.map__facade {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 36%, rgb(220 195 154 / 0.18), transparent 38%),
    url("assets/icons/map-pattern.svg") center / 560px auto repeat,
    var(--wine-900);
  color: var(--paper);
}
.map__pin {
  position: absolute;
  top: 36%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50% 50% 50% 0;
  background: var(--paper);
  color: var(--wine);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.6);
}
.map__pin .icon { width: 26px; height: 26px; transform: rotate(45deg); }
.map__label {
  position: absolute;
  top: calc(36% + 0.75rem);
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}
.map__label strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.map__label span { color: var(--brass-200); font-size: 0.85rem; }
/* Stato in basso: link di riserva (senza JavaScript) e poi "caricamento in corso" */
.map__status {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgb(30 25 22 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.86rem;
  white-space: nowrap;
  transform: translateX(-50%);
}
.map__status a { color: var(--paper); font-weight: 600; }
.map__loading { display: none; }
.map.is-loading .map__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.map.is-loading .map__fallback { display: none; }
.map__spinner {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass-200);
}
@media (prefers-reduced-motion: no-preference) {
  .map.is-loading .map__spinner { animation: map-pulse 1s ease-in-out infinite alternate; }
}
@keyframes map-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.15); }
}
/* Mappa più grande nella pagina "Dove siamo" */
.map--large { min-height: clamp(420px, 60vh, 640px); min-height: clamp(420px, 60dvh, 640px); }

/* 11. CONTATTI ------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.contact__list { display: grid; gap: 0.6rem; margin-top: 2.25rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-item:active { border-color: rgb(153 22 17 / 0.4); }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
}
.contact-item small {
  display: block;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.hours { margin-top: 2.5rem; }
.hours__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: var(--step-1);
}
.hours__title .icon { color: var(--wine); }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th,
.hours__table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours__table tr.is-today {
  background: var(--paper);
}
.hours__table tr.is-today th,
.hours__table tr.is-today td { font-weight: 600; color: var(--wine); }
.hours__table tr.is-today th::after {
  content: " · oggi";
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.85em;
}
.hours__note { margin-top: 1rem; color: var(--ink-3); font-size: var(--step--1); }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-card__title { font-size: var(--step-2); margin-bottom: 0.4rem; }
.form-card__intro { color: var(--ink-2); margin-bottom: 1.75rem; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field label span[aria-hidden] { color: var(--wine); }
.field__optional { color: var(--ink-3); font-weight: 400; }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgb(30 25 22 / 0.24);
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1916' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 18px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgb(153 22 17 / 0.18);
}

.field__error {
  display: none;
  margin: 0;
  color: var(--error);
  font-size: 0.85rem;
  line-height: 1.35;
}
.field__error::before { content: "⚠ "; }

/* Errori mostrati solo dopo l'interazione o dopo un tentativo di invio */
.field input:user-invalid,
.field textarea:user-invalid,
.form.was-submitted .field :is(input, textarea):invalid {
  border-color: var(--error);
  background-color: #fcefed;
}
.field :is(input, textarea):user-invalid ~ .field__error,
.form.was-submitted .field :is(input, textarea):invalid ~ .field__error { display: block; }
.field input:not([type="checkbox"]):user-valid:not(:placeholder-shown),
.field textarea:user-valid { border-color: rgb(47 107 67 / 0.6); }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.7rem;
}
.field--check input {
  width: 24px;
  height: 24px;
  margin: 0.1rem 0 0;
  accent-color: var(--wine);
  cursor: pointer;
}
.field--check label { font-weight: 400; font-size: 0.93rem; cursor: pointer; }
.field--check label a { color: var(--wine); font-weight: 600; }
.field--check .field__error { grid-column: 1 / -1; }

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__disclaimer {
  margin: 0.25rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.5;
}
.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
@media (max-width: 479px) {
  .form__footer .btn { width: 100%; }
}
.form__required { margin: 0; color: var(--ink-3); font-size: 0.85rem; }

.form__status:empty { display: none; }
.form__status {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-s);
  font-size: 0.93rem;
  line-height: 1.5;
}
.form__status.is-success { background: #e7f1ea; color: var(--success); border: 1px solid rgb(47 107 67 / 0.25); }
.form__status.is-error { background: #fcefed; color: var(--error); border: 1px solid rgb(179 38 30 / 0.25); }
.form__status a { font-weight: 600; }

/* 12. CTA FINALE ---------------------------------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(5rem, 4rem + 8vw, 10rem);
  background: var(--wine);
  color: var(--paper);
  text-align: center;
}
/* La sala di sera sotto un velo bordeaux (pagine interne: solo colore) */
.cta-final__bg {
  position: absolute;
  inset: -10% 0 auto;
  z-index: -2;
  width: 100%;
  height: 120%;
  object-fit: cover;
}
.cta-final:has(.cta-final__bg)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgb(92 11 9 / 0.78), rgb(61 7 5 / 0.93) 70%);
}
.cta-final__logo {
  width: clamp(190px, 24vw, 300px);
  height: auto;
  margin-bottom: 0.5rem;
}
.cta-final__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.cta-final .eyebrow { margin-bottom: 0; }
.cta-final__title {
  max-width: 20ch;
  font-size: var(--step-3);
}
.cta-final__text { color: rgb(244 237 226 / 0.85); font-size: var(--step-1); }
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 479px) {
  .cta-final__actions { width: 100%; }
  .cta-final__actions .btn { flex: 1 1 100%; }
}

/* FOOTER */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--ink);
  color: rgb(244 237 226 / 0.8);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.footer__brand { display: grid; gap: 1.25rem; justify-items: start; }
.footer__brand p { max-width: 36ch; }
.footer__badge { width: clamp(200px, 60vw, 250px); height: auto; margin-left: -0.3rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}
.social-link .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
}

.footer__title {
  margin-bottom: 1rem;
  color: var(--paper);
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__col ul { display: grid; gap: 0.3rem; }
.footer__col a { color: rgb(244 237 226 / 0.85); }
/* Almeno 24 px di altezza anche con il mouse (WCAG 2.5.8) */
.footer__col a,
.footer__legal a {
  display: inline-block;
  padding-block: 0.2rem;
}
.footer__col address { margin-bottom: 0.75rem; }
.footer__hours { display: grid; gap: 0.5rem; margin: 0; }
.footer__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.footer__hours dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--paper); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* ACTION BAR mobile */
.action-bar {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: calc(0.75rem + var(--safe-bottom));
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgb(30 25 22 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.6);
  transform: translateY(calc(100% + 1.5rem));
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.action-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}
.action-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.action-bar__btn--primary { background: var(--wine); }
@media (min-width: 768px) {
  .action-bar { display: none; }
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* PAGINE INTERNE (Contatti, Dove siamo, Recensioni) ------------------------ */
.page-hero {
  padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .page-hero__grid--aside { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
.page-hero__title {
  max-width: 17ch;
  font-size: clamp(2.35rem, 1.55rem + 3.3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.page-hero__lead {
  max-width: 58ch;
  margin-top: 1.4rem;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.page-hero .status { margin-top: 1.25rem; }
.page-hero__lead--small { font-size: var(--step-0); }
.page-hero__lead--small a { color: inherit; font-weight: 600; }
@media (max-width: 479px) {
  .page-hero__actions .btn { flex: 1 1 100%; }
}

/* Intestazione con foto: stesso linguaggio della hero della home */
.page-hero--photo {
  padding: 0 clamp(0.5rem, 1.2vw, 1rem);
  border-bottom: 0;
}
.page-hero__panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(440px, 64svh, 660px);
  padding-block: clamp(4rem, 9vw, 6rem) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(18px, 2vw, var(--radius-l));
  background: var(--wine-900);
  color: var(--paper);
}
.page-hero__bg {
  position: absolute;
  inset: -12% 0 auto;
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
}
.page-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(33 10 8 / 0.93) 0%, rgb(33 10 8 / 0.75) 45%, rgb(33 10 8 / 0.35) 100%);
}
@media (min-width: 900px) {
  .page-hero__panel::before {
    background:
      linear-gradient(90deg, rgb(33 10 8 / 0.9) 0%, rgb(33 10 8 / 0.7) 40%, rgb(33 10 8 / 0.25) 75%, rgb(33 10 8 / 0.15) 100%),
      linear-gradient(to top, rgb(33 10 8 / 0.5), transparent 50%);
  }
}
.page-hero--photo .breadcrumb a,
.page-hero--photo .breadcrumb li,
.page-hero--photo .breadcrumb span { color: rgb(244 237 226 / 0.8); }
.page-hero--photo .breadcrumb [aria-current] { color: var(--paper); }
.page-hero--photo .breadcrumb li + li::before { color: rgb(244 237 226 / 0.45); }
/* Link e pulsanti chiari anche nelle sezioni scure delle pagine interne */
.section--dark .text-link { color: var(--brass-200); }
.section--dark .btn--ghost { --btn-fg: var(--paper); --btn-border: rgb(244 237 226 / 0.45); }
.page-hero--photo .eyebrow { color: var(--brass-200); }
.page-hero--photo .page-hero__title { color: var(--paper); text-shadow: 0 2px 30px rgb(0 0 0 / 0.3); }
.page-hero--photo .page-hero__lead { color: rgb(244 237 226 / 0.88); }
.page-hero--photo .status { color: rgb(244 237 226 / 0.85); }
.page-hero--photo .status .status__label { color: var(--paper); }
.page-hero--photo .page-hero__grid > div > .btn--ghost,
.page-hero--photo .page-hero__actions .btn--ghost {
  --btn-fg: var(--paper);
  --btn-border: rgb(244 237 226 / 0.45);
}
/* Schede sopra la foto: indirizzo (Dove siamo) e voto (Recensioni) */
.page-hero--photo .form-card { color: var(--ink); }
.page-hero--photo .form-card .page-hero__actions .btn--ghost { --btn-fg: var(--ink); --btn-border: rgb(30 25 22 / 0.25); }
.page-hero--photo .form-card .status { color: var(--ink-2); }
.page-hero--photo .form-card .status .status__label { color: var(--ink); }
.page-hero--photo .rating-card {
  border: 1px solid rgb(244 237 226 / 0.18);
  background: rgb(33 10 8 / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.page-hero--photo .page-hero__brand img { filter: drop-shadow(0 2px 14px rgb(0 0 0 / 0.35)); }

/* Foto accanto al titolo (Contatti) */
.page-hero__photo { margin: 0; }
.page-hero__photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.page-hero__photo figcaption {
  margin-top: 0.7rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}

/* Striscia di foto sotto gli argomenti delle recensioni */
.photo-strip {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 600px) {
  .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.photo-strip li { position: relative; overflow: hidden; border-radius: var(--radius); }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-strip span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgb(30 25 22 / 0.62);
  color: var(--paper);
  font-size: 0.85rem;
}

/* Logo al posto della foto (pagina Storia) */
.page-hero__brand { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); }
.page-hero__brand img { width: min(100%, 420px); height: auto; }

/* Pagina Menu: elenco a sinistra, foto a destra */
.menu-page { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .menu-page { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .menu-page__photos { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.menu-block + .menu-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.menu-block__title {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
  font-size: var(--step-2);
}
.menu-list { margin: 0; }
.menu-list div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-list dt { font-family: var(--font-display); font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.35rem); }
.menu-list dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.menu-page__photos { display: grid; gap: 1rem; }
@media (min-width: 600px) and (max-width: 959px) {
  .menu-page__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.menu-page__photos li { position: relative; overflow: hidden; border-radius: var(--radius); }
.menu-page__photos a { display: block; cursor: zoom-in; }
.menu-page__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-page__photos span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgb(30 25 22 / 0.62);
  color: var(--paper);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Guida: testo e glossario */
.guide__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .guide__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
  .guide__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.prose h2 { margin: 2.5rem 0 0.9rem; font-size: var(--step-2); }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.sources) { display: grid; gap: 0.45rem; margin: 0 0 1em; padding-left: 1.2rem; list-style: disc; color: var(--ink-2); }
.prose strong { font-weight: 600; color: var(--ink); }
.guide__box {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--paper-2);
}
.guide__box-title { margin-bottom: 1rem; font-size: var(--step-2); }
.glossary { margin: 0; }
.glossary div { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-size: 1.15rem; }
.glossary dd { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* Elenco delle fonti */
.sources { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.sources a { color: var(--wine); font-size: 0.95rem; text-underline-offset: 0.2em; }

.story__more { margin-top: 1.5rem; }

/* Breadcrumb */
.breadcrumb { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumb li + li::before {
  content: "/";
  color: rgb(30 25 22 / 0.3);
}
.breadcrumb a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink-2);
}
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Blocchi di testo */
.prose { max-width: 64ch; }
.prose p { color: var(--ink-2); }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 0.75rem; }

/* Griglia di schede (come arrivare, contatti) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}
.info-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.section--alt .info-card { background: var(--paper); }
.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
}
.info-card__icon .icon { width: 22px; height: 22px; }
.info-card h3 { font-size: var(--step-2); }
.info-card p,
.info-card li { color: var(--ink-2); font-size: 0.97rem; }
.info-card ul { display: grid; gap: 0.4rem; }
.info-card ul li { padding-left: 1rem; position: relative; }
.info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}
.info-card .text-link { justify-self: start; margin-top: 0.25rem; }

/* Tabella dei tempi a piedi */
.route-table-wrap { overflow-x: auto; }
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.route-table caption {
  margin-bottom: 0.75rem;
  color: var(--ink-3);
  font-size: var(--step--1);
  text-align: left;
}
.route-table th,
.route-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.route-table thead th {
  color: var(--ink-3);
  font: 600 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.route-table tbody th { font-family: var(--font-display); font-size: 1.1rem; }
.route-table td:last-child { color: var(--wine); font-weight: 600; white-space: nowrap; }

/* "Apri con" Google Maps / Apple Mappe / Waze */
.open-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.open-with a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(30 25 22 / 0.2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

/* FAQ con <details>: apertura animata dove supportato (::details-content) */
:root { interpolate-size: allow-keywords; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--wine);
  border-bottom: 1.5px solid var(--wine);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__answer { padding: 0 0.25rem 1.4rem; max-width: 70ch; }
.faq__answer p { color: var(--ink-2); }
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
}

/* Recensioni: riepilogo del voto e argomenti */
.rating-card {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--wine-900);
  color: var(--paper);
}
.rating-card .rating-card__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  line-height: 1;
  color: var(--paper);
}
.rating-card__value small { font-size: 0.35em; color: var(--brass-200); }
.rating-card p { margin: 0; color: rgb(244 237 226 / 0.8); font-size: 0.93rem; }
.rating-card .rating-card__value { margin-bottom: 0.5rem; }
.rating-card .text-link { color: var(--brass-200); margin-top: 0.75rem; }

.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topics li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.95rem;
}
.topics strong { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.topics span { color: var(--ink-3); font-size: 0.85rem; }

.review-grid { columns: 1; column-gap: 1rem; }
@media (min-width: 700px) { .review-grid { columns: 2; } }
@media (min-width: 1100px) { .review-grid { columns: 3; } }
.review-grid > li {
  break-inside: avoid;
  margin-bottom: 1rem;
}
.review-grid .review figure { height: auto; }
.review__topic {
  margin-bottom: 0.75rem;
  color: var(--wine);
  font: 600 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Scheda compatta "Scrivici" in home, al posto del modulo completo */
.contact-cta {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact-cta p { color: var(--ink-2); }

/* Home: intestazione, poi recapiti + riquadro tavolate a sinistra e orari a destra, alti uguali */
.contact__layout {
  display: grid;
  grid-template-areas: "head" "list" "hours" "cta";
  gap: 1.5rem;
}
.contact__head { grid-area: head; margin-bottom: clamp(0.75rem, 2vw, 1.5rem); }
.contact__layout .contact__list { grid-area: list; margin-top: 0; }
.contact__layout .hours { grid-area: hours; margin-top: 0; }
.contact__layout .contact-cta { grid-area: cta; }
.contact-cta__text { display: grid; gap: 0.9rem; }
.contact-cta__text .hours__note { margin-top: 0; }
.contact__layout .contact-cta .page-hero__actions { margin-top: 0.5rem; }

/* Orari in un riquadro, come le altre schede */
.hours--card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hours--card .hours__table tr:last-child :is(th, td) { border-bottom: 0; }
.hours--card .hours__table tr.is-today { background: rgb(153 22 17 / 0.06); }
.hours--card .hours__table tr.is-today :is(th, td):first-child { border-radius: 8px 0 0 8px; }
.hours--card .hours__table tr.is-today :is(th, td):last-child { border-radius: 0 8px 8px 0; }

@media (min-width: 960px) {
  .contact__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head  head"
      "list  hours"
      "cta   hours";
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
  /* Gli orari si allungano fino in fondo alla colonna di sinistra; la nota resta in basso */
  .contact__layout .hours { display: flex; flex-direction: column; }
  .contact__layout .hours .hours__table { flex: 1; }
  .contact__layout .contact-cta { align-content: center; }
  /* Senza il riquadro tavolate (pagina Contatti) i recapiti occupano tutta l'altezza degli orari */
  .contact__layout:not(:has(.contact-cta)) .contact__list {
    grid-row: 2 / 4;
    grid-auto-rows: 1fr;
  }
  .contact__layout:not(:has(.contact-cta)) .contact-item { height: 100%; }
}

/* Link "vedi tutto" in fondo alle sezioni della home */
.section-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

/* DISPOSITIVI --------------------------------------------------------------
   Adattamenti per tipo di input e forma dello schermo, oltre alla larghezza:
   mouse/trackpad vs touch, smartphone in orizzontale, tastiera virtuale,
   campi nativi di iOS, schermi molto grandi.
   ------------------------------------------------------------------------ */

/* HOVER: solo con mouse o trackpad. Su iPhone/Android l'hover "resta
   incollato" dopo il tocco e le card rimarrebbero sollevate. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-bg: var(--wine-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgb(153 22 17 / 0.7);
  }
  .btn--ghost:hover {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    --btn-border: var(--ink);
    box-shadow: none;
  }
  .btn--light:hover {
    --btn-bg: var(--white);
    box-shadow: 0 12px 26px -14px rgb(0 0 0 / 0.6);
  }
  .btn--outline-light:hover {
    --btn-bg: var(--paper);
    --btn-fg: var(--wine-900);
    --btn-border: var(--paper);
  }
  .round-btn:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
  .round-btn--light:hover:not([disabled]) { background: var(--paper); color: var(--ink); }
  .link:hover { background-size: 100% 1px; }
  .text-link:hover .icon { transform: translateX(4px); }
  .brand:hover .brand__mark { transform: rotate(-8deg); }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
  .lang__toggle:hover { border-color: var(--ink); }
  .lang__menu a:hover { background: var(--paper); }
  .lang-list a:hover:not([aria-current]) { border-color: currentColor; }
  .mobile-nav__list a:hover .icon { transform: translateX(4px); }
  .dish-feature:hover .dish-feature__media img { transform: scale(1.03); }
  .filter__btn:hover { border-color: var(--ink); }
  .dish-card:hover {
    transform: translateY(-4px);
    border-color: rgb(153 22 17 / 0.3);
    box-shadow: var(--shadow);
  }
  .gallery__link:hover img,
  .banco__link:hover img,
  .musica__photo a:hover img,
  .story__figure a:hover img { transform: scale(1.04); }
  .gallery__link:hover::after { opacity: 1; }
  .reason:hover .reason__num { transform: translateX(6px); }
  .contact-item:hover {
    border-color: rgb(153 22 17 / 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .field :is(input, select, textarea):hover:not(:focus):not([aria-invalid="true"]) {
    border-color: rgb(30 25 22 / 0.45);
  }
  .social-link:hover .icon { background: var(--paper); color: var(--ink); }
  .footer__col a:hover { color: var(--paper); }
}

/* TOUCH: aree di tocco di almeno 44–48 px su schermi touch */
@media (pointer: coarse) {
  .field input:not([type="checkbox"]),
  .field select { min-height: 52px; }
  .field--check input { width: 26px; height: 26px; }
  .field--check label { padding-block: 0.15rem; }

  .footer__col ul { gap: 0.2rem; }
  .footer__col a,
  .footer__legal a {
    display: inline-block;
    padding-block: 0.55rem;
  }
  /* Link dentro il testo: il padding verticale allarga l'area senza spostare le righe */
  .menu__note a,
  .field--check label a,
  .hours__note a { padding-block: 0.45em; }
  /* Link con sottolineatura: area di tocco estesa in modo invisibile */
  .text-link { position: relative; }
  .text-link::before {
    content: "";
    position: absolute;
    inset: -0.75rem -0.5rem;
  }
  .open-with a { min-height: 44px; }
  .faq summary { min-height: 60px; }
  /* Il carosello si scorre col dito: la barra di scorrimento non serve */
  .reviews__track { scrollbar-width: none; }
  .reviews__track::-webkit-scrollbar { display: none; }
}

/* iOS: il campo data nativo ha testo centrato e altezza variabile */
.field input[type="date"] {
  display: block;
  min-inline-size: 0;
  text-align: start;
}
.field input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: start;
}
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; }

/* TASTIERA VIRTUALE: mentre si scrive nel modulo la barra azioni in basso
   sparisce, così non copre il campo né il pulsante di invio */
@media (max-width: 767px) {
  body:has(.field :is(input, textarea, select):focus) .action-bar {
    transform: translateY(calc(100% + 1.5rem));
    visibility: hidden;
  }
}

/* SMARTPHONE IN ORIZZONTALE (e finestre molto basse) */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-h: 60px;
    --step-4: clamp(2.1rem, 1.2rem + 3vw, 3.4rem);
    --section: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  }
  .brand__mark { width: 38px; height: 38px; }

  .hero__panel { min-height: calc(100svh - var(--header-h) - 0.5rem); }
  .hero__content { padding-block: 3rem 1.5rem; }
  .hero__wordmark { width: 170px; margin-bottom: 0.9rem; }
  .hero__lead { margin-top: 0.9rem; }
  .hero__actions { margin-top: 1.25rem; }
  .hero__facts { display: none; }

  /* Menu: voci su due colonne e pulsanti affiancati, così sta tutto in uno schermo basso */
  .mobile-nav { gap: 1rem; padding-top: 0.75rem; }
  .mobile-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .mobile-nav__list a { padding-block: 0.5rem; font-size: 1.3rem; }
  .mobile-nav__footer { grid-template-columns: 1fr 1fr; }
  .mobile-nav__footer .status { grid-column: 1 / -1; }

  /* Galleria a schermo intero: frecce ai lati, così l'immagine ha tutta l'altezza */
  .lightbox__inner {
    padding: calc(0.75rem + var(--safe-top)) calc(var(--gutter) + 3.5rem) calc(0.75rem + var(--safe-bottom));
  }
  .lightbox__figure { gap: 0.4rem; }
  .lightbox__caption { font-size: 0.85rem; }
  .lightbox__close { top: calc(0.5rem + var(--safe-top)); }
  .lightbox__prev,
  .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: var(--gutter); }
  .lightbox__next { right: var(--gutter); }
}
/* SCHERMI MOLTO GRANDI: testo e colonna crescono un poco, per non lasciare
   il contenuto piccolo al centro di un monitor da 27" o di una TV */
@media (min-width: 1920px) {
  html { font-size: 106.25%; }
  :root { --max: 1400px; }
}
@media (min-width: 2400px) {
  html { font-size: 112.5%; }
  :root { --max: 1560px; }
}

/* MOTION -----------------------------------------------------------------
   Tre livelli, tutti dentro prefers-reduced-motion: no-preference.
   1. Animazioni d'ingresso della hero (CSS puro, ovunque)
   2. Animazioni legate allo scroll (CSS nativo dove supportato: Chrome, Edge, Safari 26+)
   3. Ripiego JavaScript con IntersectionObserver per gli altri browser (Firefox)
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: rise 0.9s var(--ease) both;
  }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .hero__bg,
  .page-hero__bg { animation: hero-in 1.8s var(--ease) both; }
  .page-hero--photo .page-hero__panel .container > * { animation: rise 0.9s var(--ease) both; }
  .page-hero--photo .page-hero__panel .container > :nth-child(2) { animation-delay: 0.08s; }

  /* Ripiego: attivo solo quando script.js aggiunge .reveal-ready,
     cioè quando il browser NON supporta le animazioni legate allo scroll */
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  /* ---- Animazioni native legate allo scroll ---- */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Comparsa dei blocchi mentre entrano nello schermo */
    [data-reveal] {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 48%;
    }

    /* Le immagini della gallery si assestano da un leggero zoom */
    .gallery__link img {
      animation: media-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    /* Parallasse sulla foto della hero: scende più lentamente della pagina */
    .hero__panel,
    .page-hero__panel { view-timeline: --hero-panel; }
    .hero__bg,
    .page-hero__bg {
      animation: hero-in 1.8s var(--ease) both, hero-drift linear both;
      animation-timeline: auto, --hero-panel;
      animation-range: normal, exit 0% exit 100%;
    }

    /* Il logo "dal 1933" scorre più lentamente del testo accanto */
    .story__year {
      animation: year-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    /* La foto dietro la CTA finale scorre in parallasse */
    .cta-final { view-timeline: --cta; }
    .cta-final__bg {
      animation: cta-drift linear both;
      animation-timeline: --cta;
      animation-range: cover 0% cover 100%;
    }

    /* Le foto dei vassoi e della musica si assestano come quelle della gallery */
    .banco__link img,
    .musica__photo img {
      animation: media-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    /* Le recensioni entrano nel carosello con una leggera messa a fuoco */
    .reviews__list > li {
      animation: review-focus linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 85%;
    }
  }

  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Sfondo dell'header e logo guidati dalla posizione di scroll, senza listener JS */
    .site-header::before {
      animation: header-veil linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90px;
    }
    .brand__mark {
      animation: brand-compact linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 160px;
    }
    /* Con il menu mobile aperto lo sfondo resta pieno */
    .site-header.menu-open::before {
      animation: none;
      opacity: 1;
    }
  }

  /* Evidenzia la recensione agganciata dallo scroll-snap */
  @supports (container-type: scroll-state) {
    .review {
      container-type: scroll-state;
      container-name: review-card;
    }
    @container review-card scroll-state(snapped: x) {
      .review figure {
        border-color: rgb(153 22 17 / 0.35);
        box-shadow: var(--shadow);
      }
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes media-settle {
  from { scale: 1.07; }
  to { scale: 1; }
}
@keyframes hero-in {
  from { opacity: 0.4; scale: 1.08; }
}
@keyframes hero-drift {
  to { translate: 0 10.5%; }
}
@keyframes year-drift {
  from { transform: translateY(28px); }
  to { transform: translateY(-28px); }
}
@keyframes cta-drift {
  from { translate: 0 -7%; }
  to { translate: 0 7%; }
}
@keyframes review-focus {
  from { opacity: 0.35; scale: 0.95; }
  to { opacity: 1; scale: 1; }
}
@keyframes header-veil {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes brand-compact {
  to { scale: 0.86; }
}

/* Transizioni tra le pagine (index ↔ privacy): dove non supportate, la
   navigazione resta quella normale. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root) {
    animation: page-out 0.25s ease-in both;
  }
  ::view-transition-new(root) {
    animation: page-in 0.35s var(--ease) both;
  }

  /* L'header resta al suo posto mentre il resto della pagina cambia */
  .site-header { view-transition-name: site-header; }
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
}

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

/* Pagina privacy ---------------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.legal__content { max-width: 72ch; }
.legal__content h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.legal__content h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
.legal__content p,
.legal__content li { color: var(--ink-2); }
.legal__content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.legal__content li { margin-bottom: 0.4rem; }
.legal__content a:not(.btn) { color: var(--wine); font-weight: 600; }
.legal__updated { color: var(--ink-3); font-size: var(--step--1); }
.legal__back { margin-top: 2.5rem; }
.site-footer--compact { padding: 0 !important; }
.site-footer--compact .footer__bottom { border-top: 0; }

@media print {
  .site-header, .action-bar, .map, .cta-final__bg, .lightbox { display: none !important; }
  body { background: #fff; }
  /* In stampa non esiste un'area di scorrimento: senza questo, gli elementi animati
     resterebbero al loro fotogramma iniziale, cioè trasparenti. */
  *,
  *::before,
  *::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    scale: none !important;
  }
}
