/* ==========================================================================
   MOLTO — Club & Restaurant
   Palette (Brand Guidelines): notte #1C1C1C · carta #F1ECE1 · arancio #E97849
   ========================================================================== */

@font-face {
  font-family: "Jedira";
  src: url("../assets/fonts/Jedira-Regular.woff2") format("woff2"),
       url("../assets/fonts/jedira-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Font Google ospitati in locale (subset latin, licenza OFL in assets/fonts/licenses):
   nessuna richiesta ai server di Google, quindi nessun IP dei visitatori trasmesso a terzi. */
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Italiana";
  src: url("../assets/fonts/italiana-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/spacemono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/spacemono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1C1C1C;
  --night-soft: #242220;
  --paper: #F1ECE1;
  --orange: #E97849;
  --orange-deep: #A84A22; /* testo arancio su carta: 4,86:1 (AA). Il vecchio #C4572A arrivava a 3,76:1 */
  --cream-dim: rgba(241, 236, 225, 0.68);
  --ink-dim: rgba(28, 28, 28, 0.70);
  /* Varianti ad alto contrasto per i testi della carta, che si leggono
     in corpo piccolo e con poca luce in sala. */
  --cream-body: rgba(241, 236, 225, 0.92);
  --ink-body: rgba(28, 28, 28, 0.88);
  --hairline-light: rgba(241, 236, 225, 0.14);
  --hairline-dark: rgba(28, 28, 28, 0.16);

  --font-display: "Jedira", Georgia, serif;
  --font-caps: "Italiana", serif;
  --font-body: "Figtree", -apple-system, sans-serif;
  --font-mono: "Space Mono", monospace;

  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* height:auto è obbligatorio insieme agli attributi width/height sull'<img>:
   senza, il browser userebbe l'altezza dichiarata e deformerebbe l'immagine.
   Le regole che impostano un'altezza esplicita (es. .soul-bg) restano valide. */
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--orange); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Tipografia ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.display-dark { color: var(--night); }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.9em 1.9em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--orange);
  color: var(--night);
}

.btn-solid:hover { background: var(--orange-deep); color: var(--paper); }

.btn-ghost {
  border-color: var(--hairline-light);
  color: var(--paper);
}

.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark {
  background: var(--night);
  color: var(--paper);
}

.btn-dark:hover { background: var(--orange-deep); }

.btn-paper {
  background: var(--paper);
  color: var(--night);
}

.btn-paper:hover { background: var(--night); color: var(--paper); }

.btn-small { padding: 0.65em 1.4em; font-size: 0.8125rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.9rem var(--pad-x);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--night) 92%, transparent);
  border-bottom-color: var(--hairline-light);
}

.brand-logo { height: 44px; width: auto; }

.site-nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 0.2em;
  /* Con sette voci lo spazio si stringe: senza questo "La nuova era"
     va a capo e fa crescere in altezza tutto l'header. */
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a::after {
  /* la “O” allungata come sottolineatura */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  translate: -50% 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { width: 1.4em; }

.site-nav a.is-current { color: var(--orange); }
.site-nav a.is-current::after { width: 1.4em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7.5rem var(--pad-x) 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 54% at 50% 46%, rgba(28, 28, 28, 0.8), transparent 80%),
    linear-gradient(to bottom, rgba(28, 28, 28, 0.8), rgba(28, 28, 28, 0.52) 42%, rgba(28, 28, 28, 0.87) 82%, var(--night) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 78% 12%, rgba(233, 120, 73, 0.16), transparent 70%),
    radial-gradient(30% 26% at 12% 82%, rgba(196, 130, 40, 0.12), transparent 70%);
}

.hero > * { position: relative; z-index: 2; }

.hero > .hero-media { position: absolute; z-index: 0; }
.hero > .hero-glow { position: absolute; z-index: 1; }

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(112%);
}

.hero-logo {
  width: clamp(200px, 26vw, 330px);
  margin-bottom: 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-sub {
  color: var(--cream-dim);
  max-width: 34rem;
  margin-bottom: 2.75rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Pulsante di chiusura dei lightbox (Festeggia) ---------- */

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 4vw, 3rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover { border-color: var(--orange); transform: rotate(90deg); }

/* ---------- Page hero (pagine secondarie, es. Festeggia) ---------- */

.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 9rem var(--pad-x) 4.5rem;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 40%, rgba(28, 28, 28, 0.74), transparent 78%),
    linear-gradient(to bottom, rgba(28, 28, 28, 0.82), rgba(28, 28, 28, 0.5) 46%, var(--night) 100%);
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero > .page-hero-media { position: absolute; z-index: 0; }

.page-eyebrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s ease;
}

.page-eyebrow-link:hover { color: var(--orange); }

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.page-hero-sub {
  color: var(--cream-dim);
  max-width: 34rem;
}

/* Variante senza foto per le pagine di servizio (es. Privacy). */
.page-hero-compact {
  min-height: 0;
  padding-bottom: 3.5rem;
}

/* La 404 ha solo l'apertura: occupa lo schermo, così il footer non sale a metà. */
.page-hero-404 { min-height: 78svh; }

.page-hero-404 .hero-cta { margin-top: 2.25rem; }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--orange);
  color: var(--night);
  overflow: hidden;
  padding: 0.8rem 0;
  border-block: 1px solid var(--night);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-caps);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.section { padding: clamp(5rem, 10vw, 8.5rem) var(--pad-x); }

.section-dark { background: var(--night); color: var(--paper); }

.section-cream { background: var(--paper); color: var(--night); }

.section-cream p { color: var(--ink-dim); }

.container { max-width: 72rem; margin-inline: auto; }

.container.narrow { max-width: 50rem; }

.center { text-align: center; }

.section-intro { max-width: 44rem; margin-bottom: 3rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  color: var(--cream-dim);
  max-width: 62rem;
}

.two-col strong { color: var(--paper); font-weight: 500; }

.wide-photo {
  margin-top: 3.5rem;
  border-radius: 14px;
  overflow: hidden;
}

.wide-photo img { width: 100%; }

/* ---------- Due anime (signature) ---------- */

.souls {
  display: flex;
  min-height: 78vh;
}

.soul {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.soul:hover, .soul:focus-within { flex: 1.7; }

.soul-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.soul:hover .soul-bg { filter: brightness(0.62) saturate(1); transform: scale(1.03); }

.soul-restaurant .soul-bg { filter: brightness(0.55) saturate(0.85); }

.soul-inner {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(to top, rgba(28, 28, 28, 0.92), rgba(28, 28, 28, 0.35) 65%, transparent);
  width: 100%;
  padding-top: 7rem;
}

.soul-label {
  font-family: var(--font-caps);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.soul-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.16;
  margin-bottom: 1rem;
}

.soul-text {
  color: var(--cream-dim);
  max-width: 30rem;
  font-size: 0.98rem;
}

.soul-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-decoration: none;
}

.soul-link span { transition: transform 0.25s ease; }

.soul-link:hover { color: var(--orange); }

.soul-link:hover span { transform: translateX(3px); }

/* ---------- Vision ---------- */

.vision-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.45;
  color: var(--night);
  text-wrap: balance;
}

/* ---------- Servizi ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-light);
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 3rem;
}

.service {
  background: var(--night);
  padding: 2.25rem 2rem;
  transition: background 0.3s ease;
}

.service:hover { background: var(--night-soft); }

.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.service p { color: var(--cream-dim); font-size: 0.95rem; }

/* Banner sotto la griglia servizi: rimanda alla pagina laurea */
.laurea-banner {
  margin-top: 1.75rem;
  background: var(--orange);
  border-radius: 14px;
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.laurea-banner p {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.375rem;
  color: var(--night);
  margin: 0;
}

@media (max-width: 640px) {
  .laurea-banner { justify-content: center; text-align: center; padding: 1.5rem; }
}

/* ---------- Eventi ---------- */

.events-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.events-copy p { color: var(--cream-dim); max-width: 32rem; }

.events-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }

.events-photo {
  border-radius: 14px;
  overflow: hidden;
}

.events-photo img { width: 100%; }

/* ---------- Prossime serate (home, sezione Eventi) ----------
   Le card vengono create da js/eventi.js con i dati di eventi.json. Ogni card è
   larga quanto la sua locandina alla stessa altezza (--poster-h × --ratio), così
   formati diversi (9:16, 4:5, 1:1) restano interi, senza ritagli sulle scritte. */

.events-next {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline-light);
}

.event-cards {
  --poster-h: clamp(300px, 34vw, 420px);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem 1.75rem;
}

.event-card {
  width: calc(var(--poster-h) * var(--ratio, 0.8));
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.event-poster {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 0.8);
  padding: 0;
  border: 1px solid var(--hairline-light);
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
  cursor: zoom-in;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.event-poster:hover img { transform: scale(1.03); }

.event-poster--empty {
  display: grid;
  place-content: center;
  gap: 0.25rem;
  text-align: center;
  cursor: default;
}

.event-day {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
}

.event-month {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.event-tag {
  padding: 0.12rem 0.6rem;
  border-radius: 100px;
  background: var(--orange);
  color: var(--night);
  font-size: 0.6875rem;
}

.event-title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
}

.event-book {
  align-self: flex-start;
  font-size: 0.875rem;
  color: var(--cream-dim);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.2s ease;
}

.event-book:hover { color: var(--paper); }

.event-meta { flex-wrap: wrap; row-gap: 0.35rem; }
.event-date { white-space: nowrap; }

/* Su telefono e tablet le card scorrono di lato (una fila sola), uscendo fino ai
   bordi dello schermo: la card tagliata a destra fa capire che c'è altro. */
@media (max-width: 900px) {
  .event-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 0.5rem;
    scroll-padding-inline: var(--pad-x);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .event-cards::-webkit-scrollbar { display: none; }

  .event-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ---------- Festeggia / Menu ---------- */

.menus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-card {
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  background: transparent;
}

.menu-card-featured {
  background: var(--night);
  color: var(--paper);
  border-color: var(--night);
}

.menu-card-featured p, .menu-card-featured li { color: var(--cream-body); }

.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--hairline-dark);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.menu-card-featured .menu-head { border-color: var(--hairline-light); }

.menu-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.55rem;
}

.menu-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange-deep);
  line-height: 1;
}

.menu-card-featured .menu-price { color: var(--orange); }

.menu-price span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  margin-left: 0.4em;
}

.menu-note { font-size: 0.95rem; margin-bottom: 1rem; }

.menu-card ul { list-style: none; }

.menu-card li {
  padding: 0.7rem 0;
  font-size: 0.98rem;
  color: var(--ink-body);
  border-bottom: 1px solid var(--hairline-dark);
}

.menu-card li:last-child { border-bottom: none; }

.menu-card-featured li { border-color: var(--hairline-light); }

.menu-card-featured li,
.section-cream .menu-card-featured p { color: var(--cream-body); }

/* ==========================================================================
   CARTA (Food / Drink)
   Regola di leggibilità: Jedira è un display face, resta ai titoli grandi.
   Nomi, prezzi e note della carta usano Figtree con peso alto e contrasto
   pieno, perché sono dati che si leggono in corpo piccolo e in penombra.
   ========================================================================== */

.section-tight { padding-block: clamp(3.25rem, 6vw, 5rem); }

/* ---------- Intestazioni di reparto ---------- */

/* Sono gli <h2> delle carte (piatti e drink sono <h3>): peso 400 esplicito,
   altrimenti il browser ispessisce Italiana, che ha un solo peso. */
.menu-rule {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: inherit;
  padding-bottom: 0.9rem;
  margin-bottom: 1.9rem;
  border-bottom: 1px solid var(--hairline-dark);
}

.section-dark .menu-rule { border-color: var(--hairline-light); }

/* Reparti successivi nella stessa sezione: stacco senza ripartire da capo. */
.menu-rule-next { margin-top: 3.25rem; }

.menu-rule-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-body);
  margin-top: 0.5rem;
}

.section-dark .menu-rule-note { color: var(--cream-body); }

p.menu-foot {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ink-body);
  margin-top: 2rem;
}

.section-dark .menu-foot { color: var(--cream-body); }

/* ---------- Piatti e vini ---------- */

.dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.75rem, 4vw, 3.25rem);
}

.dish-grid-wide { grid-template-columns: repeat(3, 1fr); }

.dish {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.section-dark .dish { border-color: var(--hairline-light); }

.dish-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
}

.dish-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* La riga puntinata lega il nome al prezzo, come su una carta stampata. */
.dish-lead {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--hairline-dark);
  transform: translateY(-0.25em);
}

.section-dark .dish-lead { border-color: var(--hairline-light); }

p.dish-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--orange-deep);
  white-space: nowrap;
}

.section-dark .dish-price { color: var(--orange); }

p.dish-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 34rem;
  color: var(--ink-body);
}

.section-dark .dish-desc { color: var(--cream-body); }

p.dish-pour {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.35rem;
  color: var(--orange-deep);
}

.section-dark .dish-pour { color: var(--orange); }

.dish-pour em {
  font-weight: 400;
  font-style: normal;
  color: var(--ink-body);
  padding-inline: 0.15em;
}

.section-dark .dish-pour em { color: var(--cream-body); }

/* ---------- Cocktail ---------- */

.drink-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.drink-grid-3 { grid-template-columns: repeat(3, 1fr); }

.drink {
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.section-dark .drink { border-color: var(--hairline-light); }

.drink-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline-dark);
}

.section-dark .drink-head { border-color: var(--hairline-light); }

.drink-name {
  font-family: var(--font-caps);
  font-size: 1.3rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.15;
}

p.drink-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--orange-deep);
  line-height: 1;
}

.section-dark .drink-price { color: var(--orange); }

.drink ul { list-style: none; }

.drink li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.28rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.drink li span:first-child { flex: 1; }

.ing-note {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-body);
}

.section-dark .ing-note { color: var(--cream-body); }

.drink-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-body);
  white-space: nowrap;
}

.section-dark .drink-tag { color: var(--cream-body); }

/* Pallini d'intensità: i pieni in arancio, gli spenti tenuti visibili
   perché è il loro numero a dare la scala. */
.dots {
  margin-left: 0.45em;
  letter-spacing: 0.1em;
  color: var(--orange-deep);
}

.section-dark .dots { color: var(--orange); }

.dots i {
  font-style: normal;
  opacity: 0.34;
}

p.drink-story {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline-dark);
  color: var(--ink-body);
}

.section-dark .drink-story {
  border-color: var(--hairline-light);
  color: var(--cream-body);
}

.drink-signature {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--orange-deep);
  margin-bottom: 0.35rem;
}

.section-dark .drink-signature { color: var(--orange); }

/* ---------- Listino essenziale (birre, amari) ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.price-grid-pair { grid-template-columns: repeat(2, 1fr); max-width: 26rem; margin-inline: auto; }

.price-item {
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  padding: 1rem 0.6rem;
  text-align: center;
}

.section-dark .price-item { border-color: var(--hairline-light); }

.price-item dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.price-item dd {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--orange-deep);
}

.section-dark .price-item dd { color: var(--orange); }

/* ---------- Gallery ---------- */

/* Due righe che scorrono in direzioni opposte: sopra la sala, sotto il club. */
.gallery {
  display: grid;
  grid-template-columns: 100%; /* colonna = schermo, non la riga più lunga */
  gap: 0.5rem;
  background: var(--night);
  padding: 0.5rem 0;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding-inline: 0.5rem;
  will-change: transform;
}

/* Se si cambia questa altezza, ricalcolare i `sizes` delle img della galleria. */
.gallery figure { height: clamp(200px, 28vw, 380px); }

/* Su schermi più larghi di una riga (oltre ~2000px) la riga si centra; quando
   è più larga dello schermo i margini auto valgono 0 e lo scrub resta corretto. */
.gallery .gallery-track { margin-inline: auto; }

.gallery img {
  height: 100%;
  width: auto;
  border-radius: 10px;
}

/* ---------- Masonry gallery (pagina Festeggia) ---------- */

.masonry {
  columns: 3 260px;
  column-gap: 0.85rem;
  margin-top: 3rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.masonry-item:hover img,
.masonry-item:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

/* ---------- Lightbox foto ---------- */

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(12, 11, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.photo-lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  background: rgba(28, 28, 28, 0.5);
  color: var(--paper);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.photo-lightbox-nav:hover { border-color: var(--orange); }

.photo-lightbox-prev { left: clamp(0.75rem, 3vw, 2rem); }
.photo-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }

.photo-lightbox-next { right: clamp(0.75rem, 3vw, 2rem); }
.photo-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.photo-lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 4vw, 2rem);
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
}

/* ---------- Staff ---------- */

.staff {
  background: var(--night);
  overflow: hidden;
}

.staff-inner {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  padding: 4.5rem var(--pad-x);
}

.staff-head {
  flex: 0 0 auto;
  max-width: none;
}

.staff-head .display { margin-bottom: 0.75rem; }

.staff-sub { color: var(--cream-dim); font-size: 0.98rem; }

.staff-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.staff-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.staff-card { flex: 0 0 auto; width: 58vw; scroll-snap-align: start; }

/* Su desktop: testo a fianco delle card. */
@media (min-width: 901px) {
  .staff-inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    padding: 4.5rem var(--pad-x);
  }

  .staff-head { max-width: 320px; flex: 0 0 auto; }

  .staff-viewport {
    flex: 1 1 auto;
    min-width: 0;
  }

  .staff-card { width: clamp(170px, 20vw, 230px); }
}

/* Effetto "sezione ferma mentre scorrono le foto", versione robusta.
   Il blocco verticale lo fa position: sticky (CSS puro, gestito dal browser:
   non può saltare né duplicarsi); GSAP trasla solo la track in orizzontale
   con uno scrub SENZA pin. Il vecchio pin ScrollTrigger spostava lo scroll
   via JS e coi tempi di caricamento dell'hosting reale teletrasportava la
   pagina: non va reintrodotto. La corsa disponibile (--staff-scroll) viene
   impostata dal JS in base alla larghezza reale della track. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .js-anim .staff {
    /* overflow:hidden creerebbe uno scroll container e disattiverebbe lo
       sticky del figlio; il clipping orizzontale lo fa già la viewport. */
    overflow: visible;
    height: calc(100vh + var(--staff-scroll, 2600px));
  }

  .js-anim .staff-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    padding-block: 0;
  }

  /* Quando è il JS a muovere la track, lo scroll-snap del contenitore va
     spento: uno snap "mandatory" su figli traslati via transform li
     ri-aggancia e congela visivamente il movimento (Safari in particolare). */
  .js-anim .staff-viewport { overflow: hidden; scroll-snap-type: none; }
  .js-anim .staff-card { scroll-snap-align: none; }
}

.staff-photo {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--night-soft);
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.staff-card:hover .staff-photo img,
.staff-card:focus-within .staff-photo img {
  filter: grayscale(0);
  transform: scale(1.045);
}

.staff-name {
  font-family: var(--font-caps);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-top: 1rem;
}

.staff-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.3rem;
}

/* ---------- App ---------- */

.section-app {
  border-top: 1px solid var(--hairline-light);
}

.section-app p { color: var(--cream-dim); }

.section-app strong { color: var(--paper); font-weight: 500; }

.store-chips {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.7em 1.6em;
  border: 1px solid var(--hairline-light);
  border-radius: 100px;
  color: var(--cream-dim);
}

a.chip {
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

a.chip:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- FAQ ---------- */

/* Accordion su <details>/<summary>: accessibile da tastiera e funzionante
   anche senza JS, quindi non serve alcuno script dedicato. */
.faq { border-top: 1px solid var(--hairline-light); }

.faq-item {
  border-bottom: 1px solid var(--hairline-light);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--orange); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* Il segno + ruota in × all'apertura. */
.faq-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.35em;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--orange);
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item[open] .faq-icon { transform: rotate(135deg); }

.faq-answer {
  padding-bottom: 1.5rem;
  max-width: 46rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--cream-body);
}

.faq-answer p + p { margin-top: 0.8rem; }

.faq-answer a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 120, 73, 0.4);
}

.faq-answer a:hover { border-bottom-color: var(--orange); }

.faq-foot {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- Contatti ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.contact h3 {
  font-family: var(--font-caps);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.75rem;
}

.contact p { font-size: 0.98rem; }

.contact a {
  color: var(--night);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-dark);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact a:hover { color: var(--orange-deep); border-color: var(--orange-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  text-align: center;
  padding: 4rem var(--pad-x) 0; /* lo spazio in basso lo dà il sotto-footer */
  border-top: 1px solid var(--hairline-light);
}

.footer-logo {
  width: 110px;
  margin: 0 auto 1.75rem;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(241, 236, 225, 0.6); /* 6:1 sul fondo notte; a 0.45 era 3,97:1 */
  letter-spacing: 0.03em;
}

.site-footer p.footer-legal { margin-top: 0.9rem; }

.footer-legal a {
  color: var(--cream-dim);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--orange); }

/* Sotto-footer: credito dell'agenzia in una riga di testo, separata dai dati
   del locale da un filo a tutta larghezza (margini negativi pari al padding). */
.sub-footer {
  margin: 2.75rem calc(-1 * var(--pad-x)) 0;
  padding: 1.5rem var(--pad-x) 1.75rem;
  border-top: 1px solid var(--hairline-light);
}

/* `.site-footer .powered-by` batte `.site-footer p` (Space Mono, opacità 0.6). */
.site-footer .powered-by {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream-dim);
}

.powered-by a {
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
}

.powered-by a:hover {
  color: var(--orange);
  text-underline-offset: 0.18em;
}

/* ---------- Pagina legale (Privacy) ---------- */

/* Testo lungo da leggere: Figtree ad alto contrasto, niente font display
   nei titoletti. `.section-cream .legal p` supera `.section-cream p`. */
.legal { max-width: 46rem; margin-inline: auto; }

.legal h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--night);
  margin: 2.75rem 0 0.75rem;
}

.legal h2:first-child { margin-top: 0; }

.section-cream .legal p,
.legal li {
  color: var(--ink-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}

.legal p + p { margin-top: 0.85rem; }

.legal ul { padding-left: 1.25rem; margin: 0.75rem 0; }

.legal li + li { margin-top: 0.45rem; }

.legal strong { font-weight: 600; }

.legal a {
  color: var(--night);
  font-weight: 500;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.legal a:hover { color: var(--orange-deep); }

.section-cream .legal p.legal-updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.875rem;
  color: var(--ink-dim);
}

/* ---------- Reveal on scroll (gestito da GSAP) ---------- */

/* I .reveal partono VISIBILI. Vengono nascosti solo quando lo script in <head>
   conferma che GSAP è caricato e che le animazioni gireranno davvero: così un
   CDN irraggiungibile o un trigger sbagliato non può più far sparire contenuti. */
.js-anim .reveal { opacity: 0; }

/* ---------- Responsive ---------- */

/* Fascia intermedia: sette voci di nav più la CTA stanno solo stringendo
   spaziature e corpo, altrimenti l'header sfora prima del menu mobile. */
@media (min-width: 901px) and (max-width: 1150px) {
  .site-header { gap: 1.25rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.82rem; }
}

/* Il listino a sei colonne e i cocktail a tre stanno solo su schermi larghi. */
@media (max-width: 1200px) {
  .drink-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .dish-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }

  .site-nav.open {
    display: flex;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--night);
    border-bottom: 1px solid var(--hairline-light);
    padding: 1rem var(--pad-x) 1.5rem;
  }

  .site-nav.open a { padding: 0.8rem 0; font-size: 1.05rem; }

  .nav-toggle { display: flex; }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .site-header .btn { margin-left: auto; }
  .site-header { gap: 1rem; }

  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }

  .souls { flex-direction: column; min-height: 0; }
  .soul { min-height: 62vh; }
  .soul:hover, .soul:focus-within { flex: 1; }

  .services-grid { grid-template-columns: 1fr; }

  .events-layout { grid-template-columns: 1fr; }

  .menus { grid-template-columns: 1fr; }

  .dish-grid, .dish-grid-wide,
  .drink-grid, .drink-grid-3 { grid-template-columns: 1fr; }

  /* Su schermi stretti i nomi vanno a capo e il punteggiato comparirebbe
     solo sulle voci brevi: meglio togliergli il compito e tenere il prezzo a destra. */
  .dish-lead { display: none; }
  .dish-head { justify-content: space-between; }

  .price-grid { grid-template-columns: repeat(3, 1fr); }

  .contacts-grid { grid-template-columns: 1fr 1fr; }

  .masonry { columns: 2 200px; }

  .photo-lightbox-nav { width: 40px; height: 40px; font-size: 1.05rem; }
}

@media (max-width: 540px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 36px; }
  .hero { padding-top: 6.5rem; }
  .page-hero { padding-top: 7.5rem; }
  .masonry { columns: 2 150px; column-gap: 0.6rem; }
  .masonry-item { margin-bottom: 0.6rem; }
  /* Nome + prezzo stanno in mezza riga anche su schermi piccoli. */
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .drink { padding: 1.25rem 1.1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal, .js-anim .reveal { opacity: 1; }
  .hero-title .line-inner { transform: none; }
  .soul, .soul-bg, .btn, .masonry-item img, .event-poster img { transition: none; }
}
