/* ============ BASE ============ */
:root {
  --accent: #F9C711;
  --accent-ink: #111;
  --bg: #0d0d0d;
  --bg-2: #151515;
  --bg-3: #1d1d1d;
  --text: #f4f1ea;
  --muted: #a9a49a;
  --line: rgba(255, 255, 255, .1);
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --hand: "Permanent Marker", cursive;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* evita lo scroll orizzontale anche su iPhone */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
section { position: relative; }

.title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: .95;
  letter-spacing: .5px;
  color: var(--accent);
  margin: 0 0 28px;
}
.accent { color: var(--accent); }
.eyebrow {
  font-family: var(--hand);
  color: var(--text);
  font-size: 1.35rem;
  margin: 0 0 6px;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ============ BOTTONI ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;
  padding: 15px 30px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 10px 30px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }
.btn-sm { padding: 9px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: height .35s;
}
/* sfondo sfocato su uno pseudo-elemento: backdrop-filter sull'header
   intrappolerebbe il menù mobile (position: fixed) dentro la barra */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .35s;
}
.header.scrolled { height: 64px; }
.header.scrolled::before { opacity: 1; }
.brand, .burger-btn { position: relative; z-index: 2; }
body.menu-open { overflow: hidden; }
.brand {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: var(--accent);
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: 1.5px;
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.burger-btn { display: none; }

/* ============ HERO ============ */
.hero {
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
}
.hero-slides, .hero-slides div, .hero-shade { position: absolute; inset: 0; }
.hero-slides div {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero-slides div.active { opacity: 1; transform: scale(1); }
.hero-shade {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-kicker {
  font-family: var(--hand); font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 10px; transform: rotate(-3deg);
}
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: .9; margin: 0 0 36px;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.hero-title span { display: inline-block; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-content > * { opacity: 0; transform: translateY(30px); animation: up .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-content > :nth-child(2) { animation-delay: .15s; }
.hero-content > :nth-child(3) { animation-delay: .3s; }
@keyframes up { to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; translate: -50% 0; z-index: 2;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(16px); } }

/* ============ TICKER ============ */
/* il wrapper taglia i bordi del nastro inclinato: niente scroll orizzontale */
.ticker-wrap {
  overflow: hidden; position: relative; z-index: 3;
  margin: -40px 0 -30px; padding: 30px 0;
  pointer-events: none;
}
.ticker {
  background: var(--accent); color: var(--accent-ink);
  overflow: hidden; padding: 14px 0;
  transform: rotate(-1.5deg) scale(1.03);
}
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker span {
  font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: 1px;
  padding: 0 26px; white-space: nowrap;
}
.ticker span::after { content: "★"; margin-left: 52px; font-size: 1.1rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ ABOUT ============ */
.about { padding: clamp(90px, 12vw, 150px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-text p { color: var(--muted); margin: 0 0 18px; font-size: 1.1rem; }
.about-text p:first-of-type { color: var(--text); font-size: 1.25rem; font-weight: 600; }
.about-text .btn { margin-top: 14px; }
.about-media { position: relative; padding: 0 0 60px 40px; }
.about-img-main { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 85%; margin-left: auto; }
.about-img-small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--bg);
}
.stamp {
  position: absolute; top: -26px; left: 10px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; line-height: 1.05;
  transform: rotate(-12deg);
  animation: wobble 6s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.05); } }

/* ============ MENU ============ */
.menu { padding: clamp(80px, 10vw, 130px) 0; background: var(--bg-2); }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 2px solid var(--line);
  transition: .2s;
}
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dish {
  background: var(--bg-3); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  animation: pop .5s cubic-bezier(.2,.8,.2,1) backwards; /* "backwards": a fine animazione l'hover torna fluido */
}
.dish:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); }
@keyframes pop { from { opacity: 0; transform: translateY(24px); } }
.dish-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dish:hover .dish-img img { transform: scale(1.08); }
.dish-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 11px; border-radius: 999px;
}
.dish-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.55rem; margin: 0; letter-spacing: .5px; line-height: 1.1; }
.price { font-family: var(--display); color: var(--accent); font-size: 1.4rem; white-space: nowrap; }
.dish p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.menu-cta { display: flex; gap: 14px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }

/* ============ FIRE ============ */
.fire { padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; text-align: center; }
.fire-bg {
  position: absolute; inset: -20% 0; z-index: 0;
  background: url("../img/griglia-fuoco.jpg") center / cover;
  will-change: transform;
}
.fire::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13,13,13,.75), rgba(13,13,13,.55), rgba(13,13,13,.85)); }
.fire-content { position: relative; z-index: 1; }
.fire .title { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; color: var(--accent); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; }
.stat span { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: .8rem; }

/* ============ GALLERY ============ */
.gallery-sec { padding: clamp(80px, 10vw, 130px) 0 0; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 19vw;
  grid-template-areas: "a a b c" "a a d c" "e f f g" "h i i g";
  gap: 8px; padding: 0 8px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: 6px; cursor: zoom-in; position: relative; }
.gallery figure:nth-child(1) { grid-area: a; }
.gallery figure:nth-child(2) { grid-area: b; }
.gallery figure:nth-child(3) { grid-area: c; }
.gallery figure:nth-child(4) { grid-area: d; }
.gallery figure:nth-child(5) { grid-area: e; }
.gallery figure:nth-child(6) { grid-area: f; }
.gallery figure:nth-child(7) { grid-area: g; }
.gallery figure:nth-child(8) { grid-area: h; }
.gallery figure:nth-child(9) { grid-area: i; }
.gallery figure:nth-child(n+10) { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .4s; filter: saturate(.9); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.15); }

/* ============ EVENTI ============ */
.events { padding: clamp(80px, 10vw, 130px) 0; }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: .3s; position: relative; overflow: hidden;
}
.event::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform .4s cubic-bezier(.2,.8,.2,1); z-index: -1;
}
.event { z-index: 0; }
.event:hover { color: var(--accent-ink); border-color: var(--accent); }
.event:hover::before { transform: none; }
.event:hover p, .event:hover .event-day { color: var(--accent-ink); }
.event-day { font-family: var(--hand); color: var(--accent); font-size: 1.2rem; }
.event h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: 6px 0 10px; line-height: 1; }
.event p { margin: 0; color: var(--muted); font-size: .98rem; transition: color .3s; }

/* ============ RECENSIONI ============ */
.reviews { padding: 0 0 clamp(80px, 10vw, 130px); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { margin: 0; background: var(--bg-2); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.review::before {
  content: "“"; position: absolute; top: -10px; right: 22px;
  font-family: var(--display); font-size: 6rem; color: var(--accent); opacity: .25; line-height: 1;
}
.stars { color: var(--accent); letter-spacing: 3px; font-size: 1.1rem; }
.review p { margin: 12px 0 18px; font-size: 1.05rem; }
.review cite { font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; color: var(--muted); }

/* ============ PRENOTA ============ */
.book { padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; }
.book-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,.97) 35%, rgba(13,13,13,.8)), url("../img/neon-bar.jpg") center / cover;
}
.book-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.book-info > p { color: var(--muted); font-size: 1.1rem; }
.phone-link { display: inline-block; font-family: var(--display); font-size: 2rem; color: var(--text); margin: 8px 0 40px; border-bottom: 3px solid var(--accent); }
.takeaway { border-top: 2px solid var(--line); padding-top: 30px; }
.takeaway h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: 0; color: var(--accent); }
.takeaway p { color: var(--muted); margin: 4px 0 18px; }
.delivery { display: flex; gap: 10px; flex-wrap: wrap; }
.delivery a {
  border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px;
  font-weight: 800; font-size: .9rem; transition: .2s;
}
.delivery a:hover { border-color: var(--accent); color: var(--accent); }

.book-form {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-form label { display: grid; gap: 6px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.book-form .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.book-form input, .book-form select, .book-form textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400;
  background: var(--bg-3); color: var(--text);
  border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%;
  color-scheme: dark; transition: border-color .2s;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--accent); }
.form-hint { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ============ DOVE ============ */
.where { padding: clamp(80px, 10vw, 130px) 0; background: var(--bg-2); }
.where-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.address { font-size: 1.25rem; font-weight: 600; margin: 0 0 24px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { color: var(--accent); font-weight: 800; }
.open-now { margin-top: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.open-now.is-open { color: #4ade80; }
.open-now.is-closed { color: #f87171; }
.map { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ============ FOOTER ============ */
.footer { padding: 70px 0 40px; text-align: center; border-top: 1px solid var(--line); }
.brand-lg { font-size: clamp(3rem, 8vw, 5.5rem); display: inline-block; margin-bottom: 26px; }
.socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); transition: .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.footer-links a { text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: 1.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copy, .credit { color: var(--muted); font-size: .85rem; margin: 4px 0; }

/* ============ MOBILE BAR ============ */
.mobile-bar { display: none; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 10px 20px; line-height: 1;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; translate: 0 -50%; }
.lb-next { right: 10px; top: 50%; translate: 0 -50%; }
.lightbox button:hover { color: var(--accent); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (max-width: 820px) {
  body { padding-bottom: 66px; font-size: 16px; }
  .burger-btn {
    display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; z-index: 2;
  }
  .burger-btn span { display: block; width: 28px; height: 3px; background: var(--text); border-radius: 2px; transition: .3s; }
  .burger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger-btn.open span:nth-child(2) { opacity: 0; }
  .burger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 2.4rem; font-weight: 400; letter-spacing: 1px; }

  .about-grid, .book-grid, .where-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; padding-left: 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; grid-template-areas: none; }
  .gallery figure:nth-child(n) { grid-area: auto; }
  .gallery figure:nth-child(1) { grid-column: span 2; }
  .ticker span { font-size: 1.25rem; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 60;
    background: #000; border-top: 2px solid var(--accent);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: grid; justify-items: center; gap: 3px; padding: 9px 0 10px;
    font-family: var(--display); text-transform: uppercase; font-size: .85rem; letter-spacing: 1px;
    color: var(--accent);
  }
  .mobile-bar a:nth-child(2) { background: var(--accent); color: var(--accent-ink); }
  .mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 560px) {
  .menu-grid, .events-grid { grid-template-columns: 1fr; }
  .book-form .row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .stamp { width: 100px; height: 100px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-content > * { opacity: 1; transform: none; }
}
