/* 1. Root variables */
:root {
  --ivory: #fbf5e9;
  --paper: #fffaf0;
  --green: #073f27;
  --green-2: #0e5635;
  --gold: #8f5d1d;
  --gold-soft: #d6b47e;
  --ink: #1f211c;
  --muted: #6f6659;
  --line: rgba(119, 87, 43, 0.22);
  --tomato: #a23925;
  --shadow: 0 18px 52px rgba(48, 35, 18, 0.13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
}

/* 2. Reset & base */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(90deg, rgba(189, 132, 48, 0.04) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(circle at 10% 0%, rgba(189, 132, 48, 0.09), transparent 34%),
    var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(7, 63, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 63, 39, 0.02) 1px, transparent 1px);
  background-size: 17px 17px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  display: block;
}

/* 3. Page shell & layout */
.page-shell {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 10px 16px 88px;
}

.menu-header {
  display: grid;
  gap: 10px;
}

/* 4. Header */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(143, 93, 29, 0.3);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.6);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-pill:hover,
.lang-pill:focus-visible {
  color: var(--green);
  border-color: var(--gold);
  background: var(--paper);
}

.lang-pill.is-active {
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), #062b1c);
  border-color: var(--green);
  font-weight: 800;
  pointer-events: none;
}

.lang-pill:active {
  transform: scale(0.95);
}

/* 7. Section headings */
.recommendations,
.menu-section {
  scroll-margin-top: 70px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(20px, 48px)
                         minmax(0, auto)
                         minmax(20px, 48px);
  align-items: center;
  gap: 10px;
  margin: 36px 0 4px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 2.35rem);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-heading span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(143,93,29,0.45));
}

.section-heading span:last-child {
  background: linear-gradient(90deg,
    rgba(143,93,29,0.45),
    transparent);
}

.recommendations .section-heading {
  margin-top: 16px;
}

.section-intro,
.section-note {
  max-width: 55ch;
  margin: 7px auto 14px;
  color: #675e50;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.section-note {
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gold-divider {
  display: grid;
  grid-template-columns: minmax(36px, 92px) 42px minmax(36px, 92px);
  gap: 10px;
  align-items: center;
  margin: 18px 0 14px;
}

.gold-divider span {
  display: block;
  height: 1px;
  background: var(--gold);
}

/* 8. Recommendations */
.recommendations {
  padding: 15px 0 10px;
}

.recommendation-carousel {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.recommendation-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 2px 16px 8px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recommendation-track::-webkit-scrollbar {
  display: none;
}

.recommendation-card {
  flex: 0 0 min(88vw, 340px);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg,
    rgba(255,250,240,0.98) 0%,
    rgba(248,238,220,0.95) 100%);
  border: 1px solid rgba(143,93,29,0.14);
  box-shadow: 0 2px 16px rgba(60,41,18,0.08);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  flex: 0 0 auto;
  background: #c8a96e;
}

.image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.image-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 23, 15, 0.2), transparent 48%),
    repeating-linear-gradient(38deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 25px);
}

.image-placeholder::after {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 10px;
  pointer-events: none;
}

.image-placeholder.is-pistacchio {
  background:
    radial-gradient(circle at 55% 58%, rgba(224, 197, 111, 0.86) 0 17%, transparent 18%),
    radial-gradient(circle at 47% 44%, rgba(87, 119, 49, 0.9) 0 7%, transparent 8%),
    linear-gradient(135deg, #2e1f18, #9b7d3e 50%, #d9b676);
}

.image-placeholder.is-bufalina {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 250, 240, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 34% 58%, rgba(179, 50, 35, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 63%, rgba(179, 50, 35, 0.95) 0 6%, transparent 7%),
    linear-gradient(135deg, #1f251a, #745734 50%, #f4e2bd);
}

.image-placeholder.is-diavola {
  background:
    radial-gradient(circle at 46% 46%, rgba(151, 37, 25, 0.97) 0 8%, transparent 9%),
    radial-gradient(circle at 66% 63%, rgba(151, 37, 25, 0.92) 0 8%, transparent 9%),
    radial-gradient(circle at 63% 38%, rgba(19, 88, 50, 0.84) 0 5%, transparent 6%),
    linear-gradient(135deg, #3a1d12, #b84b25 51%, #edb55f);
}

.image-placeholder.is-frutti {
  background:
    radial-gradient(circle at 38% 48%, rgba(240, 224, 177, 0.92) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 54%, rgba(211, 113, 58, 0.9) 0 8%, transparent 9%),
    linear-gradient(135deg, #18251e, #476154 46%, #d3a45a);
}

.image-placeholder.is-tiramisu {
  background:
    linear-gradient(180deg, rgba(108, 72, 36, 0.96) 0 23%, rgba(242, 221, 179, 0.96) 24% 54%, rgba(92, 59, 34, 0.94) 55% 100%),
    #d2a665;
}

.image-placeholder.is-primavera {
  background:
    radial-gradient(circle at 45% 50%, rgba(236, 217, 169, 0.94) 0 13%, transparent 14%),
    radial-gradient(circle at 62% 56%, rgba(40, 96, 52, 0.85) 0 7%, transparent 8%),
    radial-gradient(circle at 35% 42%, rgba(179, 60, 38, 0.85) 0 6%, transparent 7%),
    linear-gradient(135deg, #2c1f15, #7a5b32 48%, #e8c986);
}

.photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 250, 240, 0.4);
  border-radius: 999px;
  color: #fff8e8;
  background: rgba(100, 70, 27, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plate-shape {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 62px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.56);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.22));
  opacity: 0.85;
}

.recommendation-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-align: left;
}

.recommendation-body h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.recommendation-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.item-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: start;
}

.item-meta strong {
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 2px;
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 63, 39, 0.24);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel-dots button.is-active {
  width: 18px;
  background: var(--green);
}

.carousel-dots button:active {
  transform: scale(0.9);
}

/* 9. Menu sections */
.menu-section {
  padding-top: 4px;
}

.subsection-stack {
  display: grid;
  gap: 16px;
}

.menu-subsection {
  display: grid;
  gap: 9px;
}

.menu-subsection > h3 {
  margin: 0;
  padding: 0 2px 7px;
  border-bottom: 1px solid rgba(143, 93, 29, 0.2);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  width: 100%;
  max-width: 100%;
}

.menu-item {
  width: 100%;
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid rgba(143, 93, 29, 0.16);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.54);
  box-shadow: 0 5px 15px rgba(60, 41, 18, 0.035);
}

.menu-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
}

.menu-item h3 {
  margin: 0;
  min-width: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.menu-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.menu-item .badge-row {
  margin-top: 9px;
}

.price {
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  justify-self: end;
}

/* 10. Badges */
.badge-row,
.legend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid rgba(143, 93, 29, 0.28);
  border-radius: 999px;
  color: #5f523d;
  background: rgba(255, 250, 240, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.badge.is-compact {
  padding: 4px 10px;
}

.badge.is-chef,
.badge.is-popular {
  color: #70511d;
  border-color: rgba(143, 93, 29, 0.34);
  background: rgba(143, 93, 29, 0.075);
}

.badge.is-veg,
.badge.is-vegan {
  color: #1f5c3d;
  border-color: rgba(31, 92, 61, 0.3);
  background: rgba(31, 92, 61, 0.055);
}

.badge.is-spicy {
  color: #8f3f32;
  border-color: rgba(143, 63, 50, 0.32);
  background: rgba(143, 63, 50, 0.065);
}

/* 11. Info panel */
.info-panel {
  display: grid;
  gap: 18px;
  padding: 15px;
  border: 1px solid rgba(143, 93, 29, 0.18);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.55);
  box-shadow: 0 5px 16px rgba(60, 41, 18, 0.035);
}

.info-panel h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 14. Tablet */
@media (min-width: 700px) {
  .page-shell {
    padding: 18px 24px 88px;
  }

  .lang-pill {
    min-width: 40px;
    min-height: 38px;
    font-size: 0.74rem;
  }

  .recommendations,
  .menu-section {
    margin-top: 24px;
  }

  .recommendations {
    padding: 22px 0 14px;
  }

  .recommendation-track {
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }

  .recommendation-card {
    flex-basis: calc((100% - 24px) / 3);
  }

  .image-placeholder {
    min-height: 160px;
  }

  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-heading h2 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(1.72rem, 4.5vw, 2.45rem);
  }
}

/* 15. Desktop */
@media (min-width: 980px) {
  .page-shell {
    padding-bottom: 70px;
  }

  .recommendation-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
  }

  .recommendation-card:is(:hover, :focus-within) {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(64, 48, 24, 0.14);
  }

  .mobile-bottom-bar {
    display: none;
  }
}

/* 16. Micro-phones */
@media (max-width: 370px) {
  .page-shell {
    padding-inline: 12px;
  }
}

/* 17. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}


/* Price block */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 2px;
  white-space: nowrap;
}

.price-dot {
  color: var(--gold-soft);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
}

.price {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Subsection mark */
.subsection-mark {
  display: inline-block;
  margin-right: 6px;
  color: var(--gold);
  font-size: 0.7rem;
  vertical-align: middle;
  opacity: 0.75;
}

/* Item name category styling */
.menu-item h3[data-category="pizza-classica"],
.menu-item h3[data-category="pizza-special"],
.menu-item h3[data-category="pizza-pop-up"] {
  letter-spacing: 0.035em;
}

.menu-item h3[data-category="desserts"] {
  font-style: italic;
}

/* Badge inline */
.badge-row.is-inline {
  margin-top: 8px;
}

.recommendation-body h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

/* Info panel refinement */
.info-panel {
  border-left: 3px solid var(--gold-soft);
}

/* ── Category nav + pills ───────────── */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 14px -16px 0;
  padding: 10px 16px;
  background: rgba(251,245,233,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid rgba(143,93,29,0.13);
}

.category-scroller {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(143,93,29,0.26);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255,250,240,0.85);
  text-decoration: none;
  scroll-snap-align: start;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease,
              border-color 160ms ease,
              color 160ms ease;
}

.category-pill:first-child {
  color: var(--paper);
  background: linear-gradient(145deg, var(--green), #051f12);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(7,63,39,0.2);
}

.category-pill:hover,
.category-pill:focus-visible {
  border-color: var(--gold);
  background: var(--paper);
  color: var(--green);
}

.category-pill:first-child:hover {
  background: var(--green-2);
}

.pill-label {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 700px) {
  .category-nav {
    margin-inline: -24px;
    padding-inline: 24px;
  }

  .category-pill {
    height: 38px;
    padding: 0 18px;
  }

  .pill-label {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }
}

/* ── Bottom bar: single centered back-to-top ───── */

.mobile-bottom-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  pointer-events: none;
}

.bottom-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: none;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), #051f12);
  box-shadow: 0 8px 28px rgba(7,63,39,0.28);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 180ms ease, transform 180ms ease;
}

.bottom-back-btn:active {
  opacity: 0.88;
  transform: scale(0.98);
}

@media (min-width: 980px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* ── Section ornament: rule + diamond ───── */

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 20px;
  max-width: 180px;
}

.ornament-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(143,93,29,0.5),
    rgba(143,93,29,0.5)
  );
}

.ornament-rule:last-child {
  background: linear-gradient(
    90deg,
    rgba(143,93,29,0.5),
    rgba(143,93,29,0.5),
    transparent
  );
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 6px;
  opacity: 0.75;
}

/* ── Hero header: logo + title ───── */

.menu-hero-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 10px;
  width: 100%;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px 18px;
  border: 1px solid rgba(143,93,29,0.16);
  border-radius: 16px;
  background: rgba(255,250,240,0.55);
  gap: 4px;
}

.brand-logo {
  width: 160px;
  height: 56px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 6px;
  display: block;
  margin-inline: auto;
}

.brand-title {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.intro-divider span {
  width: 36px;
  height: 1px;
  background: rgba(143,93,29,0.5);
}

.intro-divider i {
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex: 0 0 5px;
}

.intro-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 38ch;
}

