/* =====================================================================
   Bar Buffet al Gatto Nero — Trieste
   Design system + layout
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colori — derivati dal logo: ocra #B8742D, nero #141412, crema #F8EEE4 */
  --ink:        #0f0f0d;
  --ink-2:      #161613;
  --ink-3:      #1f1e1a;
  --surface:    #272620;
  --line:       rgba(223, 160, 90, .18);
  --line-soft:  rgba(255, 255, 255, .09);

  --brand:      #b8742d;   /* ocra del logo: fondi pieni e testi su chiaro */
  --gold:       #dfa05a;   /* schiarita dello stesso tono, per testi su scuro */
  --gold-hi:    #f0c089;
  --gold-dim:   #8f5a22;
  --brick:      #a8452b;

  --cream:      #f8eee4;   /* crema del logo */
  --cream-2:    #efe2d2;
  --paper:      #fffbf6;

  --text-hi:    #f6f1e7;
  --text:       #d7d2c7;
  --text-dim:   #9d9789;
  --text-ink:   #16161c;
  --text-ink-2: #4a4740;

  /* Tipografia — Comic Sans MS c'è su Windows e macOS; Comic Neue è il
     fallback via webfont, così su Android e Linux la resa resta la stessa.
     Comic Sans ha solo due pesi, e il grassetto resta comunque più magro
     delle lettere del logo: la differenza si recupera con --titolo-spessore
     più sotto, che ingrossa i contorni. */
  --font-display: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Segoe Print", cursive;
  /* Quanto ingrossare le lettere dei titoli. Alzalo per un tratto più pieno,
     portalo a 0 per il grassetto normale di Comic Sans. */
  --titolo-spessore: .022em;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.8rem, .77rem + .15vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.25rem + .7vw, 1.9rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.75rem);
  --step-4:  clamp(1.95rem, 1.5rem + 2.1vw, 3.4rem);
  /* Il tetto è 4.2rem, non di più: oltre, "al Gatto Nero" non entra su una riga
     nel riquadro dell'hero e il titolo passa a tre righe. */
  --step-5:  clamp(2.1rem, 1.35rem + 3.6vw, 4rem);

  /* Spazi & forme */
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --wrap: 1220px;
  --wrap-tight: 780px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-s: 0 2px 10px rgba(0,0,0,.16);
  --shadow:   0 14px 40px -12px rgba(0,0,0,.45);
  --shadow-l: 0 40px 90px -30px rgba(0,0,0,.6);

  --ease: cubic-bezier(.22,.68,.32,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --header-h: 74px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

/* Il sito è chiaro come il logo: il nero resta un accento (header, footer,
   pochi blocchi), non il fondo. */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--text-ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* Il carattere del logo è tondeggiante: niente crenatura negativa,
   interlinea un filo più larga e peso pieno per reggere i corpi grandi. */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.18; letter-spacing: -.005em;
  color: var(--text-ink); text-wrap: balance;
  /* Il grassetto di Comic Sans è più magro delle lettere del logo. Il contorno
     ingrossa l'asta; `paint-order` fa dipingere il riempimento sopra il
     contorno, così gli occhielli delle lettere restano aperti invece di
     chiudersi. Il colore segue il testo, quindi vale anche sui fondi scuri. */
  -webkit-text-stroke: var(--titolo-spessore) currentColor;
  paint-order: stroke fill;
}
/* Sui titoli piccoli lo stesso spessore relativo impasterebbe le lettere. */
h3, h4 { -webkit-text-stroke-width: .012em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

a { color: #a3611f; text-decoration-color: rgba(163,97,31,.4); text-underline-offset: .22em; transition: color .2s var(--ease); }
a:hover { color: var(--gold-dim); }

ul, ol { padding-left: 1.15em; }

::selection { background: var(--brand); color: #fffaf3; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--brand); color: #fffaf3; padding: .7rem 1.2rem;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- 3. Layout ---------- */
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.wrap-tight { width: min(100% - var(--gut) * 2, var(--wrap-tight)); margin-inline: auto; }

section { position: relative; }
.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.section--light { background: var(--cream); color: var(--text-ink-2); }
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--text-ink); }
.section--light a { color: #a3611f; text-decoration-color: rgba(163,97,31,.35); }
.section--light a:hover { color: #8f5a22; }

.section--paper { background: var(--paper); color: var(--text-ink-2); }
.section--paper h2, .section--paper h3, .section--paper h4 { color: var(--text-ink); }

/* Blocco scuro: usato con parsimonia, come stacco */
.section--dark2 { background: var(--ink-2); color: var(--text); }
.section--dark2 h1, .section--dark2 h2, .section--dark2 h3, .section--dark2 h4 { color: var(--text-hi); }
.section--dark2 a { color: var(--gold); text-decoration-color: rgba(223,160,90,.4); }
.section--dark2 a:hover { color: var(--gold-hi); }
.section--dark2 .eyebrow { color: var(--gold); }
.section--dark2 .lede { color: var(--text); }

/* =====================================================================
   Impronte di gatto — motivo del brand.
   Il disegno è una data-URI SVG, così non aggiunge richieste di rete.
   ===================================================================== */
:root {
  --paw-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8742d' fill-opacity='.11'%3E%3Cpath d='M12 13.2c-2.7 0-5 1.9-5 4.2 0 1.8 1.3 3 3.1 3 .7 0 1.3-.15 1.9-.15s1.2.15 1.9.15c1.8 0 3.1-1.2 3.1-3 0-2.3-2.3-4.2-5-4.2z'/%3E%3Cellipse cx='5.6' cy='10.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='18.4' cy='10.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.5' cy='5.7' rx='2.2' ry='3'/%3E%3Cellipse cx='14.5' cy='5.7' rx='2.2' ry='3'/%3E%3C/svg%3E");
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13.2c-2.7 0-5 1.9-5 4.2 0 1.8 1.3 3 3.1 3 .7 0 1.3-.15 1.9-.15s1.2.15 1.9.15c1.8 0 3.1-1.2 3.1-3 0-2.3-2.3-4.2-5-4.2z'/%3E%3Cellipse cx='5.6' cy='10.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='18.4' cy='10.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.5' cy='5.7' rx='2.2' ry='3'/%3E%3Cellipse cx='14.5' cy='5.7' rx='2.2' ry='3'/%3E%3C/svg%3E");
}

/* Texture di zampette sui blocchi scuri */
.section--dark2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--paw), var(--paw);
  background-size: 34px 34px, 26px 26px;
  background-position: 0 0, 60px 42px;
  background-repeat: repeat, repeat;
  opacity: .05;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

/* =====================================================================
   Grana di carta sui fondi chiari.
   Il crema pieno è una campitura piatta e si legge come "colore di sfondo";
   con un rumore finissimo sopra diventa una superficie. È una data-URI SVG
   (feTurbulence): nessuna richiesta di rete, nessuna immagine da scaricare.
   ===================================================================== */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
.section--light::before, .section--paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  /* moltiplica invece di sovrapporre: la grana scurisce appena gli avvallamenti
     e lascia intatta la tinta, come la trama di una carta stampata. */
  mix-blend-mode: multiply;
  opacity: .055;
}

/* Zampette anche sui blocchi chiari, appena accennate */
.section--light::after, .section--paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--paw);
  background-size: 46px 46px;
  opacity: .035;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.section--light > *, .section--paper > * { position: relative; z-index: 1; }

/* Scia di impronte come separatore fra due blocchi.
   Non una fila allineata ma un'andatura: le zampe alternano destra e sinistra
   attorno a una diagonale, come le tracce vere di un gatto che attraversa. */
.paw-trail {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(.75rem, 2.4vw, 1.3rem);
  padding: 1.6rem 0; color: var(--brand); opacity: .6;
}
.paw-trail svg {
  width: clamp(18px, 4vw, 24px); height: clamp(18px, 4vw, 24px); flex: none;
  opacity: var(--o); transform: rotate(var(--r)) translateY(var(--y));
}
/* --y sposta la zampa sopra o sotto la linea di marcia, --r la orienta nel
   verso del passo, --o la fa emergere verso la fine della scia. */
.paw-trail svg:nth-child(1) { --y: 9px;   --r: -13deg; --o: .3;  }
.paw-trail svg:nth-child(2) { --y: -3px;  --r: -17deg; --o: .45; }
.paw-trail svg:nth-child(3) { --y: 5px;   --r: -11deg; --o: .65; }
.paw-trail svg:nth-child(4) { --y: -7px;  --r: -16deg; --o: .85; }
.paw-trail svg:nth-child(5) { --y: 1px;   --r: -12deg; --o: 1;   }

/* Le impronte si posano una dopo l'altra quando la scia entra in vista. */
.js .paw-trail[data-reveal] svg { opacity: 0; }
.js .paw-trail[data-reveal].is-in svg { animation: pawStep .42s var(--ease-out) both; }
.paw-trail.is-in svg:nth-child(1) { animation-delay: .05s; }
.paw-trail.is-in svg:nth-child(2) { animation-delay: .14s; }
.paw-trail.is-in svg:nth-child(3) { animation-delay: .23s; }
.paw-trail.is-in svg:nth-child(4) { animation-delay: .32s; }
.paw-trail.is-in svg:nth-child(5) { animation-delay: .41s; }
@keyframes pawStep {
  from { opacity: 0; transform: rotate(var(--r)) translateY(calc(var(--y) + 9px)) scale(.55); }
  to   { opacity: var(--o); transform: rotate(var(--r)) translateY(var(--y)); }
}
/* Il contenitore ha già la sua dissolvenza da [data-reveal]: qui la si annulla,
   altrimenti la scia comparirebbe tutta insieme e il passo non si vedrebbe. */
.js .paw-trail[data-reveal] { opacity: .6; transform: none; }

/* Il gatto torna indietro: stessa scia specchiata, per il secondo separatore.
   Si usa la proprietà `scale` e non `transform`, che qui è già occupata. */
.paw-trail--back { scale: -1 1; }

.section--dark2 .paw-trail { color: var(--gold); opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  .js .paw-trail[data-reveal] svg { opacity: var(--o); }
  .js .paw-trail[data-reveal].is-in svg { animation: none; }
}

/* Zampetta al posto del trattino nelle etichette di sezione.
   Il doppio nome di classe serve a superare `.eyebrow::before`, che viene
   dopo nel foglio: così si evitano gli !important, che impedirebbero poi di
   animare l'opacità. */
.eyebrow.eyebrow--paw::before {
  width: 1.15em; height: 1.15em;
  background: currentColor; opacity: 1;
  mask-image: var(--paw); mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-image: var(--paw); -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}

/* La zampetta si posa mezzo secondo dopo il titolo, come se il gatto l'avesse
   appena appoggiata lì. Vale solo dentro i blocchi che entrano allo scorrimento:
   nell'hero, che è già in vista al caricamento, resta ferma. */
.js [data-reveal]:not(.is-in) .eyebrow.eyebrow--paw::before { opacity: 0; }
.js [data-reveal].is-in .eyebrow.eyebrow--paw::before {
  animation: pawSet .5s var(--ease-out) .38s both;
}
@keyframes pawSet {
  from { opacity: 0; transform: scale(.45) rotate(-28deg) translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.is-in) .eyebrow.eyebrow--paw::before { opacity: 1; }
  .js [data-reveal].is-in .eyebrow.eyebrow--paw::before { animation: none; }
}

/* Elenchi con le impronte al posto dei pallini */
.list-paw { list-style: none; padding-left: 0; display: grid; gap: .6rem; }
.list-paw li { position: relative; padding-left: 1.9rem; }
.list-paw li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1em; height: 1.1em; background: var(--brand);
  mask-image: var(--paw); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: var(--paw); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}
.section--dark2 .list-paw li::before { background: var(--gold); }

/* ---------- 4. Componenti tipografici ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .6;
}
.eyebrow { color: var(--brand); }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text-ink-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow:not(.eyebrow--paw)::before { display: none; }
/* Nelle etichette centrate la zampetta resta, il trattino no */
.section-head--center .eyebrow--paw { gap: .5rem; }

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { display: grid; gap: .5rem; }

/* ---------- 5. Bottoni ---------- */
/* Le regole dei link per sezione (.section--light a, .section--dark2 a, ...)
   hanno la stessa specificita' di .btn e, arrivando dopo, ne ripingevano
   l'etichetta col colore del link: da qui i pulsanti "sbagliati". Il selettore
   qui sotto rimette il colore del pulsante sopra tutte quelle regole. */
.btn,
.section--light a.btn, .section--paper a.btn, .section--dark2 a.btn,
.cta-band a.btn, .cta-band--wide a.btn, .hero a.btn, .page-hero a.btn {
  color: var(--btn-fg);
}

.btn {
  /* Ocra un tono sotto a quella del logo: sull'ocra piena il testo chiaro si
     ferma a 3.6:1, qui arriva a 4.9:1. Il colore del marchio resta ovunque
     come tinta di accento, sui pulsanti serve la versione leggibile. */
  --btn-bg: #a3611f;
  --btn-fg: #fffaf3;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(184,116,45,.5); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text-ink);
  box-shadow: inset 0 0 0 1.8px rgba(20,20,18,.22);
}
.btn--ghost:hover { --btn-bg: rgba(184,116,45,.1); box-shadow: inset 0 0 0 1.8px var(--brand); color: var(--brand); }
/* Su fondo scuro il contorno torna chiaro */
.section--dark2 .btn--ghost, .hero--dark .btn--ghost, .site-footer .btn--ghost, .cta-band .btn--ghost {
  --btn-fg: var(--text-hi); box-shadow: inset 0 0 0 1.8px rgba(255,255,255,.35);
}
.section--dark2 .btn--ghost:hover, .cta-band .btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.8px #fff; color: #fff; }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--dark:hover { box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); }

.btn--sm { padding: .62rem 1.15rem; font-size: var(--step--1); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn .ico { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Link con freccia */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .28s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Header ---------- */
/* Header crema, come il fondo su cui è disegnato il logo */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow .35s var(--ease);
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(20,20,18,.08);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(20,20,18,.1), 0 10px 28px -18px rgba(20,20,18,.35);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--text-ink); margin-right: auto;
  flex: none;
}
/* Marchio nell'header: il logo è quadrato, quindi in una barra alta 74px la
   scritta interna sarebbe illeggibile. Si usa il medaglione come emblema e il
   nome resta come testo, nel carattere e nei colori del logo. */
.brand__mark {
  width: 56px; height: auto; flex: none;
  transition: transform .5s var(--ease-out);
}

/* Nel footer c'è spazio: lì il logo va per intero, scritta compresa. */
.brand--full { gap: 0; }
.brand__logo { width: 170px; height: auto; }
@media (max-width: 640px) { .brand__logo { width: 140px; } }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }

/* Marchio completo, per i blocchi che hanno spazio a sufficienza */
.logo-lockup { width: min(100%, 190px); height: auto; margin-bottom: 1.2rem; }
.brand__txt { display: grid; line-height: 1.05; }
.brand__txt b {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  letter-spacing: .01em; color: var(--text-ink);
}
.brand__txt span {
  font-size: .625rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand); font-weight: 700;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .55rem .8rem; border-radius: var(--r-pill);
  font-size: .935rem; font-weight: 600; color: var(--text-ink-2);
  text-decoration: none; position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: .3rem;
  width: 0; height: 2px; background: var(--brand); border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s var(--ease-out);
}
.nav a:hover { color: var(--text-ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 18px; }
.nav a[aria-current="page"] { color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  border-radius: 50%; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(184,116,45,.45); color: var(--brand);
}
.nav-toggle span {
  display: block; width: 19px; height: 1.8px; background: currentColor;
  border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1.8px;
  background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Badge aperto/chiuso */
.status {
  display: inline-flex; align-items: center; gap: .48rem;
  padding: .38rem .85rem .38rem .7rem;
  border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(20,20,18,.05);
  box-shadow: inset 0 0 0 1px rgba(20,20,18,.12);
  color: var(--text-ink-2);
  white-space: nowrap;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: none;
  position: relative;
}
.status.is-open   { color: #196b35; box-shadow: inset 0 0 0 1px rgba(30,140,70,.32); background: rgba(60,180,100,.14); }
.status.is-open   .status__dot { background: #21a04a; }
.status.is-open   .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid #21a04a; opacity: .7;
  animation: ping 2s var(--ease-out) infinite;
}
.status.is-closed { color: #9c3620; box-shadow: inset 0 0 0 1px rgba(180,70,40,.3); background: rgba(200,80,50,.1); }
.status.is-closed .status__dot { background: #c2492c; }
@keyframes ping { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.site-footer .status { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--text); }
.site-footer .status.is-open { color: #a8e6b4; background: rgba(60,180,100,.12); }
.site-footer .status.is-closed { color: #f0b4a8; background: rgba(200,80,50,.1); }

/* ---------- 7. Menu mobile ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  padding: calc(var(--header-h) + 1.5rem) var(--gut) 2rem;
  display: grid; align-content: start; gap: .2rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility .35s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
/* I link sono visibili di default: l'animazione aggiunge solo l'entrata
   scaglionata. Se le animazioni non partono, il menu resta comunque usabile. */
.mobile-nav a.mnav-link {
  font-family: var(--font-display); font-size: clamp(1.5rem, 7vw, 2.1rem);
  color: var(--text-ink); text-decoration: none; font-weight: 700;
  padding: .5rem 0; border-bottom: 1.5px solid rgba(20,20,18,.1);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav.is-open a.mnav-link { animation: mnavIn .5s var(--ease-out) both; }
.mobile-nav a.mnav-link:nth-child(1) { animation-delay: .05s; }
.mobile-nav a.mnav-link:nth-child(2) { animation-delay: .1s; }
.mobile-nav a.mnav-link:nth-child(3) { animation-delay: .15s; }
.mobile-nav a.mnav-link:nth-child(4) { animation-delay: .2s; }
.mobile-nav a.mnav-link:nth-child(5) { animation-delay: .25s; }
.mobile-nav a.mnav-link:nth-child(6) { animation-delay: .3s; }
.mobile-nav a.mnav-link:nth-child(7) { animation-delay: .35s; }
.mobile-nav a.mnav-link span { color: var(--brand); font-size: .9rem; font-family: var(--font-body); }
@keyframes mnavIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mobile-nav__foot { margin-top: 2rem; display: grid; gap: .75rem; }
.mobile-nav__foot .status { justify-self: start; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 820px);
  display: grid; align-items: center;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Il <picture> deve avere altezza definita, altrimenti l'height:100% dell'img
   non ha un riferimento e l'immagine collassa alla propria altezza naturale. */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
  transform-origin: 62% center;
  animation: heroZoom 24s var(--ease-out) both;
}
/* Avvicinamento lentissimo: dà profondità all'apertura senza spostare nulla
   del testo, che sta su un piano separato. */
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: none; } }

/* Velo scenico al posto dei riquadri smerigliati. Il pannello sfocato
   cancellava la foto proprio dove è più interessante; questo la lascia nitida
   e scurisce solo la zona centrale, dove cade il testo. Il bianco del titolo
   resta sopra 6:1 anche se sotto capita la parte più chiara della facciata. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(135% 100% at 50% 52%,
      rgba(26,18,10,.76) 0%, rgba(26,18,10,.66) 38%,
      rgba(26,18,10,.34) 68%, rgba(26,18,10,.06) 100%),
    linear-gradient(to bottom,
      rgba(26,18,10,.5) 0, rgba(26,18,10,.12) 22%,
      rgba(26,18,10,.16) 62%, rgba(26,18,10,.46) 100%);
}
.hero::after { z-index: -1; }

/* Hero in asse centrale: testo e riquadro informazioni condividono lo stesso
   centro, così le tre voci si distribuiscono simmetriche sotto i pulsanti. */
.hero__content {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1rem, 2vw, 1.35rem);
  justify-items: center; text-align: center;
}

/* Ingresso in cascata: ogni riga entra dopo la precedente. Serve a dare un
   ordine di lettura (dove siamo -> chi siamo -> cosa offriamo -> cosa fare),
   non a fare movimento per il movimento. */
.hero__content > * { animation: heroUp .85s var(--ease-out) both; }
.hero__content > *:nth-child(1) { animation-delay: .06s; }
.hero__content > *:nth-child(2) { animation-delay: .16s; }
.hero__content > *:nth-child(3) { animation-delay: .28s; }
.hero__content > *:nth-child(4) { animation-delay: .38s; }
.hero__content > *:nth-child(5) { animation-delay: .5s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
  .hero__content > * { animation: none; }
}

.hero .eyebrow:not(.eyebrow--paw)::before { display: none; }
.hero .btn-row { justify-content: center; }
.hero h1 {
  margin-bottom: 0;
  color: #fff8ef;
  /* L'alone scuro non è un effetto: tiene il titolo staccato anche nei punti
     in cui la facciata dietro è quasi bianca. */
  text-shadow: 0 2px 30px rgba(20,13,6,.55), 0 1px 3px rgba(20,13,6,.4);
}
.hero h1 .accent {
  /* nowrap: senza questo "al Gatto Nero" può spezzarsi e il titolo passa a
     tre righe, spingendo giù tutto l'hero. */
  display: block; white-space: nowrap;
  /* Oro chiaro: sul velo scenico tiene 4:1, oltre il minimo del testo grande
     (3:1). L'ocra piena del logo qui sarebbe troppo scura. */
  color: #f7d3a8;
  font-style: italic; font-weight: 700;
}
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* Riga d'indirizzo: niente pastiglia, solo l'impronta e il testo in chiaro.
   Su fondo scurito il crema tiene 5:1, quindi il riquadro non serve più. */
.hero__place {
  margin-bottom: 0;
  color: #f9efe2;
  text-shadow: 0 1px 14px rgba(20,13,6,.6);
}

/* Etichette e pulsante secondario poggiano direttamente sulla foto: un filo
   di vetro e un bordo chiaro bastano a definirli, senza farne dei blocchi. */
.hero .tag {
  /* Vetro scuro, non chiaro: un velo bianco schiarisce il fondo e porta il
     testo piccolo sotto 4.5:1 proprio dove dietro c'è l'insegna. Scurendo
     invece si guadagna contrasto e le pastiglie si staccano meglio. */
  background: rgba(20, 14, 8, .3);
  color: #fbf3e8;
  box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .btn--ghost {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: #fff7ec;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.8px rgba(255,255,255,.45);
}
.hero .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .22); }
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  background: rgba(255,255,255,.72); color: var(--text-ink);
  box-shadow: inset 0 0 0 1.5px rgba(20,20,18,.12);
  backdrop-filter: blur(6px);
}
.hero .btn-row { margin-bottom: 0; }

/* Riquadro informazioni: vive fuori dal blocco di testo (largo 40ch) così può
   distribuirsi su tre colonne piene, senza celle orfane, e restare centrato. */
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 251, 246, .93);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-radius: var(--r-lg);
  box-shadow: 0 34px 70px -34px rgba(16,10,4,.75), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
  width: 100%; max-width: 680px; margin-inline: auto;
  margin-top: clamp(.6rem, 2vw, 1.4rem);
}
/* L'icona sta accanto alla propria etichetta, e il valore va a capo sotto,
   centrato. Affiancata all'intero blocco di testo, l'icona finiva in alto a
   sinistra mentre l'etichetta — corta e centrata su un valore molto più largo
   — restava al centro: fra le due si aprivano decine di pixel e l'icona
   sembrava staccata da tutto. `display: contents` toglie di mezzo il <div>
   che avvolge dt e dd, così diventano elementi diretti di questo flex senza
   dover cambiare il markup. */
.hero__fact {
  padding: 1.1rem 1.25rem;
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  column-gap: .45rem; row-gap: .1rem;
  text-decoration: none; color: inherit;
  /* Divisori come bordo della cella, non come spazi del grid: così il fondo
     del riquadro resta una superficie sola. */
  border-left: 1px solid rgba(20,20,18,.1);
  transition: background .25s var(--ease);
}
.hero__fact > div { display: contents; }
.hero__fact:first-child { border-left: 0; }
a.hero__fact:hover { background: rgba(184,116,45,.12); }
.hero__fact svg { width: 20px; height: 20px; color: var(--brand); flex: none; transition: transform .3s var(--ease-out); }
a.hero__fact:hover svg { transform: translateY(-2px); }
/* Larghezza piena: manda il valore a capo da solo e lo centra sull'asse
   della cella, sotto la coppia icona + etichetta. */
.hero__fact dd { flex: 0 0 100%; }
.hero__fact dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--brand); font-weight: 700; margin-bottom: 0; }
.hero__fact dd { margin: 0; font-size: .95rem; color: var(--text-ink); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.hero__fact dd small { display: block; font-size: .8rem; color: var(--text-ink-2); font-weight: 400; opacity: .8; }

/* Sotto i 700px tre colonne sarebbero troppo strette: il riquadro si impila e
   i divisori passano da verticali a orizzontali. La disposizione interna delle
   voci è già quella giusta e non va ripetuta. */
@media (max-width: 700px) {
  .hero__facts { grid-template-columns: 1fr; max-width: 460px; }
  .hero__fact { border-left: 0; border-top: 1px solid rgba(20,20,18,.1); }
  .hero__fact:first-child { border-top: 0; }
}

/* Da telefono l'hero si comporta diversamente: lo schermo è stretto e alto,
   quindi il nucleo scuro del velo finiva per coprire tutta la foto invece che
   la sola fascia del testo, e la colonna sotto ai pulsanti arrivava esatta al
   bordo dello schermo, senza far capire che sotto continua. */
@media (max-width: 640px) {
  /* Poco meno di uno schermo pieno: il bordo della sezione successiva si
     affaccia e si capisce che la pagina prosegue, senza aggiungere frecce. */
  .hero {
    min-height: min(90svh, 740px);
    padding-top: calc(var(--header-h) + 1.1rem);
    padding-bottom: 1rem;
  }
  /* Il contenuto è più alto del minimo, quindi è lui a dettare l'altezza:
     stringendo un filo le distanze fra le righe l'hero resta sotto il bordo
     dello schermo e la sezione successiva continua ad affacciarsi. */
  .hero__content { gap: .85rem; }
  /* Velo più stretto e più verticale del desktop: la parte alta della foto,
     dov'è l'insegna, torna leggibile invece di sparire nel nero. La coprenza
     al centro resta però alta, perché proprio dietro al titolo cade l'insegna
     bianca: è il punto più chiaro di tutta la foto. */
  .hero__media::after {
    background:
      radial-gradient(115% 62% at 50% 46%,
        rgba(26,18,10,.7) 0%, rgba(26,18,10,.58) 55%, rgba(26,18,10,.18) 100%),
      linear-gradient(to bottom,
        rgba(26,18,10,.34) 0, rgba(26,18,10,.08) 20%,
        rgba(26,18,10,.24) 66%, rgba(26,18,10,.5) 100%);
  }
  /* L'insegna sta un po' più a sinistra del centro dell'inquadratura. */
  .hero__media img { object-position: 56% center; }
  /* Con la spaziatura piena l'indirizzo andava a capo e l'impronta restava
     staccata in cima a sinistra: così sta su una riga sola fino a 360px. */
  .hero__place { font-size: .76rem; letter-spacing: .07em; gap: .45rem; }
  .hero .btn--lg { padding: .95rem 1.6rem; }
  /* Con l'icona sopra al testo ogni voce guadagna una riga: senza ricompattare
     il riquadro, l'hero arriverebbe esatto al bordo dello schermo e la sezione
     successiva smetterebbe di affacciarsi. */
  .hero__fact { padding: .72rem 1.15rem; gap: .25rem; }
  .hero__fact svg { width: 18px; height: 18px; }
}

/* Hero interno (pagine secondarie) */
.page-hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--cream);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 100% at 78% 0%, rgba(184,116,45,.2), transparent 62%),
    radial-gradient(60% 90% at 0% 100%, rgba(168,69,43,.1), transparent 60%);
}
.page-hero__inner { max-width: 62ch; }
.page-hero h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.page-hero .lede { color: var(--text-ink-2); }

/* Variante con foto. Senza, tutte le pagine interne aprivano con lo stesso
   riquadro crema: dopo l'hero fotografico della home sembravano di un altro
   sito. Il velo è più forte a sinistra, dove sta il testo (largo 62ch), e si
   apre verso destra, dove la foto resta leggibile. */
.page-hero--photo { background: #201812; }
.page-hero--photo::before { display: none; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media picture { display: block; width: 100%; height: 100%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(22,16,9,.9) 0%, rgba(22,16,9,.82) 42%,
      rgba(22,16,9,.55) 72%, rgba(22,16,9,.35) 100%),
    linear-gradient(to bottom,
      rgba(22,16,9,.45) 0, rgba(22,16,9,.1) 30%, rgba(22,16,9,.45) 100%);
}
.page-hero--photo h1 { color: #fff8ef; text-shadow: 0 2px 24px rgba(18,12,6,.5); }
.page-hero--photo .lede { color: #f1e7d9; }
.page-hero--photo .eyebrow { color: #f7d3a8; }
.page-hero--photo .crumbs, .page-hero--photo .crumbs a { color: #e6dac7; }
.page-hero--photo .crumbs a:hover { color: #fff; }
.page-hero--photo .crumbs [aria-current] { color: #fffaf3; }
.page-hero--photo .crumbs li + li::before { color: #f7d3a8; }
.page-hero--photo .btn--ghost {
  --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff7ec;
  box-shadow: inset 0 0 0 1.8px rgba(255,255,255,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.page-hero--photo .btn--ghost:hover { --btn-bg: rgba(255,255,255,.22); }
/* Su schermo stretto il testo occupa tutta la larghezza: il velo deve coprire
   in modo uniforme, non solo a sinistra. */
@media (max-width: 780px) {
  .page-hero__media::after {
    background:
      linear-gradient(to right, rgba(22,16,9,.88) 0%, rgba(22,16,9,.78) 100%),
      linear-gradient(to bottom, rgba(22,16,9,.4) 0, rgba(22,16,9,.12) 30%, rgba(22,16,9,.45) 100%);
  }
}

/* Piccolo lessico: al posto di un elenco puntato, una griglia di voci con il
   termine in evidenza. Su una pagina lunga di solo testo spezza il ritmo. */
.lessico {
  display: grid; gap: .8rem; margin: 1.4rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.lessico > div {
  background: var(--paper); border-radius: var(--r);
  padding: 1rem 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(20,20,18,.09);
}
.lessico dt {
  font-family: var(--font-display); font-weight: 700;
  color: var(--brand); font-size: 1.05rem; margin-bottom: .2rem;
}
.lessico dd { margin: 0; font-size: .95rem; color: var(--text-ink-2); line-height: 1.5; }

/* Breadcrumb */
.crumbs { font-size: .82rem; color: var(--text-ink-2); margin-bottom: 1.1rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "›"; color: var(--brand); }
.crumbs a { color: var(--text-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--text-ink); }

/* ---------- 9. Griglie & card ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Card piatto/specialità */
.dish {
  position: relative; display: grid; overflow: hidden;
  border-radius: var(--r-lg); background: #fff;
  text-decoration: none; color: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 6px 22px -14px rgba(0,0,0,.35);
  isolation: isolate;
}
.dish__img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish__img--pano { aspect-ratio: 16 / 9; }   /* per le foto panoramiche del locale */
.dish__img picture { display: block; width: 100%; height: 100%; }
.dish__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .5s var(--ease);
}
.dish:hover .dish__img img { transform: scale(1.07); }
.dish__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: .45rem; }
.dish__body h3 { font-size: var(--step-1); }
.dish__body p { font-size: .93rem; color: var(--text-ink-2); line-height: 1.55; }
.dish__price {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--brand); color: #fffaf3;
  padding: .3rem .75rem; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--shadow-s);
}
.dish__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(15,15,13,.72); backdrop-filter: blur(6px);
  color: var(--gold); padding: .3rem .7rem; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* Variante su fondo scuro */
.section--dark2 .dish { background: var(--ink-3); box-shadow: var(--shadow); }
.section--dark2 .dish__body h3 { color: var(--text-hi); }
.section--dark2 .dish__body p { color: var(--text-dim); }

/* Card generica */
.card {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 3px 14px -8px rgba(0,0,0,.18);
  display: grid; gap: .7rem; align-content: start;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(184,116,45,.3), 0 18px 40px -22px rgba(0,0,0,.35); }
.card__ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; margin-bottom: .35rem;
  background: rgba(184,116,45,.12); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(184,116,45,.22);
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--step-1); }
.card p { font-size: .95rem; color: var(--text-ink-2); }

/* Variante su fondo scuro */
.section--dark2 .card { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-soft); }
.section--dark2 .card h3 { color: var(--text-hi); }
.section--dark2 .card p { color: var(--text-dim); }
.section--dark2 .card__ico { background: rgba(223,160,90,.12); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(223,160,90,.22); }

/* Card momento della giornata */
.moment {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: 300px; display: grid; align-content: end;
  padding: 1.5rem; text-decoration: none; color: var(--text-hi);
  background: var(--ink-3); isolation: isolate;
  transition: transform .4s var(--ease-out);
}
.moment:hover { transform: translateY(-5px); color: var(--text-hi); }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease-out); }
.moment:hover img { transform: scale(1.08); }
.moment::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9,9,12,.94) 12%, rgba(9,9,12,.55) 50%, rgba(9,9,12,.2) 100%);
}
.moment__time {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .3rem;
}
/* La card ha una foto scura sotto: senza questo il titolo prenderebbe il
   colore scuro della regola generale degli heading e sparirebbe. */
.moment h3, .section--light .moment h3, .section--paper .moment h3 {
  font-size: var(--step-2); margin-bottom: .35rem; color: var(--text-hi);
}
.moment p { font-size: .9rem; color: var(--text); margin-bottom: .8rem; }
.moment .link-arrow { color: var(--gold); font-size: .9rem; }

/* ---------- 9-bis. Striscia foto prodotti (subito sotto l'hero) ---------- */
.photo-strip {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(5, 1fr);
}
.photo-strip figure {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 3 / 4; margin: 0; background: var(--ink-3);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.photo-strip figure:hover img { transform: scale(1.07); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .8rem .7rem; font-size: .8rem; font-weight: 600;
  color: var(--text-hi); line-height: 1.3;
  background: linear-gradient(to top, rgba(9,9,7,.9), transparent);
}
.photo-strip__price {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--brand); color: #fffaf3;
  padding: .2rem .55rem; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 700;
}
/* Sotto i 900px cinque colonne diventerebbero francobolli. La striscia passa
   allo scorrimento orizzontale con aggancio: restano visibili tutte le
   preparazioni invece di nasconderne tre, e la foto tagliata sul bordo destro
   fa capire da sola che si scorre. */
@media (max-width: 900px) {
  .photo-strip {
    display: flex; gap: .5rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    /* la barra di scorrimento su una striscia di foto è solo rumore */
    scrollbar-width: none;
  }
  .photo-strip::-webkit-scrollbar { display: none; }
  .photo-strip figure {
    flex: 0 0 clamp(150px, 42vw, 210px);
    scroll-snap-align: start;
  }
}

/* ---------- 10. Galleria ---------- */
/* Numero di colonne fisso, non auto-fit: con auto-fit il conteggio dipendeva
   dalla larghezza disponibile e la griglia si scomponeva in modo diverso a
   ogni misura di schermo. Cinque colonne per dieci foto danno due righe piene
   esatte; due colonne ne danno cinque, altrettanto esatte. */
.gallery {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
}
@media (max-width: 1040px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 4/3; background: var(--ink-3); cursor: zoom-in;
  padding: 0; width: 100%; display: block;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,12,.7), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: .9rem 1rem; font-size: .84rem; color: var(--text-hi); text-align: left;
  transform: translateY(8px); opacity: 0; line-height: 1.4;
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.08); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; opacity: 1; }
@media (hover: none) {
  .gallery__item::after, .gallery__cap { opacity: 1; transform: none; }
}
/* Versione compatta per la home: riquadri più piccoli e più fitti. */
.gallery--compact { grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.gallery--compact .gallery__item { aspect-ratio: 1 / 1; border-radius: var(--r); }
.gallery--compact .gallery__cap { padding: 1.2rem .7rem .6rem; font-size: .78rem; }
@media (max-width: 900px) { .gallery--compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery--compact { grid-template-columns: repeat(2, 1fr); } }
/* Riquadro nota. La classe era usata su cinque pagine ma non era mai stata
   definita: senza regole l'icona SVG cadeva sulla misura predefinita degli
   elementi sostituiti, 300x150 px, e il riquadro non esisteva affatto. */
.note {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(20,20,18,.1);
  color: var(--text-ink-2);
  font-size: .95rem; line-height: 1.6;
}
.note svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; color: var(--brand); }
.note p, .note span { margin: 0; }
.note p + p { margin-top: .6rem; }
.note strong { color: var(--text-ink); }
/* Variante scura: sui fondi crema stacca e si legge come un inciso. */
.note--dark {
  background: var(--ink-2); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.note--dark svg { color: var(--gold); }
.note--dark strong { color: var(--text-hi); }
.note--dark em { color: var(--gold-hi); font-style: normal; font-weight: 600; }
.note--dark a { color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,9,.95);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  backdrop-filter: blur(8px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; place-items: center; overflow: hidden; position: relative; }
.lightbox__stage img {
  max-width: min(100%, 1100px); max-height: 100%;
  object-fit: contain; border-radius: var(--r);
  box-shadow: var(--shadow-l);
  animation: lbIn .4s var(--ease-out);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem .4rem 1rem; }
.lightbox__count { font-size: .82rem; color: var(--text-dim); letter-spacing: .1em; }
.lightbox__cap { text-align: center; font-size: .92rem; color: var(--text); padding: 1rem .5rem .3rem; min-height: 3em; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: var(--text-hi);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.lb-btn:hover { background: var(--gold); color: var(--ink); transform: scale(1.07); }
.lb-btn svg { width: 20px; height: 20px; }
.lightbox__nav { display: flex; gap: .6rem; }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
}
.lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
@media (min-width: 900px) { .lightbox__prev { left: 2rem; } .lightbox__next { right: 2rem; } }

/* ---------- 12. Split media/testo ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-l); width: 100%; }
/* In una colonna stretta una foto panoramica si riduce a una striscia alta
   130 px accanto a una colonna di testo molto più alta. Qui si ritaglia verso
   un formato più compatto invece di lasciarla schiacciata. */
.split__media--crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 55%; height: 55%; border-radius: var(--r-lg);
  border: 1.5px solid rgba(223,160,90,.35); z-index: -1;
}
.split__media::before { border-color: rgba(184,116,45,.4); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq__item {
  border-radius: var(--r); overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: box-shadow .3s var(--ease), background .3s;
}
.faq__item[open] { box-shadow: inset 0 0 0 1px rgba(184,116,45,.35); background: #fffbf4; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.35rem;
  font-weight: 700; font-size: 1.02rem; color: var(--text-ink);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__answer { padding: 0 1.35rem 1.3rem; font-size: .95rem; color: var(--text-ink-2); }
.faq__answer > * + * { margin-top: .7rem; }

.section--dark2 .faq__item { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-soft); }
.section--dark2 .faq__item[open] { background: rgba(223,160,90,.07); box-shadow: inset 0 0 0 1px var(--line); }
.section--dark2 .faq__item summary { color: var(--text-hi); }
.section--dark2 .faq__item summary::after { border-color: var(--gold); }
.section--dark2 .faq__answer { color: var(--text-dim); }

/* ---------- 14. Contatti / mappa ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.info-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: .25rem; }
.info-list dt, .info-list b {
  display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--brand); font-weight: 700; margin-bottom: .25rem;
}
.info-list a { color: var(--text-ink); text-decoration: none; font-weight: 700; }
.info-list a:hover { color: var(--brand); text-decoration: underline; }
.info-list p { font-size: .97rem; color: var(--text-ink-2); }

.map-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20,20,18,.12), 0 8px 28px -18px rgba(20,20,18,.4);
  background: var(--cream-2); min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }
/* Mappa a tutta larghezza: senza l'elenco delle indicazioni accanto, la
   colonna stretta lasciava mezza fascia vuota. Il formato panoramico tiene
   l'altezza sotto controllo mentre la larghezza cresce. */
.map-frame--wide { min-height: 0; aspect-ratio: 21 / 9; }
.map-frame--wide iframe { min-height: 0; height: 100%; }
@media (max-width: 780px) { .map-frame--wide { aspect-ratio: 4 / 3; } }

.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { padding: .7rem .2rem; text-align: left; border-bottom: 1px solid rgba(20,20,18,.12); }
.hours-table th { font-weight: 600; color: var(--text-ink-2); }
.hours-table td { text-align: right; color: var(--text-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th { color: var(--brand); font-weight: 800; }
.hours-table tr.is-today td { color: var(--brand); font-weight: 800; }
.hours-table .closed { color: var(--text-ink-2); opacity: .75; }

/* ---------- 16. CTA finale ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Ocra più profonda dell'ocra piena del marchio. Sul #b8747d del logo il
     testo chiaro si fermava a 2.7:1 e il titolo a 2.97:1, cioè sotto soglia su
     tutta la fascia; il velo bianco in alto peggiorava proprio la zona
     dell'occhiello. Con questo fondo e un velo dimezzato si arriva a 4.6:1 per
     il testo corrente e 5:1 per il titolo. Il colore del marchio resta quello
     di sempre come tinta di accento: qui serve la versione leggibile, come già
     accade sui pulsanti. */
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(255,255,255,.08), transparent 65%),
    #8e5219;
}
.cta-band, .cta-band .lede { color: #fdf3e6; }
.cta-band h2 { color: #fff; }
/* L'occhiello ereditava l'ocra piena: ocra su ocra, 1.27:1, praticamente
   illeggibile su tutte le fasce del sito. */
.cta-band .eyebrow { color: #fff3e4; }
.cta-band .btn { --btn-bg: #fffaf3; --btn-fg: #7c4b16; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 55ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* Il gatto del marchio si affaccia dal bordo superiore della fascia.
   L'immagine è tagliata all'altezza delle zampe (tools/brand.py), quindi
   appoggiandola sul filo della fascia sembra che ci si sia arrampicato sopra
   e stia guardando di là. */
.band-cat {
  position: absolute; left: 50%; bottom: 100%;
  width: clamp(84px, 12vw, 132px); height: auto;
  display: block; pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(20,14,8,.18));
}
/* La fascia ritaglia quello che esce dai suoi bordi: qui serve il contrario,
   perché il gatto vive proprio sopra il bordo superiore. */
.cta-band { overflow: visible; }
/* Sale in vista quando la fascia entra nello schermo. */
.js .band-cat[data-reveal] { opacity: 0; transform: translateX(-50%) translateY(45%); }
.js .band-cat[data-reveal].is-in { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .js .band-cat[data-reveal] { opacity: 1; transform: translateX(-50%); }
}

/* Variante larga: la fascia finale non è solo un invito, contiene anche le
   indicazioni e la mappa. Qui il testo torna allineato a sinistra. */
.cta-band--wide a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.cta-band--wide a:hover { color: #ffe6c4; }
.cta-band--wide .btn { color: #7c4b16; }
/* Niente velo bianco: schiarendo l'arancio il testo bianco perde contrasto
   (3.14 contro 3.77 sul fondo pieno). Meglio bordo netto e fondo trasparente. */
.cta-band--wide .btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.cta-band--wide .btn--ghost:hover {
  --btn-bg: rgba(255,255,255,.16); color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}
.cta-band--wide .map-frame { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), var(--shadow); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: #14140f; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}
.footer-grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 2.5rem;
}
.site-footer h2 {
  font-family: var(--font-body); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .17em; color: var(--gold); margin-bottom: 1rem; font-weight: 700;
  line-height: 1.3;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; color: var(--text-dim); line-height: 1.75; }
.site-footer .brand { margin-bottom: 1rem; }
/* Nel footer scuro il gatto nero non si vedrebbe: lì si usa la pastiglia crema
   e il nome torna chiaro. */
.site-footer .brand { color: var(--text-hi); }
.site-footer .brand__txt b { color: var(--text-hi); }
.site-footer .brand__txt span { color: var(--gold); }
.brand__mark--badge { width: 46px; height: 46px; border-radius: 50%; }

.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--text-dim);
}
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--text);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 18. Barra azioni mobile (CRO) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  background: rgba(248,238,228,.97);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1.5px solid rgba(20,20,18,.1);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform .4s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.action-bar a {
  display: grid; justify-items: center; gap: .2rem;
  padding: .55rem .3rem; border-radius: 14px;
  font-size: .72rem; font-weight: 700; color: var(--text-ink-2);
  text-decoration: none; letter-spacing: .02em;
  transition: background .2s var(--ease), color .2s;
}
.action-bar a svg { width: 20px; height: 20px; color: var(--brand); }
.action-bar a:active { background: rgba(184,116,45,.16); }
.action-bar a.is-primary { background: var(--brand); color: #fffaf3; }
.action-bar a.is-primary svg { color: #fffaf3; }

/* Torna su */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.4rem; z-index: 88;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fffaf3;
  box-shadow: 0 8px 24px -10px rgba(20,20,18,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: all .35s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 19. Scroll reveal ----------
   Si attiva solo se il JS è vivo (classe .js sull'elemento <html>): così
   senza JavaScript, o se lo script fallisce, il contenuto resta visibile. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .header-cta .status { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { padding-bottom: 74px; }
  .action-bar { display: block; }
  .to-top { bottom: 5.6rem; }
  .brand__mark { width: 42px; }
  .brand__txt b { font-size: .96rem; }
  .hero { min-height: min(94svh, 760px); }
  .hero__content { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. Stampa ---------- */
@media print {
  .site-header, .action-bar, .to-top, .mobile-nav, .lightbox, .map-frame, .cta-band { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section, .page-hero { padding-block: 1.2rem; background: #fff !important; }
  h1, h2, h3 { color: #000 !important; }
  a { color: #000; text-decoration: none; }
  p { color: #333 !important; }
}


/* ---------- Testi secondari ----------
   Sostituisce gli stili in linea che usavano i colori del tema scuro. */
.muted { color: var(--text-ink-2); opacity: .85; font-size: .9rem; }
.section--dark2 .muted, .site-footer .muted { color: var(--text-dim); opacity: 1; }
