/* ============================================
   HEADER STYLES
============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: var(--spacing-lg);
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-base);
}

.site-logo a:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--color-text-primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.btn-accedi {
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-base);
}

.btn-accedi:hover {
  color: var(--color-accent-yellow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--spacing-xl);
  position: relative;
}

.mobile-menu-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--color-text-primary);
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-base);
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-nav-menu {
  list-style: none;
  text-align: center;
  margin: 0 0 var(--spacing-xl) 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin: var(--spacing-md) 0;
}

.mobile-nav-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.mobile-nav-menu a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.1);
  display: inline-block;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 300px;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem 0;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
}