/* ══════════════════════════════════════════════════════════════
   Fratelli Vittorio – Sicily Food
   Foglio di stile. Impostazione "mobile first": le regole base
   valgono per il telefono, i @media allargano per tablet e desktop.
   ══════════════════════════════════════════════════════════════ */

/* ───── 0. Font, ospitati sul sito ─────
   Niente richieste a Google Fonts: nessun dato del visitatore va a terzi.
   Sono font "variabili": un solo file copre tutti i pesi (400–600).
   Il browser scarica latin-ext solo se nella pagina c'è un carattere di quel gruppo.
   Licenza SIL Open Font License: vedi fonts/OFL-*.txt */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/cormorant-garamond-italic-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: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/source-serif-4-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: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-italic-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: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ───── 1. Variabili ───── */
:root {
  /* Palette del marchio: non aggiungere altri colori */
  --nero: #12100E;        /* nero lavico */
  --oro: #B08D57;         /* oro bronzo: filetti, numeri, dettagli */
  --oro-scuro: #7A5E33;   /* stesso oro, scurito: per il TESTO su avorio (contrasto AA 5,2:1) */
  --avorio: #F4EEE3;      /* carta */
  --inchiostro: #2A2622;  /* testo su avorio */
  --mare: #1F3A4A;        /* un solo accento: sezione "Il banco" */

  --font-titoli: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-testo: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --testata-h: 4rem;
  --margine: clamp(1.25rem, 5vw, 3rem);
  --spazio-sezione: clamp(4rem, 10vw, 8rem);

  /* Valori che cambiano da sezione a sezione (vedi .sezione--*) */
  --sfondo: var(--avorio);
  --testo: var(--inchiostro);
  --accento: var(--oro-scuro);   /* testo piccolo in "oro" */
  --filetto: var(--oro);         /* linee e ornamenti */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--testata-h);
  -webkit-text-size-adjust: 100%;
}
html.menu-aperto { overflow: hidden; }

body {
  margin: 0;
  background: var(--nero);
  color: var(--inchiostro);
  font-family: var(--font-testo);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem); /* 17–18px */
  line-height: 1.7;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

h2, h3 {
  font-family: var(--font-titoli);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }

/* Focus sempre visibile, per chi naviga da tastiera */
:focus-visible {
  outline: 2px solid var(--accento);
  outline-offset: 3px;
}

.nascosto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .5rem 1rem; background: var(--avorio); color: var(--inchiostro);
}
.salta:focus { top: 1rem; }

/* ───── 3. Elementi ricorrenti ───── */
.contenitore {
  width: min(100% - 2 * var(--margine), 72rem);
  margin-inline: auto;
}
.contenitore--stretto { width: min(100% - 2 * var(--margine), 46rem); }

.sezione {
  background-color: var(--sfondo);
  color: var(--testo);
  padding-block: var(--spazio-sezione);
}
/* Avorio, con una grana leggerissima da carta da pacchi */
.sezione--carta {
  --sfondo: var(--avorio); --testo: var(--inchiostro);
  --accento: var(--oro-scuro);
  background-image: url("img/carta.png"); /* tassello 120×120 px, pochi KB */
}
.sezione--lava { --sfondo: var(--nero); --testo: var(--avorio); --accento: var(--oro); }
/* Sul blu l'oro piccolo non arriva al contrasto AA: le etichette vanno in avorio,
   l'oro resta ai numeri romani (testo grande) e ai filetti */
.sezione--mare { --sfondo: var(--mare); --testo: var(--avorio); --accento: var(--avorio); }

/* Etichetta: maiuscolo piccolo e spaziato, come sulle vecchie insegne */
.etichetta {
  font-family: var(--font-testo);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accento);
  line-height: 1.4;
}

.intestazione {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.intestazione .etichetta { margin-bottom: .9rem; }
.intestazione__sotto { margin-top: 1rem; opacity: .85; }

/* Separatore: filetto oro con il pesce del logo al centro */
.filetto {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--filetto);
  margin: 1.5rem auto 0;
  width: min(100%, 16rem);
}
.filetto::before, .filetto::after {
  content: ""; flex: 1; height: 1px; background: currentColor;
}
.filetto svg { width: 2.75rem; height: auto; flex: none; }

/* Fascia a maiolica: motivo geometrico oro su nero, usato solo due volte */
.maiolica {
  height: 22px;
  background-color: var(--nero);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' fill='none' stroke='%23B08D57' stroke-width='.8'%3E%3Cpath d='M0 11 11 0l11 11-11 11zM22 11 33 0l11 11-11 11z'/%3E%3Cpath d='M5.5 11 11 5.5l5.5 5.5-5.5 5.5zM27.5 11 33 5.5l5.5 5.5-5.5 5.5z'/%3E%3Ccircle cx='22' cy='11' r='1.6'/%3E%3Ccircle cx='0' cy='11' r='1.6'/%3E%3Ccircle cx='44' cy='11' r='1.6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: repeat-x;
  border-block: 1px solid rgba(176, 141, 87, .45);
  opacity: .8;
}

/* Collegamenti: il filetto oro parte corto e si allunga al passaggio */
.collegamento {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--filetto), var(--filetto));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 1.6em 1px;
  padding-bottom: .15em;
  transition: background-size .4s ease;
}
.collegamento:hover, .collegamento:focus-visible { background-size: 100% 1px; }
.collegamento--chiaro { color: var(--avorio); }

/* Pulsanti: rettangolari, bordo sottile, niente riempimenti */
.bottone {
  display: inline-block;
  padding: .95em 1.7em;
  border: 1px solid var(--oro);
  border-radius: 2px;
  background: transparent;
  color: var(--avorio);
  font-family: var(--font-testo);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease;
}
.bottone:hover { background-color: rgba(176, 141, 87, .16); }
.bottone--inchiostro { color: var(--inchiostro); border-color: var(--oro-scuro); }

/* Foto: al passaggio si ingrandiscono appena (1.03), senza uscire dalla cornice */
/* minmax(0, 1fr): la foto non allarga la cornice, così object-fit la ritaglia al centro */
.foto > :first-child { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.foto > :first-child > * { transition: transform .5s ease; }
.foto:hover > :first-child > * { transform: scale(1.03); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Comparsa allo scroll: sola dissolvenza. Senza JS tutto resta visibile. */
.js .rivela { opacity: 0; transition: opacity .45s ease; }
.js .rivela.visibile { opacity: 1; }

/* ───── 4. Testata ───── */
.testata {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--testata-h);
  padding-inline: var(--margine);
  background: var(--nero);
  border-bottom: 1px solid rgba(176, 141, 87, .35);
  color: var(--avorio);
  --accento: var(--oro);
}
.testata__logo { position: relative; z-index: 2; border-radius: 50%; }
.testata__logo img { width: 3rem; height: 3rem; }

.testata__apri {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  min-height: 2.75rem;
  padding: 0 0 0 .5rem;
  background: none; border: 0; cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--avorio);
}
.testata__apri-linee {
  width: 1.6rem; height: 9px;
  border-block: 1px solid var(--oro);
  transition: height .3s ease;
}
.testata__apri[aria-expanded="true"] .testata__apri-linee { height: 1px; border-bottom: 0; }

/* Telefono: menu a schermo intero su fondo nero */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  padding: calc(var(--testata-h) + 1rem) var(--margine) 2rem;
  background: var(--nero);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility 0s .3s;
}
.nav.aperto { visibility: visible; opacity: 1; transition-delay: 0s; }

.nav__lista { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.nav__lista a {
  position: relative;
  display: block;
  padding: .55rem .25rem;
  color: var(--avorio);
  font-family: var(--font-titoli);
  font-size: 1.75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__lista a::after {
  content: ""; position: absolute; left: .25rem; right: .25rem; bottom: .35rem;
  height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.nav__lista a:hover::after, .nav__lista a:focus-visible::after { transform: scaleX(1); }

.lingua {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  color: rgba(244, 238, 227, .5);
}
.lingua button {
  min-width: 2.25rem; min-height: 2.25rem;
  background: none; border: 0; cursor: pointer;
  color: rgba(244, 238, 227, .7);
  letter-spacing: inherit; font-weight: inherit;
}
.lingua button[aria-pressed="true"] { color: var(--oro); }
.lingua button:hover { color: var(--avorio); }

/* ───── 5. Hero ───── */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: calc(100vh - var(--testata-h));
  min-height: calc(100svh - var(--testata-h));
  padding: 3rem var(--margine) 5.5rem;
  background: var(--nero);
  color: var(--avorio);
  text-align: center;
  --accento: var(--oro);
}

.hero__contenuto { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.75rem; }
/* ── Il logo come moneta in 3D ──
   Senza JavaScript (o con "riduci movimento") resta l'immagine piatta.
   Con JavaScript lo script costruisce: bordo a strati (lo spessore), due facce,
   e su ogni faccia due livelli a profondità diverse: cornice e scritte. */
.moneta {
  position: relative;
  display: block;
  width: clamp(13rem, 64vw, 22rem);
  aspect-ratio: 1;
  perspective: 1100px;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.moneta__piatta { width: 100%; height: 100%; }

.moneta--3d { cursor: grab; touch-action: pan-y; } /* trascinando in orizzontale la si fa girare */
.moneta--3d.presa { cursor: grabbing; }
.moneta--3d .moneta__piatta { opacity: 0; }          /* resta per i lettori di schermo */

/* Alone caldo dietro la moneta: si accende con l'insegna e poi "respira" */
.moneta__alone {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 141, 87, .34), rgba(176, 141, 87, .1) 55%, transparent);
  opacity: 0;
  pointer-events: none;
}
.moneta.accesa .moneta__alone { animation: respiro 6s ease-in-out 1.2s infinite; opacity: .55; transition: opacity 1.2s ease; }

.moneta__corpo {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  visibility: hidden; /* niente opacity qui: appiattirebbe il 3D */
}
.moneta.pronta .moneta__corpo { visibility: visible; }

/* Spessore: dischi oro impilati lungo l'asse Z */
.moneta__bordo {
  position: absolute; inset: 3.2%;
  border-radius: 50%;
  background: #7A5E33;
}
.moneta__bordo:nth-child(3n) { background: #B08D57; }   /* zigrinatura */
.moneta__bordo--luce { background: #D8BC8A; }

.moneta__faccia { position: absolute; inset: 0; transform-style: preserve-3d; }
.moneta__faccia--retro { transform: rotateY(180deg); }
.moneta__faccia > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.moneta__base { transform: translateZ(9px); }
/* Le scritte stanno sollevate dal disco: inclinando la moneta si staccano dal fondo */
.moneta__scritte { transform: translateZ(34px); opacity: .07; }
.moneta.accesa .moneta__scritte { animation: accensione 1.5s linear forwards; }

/* Riflesso che attraversa il metallo mentre gira (posizione guidata dallo script) */
.moneta__faccia > .moneta__riflesso {
  inset: 3.2%; width: auto; height: auto;
  border-radius: 50%;
  transform: translateZ(10px);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 200, .3) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%;
  background-position: var(--luce, 50%) 0;
}

/* L'insegna che si accende: qualche sfarfallio, poi resta */
@keyframes accensione {
  0% { opacity: .07; } 8% { opacity: .9; } 12% { opacity: .15; } 20% { opacity: .15; }
  24% { opacity: 1; } 30% { opacity: .35; } 38% { opacity: 1; } 46% { opacity: .7; }
  52%, 100% { opacity: 1; }
}
@keyframes respiro { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Riga e pulsanti entrano dopo l'accensione */
.js .hero--animato .hero__riga, .js .hero--animato .hero__azioni { opacity: 0; transition: opacity .5s ease; }
.js .hero--animato.acceso .hero__riga { opacity: 1; }
.js .hero--animato.acceso .hero__azioni { opacity: 1; transition-delay: .35s; }
.hero__riga {
  max-width: 17em;
  font-family: var(--font-titoli);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hero__azioni { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: .5rem; }
/* Prenota e Menu della stessa larghezza, anche quando stanno uno sopra l'altro */
.hero__azioni .bottone { min-width: 15rem; text-align: center; }

/* ───── 6. Storia ───── */
.storia { display: grid; gap: 3rem; }
.storia h2 { margin: .9rem 0 2rem; }
.storia__colonne p + p { margin-top: 1.1em; }

/* Capolettera */
.capolettera::first-letter {
  float: left;
  margin: .06em .1em 0 0;
  font-family: var(--font-titoli);
  font-size: 4.4em;
  font-weight: 500;
  line-height: .78;
  color: var(--oro-scuro);
}

/* Due foto d'epoca, una sotto l'altra */
.storia__foto { display: grid; gap: 1.75rem; }
.storia__foto figure > div { aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px rgba(176, 141, 87, .35); }
.storia__foto figcaption {
  margin-top: .6rem;
  font-size: .9rem; font-style: italic; line-height: 1.4;
  color: var(--oro-scuro);
}

/* ───── 7. Il banco ───── */
.passi { display: grid; gap: 2.75rem; }
.passo { padding-top: 1.4rem; border-top: 1px solid rgba(176, 141, 87, .6); }
.passo__numero {
  display: block;
  font-family: var(--font-titoli);
  font-size: clamp(4.25rem, 3rem + 6vw, 7rem);
  font-weight: 400;
  line-height: .95;
  color: var(--oro);
}
.passo h3 { margin: 1rem 0 .7rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
.passo p { opacity: .88; }

.avviso {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 34em;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(176, 141, 87, .6);
  text-align: center;
  font-style: italic;
}

/* ───── 8. Menu, impaginato come una carta stampata ───── */
.carta {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 5vw, 4rem);
  /* doppio filetto da tipografia */
  border: 1px solid rgba(42, 38, 34, .55);
  outline: 1px solid rgba(42, 38, 34, .55);
  outline-offset: 5px;
}
.carta .intestazione { margin-bottom: 1.5rem; }

.portata { margin-top: 3rem; }
/* Titolo della pagina menu.html: stesso aspetto degli h2 delle sezioni */
.carta__titolo {
  font-family: var(--font-titoli);
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
}

/* In index.html le portate hanno h3, in menu.html h2: stesso aspetto */
.portata h2, .portata h3 {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-testo);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--oro-scuro);
}
.portata h2::before, .portata h2::after,
.portata h3::before, .portata h3::after { content: ""; width: 2.25rem; height: 1px; background: var(--oro); }
/* Nota a piè di portata (gli asterischi dei prodotti congelati) */
.portata__nota { margin-top: 1.4rem; font-size: .85rem; font-style: italic; line-height: 1.45; opacity: .85; }

.piatto + .piatto { margin-top: 1.25rem; }
/* Se il nome va a capo, puntini e prezzo si allineano all'ultima riga, come in tipografia */
.piatto__riga { display: flex; align-items: baseline; align-items: last baseline; }
.piatto__nome {
  font-family: var(--font-titoli);
  font-size: clamp(1.3rem, 1.2rem + .5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}
/* Puntini di guida fra piatto e prezzo */
.piatto__guida {
  flex: 1; min-width: 1.5rem;
  margin: 0 .5em;
  border-bottom: 1px dotted rgba(42, 38, 34, .6);
  transform: translateY(-.25em);
}
.piatto__prezzo { font-variant-numeric: tabular-nums; white-space: nowrap; }
.piatto__prezzo small { font-size: .78em; font-style: italic; }

/* Anteprima del menu in index.html: una riga per portata, il resto in menu.html */
.anteprima .portata { margin-top: 2.25rem; }
.anteprima .portata h3 { margin-bottom: .6rem; }
.anteprima .portata p {
  max-width: 30em; margin-inline: auto;
  text-align: center;
  font-family: var(--font-titoli); font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); font-style: italic; line-height: 1.35;
}

/* Fondo della carta: prenota + torna al sito */
.carta__azioni {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}
.piatto p { font-size: .92rem; font-style: italic; line-height: 1.45; opacity: .85; padding-right: clamp(2rem, 10vw, 4rem); }

.carta__nota {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--oro);
  text-align: center; font-style: italic;
}
.carta__nota--piccola { margin-top: .75rem; padding-top: 0; border: 0; font-size: .85rem; font-style: normal; color: var(--oro-scuro); }

/* ───── 9. Galleria: griglia asimmetrica ───── */
.galleria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
/* Telefono: la prima foto a tutta larghezza, le altre due per riga */
.galleria__foto > div { aspect-ratio: 4 / 5; }
.g-a { grid-column: span 2; }
.g-a > div { aspect-ratio: 4 / 3; }
.g-b img { object-position: 30% 50%; } /* tiene nell'inquadratura la mano col limone */
.galleria figcaption {
  margin-top: .6rem;
  font-size: .9rem; font-style: italic; line-height: 1.4;
  color: rgba(244, 238, 227, .82);
}

/* ───── 10. Dicono di noi ───── */
.stampa {
  margin-top: var(--spazio-sezione);
  padding-block: 2rem;
  border-block: 1px solid rgba(176, 141, 87, .5);
  text-align: center;
}
/* Senza separatori: sul telefono una testata per riga, su schermi larghi affiancate */
.stampa__testate {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .1em 1.75em;
  margin-top: .8rem;
  font-family: var(--font-titoli);
  font-size: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.5;
}
.stampa__testate span { white-space: nowrap; }

/* ───── 11. Dove siamo e orari ───── */
.dove { display: grid; gap: 3rem; }

.mappa {
  position: relative;
  display: grid; place-content: center; justify-items: center; gap: .9rem;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border: 1px solid rgba(42, 38, 34, .55);
  background: rgba(42, 38, 34, .05);
  text-align: center;
}
.mappa__nota { font-size: .82rem; font-style: italic; }
.mappa iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) contrast(1.05); /* mappa in scala di grigi */
}

.dove__indirizzo { display: grid; justify-items: start; gap: .5rem; margin-top: 1.5rem; }
.dove__indirizzo > a { font-family: var(--font-titoli); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.dove__indirizzo > span { font-size: .95rem; max-width: 30em; }

/* Cartellino degli orari: carta da pacchi, foro in alto, appena storto */
.cartellino {
  position: relative;
  align-self: start;
  padding: 3rem clamp(1.1rem, 4vw, 2rem) 1.75rem;
  background: color-mix(in srgb, var(--oro) 16%, var(--avorio));
  border: 1px solid rgba(42, 38, 34, .6);
  border-radius: 2px;
  transform: rotate(-.6deg);
}
.cartellino::before {
  content: ""; position: absolute; top: .9rem; left: 50%;
  width: .9rem; height: .9rem; margin-left: -.45rem;
  border: 1px solid rgba(42, 38, 34, .6); border-radius: 50%;
  background: var(--avorio);
}
.orari { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.orari caption {
  padding-bottom: .9rem;
  font-family: var(--font-titoli); font-size: 2rem; font-weight: 500; line-height: 1.1;
}
.orari th, .orari td {
  padding: .5rem 0;
  border-top: 1px solid rgba(42, 38, 34, .3);
  font-size: .92rem; font-weight: 400; text-align: right; white-space: nowrap;
}
.orari tbody th { text-align: left; padding-right: .5rem; }
.orari td + td { padding-left: .6rem; }
.orari__chiuso td { font-style: italic; }
.orari tr.oggi th, .orari tr.oggi td { font-weight: 600; }
.orari tr.oggi th::after {
  content: attr(data-oggi);
  margin-left: .6em;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-scuro);
}

/* ───── 12. Prenota: telefono e WhatsApp ───── */
.prenota__azioni { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.prenota__azioni .bottone { min-width: 16rem; text-align: center; }
.prenota__nota {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem;
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(176, 141, 87, .5);
  font-size: .95rem; font-style: italic; text-align: center;
  color: rgba(244, 238, 227, .85);
}

/* ───── 13. Piede ───── */
.piede {
  background: var(--nero); color: rgba(244, 238, 227, .85);
  padding-block: 3.5rem 2rem;
  font-size: .95rem;
  --accento: var(--oro);
}
.piede__griglia { display: grid; gap: 2.25rem; text-align: center; justify-items: center; }
.piede .etichetta { margin-bottom: .7rem; }
.piede address, .piede p { line-height: 1.9; }
.piede__marchio img { width: 6rem; height: 6rem; }
.piede__legale {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(176, 141, 87, .35);
  font-size: .82rem; text-align: center;
}
.piede__legale--solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* ───── 14. Pagine legali (privacy.html, cookie.html) ───── */
/* Testo italiano e inglese in due blocchi: si vede quello della lingua scelta */
html[lang="en"] .solo-it, html:not([lang="en"]) .solo-en { display: none; }

.legale h1 {
  margin: .9rem 0 1rem;
  font-family: var(--font-titoli);
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
}
.legale__aggiornato { font-size: .85rem; font-style: italic; opacity: .85; }
.legale__intro { margin-top: 2rem; font-size: 1.08em; }
.legale h2 {
  margin: 2.75rem 0 .9rem; padding-top: 1.5rem;
  border-top: 1px solid var(--filetto);
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem);
}
.legale h3 { margin: 1.6rem 0 .4rem; font-family: var(--font-testo); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.legale p + p, .legale p + ul, .legale ul + p { margin-top: .9em; }
.legale ul { padding-left: 1.2em; list-style: disc; }
.legale li + li { margin-top: .35em; }
.legale li::marker { color: var(--oro); }
.legale__torna { margin-top: 3.5rem; text-align: center; }

/* ══════════ Tablet (da 40em) ══════════ */
@media (min-width: 40em) {
  .hero__azioni { flex-direction: row; gap: 2.25rem; }
  .prenota__azioni { flex-direction: row; justify-content: center; gap: 1.5rem; }

  .passi { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

  /* Galleria su 12 colonne: larghezze diverse, righe della stessa altezza
     (colonne / 5 = proporzione: 7→7/5, 5→1/1, 4→4/5, 3→3/5) */
  .galleria { grid-template-columns: repeat(12, 1fr); gap: 2.5rem 1.5rem; }
  .g-a { grid-column: span 7; } .g-a > div { aspect-ratio: 7 / 5; }
  .g-b { grid-column: span 5; } .g-b > div { aspect-ratio: 1 / 1; }
  .g-c { grid-column: span 4; } .g-c > div { aspect-ratio: 4 / 5; }
  .g-d { grid-column: span 3; } .g-d > div { aspect-ratio: 3 / 5; }
  .g-e { grid-column: span 5; } .g-e > div { aspect-ratio: 1 / 1; }

  .piede__griglia { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════ Desktop (da 60em) ══════════ */
@media (min-width: 60em) {
  :root { --testata-h: 4.5rem; }

  /* Menu in linea, niente pulsante */
  .testata__apri { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 2.5rem;
    padding: 0; background: none; overflow: visible;
    visibility: visible; opacity: 1; transition: none;
  }
  .nav__lista { flex-direction: row; gap: 2rem; }
  .nav__lista a {
    padding: .6rem 0;
    font-family: var(--font-testo);
    font-size: .74rem; font-weight: 600; letter-spacing: .22em;
  }
  .nav__lista a::after { left: 0; right: 0; bottom: .25rem; }

  .storia { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
  .storia__colonne { columns: 2; column-gap: 2.5rem; }
  .storia__colonne p { break-inside: avoid-column; }
  .storia__foto { margin-top: 2.2rem; }

  .dove { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
  .mappa { aspect-ratio: 3 / 2; }

  .piede__griglia { grid-template-columns: auto repeat(3, 1fr); text-align: left; justify-items: start; gap: 4rem; }
}

/* ══════════ Chi ha chiesto meno movimento ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rivela { opacity: 1; }
  .foto:hover > :first-child > * { transform: none; }
  /* la moneta 3D non viene nemmeno costruita (vedi script.js) */
}

/* ══════════ Stampa: esce il menu, pulito ══════════ */
@media print {
  .testata, .hero, .maiolica, #galleria, #prenota, .mappa, .piede__legale { display: none; }
  .sezione { padding-block: 1.5rem; background: none; }
  .js .rivela { opacity: 1; }
}
