/* ── HEADER: icona Galleria nella header-right standard ── */

/* Icona scorciatoia Galleria — si adatta ai colori dell'header */
.header-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);  /* bianco su hero scuro */
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.header-icon-link:hover {
  color: #fff;
}

/* Quando header è scrollato: diventa scuro */
.site-header.scrolled .header-icon-link {
  color: var(--text-secondary);
}

.site-header.scrolled .header-icon-link:hover {
  color: var(--accent);
}

/* Etichetta testo — nascosta su mobile, visibile su desktop */
.header-icon-label {
  display: none;
}

@media (min-width: 769px) {
  .header-icon-label { display: inline; }
}

/* menu-open: adatta colori */
.site-header.menu-open .header-icon-link {
  color: var(--text-secondary);
}

/* ── PAGE HERO ── */

.page-hero {
  background: var(--bg-dark);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108,172,228,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(196,149,58,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-hero .section-label { color: var(--accent-light); margin-bottom: 16px; }

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

/* Bottone Vini — sotto la linea azzurra nell'hero */
.hero-wine-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 11px 26px;
  background: rgba(108, 172, 228, 0.15);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-wine-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   TAB BAR — Pill centrate su più righe
   ═══════════════════════════════════════════ */

.menu-tab-bar {
  background: var(--bg-warm);           /* sfondo crema caldo */
  padding: 24px 20px;
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Override: layout pill centrato su più righe */
.menu-tab-bar-pills {
  display: flex;
  flex-wrap: wrap;                       /* va a capo — come nella foto */
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  overflow: visible;                     /* non scorre, si wrappa */
  scrollbar-width: auto;
}

/* Pill base — outline grigio chiaro */
.menu-tab-bar-pills .menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;                   /* full pill */
  border: 1.5px solid rgba(0,0,0,0.14);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

.menu-tab-bar-pills .menu-tab:hover {
  background: var(--bg-warm);
  border-color: rgba(108, 172, 228, 0.5);
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

/* Pill ATTIVA — riempimento blu accent */
.menu-tab-bar-pills .menu-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 172, 228, 0.35);
  transform: none;
}

/* ═══════════════════════════════════════════
   CONTENUTO MENÙ — Card bianche su sfondo crema
   ═══════════════════════════════════════════ */

.menu-main {
  background: var(--bg-warm);            /* sfondo crema caldo */
  padding: 52px 0 80px;
}

.menu-panel {
  display: none;
  animation: fadeUp 0.3s ease;
}

.menu-panel.active { display: block; }

/* Titolo sezione — centrato, grande, Playfair */
.menu-section-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 0;
  border-bottom: none;
}

.menu-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.menu-section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

/* Sottotitolo sottosezione */
.menu-subsection-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 36px 0 14px;
  padding-left: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-subsection-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Lista piatti — colonna di card */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ogni piatto = card bianca arrotondata — come nella foto */
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.menu-row:hover {
  /* hover rimosso su richiesta */
}

/* Card in evidenza (Parrillada) — bordo accent */
.menu-row--highlight {
  border: 2px solid rgba(108, 172, 228, 0.4);
  background: rgba(108, 172, 228, 0.04);
}

.menu-row--highlight:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 172, 228, 0.18);
}

.menu-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Nome piatto — grassetto scuro */
.menu-row-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Descrizione — piccola, corsivo */
.menu-row-desc {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

/* Prezzo — grassetto, allineato a destra */
.menu-row-price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-row-price em {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: normal;
}

/* ── BOX CTA VINI ── */

.wine-cta-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1.5px solid rgba(108, 172, 228, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wine-cta-box:hover {
  box-shadow: 0 8px 24px rgba(108, 172, 228, 0.18);
  transform: translateY(-2px);
}

.wine-cta-box--compact {
  padding: 18px 22px;
  margin: 24px 0;
  gap: 14px;
}

.wine-cta-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.wine-cta-box--compact .wine-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.wine-cta-content { flex: 1; }

.wine-cta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.wine-cta-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.wine-cta-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.wine-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(108, 172, 228, 0.3);
}

.wine-cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.wine-inline-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
}

.wine-inline-link:hover { color: var(--accent-dark); }

/* ── NOTA ALLERGENI ── */

.menu-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
  padding: 20px 24px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.75;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.menu-note strong { color: var(--text-primary); }

/* ── RESPONSIVE ── */

@media (max-width: 992px) {
  .wine-cta-box { flex-wrap: wrap; }
  .wine-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .header-spacer { min-width: 0; }
  .header-right--menu-page .btn-chiama { display: none; }

  /* Su mobile i pill si wrappano ancora di più (gap minore) */
  .menu-tab-bar { padding: 18px 16px; }
  .menu-tab-bar-pills { gap: 8px; }
  .menu-tab-bar-pills .menu-tab { padding: 9px 14px; font-size: 0.78rem; }

  .menu-row { padding: 14px 16px; }
  .menu-row-name { font-size: 0.9rem; }
  .menu-row-price { font-size: 0.85rem; }

  .wine-cta-box { flex-direction: column; align-items: flex-start; padding: 18px; }
  .wine-cta-btn { width: 100%; justify-content: center; }

  .menu-main { padding: 36px 0 60px; }
}
