/* ============================================================
   LA TORRE — menu.css
   ============================================================ */

/* ── PAGE SETUP ───────────────────────────────────────────── */
.menu-page {
  background: var(--black);
  padding-top: 0;
}

/* ── NAV ACTIVE LINK ──────────────────────────────────────── */
.nav-link-active {
  color: var(--terra) !important;
}
.nav-link-active::after {
  width: 100% !important;
}

/* ── PAGE HERO ────────────────────────────────────────────── */
.menu-hero {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 120px clamp(20px, 5vw, 60px) 60px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200,101,74,0.10) 0%, transparent 60%),
    var(--black);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.menu-hero::before {
  content: 'MENÙ';
  position: absolute;
  right: -2vw;
  bottom: -0.15em;
  font-family: var(--font-head);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.05em;
  user-select: none;
}

.menu-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.menu-hero-title {
  font-family: var(--font-head);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin: 16px 0 20px;
}
.menu-hero-title em {
  font-style: italic;
  color: var(--terra-light);
  font-weight: 300;
}

.menu-hero-sub {
  font-size: 15px;
  color: var(--white-soft);
  max-width: 440px;
  line-height: 1.7;
}

/* ── ACCORDION ────────────────────────────────────────────── */
.menu-accordion {
  border-top: 1px solid var(--border-soft);
}

.acc-item {
  border-bottom: 1px solid var(--border-soft);
}

/* Header / trigger */
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 60px);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.25s ease;
}
.acc-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--terra);
  transition: width 0.3s var(--ease-out);
}
.acc-header:hover,
.acc-item.open .acc-header { background: rgba(200,101,74,0.04); }
.acc-header:hover::before,
.acc-item.open .acc-header::before { width: 3px; }

.acc-num {
  font-family: var(--font-head);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  color: var(--terra);
  letter-spacing: 0.1em;
  min-width: 24px;
  flex-shrink: 0;
}

.acc-name {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  flex: 1;
  transition: color 0.25s ease;
}
.acc-item.open .acc-name { color: var(--terra-light); }

.acc-detail {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  flex-shrink: 0;
}

.acc-icon {
  width: 22px; height: 22px;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), color 0.25s ease;
}
.acc-icon svg { width: 100%; height: 100%; display: block; }
.acc-item.open .acc-icon { transform: rotate(180deg); color: var(--terra); }

/* Panel — smooth open/close via grid trick */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.acc-item.open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
}

.acc-content {
  padding: 0 clamp(20px, 5vw, 60px) clamp(32px, 5vw, 56px);
}

@media (max-width: 600px) {
  .acc-detail { display: none; }
  .acc-header { gap: 14px; }
}

/* ── SPIRITS GRID ─────────────────────────────────────────── */
.menu-spirits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.menu-spirit-group { display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .menu-spirits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .menu-spirits-grid { grid-template-columns: 1fr; }
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.menu-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.menu-section {
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: 130px;
}

.menu-section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}
.menu-section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.1;
}
.menu-section-title em { font-style: italic; color: var(--terra-light); }
.menu-section-desc {
  font-size: 14px;
  color: var(--white-soft);
  max-width: 460px;
  line-height: 1.75;
}

.menu-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0;
}

/* ── CARD GRID ────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.menu-grid-2 { grid-template-columns: repeat(2, 1fr); }
.menu-grid-3 { grid-template-columns: repeat(3, 1fr); }
.menu-grid-1 { grid-template-columns: 1fr; }

.menu-card {
  background: var(--black-soft);
  padding: 28px 28px 32px;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-card:hover { background: var(--black-mid); }

.menu-card-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--terra);
  padding: 4px 10px;
  align-self: flex-start;
}

.menu-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.menu-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-item-name {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.menu-item-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--terra);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.menu-item-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.65;
}

.menu-card-wide { grid-column: 1 / -1; }
.menu-card-food .menu-card-body { gap: 10px; }

/* Pinsa list */
.menu-pinsa-intro {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.menu-pinsa-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 32px;
}
.menu-pinsa-list li {
  font-family: var(--font-head);
  font-size: 16px;
  font-style: italic;
  color: var(--white-soft);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.menu-pinsa-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terra);
  font-style: normal;
  font-size: 12px;
}

/* ── LIST GRID (Bevande / Caffetteria) ──────────────────── */
.menu-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.menu-list-col {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.menu-list-group-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--white-soft);
  gap: 12px;
  transition: color 0.2s ease;
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-item:hover { color: var(--white); }

.item-detail {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray);
  flex-shrink: 0;
}

/* ── SUBSECTIONS (Cucina) ─────────────────────────────────── */
.menu-subsection {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.menu-subsection:last-child { margin-bottom: 0; }

.menu-sub-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-sub-title span { position: relative; }
.menu-sub-title::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--terra);
  flex-shrink: 0;
}
.menu-sub-title::after {
  content: '';
  display: block;
  flex: 1; height: 1px;
  background: var(--border-soft);
}

/* ── AZZURRO — dettagli mare nel menu ────────────────────── */

/* Linea ondulata azzurra sotto l'hero del menu */
.menu-hero {
  border-bottom: none;
  position: relative;
}
.menu-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 6' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,3 Q80,1 160,4 Q240,6 320,2 Q400,0 480,3.5 Q560,5 640,2 Q720,0 800,3 Q880,5 960,2 Q1040,0 1120,3.5 Q1160,5 1200,3' stroke='%236AACBE' stroke-width='1.5' fill='none' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

/* Accent azzurro sul numero accordeon */
.acc-num {
  color: var(--azzurro, #6AACBE);
}

/* Wash azzurro leggero sul CTA del menu */
.menu-cta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(106,172,190,0.05) 0%, transparent 70%),
    var(--black-soft);
}

/* ── ARRUZZO leggero sulla pagina menu ────────────────────── */
/* Eredita il grain globale da body::after (style.css).
   Aggiunge una texture a tratteggio sulle sezioni alternate. */
.menu-section:nth-child(even) {
  position: relative;
}
.menu-section:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 18px,
    rgba(255,255,255,0.01) 18px,
    rgba(255,255,255,0.01) 19px
  );
  pointer-events: none;
  z-index: 0;
}
.menu-section:nth-child(even) > * { position: relative; z-index: 1; }

/* Bordo vissuto leggero sulle acc-header aperte */
.acc-item.open .acc-header {
  box-shadow: inset 0 -1px 0 rgba(200,101,74,0.12),
              inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── CTA ──────────────────────────────────────────────────── */
.menu-cta {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  background: var(--black-soft);
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.menu-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,101,74,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.menu-cta-inner {
  position: relative;
  z-index: 1;
  padding: 0 clamp(20px, 5vw, 60px);
}
.menu-cta-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin: 16px 0 32px;
}
.menu-cta-title em { font-style: italic; color: var(--terra-light); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-grid-2, .menu-grid-3 { grid-template-columns: 1fr; }
  .menu-list-grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-pinsa-list { grid-template-columns: 1fr; }
  .menu-tab { padding: 16px 18px; font-size: 10px; }
  .menu-hero { min-height: 36vh; }
}
