/* Nele Menu – Frontend CSS v2.3 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════
   VARIABILI E BASE
═══════════════════════════════════ */
#nele-menu-app {
  --gold: #d4a373;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #181818;
  --dark4: #1f1f1f;
  --white: #f0ebe4;
  --muted: rgba(240,235,228,.45);
  --border: rgba(212,163,115,.18);
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  /* Breakout dal container del tema WP */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ═══════════════════════════════════
   SELETTORE LINGUA
═══════════════════════════════════ */
.nele-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 14px 4px;
  flex-wrap: wrap;
}
.nele-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(212,163,115,.2);
  background: transparent;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.nele-lang-btn:hover {
  color: var(--white);
  border-color: rgba(212,163,115,.45);
  background: rgba(212,163,115,.08);
}
.nele-lang-btn.active {
  background: rgba(212,163,115,.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════
   BADGE LEGEND
═══════════════════════════════════ */
.nele-badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}
.nele-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  border: 1px solid;
}
.nele-b-campo { background: rgba(139,0,0,.18);   border-color: rgba(180,50,50,.4);   color: #f08080; }
.nele-b-nele  { background: rgba(212,163,115,.12);border-color: rgba(212,163,115,.35);color: var(--gold); }
.nele-b-terr  { background: rgba(50,160,50,.12);  border-color: rgba(50,160,50,.35);  color: #78c878; }
.nele-b-new   { background: rgba(249,199,79,.12); border-color: rgba(249,199,79,.35); color: #f9c74f; }
.nele-b-top   { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); color: #f97316; }

/* ═══════════════════════════════════
   SEZIONI CATEGORIA
═══════════════════════════════════ */
.nele-cat-section {
  padding: 32px 14px 8px;
  scroll-margin-top: 20px;
}
.nele-cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.nele-cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}
.nele-cat-count {
  font-size: .65rem;
  color: rgba(255,255,255,.25);
}
.nele-banner {
  background: linear-gradient(135deg,#5a0000,#8b0000);
  border: 1px solid rgba(255,80,80,.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════
   SLIDER DI CATEGORIA
═══════════════════════════════════ */
.nele-cat-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  /* Quadrato: aspetto 1:1 */
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  box-sizing: border-box;
}

/* Track che scorre orizzontalmente */
.nele-cat-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Singola slide */
.nele-cat-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

/* Contenuto testo sulla slide */
.nele-cat-slide-inner {
  padding: 20px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.95) 55%);
}
.nele-cat-slide-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 5px;
}
.nele-cat-slide-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* CTA */
.nele-cat-slide-cta {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  font-family: 'DM Sans', sans-serif;
}
.nele-cat-slide-cta:hover { background: #b8845a; color: #fff; }

/* Frecce */
.nele-cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
  padding: 0;
  font-family: serif;
}
.nele-cat-arrow:hover {
  background: rgba(212,163,115,.35);
  border-color: var(--gold);
}
.nele-cat-arrow-left  { left: 10px; }
.nele-cat-arrow-right { right: 10px; }

/* Dots */
.nele-cat-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.nele-cat-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.28);
  transition: all .35s;
  cursor: pointer;
}
.nele-cat-dot.on { width: 18px; background: var(--gold); }

/* ── DESKTOP ≥900px: slider quadrato ma con larghezza max ── */
@media (min-width: 900px) {
  #nele-menu-app { padding: 0 24px; }
  .nele-cat-slider {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .nele-cat-slide-name { font-size: 1.6rem; }
  .nele-cat-section { padding: 36px 20px 10px; }
  #nele-menu-root { max-width: 860px; margin: 0 auto; }
}

/* ═══════════════════════════════════
   ITEM CARDS
═══════════════════════════════════ */
.nele-item-card {
  background: var(--dark3);
  border-radius: 14px;
  padding: 15px 16px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.04);
}
.nele-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.nele-item-name  { font-weight: 600; font-size: .92rem; color: var(--white); flex: 1; }
.nele-item-price { font-family: 'Playfair Display', serif; color: var(--gold); font-size: .95rem; white-space: nowrap; }
.nele-item-desc  { font-size: .78rem; color: rgba(255,255,255,.48); margin-top: 5px; line-height: 1.5; }
.nele-item-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; }

/* ═══════════════════════════════════
   VINI — LAYOUT FINE DINING
═══════════════════════════════════ */

/* Filtri vitigno */
.nele-wine-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nele-wf-chip {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.45);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.nele-wf-chip:hover  { border-color: rgba(212,163,115,.4); color: rgba(212,163,115,.7); }
.nele-wf-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(212,163,115,.08); }

/* Riga singolo vino */
.nele-wine-list { display: flex; flex-direction: column; }

.nele-wine-row {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  transition: opacity .25s;
}
.nele-wine-row:first-child { border-top: 1px solid rgba(255,255,255,.055); }
.nele-wine-row.hidden { display: none; }

/* Riga principale nome + prezzo */
.nele-wine-row-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.nele-wine-row-left { flex: 1; min-width: 0; }

.nele-wine-row-name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.nele-wine-row-info {
  font-size: .65rem;
  color: rgba(255,255,255,.38);
  margin-top: 3px;
  font-style: italic;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nele-wine-row-price {
  font-family: 'Playfair Display', serif;
  font-size: .85rem;
  color: rgba(212,163,115,.75);
  white-space: nowrap;
  flex-shrink: 0;
}
.nele-wine-terr {
  display: inline-block;
  font-size: .58rem;
  color: rgba(120,200,120,.7);
  margin-top: 4px;
  letter-spacing: .3px;
}

/* ── Highlight Sommelier ── */
.nele-wine-row.is-somm {
  padding: 15px 14px 13px;
  margin: 6px -14px;
  border-radius: 10px;
  border: none;
  background: rgba(212,163,115,.06);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.nele-wine-row.is-somm + .nele-wine-row {
  border-top: none;
}
.nele-somm-label {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
  margin-bottom: 5px;
}
.nele-wine-row.is-somm .nele-wine-row-name { color: #f5e8d0; }


/* ═══════════════════════════════════
   ALLERGENI
═══════════════════════════════════ */
.nele-allergeni {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.nele-a-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: .65rem;
  color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════
   DIVISORE
═══════════════════════════════════ */
.nele-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 14px;
  opacity: .35;
}

/* ═══════════════════════════════════
   FAB
═══════════════════════════════════ */
#nele-fab {
  position: fixed;
  bottom: 26px;
  right: 18px;
  padding: 13px 22px;
  border-radius: 50px;
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(212,163,115,.4);
  z-index: 1100;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  color: #0a0a0a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.3;
  text-align: center;
}
#nele-fab:active { transform: scale(.86); }

/* ═══════════════════════════════════
   OVERLAY / SHEET NAV
═══════════════════════════════════ */
#nele-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: .35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(6px);
}
#nele-overlay.on { visibility: visible; opacity: 1; }
.nele-sheet {
  background: var(--dark2);
  border-radius: 26px 26px 0 0;
  padding: 24px 16px 56px;
  max-height: 92vh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nele-sheet-handle {
  width: 38px;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.nele-sheet-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.nele-nav-section { margin-bottom: 16px; }
.nele-nav-section-label {
  font-size: .55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(212,163,115,.5);
  margin-bottom: 8px;
  padding-left: 2px;
}
.nele-nav-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.nele-nav-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 6px;
  color: var(--white);
  font-size: .65rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  letter-spacing: .2px;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
  line-height: 1.3;
}
.nele-nav-btn:hover { background: rgba(212,163,115,.1); }
