/* ─── Page: Menu ─────────────────────────────────────── */

/* ── HERO HEADER ─────────────────────────────────── */

#hero-header {
  padding: 140px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-label {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-lt);
  opacity: 0.8;
}
.hero-title {
  font-family: var(--font-d);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--text);
}
.hero-desc {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-lt);
  line-height: 1.5;
  max-width: 640px;
}



/* ── LEGENDA (sticky top — desktop) ─────────────── */
#legenda-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(181, 191, 174, 0.4);
  padding: 14px 70px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-direction: column;
}
.legenda-label {
  font-family: var(--font-b);
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
}
.legenda-items {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.legenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legenda-item img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.legenda-item span {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-lt);
}

/* ── LAYOUT: sidebar + content ───────────────────── */
#menu-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 60px 70px 100px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── SIDEBAR ─────────────────────────────────────── */
#sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 110px; /* sotto legenda-bar */
  align-self: flex-start;
}
.sidebar-label {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}
.sidebar-sub {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(88, 97, 82, 0.5);
  border-bottom: 1px solid rgba(181, 191, 174, 0.4);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(88, 97, 82, 0.6);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  background: none;
  border: none;
}
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  font-weight: 700;
}
.sidebar-link .s-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── MENU CONTENT ────────────────────────────────── */
#menu-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ── SECTION ─────────────────────────────────────── */
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-head h2 {
  font-family: var(--font-d);
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.section-head p {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.5;
  max-width: 500px;
}

/* ── PIATTI GRID ─────────────────────────────────── */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

/* ── PIATTO CARD ─────────────────────────────────── */
.dish-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dish-img-wrap {
  width: 120px;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage);
  display: none;
}
.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dish-card:hover .dish-img-wrap img {
  transform: scale(1.05);
}
.dish-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dish-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dish-name {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark2);
  line-height: 1.2;
}
.dish-price {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.dish-desc {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--text-lt);
  line-height: 1.6;
}
.dish-badges {
  display: flex;
  gap: 4px;
}
.dish-badge {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

/* ── SECTION separator ───────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(181, 191, 174, 0.35);
  margin: 0;
}

/* ── MOBILE CAT SELECT ───────────────────────────── */
#mob-cat-select-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(239, 233, 221, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(181, 191, 174, 0.4);
  padding: 14px 20px;
}
#mob-cat-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-b);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--sage);
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23535f54' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ══════════════════════════════════════════════════
   TABLET — 1024px
══════════════════════════════════════════════════ */
@media screen and (max-width: 1024px) {
  #menu-layout {
    padding: 60px 40px 100px;
    gap: 40px;
  }
  #legenda-bar {
    padding: 14px 40px;
  }
  #sidebar {
    width: 180px;
  }
  .dishes-grid {
    gap: 32px 40px;
  }
}

/* ══════════════════════════════════════════════════
   MOBILE — 768px
══════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  /* Hero */
  #hero-header {
    padding: 100px 20px 40px;
    gap: 14px;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-desc {
    font-size: 17px;
  }

  /* Legenda: nascosta su mobile (info non critiche) */
  #legenda-bar {
    display: none;
  }

  /* Cat select visible */
  #mob-cat-select-bar {
    display: none;
  }

  /* Layout: no sidebar, content full width */
  #menu-layout {
    padding: 60px 20px 80px;
    /* spazio per la select fissa */
    padding-top: 70px;
  }
  #sidebar {
    display: none;
  }
  #menu-content {
    gap: 60px;
  }

  /* Sezioni */
  .section-head h2 {
    font-size: 34px;
  }

  /* Dishes: 1 col su mobile */
  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* ── DISHES-GRID: ROW variant (Fritti, Dessert) ──── */
  .dishes-grid.is-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dishes-grid.is-row .dish-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(181, 191, 174, 0.25);
  }
  .dishes-grid.is-row .dish-card:last-child {
    border-bottom: none;
  }
  .dishes-grid.is-row .dish-img-wrap {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
  }
  .dishes-grid.is-row .dish-meta {
    flex: 1;
    justify-content: center;
    padding-top: 4px;
  }

  /* ── DISH-CARD: Pizze Speciali ───────────────────── */
  .dish-card.is-special {
    background: var(--sage);
    padding: 20px;
  }
  .dish-card.is-special .dish-img-wrap {
    background: rgba(255, 255, 255, 0.15);
  }

  /* ── ABBINAMENTO DELLO CHEF ──────────────────────── */
  .abbinamento-box {
    background: var(--sage);
    padding: 32px 36px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .abbinamento-label {
    font-family: var(--font-b);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
    opacity: 0.7;
  }
  .abbinamento-inner {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .abbinamento-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }
  .abbinamento-tag {
    font-family: var(--font-b);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-lt);
  }
  .abbinamento-name {
    font-family: var(--font-d);
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
  }
  .abbinamento-note {
    font-family: var(--font-b);
    font-size: 14px;
    color: var(--text-lt);
    line-height: 1.5;
  }
  .abbinamento-sep {
    font-family: var(--font-d);
    font-size: 32px;
    color: var(--text);
    opacity: 0.3;
    flex-shrink: 0;
  }
  .abbinamento-why {
    font-family: var(--font-d);
    font-size: 15px;
    font-style: italic;
    color: var(--text-lt);
    border-top: 1px solid rgba(181, 191, 174, 0.4);
    padding-top: 16px;
    line-height: 1.5;
  }

  /* ── RESPONSIVE abbinamento ──────────────────────── */
  @media screen and (max-width: 768px) {
    .abbinamento-inner {
      flex-direction: column;
      gap: 16px;
    }
    .abbinamento-sep {
      display: none;
    }
    .abbinamento-side:first-child {
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(181, 191, 174, 0.3);
    }
    .abbinamento-box {
      padding: 24px 20px;
    }
    .abbinamento-name {
      font-size: 22px;
    }
  }
  .dish-img-wrap {
    width: 90px;
    height: 90px;
  }
  .dish-name {
    font-size: 19px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  .dish-img-wrap {
    width: 80px;
    height: 80px;
  }
}

/* ── DISHES-GRID: ROW variant (Fritti, Dessert) ──── */
.dishes-grid.is-row {
  grid-template-columns: 1fr;
  gap: 0;
}
.dishes-grid.is-row .dish-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(181, 191, 174, 0.25);
}
.dishes-grid.is-row .dish-card:last-child {
  border-bottom: none;
}
.dishes-grid.is-row .dish-img-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.dishes-grid.is-row .dish-meta {
  flex: 1;
  justify-content: center;
  padding-top: 4px;
}

/* ── DISH-CARD: Pizze Speciali ───────────────────── */
.dish-card.is-special {
  background: var(--sage);
  padding: 20px;
}
.dish-card.is-special .dish-img-wrap {
  background: rgba(255, 255, 255, 0.15);
}

/* ── ABBINAMENTO DELLO CHEF ──────────────────────── */
.abbinamento-box {
  background: var(--sage);
  padding: 32px 36px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.abbinamento-label {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  opacity: 0.7;
}
.abbinamento-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.abbinamento-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.abbinamento-tag {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-lt);
}
.abbinamento-name {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.abbinamento-note {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.5;
}
.abbinamento-sep {
  font-family: var(--font-d);
  font-size: 32px;
  color: var(--text);
  opacity: 0.3;
  flex-shrink: 0;
}
.abbinamento-why {
  font-family: var(--font-d);
  font-size: 15px;
  font-style: italic;
  color: var(--text-lt);
  border-top: 1px solid rgba(181, 191, 174, 0.4);
  padding-top: 16px;
  line-height: 1.5;
}

/* ── RESPONSIVE abbinamento ──────────────────────── */
@media screen and (max-width: 768px) {
  .abbinamento-inner {
    flex-direction: column;
    gap: 16px;
  }
  .abbinamento-sep {
    display: none;
  }
  .abbinamento-side:first-child {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(181, 191, 174, 0.3);
  }
  .abbinamento-box {
    padding: 24px 20px;
  }
  .abbinamento-name {
    font-size: 22px;
  }
}

/* ── SECTION DESC (paragrafo sotto h2) ──────────── */
.section-desc {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.6;
  max-width: 500px;
  margin-top: 8px;
}

/* ── PIZZE SPECIALI: bg sull'intera section ──────── */
.menu-section.is-special-section {
  background: var(--sage);
  padding: 48px 48px 56px;
  margin: 0 -48px; /* compensa il gap del layout */
}
/* Le card dentro non hanno bg */
.is-special-section .dish-card {
  background: none;
}
/* Placeholder immagine su sage: usa colore leggermente diverso */
.is-special-section .dish-img-wrap > div {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ── DRINK: layout split ─────────────────────────── */
.menu-section.is-drink-section {
  gap: 32px;
}

.drink-top {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.drink-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.drink-img-wrap {
  flex-shrink: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: none;
}
.drink-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── ABBINAMENTO (versione compatta drink) ───────── */
.abbinamento-box {
  background: var(--sage);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}
.abbinamento-label {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-lt);
  font-weight: 700;
}
.abbinamento-combo {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.abbinamento-why {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.6;
}

/* ── DRINK ROW: piatti senza immagine ────────────── */
.dish-card.is-drink-row {
  flex-direction: row;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(181, 191, 174, 0.25);
  gap: 0;
}
.dish-card.is-drink-row:last-child {
  border-bottom: none;
}
.dish-card.is-drink-row .dish-meta {
  flex: 1;
}
.dish-card.is-drink-row .dish-name {
  font-size: 17px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .drink-img-wrap {
    width: 260px;
  }
  .menu-section.is-special-section {
    margin: 0 -40px;
    padding: 40px 40px 48px;
  }
}

@media screen and (max-width: 768px) {
  .drink-top {
    flex-direction: column;
    gap: 28px;
  }
  .drink-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .menu-section.is-special-section {
    margin: 0 -20px;
    padding: 32px 20px 40px;
  }
  .abbinamento-box {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY: adattamento stile menu cartaceo
   Font: Cormorant Infant (--font-d) · Gill Sans (--font-b)
═══════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────── */
.hero-label {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 400;
}
.hero-title {
  font-family: var(--font-b);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 10px;
  text-transform: uppercase;
  line-height: 1;
}
.hero-desc {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

/* ── SIDEBAR ───────────────────────────────── */
.sidebar-label {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 3.5px;
  font-weight: 700;
}
.sidebar-sub {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 1.5px;
}
.sidebar-link {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 400;
}
.sidebar-link.active,
.sidebar-link:hover {
  font-weight: 700;
  letter-spacing: 2.5px;
}

/* ── SECTION HEAD ──────────────────────────── */
.section-head h2 {
  font-family: var(--font-b);
  font-size: 44px;
  font-weight: 100;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.section-desc {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--text-lt);
}

/* ── LEGENDA ───────────────────────────────── */
.legenda-label {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 2.5px;
}
.legenda-item span {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* ── DISH CARD ─────────────────────────────── */
.dish-name {
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--sage-dk);
}
.dish-price {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sage-dk);
}
.dish-desc {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

/* ── ABBINAMENTO ───────────────────────────── */
.abbinamento-label {
  font-family: var(--font-b);
  font-size: 9px;
  letter-spacing: 3px;
}
.abbinamento-combo {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
}
.abbinamento-why {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

#pizze-special {
  padding: 40px;
  background-color: var(--sage);
}

.abbinamento-box {
  display: none;
}
