/* NEAITECH — polish bottoni + vetro visibile (caricare DOPO main.css) */

/* ═══ Bottoni sempre leggibili ═══ */
a.btn,
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0.85rem 1.65rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s !important;
}

a.btn-primary,
.btn-primary,
.hero-actions .btn-primary,
.cta-text .btn-primary,
.cta-band .btn-primary,
section .btn-primary {
  background: linear-gradient(135deg, #1a4d8c 0%, #0c1f3d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(12, 31, 61, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

a.btn-primary:hover,
.btn-primary:hover,
.hero-actions .btn-primary:hover,
.cta-text .btn-primary:hover,
.cta-band .btn-primary:hover {
  color: #ffffff !important;
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(12, 31, 61, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* CTA scura in fondo: bottone chiaro, testo scuro (contrasto OK) */
.cta-band .btn-primary,
.cta-text .btn-primary {
  background: #ffffff !important;
  color: #0c1f3d !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2) !important;
}

.cta-band .btn-primary:hover,
.cta-text .btn-primary:hover {
  background: #f0c14b !important;
  color: #0c1f3d !important;
  filter: none !important;
}

/* Ghost su hero scuro */
.btn-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* ═══ Header + bottoni menu: vetro più trasparente ═══ */
.header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.1) 100%
  ) !important;
  backdrop-filter: blur(18px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.55) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 4px 24px rgba(8, 24, 48, 0.08) !important;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
  box-shadow: 0 6px 28px rgba(8, 24, 48, 0.1) !important;
  border-bottom-color: rgba(255, 255, 255, 0.45) !important;
}

.nav-primary {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 14px rgba(8, 24, 48, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* CTA menu: vetro, non solido blu */
.nav-cta,
a.nav-cta {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #0b1a2e !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 16px rgba(8, 24, 48, 0.08) !important;
  font-weight: 700 !important;
}

.nav-cta:hover,
a.nav-cta:hover {
  background: rgba(255, 255, 255, 0.42) !important;
  color: #0b1a2e !important;
  filter: none;
}

/* Hero: bottoni leggermente glass (restano leggibili) */
.hero-actions .btn-primary {
  background: rgba(12, 31, 61, 0.55) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(12px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Mobile drawer: vetro leggero */
@media (max-width: 980px) {
  .nav.open {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(26px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(26px) saturate(1.4) !important;
  }
}
