/* ═══════════════════════════════════════════════════════════════
   SELKERMO V12 FINAL — Header trasparente + linee + bottoni bianchi
   Applica le modifiche confermate a tutte le pagine
   ═══════════════════════════════════════════════════════════════ */

/* ═══ 1. HEADER TRASPARENTE + LINEA STILE SEZIONI ═══ */
header {
  background: rgba(3, 3, 3, 0.4) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Linea header — stile identico alle sezioni */
header::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 65% !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(38, 128, 233, 0.15) 20%,
    rgba(79, 227, 255, 0.4) 50%,
    rgba(38, 128, 233, 0.15) 80%,
    transparent 100%) !important;
  display: block !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

header::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60px !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(127, 238, 255, 0.9) 50%,
    transparent 100%) !important;
  box-shadow:
    0 0 6px rgba(127, 238, 255, 0.5),
    0 0 14px rgba(79, 227, 255, 0.25) !important;
  display: block !important;
  z-index: 6 !important;
  pointer-events: none !important;
}

/* ═══ 2. BOTTONI SCURI → BIANCHI (tutto il sito) ═══ */

/* btn-outline (home) */
.btn-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.btn-outline:hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 255, 255, 0.35) !important;
}

/* btn-auth-login (navbar Accedi) */
.btn-auth-login {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.btn-auth-login:hover {
  background: #ffffff !important;
  color: #021021 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.4) !important;
}

/* btn-cart-secondary (configuratore: Crypto, WhatsApp, PDF) */
.btn-cart-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.btn-cart-secondary:hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 255, 255, 0.3) !important;
}

/* btn-card (prezzi: Richiedi) */
.btn-card {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.btn-card:hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35) !important;
}

/* back-btn (Torna a / Torna ai prezzi) */
.back-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}
.back-btn:hover {
  background: #ffffff !important;
  color: #021021 !important;
  border-color: #ffffff !important;
  transform: translateX(-3px) !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35) !important;
}

/* btn-pack (configuratore: Applica pacchetto) */
.btn-pack {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.btn-pack:hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
}

/* btn-cart (bottoni carrello singoli non-primary) */
.btn-cart:not(.btn-cart-primary) {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.btn-cart:not(.btn-cart-primary):hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3) !important;
}

/* btn-small (dashboard) */
.btn-small {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}
.btn-small:hover {
  background: #ffffff !important;
  color: #02121d !important;
  border-color: #ffffff !important;
}

/* ═══ 3. SPAZIO SOTTO HEADER FISSO (evita sovrapposizioni) ═══ */
body {
  padding-top: 0 !important;
}

/* Contenuto non deve finire sotto l'header fisso */
main, .page-wrap, .page, .container:first-of-type {
  scroll-margin-top: 100px;
}

/* ═══ 4. OVERRIDE INLINE STYLE (solo per il logo — già originale) ═══ */
/* Il logo rimane invariato: anello ciano, cerchio nero, icona ciano */

/* ═══ 5. RESPECT REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  header::after,
  header::before {
    display: none;
  }
}