:root {
  color-scheme: light;
  --ink: #141212;
  --cream: #f3ebdc;
  --paper: #fbf7ef;
  --red: #c6161a;
  --dk: #8f0f12;
  --line: #e2d5bd;
}

* {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.6 "Baloo 2", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.tri {
  height: 6px;
  background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%);
}

.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%);
  z-index: 30;
}

/* NAVBAR CON LOGO */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 5vw;
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

nav .lg img {
  height: 62px;
  display: block;
}

.links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.links a {
  text-decoration: none;
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.links a:hover,
.links a.on {
  border-color: var(--red);
}

.lang {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
}

.lang button {
  background: none;
  border: 0;
  color: inherit;
  font: 700 14px "Baloo 2";
  padding: 4px 11px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font: 700 18px "Baloo 2";
  text-decoration: none;
  padding: 9px 26px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 0 var(--dk);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.k {
  background: var(--ink);
  box-shadow: 0 4px 0 #555;
}

.btn.c {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 4px 0 #b9a583;
}

.btn.s {
  padding: 6px 20px;
  font-size: 16px;
}

.cta, .opt {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

section {
  padding: 9vh 5vw;
}

.wrap {
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 16px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.cream {
  background: var(--cream);
}

.red {
  background: var(--red);
  color: var(--cream);
}

.ph {
  padding: 7vh 5vw 4vh;
  background: radial-gradient(ellipse at 50% 0, var(--cream), var(--paper));
}

.ph h1 {
  font-size: clamp(40px, 6vw, 84px);
}

.ph p {
  max-width: 38em;
  margin: 10px auto 0;
}

/* HERO CON CANVAS PIZZA 3D */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  padding: 0 5vw;
  background: radial-gradient(ellipse at 72% 50%, var(--cream), var(--paper) 70%);
  position: relative;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 92px);
}

.hero h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.hero p {
  max-width: 26em;
  margin: 18px 0 28px;
  font-size: 20px;
}

.hl {
  display: block;
  height: clamp(120px, 15vw, 200px);
  margin: 0 0 14px -6px;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(0 22px 22px rgba(70, 35, 5, 0.3));
}

#heroSpace {
  height: min(78vh, 700px);
}

.hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0.6;
}

.marq {
  background: var(--red);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font: 800 26px "Baloo 2";
}

.marq div {
  display: inline-block;
  animation: mq 32s linear infinite;
}

@keyframes mq {
  to { transform: translateX(-50%); }
}

.plate {
  background: linear-gradient(135deg, #c89460, #8d5f35);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 26px 44px rgba(60, 30, 0, 0.25);
}

.plate div {
  background: var(--cream);
  padding: 36px 24px;
  text-align: center;
  border-radius: 10px;
}

.plate b {
  display: block;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  color: var(--red);
}

/* CATEGORIE HOMEPAGE */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.cat {
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(60, 30, 0, 0.1);
}

.cat img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15));
}

.cat h3 {
  font-size: 22px;
  margin-top: 8px;
}

/* LOCATIONS */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.store {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 26px rgba(60, 30, 0, 0.08);
}

.store h3 {
  color: var(--red);
  font-size: 28px;
}

.store p {
  margin-top: 8px;
}

.store a.m {
  font-weight: 700;
  color: var(--red);
}

.map {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
  margin-top: 16px;
}

.panel {
  display: none;
  margin-top: 26px;
}

.panel.on {
  display: block;
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.94); }
}

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 44px 5vw 24px;
}

footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

footer img {
  height: 110px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

footer a {
  display: block;
  text-decoration: none;
  opacity: 0.85;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

footer h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

footer small {
  display: block;
  text-align: center;
  margin-top: 32px;
  opacity: 0.6;
}

/* TABS SEZIONI MENU */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.tabs button {
  font: 700 17px "Baloo 2";
  padding: 8px 22px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.tabs button[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 22, 26, 0.25);
}

/* CARD MENU GENERALE */
.mc {
  max-width: 1020px;
  margin: auto;
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(60, 30, 0, 0.14);
}

.mc:before, .mc:after {
  content: "";
  display: block;
  height: 24px;
  background: var(--red);
  margin: 0 6%;
}

.mc:before { border-radius: 0 0 20px 20px; }
.mc:after { border-radius: 20px 20px 0 0; }

.mi-in {
  padding: 30px 4% 34px;
  text-align: center;
}

.menu-brand-logo {
  height: 96px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.mc h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 4px 0 0;
  text-transform: uppercase;
}

.mc h2 em {
  color: var(--red);
  font-style: normal;
}

.tg {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
  margin-bottom: 26px;
  text-transform: uppercase;
}

/* GRIGLIA PIATTI RINNOVATA */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.dish-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(50, 25, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(50, 25, 0, 0.12);
  border-color: var(--red);
}

/* Foto Scontornata del piatto */
.dish-pic-wrap {
  background: radial-gradient(circle at 50% 50%, #fff 30%, #f6ede0 100%);
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.dish-cutout {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 12px rgba(60, 30, 0, 0.3));
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-cutout {
  transform: scale(1.07);
}

.dish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  z-index: 2;
}

.dish-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-top-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.dish-name {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.15;
}

.dish-price {
  text-align: right;
  white-space: nowrap;
}

.price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}

.price-unit {
  font-size: 13px;
  color: #777;
}

.dish-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 10px;
}

.dish-ing {
  font-size: 12px;
  color: #7b7165;
  background: #fdfbf7;
  border: 1px solid #ebdcc8;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: auto;
}

.pie-sizes-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  padding-top: 8px;
  font-size: 12px;
  color: #444;
}

.pie-sizes-row b {
  color: var(--red);
}

/* TOPPINGS EXTRA */
.toppings-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed var(--red);
  text-align: left;
}

.toppings-section h4 {
  font-size: 18px;
  color: var(--red);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.toppings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-tag {
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero, .two { grid-template-columns: 1fr; }
  #heroSpace { height: 75vw; }
  nav { flex-wrap: wrap; gap: 8px 14px; }
  .links { order: 3; width: 100%; justify-content: center; margin: 0; }
  .lang { margin-left: auto; }
  footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dishes-grid { grid-template-columns: 1fr; }
  .dish-pic-wrap { height: 160px; }
}