:root {
  --bg: #0f0e0d;
  --paper: #171412;
  --text: #f2e6d6;
  --muted: #b8a992;
  --red: #d46a3a;
  --red-dark: #a94f2a;
  --yellow: #ffbe3d;
  --crust: #f3d2a3;
  --wood: #2a211a;
  --line: #3a2f25;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  --header-scroll-margin: 20px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-scroll-margin);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: radial-gradient(circle at 50% 0, #221a14 0, #15110e 42%, #0d0c0b 100%);
  color: var(--text);
  font-family: "Nunito", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% 0 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 224, 168, 0.2) 0 1.2px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 184, 110, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 245, 222, 0.11) 0 0.9px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 150, 80, 0.1) 0 0.8px, transparent 1.8px);
  background-size: 130px 150px, 190px 185px, 260px 220px, 320px 280px;
  background-position: 8% 120%, 72% 108%, 42% 130%, 24% 125%;
  animation: soot-rise-a 18s linear infinite;
  opacity: 0.62;
}

body::after {
  background-image:
    radial-gradient(circle, rgba(255, 190, 120, 0.14) 0 1.1px, transparent 2.3px),
    radial-gradient(circle, rgba(255, 235, 190, 0.11) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 135, 70, 0.42) 0 0.9px, transparent 1.8px);
  background-size: 170px 170px, 250px 230px, 420px 380px;
  background-position: 88% 118%, 18% 126%, 58% 132%;
  animation: soot-rise-b 23s linear infinite, spark-flicker 7.5s steps(1, end) infinite;
  filter: blur(0.25px);
  opacity: 0.52;
}

@keyframes soot-rise-a {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-46vh);
  }
}

@keyframes soot-rise-b {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-58vh);
  }
}

@keyframes spark-flicker {
  0%,
  62%,
  100% {
    opacity: 0.4;
  }
  66% {
    opacity: 0.85;
  }
  69% {
    opacity: 0.5;
  }
  83% {
    opacity: 0.78;
  }
  86% {
    opacity: 0.46;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
    opacity: 0.22;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-spacing {
  margin-top: 2rem;
  margin-bottom: 2.25rem;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0 0.75rem;
}

/* Home: solo bordo come il tasto menu (niente sfondo / vetro) */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border-radius: 14px;
  background: var(--bg);
  border: 2px solid var(--line);
  box-shadow: none;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logo: bordo unico sul contenitore .logo-wrap (evita doppia cornice) */
.logo-img {
  display: block;
  height: clamp(64px, 16vw, 96px);
  width: auto;
  max-width: min(340px, 84vw);
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.is-hidden {
  display: none !important;
}

.logo-placeholder {
  min-height: 64px;
  min-width: 120px;
  max-width: min(340px, 84vw);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: repeating-linear-gradient(
    135deg,
    #ffe3c0,
    #ffe3c0 12px,
    #ffd9aa 12px,
    #ffd9aa 24px
  );
  border: 3px dashed #de944f;
  color: #9b4d1b;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: #1b1512;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.lang-divider {
  width: 1px;
  height: 1.2rem;
  background: var(--line);
  margin: 0 0.1rem;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: rgba(222, 60, 46, 0.55);
  color: var(--text);
  outline: none;
}

.lang-btn.active {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  border-color: var(--red-dark);
  color: #fff;
}

.lang-switch-mobile {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem 0.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav-toggle {
  border: 2px solid var(--line);
  background: rgba(26, 20, 17, 0.58);
  color: var(--text);
  border-radius: 14px;
  width: 58px;
  height: 50px;
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  border-color: rgba(222, 60, 46, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(177, 52, 40, 0.2);
  outline: none;
}

.mobile-nav-popup {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 190px;
  padding: 0.35rem;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #1b1512;
  box-shadow: 0 14px 28px rgba(106, 45, 17, 0.2);
  z-index: 30;
  display: none;
}

.hamburger-icon {
  width: 24px;
  height: 17px;
  margin: 0 auto;
  display: grid;
  align-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 10px;
  background: var(--red-dark);
}

.mobile-nav.is-open .mobile-nav-popup {
  display: block;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: #2a2019;
  outline: none;
}

.mobile-nav-link.active {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff;
}

.nav-link {
  background: #1a1411;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(222, 60, 46, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(177, 52, 40, 0.18);
}

.nav-link.active {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(177, 52, 40, 0.28);
}

h2 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.1;
}

/* Titoli sezione: look piu' curato e accattivante */
.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  letter-spacing: 0.01em;
  color: #f6ede2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.section-title::before {
  content: none;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(72px, 35%, 140px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 106, 58, 1), rgba(255, 190, 61, 0.86));
  opacity: 1;
}

.section-title > span {
  position: relative;
  z-index: 1;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  font-family: "Baloo 2", cursive;
}

.section-intro {
  margin-top: 0.45rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

/* Schede menù: flip 3D — ingredienti sul retro al clic */
.pizza-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  perspective: 1100px;
}

.pizza-flip-scene {
  height: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pizza-card:hover .pizza-flip-scene,
.pizza-card:focus-within .pizza-flip-scene {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(106, 45, 17, 0.2);
}

/* Griglia a singola cella: l'altezza segue il contenuto (niente taglio ai prezzi) */
.pizza-flip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, auto);
  width: 100%;
  min-height: min-content;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.pizza-card.is-flipped .pizza-flip-inner {
  transform: rotateY(180deg);
}

.pizza-flip-face {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pizza-card:not(.is-flipped) .pizza-flip-back {
  pointer-events: none;
}

.pizza-card.is-flipped .pizza-flip-front {
  pointer-events: none;
}

.pizza-card:focus {
  outline: none;
}

.pizza-card:focus-visible .pizza-flip-scene {
  outline: 3px solid rgba(222, 60, 46, 0.45);
  outline-offset: 3px;
}

.pizza-flip-front {
  transform: translateZ(1px);
  position: relative;
}

.pizza-flip-front::after {
  content: "i";
  position: absolute;
  top: 1rem;
  right: 0.55rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(58, 47, 37, 0.7);
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-family: "Baloo 2", cursive;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.pizza-card.is-flipped .pizza-flip-front::after {
  opacity: 0;
}

/* Riquadro immagine menù: icona trasparente ben leggibile su dark theme */
.pizza-menu-visual {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0 !important;
}

.pizza-menu-visual.placeholder-box {
  display: block;
  border: none;
  background: #191411;
}

/* Alone caldo per far emergere le icone PNG trasparenti */
.pizza-menu-visual::before {
  content: "";
  position: absolute;
  inset: 10% 14%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 175, 88, 0.2) 0%,
    rgba(255, 126, 47, 0.1) 42%,
    rgba(0, 0, 0, 0) 75%
  );
  filter: blur(10px);
  z-index: 0;
}

/* Icona trasparente: dimensione contenuta e centrata */
.pizza-type-icon-in-photo,
.pizza-menu-visual .pizza-menu-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.pizza-menu-visual .pizza-menu-bg {
  z-index: 0;
  object-fit: cover;
  opacity: 0.86;
}

.pizza-menu-visual:has(.pizza-menu-bg) .pizza-type-icon-in-photo {
  z-index: 2;
  object-fit: contain;
  width: 74%;
  height: 74%;
  inset: unset;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}

.pizza-menu-visual:not(:has(.pizza-menu-bg)) .pizza-type-icon-in-photo {
  width: 84%;
  height: 84%;
  inset: unset;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

.pizza-menu-visual .nutella-icon {
  width: 100%;
  height: 100%;
}

.pizza-menu-placeholder-only {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.pizza-placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}

.pizza-flip-front .price-card {
  margin-top: auto;
  flex-shrink: 0;
}

.pizza-flip-back {
  transform: rotateY(180deg);
  text-align: center;
  justify-content: center;
}

.pizza-flip-back .ingredient-list {
  justify-content: center;
  margin: 0.75rem 0 0;
  flex: 0 1 auto;
}

@media (prefers-reduced-motion: reduce) {
  .pizza-flip-inner {
    transition: none;
    min-height: 0;
    display: block;
  }

  .pizza-card.is-flipped .pizza-flip-inner {
    transform: none;
  }

  .pizza-flip-back {
    transform: none;
  }

  .pizza-flip-face {
    grid-column: auto;
    grid-row: auto;
    display: none;
    pointer-events: auto;
  }

  .pizza-card.is-flipped .pizza-flip-front,
  .pizza-card:not(.is-flipped) .pizza-flip-front {
    pointer-events: auto;
  }

  .pizza-flip-front {
    display: flex;
  }

  .pizza-card.is-flipped .pizza-flip-front {
    display: none;
  }

  .pizza-card.is-flipped .pizza-flip-back {
    display: flex;
  }
}

.pizza-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #f6e0cb;
  background: #fff;
}

.pizza-art img {
  width: 100%;
  aspect-ratio: 640 / 420;
  object-fit: cover;
  display: block;
}

.pizza-menu-photo {
  aspect-ratio: 640 / 420;
  min-height: 0;
  margin-bottom: 0.75rem;
}

.placeholder-box {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 2px dashed #7d5a3f;
  background: linear-gradient(135deg, #201912, #17110d);
  color: #caa277;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.ingredient-list {
  margin: 1rem 0 0.9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ingredient-list li {
  background: #261d17;
  border: 1px solid #4a3628;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #191411;
  padding: 0.7rem;
}

.price-card h4 {
  margin: 0 0 0.35rem;
  color: var(--red-dark);
  font-size: 1.02rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.45rem 0.3rem;
}

thead th {
  color: #c8b39a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #efdbca;
}

tbody tr + tr td {
  border-top: 1px dashed #3e3024;
}

.size-icon {
  width: 1.08rem;
  height: 1.08rem;
  display: inline-block;
  margin-right: 0.42rem;
  border-radius: 50%;
  vertical-align: -0.13rem;
  border: 2px solid #b6632e;
  background: radial-gradient(circle at 45% 38%, #ffe4b8 0 35%, #ffbf63 36% 100%);
}

.icon-half {
  background: linear-gradient(to right, #ffbf63 0 50%, transparent 50% 100%);
}

.icon-slice {
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  border-radius: 4px;
  width: 1rem;
}

#galleria {
  scroll-margin-top: var(--header-scroll-margin);
}

.gallery-section {
  min-height: 100vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  background: #191411;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #3d2f24;
  background: linear-gradient(135deg, #1f1812, #13100d);
}

.gallery-media {
  width: 100%;
}

.gallery-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 2px dashed #7d5a3f;
  background: linear-gradient(135deg, #201912, #17110d);
  color: #caa277;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.gallery-caption {
  margin: 0.65rem 0 0.15rem;
  text-align: center;
  font-family: "Baloo 2", cursive;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f2e6d6;
  letter-spacing: 0.02em;
}

.chef-layout {
  margin-top: 1rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  align-items: stretch;
}

.chef-image {
  min-height: 330px;
}

.chef-image-wrap {
  min-height: 330px;
}

img.chef-image {
  width: 100%;
  min-height: 330px;
  border-radius: var(--radius-lg);
  border: 2px solid #3d2f24;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
  background: #fff;
}

.chef-bio {
  background: #191411;
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.contact-form {
  margin-top: 0.9rem;
  background: #191411;
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
}

.contact-form-note {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form--compact label {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.field-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow), #ffe091);
  border: 1px solid #f0be66;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 2px solid #4a3628;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #1a1411;
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b85430;
  box-shadow: 0 0 0 3px rgba(184, 84, 48, 0.25);
}

button[type="submit"] {
  margin-top: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(177, 52, 40, 0.32);
}

.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #17120f, #110e0c);
  border-top: 2px solid #3a2f25;
}

.footer-inner {
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.footer-inner p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links a {
  color: #e5d2be;
  text-decoration: none;
  font-weight: 800;
  background: #1d1612;
  border: 1px solid #3f3024;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: #2b2119;
}

.insta-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(250px, calc(100vw - 2rem));
  border: 2px solid #4a3628;
  border-radius: 16px;
  background: #1b1512;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  padding: 0.85rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.6rem;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.insta-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.insta-popup p {
  margin: 0;
  font-weight: 700;
  padding-right: 1.4rem;
}

.insta-popup-btn {
  justify-self: start;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.insta-popup-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 0;
  background: transparent;
  color: #d8c0a5;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem;
}

.insta-popup-close:hover,
.insta-popup-close:focus-visible {
  color: #fff3e5;
  outline: none;
}

@media (max-width: 980px) {
  .pizza-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chef-layout {
    grid-template-columns: 1fr;
  }

  .chef-image {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .mobile-nav-popup {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 92px;
    width: min(92vw, 360px);
    min-width: 0;
    padding: 0.5rem;
  }

  .pizza-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
    margin-bottom: 0.45rem;
  }

  .placeholder-box {
    min-height: 200px;
  }
}

/* Shimmer skeleton while images load */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.img-loading {
  background: linear-gradient(
    90deg,
    #191411 0%,
    #2a211a 40%,
    #3a2f25 50%,
    #2a211a 60%,
    #191411 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.pizza-menu-visual.img-loading::before {
  opacity: 0;
}

.gallery-media.img-loading {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}

.img-loading > img,
.img-loading > .pizza-type-icon-in-photo {
  opacity: 0;
}

.img-loaded > img,
.img-loaded > .pizza-type-icon-in-photo {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.gallery-card .img-loaded > img {
  opacity: 1;
  transition: opacity 0.35s ease;
}
