/* ============================================================
   DA FELICE — CARTA DEI VINI
   Ristorante di pesce · Chiavari, Riviera Ligure
   Design: eleganza marinara, mediterraneo raffinato
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;500&family=Lato:wght@300;400&display=swap');

/* ── VARIABILI ──────────────────────────────────────────── */
:root {
  --blu-profondo: #0c1a27;
  --blu-marino: #152b40;
  --blu-medio: #1d4368;
  --acqua: #4a9ab0;
  --acqua-chiaro: #7fc4d8;
  --sabbia: #e8dcc8;
  --sabbia-chiaro: #f5efe3;
  --oro: #c9a96e;
  --oro-chiaro: #e0c98a;
  --bianco: #faf8f4;
  --testo-scuro: #1a1a1a;
  --testo-medio: #4a4035;
  --testo-chiaro: #7a6e60;

  --rosso-vino: #8b2635;
  --rosa-vino: #c97c8a;
  --bollicine-oro: #b8953a;

  --shadow-card: 0 8px 24px -4px rgba(13, 30, 46, 0.08), 0 2px 6px rgba(13, 30, 46, 0.03);
  --shadow-hover: 0 16px 36px -6px rgba(13, 30, 46, 0.16), 0 4px 12px rgba(201, 169, 110, 0.14);
  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --radius-section: 24px;
  --transition: 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background-color: var(--blu-profondo);
  color: var(--sabbia);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SFONDO OCEANO ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -5%, rgba(201, 169, 110, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 30%, rgba(30, 73, 118, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(139, 38, 53, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #0a1520 0%, #0e1e2d 40%, #08121a 100%);
  z-index: -2;
  pointer-events: none;
}

/* Pattern onde sottile */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 30 Q30 10 60 30 Q90 50 120 30' fill='none' stroke='rgba(74,154,176,0.04)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 60px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: relative;
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  overflow: hidden;
}

.header-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.header-ornament .line {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--oro));
  opacity: 0.6;
}

.header-ornament .line.right {
  background: linear-gradient(to left, transparent, var(--oro));
}

.header-ornament .fish {
  color: var(--oro);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ── ANCORA "TORNA ALLA CARTA" (pagine dettaglio vino) ─── */
a.ancora-top {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--oro);
  font-size: 1.1rem;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  line-height: 1;
}

a.ancora-top:hover {
  opacity: 1;
  color: var(--oro-chiaro);
  transform: scale(1.25) rotate(-15deg);
}


.ristorante-nome {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bianco);
  text-shadow: 0 0 60px rgba(74, 154, 176, 0.3);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ristorante-sottotitolo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--acqua-chiaro);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.ristorante-luogo {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
  opacity: 0.7;
}

.carta-titolo {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 1.5vw, 0.88rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--oro-chiaro);
  margin-top: 1rem;
  opacity: 0.85;
}

/* ── NAVIGAZIONE GLOBALE ─────────────────────────────────── */
.main-nav {
  background: rgba(13, 30, 46, 0.95);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sabbia);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.attivo {
  opacity: 1;
  color: var(--oro);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link.attivo::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── FILTRI NAVIGAZIONE ─────────────────────────────────── */
.filtri-wrapper {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(13, 30, 46, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  padding: 0;
}

.filtri-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 0;
}

.filtro-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.5);
  padding: 1.1rem 1.6rem;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.filtro-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.filtro-btn:hover {
  color: var(--sabbia);
  background: rgba(74, 154, 176, 0.06);
}

.filtro-btn:hover .dot {
  opacity: 0.8;
}

.filtro-btn.attivo {
  color: var(--bianco);
}

.filtro-btn.attivo .dot {
  opacity: 1;
  transform: scale(1.3);
}

.filtro-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--transition), transform var(--transition);
}

.filtro-btn.attivo::after,
.filtro-btn:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

/* Colori uniformi per i filtri */
.filtro-btn.attivo {
  color: var(--oro-chiaro);
}

.filtro-btn.attivo .dot,
.filtro-btn:hover .dot {
  background: var(--oro);
}

/* ── MAIN CONTENUTO ─────────────────────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── SEZIONI VINI ───────────────────────────────────────── */
.sezione-vini {
  margin-bottom: 3.5rem;
  padding: 4.2rem 3rem 6rem;
  border-radius: var(--radius-section);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

/* ── THEME: BIANCHI (Cream White) ── */
.sezione-bianchi {
  background: linear-gradient(175deg, #fdfbf7 0%, #f6efe3 100%);
  color: #1a2a3a;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 110, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-bianchi .sezione-titolo {
  color: #0d1e2e;
}

.sezione-bianchi .sezione-desc {
  color: #243e54;
  opacity: 0.85;
}

.sezione-bianchi .sezione-icona {
  border-color: rgba(13, 30, 46, 0.18);
  color: #4a9ab0;
}

.sezione-bianchi .card-vino {
  background: #ffffff;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: var(--radius-card);
  color: #1a3a5a;
  box-shadow: 0 6px 20px -3px rgba(80, 60, 40, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sezione-bianchi .vino-nome {
  color: #0d1e2e;
}

.sezione-bianchi .vino-produttore {
  color: #35526a;
  opacity: 0.9;
}

.sezione-bianchi .vino-regione {
  color: #556676;
  opacity: 0.9;
}

.sezione-bianchi .badge-liguria {
  color: #855f18;
  background: rgba(184, 149, 58, 0.12);
  border-color: rgba(184, 149, 58, 0.28);
}

.sezione-bianchi .vino-note {
  color: #384e62;
  border-left-color: rgba(201, 169, 110, 0.4);
}

.sezione-bianchi .vino-abbinamento {
  color: #3c5d79;
  opacity: 0.75;
}

.sezione-bianchi .vino-prezzo {
  color: #9d7027;
}

.sezione-bianchi .vino-calice {
  color: #8c6820;
  opacity: 0.8;
}

.sezione-bianchi .card-vino:hover {
  background: #ffffff;
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 14px 36px -4px rgba(80, 60, 40, 0.12), 0 4px 14px rgba(201, 169, 110, 0.16);
  transform: translateY(-4px);
}

/* ── THEME: ROSSI (Grape Red) ── */
.sezione-rossi {
  background: linear-gradient(175deg, #2b080d 0%, #1a0408 100%);
  color: #fdf9f3;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 176, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sezione-rossi .sezione-titolo {
  color: #f3c2c2;
}

.sezione-rossi .sezione-desc {
  color: #fdf9f3;
  opacity: 0.82;
}

.sezione-rossi .sezione-icona {
  border-color: rgba(232, 176, 176, 0.2);
  color: #c97070;
}

.sezione-rossi .card-vino {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 176, 176, 0.16);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sezione-rossi .vino-nome {
  color: #ffffff;
}

.sezione-rossi .vino-produttore {
  color: #e8b0b0;
  opacity: 0.9;
}

.sezione-rossi .vino-regione {
  color: #c97070;
  opacity: 0.8;
}

.sezione-rossi .vino-note {
  color: rgba(255, 255, 255, 0.8);
  border-left-color: rgba(232, 176, 176, 0.35);
}

.sezione-rossi .vino-abbinamento {
  color: #e8b0b0;
  opacity: 0.65;
}

.sezione-rossi .vino-prezzo {
  color: var(--oro-chiaro);
}

.sezione-rossi .card-vino:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 176, 176, 0.38);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(184, 80, 95, 0.2);
  transform: translateY(-4px);
}

/* ── THEME: ROSE (Pale Pink) ── */
.sezione-rose {
  background: linear-gradient(175deg, #fdf4f1 0%, #f7ded6 100%);
  color: #2b1820;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 128, 154, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-rose .sezione-titolo {
  color: #6b1a2a;
}

.sezione-rose .sezione-desc {
  color: #2e1e24;
  opacity: 0.82;
}

.sezione-rose .sezione-icona {
  border-color: rgba(212, 128, 154, 0.2);
  color: #d4809a;
}

.sezione-rose .card-vino {
  background: #ffffff;
  border: 1px solid rgba(212, 128, 154, 0.22);
  border-radius: var(--radius-card);
  color: #d4809a;
  box-shadow: 0 6px 20px -3px rgba(130, 60, 80, 0.06);
}

.sezione-rose .vino-nome {
  color: #1e0d14;
}

.sezione-rose .vino-produttore {
  color: #6a4050;
  opacity: 0.9;
}

.sezione-rose .vino-regione {
  color: #8c5a6d;
  opacity: 0.9;
}

.sezione-rose .badge-liguria {
  color: #9a4860;
  background: rgba(154, 72, 96, 0.1);
  border-color: rgba(154, 72, 96, 0.25);
}

.sezione-rose .vino-note {
  color: #3e2630;
  border-left-color: rgba(212, 128, 154, 0.4);
}

.sezione-rose .vino-abbinamento {
  color: #6a4050;
  opacity: 0.75;
}

.sezione-rose .vino-prezzo {
  color: #a04058;
}

.sezione-rose .vino-calice {
  color: #8a3048;
  opacity: 0.8;
}

.sezione-rose .card-vino:hover {
  background: #ffffff;
  border-color: rgba(212, 128, 154, 0.5);
  box-shadow: 0 14px 36px -4px rgba(130, 60, 80, 0.12), 0 4px 14px rgba(212, 128, 154, 0.18);
  transform: translateY(-4px);
}

/* ── THEME: BOLLICINE (Wine Yellow) ── */
.sezione-bollicine {
  background: linear-gradient(175deg, #fefcf5 0%, #f7eed3 100%);
  color: #261f12;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 110, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-bollicine .sezione-titolo {
  color: #a67c38;
}

.sezione-bollicine .sezione-desc {
  color: #2d2618;
  opacity: 0.82;
}

.sezione-bollicine .sezione-icona {
  border-color: rgba(176, 141, 87, 0.2);
  color: var(--oro);
}

.sezione-bollicine .card-vino {
  background: #ffffff;
  border: 1px solid rgba(176, 141, 87, 0.22);
  border-radius: var(--radius-card);
  color: #b08d57;
  box-shadow: 0 6px 20px -3px rgba(110, 80, 30, 0.06);
}

.sezione-bollicine .vino-nome {
  color: #1a160d;
}

.sezione-bollicine .vino-produttore {
  color: #5c4e36;
  opacity: 0.9;
}

.sezione-bollicine .vino-regione {
  color: #7c6d50;
  opacity: 0.9;
}

.sezione-bollicine .badge-liguria {
  color: #8c6b22;
  background: rgba(144, 112, 48, 0.1);
  border-color: rgba(144, 112, 48, 0.25);
}

.sezione-bollicine .vino-note {
  color: #3b3122;
  border-left-color: rgba(176, 141, 87, 0.4);
}

.sezione-bollicine .vino-abbinamento {
  color: #5c4e36;
  opacity: 0.75;
}

.sezione-bollicine .vino-prezzo {
  color: #a88434;
}

.sezione-bollicine .vino-calice {
  color: #907030;
  opacity: 0.8;
}

.sezione-bollicine .card-vino:hover {
  background: #ffffff;
  border-color: rgba(176, 141, 87, 0.52);
  box-shadow: 0 14px 36px -4px rgba(110, 80, 30, 0.12), 0 4px 14px rgba(201, 169, 110, 0.2);
  transform: translateY(-4px);
}

/* ── THEME: TRIPLE A (High Class Slate/Gold) ── */
.sezione-triple-a {
  background: linear-gradient(175deg, #13212c 0%, #0b151d 100%);
  color: #e8dcc8;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(74, 154, 176, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sezione-triple-a .sezione-titolo {
  color: #f5b85a;
}

.sezione-triple-a .sezione-desc {
  color: #e8dcc8;
  opacity: 0.78;
}

.sezione-triple-a .sezione-icona {
  border-color: rgba(201, 169, 110, 0.3);
  color: #ff793f;
}

.sezione-triple-a .card-vino {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 154, 176, 0.22);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sezione-triple-a .vino-nome {
  color: #ffffff;
}

.sezione-triple-a .vino-produttore {
  color: #c9a96e;
  opacity: 0.9;
}

.sezione-triple-a .vino-regione {
  color: #ffb142;
  opacity: 0.8;
}

.sezione-triple-a .vino-note {
  color: rgba(232, 220, 200, 0.8);
  border-left-color: rgba(255, 121, 63, 0.4);
}

.sezione-triple-a .vino-abbinamento {
  color: #c9a96e;
  opacity: 0.65;
}

.sezione-triple-a .vino-prezzo {
  color: #ffb142;
}

.sezione-triple-a .card-vino:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 154, 176, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 154, 176, 0.2);
  transform: translateY(-4px);
}

/* ── THEME: VINI LIGURI (Riviera Gold & Marine Linen) ── */
.sezione-liguri {
  background: linear-gradient(175deg, #fdfbf7 0%, #f6efe3 100%);
  color: #1a2a3a;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 110, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-liguri .sezione-titolo { color: #0d1e2e; }
.sezione-liguri .sezione-desc { color: #243e54; opacity: 0.85; }
.sezione-liguri .card-vino {
  background: #ffffff;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: var(--radius-card);
  color: #1a3a5a;
  box-shadow: 0 6px 20px -3px rgba(80, 60, 40, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
}
.sezione-liguri .vino-nome { color: #0d1e2e; }
.sezione-liguri .vino-produttore { color: #35526a; opacity: 0.9; }
.sezione-liguri .vino-regione { color: #556676; opacity: 0.9; }
.sezione-liguri .badge-liguria {
  color: #855f18;
  background: rgba(184, 149, 58, 0.12);
  border-color: rgba(184, 149, 58, 0.28);
}
.sezione-liguri .vino-note {
  color: #384e62;
  border-left-color: rgba(201, 169, 110, 0.4);
}
.sezione-liguri .vino-abbinamento { color: #3c5d79; opacity: 0.75; }
.sezione-liguri .vino-prezzo { color: #9d7027; }
.sezione-liguri .vino-calice { color: #8c6820; opacity: 0.8; }
.sezione-liguri .card-vino:hover {
  background: #ffffff;
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 14px 36px -4px rgba(80, 60, 40, 0.12), 0 4px 14px rgba(201, 169, 110, 0.16);
  transform: translateY(-4px);
}

/* ── THEME: TRENTINO-ALTO ADIGE (Alpine Mineral Freshness) ── */
.sezione-trentino {
  background: linear-gradient(175deg, #f7faf8 0%, #edf4ef 100%);
  color: #122818;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(116, 160, 126, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-trentino .sezione-titolo { color: #163820; }
.sezione-trentino .sezione-desc { color: #2c4a35; opacity: 0.85; }
.sezione-trentino .card-vino {
  background: #ffffff;
  border: 1px solid rgba(116, 160, 126, 0.25);
  border-radius: var(--radius-card);
  color: #1e3a26;
  box-shadow: 0 6px 20px -3px rgba(30, 60, 40, 0.05);
}
.sezione-trentino .vino-nome { color: #102d18; }
.sezione-trentino .vino-produttore { color: #32583c; opacity: 0.9; }
.sezione-trentino .vino-regione { color: #4a6f54; opacity: 0.9; }
.sezione-trentino .badge-liguria {
  color: #2b6e3b;
  background: rgba(43, 110, 59, 0.1);
  border-color: rgba(43, 110, 59, 0.25);
}
.sezione-trentino .vino-note {
  color: #334d3c;
  border-left-color: rgba(116, 160, 126, 0.45);
}
.sezione-trentino .vino-abbinamento { color: #32583c; opacity: 0.75; }
.sezione-trentino .vino-prezzo { color: #286b3a; }
.sezione-trentino .card-vino:hover {
  background: #ffffff;
  border-color: rgba(116, 160, 126, 0.55);
  box-shadow: 0 14px 36px -4px rgba(30, 60, 40, 0.12), 0 4px 14px rgba(116, 160, 126, 0.2);
  transform: translateY(-4px);
}

/* ── THEME: FRIULI-VENEZIA GIULIA (Collio & Carso Sunlit Gold) ── */
.sezione-friuli {
  background: linear-gradient(175deg, #fdfcf7 0%, #f7f2e4 100%);
  color: #2a2414;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 100, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-friuli .sezione-titolo { color: #2a200d; }
.sezione-friuli .sezione-desc { color: #4a3e22; opacity: 0.85; }
.sezione-friuli .card-vino {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 100, 0.25);
  border-radius: var(--radius-card);
  color: #3a2e15;
  box-shadow: 0 6px 20px -3px rgba(80, 65, 30, 0.05);
}
.sezione-friuli .vino-nome { color: #1e1708; }
.sezione-friuli .vino-produttore { color: #5a4b28; opacity: 0.9; }
.sezione-friuli .vino-regione { color: #6a5a35; opacity: 0.9; }
.sezione-friuli .badge-liguria {
  color: #8c6a1e;
  background: rgba(140, 106, 30, 0.1);
  border-color: rgba(140, 106, 30, 0.25);
}
.sezione-friuli .vino-note {
  color: #423824;
  border-left-color: rgba(212, 175, 100, 0.45);
}
.sezione-friuli .vino-abbinamento { color: #5a4b28; opacity: 0.75; }
.sezione-friuli .vino-prezzo { color: #9c731e; }
.sezione-friuli .card-vino:hover {
  background: #ffffff;
  border-color: rgba(212, 175, 100, 0.55);
  box-shadow: 0 14px 36px -4px rgba(80, 65, 30, 0.12), 0 4px 14px rgba(212, 175, 100, 0.2);
  transform: translateY(-4px);
}

/* ── THEME: CALICI (Mescita & Convivialità) ── */
.sezione-calici {
  background: linear-gradient(175deg, #fdf8f9 0%, #f7ecf0 100%);
  color: #2e161c;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 80, 100, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-calici .sezione-titolo { color: #420f1b; }
.sezione-calici .sezione-desc { color: #54222f; opacity: 0.85; }
.sezione-calici .card-vino {
  background: #ffffff;
  border: 1px solid rgba(184, 80, 100, 0.22);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 20px -3px rgba(100, 30, 50, 0.05);
}
.sezione-calici .vino-nome { color: #2b0b14; }
.sezione-calici .vino-produttore { color: #6a3440; opacity: 0.9; }
.sezione-calici .vino-regione { color: #7a4652; opacity: 0.9; }
.sezione-calici .badge-liguria {
  color: #9b2840;
  background: rgba(155, 40, 64, 0.08);
  border-color: rgba(155, 40, 64, 0.22);
}
.sezione-calici .vino-note {
  color: #45242d;
  border-left-color: rgba(184, 80, 100, 0.4);
}
.sezione-calici .vino-abbinamento { color: #6a3440; opacity: 0.75; }
.sezione-calici .vino-prezzo { color: #9b2840; }
.sezione-calici .card-vino:hover {
  background: #ffffff;
  border-color: rgba(184, 80, 100, 0.5);
  box-shadow: 0 14px 36px -4px rgba(100, 30, 50, 0.12), 0 4px 14px rgba(184, 80, 100, 0.18);
  transform: translateY(-4px);
}

/* ── THEME: BIRRE E MEZZEBOTTIGLIE (Malti Artigianali & Formati Speciali) ── */
.sezione-birre-mezzebottiglie {
  background: linear-gradient(175deg, #fefbf5 0%, #f8eed6 100%);
  color: #2d210f;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 159, 72, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sezione-birre-mezzebottiglie .sezione-titolo { color: #2d1e08; }
.sezione-birre-mezzebottiglie .sezione-desc { color: #4e391b; opacity: 0.85; }
.sezione-birre-mezzebottiglie .card-vino {
  background: #ffffff;
  border: 1px solid rgba(212, 159, 72, 0.22);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 20px -3px rgba(90, 60, 20, 0.05);
}
.sezione-birre-mezzebottiglie .vino-nome { color: #241604; }
.sezione-birre-mezzebottiglie .vino-produttore { color: #584120; opacity: 0.9; }
.sezione-birre-mezzebottiglie .vino-regione { color: #6e5532; opacity: 0.9; }
.sezione-birre-mezzebottiglie .badge-liguria {
  color: #8f5d0e;
  background: rgba(143, 93, 14, 0.09);
  border-color: rgba(143, 93, 14, 0.22);
}
.sezione-birre-mezzebottiglie .vino-note {
  color: #4a3821;
  border-left-color: rgba(212, 159, 72, 0.4);
}
.sezione-birre-mezzebottiglie .vino-abbinamento { color: #584120; opacity: 0.75; }
.sezione-birre-mezzebottiglie .vino-prezzo { color: #a46f1b; }
.sezione-birre-mezzebottiglie .card-vino:hover {
  background: #ffffff;
  border-color: rgba(212, 159, 72, 0.5);
  box-shadow: 0 14px 36px -4px rgba(90, 60, 20, 0.12), 0 4px 14px rgba(212, 159, 72, 0.2);
  transform: translateY(-4px);
}

/* ── SOTTOSEZIONI (es. Vini Liguri: Bianchi, Rossi, Bollicine) ── */
.sottosezione {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  transition: opacity 0.3s ease;
}

.sottosezione:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sottosezione.sub-nascosta {
  display: none;
}

.sottosezione-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sottosezione-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.sottosezione-ornament .sub-line {
  width: 45px;
  height: 1px;
  background: var(--oro);
  opacity: 0.45;
}

.sottosezione-ornament .sub-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 500;
}

.sottosezione-titolo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: inherit;
  letter-spacing: 0.03em;
}

.sottosezione-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.82;
  margin-top: 0.4rem;
}

/* Sotto-filtri pills */
.sottofiltri-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.sub-pill {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 169, 110, 0.35);
  background: rgba(255, 255, 255, 0.4);
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sub-pill:hover,
.sub-pill.attivo {
  opacity: 1;
  background: var(--oro);
  color: #0c1825;
  border-color: var(--oro);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.sezione-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 4rem; /* Equal spacing above and below the title block */
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.sezione-icona {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.2);
  flex-shrink: 0;
}

.sezione-titolo-wrap {}

.sezione-titolo {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.2;
}

.sezione-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--acqua-chiaro);
  opacity: 0.85;
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

/* Colori uniformi per sezione */
.sezione-titolo {
  color: var(--oro-chiaro);
}


.sezione-icona {
  border-color: rgba(201, 169, 110, 0.3);
  color: var(--oro);
}

/* ── GRIGLIA VINI ───────────────────────────────────────── */
.vini-griglia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}

/* ── CARD VINO ──────────────────────────────────────────── */
.card-vino {
  background: rgba(26, 52, 80, 0.45);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.8rem;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  flex: 1 1 auto; /* Sostituisce height:100% — evita il ciclo percentuale nei grid track auto */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  color: var(--oro);
  /* Colore accento uniforme */
}

.card-vino:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 169, 110, 0.25);
  background: rgba(26, 52, 80, 0.65);
}

.card-vino:hover::before {
  opacity: 0.7;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.vino-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bianco);
  line-height: 1.25;
  flex: 1;
  /* min-height 2 righe, max-height 2 righe — altezza fissa senza conflitti display */
  min-height: 2.5em;
  max-height: 2.5em;
  overflow: hidden;
}

.vino-anno {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--oro);
  opacity: 0.75;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.vino-produttore {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--acqua-chiaro);
  opacity: 0.7;
  margin-bottom: 0.8rem;
  /* Lock producer to 1 line to prevent layout shift */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vino-regione {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sabbia);
  opacity: 0.45;
  margin-bottom: 0.9rem;
  /* Lock region to 1 line to prevent layout shift */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vino-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(232, 220, 200, 0.7);
  font-style: italic;
  margin-bottom: 1.1rem;
  border-left: 2px solid rgba(201, 169, 110, 0.28);
  border-radius: 1px;
  padding-left: 0.85rem;
  /* Altezza fissa assoluta: non usa flex né webkit-box che si contraddicono */
  /* Esattamente 3 righe: line-height 1.6 × 3 = 4.8em */
  flex: none;
  height: 4.8em;
  min-height: 4.8em;
  max-height: 4.8em;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  margin-top: auto;
  /* Spinge il footer in basso */
  gap: 0.5rem; /* Gap minimo tra abbinamento e prezzo */
  overflow: hidden; /* Previene espansione con testi lunghi */
}

.vino-abbinamento {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acqua-chiaro);
  opacity: 0.65;
  /* Lock pairing to 1 line to prevent layout shift */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.vino-prezzo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--oro-chiaro);
  white-space: nowrap;
}

.vino-calice {
  font-size: 0.72rem;
  color: var(--oro);
  opacity: 0.75;
  margin-left: 0.2rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.badge-liguria {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  /* Lock badge to 1 line to prevent layout shift */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── TRANSIZIONE VISIBILITÀ ─────────────────────────────── */
.sezione-vini {
  transition: opacity 0.3s ease;
}

.sezione-vini.nascosta {
  display: none;
}

/* ── CONTATORE ──────────────────────────────────────────── */
.contatore-vini {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  opacity: 0.5;
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(232, 220, 200, 0.3);
  text-transform: uppercase;
}

.site-footer .footer-nome {
  font-family: 'Cinzel', serif;
  color: rgba(201, 169, 110, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--acqua);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 0.9;
}

/* ── SEPARATORE DECORATIVO ──────────────────────────────── */
.separatore {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 2.5rem;
  opacity: 0.2;
}

.separatore::before,
.separatore::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oro);
}

.separatore span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--oro);
  white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .sezione-vini {
    padding: 2.8rem 1.3rem 4.5rem;
    border-radius: 18px;
    margin-bottom: 2.5rem;
  }

  .sezione-header {
    margin-bottom: 3rem;
  }

  .vini-griglia {
    grid-template-columns: 1fr;
  }

  .filtro-btn {
    padding: 1rem 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .filtro-btn .dot {
    display: none;
  }

  .site-header {
    padding: 2.5rem 1.5rem 2rem;
  }

  .main-content {
    padding: 2rem 1.2rem 4rem;
  }
}

@media (max-width: 400px) {
  .filtro-btn {
    font-size: 0.55rem;
    padding: 0.9rem 0.5rem;
    letter-spacing: 0.1em;
  }
}

/* ── TABLET RESPONSIVENESS & AUTOMATIC UPSCALING ──────── */
@media (min-width: 681px) and (max-width: 1024px) {
  html {
    font-size: clamp(14px, 1.8vw, 18px);
    /* Proportional fluid upscaling for tablets! */
  }

  .main-content {
    padding: 2.5rem 1.5rem 4rem;
    max-width: 100%;
  }

  .sezione-vini {
    padding: 4rem 2rem;
  }

  .vini-griglia {
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2-column grid fits tablets perfectly */
    gap: 1.2rem;
  }

  .filtro-btn {
    padding: 1.1rem 1.1rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }
}

/* ── CARD LINK ──────────────────────────────────────────── */
.card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column; /* Colonna: permette a .card-vino di crescere con flex:1 */
  color: inherit;
  outline: none;
  min-width: 0; /* Evita overflow nelle celle grid — senza questo flex:auto espande oltre il contenitore */
  overflow: hidden; /* Sicurezza aggiuntiva per testi lunghi (es. francese) */
}

.card-link:focus .card-vino {
  border-color: var(--oro);
  box-shadow: var(--shadow-hover);
}

/* ── PAGINA DETTAGLIO VINO ──────────────────────────────── */
.detail-page {
  background-color: var(--blu-profondo);
  min-height: 100vh;
}

/* Disabilita sfondo oceano sulle pagine dettaglio */
.detail-page::before,
.detail-page::after {
  display: none !important;
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 30, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.back-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--oro);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--transition), color var(--transition);
}

.back-btn:hover {
  color: var(--bianco);
  transform: translateX(-5px);
}

.detail-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: calc(100vh - 80px);
  max-width: 1400px;
  margin: 0 auto;
}

.detail-image-wrap {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image-wrap img {
  aspect-ratio: 2 / 3;
  width: auto;
  height: 80%;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  /* Correzione esposizione: schiarisce la bottiglia e l'etichetta */
  filter: brightness(1.13) contrast(1.04) saturate(1.05);
}

.detail-hero:hover img {
  transform: scale(1.03);
  filter: brightness(1.18) contrast(1.05) saturate(1.06);
}

.detail-content {
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
}

.detail-category {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.5rem;
  display: block;
}

.detail-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--bianco);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.detail-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--acqua-chiaro);
  margin-bottom: 3rem;
  opacity: 0.8;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
  padding: 2.5rem 2.5rem;
  background: rgba(201, 169, 110, 0.05);
  /* Default */
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.1);
}

.info-group {
  margin-bottom: 3.5rem;
}

.info-group-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 2rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.info-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201, 169, 110, 0.2), transparent);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem 3rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--testo-chiaro);
  opacity: 0.7;
}

.tech-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--sabbia);
  font-weight: 400;
  line-height: 1.4;
}

.detail-notes {
  border-left: 2px solid var(--oro);
  padding-left: 2rem;
  margin-bottom: 4rem;
}

.detail-notes h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1rem;
}

.detail-notes p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--sabbia-chiaro);
}

.detail-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.detail-price {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--oro-chiaro);
}

.detail-price-label {
  font-size: 1rem;
  color: var(--oro);
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .detail-hero {
    display: block;
  }

  .detail-image-wrap {
    height: 50vh;
    position: sticky;
    top: 80px;
    z-index: 1;
  }

  .detail-image-wrap img,
  .detail-slide img {
    height: 75%;
    max-width: 80%;
  }

  .detail-content {
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    border-radius: 32px 32px 0 0;
    margin-top: -32px;
  }

  /* Sfondi dinamici in base al tema per nascondere l'immagine mentre la pagina scorre */
  .detail-page.theme-bianchi .detail-content { background: linear-gradient(175deg, #fdfbf7 0%, #f6efe3 100%); }
  .detail-page.theme-rossi .detail-content { background: linear-gradient(175deg, #2b080d 0%, #1a0408 100%); }
  .detail-page.theme-rose .detail-content { background: linear-gradient(175deg, #fdf4f1 0%, #f7ded6 100%); }
  .detail-page.theme-bollicine .detail-content { background: linear-gradient(175deg, #fefcf5 0%, #f7eed3 100%); }
  .detail-page.theme-triple-a .detail-content { background: linear-gradient(175deg, #13212c 0%, #0b151d 100%); }
  .detail-page.theme-trentino .detail-content { background: linear-gradient(175deg, #f7faf8 0%, #edf4ef 100%); }
  .detail-page.theme-friuli .detail-content { background: linear-gradient(175deg, #fdfcf7 0%, #f7f2e4 100%); }
  .detail-page.theme-birre .detail-content,
  .detail-page.theme-speciali .detail-content { background: linear-gradient(175deg, #fefbf5 0%, #f8eed6 100%); }
}

@media (max-width: 600px) {
  .detail-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-title {
    font-size: 2rem;
  }
}

/* ── ANIMAZIONE ENTRATA ─────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-vino {
  animation: fadeInUp 0.5s ease both;
}

.vini-griglia .card-vino:nth-child(1) {
  animation-delay: 0.05s;
}

.vini-griglia .card-vino:nth-child(2) {
  animation-delay: 0.10s;
}

.vini-griglia .card-vino:nth-child(3) {
  animation-delay: 0.15s;
}

.vini-griglia .card-vino:nth-child(4) {
  animation-delay: 0.20s;
}

.vini-griglia .card-vino:nth-child(5) {
  animation-delay: 0.25s;
}

.vini-griglia .card-vino:nth-child(6) {
  animation-delay: 0.30s;
}

.vini-griglia .card-vino:nth-child(7) {
  animation-delay: 0.35s;
}

.vini-griglia .card-vino:nth-child(8) {
  animation-delay: 0.40s;
}

/* ── THEMES PER DETAIL PAGE ───────────────────────────── */

/* ── BIANCHI (sfondo identico a .sezione-bianchi / .sezione-liguri) ── */
.detail-page.theme-bianchi {
  background: linear-gradient(175deg, #fdfbf7 0%, #f6efe3 100%);
  color: #0d1e2e;
}

.detail-page.theme-bianchi .detail-title {
  color: #0d1e2e;
}

.detail-page.theme-bianchi .detail-category {
  color: #8a7340;
}

.detail-page.theme-bianchi .detail-subtitle {
  color: #3a7a8c;
  opacity: 1;
}

.detail-page.theme-bianchi .detail-info-grid {
  background: rgba(13, 30, 46, 0.04);
  border-color: rgba(13, 30, 46, 0.08);
}

.detail-page.theme-bianchi .detail-info-grid h4 {
  color: #5a4e3a;
}

.detail-page.theme-bianchi .detail-info-grid p {
  color: #1a3450;
  font-weight: 500;
}

.detail-page.theme-bianchi .detail-notes {
  border-left-color: #8a7340;
}

.detail-page.theme-bianchi .detail-notes h4 {
  color: #5a4e3a;
}

.detail-page.theme-bianchi .detail-notes p {
  color: #2c3e50;
}

.detail-page.theme-bianchi .tech-value {
  color: #2c4a6a;
}

.detail-page.theme-bianchi .tech-label {
  color: #0d1e2e;
  opacity: 0.6;
}

.detail-page.theme-bianchi .info-group-title {
  color: #3a7a8c;
}

.detail-page.theme-bianchi .info-group-title::after {
  background: linear-gradient(to right, rgba(58, 122, 140, 0.3), transparent);
}

.detail-page.theme-bianchi .detail-price {
  color: #6b5a2e;
}

.detail-page.theme-bianchi .detail-price-label {
  color: #8a7340;
}

.detail-page.theme-bianchi .detail-nav {
  background: rgba(253, 251, 247, 0.92);
  border-bottom-color: rgba(13, 30, 46, 0.1);
}

.detail-page.theme-bianchi .back-btn {
  color: #5a4e3a;
}

.detail-page.theme-bianchi .back-btn:hover {
  color: #0d1e2e;
}

.detail-page.theme-bianchi .header-ornament .fish {
  color: #8a7340;
}

.detail-page.theme-bianchi .site-footer {
  color: rgba(13, 30, 46, 0.4);
  border-top-color: rgba(13, 30, 46, 0.1);
}

.detail-page.theme-bianchi .site-footer .footer-nome {
  color: rgba(13, 30, 46, 0.55);
}

.detail-page.theme-bianchi .detail-image-wrap {
  background: rgba(13, 30, 46, 0.03);
}

/* ── ROSSI (sfondo identico a .sezione-rossi) ── */
.detail-page.theme-rossi {
  background: linear-gradient(175deg, #2b080d 0%, #1a0408 100%);
  color: #fdf9f3;
}

.detail-page.theme-rossi .detail-title {
  color: #ffffff;
}

.detail-page.theme-rossi .detail-category {
  color: #e8b0b0;
}

.detail-page.theme-rossi .detail-subtitle {
  color: #d4a0a0;
  opacity: 1;
}

.detail-page.theme-rossi .detail-info-grid {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-page.theme-rossi .detail-info-grid h4 {
  color: #e8b0b0;
}

.detail-page.theme-rossi .detail-info-grid p {
  color: #fdf9f3;
  font-weight: 500;
}

.detail-page.theme-rossi .detail-notes {
  border-left-color: #c75050;
}

.detail-page.theme-rossi .detail-notes h4 {
  color: #e8b0b0;
}

.detail-page.theme-rossi .detail-notes p {
  color: #f0dede;
}

.detail-page.theme-rossi .tech-value {
  color: #fdf9f3;
}

.detail-page.theme-rossi .tech-label {
  color: #e8b0b0;
  opacity: 0.7;
}

.detail-page.theme-rossi .info-group-title {
  color: #e8b0b0;
}

.detail-page.theme-rossi .info-group-title::after {
  background: linear-gradient(to right, rgba(232, 176, 176, 0.3), transparent);
}

.detail-page.theme-rossi .detail-nav {
  background: rgba(43, 8, 13, 0.92);
  border-bottom-color: rgba(232, 176, 176, 0.15);
}

.detail-page.theme-rossi .back-btn {
  color: #e8b0b0;
}

.detail-page.theme-rossi .back-btn:hover {
  color: #ffffff;
}

.detail-page.theme-rossi .header-ornament .fish {
  color: #c75050;
}

.detail-page.theme-rossi .site-footer {
  color: rgba(253, 249, 243, 0.35);
  border-top-color: rgba(253, 249, 243, 0.08);
}

.detail-page.theme-rossi .site-footer .footer-nome {
  color: rgba(232, 176, 176, 0.5);
}

.detail-page.theme-rossi .detail-image-wrap {
  background: rgba(0, 0, 0, 0.2);
}

/* ── ROSÉ (sfondo identico a .sezione-rose) ── */
.detail-page.theme-rose {
  background: linear-gradient(175deg, #fdf4f1 0%, #f7ded6 100%);
  color: #2b1820;
}

.detail-page.theme-rose .detail-title {
  color: #2c1520;
}

.detail-page.theme-rose .detail-category {
  color: #a0607a;
}

.detail-page.theme-rose .detail-subtitle {
  color: #8a506a;
  opacity: 1;
}

.detail-page.theme-rose .detail-info-grid {
  background: rgba(13, 30, 46, 0.04);
  border-color: rgba(13, 30, 46, 0.08);
}

.detail-page.theme-rose .detail-info-grid h4 {
  color: #6a3a50;
}

.detail-page.theme-rose .detail-info-grid p {
  color: #2c1520;
  font-weight: 500;
}

.detail-page.theme-rose .detail-notes {
  border-left-color: #c97c8a;
}

.detail-page.theme-rose .detail-notes h4 {
  color: #6a3a50;
}

.detail-page.theme-rose .detail-notes p {
  color: #3a2030;
}

.detail-page.theme-rose .tech-value {
  color: #3a2030;
}

.detail-page.theme-rose .tech-label {
  color: #2c1520;
  opacity: 0.6;
}

.detail-page.theme-rose .info-group-title {
  color: #d4809a;
}

.detail-page.theme-rose .info-group-title::after {
  background: linear-gradient(to right, rgba(212, 128, 154, 0.3), transparent);
}

.detail-page.theme-rose .detail-price {
  color: #8a3050;
}

.detail-page.theme-rose .detail-price-label {
  color: #a0607a;
}

.detail-page.theme-rose .detail-nav {
  background: rgba(253, 244, 241, 0.92);
  border-bottom-color: rgba(44, 21, 32, 0.1);
}

.detail-page.theme-rose .back-btn {
  color: #6a3a50;
}

.detail-page.theme-rose .back-btn:hover {
  color: #2c1520;
}

.detail-page.theme-rose .header-ornament .fish {
  color: #c97c8a;
}

.detail-page.theme-rose .site-footer {
  color: rgba(44, 21, 32, 0.4);
  border-top-color: rgba(44, 21, 32, 0.1);
}

.detail-page.theme-rose .site-footer .footer-nome {
  color: rgba(44, 21, 32, 0.55);
}

.detail-page.theme-rose .detail-image-wrap {
  background: rgba(44, 21, 32, 0.03);
}

/* ── BOLLICINE (sfondo identico a .sezione-bollicine) ── */
.detail-page.theme-bollicine {
  background: linear-gradient(175deg, #fefcf5 0%, #f7eed3 100%);
  color: #261f12;
}

.detail-page.theme-bollicine .detail-title {
  color: #2a1f0a;
}

.detail-page.theme-bollicine .detail-category {
  color: #8a6e2a;
}

.detail-page.theme-bollicine .detail-subtitle {
  color: #6a5a30;
  opacity: 1;
}

.detail-page.theme-bollicine .detail-info-grid {
  background: rgba(13, 30, 46, 0.04);
  border-color: rgba(13, 30, 46, 0.08);
}

.detail-page.theme-bollicine .detail-info-grid h4 {
  color: #6a5020;
}

.detail-page.theme-bollicine .detail-info-grid p {
  color: #2a1f0a;
  font-weight: 500;
}

.detail-page.theme-bollicine .detail-notes {
  border-left-color: #b08d57;
}

.detail-page.theme-bollicine .detail-notes h4 {
  color: #6a5020;
}

.detail-page.theme-bollicine .detail-notes p {
  color: #3a2f1a;
}

.detail-page.theme-bollicine .tech-value {
  color: #3a2f1a;
}

.detail-page.theme-bollicine .tech-label {
  color: #2a1f0a;
  opacity: 0.6;
}

.detail-page.theme-bollicine .info-group-title {
  color: #b08d57;
}

.detail-page.theme-bollicine .info-group-title::after {
  background: linear-gradient(to right, rgba(176, 141, 87, 0.3), transparent);
}

.detail-page.theme-bollicine .detail-price {
  color: #6a5020;
}

.detail-page.theme-bollicine .detail-price-label {
  color: #8a6e2a;
}

.detail-page.theme-bollicine .detail-nav {
  background: rgba(254, 252, 245, 0.92);
  border-bottom-color: rgba(42, 31, 10, 0.1);
}

.detail-page.theme-bollicine .back-btn {
  color: #6a5020;
}

.detail-page.theme-bollicine .back-btn:hover {
  color: #2a1f0a;
}

.detail-page.theme-bollicine .header-ornament .fish {
  color: #b08d57;
}

.detail-page.theme-bollicine .site-footer {
  color: rgba(42, 31, 10, 0.4);
  border-top-color: rgba(42, 31, 10, 0.1);
}

.detail-page.theme-bollicine .site-footer .footer-nome {
  color: rgba(42, 31, 10, 0.55);
}

.detail-page.theme-bollicine .detail-image-wrap {
  background: rgba(42, 31, 10, 0.03);
}

/* ── TRIPLE A (sfondo identico a .sezione-triple-a) ── */
.detail-page.theme-triple-a {
  background: linear-gradient(175deg, #13212c 0%, #0b151d 100%);
  color: #e8dcc8;
}

.detail-page.theme-triple-a .detail-title {
  color: #f0e0c0;
}

.detail-page.theme-triple-a .detail-category {
  color: #ffb142;
}

.detail-page.theme-triple-a .detail-subtitle {
  color: #c9a96e;
  opacity: 1;
}

.detail-page.theme-triple-a .detail-info-grid {
  background: rgba(201, 169, 110, 0.05);
  border-color: rgba(201, 169, 110, 0.15);
}

.detail-page.theme-triple-a .detail-info-grid h4 {
  color: #ffb142;
}

.detail-page.theme-triple-a .detail-info-grid p {
  color: #f0e0c0;
  font-weight: 500;
}

.detail-page.theme-triple-a .detail-notes {
  border-left-color: #ffb142;
}

.detail-page.theme-triple-a .detail-notes h4 {
  color: #ffb142;
}

.detail-page.theme-triple-a .detail-notes p {
  color: #e0d0b0;
}

.detail-page.theme-triple-a .tech-value {
  color: #e0d0b0;
}

.detail-page.theme-triple-a .tech-label {
  color: #c9a96e;
  opacity: 0.8;
}

.detail-page.theme-triple-a .info-group-title {
  color: #ffb142;
}

.detail-page.theme-triple-a .info-group-title::after {
  background: linear-gradient(to right, rgba(255, 177, 66, 0.3), transparent);
}

.detail-page.theme-triple-a .detail-nav {
  background: rgba(19, 33, 44, 0.92);
  border-bottom-color: rgba(201, 169, 110, 0.15);
}

.detail-page.theme-triple-a .back-btn {
  color: #c9a96e;
}

.detail-page.theme-triple-a .back-btn:hover {
  color: #f0e0c0;
}

.detail-page.theme-triple-a .header-ornament .fish {
  color: #ffb142;
}

.detail-page.theme-triple-a .site-footer {
  color: rgba(201, 169, 110, 0.35);
  border-top-color: rgba(201, 169, 110, 0.1);
}

.detail-page.theme-triple-a .site-footer .footer-nome {
  color: rgba(255, 177, 66, 0.5);
}

.detail-page.theme-triple-a .detail-image-wrap {
  background: rgba(201, 169, 110, 0.05);
}

/* ── TRENTINO-ALTO ADIGE (sfondo identico a .sezione-trentino) ── */
.detail-page.theme-trentino {
  background: linear-gradient(175deg, #f7faf8 0%, #edf4ef 100%);
  color: #122818;
}
.detail-page.theme-trentino .detail-title { color: #163820; }
.detail-page.theme-trentino .detail-category { color: #2b6e3b; }
.detail-page.theme-trentino .detail-subtitle { color: #32583c; opacity: 1; }
.detail-page.theme-trentino .detail-info-grid {
  background: rgba(43, 110, 59, 0.05);
  border-color: rgba(116, 160, 126, 0.22);
}
.detail-page.theme-trentino .detail-info-grid h4 { color: #32583c; }
.detail-page.theme-trentino .detail-info-grid p { color: #102d18; font-weight: 500; }
.detail-page.theme-trentino .detail-notes { border-left-color: #2b6e3b; }
.detail-page.theme-trentino .detail-notes h4 { color: #32583c; }
.detail-page.theme-trentino .detail-notes p { color: #1e3a26; }
.detail-page.theme-trentino .tech-value { color: #102d18; }
.detail-page.theme-trentino .tech-label { color: #32583c; opacity: 0.75; }
.detail-page.theme-trentino .info-group-title { color: #2b6e3b; }
.detail-page.theme-trentino .info-group-title::after {
  background: linear-gradient(to right, rgba(43, 110, 59, 0.3), transparent);
}
.detail-page.theme-trentino .detail-nav {
  background: rgba(247, 250, 248, 0.92);
  border-bottom-color: rgba(116, 160, 126, 0.2);
}
.detail-page.theme-trentino .back-btn { color: #32583c; }
.detail-page.theme-trentino .back-btn:hover { color: #102d18; }
.detail-page.theme-trentino .header-ornament .fish { color: #2b6e3b; }
.detail-page.theme-trentino .site-footer {
  color: rgba(18, 40, 24, 0.45);
  border-top-color: rgba(116, 160, 126, 0.2);
}
.detail-page.theme-trentino .site-footer .footer-nome { color: rgba(22, 56, 32, 0.65); }
.detail-page.theme-trentino .detail-image-wrap { background: rgba(43, 110, 59, 0.03); }

/* ── FRIULI-VENEZIA GIULIA (sfondo identico a .sezione-friuli) ── */
.detail-page.theme-friuli {
  background: linear-gradient(175deg, #fdfcf7 0%, #f7f2e4 100%);
  color: #2a2414;
}
.detail-page.theme-friuli .detail-title { color: #2a200d; }
.detail-page.theme-friuli .detail-category { color: #8c6a1e; }
.detail-page.theme-friuli .detail-subtitle { color: #5a4b28; opacity: 1; }
.detail-page.theme-friuli .detail-info-grid {
  background: rgba(140, 106, 30, 0.05);
  border-color: rgba(212, 175, 100, 0.25);
}
.detail-page.theme-friuli .detail-info-grid h4 { color: #5a4b28; }
.detail-page.theme-friuli .detail-info-grid p { color: #1e1708; font-weight: 500; }
.detail-page.theme-friuli .detail-notes { border-left-color: #9c731e; }
.detail-page.theme-friuli .detail-notes h4 { color: #5a4b28; }
.detail-page.theme-friuli .detail-notes p { color: #3a2e15; }
.detail-page.theme-friuli .tech-value { color: #1e1708; }
.detail-page.theme-friuli .tech-label { color: #5a4b28; opacity: 0.75; }
.detail-page.theme-friuli .info-group-title { color: #9c731e; }
.detail-page.theme-friuli .info-group-title::after {
  background: linear-gradient(to right, rgba(156, 115, 30, 0.3), transparent);
}
.detail-page.theme-friuli .detail-nav {
  background: rgba(253, 252, 247, 0.92);
  border-bottom-color: rgba(212, 175, 100, 0.22);
}
.detail-page.theme-friuli .back-btn { color: #5a4b28; }
.detail-page.theme-friuli .back-btn:hover { color: #1e1708; }
.detail-page.theme-friuli .header-ornament .fish { color: #9c731e; }
.detail-page.theme-friuli .site-footer {
  color: rgba(42, 36, 20, 0.45);
  border-top-color: rgba(212, 175, 100, 0.2);
}
.detail-page.theme-friuli .site-footer .footer-nome { color: rgba(42, 32, 13, 0.65); }
.detail-page.theme-friuli .detail-image-wrap { background: rgba(140, 106, 30, 0.03); }

/* ── BIRRE, MEZZEBOTTIGLIE & SFUSO (sfondo identico a .sezione-birre-mezzebottiglie) ── */
.detail-page.theme-birre,
.detail-page.theme-speciali {
  background: linear-gradient(175deg, #fefbf5 0%, #f8eed6 100%);
  color: #2d210f;
}
.detail-page.theme-birre .detail-title,
.detail-page.theme-speciali .detail-title { color: #2d1e08; }
.detail-page.theme-birre .detail-category,
.detail-page.theme-speciali .detail-category { color: #8f5d0e; }
.detail-page.theme-birre .detail-subtitle,
.detail-page.theme-speciali .detail-subtitle { color: #584120; opacity: 1; }
.detail-page.theme-birre .detail-info-grid,
.detail-page.theme-speciali .detail-info-grid {
  background: rgba(143, 93, 14, 0.05);
  border-color: rgba(212, 159, 72, 0.25);
}
.detail-page.theme-birre .detail-info-grid h4,
.detail-page.theme-speciali .detail-info-grid h4 { color: #584120; }
.detail-page.theme-birre .detail-info-grid p,
.detail-page.theme-speciali .detail-info-grid p { color: #241604; font-weight: 500; }
.detail-page.theme-birre .detail-notes,
.detail-page.theme-speciali .detail-notes { border-left-color: #a46f1b; }
.detail-page.theme-birre .detail-notes h4,
.detail-page.theme-speciali .detail-notes h4 { color: #584120; }
.detail-page.theme-birre .detail-notes p,
.detail-page.theme-speciali .detail-notes p { color: #4a3821; }
.detail-page.theme-birre .tech-value,
.detail-page.theme-speciali .tech-value { color: #241604; }
.detail-page.theme-birre .tech-label,
.detail-page.theme-speciali .tech-label { color: #584120; opacity: 0.75; }
.detail-page.theme-birre .info-group-title,
.detail-page.theme-speciali .info-group-title { color: #a46f1b; }
.detail-page.theme-birre .info-group-title::after,
.detail-page.theme-speciali .info-group-title::after {
  background: linear-gradient(to right, rgba(164, 111, 27, 0.3), transparent);
}
.detail-page.theme-birre .detail-nav,
.detail-page.theme-speciali .detail-nav {
  background: rgba(254, 251, 245, 0.92);
  border-bottom-color: rgba(212, 159, 72, 0.22);
}
.detail-page.theme-birre .back-btn,
.detail-page.theme-speciali .back-btn { color: #584120; }
.detail-page.theme-birre .back-btn:hover,
.detail-page.theme-speciali .back-btn:hover { color: #241604; }
.detail-page.theme-birre .header-ornament .fish,
.detail-page.theme-speciali .header-ornament .fish { color: #a46f1b; }
.detail-page.theme-birre .site-footer,
.detail-page.theme-speciali .site-footer {
  color: rgba(45, 33, 15, 0.45);
  border-top-color: rgba(212, 159, 72, 0.2);
}
.detail-page.theme-birre .site-footer .footer-nome,
.detail-page.theme-speciali .site-footer .footer-nome { color: rgba(45, 30, 8, 0.65); }
.detail-page.theme-birre .detail-image-wrap,
.detail-page.theme-speciali .detail-image-wrap { background: rgba(143, 93, 14, 0.03); }

/* ── DETAIL SLIDER ──────────────────────────────────────── */
.detail-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-slider-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.detail-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Ensure images inside slides are correctly covered */
.detail-slide img {
  aspect-ratio: 2 / 3;
  width: auto;
  height: 80%;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  /* Correzione esposizione: schiarisce la bottiglia e l'etichetta */
  filter: brightness(1.13) contrast(1.04) saturate(1.05);
}

.detail-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 30, 46, 0.4);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--oro-chiaro);
  font-size: 1.5rem;
  padding: 1rem 0.8rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.detail-slider-btn:hover {
  background: rgba(13, 30, 46, 0.8);
  color: var(--oro);
  border-color: rgba(201, 169, 110, 0.5);
}

.prev-btn {
  left: 1.5rem;
}

.next-btn {
  right: 1.5rem;
}

.detail-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(13, 30, 46, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
  background: var(--oro);
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--oro);
}

/* Adjustments for light themes */
.theme-bianchi .detail-slider-btn,
.theme-rose .detail-slider-btn,
.theme-bollicine .detail-slider-btn {
  background: rgba(253, 249, 243, 0.6);
  border-color: rgba(13, 30, 46, 0.1);
  color: #0d1e2e;
}

.theme-bianchi .detail-slider-btn:hover,
.theme-rose .detail-slider-btn:hover,
.theme-bollicine .detail-slider-btn:hover {
  background: rgba(253, 249, 243, 0.95);
  color: #4a9ab0;
  border-color: rgba(13, 30, 46, 0.3);
}

.theme-bianchi .slider-dot,
.theme-rose .slider-dot,
.theme-bollicine .slider-dot {
  background: rgba(13, 30, 46, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-bianchi .slider-dot.active,
.theme-rose .slider-dot.active,
.theme-bollicine .slider-dot.active {
  background: #4a9ab0;
  box-shadow: 0 0 8px #4a9ab0;
}

/* ── LIGHTBOX OVERLAY ────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 30, 46, 0.85);
  /* Deep dark blue, semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
  /* Stessa correzione esposizione del viewer principale */
  filter: brightness(1.13) contrast(1.04) saturate(1.05);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  color: var(--sabbia-chiaro);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
  z-index: 1010;
}

.lightbox-close:hover {
  color: var(--oro);
  transform: scale(1.1);
}

/* ============================================================
   HAMBURGER MENU & OVERLAY DI NAVIGAZIONE
   ============================================================ */
.menu-toggle {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 1100;
  background: rgba(13, 30, 46, 0.65);
  border: 1px solid rgba(201, 169, 110, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-card);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.menu-toggle:hover {
  background: rgba(13, 30, 46, 0.9);
  border-color: var(--oro-chiaro);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--oro);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease, background-color var(--transition);
}

/* Animazione da hamburger a X */
.menu-toggle.attivo .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--oro-chiaro);
}

.menu-toggle.attivo .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.attivo .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--oro-chiaro);
}

/* Pannello di navigazione a comparsa */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(13, 30, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 30 Q30 10 60 30 Q90 50 120 30' fill='none' stroke='rgba(74,154,176,0.03)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 60px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.menu-overlay.attivo {
  opacity: 1;
  pointer-events: auto;
}

.menu-nav {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
}

.menu-brand {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bianco);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(74, 154, 176, 0.3);
}

.menu-ornament {
  color: var(--oro);
  font-size: 1.3rem;
  margin-bottom: 3.5rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.menu-ornament::before,
.menu-ornament::after {
  content: '';
  height: 1px;
  width: 50px;
  background: linear-gradient(to right, transparent, var(--oro));
  opacity: 0.4;
}

.menu-ornament::after {
  background: linear-gradient(to left, transparent, var(--oro));
}

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

.menu-link {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sabbia);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity var(--transition), color var(--transition), transform var(--transition);
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.menu-link:hover {
  opacity: 1;
  color: var(--oro-chiaro);
  transform: translateY(-2px);
}

.menu-link:hover::after {
  transform: scaleX(1);
}

.menu-link.attivo {
  opacity: 1;
  color: var(--oro-chiaro);
}

.menu-link.attivo::after {
  transform: scaleX(1);
  background: var(--oro-chiaro);
}

@media (max-width: 600px) {
  .menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    gap: 5px;
  }
  
  .menu-toggle .bar {
    width: 20px;
  }
  
  .menu-toggle.attivo .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.attivo .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .menu-links {
    gap: 1.8rem;
  }
}

/* ── LANGUAGE SWITCHER ────────────────────────── */
.lang-switcher {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 1100;
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-principale);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--sabbia);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.85;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover {
  opacity: 1;
  background: rgba(201, 169, 110, 0.18);
  border-color: var(--oro);
  color: var(--bianco);
}

.lang-btn.attivo {
  opacity: 1;
  border-color: var(--oro-chiaro);
  color: var(--oro-chiaro);
  background: rgba(201, 169, 110, 0.22);
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.2);
}

@media (max-width: 600px) {
  .lang-switcher {
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
  }
  
  .lang-btn {
    padding: 0.3rem 0.5rem;
  }
}

/* ── SCHEDA SINTETICA & PULSANTE DETTAGLIO MONOGRAFIE ── */
.card-vino.card-sintetica .card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
}

.vino-gradazione {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--oro, #c9a96e);
  font-weight: 500;
  margin-left: 0.45rem;
}

.btn-dettaglio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-chiaro, #f3e2b3);
  background: rgba(201, 169, 110, 0.14);
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.55rem;
  align-self: flex-start;
}

.btn-dettaglio:hover,
.btn-dettaglio:focus-visible {
  background: rgba(201, 169, 110, 0.28);
  border-color: var(--oro-chiaro, #f3e2b3);
  transform: translateY(-1px);
  outline: none;
}

.sezione-bianchi .btn-dettaglio,
.sezione-liguri .btn-dettaglio {
  color: #6b5324;
  background: rgba(138, 115, 64, 0.1);
  border-color: rgba(138, 115, 64, 0.4);
}

.sezione-bianchi .btn-dettaglio:hover,
.sezione-liguri .btn-dettaglio:hover {
  background: rgba(138, 115, 64, 0.22);
  border-color: #6b5324;
  color: #3d2e10;
}

/* ── MODALE SCHEDA TECNICA DETTAGLIATA ── */
.wine-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 18, 28, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wine-modal-backdrop.aperto {
  opacity: 1;
  pointer-events: auto;
}

.wine-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fdf9f3;
  color: #152638;
  border: 1px solid rgba(180, 148, 86, 0.45);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 2rem 2.2rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.wine-modal-backdrop.aperto .wine-modal {
  transform: translateY(0);
}

.wine-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(138, 115, 64, 0.35);
  background: rgba(253, 249, 243, 0.9);
  color: #5a4622;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wine-modal-close:hover {
  background: #8a7340;
  color: #fff;
}

.wine-modal-kicker {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7340;
  margin-bottom: 0.35rem;
}

.wine-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #0d1e2e;
  margin: 0 2.2rem 0.25rem 0;
  line-height: 1.15;
}

.wine-modal-subtitle {
  font-size: 1rem;
  color: #4a5c6d;
  margin: 0 0 1.25rem 0;
}

.wine-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(138, 115, 64, 0.25);
  border-bottom: 1px solid rgba(138, 115, 64, 0.25);
  margin-bottom: 1.25rem;
}

.wine-modal-field-label {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7340;
  margin-bottom: 0.2rem;
}

.wine-modal-field-value {
  display: block;
  font-size: 0.96rem;
  color: #152638;
  font-weight: 500;
}

.wine-modal-section {
  margin-bottom: 1.1rem;
}

.wine-modal-section h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b5324;
  margin: 0 0 0.45rem 0;
}

.wine-modal-section p,
.wine-modal-list {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #26394b;
}

.wine-modal-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wine-modal-list li strong {
  color: #0d1e2e;
}

@media (max-width: 600px) {
  .wine-modal {
    padding: 1.4rem 1.2rem;
  }
  .wine-modal-title {
    font-size: 1.55rem;
  }
}
