/* =========================================================
   MYT — un tempio greco acceso al neon
   Marmo notturno con le scanalature delle colonne, il meandro
   greco disegnato come un tubo al neon, un colore per ogni menù.
   Colori e font sono in css/tokens.css (condiviso con l'admin).
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sticky-h); background: var(--ground); }
html.text-lg { font-size: 118.75%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  caret-color: var(--neon);
  scrollbar-color: var(--ground-3) var(--ground);
  transition: --neon 0.7s var(--ease), --neon-2 0.7s var(--ease);
}
::selection { background: var(--neon); color: var(--ground); }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--neon); color: var(--ground); padding: 10px 14px; border-radius: 2px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

/* Titoli come un'iscrizione: maiuscolo leggero e spaziato, acceso al neon */
.display { font-family: var(--font); font-weight: 400; text-transform: uppercase; letter-spacing: 0.22em; }

/* ---------- Il meandro greco come tubo al neon ----------
   Il disegno è una maschera, il colore è quello del menù; il bagliore
   sta sul contenitore perché il filtro venga applicato dopo la maschera. */
.meander { display: block; height: 14px; filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 9px color-mix(in srgb, var(--neon) 55%, transparent)); }
.meander::before {
  content: ""; display: block; height: 100%; background: var(--neon-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='square'%3E%3Cpath d='M0 13H24M3 13V1H17V9H9V5H13'/%3E%3C/svg%3E") round left center / 24px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='square'%3E%3Cpath d='M0 13H24M3 13V1H17V9H9V5H13'/%3E%3C/svg%3E") round left center / 24px 14px;
}

/* Etichetta sulle foto di esempio */
.sample {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  padding: 2px 7px; border-radius: 2px; background: rgba(7, 7, 13, 0.7);
  font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-2);
}

/* Cornice al neon (copertine, avvisi) */
.framed { position: relative; border: 1px solid var(--neon-dim); box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 18%, transparent), 0 0 22px -6px color-mix(in srgb, var(--neon) 55%, transparent); }

/* ---------- Testata: marmo scanalato e alone del neon ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: calc(env(safe-area-inset-top) + 10px) 0 22px;
  background:
    radial-gradient(ellipse 46% 38% at 50% 40%, color-mix(in srgb, var(--neon) 26%, transparent) 0%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #0D0D16 0%, var(--ground) 100%);
}
.topbar, .hero-content { width: 100%; max-width: 720px; margin: 0 auto; padding-inline: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-buttons { display: flex; gap: 2px; }
.lang-btn {
  min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 2px; background: transparent;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-2);
  transition: color 0.2s, box-shadow 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { color: var(--neon-ink); box-shadow: inset 0 -1px 0 var(--neon), 0 6px 10px -8px var(--neon); text-shadow: var(--glow); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 2px; border: 1px solid var(--neon-dim);
  background: transparent; color: var(--neon-ink); display: grid; place-items: center;
}
.icon-btn[aria-pressed="true"] { background: var(--neon); color: var(--ground); border-color: var(--neon); }
.aa { font-size: 0.75rem; font-weight: 500; }
.aa span { font-size: 1rem; }

.hero-content { padding-top: 20px; }
.venue-name { margin: 0; }
.logo { position: relative; display: block; width: clamp(200px, 64vw, 280px); margin: 0 auto; }
.logo img { width: 100%; height: auto; }
/* una lama di luce passa sull'oro del logo, una volta */
.logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../brand/myt-logo.webp") center / 100% 100% no-repeat; mask: url("../brand/myt-logo.webp") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 45%, rgba(255, 244, 214, 0.6) 50%, transparent 55%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  mix-blend-mode: screen;
  animation: sheen 2.4s 0.5s var(--ease) both;
}
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.greeting { margin: 16px 0 0; font-size: 1.0625rem; font-weight: 400; letter-spacing: 0.08em; color: var(--neon-ink); text-shadow: var(--glow); }
.tagline { margin: 6px 0 0; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); }
.hero-close { width: min(320px, 80%); margin: 20px auto 0; }

/* Versione con foto: la foto sotto un velo di marmo notturno */
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.85); }
.with-photos .hero { min-height: 380px; display: flex; flex-direction: column; }
.with-photos .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 48% 42% at 50% 50%, rgba(7, 7, 13, 0.8) 0%, rgba(7, 7, 13, 0.4) 60%, transparent 100%),
    radial-gradient(ellipse 46% 38% at 50% 42%, color-mix(in srgb, var(--neon) 22%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, rgba(7, 7, 13, 0.75) 0%, rgba(7, 7, 13, 0.55) 40%, rgba(7, 7, 13, 0.92) 82%, var(--ground) 100%);
}
.with-photos .hero-content { margin-top: auto; }
.with-photos .hero .sample { top: calc(env(safe-area-inset-top) + 60px); bottom: auto; right: max(8px, calc((100% - 720px) / 2 + 16px)); }

/* ---------- Barra fissa ---------- */
.sticky { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sticky.is-stuck { box-shadow: 0 1px 0 var(--neon-dim), 0 12px 24px -18px rgba(0, 0, 0, 0.95); }
.tabs-wrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tabs, .chips, .toolbar { max-width: 720px; margin-inline: auto; }
.tabs, .chips { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent); }
.tabs { gap: 24px; padding: 0 16px; }
/* centrate quando c'è spazio, scorrevoli quando non basta */
.tabs > :first-child, .chips > :first-child { margin-left: auto; }
.tabs > :last-child, .chips > :last-child { margin-right: auto; }
.tab {
  flex: none; display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color 0.25s, box-shadow 0.3s var(--ease), text-shadow 0.3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--neon-ink); text-shadow: var(--glow); box-shadow: inset 0 -2px 0 var(--neon), 0 10px 14px -12px var(--neon); }

.toolbar { display: flex; gap: 8px; padding: 12px 16px 10px; }
.search { position: relative; flex: 1; min-width: 0; }
.search-icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 40px 0 38px; border-radius: 2px;
  border: 1px solid var(--rule); background: var(--ground-2); font-size: 1rem; font-weight: 400;
  -webkit-appearance: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 14px -6px var(--neon); }
.search-clear {
  position: absolute; right: 2px; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 2px;
  border: 1px solid var(--rule); background: var(--ground-2);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; flex: none;
}
.filter-btn svg { color: var(--neon-ink); }
.filter-btn.is-active { border-color: var(--neon); box-shadow: 0 0 14px -6px var(--neon); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 2px; background: var(--neon); color: var(--ground);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}

.chips { gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 40px;
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--ink); }
.chip[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--neon-ink); }

/* ---------- Lista ---------- */
main { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; outline: none; }
.menu-note, .hidden-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 12px 14px;
  font-size: 0.875rem; font-weight: 400; color: var(--ink);
}
.menu-note svg { color: var(--neon-ink); margin-top: 2px; }
.hidden-note { align-items: center; justify-content: space-between; border: 1px solid var(--rule); }
.link-btn { border: 0; background: none; padding: 8px 0 8px 8px; color: var(--neon-ink); text-decoration: underline; text-underline-offset: 3px; }

.section { padding-top: 48px; scroll-margin-top: calc(var(--sticky-h) + 4px); }
.section-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 12px; }
.section-head .meander { flex: 1; max-width: 110px; }
.section-head .meander:last-child { transform: scaleX(-1); }
.section-title { margin: 0; font-size: 1.25rem; line-height: 1.2; color: var(--neon-ink); text-shadow: var(--glow); text-align: center; }
.section-note { margin: 0 0 6px; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); text-align: center; }

/* Copertina di sezione (versione con foto) */
.cover { position: relative; margin: 18px 0 10px; aspect-ratio: 16 / 7; overflow: hidden; background: var(--ground-2); border-radius: 2px; }
@media (min-width: 700px) { .cover { aspect-ratio: auto; height: 240px; } }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }

.items { list-style: none; margin: 0; padding: 0; }
.item + .item { border-top: 1px solid var(--rule); }
.item-btn {
  width: 100%; display: flex; flex-direction: column; gap: 3px;
  padding: 15px 0; border: 0; background: transparent; text-align: left; transition: background-color 0.2s;
}
.item-btn:hover .item-name { color: var(--ink-max); }
.item-btn:active { background: var(--ground-2); }
.item-btn:focus-visible { outline-offset: -1px; }
/* nome · · · · prezzo */
.item-line { display: flex; align-items: baseline; gap: 8px; width: 100%; }
.item-name { flex: 0 1 auto; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; letter-spacing: 0.01em; transition: color 0.2s; }
.leader { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted var(--neon-dim); translate: 0 -0.3em; }
.item-price { flex: none; display: flex; gap: 12px; font-size: 1.0625rem; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--neon-ink); }
.item-price small { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-right: 5px; }
.item-desc {
  font-size: 0.875rem; font-weight: 400; color: var(--ink-2); max-width: 85%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-context { font-size: 0.8125rem; color: var(--ink-2); }
.item-context b { font-weight: 500; color: var(--neon-ink); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 3px; }
.item-meta:empty { display: none; }

/* Signature: la Medusa del logo */
.sig-mark { flex: none; width: 32px; height: auto; align-self: center; margin-right: 2px; }
.sheet-seal { display: block; width: 46px; height: auto; margin: 4px 0 6px; }

/* Allergeni scritti a parole */
.al { font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.al svg { width: 0.95rem; height: 0.95rem; vertical-align: -0.18em; margin-right: 5px; color: var(--alert); }
.al mark { background: var(--alert); color: var(--ground); border-radius: 2px; padding: 0 4px; font-weight: 500; }
.al .avoid { color: var(--alert); font-weight: 400; }
.word { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.flag { font-size: 0.8125rem; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.flag svg { width: 0.95rem; height: 0.95rem; color: var(--alert); }
.flag.soft { color: var(--ink-2); }
.flag.soft svg { color: var(--neon-ink); }

.item.is-flagged .item-name, .item.is-flagged .item-price { color: var(--ink-2); }
.item.is-soldout .item-name, .item.is-soldout .item-price { color: var(--ink-2); }
.item.is-soldout .item-price { text-decoration: line-through; text-decoration-color: var(--neon-dim); }
.flag.soldout { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon-ink); border: 1px solid var(--neon-dim); border-radius: 2px; padding: 1px 6px; }
.empty { padding: 48px 0; color: var(--ink-2); font-weight: 400; text-align: center; }
.results-count { margin: 22px 0 4px; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); text-align: center; }

/* ---------- Piede ---------- */
.footer { max-width: 720px; margin: 0 auto; padding: 40px 16px calc(44px + env(safe-area-inset-bottom)); display: grid; gap: 24px; }
.footer::before { content: ""; display: block; height: 14px; }
.notice { display: flex; gap: 10px; padding: 16px; font-size: 0.9375rem; font-weight: 400; border-radius: 2px; }
.notice svg { color: var(--neon-ink); margin-top: 3px; }
.notice p { margin: 0; }
.legend summary {
  list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon-ink);
  border-bottom: 1px solid var(--rule);
}
.legend summary::-webkit-details-marker { display: none; }
.legend summary svg { color: var(--neon-ink); transition: transform 0.3s var(--ease); }
.legend[open] summary svg { transform: rotate(180deg); }
.legend p { margin: 12px 0; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }
.legend ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; }
.legend li { font-size: 0.9375rem; font-weight: 400; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.review { padding: 26px 20px; text-align: center; border-radius: 2px; }
.review h2 { margin: 0; font-size: 1.125rem; color: var(--neon-ink); text-shadow: var(--glow); }
.review p { margin: 8px 0 18px; font-weight: 400; color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 2px; border: 1px solid transparent; text-decoration: none;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn.primary { background: var(--neon); color: var(--ground); box-shadow: 0 0 18px -6px var(--neon); }
.btn.primary:hover { background: var(--neon-ink); }
.btn.ghost { background: transparent; border-color: var(--neon-dim); color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 400; }
.socials a svg { color: var(--neon-ink); }
.fine { margin: 0; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); text-align: center; }

/* ---------- Scheda (dialog) ---------- */
dialog.sheet {
  padding: 0; border: 0; border-top: 1px solid var(--neon); width: 100%; max-width: 620px; max-height: 88vh; max-height: 88dvh;
  margin: auto auto 0; border-radius: 6px 6px 0 0;
  background: var(--ground-2); color: var(--ink);
  box-shadow: 0 -10px 30px -12px color-mix(in srgb, var(--neon) 60%, transparent), 0 -18px 40px -10px rgba(0, 0, 0, 0.8);
  overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--ground-3) transparent;
}
dialog.sheet::backdrop { background: var(--scrim); }
dialog.sheet[open] { animation: sheet-in 0.45s var(--ease); }
dialog.sheet[open]::backdrop { animation: fade 0.35s ease; }
dialog.sheet.closing { animation: sheet-out 0.22s ease-in forwards; }
dialog.sheet.closing::backdrop { animation: fade 0.22s ease reverse forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border: 1px solid var(--neon-dim); border-radius: 6px; max-height: 84vh; }
  @keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } }
  @keyframes sheet-out { to { transform: translateY(8px); opacity: 0; } }
}
.sheet-inner { position: relative; padding: 10px 22px calc(26px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 40px; height: 3px; border-radius: 2px; background: var(--neon-dim); margin: 0 auto 18px; }
@media (min-width: 700px) { .sheet-handle { visibility: hidden; } }
.sheet-close {
  position: absolute; right: 12px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 2px;
  border: 1px solid var(--rule); background: var(--ground-2); color: var(--ink); display: grid; place-items: center;
}
/* Foto in cima alla scheda (versione con foto) */
.sheet-photo { position: relative; margin: -10px -22px 20px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--neon-dim); background: var(--ground-3); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.sheet-photo + .sheet-handle { display: none; }
.sheet-close.on-photo { background: rgba(7, 7, 13, 0.6); border-color: transparent; }
.sheet-title { margin: 8px 56px 4px 0; font-size: 1.875rem; font-weight: 400; line-height: 1.15; letter-spacing: 0.02em; text-transform: none; color: var(--ink); }
.sheet-where { margin: 0 0 16px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon-ink); }
.sheet-desc { margin: 0 0 14px; font-size: 1.0625rem; font-weight: 400; }
.sheet h3 { margin: 28px 0 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon-ink); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 2px 0 6px; }

.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.price-list .label small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; }
.price-list .amount { font-size: 1.5rem; font-weight: 400; color: var(--neon-ink); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }

.alert { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--alert); border-radius: 2px; color: var(--ink); }
.alert svg { color: var(--alert); margin-top: 3px; }
.alert.soft { border-color: var(--rule); background: var(--ground-3); font-weight: 400; }
.alert.soft svg { color: var(--neon-ink); }
.allergen-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.allergen-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.allergen-list li.is-conflict { color: var(--alert); font-weight: 400; }
.allergen-list li.is-conflict::after { content: attr(data-avoid); margin-left: auto; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ground); background: var(--alert); border-radius: 2px; padding: 2px 7px; }
.no-allergens { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--ok); font-weight: 400; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.disclaimer { margin: 22px 0 0; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }

/* Filtri */
.filter-sheet .sheet-title { margin-bottom: 10px; font-size: 1.125rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--neon-ink); text-shadow: var(--glow); }
.filter-sheet fieldset { border: 0; margin: 0; padding: 0; }
.filter-sheet fieldset + fieldset { margin-top: 28px; }
.filter-sheet legend { padding: 0; margin: 24px 0 12px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon-ink); }
.hint { margin: -4px 0 12px; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.allergen-toggle {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px; border-radius: 2px; border: 1px solid var(--rule);
  background: transparent; text-align: left; font-size: 0.9375rem; font-weight: 400; color: var(--ink);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.allergen-toggle .x { margin-left: auto; opacity: 0; transition: opacity 0.2s; }
.allergen-toggle[aria-pressed="true"] { background: var(--neon); border-color: var(--neon); color: var(--ground); font-weight: 500; box-shadow: 0 0 16px -6px var(--neon); }
.allergen-toggle[aria-pressed="true"] .x { opacity: 1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); cursor: pointer; font-weight: 400; }
.switch {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; width: 46px; height: 26px; border-radius: 2px;
  background: var(--ground-3); border: 1px solid var(--neon-dim); position: relative; cursor: pointer; transition: background-color 0.25s;
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 1px; background: var(--ink-2);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.switch:checked { background: var(--neon); border-color: var(--neon); }
.switch:checked::before { transform: translateX(20px); background: var(--ground); }
.sheet-actions {
  position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  margin: 24px -22px calc(-26px - env(safe-area-inset-bottom)); padding: 14px 22px calc(16px + env(safe-area-inset-bottom));
  background: var(--ground-2); border-top: 1px solid var(--rule);
}
.sheet-actions::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(transparent, var(--ground-2)); pointer-events: none; }

/* ---------- Anteprima nell'admin ---------- */
.is-preview .item.is-preview-focus .item-btn { outline: 1px dashed var(--neon); outline-offset: 4px; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  body { transition: none; }
  .logo::after { display: none; }
}

/* =========================================================
   Più neon: tempio a tubi, pavimento a griglia, insegne accese
   ========================================================= */

/* Il tempio: frontone e colonne disegnati da tubi al neon attorno al logo */
.temple { position: relative; width: min(340px, 88vw); aspect-ratio: 320 / 270; margin: 0 auto; display: grid; place-items: center; }
.temple-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: color-mix(in srgb, var(--neon) 35%, #FFFFFF); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 8px var(--neon)) drop-shadow(0 0 22px color-mix(in srgb, var(--neon) 60%, transparent));
}
.temple-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s 0.15s var(--ease) forwards; }
.temple-lines .t-ped { animation-delay: 0.5s; }
.temple-lines .t-col { animation-duration: 1.2s; }
/* una colonna sfarfalla ogni tanto, come un tubo vero */
.temple-lines .t-col-r { animation: draw 1.2s 0.15s var(--ease) forwards, flicker 7s 2.5s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flicker { 0%, 91%, 93.5%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: 0.25; } }
.temple .venue-name { position: relative; width: 66%; margin-top: 10%; }
.temple .logo { width: 100%; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--neon) 45%, transparent)); }
.hero-content { padding-top: 8px; }

/* Pavimento a griglia che scorre verso l'orizzonte, nel secondo neon */
.floor {
  position: absolute; left: -40%; right: -40%; bottom: 0; height: 210px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--neon-2) 80%, transparent) 1.5px, transparent 1.5px) 0 0 / 100% 30px,
    linear-gradient(90deg, color-mix(in srgb, var(--neon-2) 70%, transparent) 1.5px, transparent 1.5px) center 0 / 46px 100%;
  transform: perspective(260px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  opacity: 0.5; animation: floor 5s linear infinite;
}
@keyframes floor { to { background-position: 0 30px, center 0; } }
/* la linea dell'orizzonte */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--neon-2) 20%, #FFFFFF 50%, var(--neon-2) 80%, transparent);
  box-shadow: 0 0 12px 1px var(--neon-2);
}
.hero {
  background:
    radial-gradient(ellipse 60% 34% at 50% 100%, color-mix(in srgb, var(--neon-2) 30%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 46% 38% at 50% 38%, color-mix(in srgb, var(--neon) 30%, transparent) 0%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #0B0B16 0%, #0A0716 70%, var(--ground) 100%);
}
.with-photos .floor { opacity: 0.35; }
.greeting { color: #FFFFFF; text-shadow: var(--tube); font-weight: 500; letter-spacing: 0.12em; }
.tagline { color: var(--ink); }

/* Insegne: titoli di sezione come tubi accesi, si riaccendono a ogni cambio menù */
.section-title { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.16em; color: #FFFFFF; text-shadow: var(--tube); animation: ignite 1.1s linear both; }
@keyframes ignite { 0% { opacity: 0.15; } 8% { opacity: 1; } 12% { opacity: 0.3; } 20% { opacity: 1; } 24% { opacity: 0.5; } 34%, 100% { opacity: 1; } }
.tab[aria-current="page"] { color: #FFFFFF; text-shadow: var(--tube); box-shadow: inset 0 -2px 0 var(--neon), 0 12px 18px -10px var(--neon); }
.lang-btn[aria-pressed="true"] { color: #FFFFFF; text-shadow: var(--tube); }
.chip[aria-current="true"] { color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--neon-2), 0 10px 14px -10px var(--neon-2); }

/* Lista più leggibile, prezzi accesi */
.item-name { font-size: 1.125rem; color: #FFFFFF; }
.item-desc { color: var(--ink-2); max-width: 92%; }
.item-price { color: #FFFFFF; text-shadow: var(--glow); font-weight: 500; }
.leader { border-bottom-color: color-mix(in srgb, var(--neon) 55%, var(--ground)); }
.item + .item { border-top: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--neon) 30%, var(--ground)) 30%, color-mix(in srgb, var(--neon-2) 30%, var(--ground)) 70%, transparent) top / 100% 1px no-repeat; }

/* Foto virate nei due neon del menù: stessa notte del logo */
.hero-media:has(img)::after, .cover::after, .sheet-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  mix-blend-mode: color; opacity: 0.55;
}
.hero-photo, .cover img, .sheet-photo img { filter: saturate(0.7) contrast(1.15) brightness(0.85); }
.cover { border-color: var(--neon); }

body { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 26px), var(--ground); }
/* evitare un allergene è un avviso, non una preferenza: colore d'allarme */
.allergen-toggle[data-allergen][aria-pressed="true"] { background: color-mix(in srgb, var(--alert) 14%, transparent); border-color: var(--alert); color: var(--alert); box-shadow: none; }
.al .avoid { color: var(--ground); background: var(--alert); padding: 0 4px; border-radius: 2px; font-weight: 500; }
.al { font-size: 0.875rem; }
.sheet-rule { width: 120px; margin: 0 0 18px; }
.sheet-photo { border-bottom: 0; box-shadow: inset 0 0 0 1px var(--neon-dim), 0 0 22px -8px color-mix(in srgb, var(--neon) 55%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .floor, .temple-lines .t-col-r, .section-title { animation: none; }
  .temple-lines path { stroke-dashoffset: 0; animation: none; }
}

/* Variante senza tempio (?tempio=0): il logo da solo nel suo alone */
.no-temple .temple-lines { display: none; }
.no-temple .temple { aspect-ratio: auto; width: auto; padding-top: 12px; }
.no-temple .temple .venue-name { width: clamp(200px, 64vw, 280px); margin-top: 0; }
