/* =========================================================
   LA BUCA STRACA · style.css · v2
   Verde bosco profondo + accento brace del forno a legna
   ========================================================= */

:root {
  --bg: #142019;
  --bg-2: #1a2a20;
  --surface: #223428;
  --line-dark: rgba(243, 236, 220, 0.12);

  --cream: #f3ecdc;
  --paper: #faf5ea;
  --ink: #15201a;
  --line: rgba(21, 32, 26, 0.12);

  --text-dark: rgba(243, 236, 220, 0.75);
  --muted: #5b6a5d;

  --accent: #d9733f;
  --accent-hover: #c1612f;
  --gold: #e3b66b;
  --sage: #9bb287;

  --open: #6fcf6a;
  --closed: #e2674d;
  --soon: #f0b44a;

  --font-title: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
body.nav-open { overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--bg); color: var(--cream); }
.section--accent { background: var(--accent); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--accent .eyebrow { color: var(--ink); }

.section__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}
.section__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.section--dark .section__title em { color: var(--gold); }
.section--accent .section__title em { color: var(--cream); }
.section__lead { margin: -26px 0 44px; font-size: 1.1rem; opacity: .8; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--white, #fff); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--bg); color: var(--cream); }
.btn--dark:hover { background: var(--surface); }
.btn--small { padding: 11px 22px; font-size: 14px; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 1.2em; }
.link-arrow:hover { gap: 16px; }

/* ---------- Social ---------- */
.social { display: flex; gap: 10px; }
.social--center { justify-content: center; }
.social__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-dark);
  color: var(--cream);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.social__btn svg { width: 20px; height: 20px; }
.social__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

/* ---------- Header a capsula ---------- */
.header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 10px 10px 26px;
  border-radius: 999px;
  background: rgba(20, 32, 25, .45);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--cream);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled .header__bar {
  background: rgba(20, 32, 25, .9);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.6);
}
.logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.logo__mark { font-family: var(--font-title); font-style: italic; font-size: 1.4rem; color: var(--gold); }
.logo__name { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a {
  font-size: 15px;
  font-weight: 500;
  opacity: .85;
  position: relative;
  transition: opacity .3s;
}
.nav > a:hover { opacity: 1; }
.nav > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease);
}
.nav > a:hover::after { transform: translateX(-50%) scale(1); }
.nav__extra { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); position: relative; }
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; }
.hero__video, .hero__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.4s var(--ease);
}
.hero__video { object-fit: cover; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__slide.is-current { opacity: 1; animation: kenburns 9s linear both; }

.hero.is-video .hero__slides { opacity: 0; }
.hero.is-slides .hero__video { opacity: 0; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,22,17,.55) 0%, rgba(14,22,17,.1) 35%, rgba(14,22,17,.85) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(217,115,63,.28), transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 120px;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 26px 0 14px;
  animation: rise 1s var(--ease) both .1s;
}
.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 10rem);
  line-height: .9;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  animation: rise 1.1s var(--ease) both .2s;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  max-width: 520px;
  opacity: .92;
  margin-bottom: 36px;
  animation: rise 1.1s var(--ease) both .35s;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1.1s var(--ease) both .5s; }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  right: 40px;
  width: 2px;
  height: 64px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
  z-index: 2;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease) infinite;
}

/* ---------- Badge aperto/chiuso ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(20,32,25,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  animation: rise 1s var(--ease) both;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.status.is-open .status__dot { background: var(--open); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: var(--closed); }
.status.is-soon .status__dot { background: var(--soon); }

/* ---------- Tabs (anime + menu) ---------- */
.anime__tabs, .menu__tabs { display: flex; gap: 10px; margin-bottom: 44px; }
.anime__tab, .menu__tab {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  transition: all .3s var(--ease);
}
.anime__tab { color: var(--muted); }
.anime__tab:hover { color: var(--ink); border-color: var(--ink); }
.anime__tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.menu__tab { border-color: var(--line-dark); color: var(--text-dark); }
.menu__tab:hover { color: var(--cream); border-color: var(--cream); }
.menu__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Tre anime ---------- */
.anima { display: none; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.anima.is-active { display: grid; animation: fadeIn .6s var(--ease); }
.anima__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.anima__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.anima:hover .anima__media img { transform: scale(1.05); }
.anima__text h3 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.anima__text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.anima__list { margin-bottom: 30px; }
.anima__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.anima__list li span:last-child { color: var(--accent); font-weight: 700; }

/* ---------- Menu ---------- */
.menu__tabs {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.menu__tabs::-webkit-scrollbar { display: none; }

.allergeni { margin-bottom: 30px; }
.allergeni[hidden] { display: none; }
.allergeni__toggle { font-weight: 600; color: var(--gold); padding: 6px 0; }
.allergeni__panel { margin-top: 12px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.allergeni__hint { font-weight: 600; margin-bottom: 12px; }
.allergeni__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; transition: all .25s; }
.chip.is-active { background: var(--closed); border-color: var(--closed); color: #fff; text-decoration: line-through; }
.allergeni__note { font-size: 13px; color: var(--text-dark); }

.menu__list { display: grid; gap: 12px; }
.menu__group {
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  animation: fadeIn .5s var(--ease);
}
.menu__group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  transition: background .3s;
}
.menu__group-head:hover { background: rgba(255,255,255,.03); }
.menu__group-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
  flex: 1;
}
.menu__group-count { font-size: 14px; color: var(--text-dark); }
.menu__group-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  position: relative;
  flex-shrink: 0;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.menu__group-icon::before, .menu__group-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.menu__group-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.menu__group.is-open .menu__group-icon { background: var(--accent); border-color: var(--accent); }
.menu__group.is-open .menu__group-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.menu__group-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.menu__group.is-open .menu__group-body { grid-template-rows: 1fr; }
.menu__group-inner { overflow: hidden; }
.menu__group-note { padding: 0 26px 8px; font-size: 14px; color: var(--gold); font-style: italic; }

.piatti { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 0 26px 18px; }
.piatto { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.piatto__head { display: flex; align-items: baseline; gap: 12px; }
.piatto__name { font-weight: 700; font-size: 16px; }
.piatto__line { flex: 1; border-bottom: 1px dotted rgba(243,236,220,.25); transform: translateY(-4px); min-width: 16px; }
.piatto__price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.piatto__desc { font-size: 14.5px; color: var(--text-dark); margin-top: 3px; line-height: 1.45; }
.piatto__allergeni { font-size: 12.5px; color: var(--sage); margin-top: 5px; }

.menu__empty { padding: 40px 0; color: var(--text-dark); text-align: center; }
.menu__notes { margin-top: 30px; font-size: 14px; color: var(--text-dark); }
.menu__notes p + p { margin-top: 6px; }

/* ---------- Eventi ---------- */
.eventi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evento {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.evento:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.evento img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 1s var(--ease); }
.evento:hover img { transform: scale(1.05); }
.evento__body { padding: 26px; }
.evento__tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.evento h3 { font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; margin: 8px 0; letter-spacing: -0.01em; }
.evento p { font-size: 15px; color: var(--muted); }

/* ---------- Galleria carosello ---------- */
.galleria { overflow: hidden; }
.galleria__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel__controls { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
.carousel__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  display: grid;
  place-items: center;
  transition: background .3s, border-color .3s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel__counter { font-family: var(--font-title); font-size: 1.2rem; min-width: 64px; text-align: center; color: var(--text-dark); }
.carousel__counter span:first-child { color: var(--cream); font-weight: 600; }

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px));
  scroll-padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px));
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 min(68vw, 760px);
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.carousel__slide:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 15, 12, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  animation: fadeIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-height: 100%; max-width: 100%; border-radius: var(--radius); object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  transition: background .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Prenota ---------- */
.prenota__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.prenota__intro p { font-size: 1.1rem; }
.prenota__alt { margin-top: 30px; }
.prenota__alt .link-arrow { color: var(--ink); margin-top: 8px; font-size: 1.1rem; }

.form {
  background: var(--paper);
  color: var(--ink);
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(60, 20, 0, .55);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,115,63,.18);
}
.form__error { color: #b8432b; font-size: 14px; font-weight: 600; }
.form__error:empty { display: none; }

/* ---------- Contatti ---------- */
.contatti { background: var(--bg-2); }
.contatti__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.contatti__list li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 4px; }
.contatti__label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.contatti__list a { font-size: 1.15rem; font-weight: 500; width: fit-content; transition: color .25s; }
.contatti__list a:hover { color: var(--gold); }
.contatti__social { padding: 20px 0; display: grid; gap: 12px; }

.orari { margin-top: 20px; }
.orari h3 { font-family: var(--font-title); font-weight: 600; font-size: 1.7rem; margin-bottom: 10px; }
.orari__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 10px; }
.orari__day { font-weight: 600; }
.orari__time { color: var(--text-dark); text-align: right; }
.orari__list li.is-today { background: rgba(217,115,63,.16); }
.orari__list li.is-today .orari__day::after { content: " · oggi"; font-weight: 500; color: var(--accent); }

.contatti__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; box-shadow: var(--shadow); }
.contatti__map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #0e1712; color: var(--text-dark); padding: 64px 0 70px; text-align: center; font-size: 14px; }
.footer__brand { font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; color: var(--cream); letter-spacing: -0.02em; margin-bottom: 18px; }
.footer__brand em { font-style: italic; font-weight: 400; color: var(--accent); }
.footer .social { margin-bottom: 22px; }
.footer p + p { margin-top: 4px; }

/* ---------- Barra mobile ---------- */
.mobilebar { display: none; }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,207,106,.7); }
  70% { box-shadow: 0 0 0 10px rgba(111,207,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,207,106,0); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .nav { gap: 18px; }
  .nav > a { font-size: 14px; }
  .anima, .prenota__inner, .contatti__inner { grid-template-columns: 1fr; gap: 44px; }
  .eventi__grid { grid-template-columns: 1fr 1fr; }
  .piatti { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  body { padding-bottom: 76px; font-size: 16px; }
  .section { padding: 84px 0; }
  .container { padding: 0 20px; }
  .header { top: 10px; left: 10px; right: 10px; }
  .header__bar { padding: 8px 8px 8px 20px; gap: 10px; }
  .header__cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 100px 28px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav > a { font-family: var(--font-title); font-weight: 600; font-size: 2.4rem; opacity: 1; letter-spacing: -0.02em; }
  .nav > a::after { display: none; }
  .nav__extra { display: grid; gap: 18px; margin-top: 30px; width: 100%; }
  .nav__extra .btn { width: 100%; }
  .nav__phone { font-weight: 600; color: var(--gold); }
  body.nav-open .header__bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .logo__mark { display: none; }

  .hero__content { padding-bottom: 90px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1; }

  .anime__tabs { overflow-x: auto; scrollbar-width: none; }
  .anime__tabs::-webkit-scrollbar { display: none; }

  .menu__group-head { padding: 18px 20px; }
  .menu__group-note { padding: 0 20px 8px; }
  .piatti { padding: 0 20px 14px; }

  .eventi__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .eventi__grid::-webkit-scrollbar { display: none; }
  .evento { flex: 0 0 82%; scroll-snap-align: start; }

  .galleria__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .carousel__controls { margin-bottom: 28px; }
  .carousel__track { gap: 12px; padding: 0 20px; scroll-padding: 0 20px; }
  .carousel__slide { flex-basis: 84vw; aspect-ratio: 4 / 5; }

  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .contatti__map, .contatti__map iframe { min-height: 320px; }

  .lightbox { padding: 70px 12px; }
  .lightbox__nav { bottom: 16px; top: auto; }
  .lightbox__nav--prev { left: calc(50% - 66px); }
  .lightbox__nav--next { right: calc(50% - 66px); }

  .mobilebar {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20,32,25,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
  }
  .mobilebar__btn {
    text-align: center;
    padding: 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line-dark);
    font-weight: 700;
    font-size: 15px;
  }
  .mobilebar__btn--main { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* ---------- Accessibilità ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}