/* ==========================================================
   AL PESCATORE — foglio di stile
   Approccio MOBILE FIRST: le regole base sono per lo smartphone,
   i media query più in basso aggiungono per schermi più grandi.
   Per cambiare colori, font o spaziature basta intervenire
   sulle variabili qui sotto: si aggiorna tutto il sito.
   ========================================================== */

/* ---------- 0. FONT (file locali nella cartella fonts/) ---------- */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }

/* ---------- 1. VARIABILI (design token) ---------- */
:root {
  /* Palette "Dal profondo alla luce" */
  --abisso:     #0A1128;
  --notte:      #0F1E3D;
  --oceano:     #1B3A6B;
  --reale:      #2451A6;
  --cobalto:    #3A6FD8;
  --fiordaliso: #6C95E8;
  --cielo:      #A7C1F2;
  --nebbia:     #D4E1FA;
  --ghiaccio:   #EDF3FD;
  --porcellana: #F7FAFF;
  --bianco:     #FFFFFF;

  /* Font */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-price:   "EB Garamond", Georgia, "Times New Roman", serif;   /* solo per i prezzi */
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand:    "Kalam", "Segoe Print", "Comic Sans MS", cursive;

  /* Scala tipografica (fluida: cresce con lo schermo) */
  --t-small: 0.875rem;
  --t-body:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead:  clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --t-h3:    1.25rem;
  --t-h2:    clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --t-hero:  clamp(4.5rem, 23vw, 12.5rem);

  /* Spaziature */
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 12vw, 9rem);
  --radius:  18px;

  /* Ombra tinta di blu, mai grigia */
  --shadow: 0 18px 40px -18px rgba(15, 30, 61, 0.35);

  --actionbar-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* le ancore non finiscono sotto l'header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--abisso);
  background: var(--abisso); /* colore di fondo pagina (sotto il footer) */
  /* spazio per la barra azioni fissa su mobile */
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--abisso);
  color: var(--bianco);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. IL "GIORNO CHE SCORRE" ----------
   Ogni sezione ha un tono: la pagina parte dal bianco di mezzogiorno
   e scende fino al blu della sera. I gradienti si raccordano
   tra loro, così lo scroll sembra una giornata al mare. */
.tone-noon      { background: linear-gradient(var(--bianco), var(--porcellana)); }
.tone-late      { background: linear-gradient(var(--porcellana), var(--nebbia)); }
.tone-sunset    { background: linear-gradient(var(--nebbia), var(--cielo)); }
.tone-evening   { background: linear-gradient(var(--reale), var(--oceano)); color: var(--bianco); }
.tone-night     { background: linear-gradient(var(--oceano), var(--abisso) 60%); color: var(--bianco); }

/* ---------- 4. ELEMENTI RICORRENTI ---------- */

/* Prezzi: cifre in EB Garamond (--font-price), un carattere classico, tutte della stessa altezza */
.set__price span,
.festa__price span,
.feste-teaser__price { font-weight: 500; font-variant-numeric: lining-nums; }

/* Le "note a mano" di Luciano */
.note {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.35;
}

/* Pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px; /* area di tocco comoda */
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn--solid { background: var(--reale); color: var(--bianco); }
.btn--solid:hover { background: var(--oceano); }

.btn--ghost { color: var(--oceano); box-shadow: inset 0 0 0 2px var(--nebbia); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--fiordaliso); }

.btn--light { background: var(--bianco); color: var(--oceano); }
.btn--light:hover { background: var(--ghiaccio); }

.text-link {
  color: var(--cielo);
  text-underline-offset: 4px;
}

/* Contenitore foto con segnaposto se l'immagine non carica */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--nebbia);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing img { visibility: hidden; }
.photo.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--oceano);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(108, 149, 232, 0.18) 14px 16px),
    var(--ghiaccio);
}

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--gutter);
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  background: rgba(247, 250, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 225, 250, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--oceano);
  text-decoration: none;
  white-space: nowrap;
}
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav { display: none; } /* compare su desktop */

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: var(--t-small);
  color: var(--oceano);
  white-space: nowrap;
}
@media (max-width: 430px) {
  .brand { font-size: 1rem; }
  .brand__logo { height: 34px; }
  .status { font-size: 0.75rem; }
}
.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cielo);
}
.status.is-open .status__dot {
  background: var(--cobalto);
  box-shadow: 0 0 0 4px rgba(58, 111, 216, 0.2);
}

/* ---------- 6. HERO "LINEA DELL'ORIZZONTE" ----------
   --stage-h  altezza della hero (quasi tutto lo schermo)
   --horizon  dove finisce il cielo bianco e inizia la foto (% dall'alto)
   --fade     quanto è lunga la sfumatura sopra l'orizzonte
   Il titolo è impaginato con una griglia a due righe: la prima riga
   è alta quanto --horizon, così la parola "Pescatore" si appoggia
   esattamente sulla linea e ci affonda per metà. */

/* Registrare la variabile permette di animarla (la "marea" che sale) */
@property --tide {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.hero {
  --stage-h: max(620px, calc(100vh - 60px - var(--actionbar-h)));
  --horizon: 42%;
  --fade: 28px;
  --logo-h: 1.4em; /* altezza dell'ancora rispetto al titolo */
  position: relative;
  height: var(--stage-h);
  overflow: hidden;
  background: linear-gradient(var(--bianco), var(--porcellana) 40%);
  isolation: isolate;
}
@supports (height: 100svh) {
  .hero { --stage-h: max(620px, calc(100svh - 60px - var(--actionbar-h))); }
}

/* Il nome: stessa impaginazione per la copia blu e per quella bianca */
.hero__name {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: var(--horizon) 1fr;
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(22.5vw, 15rem, calc(var(--stage-h) * 0.2));
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--oceano);
  pointer-events: none;
}
.hero__name > span {
  align-self: end;
  /* fa scendere "Pescatore" sotto la linea: la metà bassa va "in acqua" */
  margin-bottom: -0.3em;
}

/* Prima riga: "Al" a sinistra, il logo allineato alla fine di "Pescatore".
   L'ancora misura in "em", quindi cresce e si riduce insieme al titolo. */
.hero__line1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero__logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  margin: 0 0.02em 0.02em 0;
  filter: drop-shadow(0 10px 18px rgba(27, 58, 107, 0.18));
  animation: anchor-in 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__logo--ghost {
  width: auto;
  aspect-ratio: 488 / 710;
  visibility: hidden;
  animation: none;
}
@keyframes anchor-in {
  from { opacity: 0; transform: translateY(-0.12em) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}

/* La foto: parte un po' sopra l'orizzonte per avere spazio di sfumatura */
.hero__sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--horizon) - var(--fade));
  z-index: 2;
  background: var(--cielo);
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade));
          mask-image: linear-gradient(transparent, #000 var(--fade));
  /* la marea: si rivela dal basso verso l'alto al caricamento */
  clip-path: inset(calc(100% - var(--tide)) 0 0 0);
  --tide: 100%;
  animation: tide 1.8s 0.15s cubic-bezier(0.22, 0.7, 0.18, 1) both;
}
@keyframes tide { from { --tide: 0%; } to { --tide: 100%; } }

.hero__sea img { object-position: center 60%; }

/* Velatura blu: tiene leggibili le lettere bianche e i testi in basso */
.hero__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(15, 30, 61, 0.30) 0,
      rgba(15, 30, 61, 0.30) calc(var(--fade) + 120px),
      rgba(15, 30, 61, 0.10) 55%,
      rgba(10, 17, 40, 0.82) 100%
    );
}

/* Contenitore della copia bianca: alto quanto tutta la hero e ancorato
   al fondo, così le lettere combaciano al pixel con quelle blu */
.hero__mirror {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--stage-h);
}
.hero__name--under {
  color: var(--bianco);
  /* mostra solo la parte sotto l'orizzonte */
  clip-path: inset(var(--horizon) 0 0 0);
  text-shadow: 0 2px 30px rgba(10, 17, 40, 0.25);
}

/* Contenuti in basso, sopra la foto */
.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0 var(--gutter) 1.75rem;
  color: var(--bianco);
}

.hero__note {
  align-self: flex-end;
  width: min(86%, 21rem);
  padding: 1rem 1.2rem;
  background: var(--bianco);
  color: var(--oceano);
  border-radius: 4px;
  box-shadow: 0 20px 40px -16px rgba(10, 17, 40, 0.6);
  transform: rotate(-2.5deg);
  font-size: 1.15rem;
}
.hero__note p { margin: 0; }

.hero__intro {
  max-width: 30ch;
  text-shadow: 0 1px 14px rgba(10, 17, 40, 0.7);
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.45;
}

/* Su mobile i pulsanti li ha già la barra in basso: qui li nascondiamo */
.hero__actions { display: none; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

.btn--glass {
  color: var(--bianco);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }

/* Schermi bassi (telefono in orizzontale): meno altezza, niente biglietto */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__note { display: none; }
}

/* ---------- 7. NASTRO DEL PESCATO ---------- */
.ribbon {
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--porcellana);
  border-block: 1px solid var(--nebbia);
}
.ribbon__track {
  display: flex;
  width: max-content;
  animation: ribbon 40s linear infinite;
}
.ribbon__track span {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem);
  color: var(--reale);
  white-space: nowrap;
}
/* piccola onda tra una parola e l'altra */
.ribbon__track span::after {
  content: "";
  width: 2.2rem;
  height: 0.6rem;
  margin: 0 1.25rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M1 5c5-5 8-5 13 0s8 5 13 0 8-5 12 0' fill='none' stroke='%236C95E8' stroke-width='2'/%3E%3C/svg%3E");
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- 9. LUCIANO E IL LOCALE ---------- */
.story {
  display: grid;
  gap: 3rem;
  padding: var(--section) var(--gutter);
}

/* Due polaroid sovrapposte sulla stessa riga di griglia:
   il locale dietro (a destra, più in basso), Luciano davanti. */
.story__photos {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  max-width: 34rem;
}
.polaroid {
  grid-row: 1;
  margin: 0;
  padding: 10px 10px 0;
  background: var(--bianco);
  box-shadow: var(--shadow);
}
.polaroid .photo { aspect-ratio: 4 / 5; }
.polaroid figcaption {
  padding: 0.55rem 0.25rem 0.7rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--oceano);
  text-align: center;
}
.polaroid--main {
  grid-column: 1 / 8;
  align-self: start;
  z-index: 2;
  transform: rotate(-2.5deg);
}
.polaroid--place {
  grid-column: 6 / 13;
  align-self: start;
  margin-top: 52%; /* più in basso: le due foto si toccano solo in un angolo */
  z-index: 1;
  transform: rotate(3deg);
}
/* computer: passando il mouse, la foto dietro viene in primo piano */
@media (hover: hover) {
  .polaroid--place:hover { z-index: 3; }
}

.story__sign {
  margin: 1.5rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--oceano);
  transform: rotate(-3deg);
  transform-origin: left;
}

.story__text { max-width: 36rem; }
.story__kicker {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--cobalto);
}
.story__text h2 {
  font-size: var(--t-h2);
  color: var(--oceano);
  margin-bottom: 1.5rem;
}
.story__text p { max-width: 60ch; }

.story__quote {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--fiordaliso);
  font-size: 1.45rem;
  color: var(--reale);
}
.story__quote p { margin: 0; }

/* ---------- 10. IL MENÙ ---------- */
.menu { padding: var(--section) var(--gutter) calc(var(--section) * 0.75); }

.menu__head { max-width: 40rem; margin-bottom: 2rem; }
.menu__head h2 {
  font-size: var(--t-h2);
  color: var(--oceano);
  margin-bottom: 0.75rem;
}
.menu__head p { color: var(--oceano); }

/* Selettore "Alla carta | Menù fissi": un interruttore a due posizioni,
   con la "pastiglia" blu che scivola sotto l'opzione scelta */
.switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 26rem;
  margin-bottom: 2.5rem;
  padding: 5px;
  border-radius: 999px;
  background: var(--bianco);
  box-shadow: var(--shadow);
}
.switch::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--oceano);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* Passando sopra "Alla carta" la pastiglia scivola verso il link:
   anticipa che si sta per cambiare pagina */
.switch:has(a:hover, a:focus-visible)::before { transform: translateX(100%); }
.switch__btn {
  position: relative;
  z-index: 1;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--oceano);
  font: 600 1.05rem var(--font-body);
  cursor: pointer;
  transition: color 0.25s;
}
.switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}
.switch__btn[aria-current] { color: var(--bianco); cursor: default; }
.switch:has(a:hover, a:focus-visible) .switch__btn[aria-current] { color: var(--oceano); }
.switch a.switch__btn:hover,
.switch a.switch__btn:focus-visible { color: var(--bianco); }
.switch__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}
.switch a:hover .switch__arrow { transform: translateX(3px); }


/* Schede portate: su mobile scorrono in orizzontale se non ci stanno */
.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) 2rem;
  padding: 0.25rem var(--gutter);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--oceano);
  font: 600 1rem var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { background: var(--bianco); }
.tab[aria-selected="true"] { background: var(--oceano); color: var(--bianco); }

.panel { max-width: 44rem; }
.panel[hidden] { display: none; }

.panel__art {
  width: 110px;
  height: 55px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--reale);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dishes { list-style: none; margin: 0; padding: 0; }
.dishes li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-size: 1.1rem;
}
/* puntini di guida tra piatto e prezzo, come sui menù di trattoria */
.dish {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 0.6rem;
}
.dish::after {
  content: "";
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(27, 58, 107, 0.35);
  transform: translateY(-0.3em);
}
.price {
  font-family: var(--font-display);
  color: var(--reale);
  white-space: nowrap;
}

.menu__note {
  margin: 2.5rem 0 0;
  max-width: 28rem;
  color: var(--oceano);
}

/* ---- Menù fissi: cartoncini stampati da trattoria ----
   Mobile: si sfogliano col dito, uno alla volta.
   Tablet: due per riga. Desktop: tutti e quattro affiancati. */
.sets {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1);
  padding: 1rem var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.sets::-webkit-scrollbar { display: none; }

.set {
  position: relative;
  flex: 0 0 84%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--bianco);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
}
/* doppia cornice sottile, come un menù stampato */
.set::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--nebbia);
  outline: 1px solid var(--nebbia);
  outline-offset: -5px;
  border-radius: 3px;
  pointer-events: none;
}

.set__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  margin: 0;
  padding: 0.2rem 0.9rem;
  background: var(--bianco);
  color: var(--reale);
  font-size: 1.05rem;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 6px 14px -6px rgba(15, 30, 61, 0.4);
  transform: translateX(-50%) rotate(-3deg);
}
/* messaggino dell'offerta del mese: più visibile, pieno blu con scritta bianca */
.set__badge--offer {
  position: relative;
  top: auto;
  left: auto;
  align-self: center;
  max-width: 100%;
  margin: -3.25rem 0 1.1rem;
  padding: 0.35rem 1.05rem 0.4rem;
  background: var(--reale);
  color: var(--bianco);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  border-radius: 6px;
  box-shadow: 0 10px 22px -8px rgba(36, 81, 166, 0.65);
  transform: rotate(-2.5deg);
}
.set--month { box-shadow: var(--shadow), inset 0 0 0 2px var(--cielo); }

.set__head h3 {
  font-size: 1.6rem;
  color: var(--oceano);
}

.set__price {
  margin: 0.75rem 0 0;
  color: var(--reale);
  font-size: 0.95rem;
}
.set__price span {
  display: block;
  font-family: var(--font-price);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--oceano);
}

/* giorni di validità (menù del mese) */
.set__when {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--ghiaccio);
  color: var(--oceano);
  font-size: 0.88rem;
  font-weight: 600;
}

/* portate separate da piccole onde */
.set__courses {
  list-style: none;
  flex: 1;
  margin: 1.5rem 0;
  padding: 0;
}
.set__courses li {
  padding: 0.45rem 0;
  font-size: 1.05rem;
}
.set__label {
  font-weight: 700;
  color: var(--oceano);
}
.set__courses li + li::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 0.5rem;
  margin: 0 auto 0.9rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M1 5c5-5 8-5 13 0s8 5 13 0 8-5 12 0' fill='none' stroke='%236C95E8' stroke-width='2'/%3E%3C/svg%3E");
}

.set__included {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--reale);
}

.set__cta {
  position: relative; /* sopra la cornice decorativa */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  background: var(--reale);
  color: var(--bianco);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.set__cta:hover { background: var(--oceano); }

/* pallini di posizione (solo mobile) */
.sets__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sets__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 58, 107, 0.25);
  transition: width 0.3s, background-color 0.3s;
}
.sets__dots span.is-active { width: 24px; background: var(--oceano); }

.sets__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 40rem;
  color: var(--oceano);
}
.sets__footer p { margin: 0; }

.text-btn {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--reale);
  font: 600 1rem var(--font-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-btn:hover { color: var(--oceano); }

/* Onda di passaggio verso la sera */
.wave {
  line-height: 0;
  background: var(--cielo);
}
.wave svg { width: 100%; height: 60px; fill: var(--reale); }

/* ---------- 11. LA VERANDA ---------- */
.veranda { padding: calc(var(--section) * 0.6) 0 var(--section); }

.veranda__head {
  max-width: 40rem;
  padding: 0 var(--gutter);
  margin-bottom: 2rem;
}
.veranda__head h2 { font-size: var(--t-h2); margin-bottom: 0.75rem; }
.veranda__head p { color: var(--nebbia); }

/* Rullino fotografico: scroll orizzontale con aggancio */
.reel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--fiordaliso) transparent;
}
.reel:focus-visible { outline-offset: -3px; }

.reel__item {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: transparent;
  overflow: visible;
}
.reel__item img,
.reel__item.is-missing::after {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
/* qui l'altezza la decide il rapporto 4:5, non il contenitore,
   altrimenti la didascalia verrebbe spinta fuori */
.reel__item img { height: auto; background: var(--oceano); }
.reel__item.is-missing::after { bottom: auto; height: auto; aspect-ratio: 4 / 5; }
.reel__item figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--nebbia);
}

/* pallini di posizione della galleria (telefono e tablet) */
.reel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem var(--gutter) 0;
}
.reel__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s, background-color 0.3s;
}
.reel__dots span.is-active { width: 24px; background: var(--bianco); }
@media (min-width: 1024px) { .reel__dots { display: none; } }

/* ---------- 12. VIENI A TROVARCI ---------- */
.visit { padding: var(--section) var(--gutter) calc(var(--section) * 0.8); }

.visit > h2 {
  font-size: var(--t-h2);
  max-width: 12ch;
  margin-bottom: 3rem;
}

.visit__grid { display: grid; gap: 3rem; }

.visit__block h3 {
  font-size: var(--t-h3);
  color: var(--cielo);
  margin-bottom: 1rem;
}
.visit__block p { color: var(--nebbia); }

.visit__phone {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.visit__phone:hover { color: var(--cielo); }

/* Orari: tabella compatta Pranzo / Cena */
.hours__lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--cielo);
}
/* ogni riga: il giorno sopra, sotto pranzo e cena in due colonne
   (così sta anche nella colonna stretta del computer) */
.hours { margin: 0; font-variant-numeric: tabular-nums; }
.hours__head,
.hours__row dd { font-size: 0.95rem; }
.hours__head,
.hours__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
}
.hours__head span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fiordaliso);
  padding-bottom: 0.45rem;
}
.hours__row {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(167, 193, 242, 0.18);
}
.hours__row dt { grid-column: 1 / -1; font-weight: 600; margin-bottom: 0.15rem; }
.hours__row dd { margin: 0; color: var(--nebbia); white-space: nowrap; }
.hours__row dd.hours__off { font-family: var(--font-hand); font-size: 1.05rem; color: var(--fiordaliso); }
.hours__row.is-today dt,
.hours__row.is-today dd:not(.hours__off) { color: var(--bianco); }
.hours__row.is-today dt::after {
  content: " oggi";
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--cielo);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

address { font-style: normal; margin-bottom: 1rem; color: var(--nebbia); }

.map {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--notte);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(0.95);
}
/* riquadro prima del clic: la mappa di Google non è ancora caricata */
.map__consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(108, 149, 232, 0.08) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(108, 149, 232, 0.08) 38px 39px),
    var(--notte);
}
.map__pin {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--cielo);
  stroke-width: 1.8;
}
.map__note {
  max-width: 30ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fiordaliso);
}
.map__note a { color: var(--cielo); }

.visit__goodbye {
  margin: 4rem 0 0;
  font-size: 1.8rem;
  color: var(--cielo);
  transform: rotate(-2deg);
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem var(--gutter);
  background: var(--abisso);
  color: var(--fiordaliso);
  font-size: var(--t-small);
  border-top: 1px solid rgba(108, 149, 232, 0.2);
}
.site-footer p { margin: 0; }
.site-footer__logo { display: block; height: 72px; width: auto; opacity: 0.9; }
.site-footer__text { display: flex; flex-direction: column; gap: 0.25rem; }
.site-footer__link { color: var(--cielo); text-underline-offset: 3px; }
/* dati societari: piccoli e tenui, ma leggibili (contrasto 4,9:1) */
.site-footer__legal {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #6A82B4;
}
.site-footer__legal span { white-space: nowrap; }
.site-footer__legal span + span::before {
  content: "·";
  margin: 0 0.45em;
  opacity: 0.7;
}
/* su telefono e tablet una voce per riga, senza puntini */
@media (max-width: 1023px) {
  .site-footer__legal span { display: block; }
  .site-footer__legal span + span::before { content: none; }
}
/* il logo del footer non si schiaccia mai */
.site-footer picture, .site-footer__logo { flex-shrink: 0; }
/* telefoni: icone social sotto il testo, allineate alla scritta */
@media (max-width: 480px) {
  .site-footer { flex-wrap: wrap; row-gap: 0.25rem; }
  .site-footer .social--footer { flex-basis: 100%; margin-left: calc(49px + 1.25rem - 11px); }
}

/* ---------- 14. BARRA AZIONI MOBILE ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 17, 40, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  height: var(--actionbar-h);
  color: var(--ghiaccio);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}
.action-bar a:first-child { background: var(--reale); color: var(--bianco); }
.action-bar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* ---------- 15. ENTRATA DELLA PAGINA ----------
   Un solo momento orchestrato: la marea sale (vedi .hero__sea),
   poi il biglietto di Luciano "si appoggia" sulla foto. */
.hero__note { animation: note-drop 0.8s 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes note-drop {
  from { opacity: 0; transform: translateY(-18px) rotate(-8deg); }
  to   { opacity: 1; transform: rotate(-2.5deg); }
}

/* ==========================================================
   BREAKPOINT
   ========================================================== */

/* ---- 480px: telefoni grandi ---- */
@media (min-width: 480px) {
  .reel__item { flex-basis: 62%; }
}

/* ---- 768px: tablet ---- */
@media (min-width: 768px) {
  .reel__item { flex-basis: 42%; }


  .story {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
  }

  /* menù fissi: due per riga, niente scorrimento né pallini */
  .sets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
    overflow: visible;
    margin: 0 0 2rem;
    padding: 1rem 0 0;
  }
  .sets__dots { display: none; }

  .dishes li { font-size: 1.2rem; }

  .visit__grid { grid-template-columns: 1fr 1.4fr; }

  .wave svg { height: 90px; }
}

/* ---- 1024px: desktop ---- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }

  .site-nav {
    display: flex;
    gap: 1.75rem;
  }
  .site-nav a {
    color: var(--oceano);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    background: linear-gradient(var(--cobalto), var(--cobalto)) no-repeat left bottom / 0 2px;
    transition: background-size 0.25s;
  }
  .site-nav a:hover { background-size: 100% 2px; }

  /* Hero desktop: orizzonte più alto, testi e pulsanti in basso a sinistra,
     biglietto di Luciano a destra */
  .hero {
    --stage-h: max(640px, calc(100vh - 64px));
    --horizon: 44%;
    --fade: 40px;
  }
  @supports (height: 100svh) {
    .hero { --stage-h: max(640px, calc(100svh - 64px)); }
  }
  .hero { --logo-h: 1.02em; }
  .hero__name { font-size: min(13.5vw, 14rem, calc(var(--stage-h) * 0.235)); }
  .hero__bottom {
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 3rem;
  }
  .hero__note { align-self: auto; font-size: 1.35rem; }
  .hero__actions { display: flex; }

  /* Alla carta: schede a sinistra in colonna, piatti a destra */
  .menu__carta {
    display: grid;
    grid-template-columns: 16rem 1fr;
    grid-template-areas:
      "tabs panel";
    column-gap: 4rem;
  }
  .tabs {
    grid-area: tabs;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .panel { grid-area: panel; }

  .reel__item { flex-basis: 30%; }

  /* menù fissi: tutti e quattro in linea per confrontarli */
  .sets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .set { padding: 2.1rem 0.95rem 1.25rem; }
  .set__head h3 { font-size: 1.4rem; }
  .set__price span { font-size: 2.8rem; }
  .set__courses li { font-size: 0.98rem; }

  .visit__grid { grid-template-columns: 1fr 1.6fr; column-gap: 5rem; }
  .map { aspect-ratio: 16 / 9; }
}

/* ---- 1280px: schermi ampi ---- */
@media (min-width: 1280px) {
  /* menù fissi: più respiro sugli schermi grandi */
  .sets { gap: 1.25rem; }
  .set { padding-inline: 1.15rem; }
  .set__head h3 { font-size: 1.55rem; }
  .set__price span { font-size: 3.1rem; }
  .set__courses li { font-size: 1.02rem; }

  .hero { --gutter: max(4rem, calc((100vw - 1240px) / 2)); }
  .story,
  .menu,
  .visit {
    padding-left: max(var(--gutter), calc((100vw - 1240px) / 2));
    padding-right: max(var(--gutter), calc((100vw - 1240px) / 2));
  }
  .reel__item { flex-basis: 24%; }

  .veranda__head { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2)); }
  .reel { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2)); }
}

/* ---------- ACCESSIBILITÀ: movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
  .hero__note { animation: none; }
  .hero__sea { animation: none; }
  .hero__logo { animation: none; }
  * { transition-duration: 0.01ms !important; }
}


/* ==========================================================
   PAGINA MENÙ ALLA CARTA (menu.html)
   Blocco autonomo: vale solo per la pagina con <body class="page-menu">
   o per elementi che esistono solo lì. Mobile first, come il resto.
   ========================================================== */

.page-menu main { background: var(--porcellana); }

/* voce di navigazione della pagina corrente */
.site-nav a[aria-current="page"] { background-size: 100% 2px; }

/* L'altezza dell'header la misura script.js (--header-h):
   serve alla barra categorie per fermarsi subito sotto */
html:has(.page-menu) { scroll-padding-top: calc(var(--header-h, 57px) + 88px); }

/* ---------- Apertura: foto della veranda di sera ---------- */
.mhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(80vh, 760px);
  overflow: hidden;
  color: var(--bianco);
  background: var(--notte);
}
.mhero__photo {
  position: absolute;
  inset: 0;
  display: block;
}
.mhero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* velatura: il cielo blu della foto sfuma nel blu notte della palette */
.mhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 17, 40, 0) 25%, rgba(10, 17, 40, 0.55) 55%, rgba(10, 17, 40, 0.92) 100%);
}
.mhero__content {
  position: relative;
  z-index: 1;
  padding: 7rem var(--gutter) 3rem;
  max-width: 42rem;
}
.mhero__logo {
  display: block;
  height: 84px;
  width: auto;
  margin-bottom: 1.25rem;
}
.mhero h1 {
  font-size: clamp(3.4rem, 14vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.mhero__intro {
  max-width: 36ch;
  margin: 1.25rem 0 0;
  font-size: var(--t-lead);
  color: var(--nebbia);
}

/* ---------- Barra delle categorie (resta in alto) ---------- */
.catbar {
  position: sticky;
  top: var(--header-h, 57px);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.7rem var(--gutter);
  background: rgba(247, 250, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nebbia);
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar a {
  flex: 0 0 auto;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--bianco);
  box-shadow: inset 0 0 0 1px var(--nebbia);
  color: var(--oceano);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.catbar a:hover { box-shadow: inset 0 0 0 1px var(--fiordaliso); }
.catbar a.is-active {
  background: var(--oceano);
  color: var(--bianco);
  box-shadow: none;
}

/* ---------- Il menù ---------- */
.carta {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}

.course { padding-bottom: var(--section); }

.course__head { margin-bottom: 1.75rem; }
.course__art {
  display: block;
  width: 92px;
  height: 46px;
  margin-bottom: 0.4rem;
  fill: none;
  stroke: var(--reale);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course__kicker {
  margin: 0;
  font-size: 1.3rem;
  color: var(--cobalto);
}
/* sulla pagina azzurra della sezione "Dalla terra" il cobalto è troppo chiaro da leggere */
.course--terra .course__kicker { color: #2c5cbf; }
.course h2 {
  font-size: var(--t-h2);
  color: var(--oceano);
}
.course__intro {
  max-width: 46ch;
  margin: 0.9rem 0 0;
  color: var(--oceano);
}

/* elenco piatti: niente prezzi, niente puntini.
   Nome in serif, eventuali ingredienti sotto, più piccoli */
.plates {
  display: grid;
  column-gap: 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plate {
  padding: 1rem 0;
  border-bottom: 1px solid var(--nebbia);
}
.plate h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--abisso);
}
.plate sup {
  margin-left: 0.15em;
  font-family: var(--font-body);
  font-size: 0.65em;
  color: var(--cobalto);
}
.plate p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--reale);
}
.plates--compact .plate { padding: 0.8rem 0; }
.plates--compact .plate h3 { font-size: 1.12rem; }

/* ---------- Pause fotografiche tra le portate ---------- */
.interlude {
  position: relative;
  height: clamp(280px, 70vw, 560px);
  margin: 0 calc(var(--gutter) * -1) var(--section);
  background: var(--nebbia);
}
.interlude picture { display: block; height: 100%; }
.interlude img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.interlude figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4rem var(--gutter) 1.25rem;
  font-size: 1.6rem;
  color: var(--bianco);
  background: linear-gradient(rgba(10, 17, 40, 0), rgba(10, 17, 40, 0.6));
}
/* l'ultima foto, fuori dal menù, va da bordo a bordo */
.carta + .interlude { margin: 0; }

/* ---------- Dalla terra: fascia di colore diverso ---------- */
.course--terra {
  padding-top: var(--section);
  margin-bottom: var(--section);
  background: var(--ghiaccio);
  /* la fascia arriva ai bordi dello schermo anche dentro il contenitore */
  box-shadow: 0 0 0 100vmax var(--ghiaccio);
  clip-path: inset(0 -100vmax);
}
.terra { display: grid; gap: 2.5rem; }
.terra__title {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
  color: var(--reale);
}

/* ---------- Contorni e dolci ---------- */
.end { display: grid; gap: 3.5rem; }

/* ---------- Note (asterischi e allergeni) ---------- */
.legend {
  margin-bottom: var(--section);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--fiordaliso);
  background: var(--bianco);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: var(--oceano);
}
.legend p { margin: 0.35rem 0; }
.legend sup { color: var(--cobalto); font-weight: 600; }

/* ---------- Chiusura: invito a prenotare ---------- */
.menu-cta {
  padding: var(--section) var(--gutter);
  text-align: center;
}
.menu-cta h2 {
  font-size: var(--t-h2);
  margin-bottom: 1rem;
}
.menu-cta > p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--nebbia);
}
.menu-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.menu-cta__sign {
  margin: 2.5rem 0 0;
  font-size: 1.8rem;
  color: var(--cielo);
  transform: rotate(-3deg);
}

/* ---- tablet ---- */
@media (min-width: 768px) {
  .plates { grid-template-columns: 1fr 1fr; }
  .plates--compact { grid-template-columns: 1fr; }
  .terra { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .end { grid-template-columns: 1fr 1.5fr; gap: 5rem; }
  .end .plates--compact { grid-template-columns: 1fr; }
  .end__group:last-child .plates--compact { grid-template-columns: 1fr 1fr; }

  .interlude {
    height: 460px;
    margin: 0 0 var(--section);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .interlude figcaption { padding-left: 2rem; }
  .carta + .interlude { height: 520px; border-radius: 0; }
  .catbar { justify-content: center; }
}

/* ---- desktop: apertura divisa in due, testo sul blu e foto a destra ---- */
@media (min-width: 1024px) {
  .mhero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: min(82vh, 820px);
    background: linear-gradient(135deg, var(--notte), var(--abisso));
  }
  .mhero__photo {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: 100%;
  }
  /* il bordo sinistro della foto sfuma nel blu della colonna testo */
  .mhero::after {
    background: linear-gradient(90deg, var(--notte) 50%, rgba(15, 30, 61, 0) 74%);
  }
  .mhero__content {
    grid-column: 1;
    grid-row: 1;
    padding: 4rem 0 4rem max(var(--gutter), calc((100vw - 1140px) / 2));
  }
  .mhero__logo { height: 96px; }
}

/* ---- stampa: il menù esce pulito su A4 ---- */
@media print {
  .site-header, .catbar, .interlude, .action-bar, .site-footer,
  .menu-cta, .mhero__photo, .skip-link, .course__art { display: none !important; }
  body, .page-menu main { background: #fff; padding: 0; color: #000; }
  .mhero { display: block; min-height: 0; background: none; color: #000; }
  .mhero::after { display: none; }
  .mhero__content { padding: 0 0 1rem !important; max-width: none; }
  .mhero__logo { filter: invert(1); height: 60px; }
  .mhero h1 { font-size: 2.4rem; }
  .mhero__intro { color: #000; }
  .carta { padding-top: 1rem; }
  .course { padding-bottom: 1.5rem; }
  .course--terra { box-shadow: none; background: none; padding-top: 0; margin-bottom: 1.5rem; }
  .course__head { break-after: avoid; margin-bottom: 0.5rem; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plates--compact,
  .end__group:last-child .plates--compact { grid-template-columns: 1fr !important; }
  .plate { padding: 0.3rem 0; break-inside: avoid; }
  .plate h3 { font-size: 11pt; }
  .plate p { font-size: 9pt; color: #333; }
}


/* ==========================================================
   PAGINA PRIVACY (privacy.html)
   ========================================================== */
.legal {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) var(--section);
  background: linear-gradient(var(--bianco), var(--porcellana) 30%);
}
.legal__inner { max-width: 44rem; margin: 0 auto; }
.legal__kicker { margin: 0; font-size: 1.3rem; color: var(--cobalto); }
.legal h1 {
  font-size: var(--t-h2);
  color: var(--oceano);
  margin-bottom: 1.25rem;
}
.legal__lead { font-size: var(--t-lead); color: var(--oceano); }
.legal__date { font-size: var(--t-small); color: var(--reale); margin-bottom: 2.5rem; }
.legal section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--nebbia);
  scroll-margin-top: 90px;
}
.legal h2 { font-size: 1.6rem; color: var(--oceano); margin-bottom: 0.9rem; }
.legal h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--reale);
  margin: 1.25rem 0 0.4rem;
}
.legal p { max-width: 65ch; }
.legal a:not(.btn) { color: var(--reale); text-underline-offset: 3px; }
.legal__back { margin-top: 2.5rem; }
.site-footer__link[aria-current] { text-decoration: none; color: var(--bianco); }


/* ---------- ICONE SOCIAL (header e footer) ----------
   Semplici collegamenti con icone disegnate in codice:
   nessun servizio esterno, quindi nessun banner cookie. */
.header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.social {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--oceano);
  transition: background-color 0.2s, color 0.2s;
}
.social a:hover { background: var(--ghiaccio); color: var(--reale); }
.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social .social__fill { fill: currentColor; stroke: none; }
/* header scuro di sera */
.site-header.pp-dark .social a { color: var(--bianco); }
.site-header.pp-dark .social a:hover { background: rgba(255, 255, 255, 0.12); }
/* footer: icone chiare sul blu notte, spinte a destra */
.social--footer { margin-left: auto; }
.social--footer a { color: var(--cielo); width: 44px; height: 44px; }
.social--footer a:hover { background: rgba(167, 193, 242, 0.12); color: var(--bianco); }
.social--footer svg { width: 22px; height: 22px; }
/* telefoni: icone e spazi più compatti per stare nell'header */
@media (max-width: 430px) {
  .site-header { gap: 0.5rem; }
  .header__end { gap: 0.35rem; }
  .social--header a { width: 30px; height: 30px; }
  .social--header svg { width: 18px; height: 18px; }
}

/* l'header non schiaccia mai il logo: se manca spazio si accorcia lo stato */
.brand, .brand__logo, .social--header { flex-shrink: 0; }
.header__end, .status { min-width: 0; }
.status [data-status-text] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .brand { font-size: 0.95rem; gap: 0.35rem; }
  .social--header a { width: 28px; height: 28px; }
  .social { gap: 0; }
}

/* ---------- GALLERIA SU COMPUTER: scorre di lato con frecce, trackpad e tastiera ---------- */
.reel-nav { display: none; }
@media (min-width: 1024px) {
  .reel {
    scroll-behavior: smooth;
    padding-left: max(var(--gutter), calc((100vw - 1240px) / 2));
    padding-right: max(var(--gutter), calc((100vw - 1240px) / 2));
    /* l'aggancio delle foto rispetta il margine: si parte dalla prima foto */
    scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2));
    scrollbar-width: none;
  }
  .reel::-webkit-scrollbar { display: none; }
  .reel__item { flex: 0 0 clamp(300px, 29vw, 420px); }
  .reel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.5rem max(var(--gutter), calc((100vw - 1240px) / 2)) 0;
  }
  .reel-nav[hidden] { display: none; }
  .reel-nav__btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: var(--bianco);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
  }
  .reel-nav__btn:hover:not(:disabled) { background: var(--bianco); color: var(--oceano); border-color: var(--bianco); }
  .reel-nav__btn:disabled { opacity: 0.3; cursor: default; }
  .reel-nav__btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* ---------- PIZZE E CALZONI (menu.html) ---------- */
.pizza__group + .pizza__group { margin-top: 2.75rem; }
.pizza__note {
  margin: 0 0 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--cobalto);
}

/* telefoni molto stretti: tre icone social nell'header senza tagliare lo stato */
@media (max-width: 380px) {
  .social--header a { width: 25px; height: 28px; }
  .social--header svg { width: 17px; height: 17px; }
  .header__end { gap: 0.25rem; }
  .brand span { font-size: 0.92rem; }
}

/* ==========================================================
   MENÙ DELLE FESTE (sezione temporanea, index.html #feste)
   A gennaio si può cancellare anche questo blocco di stile.
   ========================================================== */
.feste {
  position: relative;
  padding: var(--section) var(--gutter);
  /* continua il colore della sezione sopra, con qualche stellina */
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 9%, rgba(255, 255, 255, 0.8) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 92% 44%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 6% 72%, rgba(255, 255, 255, 0.7) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 55% 4%, rgba(108, 149, 232, 0.6) 0 1.4px, transparent 2px),
    var(--nebbia);
}
.feste__head { max-width: 40rem; margin-bottom: 3rem; }
.feste__kicker { margin: 0; font-size: 1.3rem; color: var(--cobalto); }
.feste__head h2 { font-size: var(--t-h2); color: var(--oceano); margin-bottom: 0.75rem; }
.feste__head p:last-child { color: var(--oceano); margin: 0; }

.feste__grid { display: grid; gap: 1.5rem; }

.festa {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.5rem 1.5rem;
  background: var(--bianco);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
}
/* doppia cornice sottile, come i cartoncini dei menù fissi */
.festa::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--nebbia);
  outline: 1px solid var(--nebbia);
  outline-offset: -5px;
  border-radius: 3px;
  pointer-events: none;
}
.festa__date { margin: 0 0 0.2rem; font-size: 1.2rem; color: var(--cobalto); }
.festa__head h2 { font-size: 1.65rem; color: var(--oceano); }
.festa__price { margin: 0.6rem 0 0; color: var(--reale); font-size: 0.95rem; }
.festa__price span {
  display: block;
  font-family: var(--font-price);
  font-size: 3rem;
  line-height: 1;
  color: var(--oceano);
}
.festa__welcome {
  align-self: center;
  margin: 1rem 0 0;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--ghiaccio);
  color: var(--oceano);
  font-size: 0.88rem;
  font-weight: 600;
}
.festa__courses { flex: 1; margin: 1.25rem 0 0; }
.festa__group { padding: 0.9rem 0 0; }
.festa__group + .festa__group::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 0.5rem;
  margin: 0 auto 0.9rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M1 5c5-5 8-5 13 0s8 5 13 0 8-5 12 0' fill='none' stroke='%236C95E8' stroke-width='2'/%3E%3C/svg%3E");
}
.festa__label {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--reale);
}
.festa ul { margin: 0; padding: 0; list-style: none; }
.festa__group li { padding: 0.15rem 0; font-size: 0.98rem; line-height: 1.4; }
.festa__included {
  margin: 1.5rem 0 1.25rem !important;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--reale);
}
.festa .set__cta { position: relative; }

/* Capodanno: stesso cartoncino bianco degli altri; la classe resta solo per la posizione
   (sul tablet sta da solo al centro, sotto gli altri due) */

@media (min-width: 768px) {
  .feste__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .festa--night { grid-column: 1 / -1; max-width: 34rem; justify-self: center; width: 100%; }
}
@media (min-width: 1024px) {
  .feste__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .festa--night { grid-column: auto; max-width: none; }
  .festa { padding-inline: 1.15rem; }
}
@media (min-width: 1280px) {
  .feste { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1240px) / 2)); }
}

/* ---------- AVVISO FESTE NELLA HOME (temporaneo) ---------- */
.feste-teaser {
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) 0;
  background: var(--porcellana);
}
.feste-teaser__inner {
  display: grid;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  color: var(--bianco);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.85) 0 1.4px, transparent 2px),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.7) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 97% 92%, rgba(167, 193, 242, 0.8) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
    linear-gradient(135deg, var(--oceano), var(--notte));
}
.feste-teaser__kicker { margin: 0; font-size: 1.25rem; color: var(--cielo); }
.feste-teaser h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); }
.feste-teaser__list { margin: 0; padding: 0; list-style: none; }
.feste-teaser__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(167, 193, 242, 0.22);
}
.feste-teaser__date { grid-column: 1 / -1; font-size: 1.05rem; color: var(--cielo); line-height: 1.2; }
.feste-teaser__name { font-weight: 600; }
.feste-teaser__price { font-family: var(--font-price); font-size: 1.35rem; }
.feste-teaser__cta { justify-self: start; }

@media (min-width: 1024px) {
  .feste-teaser__inner {
    grid-template-columns: 1fr 1.6fr auto;
    align-items: center;
    gap: 3rem;
    padding: 2.25rem 2.75rem;
  }
  .feste-teaser__list li { padding: 0.45rem 0; }
  .feste-teaser__cta { justify-self: end; }
}

/* ---------- PAGINA FESTE (feste.html) ---------- */
.page-feste .feste { padding-top: clamp(3rem, 8vw, 5.5rem); }
.feste__head h1 { font-size: var(--t-h2); color: var(--oceano); margin-bottom: 0.75rem; }
.feste__back { margin: 2.5rem 0 0; text-align: center; }
.feste__back .text-link { color: var(--reale); font-weight: 600; }

/* stelline di Natale e fiocco di neve nella fascia delle feste */
.feste-teaser__inner { position: relative; overflow: hidden; isolation: isolate; }
.feste-teaser__inner > :not(.feste-teaser__sky) { position: relative; z-index: 1; }
.feste-teaser__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fs { position: absolute; display: block; animation: twinkle 3.6s ease-in-out infinite; }
.fs svg { display: block; width: 100%; height: 100%; fill: var(--bianco); }
.fs--1 { width: 18px; height: 18px; top: 14px; right: 18px; }
.fs--2 { width: 10px; height: 10px; top: 46px; right: 52px; animation-delay: 1.1s; }
.fs--2 svg, .fs--4 svg { fill: var(--cielo); }
.fs--3 { width: 12px; height: 12px; bottom: 18px; right: 26px; animation-delay: 2s; }
.fs--4 { width: 9px; height: 9px; bottom: 26px; left: 20px; animation-delay: 0.6s; }
.fs--5 { width: 14px; height: 14px; top: 16px; left: 46%; animation-delay: 2.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
.feste-teaser__flake {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.4em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* sul telefono la stellina centrale va in basso, lontano dal titolo */
@media (max-width: 1023px) {
  .fs--5 { top: auto; left: auto; bottom: 64px; right: 14px; }
  .fs--2 { top: 52px; right: 16px; }
  .fs--4 { bottom: 10px; left: auto; right: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs { animation: none; opacity: 0.7; }
}

/* ---------- FOOTER SU TELEFONO: più basso e con scritte più piccole ---------- */
@media (max-width: 480px) {
  .site-footer { gap: 1rem; row-gap: 0.15rem; padding: 1.25rem var(--gutter) 1rem; font-size: 0.78rem; }
  .site-footer__logo { height: 50px; }
  .site-footer__text { gap: 0.1rem; line-height: 1.4; }
  .site-footer__legal { font-size: 0.68rem; line-height: 1.4; }
  /* P. IVA e REA sulla stessa riga */
  .site-footer__legal span:nth-child(3),
  .site-footer__legal span:nth-child(4) { display: inline; }
  .site-footer__legal span:nth-child(4)::before { content: "·"; margin: 0 0.4em; opacity: 0.7; }
  .site-footer__link { font-size: 0.75rem; }
  .site-footer .social--footer { margin-left: calc(34px + 1rem - 8px); }
  .social--footer a { width: 34px; height: 34px; }
  .social--footer svg { width: 18px; height: 18px; }
}

/* sottotitolo dei cartoncini delle feste ("Menù di pesce", "2026 - 2027") */
.festa__sub { margin: 0.2rem 0 0; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--reale); }

/* ---------- LOCANDINE DELLE FESTE: pulsante e finestra a tutto schermo ---------- */
.festa__poster {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: var(--reale);
  font: 600 0.92rem var(--font-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.festa__poster svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }
.festa__poster:hover { color: var(--oceano); }

.poster {
  width: min(560px, 94vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--notte);
  color: var(--bianco);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.poster::backdrop { background: rgba(10, 17, 40, 0.82); backdrop-filter: blur(4px); }
.poster[open] { display: flex; flex-direction: column; }
.poster__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
}
.poster__title { flex: 1; margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.poster__download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--bianco);
  color: var(--oceano);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.poster__download:hover { background: var(--ghiaccio); }
.poster__download svg, .poster__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.poster__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bianco);
  cursor: pointer;
}
.poster__close:hover { background: rgba(255, 255, 255, 0.22); }
.poster__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 60px);
  object-fit: contain;
  background: #000;
}
