:root {
  --verde: #1f3a2e;
  --verde-scuro: #142720;
  --ottone: #c8963e;
  --ottone-chiaro: #e2bd78;
  --crema: #f3ead8;
  --carta: #faf6ec;
  --inchiostro: #2a2420;
  --tenue: #75695b;
  --f-titoli: 'Playfair Display', Georgia, serif;
  --f-etichette: 'Oswald', 'Arial Narrow', sans-serif;
  --f-testo: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font-family: var(--f-testo);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Testata ───────────────────────────────────────── */

.testata {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 150, 62, .18), transparent 60%),
    linear-gradient(180deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: var(--crema);
  text-align: center;
  padding: 40px 20px 30px;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--verde-scuro), 0 0 0 5px var(--ottone);
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo--quadrato { border-radius: 10px; }
.logo--orizzontale { width: 220px; height: 90px; border-radius: 8px; box-shadow: none; }
.logo-vuoto {
  width: 100%; height: 100%; display: grid; place-items: center;
  border: 2px dashed var(--ottone); border-radius: inherit;
  font-family: var(--f-etichette); letter-spacing: .2em; text-transform: uppercase; color: var(--ottone);
}

.testata h1 {
  font-family: var(--f-titoli);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: .01em;
}
.sottotitolo {
  margin: 8px 0 0;
  font-family: var(--f-etichette);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .8rem;
  color: var(--ottone-chiaro);
}

.fregio { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--ottone); }
.fregio span { height: 1px; width: 56px; background: currentColor; opacity: .7; }
.fregio i { font-style: normal; font-size: .8rem; }

/* ── Indice delle sezioni ──────────────────────────── */

.indice {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--verde-scuro);
  border-bottom: 2px solid var(--ottone);
}
.indice-scorri {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: none;
  max-width: 760px;
  margin: 0 auto;
}
.indice-scorri::-webkit-scrollbar { display: none; }
.indice a {
  flex: none;
  color: var(--crema);
  text-decoration: none;
  font-family: var(--f-etichette);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.indice a.attivo { background: var(--ottone); color: var(--verde-scuro); }

/* ── Menu ──────────────────────────────────────────── */

.menu { max-width: 760px; margin: 0 auto; padding: 8px 20px 24px; }

.coperto {
  display: flex; align-items: baseline; gap: 8px;
  margin: 22px 0 0; font-family: var(--f-etichette);
  text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; color: var(--tenue);
}

.sezione { padding-top: 34px; }
.js .sezione { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .sezione.visibile { opacity: 1; transform: none; }

.sezione h2 {
  font-family: var(--f-titoli);
  font-style: italic;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--verde);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sezione h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--ottone), transparent); }
.nota-sezione { margin: 0 0 6px; font-style: italic; color: var(--tenue); }

.voci { list-style: none; margin: 0; padding: 0; }
.voce { padding: 14px 0; border-bottom: 1px dashed rgba(117, 105, 91, .35); }
.voce:last-child { border-bottom: 0; }

.riga { display: flex; align-items: baseline; gap: 8px; }
.voce h3 {
  margin: 0;
  font-family: var(--f-testo);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.asterisco { color: var(--ottone); margin-left: 2px; }
.puntini { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(117, 105, 91, .55); transform: translateY(-4px); }
.prezzo { font-family: var(--f-etichette); font-weight: 500; font-size: 1.05rem; white-space: nowrap; color: var(--verde); }

.ingredienti { margin: 4px 0 0; font-style: italic; color: var(--tenue); font-size: .95rem; }
.nota { margin: 4px 0 0; color: var(--tenue); font-size: .92rem; }

.formati { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.formati span { font-family: var(--f-etichette); font-weight: 500; color: var(--verde); white-space: nowrap; }
.formati em { font-style: normal; font-weight: 400; color: var(--tenue); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

.allergeni { margin: 8px 0 0; display: flex; gap: 4px; flex-wrap: wrap; }
.allergeni span:not(.sr) {
  min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center;
  border: 1px solid var(--ottone); border-radius: 999px;
  font-family: var(--f-etichette); font-size: .72rem; color: var(--ottone);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Piede ─────────────────────────────────────────── */

.piede {
  margin-top: 30px;
  background: var(--verde-scuro);
  color: var(--crema);
  padding: 34px 20px 44px;
  text-align: center;
}
.legenda { max-width: 640px; margin: 0 auto 16px; }
.legenda h4 {
  margin: 0 0 12px; font-family: var(--f-etichette); text-transform: uppercase;
  letter-spacing: .25em; font-weight: 400; font-size: .8rem; color: var(--ottone-chiaro);
}
.legenda ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.legenda li { font-size: .9rem; }
.legenda li span {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 2px;
  border: 1px solid var(--ottone); border-radius: 999px; font-family: var(--f-etichette); font-size: .7rem; color: var(--ottone);
}
.avviso { margin: 6px 0; font-size: .88rem; font-style: italic; opacity: .85; }
.contatti { margin-top: 18px; font-size: .95rem; }
.contatti p { margin: 4px 0; }
.contatti a { color: var(--ottone-chiaro); }
.nome-piede { font-family: var(--f-titoli); font-weight: 700; font-size: 1.35rem; }
.orari { white-space: pre-line; }

@media (min-width: 720px) {
  .testata { padding: 56px 20px 40px; }
  .logo { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .sezione { opacity: 1; transform: none; transition: none; }
  .indice a { transition: none; }
}
