@view-transition { navigation: auto; }

/* La giornata di Gixy: si scorre dalla luce del mattino al buio della sera.
   Colori presi dal locale: parete verde salvia, marmo nero, lime del logo. */
:root {
  --morning: #f5f7f1;
  --noon: #e8efe1;
  --sage: #b7d1aa;
  --forest: #203028;
  --ink: #1d1d1b;
  --lime: #9cc054;
  --text: #1d1d1b;
  --text-soft: #545b51;
  --line: rgba(29, 29, 27, 0.12);

  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --stencil: 'Big Shoulders Stencil', var(--sans);

  --radius: 1.75rem;
  --max: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg, var(--morning));
  transition: background-color 0.9s ease;
  -webkit-font-smoothing: antialiased;
}
/* con JS attivo le sezioni diventano trasparenti e il colore della pagina sfuma da un momento all'altro */
.menu-cat, .menu-foot { background: var(--bg, var(--morning)); }
.morph .hero, .morph .chapter, .morph .menu-cat, .morph .menu-foot { background: transparent; }

/* grana da pellicola, appena percettibile */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
p { max-width: 58ch; margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--morning);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--morning) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.75rem;
}
.nav { transition: background 0.4s, color 0.4s; }
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 2.5rem; width: auto; }
.nav-logo .on-dark { display: none; }
[data-theme="dark"] .nav { background: color-mix(in srgb, var(--ink) 78%, transparent); color: #f1f4ec; }
[data-theme="dark"] .nav .on-light { display: none; }
[data-theme="dark"] .nav .on-dark { display: block; }
[data-theme="dark"] .nav .dayline { background: rgba(241, 244, 236, 0.14); }
[data-theme="dark"] .nav .dayline-olive { box-shadow: 0 0 0 3px var(--ink); }
[data-theme="dark"] .nav .nav-links a:hover { background: rgba(241, 244, 236, 0.12); }
[data-theme="dark"] .nav .nav-links a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.nav-links { display: flex; gap: 0.25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s;
}
.nav-links a:hover { background: var(--line); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--morning); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } .nav-row { gap: 0.75rem; } }

/* selettore lingua */
.i18n-pending body { visibility: hidden; }
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 10rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(29, 29, 27, 0.4);
}
.lang a { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.8rem; border-radius: 0.6rem; text-decoration: none; font-weight: 500; }
.lang a:hover { background: var(--noon); }
.lang a[aria-current]::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); }
[data-theme="dark"] .nav .lang summary { box-shadow: inset 0 0 0 1px rgba(241, 244, 236, 0.2); }

/* la barra della giornata: lo stecchino con l'oliva avanza mentre si scorre */
.dayline { position: relative; height: 2px; background: var(--line); }
.dayline-fill, .dayline-olive { position: absolute; top: 0; left: 0; }
.dayline-fill { height: 2px; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.dayline-olive {
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--morning);
}
@supports (animation-timeline: scroll()) {
  .dayline-fill { animation: fill linear both; animation-timeline: scroll(root); }
  .dayline-olive { animation: ride linear both; animation-timeline: scroll(root); }
}
@keyframes fill { to { transform: scaleX(1); } }
@keyframes ride { to { left: calc(100% - 12px); } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 6px 20px -10px rgba(29, 29, 27, 0.25);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 30%, transparent);
}
.pill.closed::before { background: #b9b9b1; box-shadow: none; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--morning); }
.btn-line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-lime { background: var(--lime); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.25rem, 7.4vw, 7rem);
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 1.75rem 0 1.5rem;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.show-sm { display: none; }
.hero-photo { position: relative; }
.hero-photo img:not([src]) { display: none; } /* senza JavaScript: al suo posto la foto nel <noscript> */
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(76vh, 46rem);
  object-fit: cover;
  object-position: 50% 80%;
  border-radius: var(--radius);
  animation: settle 1.4s var(--ease) both;
}
.hero-now {
  position: absolute;
  left: clamp(-3rem, -3vw, -1rem);
  bottom: -1.5rem; /* sul bordo in basso: la foto cambia ogni giorno e il cibo sta quasi sempre in basso */
  max-width: 17rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(29, 29, 27, 0.35);
  text-decoration: none;
  animation: rise 1s 0.5s var(--ease) both;
}
.hero-now small { display: block; color: var(--text-soft); font-size: 0.8125rem; }
.hero-now strong { display: block; font-size: 1.25rem; margin-top: 0.15rem; }
.hero-now span { display: block; color: var(--text-soft); font-size: 0.9375rem; margin-top: 0.2rem; }
@keyframes settle { from { transform: scale(1.04); opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 5 / 4; }
  .hero-photo { margin-bottom: 3rem; }
  .hero-now { left: 1rem; bottom: -3rem; }
}
/* su telefono "Serate" sparisce dalla barra in alto: il link resta qui */
@media (max-width: 720px) { .show-sm { display: inline-flex; } }

/* ---------- capitoli della giornata ---------- */
.chapter { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg, var(--morning)); color: var(--fg, var(--text)); }
.chapter.dark { --fg: #f1f4ec; --text-soft: #b4bdb0; --line: rgba(241, 244, 236, 0.14); }
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.chapter.flip .chapter-media { order: -1; }
@media (max-width: 860px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter.flip .chapter-media { order: 0; }
}
.clock {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--stencil);
  font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.clock::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.18;
  transform: translateY(-0.3em);
}
.chapter h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); font-stretch: 85%; margin: 1.5rem 0 1rem; }
.chapter p { color: var(--text-soft); font-size: 1.125rem; }

.items { list-style: none; margin: 2rem 0 0; padding: 0; }
.items li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}
.items li:last-child { border-bottom: 1px solid var(--line); }
.items .dots { flex: 1; border-bottom: 1.5px dotted currentColor; opacity: 0.25; transform: translateY(-0.3em); }
.items .price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.chapter-media { position: relative; }
.chapter-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.media-tall img { aspect-ratio: 4 / 5; }
.media-wide img { aspect-ratio: 5 / 4; }
.media-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: end; }

/* ---------- serate ---------- */
.nights { --bg: var(--ink); --fg: #f1f4ec; --text-soft: #a9ada4; --line: rgba(241, 244, 236, 0.14); }
.nights .clock { color: var(--lime); }
.nights-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 6rem; align-items: end; margin-bottom: 3rem; }
@media (max-width: 860px) { .nights-head { grid-template-columns: 1fr; } }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic figure:first-child img { aspect-ratio: auto; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic figure:first-child img { aspect-ratio: 4 / 3; }
}
.nights-label { margin: 4rem 0 1.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.nights-head + .nights-label { margin-top: 0; }
/* "Archivio": stessa scritta grande a stencil degli orari dei capitoli, in verde */
.archive-title { margin: clamp(4rem, 9vw, 7rem) 0 1.75rem; color: var(--lime); text-transform: uppercase; letter-spacing: 0.01em; }
.archive-title + .mosaic { margin-top: 0; }
.poster { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: #2a2b27; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.poster-type {
  display: grid; place-items: end start; height: 100%; padding: 1.5rem;
  font-family: var(--stencil); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 0.95; text-transform: uppercase;
  color: var(--ink); background: var(--lime);
}
.next-date { display: inline-flex; align-items: baseline; gap: 0.5rem; font-family: var(--stencil); text-transform: uppercase; line-height: 1; }
.next-date b { font-size: 3.5rem; font-weight: 400; color: var(--lime); }
.next-date span { font-size: 1.25rem; }

.next-main { display: grid; grid-template-columns: minmax(0, 0.8fr) 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.next-main .poster { max-width: 26rem; }
.next-main:hover .poster img, .past li:hover .poster img { transform: scale(1.04); }
.next-info small { display: block; margin-bottom: 1rem; color: var(--text-soft); }
.next-info .next-date b { font-size: clamp(4.5rem, 9vw, 7.5rem); }
.next-info .next-date span { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.next-info h4 { margin: 0.75rem 0 0.5rem; font-size: clamp(2rem, 4vw, 3rem); font-stretch: 85%; line-height: 1; }
.next-info p { margin: 0 0 0.5rem; color: var(--text-soft); font-size: 1.0625rem; max-width: 32rem; }
.next-info .next-time { color: var(--fg); font-weight: 600; }
.next-info .btn { margin-top: 1.25rem; }
.poster .locandina { object-fit: contain; }
/* appuntamento fisso del venerdì, sotto le prossime serate */
.weekly { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.75rem; padding: 0.9rem 1.4rem 0.9rem 0.9rem; border-radius: 1.25rem; background: rgba(241, 244, 236, 0.06); color: inherit; text-decoration: none; }
.weekly img { width: 4.5rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.75rem; }
.weekly small { display: block; color: #9cc054; font-weight: 600; }
.weekly strong { display: block; font-size: 1.125rem; }
.weekly span span { color: var(--text-soft); font-size: 0.9375rem; }
.pill-tonight { margin-left: 0.5rem; background: #9cc054; color: #1d1d1b; text-decoration: none; font-weight: 600; }
.next-extra summary { margin-top: 0.75rem; padding: 0.9rem 1.4rem; border-radius: 1.25rem; background: rgba(241, 244, 236, 0.06); cursor: pointer; font-weight: 600; list-style-position: inside; }
.next-extra .next-more { margin-top: 0.75rem; }
.next-more { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.next-more li { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.4rem; border-radius: 1.25rem; background: rgba(241, 244, 236, 0.06); }
.next-more .next-date { min-width: 7.5rem; }
.next-more strong { display: block; font-size: 1.125rem; }
.next-more li span { color: var(--text-soft); font-size: 0.9375rem; }
.next-empty { padding: 2rem 1.75rem; border-radius: var(--radius); border: 1.5px dashed var(--line); }
.next-empty strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); }
.next-empty span { color: var(--text-soft); }
@media (max-width: 720px) {
  .next-main { grid-template-columns: 1fr; }
  .next-main .poster { max-width: none; }
  .next-more li { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

.past { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 2rem 1rem; }
.past small { display: block; margin: 0.9rem 0 0.2rem; color: var(--text-soft); font-size: 0.8125rem; }
.past strong { display: block; font-size: 1.125rem; }
.past li > span { color: var(--text-soft); font-size: 0.9375rem; }
@media (max-width: 720px) { .past { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.75rem; } .poster-type { font-size: 1.75rem; padding: 1rem; } }

/* ---------- visita ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.visit-grid > * { min-width: 0; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
.visit h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-stretch: 85%; margin-bottom: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.hours td { padding: 1rem 0; border-top: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; }
.hours tr.today td:first-child::after {
  content: "oggi";
  margin-left: 0.6rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.75rem;
  vertical-align: 0.15em;
}
.note { color: var(--text-soft); font-size: 0.9375rem; margin-top: 1rem; }
.address-card {
  border-radius: var(--radius);
  background: var(--sage);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.address-card h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-stretch: 85%; margin-bottom: 1.5rem; }
.links { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(29, 29, 27, 0.15);
  text-decoration: none;
  font-weight: 600;
}
.links a span { font-weight: 400; color: #3d4a39; }
.links a:hover span { text-decoration: underline; }
@media (max-width: 420px) {
  .links a { flex-direction: column; gap: 0.2rem; }
  .links a span { overflow-wrap: anywhere; }
}

/* ---------- icone, caffè, pagamenti, social ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.links b { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }

.coffee {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(29, 29, 27, 0.3);
  width: fit-content;
  max-width: 100%;
}
.coffee img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; object-position: 60% 50%; flex: none; }
.coffee p { margin: 0; color: var(--text); line-height: 1.3; font-size: 1rem; }
.coffee small { display: block; font-size: 0.8125rem; color: var(--text-soft); }
.coffee strong { color: #b3122e; font-size: 1.125rem; }
.coffee span { color: var(--text-soft); font-size: 0.9375rem; margin-left: 0.35rem; }

.pay-title { font-size: 1.125rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}
.pay .brand { height: 1.1rem; width: auto; }

.social { display: flex; gap: 0.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(241, 244, 236, 0.2);
  color: #f1f4ec;
  transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--lime); color: var(--ink); }
.social .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #a9ada4; padding: 3rem 0 2.5rem; font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer img { height: 3rem; width: auto; }
.credit { max-width: var(--max); margin: 2rem auto 0; font-size: 0.75rem; color: #6f736b; }
.credit span { color: #a9ada4; }

/* ---------- pagina menu ---------- */
.menu-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.menu-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.menu-hero h1 { font-size: clamp(4.5rem, 14vw, 12rem); font-stretch: 80%; letter-spacing: -0.05em; line-height: 0.85; }
.menu-hero p { color: var(--text-soft); font-size: clamp(1.125rem, 1.6vw, 1.3rem); margin-top: 1.5rem; }
.menu-hero .sticker { position: static; flex: none; width: clamp(6rem, 11vw, 9rem); }

.menu-tools {
  position: sticky;
  top: calc(4.75rem + 2px);
  z-index: 40;
  padding: 0.8rem 0;
  background: color-mix(in srgb, var(--morning) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 0.4s;
}
.menu-tools .wrap { display: flex; gap: 0.75rem; align-items: center; }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips a {
  flex: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.25s, color 0.25s;
}
.chips a:hover { background: var(--line); }
.chips a[aria-current="true"] { background: var(--ink); color: var(--morning); }
.search {
  flex: none;
  width: min(16rem, 40vw);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 0.95rem 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.search::placeholder { color: var(--text-soft); }
[data-theme="dark"] .menu-tools { background: color-mix(in srgb, var(--ink) 78%, transparent); color: #f1f4ec; }
[data-theme="dark"] .chips a:hover { background: rgba(241, 244, 236, 0.12); }
[data-theme="dark"] .chips a[aria-current="true"] { background: var(--lime); color: var(--ink); }
[data-theme="dark"] .search {
  background-color: rgba(241, 244, 236, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f1f4ec' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
  color: #f1f4ec;
  box-shadow: inset 0 0 0 1px rgba(241, 244, 236, 0.18);
}
[data-theme="dark"] .search::placeholder { color: #a9ada4; }

.menu-cat { padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 8.5rem; }
.menu-cat.dark { --fg: #f1f4ec; --text-soft: #b4bdb0; --line: rgba(241, 244, 236, 0.14); color: var(--fg); }
.menu-cat-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.menu-cat-aside { position: sticky; top: 10.5rem; }
.menu-cat h2 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); font-stretch: 85%; letter-spacing: -0.035em; }
.menu-cat-aside p { color: var(--text-soft); font-size: 1.125rem; margin: 1rem 0 2rem; }
.menu-cat-aside .frame img { width: 100%; aspect-ratio: 4 / 5; max-height: max(14rem, calc(100vh - 24rem)); object-fit: cover; object-position: center 85%; }
.menu-cat .items { margin: 0; }
.menu-cat .items li { position: relative; padding: 1.05rem 0; font-size: 1.125rem; transition: padding 0.3s var(--ease); }
.menu-cat .items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-radius: 50%;
  background: var(--lime);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.menu-cat .items li:hover { padding-left: 1.25rem; }
.menu-cat .items li:hover::before { transform: scale(1); }
.items small { color: var(--text-soft); font-size: 0.875rem; margin-left: 0.4rem; }
.menu-foot { padding: clamp(4rem, 8vw, 7rem) 0; text-align: center; }
.menu-foot h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-stretch: 85%; letter-spacing: -0.035em; margin-bottom: 1rem; }
.menu-foot p { margin: 0 auto 2rem; color: var(--text-soft); }
.menu-foot .hero-actions { justify-content: center; }
.cocktail-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 42rem; margin: 0 auto 2.5rem; padding: 0; }
.cocktail-strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .cocktail-strip { gap: 0.5rem; } .cocktail-strip img { border-radius: 1rem; } }
@media (max-width: 860px) {
  .menu-cat-grid { grid-template-columns: 1fr; }
  .menu-cat-aside { position: static; }
  .menu-cat-aside .frame img { aspect-ratio: 16 / 10; }
  .menu-hero .sticker { display: none; }
  .menu-tools .wrap { flex-wrap: wrap; gap: 0.5rem; }
  .chips { flex-basis: 100%; }
  .search { width: 100%; }
  .menu-cat { scroll-margin-top: 11rem; }
}
.empty { padding: 5rem 0; text-align: center; color: var(--text-soft); font-size: 1.125rem; }

/* ---------- badge rotante sulla foto hero ---------- */
.sticker {
  position: absolute;
  top: -2.25rem;
  right: -1.5rem;
  width: clamp(6.5rem, 10vw, 8.5rem);
  aspect-ratio: 1;
  animation: rise 1s 0.7s var(--ease) both;
}
.sticker-ring { transform-origin: 60px 60px; animation: spin 24s linear infinite; }
.sticker text {
  font-family: var(--stencil);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .sticker { top: -1.5rem; right: 0.75rem; } }

/* ---------- il bancone che si apre a tutto schermo ---------- */
.opening { height: 190vh; view-timeline: --opening block; }
.opening-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.opening-stage img { width: 100%; height: 100%; object-fit: cover; }
.opening-cap {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.opening-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 29, 27, 0.55), transparent 45%);
  pointer-events: none;
}
.opening-cap { z-index: 1; }
@supports (animation-timeline: view()) {
  .opening-stage img { animation: open linear both; animation-timeline: --opening; animation-range: contain 0% contain 55%; }
  .opening-cap, .opening-stage::after { animation: cap linear both; animation-timeline: --opening; animation-range: contain 35% contain 60%; }
}
@keyframes open { from { clip-path: inset(16% 22% round 2rem); } to { clip-path: inset(0 0 round 0); } }
@keyframes cap { from { opacity: 0; transform: translateY(1.5rem); } }
@media (max-width: 720px) {
  .opening { height: 150vh; }
  @keyframes open { from { clip-path: inset(18% 6% round 1.5rem); } to { clip-path: inset(0 0 round 0); } }
}

/* ---------- profondità: la foto scorre piano dentro la cornice ---------- */
.frame { overflow: hidden; border-radius: var(--radius); }
.frame img { border-radius: 0; }
@supports (animation-timeline: view()) {
  .frame img { animation: drift linear both; animation-timeline: view(); scale: 1.1; }
}
@keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
.media-pair .frame:last-child { margin-bottom: 3rem; }
.media-pair .frame:first-child img { aspect-ratio: 3 / 4; }
.media-pair .frame:last-child img { aspect-ratio: 1; margin-bottom: 0; }

/* ---------- striscia che scorre ---------- */
.ticker { overflow: hidden; background: var(--lime); color: var(--ink); padding: 1.1rem 0; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--stencil);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- archivio fotografico delle serate ---------- */
.nights-archive { margin: 2rem 0 0; }
.nights-archive .btn { gap: 1rem; }
.nights-archive .btn span { opacity: 0.72; font-size: 0.8125rem; font-weight: 500; }
.past-album {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.45rem;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 0.22em;
}

.album-page {
  --page-bg: #10130e;
  color: #f1f4ec;
  background: #10130e;
}
.album-page main { overflow: clip; }
.album-page .nav { background: color-mix(in srgb, #10130e 84%, transparent); color: #f1f4ec; }
.album-page .footer { border-top: 1px solid rgba(241, 244, 236, 0.12); }

.archive-head { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.archive-head > p:first-child { margin-bottom: 1rem; color: var(--lime); font-size: 0.95rem; font-weight: 650; }
.archive-head h1 {
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-stretch: 78%;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-transform: uppercase;
}
.archive-lead { max-width: 34rem; margin: 1.75rem 0 0; color: #b7bdb1; font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.archive-lead span { color: #f1f4ec; font-weight: 650; }
/* muro di foto da bordo a bordo: 18 foto, la 1ª e la 14ª grandi, così le righe si chiudono senza buchi
   (6 colonne = 4 righe, 4 colonne = 6 righe, 3 colonne = le prime 12 in 5 righe) */
.archive-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 0.3rem; padding: 0 0.3rem; }
.archive-wall button:is(:nth-child(1), :nth-child(14)) { grid-column: span 2; grid-row: span 2; }
.archive-wall button, .album-reel button {
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #20241c;
  cursor: zoom-in;
}
.archive-wall img, .album-reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.25s; }
.archive-wall button:hover img, .album-reel button:hover img { transform: scale(1.04); filter: brightness(1.08); }

.album-list { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.album-year { margin: clamp(2rem, 5vw, 4rem) 0 0; color: var(--lime); font-size: clamp(3.5rem, 9vw, 7rem); font-stretch: 78%; letter-spacing: -0.05em; line-height: 0.9; }
.album-year:first-child { margin-top: 0; }
.album-row { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid rgba(241, 244, 236, 0.15); scroll-margin-top: 5rem; }
.album-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.album-row-head time { color: var(--lime); font-size: 0.95rem; font-weight: 650; }
.album-row-head h3 { margin: 0.5rem 0 0; font-size: clamp(2.5rem, 5vw, 4.5rem); font-stretch: 80%; letter-spacing: -0.045em; line-height: 0.88; }
.album-row-head p { margin: 0.6rem 0 0; color: #aeb4a9; font-size: 1.05rem; }
.album-all {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  background: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.album-all::after { content: " →"; }
.album-all:hover { color: #10130e; background: var(--lime); }
/* computer: 2 righe da 6; telefono: una striscia che scorre col dito */
.album-reel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.4rem; }
.album-reel .album-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  color: #10130e;
  background: var(--lime);
  font: inherit;
  cursor: pointer;
}
.album-more b { font-size: clamp(2rem, 4vw, 3.5rem); font-stretch: 80%; letter-spacing: -0.04em; line-height: 1; }
.album-more span { font-weight: 650; }
.album-more:hover { filter: brightness(1.1); }

.album-closing { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(5rem, 12vw, 10rem); }
.album-closing h2 { font-size: clamp(4rem, 12vw, 10rem); font-stretch: 78%; letter-spacing: -0.055em; line-height: 0.82; }
.album-closing .hero-actions { margin-top: 3rem; }
.album-closing .btn-line { color: #f1f4ec; }

.dialog-open { overflow: hidden; }
.gallery-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f1f4ec;
  background: #10130e;
  overflow: auto;
}
.gallery-dialog::backdrop { background: rgba(0, 0, 0, 0.88); }
.gallery-shell { min-height: 100%; padding: 0 var(--gutter) clamp(4rem, 8vw, 8rem); }
.gallery-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  background: color-mix(in srgb, #10130e 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid rgba(241, 244, 236, 0.15);
}
.gallery-head small { color: var(--lime); }
.gallery-head h2 { margin: 0.25rem 0 0; font-size: clamp(2rem, 4.6vw, 4.5rem); font-stretch: 80%; letter-spacing: -0.04em; line-height: 0.9; }
.gallery-head p { margin: 0.45rem 0 0; color: #aeb4a9; font-size: 0.9rem; }
.gallery-close, .viewer-close {
  min-width: 4.25rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(241, 244, 236, 0.28);
  border-radius: 999px;
  color: #f1f4ec;
  background: rgba(16, 19, 14, 0.76);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.gallery-close:hover, .viewer-close:hover { border-color: var(--lime); color: var(--lime); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.4rem;
  padding-top: var(--gutter);
}
.gallery-grid button {
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #20241c;
  cursor: zoom-in;
}
.gallery-grid button:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.25s; }
.gallery-grid button:hover img { transform: scale(1.025); filter: brightness(1.06); }
.gallery-source { margin: 2.5rem 0 0; text-align: right; }
.photo-removal { max-width: 40rem; margin: 2.5rem 0 0; color: #aeb4a9; font-size: 0.9rem; }
.photo-removal a { color: var(--lime); text-underline-offset: 0.2em; }
.gallery-shell .photo-removal { margin-left: auto; text-align: right; }
.gallery-source a { color: var(--lime); font-weight: 650; text-underline-offset: 0.25em; }

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 6, 4, 0.96);
}
.photo-viewer figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; margin: 0; }
.photo-viewer img { max-width: 100%; max-height: calc(100dvh - 5rem); object-fit: contain; }
.photo-viewer figcaption { padding-top: 0.75rem; color: #b6bcb1; font-size: 0.875rem; }
.viewer-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; }
.viewer-step {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  padding: 0 0 0.2rem;
  border: 1px solid rgba(241, 244, 236, 0.28);
  border-radius: 50%;
  color: #f1f4ec;
  background: rgba(16, 19, 14, 0.72);
  font: 300 2.4rem/1 var(--sans);
  cursor: pointer;
}
.viewer-share {
  min-height: 2.75rem;
  margin-left: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(241, 244, 236, 0.28);
  border-radius: 999px;
  color: #f1f4ec;
  background: rgba(16, 19, 14, 0.76);
  font: inherit;
  cursor: pointer;
}
.viewer-share:hover { border-color: var(--lime); color: var(--lime); }
.viewer-step:hover { border-color: var(--lime); color: var(--lime); }

@media (max-width: 900px) {
  .archive-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .album-reel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .album-reel button:nth-child(n + 8):not(.album-more) { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .archive-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem; padding: 0; }
  .archive-wall button:nth-child(n + 13) { display: none; }
  .album-list { padding-top: 3rem; }
  .album-row-head { margin-bottom: 1rem; }
  /* striscia da bordo a bordo che scorre col dito */
  .album-reel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44vw;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .album-reel::-webkit-scrollbar { display: none; }
  .album-reel > * { scroll-snap-align: start; }
  .album-reel button:nth-child(n + 8):not(.album-more) { display: block; }
  .gallery-shell { padding-inline: 0.65rem; }
  .gallery-head { padding: 0.85rem 0.25rem; }
  .gallery-head h2 { max-width: 10ch; font-size: clamp(1.8rem, 8vw, 2.75rem); }
  .gallery-head p { margin-top: 0.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.28rem; padding-top: 0.65rem; }
  .photo-viewer { grid-template-columns: 1fr; padding: 3.75rem 0.5rem 4.5rem; }
  .viewer-step { position: absolute; z-index: 2; bottom: 1rem; }
  .viewer-prev { left: 1rem; }
  .viewer-next { right: 1rem; }
  .photo-viewer img { max-height: calc(100dvh - 9rem); }
  .album-closing .hero-actions { display: grid; }
  .album-closing .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
