/* =========================================================
   ARENA UI — HEADER SYSTEM
   Header Desktop + Header Mobile + Mobile Drawer
   Estratto e ottimizzato da arena-ui.css
   Nessun cambiamento estetico
========================================================= */


/* =========================================================
   1) HEADER BASE (mobile-first)
========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;

  background: transparent;
  backdrop-filter: none;

  transition:
    background .25s ease,
    box-shadow .25s ease,
    backdrop-filter .25s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;

  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;
}

.header-logo img {
  width: auto;
  object-fit: contain;
}


/* =========================================================
   2) HEADER SCROLL STATE (desktop & mobile)
========================================================= */

.site-header.is-scrolled {
  background:
    linear-gradient(
      90deg,
      rgba(34, 211, 238, 0.08) 0%,
      rgba(217, 70, 239, 0.08) 50%,
      rgba(34, 211, 238, 0.08) 100%
    ),
    rgba(2, 6, 23, 0.80);

  backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}


/* =========================================================
   3) NAVBAR DESKTOP (mobile-first: OFF)
========================================================= */

.desktop-nav {
  display: none;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;

  text-transform: uppercase;
  letter-spacing: 0.05em;

  transition: color 0.2s ease;
}

.nav-link--highlight {
  color: #f9a8ff;
}


/* =========================================================
   4) NAVBAR DESKTOP — ON (lg)
========================================================= */

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}


/* =========================================================
   5) HAMBURGER BUTTON (mobile)
========================================================= */

#hamburgerBtn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: hamburger OFF */
@media (min-width: 1024px) {
  #hamburgerBtn {
    display: none;
  }
}


/* =========================================================
   6) MOBILE DRAWER — BACKDROP
========================================================= */

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;

  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(5px);

  z-index: 9990;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}


/* =========================================================
   7) MOBILE DRAWER PANEL
========================================================= */

.mobile-drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;

  width: 78%;
  max-width: 300px;

  background: #0f172a;

  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  padding: 80px 24px 24px;

  border-left: 1px solid rgba(255, 255, 255, 0.1);

  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}


/* =========================================================
   8) MOBILE DRAWER — LINKS
========================================================= */

.mobile-drawer nav a {
  padding: 14px 12px;
  font-weight: 600;
  font-size: 0.95rem;
}


/* =========================================================
   9) FAILSAFE RESPONSIVE BEHAVIOR
   (garantisce coerenza in casi estremi)
========================================================= */

@media (max-width: 1023px) {
  .desktop-nav { display: none !important; }
  #hamburgerBtn { display: flex !important; }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex !important; }
  #hamburgerBtn { display: none !important; }
}
