/* ZiaMamù — pop modern */

:root {
  --nero: #111111;
  --crema: #fdf5e6;
  --crema-2: #f7ead0;
  --pistacchio: #8fc24a;
  --rosso: #e23b2b;
  --arancio: #f08a1e;
  --giallo: #f5cf3a;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow: 0 10px 0 0 var(--nero);
  --shadow-sm: 0 6px 0 0 var(--nero);

  --max: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* font stacks — matched to PDF menu typography */
  --font-display: 'Funnel Display', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* la nav è sticky (~76px): compensa il salto alle ancore
     così la sezione non finisce nascosta sotto l'header */
  scroll-padding-top: 96px;
}

body {
  background: var(--crema);
  color: var(--nero);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

h2 {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.1;
}

p { margin: 0 0 1em 0; }

/* ───────── NAV ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad-x);
  background: var(--crema);
  border-bottom: 2px solid var(--nero);
}

.nav__brand { display: flex; align-items: center; }

.nav__logo {
  height: 30px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--rosso);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--nero);
  color: var(--crema);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--rosso); transform: translateY(-2px); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ───────── HERO ───────── */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--pad-x) clamp(60px, 8vw, 100px);
  text-align: center;
}

.logo-mark {
  margin: 0;
  display: flex;
  justify-content: center;
}
.logo-mark img {
  width: min(900px, 86%);
  height: auto;
  display: block;
}

.hero__claim {
  margin: 24px auto 36px;
  max-width: 520px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* stickers floating */
.hero__sticker {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--nero);
  background: var(--giallo);
  transform: rotate(-8deg);
  white-space: nowrap;
}
.hero__sticker--1 { top: 6%; left: 4%; background: var(--pistacchio); transform: rotate(-9deg); }
.hero__sticker--2 { top: auto; bottom: 30%; right: 4%; background: var(--rosso); color: var(--crema); transform: rotate(7deg); }
.hero__sticker--3 { bottom: 8%; left: 6%; background: var(--arancio); transform: rotate(5deg); }

@media (max-width: 720px) {
  .hero__sticker { font-size: 1.05rem; padding: 5px 13px; }
  .hero__sticker--1 { top: 2%; left: 4%; }
  .hero__sticker--2 { top: 4%; bottom: auto; right: 4%; }
  .hero__sticker--3 { display: none; }
}

/* ───────── BUTTONS ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--nero);
  background: var(--crema);
  color: var(--nero);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translate(0, -3px); box-shadow: 0 9px 0 0 var(--nero); }
.btn:active { transform: translate(0, 2px); box-shadow: 0 2px 0 0 var(--nero); }

.btn--primary { background: var(--rosso); color: var(--crema); }
.btn--primary:hover { background: var(--nero); }

.btn--ghost { background: var(--crema); }
.btn--ghost:hover { background: var(--pistacchio); }

.btn--mini { padding: 9px 16px; font-size: .9rem; box-shadow: 0 4px 0 0 var(--nero); }
.btn--mini:hover { box-shadow: 0 6px 0 0 var(--nero); }

.btn--full { width: 100%; justify-content: center; }

.btn--wa { background: var(--pistacchio); }
.btn--wa.btn--primary { background: var(--pistacchio); color: var(--nero); }
.btn--wa:hover { background: var(--nero); color: var(--pistacchio); }

/* ───────── MARQUEE ───────── */

.marquee {
  background: var(--nero);
  color: var(--crema);
  border-top: 2px solid var(--nero);
  border-bottom: 2px solid var(--nero);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.marquee__track span { color: var(--crema); }
.marquee__track span:nth-child(5n+1) { color: var(--pistacchio); }
.marquee__track span:nth-child(5n+2) { color: var(--arancio); }
.marquee__track span:nth-child(5n+3) { color: var(--rosso); }
.marquee__track span:nth-child(5n+4) { color: var(--giallo); }

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────── STORIA ───────── */

.storia {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--pad-x);
}

.storia__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.storia__text p {
  max-width: 52ch;
  font-size: 1.05rem;
}

.storia__art {
  position: relative;
  min-height: 360px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--nero);
  filter: drop-shadow(0 6px 0 var(--nero));
}
.blob--pistacchio {
  width: 220px; height: 220px;
  background: var(--pistacchio);
  top: 20px; left: 30px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.blob--arancio {
  width: 170px; height: 170px;
  background: var(--arancio);
  top: 120px; right: 20px;
  border-radius: 50% 60% 40% 50% / 55% 45% 60% 50%;
}
.blob--rosso {
  width: 130px; height: 130px;
  background: var(--rosso);
  bottom: 0; left: 140px;
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
}

@media (max-width: 800px) {
  .storia__grid { grid-template-columns: 1fr; }
  .storia__art { min-height: 280px; order: -1; }
}

/* ───────── KICKERS / SECTION HEADS ───────── */

.kicker {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--nero);
  margin-bottom: 18px;
  letter-spacing: 0;
  line-height: 1.2;
  transform: rotate(-2deg);
}
.kicker--rosso { background: var(--rosso); color: var(--crema); }
.kicker--pistacchio { background: var(--pistacchio); }
.kicker--arancio { background: var(--arancio); }
.kicker--nero { background: var(--nero); color: var(--crema); }
.kicker--giallo { background: var(--giallo); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section__sub { color: #333; max-width: 50ch; margin: 18px auto 0; }

/* ───────── MENU ───────── */

.menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--pad-x);
}

/* TABS (anchor jumps) */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 56px;
  max-width: 880px;
}
.menu-tab {
  font-family: var(--font-display);
  font-size: .95rem;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--nero);
  background: var(--crema);
  color: var(--nero);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.menu-tab:hover {
  background: var(--nero);
  color: var(--crema);
  transform: translateY(-2px);
}

/* CATEGORY CARD */
.menu-cat {
  background: var(--crema-2);
  border: 2px solid var(--nero);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 44px);
  margin-bottom: 32px;
}

.menu-cat__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 2px dashed var(--nero);
}

.menu-cat__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  margin: 0;
}

.menu-cat__chip {
  font-family: var(--font-display);
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 2px solid var(--nero);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.menu-cat__chip--pistacchio { background: var(--pistacchio); }
.menu-cat__chip--rosso { background: var(--rosso); color: var(--crema); }
.menu-cat__chip--arancio { background: var(--arancio); }
.menu-cat__chip--nero { background: var(--nero); color: var(--crema); }

/* ITEMS */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  font-size: 1.05rem;
}
.menu-item + .menu-item {
  border-top: 1px dotted rgba(17, 17, 17, 0.18);
}

.menu-item__name {
  font-weight: 700;
  white-space: nowrap;
}
.menu-item__hint {
  font-style: italic;
  font-weight: 400;
  color: #666;
  margin-left: 4px;
  font-size: .92em;
}

.menu-item__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(17, 17, 17, 0.32);
  transform: translateY(-4px);
  min-width: 24px;
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  white-space: nowrap;
}

/* rich row with description on its own line */
.menu-item--rich {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 18px;
}
.menu-item--rich > div { flex: 1; min-width: 0; }
.menu-item--rich .menu-item__name {
  white-space: normal;
  display: block;
  font-size: 1.1rem;
}
.menu-item__desc {
  margin: 4px 0 0;
  font-size: .92rem;
  color: #444;
  line-height: 1.4;
}

.menu-note {
  margin: 18px 0 0;
  font-size: .88rem;
  color: #555;
  font-style: italic;
}

/* GASTRONOMIA SOON */
.menu-cat--soon {
  background:
    repeating-linear-gradient(
      45deg,
      var(--crema-2) 0 18px,
      var(--giallo) 18px 22px
    );
  text-align: center;
}
.menu-cat--soon .menu-cat__head {
  justify-content: center;
  border-bottom-color: var(--nero);
}
.menu-soon {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .menu-item { font-size: 1rem; }
  .menu-item__name { white-space: normal; }
  .menu-item__dots { display: none; }
  .menu-item {
    justify-content: space-between;
    gap: 14px;
  }
}

/* ───────── PAGINE MENU ─────────
   Le pagine dei PDF sono impilate una sotto l'altra: solo scorrimento,
   nessuna animazione e nessun controllo da usare. */

.flipbook-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 0 auto 48px;
  width: 100%;
  max-width: 560px;
}

.flipbook,
.flipbook--stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.flipbook__page {
  width: 100%;
  background: var(--crema);
  overflow: hidden;
  border: 2px solid var(--nero);
  border-radius: 14px;
}
.flipbook__page img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.flipbook__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--nero);
  border-bottom: 2px dashed var(--nero);
  padding: 2px 4px;
  transition: color .2s ease, border-color .2s ease;
}
.flipbook__download:hover {
  color: var(--rosso);
  border-color: var(--rosso);
}

/* ───────── EVENTO IN EVIDENZA (Ferragosto) ───────── */

.evento {
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
  background:
    radial-gradient(circle at 88% 12%, var(--giallo) 0 180px, transparent 180px),
    radial-gradient(circle at 6% 90%, var(--pistacchio) 0 150px, transparent 150px),
    var(--crema);
  border-bottom: 2px solid var(--nero);
}

.evento__card {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--crema-2);
  border: 2px solid var(--nero);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 48px);
}

.evento__badge {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--crema);
  background: var(--rosso);
  border: 2px solid var(--nero);
  border-radius: var(--r-pill);
  padding: 10px 22px;
  margin-bottom: 18px;
}

.evento__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 16px;
}
.evento__text p { margin-bottom: 14px; }

.evento__prezzo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px !important;
}
.evento__prezzo strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rosso);
}
.evento__prezzo span { font-size: .95rem; opacity: .75; }

.evento__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.evento__menu img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--nero);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
  .evento__card { grid-template-columns: 1fr; }
  /* su mobile il menu va sopra: si vede subito di cosa si tratta */
  .evento__menu { order: -1; }
  .evento__text { text-align: center; }
  .evento__prezzo { justify-content: center; }
}

/* ───────── PRENOTA TAVOLO ───────── */

.prenota {
  padding: clamp(60px, 10vw, 120px) var(--pad-x);
  background:
    radial-gradient(circle at 10% 20%, var(--giallo) 0 240px, transparent 240px),
    radial-gradient(circle at 90% 80%, var(--pistacchio) 0 200px, transparent 200px),
    var(--crema);
  border-top: 2px solid var(--nero);
  border-bottom: 2px solid var(--nero);
}

.prenota__card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--crema);
  border: 2px solid var(--nero);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.prenota__sub { color: #333; margin: 18px auto 32px; max-width: 44ch; }

.prenota__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-weight: 700; font-size: .9rem; }

.field input {
  padding: 14px 16px;
  font: inherit;
  border: 2px solid var(--nero);
  border-radius: var(--r-md);
  background: var(--crema);
  outline: none;
  transition: box-shadow .15s ease, transform .1s ease;
}
.field input:focus { box-shadow: 0 4px 0 0 var(--nero); transform: translateY(-2px); }

.prenota__form .btn--full { grid-column: 1 / -1; margin-top: 8px; }

@media (max-width: 560px) {
  .prenota__form { grid-template-columns: 1fr; }
}

/* ───────── CONTATTI ───────── */

.contatti {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--pad-x);
}

.contatti__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.contatti__item {
  background: var(--crema-2);
  border: 2px solid var(--nero);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contatti__item h3 { margin-bottom: 12px; }

.link {
  font-weight: 700;
  border-bottom: 2px solid var(--nero);
  padding-bottom: 1px;
}
.link:hover { color: var(--rosso); border-color: var(--rosso); }
.link--big { font-family: var(--font-display); font-size: 1.4rem; border: 0; }
.link--big:hover { color: var(--rosso); }

.muted { color: #666; font-size: .9rem; margin: 8px 0 0; }

/* ───────── FOOTER ───────── */

.foot {
  background: var(--nero);
  color: var(--crema);
  text-align: center;
  padding: 50px 20px 30px;
  border-top: 2px solid var(--nero);
}
.foot__logo {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
}
.foot p { color: #ddd; font-size: .9rem; margin: 0; }

/* ───────── FAB WHATSAPP ───────── */

.fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background: var(--pistacchio);
  color: var(--nero);
  border: 2px solid var(--nero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 60;
  transition: transform .15s ease, background .2s ease;
}
.fab svg { width: 30px; height: 30px; }
.fab:hover { background: var(--nero); color: var(--pistacchio); transform: translateY(-3px); }

/* ───────── MENU-ONLY PAGE ───────── */

.page-menu .nav__cta {
  background: transparent;
  color: var(--nero);
  border: 2px solid var(--nero);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 6px 16px;
}
.page-menu .nav__cta:hover {
  background: var(--nero);
  color: var(--crema);
}

.menu-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--pad-x) clamp(36px, 5vw, 60px);
  text-align: center;
}
.menu-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 12px auto 22px;
  max-width: 14ch;
  letter-spacing: -0.02em;
}
.menu-intro p {
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #333;
}

.menu-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.menu-jumps a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--nero);
  background: var(--crema);
  box-shadow: 0 4px 0 0 var(--nero);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.menu-jumps a:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 0 var(--nero);
  background: var(--giallo);
}
/* ogni pill richiama il colore della sua sezione */
.menu-jumps a:nth-child(1):hover { background: var(--rosso); color: var(--crema); }  /* ferragosto */
.menu-jumps a:nth-child(2):hover { background: var(--arancio); }    /* colazione */
.menu-jumps a:nth-child(3):hover { background: var(--pistacchio); } /* aperitivo */
.menu-jumps a:nth-child(4):hover { background: var(--arancio); }    /* stuzzicheria */
.menu-jumps a:nth-child(5):hover { background: var(--rosso); color: var(--crema); }  /* pizze */
.menu-jumps a:nth-child(6):hover { background: var(--giallo); }     /* bevande */
.menu-jumps a:nth-child(7):hover { background: var(--nero); color: var(--crema); }   /* gastronomia */

.page-menu .menu + .menu { padding-top: 0; }

.foot--menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.foot--menu p {
  line-height: 1.7;
  margin: 0;
}
.foot__link {
  color: var(--pistacchio);
  font-weight: 700;
  border-bottom: 1px dashed var(--pistacchio);
  padding-bottom: 1px;
}
.foot__link:hover { color: var(--giallo); border-color: var(--giallo); }
.foot__back {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--crema);
  border: 2px solid var(--crema);
  border-radius: var(--r-pill);
  padding: 8px 22px;
  margin-top: 6px;
  transition: background .2s ease, color .2s ease;
}
.foot__back:hover { background: var(--crema); color: var(--nero); }

/* ───────── REDUCED MOTION ───────── */

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