/* ============================================================
   OSTERIA DALLO ZÌ — design system "Avorio editoriale"
   Avorio luminoso · serif di lusso in bordeaux · oro nei filetti
   · stanza rossa del menu · archi come cornici · footer inchiostro
   Palette rossa/oro/crema campionata dal logo reale.
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-v28-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-v28-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-v28-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --avorio: #F8F3E9;
  --avorio-2: #F1E9D9;
  --inchiostro: #241511;
  --inchiostro-72: rgba(36, 21, 17, .74);
  --inchiostro-55: rgba(36, 21, 17, .58);
  --linea: rgba(36, 21, 17, .16);
  --rosso: #941616;
  --rosso-scuro: #7A1212;
  --oro: #FABD14;
  --oro-antico: #B08420;
  --filetto-oro: rgba(176, 132, 32, .5);
  --crema: #FAF0DC;
  --crema-70: rgba(250, 240, 220, .74);
  --crema-55: rgba(250, 240, 220, .58);
  --linea-crema: rgba(250, 240, 220, .22);

  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni MT', serif;
  --font-text: 'Work Sans', 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 14vw, 160px);
  --header-h: 76px;

  --ombra-foto: 0 26px 60px -24px rgba(75, 32, 22, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --z-header: 40;
  --z-overlay: 60;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--avorio);
  color: var(--inchiostro);
  font-family: var(--font-text);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection { background: var(--rosso); color: var(--crema); }

:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
  border-radius: 2px;
}
.menu :focus-visible,
.nav-overlay :focus-visible,
.footer :focus-visible,
.forno :focus-visible,
.lightbox :focus-visible { outline-color: var(--crema); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--rosso);
  color: var(--crema);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Bottoni (linguaggio editoriale: rettangoli fini) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 30px;
  border-radius: 3px;
  font-family: var(--font-text);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color .25s var(--ease-out),
    border-color .25s var(--ease-out),
    color .25s var(--ease-out),
    transform .25s var(--ease-out),
    box-shadow .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--rosso);
  color: var(--crema);
  box-shadow: 0 10px 26px -12px rgba(148, 22, 22, .55);
}
.btn--primary:hover {
  background: var(--rosso-scuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(148, 22, 22, .6);
}

.btn--ghost {
  border: 1px solid rgba(36, 21, 17, .38);
  color: var(--inchiostro);
}
.btn--ghost:hover { border-color: var(--rosso); color: var(--rosso); transform: translateY(-2px); }

/* varianti per superfici rosse (menu, overlay) */
.btn--light { background: var(--crema); color: var(--rosso-scuro); }
.btn--light:hover { background: #FFF9EC; transform: translateY(-2px); }

.btn--ghost-light {
  border: 1px solid rgba(250, 240, 220, .55);
  color: rgba(250, 240, 220, .92);
}
.btn--ghost-light.is-placeholder {
  border-style: dashed;
  opacity: .85;
  cursor: help;
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(36, 21, 17, .3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out);
}
.text-link:hover { color: var(--rosso); text-decoration-color: var(--rosso); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.header--scrolled {
  background: var(--avorio);
  border-bottom-color: var(--linea);
  box-shadow: 0 1px 14px rgba(36, 21, 17, .07);
}

.header__inner {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header__logo { width: 46px; height: 46px; }
.header__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  white-space: nowrap;
  color: var(--inchiostro);
  transition: color .3s var(--ease-out);
}
.header__wordmark em { font-style: italic; font-weight: 600; color: var(--rosso); transition: color .3s var(--ease-out); }

.header__nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.header__call { min-height: 46px; padding: 11px 22px; }

.burger {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 7px;
  border-radius: 50%;
}
.burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--inchiostro);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .header__nav { display: flex; gap: 34px; }
  .header__link {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--inchiostro-72);
    text-decoration: none;
    transition: color .2s var(--ease-out);
  }
  .header__link:hover { color: var(--rosso); }
  .header__link[aria-current="true"] { color: var(--rosso); }
  .burger { display: none; }
}
@media (max-width: 559px) {
  .header__call span { display: none; }
  .header__call { width: 46px; padding: 0; border-radius: 50%; }
  .header__wordmark { display: none; }
}

/* ---------- Overlay di navigazione (stanza rossa) ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(250, 240, 220, .07), transparent 55%),
    var(--rosso);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease-out), visibility 0s .5s;
}
.nav-overlay--open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .5s var(--ease-out);
}
.nav-overlay[hidden] { display: none; }

.nav-overlay__conci {
  position: absolute;
  top: 4vh;
  right: -60px;
  width: min(46vw, 380px);
  color: var(--crema);
  opacity: .09;
  pointer-events: none;
}

.nav-overlay__nav { display: flex; flex-direction: column; }

.nav-overlay__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8.5vh, 4.2rem);
  line-height: 1.18;
  text-decoration: none;
  color: var(--crema);
  padding: 6px 0;
  width: fit-content;
  transition: color .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav-overlay__link:hover { color: var(--oro); transform: translateX(10px); }

.nav-overlay__link span {
  display: inline-block;
  transform: translateY(0);
  opacity: 1;
}
.nav-overlay--open .nav-overlay__link span {
  animation: navLine .55s var(--ease-out) both;
  animation-delay: calc(.08s + var(--i, 0) * 45ms);
}
@keyframes navLine {
  from { transform: translateY(34px); opacity: 0; }
}

.nav-overlay__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.nav-overlay__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-overlay__address { color: var(--crema-70); font-size: .95rem; }
.nav-overlay__social { display: flex; gap: 12px; }
.nav-overlay .social-btn { border-color: rgba(250, 240, 220, .4); color: var(--crema); }
.nav-overlay .social-btn:hover { border-color: var(--oro); color: var(--oro); }

body.nav-open { overflow: hidden; }
body.nav-open .header {
  z-index: calc(var(--z-overlay) + 1);
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.nav-open .header__wordmark { color: var(--crema); }
body.nav-open .header__wordmark em { color: var(--oro); }
body.nav-open .burger__line { background: var(--crema); }
body.nav-open .header__logo { background: var(--crema); border-radius: 50%; padding: 3px; }
body.nav-open .header__call { background: var(--crema); color: var(--rosso-scuro); box-shadow: none; }
body.nav-open .header__call:hover { background: #FFF9EC; }

.nav-overlay .btn--primary {
  background: var(--crema);
  color: var(--rosso-scuro);
  box-shadow: 0 12px 28px -14px rgba(24, 12, 9, .5);
}
.nav-overlay .btn--primary:hover { background: #FFF9EC; }

/* ---------- Arco (firma) ---------- */
.arch {
  position: relative;
  display: block;
}
.arch picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
}
.arch picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(52vw 60vh at 76% 62%, rgba(148, 22, 22, .06), transparent 68%),
    linear-gradient(180deg, #FCF9F2 0%, var(--avorio) 46%);
}
/* grana di carta, quasi impercettibile */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: calc(var(--header-h) + clamp(10px, 2svh, 28px));
  padding-bottom: clamp(20px, 3svh, 40px);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* portale monumentale centrato, con le CTA appoggiate sul bordo */
.hero__portal {
  position: relative;
  margin-top: clamp(52px, 8svh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch--hero {
  --w: min(74vw, calc(34svh * .72), 400px);
  width: var(--w);
  aspect-ratio: 18 / 25;
}
.arch--hero picture { box-shadow: var(--ombra-foto); }
.arch--hero picture img {
  object-position: 50% 24%;
  transform-origin: 50% 28%;
}
/* filetto d'oro attorno al portale */
.arch--hero::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--filetto-oro);
  pointer-events: none;
}

/* arco segmentato: i 9 conci del logo, in oro antico */
.arch__conci {
  position: absolute;
  width: calc(var(--w) * 1.124 + 29px);
  top: calc(var(--w) * -.072 - 15px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--oro-antico);
  pointer-events: none;
}

/* il badge del logo come chiave di volta, con anello di testo che ruota */
.hero__badge {
  --badge: 96px;
  position: absolute;
  z-index: 2;
  top: calc(-13px - var(--badge) / 2);
  left: 50%;
  transform: translateX(-50%);
  width: var(--badge);
  height: var(--badge);
  background: var(--crema);
  border: 1px solid var(--filetto-oro);
  border-radius: 50%;
  box-shadow: 0 12px 30px -12px rgba(75, 32, 22, .45);
  display: grid;
  place-items: center;
}
.hero__ring {
  position: absolute;
  inset: 4px;
  animation: ruota 34s linear infinite;
}
.hero__ring text {
  font-family: var(--font-text);
  font-size: 9.9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  fill: var(--rosso);
}
.hero__badge-logo { width: 46px; height: 46px; }
@keyframes ruota {
  to { transform: rotate(360deg); }
}

.hero__anime {
  margin-bottom: clamp(10px, 1.6svh, 16px);
  font-weight: 600;
  font-size: clamp(.74rem, 1.9vw, .86rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosso);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 6px;
}
.hero__anime i { font-style: normal; color: var(--oro-antico); padding: 0 10px; }
@media (min-width: 560px) {
  .hero__anime { letter-spacing: .2em; }
  .hero__anime i { padding: 0 13px; }
}

.hero__title {
  font-size: clamp(3rem, 11.5vw, 7.2rem);
  line-height: .92;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.06em; }
.hero__line > span { display: inline-block; }
.hero__line--oro { color: var(--rosso); font-size: .82em; }
.hero__line--oro > span { font-style: italic; font-weight: 600; }

.hero__cta {
  position: relative;
  z-index: 2;
  margin-top: -25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__cta .btn { min-height: 54px; padding: 15px 28px; }
.hero__cta-menu {
  background: var(--avorio);
  border-color: rgba(36, 21, 17, .3);
}

.hero__micro {
  margin-top: clamp(18px, 3svh, 28px);
  font-size: .95rem;
  color: var(--inchiostro-55);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.hero__micro .text-link { color: var(--inchiostro-72); }
.hero__dot { color: var(--oro-antico); }

/* nastro delle tre anime: fascia rossa, corsivo editoriale */
.ribbon {
  position: relative;
  background: var(--rosso);
  border-top: 1px solid rgba(122, 18, 18, .8);
  border-bottom: 1px solid rgba(122, 18, 18, .8);
  padding: 14px 0;
  overflow: hidden;
}
.ribbon__track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: .06em;
  color: var(--crema);
  animation: ribbon 46s linear infinite;
}
.ribbon__track i { font-style: normal; color: var(--oro); }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon {
  to { transform: translateX(-50%); }
}

/* orchestrazione d'ingresso (solo con JS attivo) + respiro continuo della foto */
.js .arch--hero picture { animation: archOpen .95s var(--ease-out) both .05s; }
.js .arch--hero picture img {
  animation:
    heroImg 1.5s var(--ease-out) both .05s,
    kenburns 30s ease-in-out 2s infinite alternate;
}
.js .arch--hero::before { animation: fadeIn .7s var(--ease-out) both .62s; }
.js .arch--hero .arch__conci { animation: conciIn .8s var(--ease-out) both .6s; }
.js .hero__badge { animation: badgeIn .7s var(--ease-out) both .9s; }
.js .hero__anime { animation: fadeUp .7s var(--ease-out) both .12s; }
.js .hero__line > span { animation: lineUp .85s var(--ease-out) both; }
.js .hero__line:nth-of-type(1) > span { animation-delay: .22s; }
.js .hero__line:nth-of-type(2) > span { animation-delay: .34s; }
.js .hero__cta { animation: fadeUp .7s var(--ease-out) both .7s; }
.js .hero__micro { animation: fadeUp .7s var(--ease-out) both .8s; }
.js .ribbon { animation: fadeIn .9s var(--ease-out) both .9s; }

@keyframes archOpen {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes heroImg {
  from { transform: scale(1.07); }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateX(-50%) scale(.72); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes lineUp {
  from { transform: translateY(112%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
}
@keyframes conciIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 900px) {
  .arch--hero { --w: min(30vw, calc((100svh - 500px) * .72), 430px); }
  .hero__badge { --badge: 108px; }
  .hero__badge-logo { width: 52px; height: 52px; }
}

/* ---------- Le tre anime ---------- */
.anime { padding-block: var(--section) calc(var(--section) * .82); }

.anime__head { margin-bottom: clamp(44px, 6vw, 76px); }
.anime__title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--rosso);
}
.anime__intro {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--inchiostro-72);
}

.anime__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 340px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.anime__row::-webkit-scrollbar { display: none; }
.anima { scroll-snap-align: center; }

.anima__media {
  display: block;
  text-decoration: none;
}
.arch--card {
  width: 100%;
  aspect-ratio: 7 / 9;
}
.arch--card picture { box-shadow: var(--ombra-foto); }
/* passe-partout: filetto d'oro interno alla fotografia */
.arch--card picture::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(250, 240, 220, .55);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch--card::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--linea);
  transition: border-color .3s var(--ease-out);
  pointer-events: none;
}
.arch--card picture img { transition: transform .6s var(--ease-out); }
.anima__media:hover .arch--card picture img { transform: scale(1.045); }
.anima__media:hover .arch--card::after { border-color: var(--filetto-oro); }

.anima__name {
  font-size: 1.9rem;
  margin-top: 26px;
}
.anima__text { color: var(--inchiostro-72); margin-top: 8px; font-size: 1.05rem; }
@media (min-width: 900px) {
  .anima__text { min-height: 3.2em; }
}

@media (min-width: 900px) {
  .anime__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
  }
  .anime__intro { margin-top: 0; justify-self: end; }
  .anime__row {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1.14fr 1fr;
    gap: 40px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    align-items: end;
  }
  .anima--key .arch--card { aspect-ratio: 7 / 10.2; }
  .anima--key .anima__name { font-size: 2.15rem; }
  .anime__intro { font-size: 1.12rem; }
}

/* ---------- Il forno (finestra cinematografica) ---------- */
.forno {
  position: relative;
  min-height: clamp(540px, 94svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.forno__img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 62%;
}
.forno__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 14, 11, .55), transparent 60%),
    linear-gradient(180deg, rgba(26, 14, 11, .3) 0%, rgba(26, 14, 11, .06) 38%, rgba(26, 14, 11, .88) 100%);
}
/* cornice cinema in filetto d'oro */
.forno::after {
  content: '';
  position: absolute;
  inset: clamp(14px, 2vw, 26px);
  border: 1px solid rgba(250, 189, 20, .34);
  pointer-events: none;
}
.forno__copy {
  position: relative;
  padding-block: clamp(56px, 9vw, 110px);
  color: var(--crema);
}
.forno__conci {
  width: clamp(72px, 9vw, 96px);
  color: var(--oro);
  opacity: .95;
  margin-bottom: 22px;
}
.forno__title {
  font-size: clamp(2.3rem, 5.8vw, 4.4rem);
}
.forno__text {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(250, 240, 220, .85);
}

/* ---------- Menu (stanza rossa) ---------- */
.menu {
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(250, 240, 220, .07), transparent 60%),
    var(--rosso);
  padding-block: var(--section);
}

.menu__board {
  max-width: 880px;
  margin-inline: auto;
  position: relative;
  border: 1.5px solid rgba(250, 240, 220, .45);
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 76px);
}
.menu__board::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(250, 240, 220, .22);
  pointer-events: none;
}

.menu__conci {
  width: clamp(96px, 14vw, 128px);
  margin-inline: auto;
  color: rgba(250, 240, 220, .6);
  margin-bottom: 26px;
}

.menu__title {
  font-size: clamp(2.6rem, 6.4vw, 4rem);
  text-align: center;
  color: var(--crema);
}
.menu__intro {
  margin-top: 16px;
  margin-inline: auto;
  max-width: 44ch;
  text-align: center;
  color: rgba(250, 240, 220, .86);
}

.menu__cats {
  margin-top: clamp(44px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 5vw, 54px);
  color: var(--crema);
  position: relative;
}

/* da 1200px il menu diventa una doppia pagina, come un menu vero */
@media (min-width: 1200px) {
  .menu__board { max-width: 1140px; }
  .menu__cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 52px 96px;
  }
  .menu__cats::after {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 1px;
    background: rgba(250, 240, 220, .26);
  }
  .menu__intro { max-width: 52ch; }
}

.cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(250, 240, 220, .35);
  padding-bottom: 10px;
}
.cat__name { font-size: clamp(1.7rem, 3.8vw, 2.2rem); }
.cat__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(250, 240, 220, .6);
}
.cat__desc {
  margin-top: 12px;
  max-width: 58ch;
  color: rgba(250, 240, 220, .86);
}
.cat__placeholder {
  margin-top: 18px;
  border: 1px dashed rgba(250, 240, 220, .45);
  padding: 13px 18px;
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250, 240, 220, .82);
}

.menu__actions {
  margin-top: clamp(44px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Galleria ---------- */
.galleria { padding-block: var(--section); }

.galleria__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.galleria__title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--rosso);
}
.galleria__intro { color: var(--inchiostro-55); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }

.galleria__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 30px);
}

.g-item {
  display: block;
  text-decoration: none;
  color: var(--inchiostro-55);
}
.g-item picture {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 34px -18px rgba(75, 32, 22, .35);
}
.g-item--wide picture { aspect-ratio: 16 / 10; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.g-item:hover img { transform: scale(1.035); }
.g-item__cap {
  display: block;
  margin-top: 12px;
  font-size: .88rem;
  transition: color .25s var(--ease-out);
}
.g-item:hover .g-item__cap { color: var(--rosso); }

@media (min-width: 700px) {
  .galleria__grid { grid-template-columns: repeat(6, 1fr); }
  .g-item--a { grid-column: span 3; }
  .g-item--b { grid-column: span 3; }
  .g-item--c { grid-column: span 2; }
  .g-item--d { grid-column: span 4; }
  .g-item--e { grid-column: span 3; }
  .g-item--f { grid-column: span 3; }
  .g-item--g { grid-column: span 2; }
  .g-item--h { grid-column: span 4; }
}

/* ---------- Contatti ---------- */
.contatti {
  background: var(--avorio-2);
  border-top: 1px solid var(--linea);
  padding-block: var(--section);
}

.contatti__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
}

.contatti__title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--rosso);
}

.contatti__address {
  font-style: normal;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  max-width: 30ch;
  line-height: 1.3;
}

.contatti__list {
  list-style: none;
  padding: 0;
  margin-top: clamp(28px, 4vw, 40px);
}
.contatti__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--linea);
  padding: 16px 0;
}
.contatti__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--inchiostro-55);
}
.contatti__value--placeholder { color: var(--inchiostro-72); }
.contatti__social { display: flex; align-items: center; gap: 10px; }
.social-btn--placeholder { pointer-events: none; }

.contatti__maps { margin-top: clamp(24px, 4vw, 36px); }

.social-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(36, 21, 17, .3);
  border-radius: 50%;
  color: var(--inchiostro);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.social-btn:hover { border-color: var(--rosso); color: var(--rosso); transform: translateY(-2px); }

.orari {
  background: var(--avorio);
  border: 1px solid var(--linea);
  box-shadow: 0 18px 40px -24px rgba(75, 32, 22, .25);
  padding: clamp(28px, 4vw, 40px);
  align-self: start;
}
.orari__title { font-size: 1.7rem; color: var(--rosso); }
.orari__giorni {
  list-style: none;
  padding: 0;
  margin-top: 18px;
}
.orari__riga {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--linea);
  padding: 13px 0;
}
.orari__riga:last-child { border-bottom: 1px solid var(--linea); }
.orari__stato {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--inchiostro-55);
}
.orari__stato--aperto { color: var(--rosso); }
.orari__note { margin-top: 18px; color: var(--inchiostro-72); font-size: .95rem; }

.contatti__col { display: flex; flex-direction: column; gap: 24px; align-self: start; }

.mappa {
  border: 1px solid var(--linea);
  box-shadow: 0 18px 40px -24px rgba(75, 32, 22, .25);
  background: var(--avorio);
  padding: 8px;
}
.mappa__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 0;
}

@media (min-width: 900px) {
  .contatti__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

/* ---------- CTA finale ---------- */
.finale {
  padding-block: var(--section);
  position: relative;
}

.finale__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.finale__title {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
}
.finale__tel {
  margin-top: clamp(22px, 4vw, 36px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 8.2vw, 5.6rem);
  line-height: 1.1;
  color: var(--rosso);
  text-decoration: none;
  border-bottom: 2px solid var(--filetto-oro);
  padding-bottom: .08em;
  transition: border-color .25s var(--ease-out);
  white-space: nowrap;
}
.finale__tel:hover { border-bottom-color: var(--oro-antico); }

.finale__row {
  margin-top: clamp(30px, 5vw, 46px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Footer (inchiostro) ---------- */
.footer {
  background: var(--inchiostro);
  color: var(--crema);
  padding-top: clamp(56px, 8vw, 88px);
}

.footer__conci {
  width: clamp(110px, 16vw, 150px);
  margin-inline: auto;
  color: var(--oro-antico);
  opacity: .8;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo { width: 92px; height: 92px; }
.footer__anime {
  margin-top: 18px;
  color: var(--crema-70);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

.footer__head {
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crema-55);
  margin-bottom: 14px;
}

.footer__nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer__link {
  display: inline-block;
  padding: 5px 0;
  color: var(--crema-70);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.footer__link:hover { color: var(--oro); }

.footer__contact p { color: var(--crema-70); }
.footer__orari { margin-top: 8px; font-size: .92rem; }
.footer__contact .footer__link { margin-top: 8px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social-btn { border-color: rgba(250, 240, 220, .35); color: var(--crema); }
.footer .social-btn:hover { border-color: var(--oro); color: var(--oro); }

.footer__bottom {
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--linea-crema);
  padding-block: 24px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .84rem;
  color: var(--crema-55);
}

@media (max-width: 759px) {
  .footer__contact { order: -1; }
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.2fr .8fr 1fr; gap: 48px; }
}

/* ---------- Reveal allo scroll (additivo, solo con JS) ---------- */
.js [data-reveal].is-revealed {
  animation: fadeUp .7s var(--ease-out) both;
  animation-delay: calc(var(--rev-i, 0) * 70ms);
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--crema);
}
.lightbox::backdrop { background: rgba(24, 12, 9, .95); }
.lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lbIn .35s var(--ease-out);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(.965); }
}

.lightbox__figure { margin: 0; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 78dvh;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
}
.lightbox__cap {
  margin-top: 14px;
  text-align: center;
  color: var(--crema-70);
  font-size: .92rem;
}

.lightbox__btn {
  position: fixed;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(24, 12, 9, .7);
  border: 1px solid rgba(250, 240, 220, .3);
  color: var(--crema);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lightbox__btn:hover { color: var(--oro); border-color: var(--oro); }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: 14px; top: 14px; }

/* ---------- Grande schermo (1600px+): tutto respira più grande ---------- */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  .hero__title { font-size: 8.2rem; }
  .arch--hero { --w: min(30vw, calc((100svh - 560px) * .72), 500px); }
  .hero__badge { --badge: 118px; }
  .hero__badge-logo { width: 56px; height: 56px; }
  .anime__title, .galleria__title, .contatti__title { font-size: 4.5rem; }
  .menu__title { font-size: 4.4rem; }
  .forno__title { font-size: 4.8rem; }
  .finale__title { font-size: 3.3rem; }
  .finale__tel { font-size: 6.2rem; }
  .anime__row { gap: 48px; }
  .anima__name { font-size: 2.05rem; }
  .anima--key .anima__name { font-size: 2.3rem; }
  .cat__name { font-size: 2.15rem; }
  body { font-size: 1.14rem; }
}

/* ---------- Cinema allo scroll (progressivo: solo dove supportato) ---------- */
@supports (animation-timeline: view()) {
  /* il forno: carrellata lenta dentro la cornice mentre attraversi la sezione */
  .forno__img {
    animation: fornoPan linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes fornoPan {
    from { transform: translateY(-3.5%) scale(1.05); }
    to { transform: translateY(3.5%) scale(1.05); }
  }
  .forno__conci, .forno__title, .forno__text {
    animation: salitaView linear both;
    animation-timeline: view();
    animation-range: entry 12% entry 48%;
  }
  .forno__title { animation-range: entry 18% entry 55%; }
  .forno__text { animation-range: entry 24% entry 62%; }

  /* la galleria si svela con wipe morbidi */
  .g-item picture {
    animation: velo linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
  @keyframes velo {
    from { clip-path: inset(12% 7% 12% 7%); }
    to { clip-path: inset(0 0 0 0); }
  }
  .g-item__cap {
    animation: salitaView linear both;
    animation-timeline: view();
    animation-range: entry 20% entry 60%;
  }

  /* le tre anime e i capitoli del menu salgono seguendo lo scroll */
  .anima, .cat {
    animation: salitaView linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
  .menu__conci {
    animation: conciView linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  @keyframes conciView {
    from { opacity: 0; transform: rotate(-10deg) scale(.85); }
    to { opacity: 1; transform: rotate(0) scale(1); }
  }

  /* uscita di scena dell'hero mentre scendi */
  .hero__inner {
    animation: uscitaHero linear both;
    animation-timeline: scroll();
    animation-range: 0vh 110vh;
  }
  @keyframes uscitaHero {
    to { transform: translateY(-44px); opacity: .2; }
  }

  @keyframes salitaView {
    from { opacity: 0; transform: translateY(52px); }
    to { opacity: 1; transform: translateY(0); }
  }

}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ribbon__track { animation: none; }
  .forno__img, .forno__conci, .forno__title, .forno__text,
  .g-item picture, .g-item__cap,
  .anima, .cat, .menu__conci,
  .hero__inner, .hero__ring,
  .arch--hero picture img { animation: none !important; }
}
