/* ═══════════════════════════════════════════════════════════
   CAFÈ DE LA SERA — menu.css
   Stili specifici della pagina menu.html
   (estende style.css, non lo sovrascrive)
═══════════════════════════════════════════════════════════ */


/* ─── MENU HERO ─── */

.menu-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 64px;
  overflow: hidden;
  margin-top: 0;
}

.menu-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 40%, rgba(70, 40, 10, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(20, 30, 50, 0.4) 0%, transparent 60%),
    linear-gradient(170deg, #1c1408 0%, #0B0A08 50%, #0e0e10 100%);
}

/* Quando si aggiunge la foto */
.menu-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.menu-hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 50%),
    linear-gradient(to right, rgba(11,10,8,0.5) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.menu-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.menu-hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.menu-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.menu-hero-sub {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 0.75s forwards;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}


/* ─── NAV LINK ATTIVO ─── */

.nav-active {
  color: var(--text) !important;
}


/* ─── INTRO ─── */

.menu-intro {
  padding: 48px;
  border-bottom: 0.5px solid rgba(196,154,56,0.08);
}

.menu-intro-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.menu-intro-line {
  flex: 1;
  height: 0.5px;
  background: var(--gold-line);
}

.menu-intro-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  flex: 3;
}

.menu-intro-text em {
  color: var(--gold);
  font-style: normal;
}


/* ─── SEZIONI MENU ─── */

.menu-section {
  padding: 96px 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}

.menu-section:nth-child(even) {
  background: var(--bg2);
}

.menu-section-header {
  margin-bottom: 56px;
  max-width: 480px;
}

.menu-section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}

.menu-section-title em {
  font-style: italic;
  color: var(--gold);
}

.menu-section-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 400px;
}


/* ─── GRID CONTENUTO ─── */

.menu-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.menu-content-grid--reversed {
  grid-template-columns: 1fr 1.4fr;
}


/* ─── LISTA PIATTI ─── */

.menu-dishes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dish-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s;
}

.dish-row:first-child {
  border-top: 0.5px solid rgba(255,255,255,0.05);
}

.dish-row:hover {
  border-bottom-color: rgba(196,154,56,0.2);
}

.dish-row--featured {
  background: rgba(196,154,56,0.03);
  padding: 20px 16px;
  border: 0.5px solid rgba(196,154,56,0.1) !important;
  margin-top: 8px;
}

.dish-main {
  flex: 1;
}

.dish-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.dish-desc {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2px;
}

.dish-sub-en {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}

.dish-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.dish-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* Prezzo piccolo (versione snack) */
.dish-price-small {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.dish-price-divider {
  font-size: 12px;
  color: var(--text-dim);
}


/* ─── IMMAGINI SEZIONE ─── */

.menu-section-img {
  position: sticky;
  top: 100px;
}

.menu-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #1a1208 0%, #110e06 100%);
  border: 0.5px solid rgba(196,154,56,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-img-placeholder img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.img-placeholder-label {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(196,154,56,0.2);
  text-align: center;
  line-height: 1.6;
  pointer-events: none;
}

.menu-img-placeholder--wide {
  aspect-ratio: 16 / 6;
}


/* ─── DIVISORE ─── */

.menu-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 48px;
  opacity: 0;
  transition: opacity 0.9s;
}

.menu-divider.visible {
  opacity: 1;
}

.menu-divider-line {
  flex: 1;
  height: 0.5px;
  background: rgba(196,154,56,0.12);
}

.menu-divider-icon {
  font-size: 12px;
  color: var(--gold-line);
  flex-shrink: 0;
}


/* ─── DESSERTS ─── */

.menu-section--desserts {
  text-align: center;
}

.menu-section--desserts .menu-section-header {
  max-width: 100%;
  text-align: center;
}

.menu-section--desserts .section-label {
  justify-content: center;
}

.menu-section--desserts .section-label::after {
  display: none;
}

.menu-section--desserts .section-label::before {
  content: '';
  flex: 0 0 24px;
  height: 0.5px;
  background: var(--gold-line);
}

.desserts-img-wrap {
  margin-bottom: 48px;
}

.desserts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(196,154,56,0.08);
  border: 0.5px solid rgba(196,154,56,0.08);
  max-width: 700px;
  margin: 0 auto;
}

.dessert-card {
  background: var(--bg);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.3s;
}

.dessert-card:hover {
  background: rgba(196,154,56,0.03);
}

.dessert-card .dish-name {
  font-size: 22px;
  margin-bottom: 8px;
}

.dessert-card .dish-desc {
  margin-bottom: 16px;
}

.dessert-card .dish-price {
  font-size: 18px;
}


/* ─── NOTE LEGALI ─── */

.menu-legal {
  padding: 40px 48px;
  background: var(--bg2);
  border-top: 0.5px solid rgba(255,255,255,0.04);
}

.menu-legal-text {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.03em;
}


/* ─── CTA FOOTER ─── */

.menu-footer-cta {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
  border-top: 0.5px solid rgba(196,154,56,0.08);
}

.menu-footer-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.menu-cta-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 44px;
}

.menu-cta-title em {
  font-style: italic;
  color: var(--gold);
}

.menu-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}


/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {

  .menu-hero          { padding: 0 24px 48px; height: 45vh; }
  .menu-section       { padding: 64px 24px; }
  .menu-intro         { padding: 32px 24px; }
  .menu-intro-inner   { flex-direction: column; gap: 16px; }
  .menu-intro-line    { display: none; }

  .menu-content-grid,
  .menu-content-grid--reversed {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Su mobile l'immagine va sempre prima del testo */
  .menu-content-grid--reversed .menu-section-img { order: -1; }

  .menu-section-img   { position: static; }
  .menu-img-placeholder { aspect-ratio: 4 / 3; }

  .desserts-grid      { grid-template-columns: 1fr; max-width: 320px; }
  .menu-divider       { padding: 0 24px; }
  .menu-legal         { padding: 32px 24px; }
  .menu-footer-cta    { padding: 80px 24px; }
  .menu-cta-actions   { flex-direction: column; align-items: stretch; text-align: center; }
  .menu-cta-actions .btn-ghost { justify-content: center; }
}
