/* =====================================================================
   Vizi Capitali · Pizza & Co
   Palette and type taken from the brand identity guidelines.
   ===================================================================== */

:root {
  --red: #ee1a37;
  --red-deep: #b80f29;      /* for small text on cream (AA contrast) */
  --red-ui: #c8102e;        /* buttons/labels with small text: passes AA with cream (4.6:1) */
  --cream: #f0e3cc;
  --cream-2: #e7d5b5;
  --black: #0d0d0d;
  --wa: #1fa855;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --check: 28px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* "hidden" must win over button/flex styles */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--black); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.script { font-family: var(--font-script); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: 0; }
.small { font-size: 13px; opacity: .85; }

/* ---------- checkerboard strip ---------- */
.checker {
  height: calc(var(--check) * 2);
  background:
    conic-gradient(var(--check-color, var(--red)) 25%, transparent 0 50%, var(--check-color, var(--red)) 0 75%, transparent 0)
    0 0 / calc(var(--check) * 2) calc(var(--check) * 2);
}

/* ---------- headings ---------- */
.heading {
  display: flex; flex-direction: column;
  font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.02em;
  line-height: .9;
  color: var(--red);
  font-size: clamp(40px, 7vw, 84px);
}
.heading .script {
  font-size: .62em; line-height: 1; color: inherit;
  margin-bottom: -.12em; margin-left: .05em;
  transform: rotate(-4deg); transform-origin: left bottom;
}
.heading--cream { color: var(--cream); }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { margin-top: 18px; font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 3px solid transparent;
  font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .02em; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--black); }
.btn--outline { border-color: var(--red-ui); color: var(--red-ui); background: transparent; }
.btn--outline:hover { background: var(--red); color: var(--cream); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.ico { width: 22px; height: 22px; flex: none; }
.link { background: none; border: 0; padding: 4px; text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 800; font-stretch: 115%;
  text-transform: uppercase; font-size: 14px; letter-spacing: .03em; color: var(--red);
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav a:hover { border-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; border: 2px solid var(--red); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; padding: 6px 12px; cursor: pointer;
  font-weight: 800; font-size: 13px; color: var(--red-ui); min-width: 44px; min-height: 44px;
}
.lang button[aria-pressed="true"] { background: var(--red); color: var(--cream); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--red);
  border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; background: var(--cream); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0;
    background: var(--red); padding: 8px var(--gutter) 20px;
    border-bottom: 3px solid var(--black);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { color: var(--cream); font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(240, 227, 204, .25); }
}

/* ---------- status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  background: var(--black); color: var(--cream);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9a9a; }
.status.is-open::before { background: #3ddc6f; box-shadow: 0 0 0 3px rgba(61, 220, 111, .25); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  min-height: min(78vh, 720px); padding-block: 40px;
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-logo { margin: 0; width: min(560px, 100%); }
.hero-title { font-size: clamp(34px, 5vw, 56px); color: var(--red); line-height: 1; transform: rotate(-3deg); margin-top: -4px; }
.hero-body { max-width: 30ch; font-size: clamp(17px, 1.6vw, 20px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-art { align-self: stretch; }
.hero-pizza {
  /* the photo is cropped on two sides; these ratios put the pizza's centre on the
     hero's bottom-right corner so only its top-left quarter shows (radius = --r) */
  --r: min(47vw, 640px);
  position: absolute; z-index: 1;
  right: calc(var(--r) * -0.4605); bottom: calc(var(--r) * -0.6941);
  width: calc(var(--r) * 1.4958); height: auto; max-width: none;
  filter: drop-shadow(-18px -10px 40px rgba(0, 0, 0, .2));
}
.hero .checker { position: relative; z-index: 0; }
@media (max-width: 440px) { .status { font-size: 12.5px; padding: 6px 12px; } }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 0; }
  .hero-art { height: 260px; }
  .hero-pizza { --r: min(78vw, 330px); }
}

/* ---------- about (red) ---------- */
.about { background: var(--red); color: var(--cream); padding-block: clamp(56px, 9vw, 110px); }
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-badge { width: 100%; transform: rotate(-6deg); }
.lead { margin-top: 24px; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; max-width: 40ch; }
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-badge { width: 200px; }
}

/* ---------- team ---------- */
.team { padding-block: clamp(56px, 9vw, 110px); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
  background: #fff8ec; border: 3px solid var(--red); border-radius: var(--radius);
  padding: 16px 16px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.member-pic {
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 8px;
  border-radius: calc(var(--radius) - 6px); overflow: hidden;
  background: var(--cream); display: grid; place-items: center;
}
.member-pic img { width: 100%; height: 100%; object-fit: cover; }
.member-pic.is-mascot img { width: 78%; height: 82%; object-fit: contain; }
.member:nth-child(even) .member-pic.is-mascot { background: var(--red); }
.member h3 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 20px; line-height: 1.1; color: var(--red); }
.member .role { font-family: var(--font-script); font-size: 24px; line-height: 1; color: var(--red); }
.member p { font-size: 15px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { gap: 12px; } .member { padding: 10px 10px 16px; } .member h3 { font-size: 16px; } .member .role { font-size: 20px; } .member p { font-size: 13px; } }

/* ---------- menu ---------- */
.menu { padding-block: clamp(56px, 9vw, 110px); }
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin-bottom: 18px; background: var(--cream);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a {
  flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--red); color: var(--red);
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
}
.menu-tabs a:hover, .menu-tabs a.is-active { background: var(--red); color: var(--cream); }

.menu-cat { margin-top: 40px; }
.menu-cat:first-of-type { margin-top: 0; }
.menu-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.menu-cat-head h3 {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: var(--red);
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; line-height: 1;
}
.menu-cat-head p { font-size: 15px; }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } }

.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-content: start;
  background: #fff8ec; border: 2px solid var(--cream-2); border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color .15s;
}
.dish.has-img { grid-template-columns: 96px minmax(0, 1fr) auto; }
.dish-img { grid-row: span 2; width: 96px; height: 96px; object-fit: contain; align-self: start; }
.dish:hover { border-color: var(--red); }
.dish.is-soldout { opacity: .55; }
.dish-name {
  font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 19px; line-height: 1.15; color: var(--red);
}
.dish-price { font-weight: 900; font-size: 19px; color: var(--red); white-space: nowrap; }
.dish-desc { grid-column: 1 / -1; font-size: 15px; line-height: 1.45; }
.dish.has-img .dish-desc { grid-column: 2 / -1; }
.dish-allergens { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; opacity: .9; }
.dish-allergens strong { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; }
.dish-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 4px; min-height: 44px; }
.dish-foot > [data-ctrl] { margin-left: auto; }
.dish-name { overflow-wrap: break-word; hyphens: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--red-deep);
}
.tag .ico { width: 13px; height: 13px; }
.tag--piccante { background: var(--red); color: var(--cream); }
.tag--veg { background: #dbe8c8; color: #2f5410; }
.tag--vegan { background: #2f5410; color: #eef5e4; }
.tag--top { background: var(--black); color: var(--cream); }
.tag--soldout { background: #555; color: #fff; }
.tag--special { background: var(--red-ui); color: var(--cream); }
.dish.is-special { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 18px 36px -24px rgba(184, 15, 41, .6); }
@media (max-width: 480px) {
  .dish { padding: 16px 14px 14px; gap: 6px 12px; }
  .dish.has-img { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .dish-img { width: 60px; height: 60px; }
  .dish-name, .dish-price { font-size: 17px; color: var(--red-ui); }   /* below "large text" size: needs the deeper red */
  .dish-name { font-stretch: 105%; }
}

.add {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--cream);
  padding: 0 18px; min-height: 44px; cursor: pointer; white-space: nowrap;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
}
.add:hover { background: var(--black); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--red); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 42px; height: 40px; border: 0; background: var(--red); color: var(--cream);
  font-size: 22px; font-weight: 800; cursor: pointer; line-height: 1;
}
.qty button:hover { background: var(--black); }
.qty output { min-width: 36px; text-align: center; font-weight: 900; font-size: 17px; color: var(--red); }

.menu-foot { margin-top: 28px; font-size: 14px; }

/* ---------- how to order (black) ---------- */
.how { position: relative; overflow: hidden; background: var(--black); color: var(--cream); padding-block: clamp(56px, 9vw, 110px); }
.how .heading .script { color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.steps li { border: 2px solid rgba(240, 227, 204, .25); border-radius: var(--radius); padding: 26px; background: rgba(13, 13, 13, .7); }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: var(--cream); font-weight: 900; font-size: 24px; margin-bottom: 16px;
}
.steps h3 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 22px; margin-bottom: 8px; color: var(--cream); }
.how-direct { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; font-size: 18px; }
.how-slice { position: absolute; right: -50px; top: 10px; width: 300px; opacity: .95; transform: rotate(8deg); }
@media (max-width: 1100px) { .how-slice { width: 240px; top: 20px; right: -70px; opacity: .5; } }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit { padding-block: clamp(56px, 9vw, 110px); }
.visit-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
.visit-info { display: grid; gap: 20px; align-content: start; }
.card { background: #fff8ec; border: 3px solid var(--red); border-radius: var(--radius); padding: 24px; }
.card h3 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 20px; color: var(--red); margin-bottom: 12px; }
.card address { font-style: normal; font-size: 18px; margin-bottom: 16px; }
.card .status { margin-bottom: 14px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px dashed var(--cream-2); vertical-align: top; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 900; }
.map { border: 3px solid var(--red); border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* ---------- contact (red) ---------- */
.contact { position: relative; overflow: hidden; background: var(--red); color: var(--cream); padding-block: clamp(56px, 9vw, 110px); }
.contact-inner { position: relative; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; position: relative; z-index: 1; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--cream); color: var(--red-deep);
  border: 2px solid var(--cream); border-radius: var(--radius); padding: 18px 20px;
  transition: background-color .15s, color .15s;
}
.contact-list a:hover { background: var(--black); border-color: var(--black); color: var(--cream); }
.contact-list .ico { width: 30px; height: 30px; }
.contact-list span { display: flex; flex-direction: column; min-width: 0; }
.contact-list small { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.contact-list strong { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.contact-icon { position: absolute; right: var(--gutter); bottom: -20px; width: 300px; opacity: .95; }
@media (max-width: 1000px) { .contact-icon { width: 200px; opacity: .25; } }
@media (max-width: 640px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); padding-bottom: 110px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 40px; text-align: center; }
.footer-inner img { width: 260px; }
.footer-inner .script { font-size: 30px; color: var(--red); }

/* ---------- cart bar ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px;
  border: 0; border-radius: 999px; padding: 10px 12px 10px 10px; cursor: pointer;
  background: var(--black); color: var(--cream);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  font-weight: 800; text-transform: uppercase; font-size: 15px;
  animation: pop .25s ease;
}
.cart-bar[hidden] { display: none; }
.cart-bar-count { background: var(--red); border-radius: 999px; padding: 10px 16px; white-space: nowrap; }
.cart-bar-label { flex: 1; text-align: left; }
.cart-bar-total { padding-right: 12px; }
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- cart dialog ---------- */
.cart {
  width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0 0 0 auto; padding: 0; border: 0;
  background: var(--cream); color: var(--red-deep);
}
.cart::backdrop { background: rgba(13, 13, 13, .55); }
.cart[open] { animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.cart-inner { display: flex; flex-direction: column; height: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--red); color: var(--cream); }
.cart-head h2 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 24px; }
.cart-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--red); font-size: 30px; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { padding: 30px 0; font-size: 17px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--cream-2); }
.cart-lines li.has-img { grid-template-columns: 56px minmax(0, 1fr) auto; }
.cart-lines .line-img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff8ec; }
.addr-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.addr-row label, .delivery-box > label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.cart-lines .line-name { font-weight: 800; text-transform: uppercase; color: var(--red); }
.cart-lines .line-price { font-weight: 800; text-align: right; }
.cart-lines .qty { justify-self: start; }
.cart-lines .qty button { width: 36px; height: 34px; font-size: 18px; }
.cart-sums { margin: 16px 0 20px; }
.cart-sums div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-sums div[hidden] { display: none; }
.cart-sums dd { margin: 0; font-weight: 700; }
.cart-sums .cart-total { font-weight: 900; font-size: 20px; color: var(--red); border-top: 3px solid var(--red); margin-top: 6px; padding-top: 10px; }
.cart-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.cart-fields label, .choice { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.cart-fields input:not([type="radio"]), .cart-fields textarea, .cart-fields select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--cream-2); border-radius: 12px; background: #fff8ec;
  font-size: 16px; font-weight: 500; color: var(--black);
}
.cart-fields input:focus, .cart-fields textarea:focus, .cart-fields select:focus { outline: none; border-color: var(--red); }
.cart-fields .is-invalid { border-color: var(--red) !important; background: #ffe7ea !important; }
.choice-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-opts label {
  display: flex; align-items: center; gap: 8px; padding: 12px; border: 2px solid var(--cream-2);
  border-radius: 12px; background: #fff8ec; cursor: pointer; font-weight: 700;
}
.choice-opts label:has(input:checked) { border-color: var(--red); color: var(--red); }
.choice-opts input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.choice-opts label[hidden] { display: none; }
.choice-opts label[data-pay-online] { grid-column: 1 / -1; }
.delivery-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff8ec; border: 2px dashed var(--cream-2); }
.delivery-box[hidden] { display: none; }
.delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.delivery-actions .link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--red); min-height: 44px; }
.delivery-actions .ico { width: 18px; height: 18px; }
.zone-result, .promo-result { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: var(--cream); }
.zone-result.is-ok, .promo-result.is-ok { background: #dbe8c8; color: #2f5410; }
.zone-result.is-bad, .promo-result.is-bad { background: #ffe7ea; color: var(--red-deep); }
.osm { font-size: 11px; opacity: .7; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { text-transform: uppercase; }
.promo-row .btn { flex: none; min-height: 48px; }
.orders-closed {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--black); color: var(--cream); font-weight: 700;
}
.orders-closed[hidden] { display: none; }
.orders-closed::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.cart-warn { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--black); color: var(--cream); font-size: 14px; }
.cart-foot { padding: 16px 20px 20px; border-top: 2px solid var(--cream-2); background: var(--cream); }
.cart-foot-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 10px; }
.cart-foot .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- admin preview bar (only shown on the admin's device) ---------- */
.preview-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; background: #f5c400; color: var(--black); font-size: 14px; font-weight: 800;
}
.preview-bar button { border: 0; border-radius: 999px; padding: 6px 14px; background: var(--black); color: #fff; font-weight: 800; cursor: pointer; }

/* ---------- contrast: small text and filled buttons use the deeper UI red (WCAG AA) ---------- */
.btn--red, .add, .qty button, .lang button[aria-pressed="true"], .cart-bar-count, .tag--piccante, .step-n,
.menu-tabs a:hover, .menu-tabs a.is-active { background: var(--red-ui); }
.nav a, .menu-tabs a, .card h3, .choice-opts label:has(input:checked), .delivery-actions .link,
.cart-lines .line-name, .hours tr.is-today th, .hours tr.is-today td, .qty output, .footer-inner .script,
.menu-cat-head p, .member .role { color: var(--red-ui); }
.menu-tabs a, .lang, .btn--outline { border-color: var(--red-ui); }
/* the phone menu opens on a red panel: its links must stay cream (the rule above is for the cream desktop header) */
@media (max-width: 920px) {
  .nav { background: var(--red-ui); }
  .nav a { color: var(--cream); font-size: 18px; letter-spacing: .08em; }
}
.about .lead { font-weight: 700; font-size: clamp(19px, 2vw, 23px); }   /* large-text size on the brand red */
.member h3 { color: var(--red-ui); }
.btn--wa, .btn--wa:hover { color: var(--black); }
.btn--wa:hover { background: #25c463; }
.footer-inner .small { opacity: 1; }
@media (max-width: 360px) {
  .dish.has-img { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .dish-img { width: 48px; height: 48px; }
  .dish-name, .dish-price { font-size: 16px; }
}

/* ---------- checkout steps ---------- */
.cart-head { gap: 8px; background: var(--red-ui); }   /* small step label needs AA contrast */
.cart-head-titles { flex: 1; min-width: 0; display: grid; }
.cart-head h2:focus { outline: none; }
.cart-step { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.cart-step:empty { display: none; }
.cart-back { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(240, 227, 204, .18); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.cart-back[hidden] { display: none; }
.cart-back .ico { width: 22px; height: 22px; }

.mode-cards label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; }
.mode-cards input { grid-row: span 2; }
.mode-title { font-weight: 800; }
.mode-info { grid-column: 2; font-size: 12px; font-weight: 600; color: #4f3d31; line-height: 1.3; }
.mode-info:empty { display: none; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 2px solid var(--cream-2); background: #fff8ec; font-size: 15px; font-weight: 800; color: var(--black); cursor: pointer;
}
.slot input:checked + span { background: var(--red-ui); border-color: var(--red-ui); color: var(--cream); }
.slot input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.slot--asap { flex-basis: 100%; }
.slot--asap span { width: 100%; }

.more { border-radius: 12px; }
.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 800; color: var(--red-ui); text-decoration: underline; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { text-decoration: none; }
.more > label, .more .promo { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

.btn--split { justify-content: space-between; padding: 12px 24px; }
.cart-foot-note { margin-top: 8px; text-align: center; }

.review-card { background: #fff8ec; border: 2px solid var(--cream-2); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.review-head { display: flex; align-items: center; justify-content: space-between; }
.review-head h3 { margin: 0; font-size: 14px; font-weight: 900; text-transform: uppercase; color: var(--red-ui); }
.review-head .link { font-size: 14px; font-weight: 800; color: var(--red-ui); min-height: 44px; }
.review-lines { list-style: none; margin: 0; padding: 0; }
.review-lines li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.review-lines img { width: 40px; height: 40px; object-fit: contain; }
.rl-name, .rl-price { font-weight: 800; }
.review-details { margin: 0; display: grid; gap: 6px; }
.review-details div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.review-details dt { color: #4f3d31; }
.review-details dd { margin: 0; font-weight: 700; color: var(--black); overflow-wrap: anywhere; }
.wa-preview { background: #e6ddd0; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.wa-preview-title { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #4b3b30; }
.wa-bubble {
  margin: 0 0 0 24px; padding: 10px 12px; border-radius: 12px 12px 2px 12px; background: #d9fdd3;
  font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: #111; white-space: pre-line; overflow-wrap: anywhere;
}

.sent { text-align: center; display: grid; justify-items: center; gap: 8px; padding-top: 6px; }
.sent img { width: 150px; height: auto; }
.sent-kicker { font-size: 32px; color: var(--red-ui); margin: 0; transform: rotate(-3deg); }
.sent h3 { margin: 0; font-weight: 900; font-stretch: 120%; font-size: 22px; line-height: 1.15; text-transform: uppercase; color: var(--red-deep); }
.sent p { margin: 0; color: var(--black); }
.sent-summary { font-size: 14px; color: #4f3d31 !important; }
.sent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.sent-actions .link { color: var(--red-ui); font-weight: 800; min-height: 44px; font-size: 14px; }

.site-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 999px;
  background: var(--black); color: var(--cream); font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.site-toast[hidden] { display: none; }
.cart-step { opacity: 1; }
.sent-actions .btn--outline { color: var(--red-deep); border-color: var(--red-deep); }
.btn--outline:hover, .sent-actions .btn--outline:hover { background: var(--red-ui); border-color: var(--red-ui); color: var(--cream); }
[data-panel][hidden], [data-foot][hidden] { display: none !important; }
@media (max-width: 480px) { .cart-head h2 { font-size: 20px; line-height: 1.1; } }

/* ---------- basket: contact, house number, cash ---------- */
.addr-row--3 { grid-template-columns: minmax(0, 1fr) 84px 96px; }
@media (max-width: 480px) {
  .addr-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .addr-row--3 > label:first-child { grid-column: 1 / -1; }
}
.contact-box { display: grid; gap: 10px; }
.contact-box > label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-box > label[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* link back to a recent order's live status */
/* at the bottom, clear of the sticky header and the menu's category bar; it moves up above the basket bar */
.order-pill {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 55;
  display: flex; align-items: center; max-width: calc(100% - 32px);
  border-radius: 999px; background: #1f6b36; color: #fff; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.order-pill a { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 18px;
  color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-pill a b { font-weight: 900; overflow: hidden; text-overflow: ellipsis; }
.order-pill button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.order-pill a:focus-visible, .order-pill button:focus-visible { outline: 3px solid #fff; outline-offset: -4px; border-radius: 999px; }
body:has(.cart-bar:not([hidden])) .order-pill { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

/* maintenance page (switched on from the Ordini board) */
.maint { position: fixed; inset: 0; z-index: 200; background: var(--cream); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.maint-box { max-width: 460px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.maint-box > img:first-child { width: 220px; }
.maint-mascot { width: 140px; }
.maint h1 { margin: 0; font-weight: 900; font-stretch: 120%; font-size: 32px; text-transform: uppercase; color: var(--red-ui); }
.maint p { margin: 0; font-size: 18px; color: var(--black); }
.maint-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- seasonal themes (assets/js/themes.js, chosen in Gestione → Temi) ---------- */
.theme-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  margin: 0; padding: 8px var(--gutter); text-align: center;
  font-weight: 800; font-size: 15px; line-height: 1.35;
  background: var(--black); color: #fff;
}
.banner-code {
  min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 2px dashed currentColor;
  background: transparent; color: inherit; font: inherit; font-size: 14px; letter-spacing: .04em; cursor: pointer;
}
.banner-code:hover { background: rgba(255, 255, 255, .15); }
[data-theme="natale"] .theme-banner { background: #1d6b3c; color: #fff; }
[data-theme="capodanno"] .theme-banner { background: var(--black); color: #f3d77a; }
[data-theme="sanvalentino"] .theme-banner { background: #b0154f; color: #fff; }
[data-theme="pasqua"] .theme-banner { background: #e6f3e9; color: #1f4d2b; }
[data-theme="ferragosto"] .theme-banner { background: #0f6d99; color: #fff; }
.theme-sticker {
  position: absolute; z-index: 2; right: clamp(16px, 6vw, 90px); top: clamp(24px, 8vw, 90px);
  font-size: clamp(56px, 9vw, 120px); line-height: 1;
  transform: rotate(10deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25));
}
.theme-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (max-width: 820px) { .theme-sticker { top: auto; bottom: 170px; right: 18px; font-size: 64px; } }

/* =====================================================================
   Refined finish — the same brand (red, cream, Archivo, Yellowtail,
   checkerboard, rounded shapes) with the details of a premium house:
   paper texture, depth instead of flat blocks, finer lines, soft
   shadows, calmer type. Seasonal themes (themes/lux.css) sit on top.
   ===================================================================== */

/* paper: a very light grain over the cream, like a printed menu */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* header: lighter rule, spaced capitals, a shadow once you scroll */
.site-header { border-bottom-width: 2px; box-shadow: 0 10px 30px -24px rgba(120, 10, 25, .55); }
.nav a { font-weight: 700; font-size: 13px; letter-spacing: .12em; }

/* buttons: same pill, a little more air and a soft lift */
.btn { letter-spacing: .08em; padding-inline: 26px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn--red { box-shadow: 0 10px 22px -12px rgba(184, 15, 41, .75), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--red:hover, .btn--outline:hover, .btn--wa:hover { transform: translateY(-2px); }
.btn--outline { border-width: 2px; }
.add { letter-spacing: .06em; box-shadow: 0 8px 18px -12px rgba(184, 15, 41, .8); transition: transform .2s ease, background-color .2s ease; }
.add:hover { transform: translateY(-1px); }

/* hero: warm light behind the name, a deeper shadow under the pizza */
.hero { background: radial-gradient(900px 600px at 18% 30%, rgba(255, 250, 240, .9), transparent 70%), radial-gradient(800px 700px at 100% 100%, rgba(184, 15, 41, .08), transparent 70%); }
.hero-pizza { filter: drop-shadow(-26px -14px 48px rgba(80, 10, 15, .28)) drop-shadow(-6px -4px 10px rgba(80, 10, 15, .12)); }
.status { border: 1px solid rgba(240, 227, 204, .15); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .6); }

/* red and black sections: depth instead of a flat block */
.about, .contact { background: radial-gradient(1100px 700px at 15% 0%, #f22a45, transparent 60%), linear-gradient(160deg, #ee1a37 0%, #d3132f 55%, #b80f29 100%); }
.how { background: radial-gradient(900px 600px at 85% 0%, rgba(238, 26, 55, .22), transparent 60%), linear-gradient(#141010, #0b0909); }
.steps li { border-width: 1px; background: rgba(20, 16, 16, .75); backdrop-filter: blur(2px); }

/* cards: finer outline, soft shadow, a gentle lift */
.member, .card, .map { border-width: 2px; box-shadow: 0 18px 40px -28px rgba(120, 10, 25, .5); }
.dish {
  background: linear-gradient(#fffaf2, #fff6e8);
  border: 1px solid #ead9bb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 30px -26px rgba(120, 10, 25, .55);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dish:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 40px -26px rgba(120, 10, 25, .6); }
.dish-price { font-variant-numeric: tabular-nums; }
.member-pic { box-shadow: inset 0 0 0 1px rgba(184, 15, 41, .12); }
.tag { letter-spacing: .08em; }
.menu-tabs a { border-width: 1.5px; letter-spacing: .08em; transition: background-color .2s ease, color .2s ease; }
.contact-list a { box-shadow: 0 14px 28px -20px rgba(60, 0, 10, .6); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.contact-list a:hover { transform: translateY(-2px); }
.hours th, .hours td { border-bottom-style: solid; border-bottom-color: rgba(184, 15, 41, .1); }

/* footer: a quiet sign-off */
.footer-inner { padding-top: 56px; gap: 14px; }
.footer-inner p:last-child, .footer-inner small { letter-spacing: .06em; }
.cart-bar { box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .45); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .add:hover, .dish:hover, .contact-list a:hover { transform: none; }
}

/* section titles: a small ornament above, like a menu card */
.section-head::before {
  content: ""; display: block; width: 74px; height: 9px; margin-bottom: 18px;
  background:
    linear-gradient(currentColor, currentColor) left center / 30px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 30px 1.5px no-repeat,
    linear-gradient(45deg, transparent 35%, currentColor 35% 65%, transparent 65%) center / 9px 9px no-repeat;
  color: var(--red); opacity: .8;
}
.about .section-head::before, .contact .section-head::before, .how .section-head::before { color: var(--cream); }
.team, .menu, .visit { padding-block: clamp(64px, 10vw, 128px); }

/* ---------- footer: legal line + links ---------- */
.footer-legal { opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: inherit; text-underline-offset: 3px; }
