/* =========================================================
   La Spianatina — stile
   Palette: crema #FDF6EC · sabbia #F7D4A4 · mattone #69140E · notte #191019
   Font brand: Acid Green Poster (titoli), AM Majella (sottotitoli), Heebo (testi)
   -> Metti i file in assets/fonts/ con i nomi qui sotto e verranno usati
      automaticamente; altrimenti si usano i fallback Google (Lilita One / Righteous).
   ========================================================= */

@font-face {
  font-family: "Acid Green Poster";
  src: url("../fonts/AcidGreenPoster.woff2") format("woff2"),
       url("../fonts/AcidGreenPoster.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "AM Majella";
  src: url("../fonts/AMMajella.woff2") format("woff2"),
       url("../fonts/AMMajella.otf") format("opentype");
  font-display: swap;
}

:root {
  --cream: #FDF6EC;
  --sand: #F7D4A4;
  --red: #69140E;
  --red-2: #7E1A12;
  --night: #191019;
  --ink: #2a1a17;
  --muted: #6d5650;

  --f-title: "Acid Green Poster", "Lilita One", system-ui, sans-serif;
  --f-sub: "AM Majella", "Righteous", system-ui, sans-serif;
  --f-body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --header-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.center { text-align: center; }

/* grana "carta" come nell'icona social */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grain > * { position: relative; z-index: 2; }

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--f-sub);
  font-size: 1.05rem;
  letter-spacing: .04em;

  color: var(--sand);
  margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--red { color: var(--red); }

.title {
  font-family: var(--f-title);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: .98;
  color: var(--red);
  letter-spacing: .005em;
  margin-bottom: 1.2rem;

}
.title--cream, .section__head--light .title { color: var(--sand); }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--red); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-sub); font-size: 1rem; letter-spacing: .03em;
  text-decoration: none; border: 2px solid var(--bg);
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(25,16,25,.5); }
.btn--cream { --bg: var(--sand); --fg: var(--red); }
.btn--ghost { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn--ghost:hover { background: var(--sand); color: var(--red); }
.btn--small { padding: .55em 1.2em; font-size: .9rem; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s, box-shadow .35s, height .35s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; display: block; width: 210px; flex-shrink: 0; transition: width .35s var(--ease); }
.header.is-scrolled .header__logo { width: 180px; }
.header__logo img { width: 100%; height: auto; transition: opacity .3s; }
.header__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a:not(.btn) {
  color: var(--sand); text-decoration: none;
  font-family: var(--f-sub); font-size: 1rem; letter-spacing: .02em;
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__cta { --bg: var(--sand); --fg: var(--red); }

.header.is-scrolled { background: rgba(253, 246, 236, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(105,20,14,.12); height: calc(64px + env(safe-area-inset-top, 0px)); }
.header.is-scrolled .logo-light { opacity: 0; }
.header.is-scrolled .logo-dark { opacity: 1; }
.header.is-scrolled .nav a:not(.btn) { color: var(--red); }
.header.is-scrolled .nav__cta { --bg: var(--red); --fg: var(--cream); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--sand); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s, background .3s; }
.header.is-scrolled .burger span { background: var(--red); }

/* ---------- hero ---------- */
.hero {
  min-height: clamp(560px, 88svh, 880px);
  background: var(--red);
  color: var(--cream);
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute !important; inset: 0; z-index: 0 !important; }
.hero__bg .slide img { opacity: .38; filter: saturate(.85) contrast(1.05); }
.hero__bg::after { /* velo rosso per leggibilità */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(105,20,14,.35), rgba(105,20,14,.85) 75%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero__logo { width: min(820px, 92vw); margin: 0 auto 2rem; }
.hero__svg { width: 100%; height: auto; display: block; color: var(--sand); filter: drop-shadow(0 6px 30px rgba(25,16,25,.25)); overflow: visible; }
.hero__lead { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(253,246,236,.88); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(247,212,164,.5);
  display: grid; place-items: center; color: var(--sand); text-decoration: none; font-size: 1.2rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- marquee ---------- */
.band { background: var(--sand); color: var(--red); overflow: hidden; padding: 16px 0; border-block: 2px solid var(--red); }
.band__track { display: flex; width: max-content; gap: 26px; align-items: center; animation: marquee 45s linear infinite; }
.band span { font-family: var(--f-title); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; white-space: nowrap; }
.band i { font-style: normal; font-size: 1.1rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--red { background: var(--red); color: var(--cream); }
.section--dark { background: var(--night); color: rgba(253,246,236,.85); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__sub { color: var(--muted); margin: 0; }

/* bordo ondulato, richiamo alle lettere del logo */
.wave { height: 40px; margin-top: -1px; }
.wave--cream-to-sand {
  background: var(--sand);
  -webkit-mask: none;
  position: relative;
}
.wave--cream-to-sand::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'><path d='M0 0h120v18c-10 0-10 14-20 14S90 18 80 18 70 32 60 32 50 18 40 18 30 32 20 32 10 18 0 18z'/></svg>") repeat-x 0 0 / 120px 40px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'><path d='M0 0h120v18c-10 0-10 14-20 14S90 18 80 18 70 32 60 32 50 18 40 18 30 32 20 32 10 18 0 18z'/></svg>") repeat-x 0 0 / 120px 40px;
}

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--reverse .split__text { order: 2; }
.split__media { position: relative; }

.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features li { border-top: 2px solid var(--red); padding-top: 12px; display: flex; flex-direction: column; }
.features strong { font-family: var(--f-title); font-weight: 400; color: var(--red); font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; }
.features span { font-size: .9rem; color: var(--muted); }

.stamp {
  position: absolute; right: -26px; bottom: -34px; z-index: 5;
  width: clamp(110px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; padding: 18%;
  box-shadow: 0 14px 30px -12px rgba(25,16,25,.55);
  animation: spin 22s linear infinite;
}
.stamp img { position: absolute; inset: 20%; width: 60%; height: 60%; object-fit: contain;
}
@keyframes spin { to { rotate: 1turn; } }

/* ---------- carousel (riutilizzabile) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(105,20,14,.08) 0 2px, transparent 3px) 0 0 / 22px 22px,
    var(--sand);
  display: grid; place-items: center; overflow: hidden;
}
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img ~ .ph-label { display: none; }
.ph-label { /* visibile solo finché manca la foto */
  font-family: var(--f-sub); color: var(--red); opacity: .55; font-size: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ph-label::before {
  content: ""; width: 54px; height: 54px; border-radius: 14px; border: 2px dashed currentColor;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369140E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='10' r='1.6'/><path d='M21 16l-5-5-8 8'/></svg>") center / 26px no-repeat;
}

.carousel__btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--red); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 4px;
  box-shadow: 0 8px 20px -8px rgba(25,16,25,.45);
  transition: transform .2s, background .2s;
}
.carousel__btn:hover { transform: scale(1.08); background: var(--sand); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

.carousel__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.carousel__dots button {
  width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: rgba(253,246,236,.6); transition: width .3s var(--ease), background .3s;
}
.carousel__dots button.is-active { width: 28px; background: var(--cream); }
.carousel__dots button:not(.is-active) { box-shadow: inset 0 0 0 1px rgba(105,20,14,.3); }

/* variante card (chi siamo, catering) */
.carousel--card .carousel__track { border-radius: var(--radius); }
.carousel--card .slide { aspect-ratio: 4 / 5; }
.carousel--tall .slide { aspect-ratio: 3 / 4; }

/* variante gallery: più slide visibili */
.carousel--gallery { margin: 0 0 48px; }
.carousel--gallery .carousel__track { gap: 18px; padding: 0 clamp(16px, 6vw, 80px); scroll-padding: 0 clamp(16px, 6vw, 80px); }
.carousel--gallery .slide { flex-basis: clamp(240px, 30vw, 380px); aspect-ratio: 4 / 5; border-radius: var(--radius); scroll-snap-align: start; }
.carousel--gallery .slide:nth-child(even) { aspect-ratio: 4 / 5; margin-top: 36px; }

/* variante fade (hero) */
.carousel--fade .carousel__track { display: block; height: 100%; overflow: hidden; }
.carousel--fade .slide { position: absolute; inset: 0; background: none; opacity: 0; transition: opacity 1.4s ease; }
.carousel--fade .slide.is-active { opacity: 1; }
.carousel--fade .slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- menu ---------- */
.tabs-wrap { display: flex; justify-content: center; margin: 0 auto 22px; }
.tabs {
  /* le schede vanno a capo: tutte le categorie restano sempre visibili */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; max-width: 100%;
  background: rgba(105,20,14,.08); border-radius: 30px;
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  padding: .7em 1.25em; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-sub); font-size: 1rem; color: var(--red);
  display: inline-flex; align-items: center; gap: .5em;
  transition: background .25s, color .25s;
}
.tab:hover { background: rgba(105,20,14,.1); }
.tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tab.is-active { background: var(--red); color: var(--cream); }
.tab__n { font-family: var(--f-body); font-weight: 500; font-size: .7rem; min-width: 1.7em; padding: .1em .45em; border-radius: 99px; background: rgba(105,20,14,.12); font-variant-numeric: tabular-nums; }
.tab.is-active .tab__n { background: rgba(247,212,164,.25); color: var(--sand); }

/* filtro vegetariano */
.filters { display: flex; justify-content: center; margin: 0 auto 36px; }

/* gruppi e piatti */
.menu-panel { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.menu-group + .menu-group { margin-top: 44px; }
.menu-group__title {
  font-family: var(--f-title); color: var(--red);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1; margin-bottom: 4px;
  display: flex; align-items: center; gap: 14px;
}
.menu-group__title::after { content: ""; flex: 1; height: 2px; background: rgba(105,20,14,.25); border-radius: 2px; }
.menu-note { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.menu-panel > .menu-note { text-align: center; margin-bottom: 18px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.dish { padding: 18px 10px; margin-inline: -10px; border-bottom: 1px dashed rgba(105,20,14,.28); border-radius: 10px; transition: background .2s; min-width: 0; }
@media (hover: hover) { .dish:hover { background: rgba(253,246,236,.45); } }
.dish__name { font-family: var(--f-title); font-weight: 400; font-size: 1.55rem; line-height: 1.1; color: var(--red); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; text-wrap: balance; }
.dish p { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
.dish .dish__ask { font-size: .82rem; font-style: italic; margin-top: 8px; }
.allergens { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.al {
  display: inline-flex; align-items: center; gap: .4em;
  font: 500 .74rem/1 var(--f-body); letter-spacing: .02em; color: var(--red);
  padding: .34em .75em .34em .5em; border-radius: 99px; background: rgba(105,20,14,.09);
}
.al__ico {
  width: 1.45em; height: 1.45em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.al--info { background: transparent; box-shadow: inset 0 0 0 1px rgba(105,20,14,.3); }
.tag {
  font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: var(--sand); padding: 3px 8px; border-radius: 99px;
}
.tag--veg { background: #4d5a23; color: var(--cream); }

.allergen-note {
  margin: 56px auto 0; max-width: 760px; text-align: center;
  padding-top: 26px; border-top: 2px solid rgba(105,20,14,.2);
}
.allergen-note h3 { font-family: var(--f-sub); color: var(--red); font-size: 1.15rem; margin-bottom: .5rem; }
.allergen-note p { color: var(--ink); font-size: .95rem; margin-bottom: .5rem; }
.allergen-note .allergen-note__small { color: var(--muted); font-size: .85rem; }

/* ---------- catering ---------- */
.section--dark .title { color: var(--sand); }
.steps { list-style: none; padding: 0; margin: 2rem 0 2.4rem; display: grid; gap: 18px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps li > span {
  font-family: var(--f-title); font-size: 1.4rem; color: var(--night);
  background: var(--sand); width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
}
.steps strong { display: block; font-family: var(--f-sub); font-weight: 400; color: var(--cream); font-size: 1.1rem; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.card { background: #fff8ef; border: 2px solid rgba(105,20,14,.12); border-radius: var(--radius); padding: 28px; }
.card__title { font-family: var(--f-title); font-size: 1.9rem; color: var(--red); margin-bottom: .6rem; }
.card p { margin: 0 0 .8rem; }
.link { color: var(--red); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(105,20,14,.2); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.socials a {
  font-family: var(--f-sub); font-size: .9rem; text-decoration: none;
  padding: .4em 1em; border-radius: 99px; border: 2px solid var(--red); color: var(--red); transition: background .2s, color .2s;
}
.socials a:hover { background: var(--red); color: var(--cream); }
.map {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--red);
  border-radius: var(--radius); border: 2px solid rgba(105,20,14,.12); padding: 26px 28px;
  background: radial-gradient(circle at 30% 30%, rgba(105,20,14,.08) 0 2px, transparent 3px) 0 0 / 22px 22px, var(--sand);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.map:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(25,16,25,.5); }
.map__pin { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--red); box-shadow: inset 0 0 0 14px var(--red), inset 0 0 0 30px var(--sand); }
.map__text { display: grid; gap: 2px; min-width: 0; }
.map__text strong { font-family: var(--f-title); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; }

/* ---------- footer ---------- */
.footer { background: var(--red); color: var(--sand); padding: 64px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.footer__logo { width: min(360px, 80vw); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.footer__nav a { font-family: var(--f-sub); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { font-size: .85rem; opacity: .7; margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { transition: transform .8s var(--ease); }
.js .reveal:not(.is-in) { transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .split__media { max-width: 520px; width: 100%; margin: 0 auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--red);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--f-title); font-size: 2.4rem; color: var(--sand) !important; }
  body .nav .nav__cta, body .header.is-scrolled .nav__cta { --bg: var(--sand); --fg: var(--red); margin-top: 10px; font-size: 1.1rem; padding: .8em 2em; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .burger span { background: var(--sand) !important; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .header .logo-light { opacity: 1; position: relative; z-index: 2; }
  body.nav-open .header .logo-dark { opacity: 0; }
  body.nav-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .header__logo, .header.is-scrolled .header__logo { width: 158px; z-index: 2; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .carousel__btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .stamp { right: -6px; bottom: -24px; }
  .dish__name { font-size: 1.35rem; }
  .tab { padding: .6em .95em; font-size: .92rem; }
  .tabs { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-in) { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Elementi aggiunti: animazioni brevi e funzionali
   ========================================================= */

/* entrata hero: una volta sola, breve */
.hero-in { animation: fadeUp .8s var(--ease) both; }
.hero__content > .hero-in:nth-child(1) { animation-delay: .05s; }
.hero__content > .hero-in:nth-child(3) { animation-delay: .9s; }
.hero__content > .hero-in:nth-child(4) { animation-delay: 1s; }
.hero__content > .hero-in:nth-child(5) { animation-delay: 1.1s; }
.hero__word .lt { transform-box: fill-box; transform-origin: 50% 100%; animation: letterIn .7s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.15s + var(--i) * .045s); }
.hero__tag { animation: fadeUp .7s var(--ease) .85s both; }
@keyframes letterIn { from { opacity: 0; transform: translateY(40%) scaleY(.7); } }

/* stato apertura */
.open-status {
  display: inline-flex; align-items: center; gap: 10px; margin: 1.6rem 0 0;
  font-family: var(--f-sub); font-size: .95rem; color: var(--sand);
  background: rgba(25,16,25,.25); padding: .45em 1.1em; border-radius: 99px;
}
.open-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #c9a98a; flex-shrink: 0; }
.open-status.is-open .open-status__dot { background: #8fd16a; box-shadow: 0 0 0 0 rgba(143,209,106,.6); animation: pulse 2s infinite; }
.open-status.is-closed .open-status__dot { background: #e0806a; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(143,209,106,0); } 100% { box-shadow: 0 0 0 0 rgba(143,209,106,0); } }
.open-status--dark { margin: 0 0 .8rem; color: var(--red); background: rgba(105,20,14,.08); }
.open-status--dark.is-open .open-status__dot { background: #4f8a2e; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--red); font-weight: 700; }

/* spianata del mese */
.special {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch;
  background: var(--red); color: var(--cream); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  margin: 0 auto 56px; max-width: 960px;
  box-shadow: 0 24px 50px -28px rgba(25,16,25,.6);
}
.special__media { position: relative; min-height: 260px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(105,20,14,.08) 0 2px, transparent 3px) 0 0 / 22px 22px, var(--sand); }
.special__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.special__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.special__badge { align-self: flex-start; font-family: var(--f-sub); font-size: .9rem; background: var(--sand); color: var(--red); padding: .3em .9em; border-radius: 99px; margin-bottom: 14px; }
.special__title { font-family: var(--f-title); font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; color: var(--sand); margin-bottom: 12px; }
.special__body p { color: rgba(253,246,236,.85); }
.special__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.special__link { color: var(--sand); font-family: var(--f-sub); text-underline-offset: 4px; }
.special__sticker {
  position: absolute; top: 16px; left: 16px; width: 82px; height: 82px; border-radius: 50%;
  background: var(--night); color: var(--sand); display: grid; place-items: center; text-align: center;
  font-family: var(--f-sub); font-size: .82rem; line-height: 1.1; rotate: -12deg;
}

/* filtro veg */
.veg-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto; cursor: pointer; color: var(--red); font-size: .95rem; font-weight: 400; user-select: none; width: fit-content; }
.veg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.veg-toggle__switch { width: 44px; height: 24px; border-radius: 99px; background: rgba(105,20,14,.2); position: relative; transition: background .25s; }
.veg-toggle__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.veg-toggle input:checked + .veg-toggle__switch { background: #4d5a23; }
.veg-toggle input:checked + .veg-toggle__switch::after { transform: translateX(20px); }
.veg-toggle input:focus-visible + .veg-toggle__switch { outline: 2px solid var(--red); outline-offset: 2px; }
.menu-empty { text-align: center; color: var(--muted); font-style: italic; margin: 0 auto 24px; max-width: 520px; }


/* galleria trascinabile */
.carousel--drag .carousel__track { cursor: grab; }
.carousel--drag .carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel--drag .carousel__track.is-dragging img { pointer-events: none; }
.carousel--gallery .slide img { transition: transform .5s var(--ease); }
@media (hover: hover) { .carousel--gallery .slide:hover img { transform: scale(1.04); } }

/* banda CTA */
.cta { background: var(--red); color: var(--cream); padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-family: var(--f-title); font-size: clamp(3.4rem, 11vw, 8rem); line-height: .9; color: var(--sand); margin-bottom: 1rem; text-wrap: balance; }
.cta__q { display: inline-block; }
.cta__lead { max-width: 480px; color: rgba(253,246,236,.85); margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta__phone { font-family: var(--f-sub); font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--sand); letter-spacing: .03em; font-variant-numeric: tabular-nums; user-select: all; }
.cta__deco { position: absolute !important; z-index: 0 !important; width: clamp(220px, 30vw, 380px); right: -60px; bottom: -80px; opacity: .08; rotate: -14deg; pointer-events: none; }

/* bottone ordina flottante */
.fab {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--cream); text-decoration: none;
  padding: 12px 18px 12px 14px; border-radius: 99px;
  font-family: var(--f-sub);
  box-shadow: 0 12px 28px -10px rgba(25,16,25,.6);
  border: 2px solid var(--sand);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.fab svg { width: 22px; height: 22px; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--red-2); }
body.nav-open .fab { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .special { grid-template-columns: 1fr; }
  .special__media { min-height: 200px; aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero__word .lt, .hero__tag { animation: none !important; opacity: 1; }
}

/* icona nei bottoni (es. Instagram) */
.btn__ico { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* =========================================================
   Pagine legali (privacy, cookie)
   ========================================================= */
.legal-page { background: var(--cream); }
.legal { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 48px) 0 96px; }
.legal__inner { max-width: 780px; }
.legal .title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.legal__lead { font-size: 1.12rem; color: var(--ink); max-width: 62ch; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.legal h2 { font-family: var(--f-sub); color: var(--red); font-size: 1.3rem; margin: 2.2rem 0 .7rem; text-wrap: balance; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: .5em; }
.legal li::marker { color: var(--red); }
.legal__table { overflow-x: auto; margin: 0 0 1em; border: 1px solid rgba(105,20,14,.18); border-radius: 14px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px dashed rgba(105,20,14,.2); vertical-align: top; }
.legal th { font-weight: 500; color: var(--red); background: rgba(105,20,14,.06); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: .9em; color: var(--red); }
.todo { background: rgba(247,212,164,.7); border-bottom: 1.5px dashed var(--red); padding: 0 .2em; border-radius: 3px; }
.footer .todo { background: transparent; border-bottom-color: var(--sand); }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__links a[aria-current="page"] { text-decoration: none; opacity: .7; }
.legal-page .header .btn { --bg: var(--red); --fg: var(--cream); }
