/* =========================================================
   La Polleria — foglio di stile unico per tutte le pagine
   Palette: brace, carbone, tizzone, pergamena, crosta, fiamma, rosmarino
   ========================================================= */

:root {
  --brace: #1E120B;
  --carbone: #2B1B12;
  --tizzone: #3A2518;
  --pergamena: #F6EBDD;
  --sabbia: #CDB9A1;
  --crosta: #F2B134;
  --fiamma: #FF6B35;
  --rosmarino: #A5BD6E;
  --linea: rgba(246, 235, 221, 0.12);

  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --head-h: 104px;
  --r-card: 18px;
  --r-ctrl: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) { :root { --head-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pergamena);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 107, 53, 0.10), transparent 60%),
    var(--brace);
  -webkit-font-smoothing: antialiased;
}

body.is-locked, body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 60, "opsz" 96;
}

p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--crosta); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300;
  background: var(--crosta); color: var(--brace); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border-radius: var(--r-ctrl); border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-fire {
  background: linear-gradient(180deg, #FF7D4A, var(--fiamma));
  color: #2A0F02;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 53, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-fire:hover { background: #FF8A5B; }

.btn-line { border-color: rgba(246, 235, 221, 0.28); color: var(--pergamena); background: rgba(246, 235, 221, 0.04); }
.btn-line:hover { border-color: var(--crosta); background: rgba(242, 177, 52, 0.08); }

.btn-wa { background: #25D366; color: #06331A; }
.btn-wa:hover { background: #3be27b; }
.btn-wa svg { fill: currentColor; }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.link {
  color: var(--crosta); font-weight: 700; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* ---------- Testata ---------- */

.topbar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--linea);
  isolation: isolate;
}
/* Lo sfondo sfocato sta su uno pseudo-elemento: così il menu mobile (position: fixed) copre davvero tutto lo schermo */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(30, 18, 11, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.topbar-strip { border-bottom: 1px solid var(--linea); font-size: 0.82rem; color: var(--sabbia); }
.topbar-strip .wrap { display: flex; gap: 1.6rem; align-items: center; min-height: 36px; }
.topbar-strip a { text-decoration: none; }
.topbar-strip a:hover { color: var(--pergamena); }
.topbar-strip .strip-status { margin-left: auto; }

.topbar-main .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--pergamena);
  display: grid; place-items: center; padding: 4px;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; font-style: italic; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text .brand-status { display: none; font-size: 0.72rem; }

.mainnav { display: flex; gap: 0.2rem; margin-left: auto; }
.mainnav a {
  text-decoration: none; padding: 0.55rem 0.85rem; border-radius: 10px;
  color: var(--sabbia); font-weight: 600; font-size: 0.95rem;
}
.mainnav a:hover { color: var(--pergamena); background: rgba(246, 235, 221, 0.06); }
.mainnav a[aria-current="page"] { color: var(--pergamena); background: rgba(242, 177, 52, 0.14); box-shadow: inset 0 -2px 0 var(--crosta); }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tizzone); border: 1px solid var(--linea); text-decoration: none;
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--pergamena); stroke-width: 1.8; }
.cart-btn:hover { border-color: var(--crosta); }

.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--fiamma); color: #2A0F02;
  font-size: 0.75rem; font-weight: 800; display: grid; place-items: center;
}

.menu-toggle { display: none; }

/* Stato aperto / chiuso */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sabbia); flex: none;
}
.status.is-open::before { background: var(--rosmarino); box-shadow: 0 0 0 4px rgba(165, 189, 110, 0.2); }
.status.is-open { color: #D6E6AE; }
.status.is-closed::before { background: var(--fiamma); }

@media (max-width: 900px) {
  .topbar-strip { display: none; }
  .topbar-main .wrap { min-height: 64px; gap: 0.7rem; }
  .brand-badge { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-text .brand-status { display: inline-flex; gap: 0.35rem; }
  .brand-status::before { width: 6px; height: 6px; }

  .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 14px; border: 1px solid var(--linea); background: transparent; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--pergamena); border-radius: 2px;
    position: relative; transition: transform 0.2s ease, background 0.2s ease;
  }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .nav-open .menu-toggle span { background: transparent; }
  .nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .cart-btn { margin-left: auto; }

  .mainnav {
    position: fixed; inset: 64px 0 0 0; z-index: 99;
    flex-direction: column; gap: 0.3rem; padding: 1.4rem 1.25rem 7rem;
    background: var(--brace); margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-open .mainnav { opacity: 1; transform: none; visibility: visible; }
  .mainnav a { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--pergamena); padding: 0.6rem 0.4rem; }
  .mainnav a[aria-current="page"] { box-shadow: none; background: none; color: var(--crosta); }
  .mainnav .nav-status { display: flex; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linea); font-size: 0.95rem; }
}
@media (min-width: 901px) { .mainnav .nav-status { display: none; } }

/* ---------- Hero (home) ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); isolation: isolate; }

.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1;
  background: radial-gradient(70% 100% at 50% 100%, rgba(255, 107, 53, 0.22), transparent 70%);
}

.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 500; font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
  line-height: 0.98; letter-spacing: -0.025em;
  max-width: 11ch; margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero-lead { font-size: 1.12rem; color: var(--sabbia); max-width: 44ch; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-visual { position: relative; }

.hero-photo {
  border-radius: 28px 28px 200px 200px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  border: 1px solid var(--linea);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Quadrante orari */
.dial-card {
  position: absolute; left: -2.5rem; bottom: -1.5rem; width: 232px;
  padding: 1rem 1rem 1.1rem;
  background: rgba(43, 27, 18, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--linea); border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.dial { width: 100%; height: auto; display: block; margin-bottom: -0.6rem; }
.dial-track { fill: none; stroke: rgba(246, 235, 221, 0.12); stroke-width: 10; stroke-linecap: round; }
.dial-progress { fill: none; stroke: url(#dialGrad); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.7)); }
.dial-ticks line { stroke: rgba(246, 235, 221, 0.35); stroke-width: 1.5; }
.dial-ticks text { fill: var(--sabbia); font-family: var(--body); font-size: 11px; font-weight: 700; text-anchor: middle; }
.dial-needle line { stroke: var(--pergamena); stroke-width: 3; stroke-linecap: round; }
.dial-needle circle { fill: var(--crosta); }
.dial-card:not(.is-open) .dial-needle line { stroke: var(--sabbia); }

.dial-readout strong { display: block; font-family: var(--display); font-size: 1.35rem; font-style: italic; font-weight: 600; }
.dial-readout span { display: block; font-size: 0.85rem; color: var(--sabbia); line-height: 1.4; }
.dial-card.is-open .dial-readout strong { color: #D6E6AE; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .dial-card { left: auto; right: -0.5rem; bottom: -1.5rem; width: 196px; }
}

@media (max-width: 480px) {
  .hero-photo { border-radius: 24px 24px 140px 140px; }
  .dial-card { right: 50%; transform: translateX(50%); bottom: -3rem; }
  .hero-visual { margin-bottom: 3rem; }
}

/* ---------- Sezioni home ---------- */

.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.block-head { max-width: 60ch; margin-bottom: 2.5rem; }
.block-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.block-head p { color: var(--sabbia); font-size: 1.05rem; }

/* Tre modi */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.mode { padding: 2rem 1.6rem; }
.mode + .mode { border-left: 1px solid var(--linea); }
.mode svg { width: 34px; height: 34px; stroke: var(--crosta); fill: none; stroke-width: 1.6; margin-bottom: 1rem; }
.mode h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.mode p { color: var(--sabbia); margin: 0; }
.mode strong { color: var(--pergamena); }
@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr; }
  .mode + .mode { border-left: 0; border-top: 1px solid var(--linea); }
}

/* Il più ordinato */
.signature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signature-img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 6; border: 1px solid var(--linea); }
.signature-img img { width: 100%; height: 100%; object-fit: cover; }
.signature h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-style: italic; font-weight: 500; }
.signature p { color: var(--sabbia); max-width: 46ch; }
.price-big { font-family: var(--display); font-size: 2.6rem; color: var(--crosta); font-weight: 600; line-height: 1; margin: 0.4rem 0 1.4rem; }
.price-big small { font-family: var(--body); font-size: 0.95rem; color: var(--sabbia); font-weight: 500; margin-left: 0.4rem; }
.signature-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 0.55rem; }
.facts li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--pergamena); }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--fiamma); transform: rotate(45deg) translateY(-2px); flex: none; }
@media (max-width: 760px) { .signature { grid-template-columns: 1fr; } }

/* Strumenti */
.tools { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.2rem; }
.tool {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem; border-radius: var(--r-card); text-decoration: none; overflow: hidden;
  background: var(--carbone); border: 1px solid var(--linea); min-height: 220px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tool:hover { border-color: rgba(242, 177, 52, 0.55); transform: translateY(-2px); }
.tool h3 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.tool p { color: var(--sabbia); margin: 0; max-width: 40ch; }
.tool-go { margin-top: 1rem; color: var(--crosta); font-weight: 700; }
.tool--big { grid-row: span 2; min-height: 460px; background: linear-gradient(180deg, rgba(30, 18, 11, 0) 20%, rgba(30, 18, 11, 0.95) 80%), url("images/hero-spiedo.jpg") center / cover; }
.tool--big h3 { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; font-weight: 500; }
.tool-icon { position: absolute; top: 1.6rem; left: 1.8rem; width: 38px; height: 38px; stroke: var(--crosta); fill: none; stroke-width: 1.6; }
@media (max-width: 760px) {
  .tools { grid-template-columns: 1fr; }
  .tool--big { grid-row: auto; min-height: 340px; }
}

/* Striscia negozio */
.shop-band { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; border: 1px solid var(--linea); }
.shop-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 18, 11, 0.92) 0%, rgba(30, 18, 11, 0.55) 55%, rgba(30, 18, 11, 0.1) 100%); z-index: 1; }
.shop-band-copy { position: relative; z-index: 2; padding: clamp(1.8rem, 5vw, 3.5rem); max-width: 560px; }
.shop-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.shop-band p { color: var(--sabbia); }

/* ---------- Intestazione pagine interne ---------- */

.page-head {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.4rem, 6vw, 4rem);
  border-bottom: 1px solid var(--linea);
}
.page-head-bg { position: absolute; inset: 0; z-index: -1; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(1.1); }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 11, 0.35), var(--brace) 95%); }
.page-head { isolation: isolate; }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1; margin-bottom: 0.4rem; }
.page-head p { color: var(--sabbia); font-size: 1.1rem; max-width: 52ch; margin: 0; }
.crumbs { font-size: 0.85rem; color: var(--sabbia); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pergamena); }

/* ---------- Menù ---------- */

.menu-tools {
  position: sticky; top: var(--head-h); z-index: 50;
  background: rgba(30, 18, 11, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.menu-tools .wrap { display: flex; gap: 1rem; align-items: center; padding: 0.8rem 0; }

.search { position: relative; flex: 0 1 300px; }
.search svg { position: absolute; left: 0.9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--sabbia); fill: none; stroke-width: 2; pointer-events: none; }
.search input {
  width: 100%; min-height: 46px; padding: 0.6rem 2.6rem;
  border-radius: 999px; border: 1px solid var(--linea); background: var(--carbone);
}
.search input::placeholder { color: #9d8a76; }
.search input:focus { outline: none; border-color: var(--crosta); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--sabbia); font-size: 1.2rem; }
.search input:placeholder-shown + .search-clear { display: none; }

.chips { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid var(--linea); background: transparent; color: var(--sabbia);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--pergamena); border-color: rgba(246, 235, 221, 0.3); }
.chip.is-active { background: var(--pergamena); color: var(--brace); border-color: var(--pergamena); }

@media (max-width: 700px) {
  .menu-tools .wrap { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.7rem 0; }
  .search { flex: none; }
}

.callout {
  display: flex; gap: 1rem; align-items: center; margin: 2rem 0 0;
  padding: 1.1rem 1.3rem; border-radius: var(--r-card);
  background: linear-gradient(90deg, rgba(242, 177, 52, 0.14), rgba(242, 177, 52, 0.04));
  border: 1px solid rgba(242, 177, 52, 0.35);
}
.callout svg { width: 28px; height: 28px; flex: none; stroke: var(--crosta); fill: none; stroke-width: 1.7; }
.callout p { margin: 0; }
.callout a { color: var(--crosta); font-weight: 700; white-space: nowrap; }

.menu-group { padding-top: 2.8rem; }
.menu-group-title { display: flex; align-items: baseline; gap: 0.8rem; font-size: clamp(1.9rem, 4vw, 2.6rem); font-style: italic; font-weight: 500; }
.menu-group-title span { font-family: var(--body); font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--sabbia); }

.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }

.dish {
  position: relative; display: flex; flex-direction: column;
  background: var(--carbone); border: 1px solid var(--linea); border-radius: var(--r-card); overflow: hidden;
  transition: border-color 0.2s ease;
}
.dish:hover { border-color: rgba(246, 235, 221, 0.24); }
.dish--featured { border-color: rgba(242, 177, 52, 0.6); box-shadow: 0 0 0 1px rgba(242, 177, 52, 0.3), 0 20px 50px -30px rgba(242, 177, 52, 0.6); }

.dish-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0;
  background: #22150D; cursor: zoom-in; overflow: hidden;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dish-photo:hover img { transform: scale(1.04); }
.dish-photo.is-contain { background: #F4EFE8; }
.dish-photo.is-contain img { object-fit: contain; padding: 0.8rem; }

.dish-zoom {
  position: absolute; right: 0.7rem; bottom: 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem; border-radius: 999px;
  background: rgba(30, 18, 11, 0.78); color: var(--pergamena); font-size: 0.78rem; font-weight: 700;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dish-zoom svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.dish-flag {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: var(--crosta); color: #3a2400;
}

.dish-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.dish-name { font-size: 1.3rem; margin-bottom: 0.2rem; }
.dish-note { color: var(--sabbia); font-size: 0.9rem; margin: 0 0 0.8rem; }
.chili { display: inline-block; vertical-align: middle; font-family: var(--body); font-size: 0.7rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(255, 107, 53, 0.18); color: #FFB08F; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.dish-price { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--crosta); }

/* Quantità */
.qty { display: inline-flex; align-items: center; gap: 0.2rem; }
.qty-add {
  min-height: 42px; padding: 0.4rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--fiamma); color: #2A0F02; font-weight: 800;
}
.qty-add:hover { background: #FF8A5B; }
.qty-btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(246, 235, 221, 0.25); background: var(--tizzone); font-size: 1.2rem; line-height: 1;
}
.qty-btn:hover { border-color: var(--crosta); }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.05rem; }
.qty--small .qty-btn { width: 34px; height: 34px; font-size: 1rem; }

.menu-empty { padding: 3rem 0; text-align: center; color: var(--sabbia); }
.menu-empty p { font-size: 1.1rem; }

.menu-extras {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  margin: 4rem auto 0; padding: 2rem; border-radius: var(--r-card);
  background: var(--carbone); border: 1px solid var(--linea);
}
.menu-extras h2 { font-size: 1.7rem; }
.menu-extras p { color: var(--sabbia); max-width: 55ch; }
.menu-extras .allergens { font-size: 0.9rem; margin: 1rem 0 0; }
.qr { text-align: center; }
.qr #qr-code { display: inline-block; padding: 10px; background: var(--pergamena); border-radius: 14px; }
.qr #qr-code img, .qr #qr-code canvas { display: block; }
.qr p { font-size: 0.82rem; color: var(--sabbia); margin: 0.6rem 0 0; }
@media (max-width: 700px) { .menu-extras { grid-template-columns: 1fr; } }

/* Scheda dettaglio */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 7, 4, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(100%, 860px); max-height: calc(100vh - 2rem); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--carbone); border: 1px solid var(--linea); border-radius: 24px; box-shadow: var(--shadow);
  animation: pop 0.22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-img.is-contain { object-fit: contain; background: #F4EFE8; padding: 1.5rem; }
.modal-body { padding: 2rem; display: flex; flex-direction: column; }
.modal-body h2 { font-size: 2.2rem; font-style: italic; font-weight: 500; margin-bottom: 0.2rem; }
.modal-note { color: var(--sabbia); margin-bottom: 0.8rem; }
.modal-price { font-family: var(--display); font-size: 2rem; color: var(--crosta); font-weight: 600; margin-bottom: 1rem; }
.modal-desc { color: var(--pergamena); }
.modal-choice { display: grid; gap: 0.4rem; margin: 0.4rem 0 1.2rem; }
.modal-choice label { font-weight: 700; font-size: 0.9rem; color: var(--sabbia); }
.modal-actions { margin-top: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.modal-count { font-size: 0.9rem; color: var(--sabbia); }
.modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(30, 18, 11, 0.85); color: var(--pergamena); font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { background: var(--fiamma); color: #2A0F02; }
@media (max-width: 560px) {
  .dish-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .dish { flex-direction: row; }
  .dish-photo { width: 120px; flex: none; aspect-ratio: auto; min-height: 132px; }
  .dish-zoom { padding: 0.3rem; right: 0.4rem; bottom: 0.4rem; }
  .dish-zoom span { display: none; }
  .dish-flag { top: 0.4rem; left: 0.4rem; font-size: 0.68rem; padding: 0.2rem 0.5rem; }
  .dish-body { padding: 0.8rem 0.9rem; }
  .dish-name { font-size: 1.12rem; }
  .dish-note { font-size: 0.84rem; margin-bottom: 0.5rem; }
  .dish-price { font-size: 1.15rem; }
  .qty-add { min-height: 40px; padding: 0.35rem 0.9rem; }
  .qty-btn { width: 36px; height: 36px; }
  .menu-group { padding-top: 2rem; }
}

@media (max-width: 700px) {
  .modal { place-items: end center; padding: 0; }
  .modal-box { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .modal-img { min-height: 0; aspect-ratio: 4 / 3; }
  .modal-body { padding: 1.4rem 1.3rem 2rem; }
}

/* ---------- Campi modulo ---------- */

.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label, .field-label { font-weight: 700; font-size: 0.92rem; }
.field small { color: var(--sabbia); font-size: 0.82rem; }
.field input, .field textarea, select {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border-radius: var(--r-ctrl); border: 1px solid rgba(246, 235, 221, 0.2); background: var(--brace);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, select:focus { outline: none; border-color: var(--crosta); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CDB9A1' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.3rem; border-radius: 14px; background: var(--brace); border: 1px solid var(--linea); margin-bottom: 1.2rem; }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented button {
  min-height: 48px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-weight: 700; color: var(--sabbia); line-height: 1.2; padding: 0.4rem;
}
.segmented button small { display: block; font-weight: 600; font-size: 0.76rem; opacity: 0.85; }
.segmented button.is-active { background: var(--pergamena); color: var(--brace); }

/* ---------- Ordine ---------- */

.order { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; padding: 2.5rem 0 4rem; }
.panel { background: var(--carbone); border: 1px solid var(--linea); border-radius: var(--r-card); padding: 1.6rem; }
.panel h2 { font-size: 1.7rem; display: flex; align-items: baseline; gap: 0.6rem; }
.panel h2 span { font-family: var(--body); font-size: 0.9rem; color: var(--sabbia); font-weight: 600; }
.order-summary { position: sticky; top: calc(var(--head-h) + 1rem); }

.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 0.9rem; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid var(--linea);
}
.line-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.line-img.is-contain { object-fit: contain; background: #F4EFE8; padding: 4px; }
.line-name { margin: 0; font-weight: 700; }
.line-name span { color: var(--sabbia); font-weight: 500; font-size: 0.88rem; }
.line-choice { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.85rem; color: var(--sabbia); }
.line-choice select { min-height: 36px; padding: 0.3rem 2rem 0.3rem 0.6rem; font-size: 0.88rem; width: auto; }
.line-price { font-weight: 800; color: var(--crosta); min-width: 5.5ch; text-align: right; }
.line-remove { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--sabbia); font-size: 1.3rem; cursor: pointer; }
.line-remove:hover { color: var(--fiamma); background: rgba(255, 107, 53, 0.12); }

.order-empty { text-align: center; padding: 2.5rem 1rem; }
.order-empty svg { width: 64px; height: 64px; stroke: var(--sabbia); fill: none; stroke-width: 1.4; margin: 0 auto 1rem; }
.order-empty p { color: var(--sabbia); }
.order-empty .btn { margin: 0.3rem; }

.order-tools { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.text-btn { border: 0; background: none; cursor: pointer; color: var(--sabbia); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0.5rem 0; }
.text-btn:hover { color: var(--pergamena); }

.totals { border-top: 1px solid var(--linea); margin: 0.6rem 0 1.2rem; padding-top: 1rem; }
.totals div { display: flex; justify-content: space-between; color: var(--sabbia); margin-bottom: 0.3rem; }
.totals .grand { color: var(--pergamena); font-family: var(--display); font-size: 1.7rem; font-weight: 600; margin-top: 0.4rem; }
.totals .grand span:last-child { color: var(--crosta); }

.form-error { background: rgba(255, 107, 53, 0.14); border: 1px solid rgba(255, 107, 53, 0.5); color: #FFD3C2; padding: 0.7rem 0.9rem; border-radius: var(--r-ctrl); font-size: 0.92rem; }
.fine { font-size: 0.85rem; color: var(--sabbia); margin: 0.9rem 0 0; }
.btn-block { width: 100%; }

@media (max-width: 900px) {
  .order { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .line { grid-template-columns: 52px 1fr auto; grid-template-areas: "img main remove" "img qty price"; row-gap: 0.5rem; }
  .line-img { grid-area: img; width: 52px; height: 52px; align-self: start; }
  .line-main { grid-area: main; }
  .line .qty { grid-area: qty; }
  .line-price { grid-area: price; }
  .line-remove { grid-area: remove; }
  .line-choice { flex-wrap: wrap; }
}

/* ---------- Feste ---------- */

.party { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: start; padding: 2.5rem 0 4rem; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.stepper-row p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.stepper-row small { display: block; color: var(--sabbia); font-weight: 500; font-size: 0.85rem; }
.stepper { display: flex; align-items: center; gap: 0.6rem; }
.stepper output { font-family: var(--display); font-size: 2rem; font-weight: 600; min-width: 2.2ch; text-align: center; line-height: 1; }
.stepper .qty-btn { width: 46px; height: 46px; font-size: 1.4rem; }
.party-form .field-label { display: block; margin: 1.3rem 0 0.6rem; }

.check { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--fiamma); margin-top: 2px; flex: none; }
.check small { display: block; color: var(--sabbia); }

.party-result { position: sticky; top: calc(var(--head-h) + 1rem); overflow: hidden; }
.party-result::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 65%); pointer-events: none;
}
.party-big { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 0.2rem; position: relative; }
.party-sub { color: var(--sabbia); margin-bottom: 1.2rem; }

.birds { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 56px; margin-bottom: 1.4rem; }
.bird { width: 52px; height: 40px; animation: drop 0.35s ease-out both; }
.bird svg { width: 100%; height: 100%; }
.bird .b { fill: #E39A2C; stroke: #8A5212; stroke-width: 1.5; }
.bird .l { fill: none; stroke: #C97A1C; stroke-width: 6; stroke-linecap: round; }
.bird .k { fill: var(--pergamena); }
.bird .h { fill: none; stroke: rgba(255, 240, 210, 0.55); stroke-width: 2.2; stroke-linecap: round; }
.bird--half { width: 29px; overflow: hidden; }
.bird--half svg { width: 52px; }
.bird-more { align-self: center; font-weight: 800; color: var(--crosta); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(0.9); } to { opacity: 1; transform: none; } }

.plan { list-style: none; padding: 0; margin: 0 0 1rem; }
.plan li { display: grid; grid-template-columns: 3ch 1fr auto; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--linea); align-items: baseline; }
.pl-qty { font-weight: 800; color: var(--crosta); }
.pl-name em { font-style: normal; color: var(--sabbia); font-size: 0.88rem; }
.pl-name small { display: block; color: var(--sabbia); font-size: 0.82rem; }
.pl-price { font-weight: 700; }
.party-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-size: 1.8rem; font-weight: 600; margin: 0.4rem 0 0.2rem; }
.party-total span:last-child { color: var(--crosta); }
.party-perhead { color: var(--sabbia); font-size: 0.9rem; margin-bottom: 1.2rem; text-align: right; }
.party-next { margin-top: 0.9rem; }

@media (max-width: 900px) {
  .party { grid-template-columns: 1fr; }
  .party-result { position: static; }
}

/* ---------- Negozio ---------- */

.shop { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: 3rem 0; }
.shop-img { border-radius: 28px; overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 1; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.shop p { color: var(--sabbia); }
@media (max-width: 800px) { .shop { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0 4rem; border-top: 1px solid var(--linea); }
.pillars h3 { font-size: 1.5rem; font-style: italic; font-weight: 500; color: var(--crosta); }
.pillars p { color: var(--sabbia); margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Contatti ---------- */

.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; padding: 2.5rem 0 4rem; }
.contact .panel { display: flex; flex-direction: column; }
.contact .panel > svg { width: 30px; height: 30px; stroke: var(--crosta); fill: none; stroke-width: 1.6; margin-bottom: 0.9rem; }
.contact .panel p { color: var(--sabbia); }
.contact .big { font-family: var(--display); font-size: 1.6rem; color: var(--pergamena); font-weight: 600; margin: 0 0 1rem; line-height: 1.2; word-break: break-word; }
.contact .panel .btn { margin-top: auto; align-self: flex-start; }
.c-phone { grid-column: span 4; }
.c-wa { grid-column: span 4; }
.c-mail { grid-column: span 4; }
.c-where { grid-column: span 7; }
.c-hours { grid-column: span 5; }
.row-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--linea); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--sabbia); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--crosta); font-weight: 800; }
.hours th span { font-size: 0.75rem; background: var(--crosta); color: #3a2400; padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
@media (max-width: 900px) {
  .c-phone, .c-wa, .c-mail { grid-column: span 12; }
  .c-where, .c-hours { grid-column: span 12; }
}

/* ---------- Pagine legali ---------- */

.legal { max-width: 72ch; padding: 3rem 0 4rem; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legal p, .legal li { color: #E6D8C6; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--sabbia); font-size: 0.9rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.legal th { color: var(--pergamena); }
.legal td { color: var(--sabbia); }
.placeholder { background: rgba(242, 177, 52, 0.18); color: var(--crosta); padding: 0 0.3rem; border-radius: 4px; }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--linea); background: #180E08; padding: 3.5rem 0 7rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand p { color: var(--sabbia); max-width: 34ch; margin-top: 1rem; }
.site-foot h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 800; color: var(--pergamena); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-foot a, .site-foot li, .site-foot button { color: var(--sabbia); text-decoration: none; font-size: 0.93rem; }
.site-foot a:hover, .site-foot button:hover { color: var(--pergamena); text-decoration: underline; }
.site-foot button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--linea); font-size: 0.85rem; color: #9d8a76; }
.foot-bottom a { color: var(--sabbia); }
@media (min-width: 901px) { .site-foot { padding-bottom: 3rem; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Barra azioni mobile ---------- */

.actionbar { display: none; }
@media (max-width: 900px) {
  .actionbar {
    position: fixed; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0.4rem; padding: 0.4rem;
    background: rgba(43, 27, 18, 0.94); border: 1px solid var(--linea); border-radius: 18px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  }
  .actionbar a {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 50px; border-radius: 13px; text-decoration: none; font-weight: 800; font-size: 0.92rem;
  }
  .actionbar svg { width: 20px; height: 20px; }
  .ab-call { background: var(--tizzone); }
  .ab-call svg { fill: var(--pergamena); }
  .ab-wa { background: #25D366; color: #06331A; }
  .ab-wa svg { fill: currentColor; }
  .ab-order { background: var(--fiamma); color: #2A0F02; }
  .ab-order svg { fill: none; stroke: currentColor; stroke-width: 2; }
  .ab-order .badge { position: static; background: #2A0F02; color: var(--pergamena); }
  .nav-open .actionbar { display: none; }
}

/* ---------- Avvisi e cookie ---------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 2rem); padding: 0.85rem 1.2rem; border-radius: 14px; text-align: center;
  background: var(--pergamena); color: var(--brace); font-weight: 700; box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .toast { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); } }

.cookie {
  position: fixed; z-index: 350; left: 1rem; bottom: 1rem; width: min(100% - 2rem, 420px);
  padding: 1.3rem; border-radius: var(--r-card);
  background: var(--carbone); border: 1px solid rgba(242, 177, 52, 0.4); box-shadow: var(--shadow);
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.cookie p { font-size: 0.9rem; color: var(--sabbia); }
.cookie-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .cookie { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); left: 0.6rem; width: calc(100% - 1.2rem); } }

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Card "Dove siamo" con la foto del negozio sullo sfondo */
.c-where { background: linear-gradient(90deg, var(--carbone) 35%, rgba(43, 27, 18, 0.55)), url("images/negozio.jpg") right center / cover; min-height: 300px; }
