/* NAVBAR UNIFICATA - uguale alla home, desktop e mobile */
:root {
  --primary-color: #FF8C00;
  --primary-dark: #E67E00;
  --primary-light: #FFA033;
  --dark-bg: #121212;
  --dark-bg-lighter: #1e1e1e;
  --light-text: #ffffff;
  --accent-color: #f8f8f8;
  --section-padding: 60px 20px;
  --gradient-bg: linear-gradient(135deg, rgba(255, 140, 0, 0.8), rgba(230, 126, 0, 0.9));
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --neon-glow: 0 0 10px rgba(255, 140, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.4);
  --glassmorphism: rgba(30, 30, 30, 0.7);
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 30px;
  position: fixed;
  width: 100%;
  max-width: 100vw;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(10, 10, 10, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin: 0;
  animation: navbarFadeIn 1s ease-out;
}

/* Fallback per browser che non supportano le animazioni */
@supports not (animation: navbarFadeIn 1s ease-out) {
  header {
    opacity: 1;
    transform: none;
  }
}

/* Effetto di sfondo animato per la navbar */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
  animation: navbarGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Fallback per il background se le animazioni non funzionano */
@supports not (animation: navbarGlow 8s ease-in-out infinite) {
  header::before {
    background: 
      radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
    opacity: 0.8;
  }
}

/* Bordo inferiore decorativo */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 140, 0, 0.3) 20%, 
    rgba(255, 140, 0, 0.8) 50%, 
    rgba(255, 140, 0, 0.3) 80%, 
    transparent 100%);
  animation: navbarBorderGlow 3s ease-in-out infinite;
  z-index: 3;
}

/* Fallback per il bordo se le animazioni non funzionano */
@supports not (animation: navbarBorderGlow 3s ease-in-out infinite) {
  header::after {
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 140, 0, 0.5) 20%, 
      rgba(255, 140, 0, 0.9) 50%, 
      rgba(255, 140, 0, 0.5) 80%, 
      transparent 100%);
    opacity: 0.8;
  }
}

/* Particelle decorative per la navbar - 12 particelle come nel footer */
header .nav-particle1 {
  position: absolute;
  top: 15%;
  left: 8%;
  width: 2px;
  height: 2px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle1 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle2 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 3px;
  height: 3px;
  background: rgba(255, 140, 0, 0.5);
  border-radius: 50%;
  animation: navParticle2 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

header .nav-particle3 {
  position: absolute;
  top: 35%;
  left: 45%;
  width: 1.5px;
  height: 1.5px;
  background: rgba(255, 140, 0, 0.8);
  border-radius: 50%;
  animation: navParticle3 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

header .nav-particle4 {
  position: absolute;
  top: 20%;
  left: 65%;
  width: 2.5px;
  height: 2.5px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle4 9s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle5 {
  position: absolute;
  top: 30%;
  left: 85%;
  width: 2px;
  height: 2px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle5 5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle6 {
  position: absolute;
  top: 55%;
  left: 12%;
  width: 1.8px;
  height: 1.8px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle6 10s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle7 {
  position: absolute;
  top: 65%;
  left: 35%;
  width: 2.2px;
  height: 2.2px;
  background: rgba(255, 140, 0, 0.5);
  border-radius: 50%;
  animation: navParticle7 7.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

header .nav-particle8 {
  position: absolute;
  top: 75%;
  left: 55%;
  width: 1.5px;
  height: 1.5px;
  background: rgba(255, 140, 0, 0.8);
  border-radius: 50%;
  animation: navParticle8 6.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

header .nav-particle9 {
  position: absolute;
  top: 45%;
  left: 75%;
  width: 2.8px;
  height: 2.8px;
  background: rgba(255, 140, 0, 0.4);
  border-radius: 50%;
  animation: navParticle9 8.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

header .nav-particle10 {
  position: absolute;
  top: 60%;
  left: 85%;
  width: 1.3px;
  height: 1.3px;
  background: rgba(255, 140, 0, 0.9);
  border-radius: 50%;
  animation: navParticle10 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

header .nav-particle11 {
  position: absolute;
  top: 40%;
  left: 15%;
  width: 2.3px;
  height: 2.3px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle11 9.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle12 {
  position: absolute;
  top: 70%;
  left: 25%;
  width: 1.7px;
  height: 1.7px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle12 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle13 {
  position: absolute;
  top: 10%;
  left: 60%;
  width: 2.1px;
  height: 2.1px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle13 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle14 {
  position: absolute;
  top: 80%;
  left: 40%;
  width: 2.4px;
  height: 2.4px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle14 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle15 {
  position: absolute;
  top: 20%;
  left: 90%;
  width: 1.6px;
  height: 1.6px;
  background: rgba(255, 140, 0, 0.5);
  border-radius: 50%;
  animation: navParticle15 9s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

header .nav-particle16 {
  position: absolute;
  top: 85%;
  left: 10%;
  width: 2.2px;
  height: 2.2px;
  background: rgba(255, 140, 0, 0.8);
  border-radius: 50%;
  animation: navParticle16 6.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

header .nav-particle17 {
  position: absolute;
  top: 60%;
  left: 60%;
  width: 2.5px;
  height: 2.5px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle17 8.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle18 {
  position: absolute;
  top: 35%;
  left: 80%;
  width: 1.9px;
  height: 1.9px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle18 7.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle19 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.3px;
  height: 2.3px;
  background: rgba(255, 140, 0, 0.8);
  border-radius: 50%;
  animation: navParticle19 9.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

header .nav-particle20 {
  position: absolute;
  top: 75%;
  left: 70%;
  width: 2.6px;
  height: 2.6px;
  background: rgba(255, 140, 0, 0.5);
  border-radius: 50%;
  animation: navParticle20 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

header .nav-particle21 {
  position: absolute;
  top: 30%;
  left: 60%;
  width: 2.1px;
  height: 2.1px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle21 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

header .nav-particle22 {
  position: absolute;
  top: 65%;
  left: 20%;
  width: 1.7px;
  height: 1.7px;
  background: rgba(255, 140, 0, 0.6);
  border-radius: 50%;
  animation: navParticle22 6.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

header .nav-particle23 {
  position: absolute;
  top: 80%;
  left: 80%;
  width: 2.4px;
  height: 2.4px;
  background: rgba(255, 140, 0, 0.8);
  border-radius: 50%;
  animation: navParticle23 8.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

header .nav-particle24 {
  position: absolute;
  top: 55%;
  left: 90%;
  width: 2.8px;
  height: 2.8px;
  background: rgba(255, 140, 0, 0.7);
  border-radius: 50%;
  animation: navParticle24 7.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* Animazioni per le particelle della navbar - identiche al footer */
@keyframes navParticle1 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-8px) translateX(5px) scale(1.3); opacity: 1; }
}

@keyframes navParticle2 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
  33% { transform: translateY(-6px) translateX(-3px) scale(1.2); opacity: 0.8; }
  66% { transform: translateY(-12px) translateX(4px) scale(1.4); opacity: 0.6; }
}

@keyframes navParticle3 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(6px) scale(1.3); opacity: 1; }
}

@keyframes navParticle4 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-5px) translateX(-2px) scale(1.1); opacity: 0.9; }
  50% { transform: translateY(-9px) translateX(3px) scale(1.2); opacity: 0.7; }
  75% { transform: translateY(-4px) translateX(-4px) scale(1.05); opacity: 0.8; }
}

@keyframes navParticle5 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-7px) translateX(-5px) scale(1.2); opacity: 1; }
}

@keyframes navParticle6 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-11px) translateX(7px) scale(1.4); opacity: 0.9; }
}

@keyframes navParticle7 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-8px) translateX(-4px) scale(1.3); opacity: 0.8; }
}

@keyframes navParticle8 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  33% { transform: translateY(-6px) translateX(3px) scale(1.2); opacity: 1; }
  66% { transform: translateY(-9px) translateX(-2px) scale(1.1); opacity: 0.7; }
}

@keyframes navParticle9 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-12px) translateX(8px) scale(1.5); opacity: 0.7; }
}

@keyframes navParticle10 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-5px) translateX(-6px) scale(1.2); opacity: 1; }
}

@keyframes navParticle11 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-7px) translateX(2px) scale(1.3); opacity: 0.9; }
  50% { transform: translateY(-13px) translateX(-3px) scale(1.4); opacity: 0.5; }
  75% { transform: translateY(-3px) translateX(5px) scale(1.1); opacity: 0.8; }
}

@keyframes navParticle12 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-9px) translateX(4px) scale(1.3); opacity: 1; }
}

@keyframes navParticle13 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-14px) translateX(7px) scale(1.2); opacity: 0.9; }
}

@keyframes navParticle14 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  33% { transform: translateY(-10px) translateX(-6px) scale(1.3); opacity: 1; }
  66% { transform: translateY(-16px) translateX(8px) scale(1.5); opacity: 0.8; }
}

@keyframes navParticle15 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-12px) translateX(10px) scale(1.4); opacity: 0.7; }
}

@keyframes navParticle16 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  25% { transform: translateY(-8px) translateX(-5px) scale(1.1); opacity: 1; }
  75% { transform: translateY(-15px) translateX(6px) scale(1.3); opacity: 0.6; }
}

@keyframes navParticle17 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-15px) translateX(9px) scale(1.3); opacity: 1; }
}

@keyframes navParticle18 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
  33% { transform: translateY(-11px) translateX(-7px) scale(1.2); opacity: 0.8; }
  66% { transform: translateY(-17px) translateX(5px) scale(1.4); opacity: 0.6; }
}

@keyframes navParticle19 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-13px) translateX(8px) scale(1.3); opacity: 1; }
}

@keyframes navParticle20 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-6px) translateX(-3px) scale(1.1); opacity: 0.9; }
  50% { transform: translateY(-10px) translateX(4px) scale(1.2); opacity: 0.7; }
  75% { transform: translateY(-5px) translateX(-5px) scale(1.05); opacity: 0.8; }
}

@keyframes navParticle21 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-9px) translateX(-7px) scale(1.2); opacity: 1; }
}

@keyframes navParticle22 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-12px) translateX(9px) scale(1.4); opacity: 0.9; }
}

@keyframes navParticle23 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-10px) translateX(-8px) scale(1.3); opacity: 0.8; }
}

@keyframes navParticle24 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  33% { transform: translateY(-7px) translateX(4px) scale(1.2); opacity: 1; }
  66% { transform: translateY(-11px) translateX(-3px) scale(1.1); opacity: 0.7; }
}

/* Animazioni principali per la navbar */
@keyframes navbarGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.01);
  }
}

@keyframes navbarBorderGlow {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.1);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  }
}

@keyframes navbarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback per browser che non supportano le animazioni */
@supports not (animation: navParticle1 6s ease-in-out infinite) {
  header .nav-particle1, header .nav-particle2, header .nav-particle3, 
  header .nav-particle4, header .nav-particle5, header .nav-particle6,
  header .nav-particle7, header .nav-particle8, header .nav-particle9,
  header .nav-particle10, header .nav-particle11, header .nav-particle12 {
    animation: none;
    opacity: 0.5;
  }
}

.logo {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  z-index: 4;
}
.logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  position: relative;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 25px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.social {
  margin-left: 20px;
  display: flex;
  align-items: center;
  z-index: 4;
  position: relative;
}
.social a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-left: 20px;
  text-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
  transform: translateY(-3px) scale(1.1);
}

.social svg {
  transition: all 0.3s ease;
}

.social a:hover svg {
  filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Animazione avanzata hamburger */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 10000;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transition: transform 0.25s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.hamburger-menu:active {
  transform: translateY(-50%) scale(0.92);
  transition: transform 0.15s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--light-text);
  border-radius: 3px;
  transition: 
    background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55),
    opacity 0.3s cubic-bezier(0.68,-0.55,0.27,1.55);
  position: relative;
}
.hamburger-menu:hover span {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}
.hamburger-menu.active {
  animation: hamburgerBounce 0.5s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg) scaleX(1.1);
  background-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0.7);
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg) scaleX(1.1);
  background-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}
@keyframes hamburgerBounce {
  0% { transform: translateY(-50%) scale(1); }
  40% { transform: translateY(-50%) scale(1.15); }
  60% { transform: translateY(-50%) scale(0.95); }
  100% { transform: translateY(-50%) scale(1); }
}

@media (max-width: 1055px) {
  .logo{
    left: 10px;
  }
}

@media (max-width: 768px) {
  .logo{
    left: 10px;
  }
  header {
    justify-content: space-between;
    padding: 32px 20px;
  }
  
  /* Nascondi il menu desktop su mobile */
  .nav-links {
    display: none;
  }
  
  /* Riduci le particelle su mobile ma mantieni più di prima */
  header .nav-particle9, header .nav-particle11 {
    display: none;
  }
  
  /* Aumenta le dimensioni delle particelle rimanenti */
  header .nav-particle1, header .nav-particle2, header .nav-particle3, 
  header .nav-particle4, header .nav-particle5, header .nav-particle6,
  header .nav-particle7, header .nav-particle8, header .nav-particle10, 
  header .nav-particle12 {
    transform: scale(1.5);
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  /* Animazioni complete del menu mobile */
  .mobile-nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s, opacity 0.6s;
    z-index: 9998;
    padding: 120px 20px 20px 20px;
    visibility: hidden;
    opacity: 0;
  }

  /* Effetto di sfondo animato per il menu mobile - identico alla navbar */
  .mobile-nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
    animation: mobileMenuGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links.active::before {
    opacity: 1;
  }

  /* Bordo inferiore decorativo per il menu mobile */
  .mobile-nav-links::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 140, 0, 0.3) 20%, 
      rgba(255, 140, 0, 0.8) 50%, 
      rgba(255, 140, 0, 0.3) 80%, 
      transparent 100%);
    animation: mobileMenuBorderGlow 3s ease-in-out infinite;
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links.active::after {
    opacity: 1;
  }

  /* Particelle decorative per il menu mobile - 8 particelle distribuite */
  .mobile-nav-links .mobile-particle1 {
    position: fixed;
    top: 15%;
    left: 10%;
    width: 2px;
    height: 2px;
    background: rgba(255, 140, 0, 0.7);
    border-radius: 50%;
    animation: mobileParticle1 6s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle2 {
    position: fixed;
    top: 25%;
    right: 15%;
    width: 3px;
    height: 3px;
    background: rgba(255, 140, 0, 0.5);
    border-radius: 50%;
    animation: mobileParticle2 8s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle3 {
    position: fixed;
    top: 40%;
    left: 20%;
    width: 1.5px;
    height: 1.5px;
    background: rgba(255, 140, 0, 0.8);
    border-radius: 50%;
    animation: mobileParticle3 7s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle4 {
    position: fixed;
    top: 35%;
    right: 25%;
    width: 2.5px;
    height: 2.5px;
    background: rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    animation: mobileParticle4 9s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle5 {
    position: fixed;
    top: 55%;
    left: 15%;
    width: 2px;
    height: 2px;
    background: rgba(255, 140, 0, 0.7);
    border-radius: 50%;
    animation: mobileParticle5 5s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle6 {
    position: fixed;
    top: 50%;
    right: 20%;
    width: 1.8px;
    height: 1.8px;
    background: rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    animation: mobileParticle6 10s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle7 {
    position: fixed;
    top: 70%;
    left: 25%;
    width: 2.2px;
    height: 2.2px;
    background: rgba(255, 140, 0, 0.5);
    border-radius: 50%;
    animation: mobileParticle7 7.5s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-nav-links .mobile-particle8 {
    position: fixed;
    top: 65%;
    right: 15%;
    width: 1.5px;
    height: 1.5px;
    background: rgba(255, 140, 0, 0.8);
    border-radius: 50%;
    animation: mobileParticle8 6.5s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  /* Mostra le particelle quando il menu è attivo */
  .mobile-nav-links.active .mobile-particle1,
  .mobile-nav-links.active .mobile-particle2,
  .mobile-nav-links.active .mobile-particle3,
  .mobile-nav-links.active .mobile-particle4,
  .mobile-nav-links.active .mobile-particle5,
  .mobile-nav-links.active .mobile-particle6,
  .mobile-nav-links.active .mobile-particle7,
  .mobile-nav-links.active .mobile-particle8 {
    opacity: 1;
  }

  /* Animazioni per le particelle del menu mobile */
  @keyframes mobileParticle1 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-8px) translateX(5px) scale(1.3); opacity: 1; }
  }

  @keyframes mobileParticle2 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
    33% { transform: translateY(-6px) translateX(-3px) scale(1.2); opacity: 0.8; }
    66% { transform: translateY(-12px) translateX(4px) scale(1.4); opacity: 0.6; }
  }

  @keyframes mobileParticle3 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-10px) translateX(6px) scale(1.3); opacity: 1; }
  }

  @keyframes mobileParticle4 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    25% { transform: translateY(-5px) translateX(-2px) scale(1.1); opacity: 0.9; }
    50% { transform: translateY(-9px) translateX(3px) scale(1.2); opacity: 0.7; }
    75% { transform: translateY(-4px) translateX(-4px) scale(1.05); opacity: 0.8; }
  }

  @keyframes mobileParticle5 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-7px) translateX(-5px) scale(1.2); opacity: 1; }
  }

  @keyframes mobileParticle6 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-11px) translateX(7px) scale(1.4); opacity: 0.9; }
  }

  @keyframes mobileParticle7 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-8px) translateX(-4px) scale(1.3); opacity: 0.8; }
  }

  @keyframes mobileParticle8 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    33% { transform: translateY(-6px) translateX(3px) scale(1.2); opacity: 1; }
    66% { transform: translateY(-9px) translateX(-2px) scale(1.1); opacity: 0.7; }
  }

  /* Animazioni per il menu mobile */
  @keyframes mobileMenuGlow {
    0%, 100% {
      opacity: 0.4;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.01);
    }
  }

  @keyframes mobileMenuBorderGlow {
    0%, 100% {
      opacity: 0.3;
      box-shadow: 0 0 5px rgba(255, 140, 0, 0.1);
    }
    50% {
      opacity: 0.7;
      box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
    }
  }

  .mobile-nav-links.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .mobile-nav-links a {
    margin: 12px 0;
    font-size: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    color: var(--light-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    text-align: center;
    padding: 10px 0;
    display: block;
    width: auto;
    z-index: 4;
  }

  .mobile-nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-links a:nth-child(1) { transition-delay: 0.15s; }
  .mobile-nav-links a:nth-child(2) { transition-delay: 0.25s; }
  .mobile-nav-links a:nth-child(3) { transition-delay: 0.35s; }
  .mobile-nav-links a:nth-child(4) { transition-delay: 0.45s; }
  .mobile-nav-links a:nth-child(5) { transition-delay: 0.55s; }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    transform: translateY(-2px);
  }

  .mobile-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .mobile-nav-links a:hover::after,
  .mobile-nav-links a.active::after {
    width: 60px;
  }

  .mobile-nav-links .social {
    margin: 40px 0 0 0;
    justify-content: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 4;
    position: relative;
  }

  .mobile-nav-links.active .social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-nav-links .social a {
    margin: 0 20px;
    font-size: 28px;
    color: var(--light-text);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .mobile-nav-links .social a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    transform: translateY(-3px) scale(1.1);
  }

  .mobile-nav-links .social svg {
    transition: all 0.3s ease;
  }

  .mobile-nav-links .social a:hover svg {
    filter: drop-shadow(0 0 5px var(--primary-color));
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Effetti hover per dispositivi desktop */
@media (hover: hover) {
  header:hover::before {
    animation-duration: 4s;
  }
  
  header:hover::after {
    animation-duration: 1.5s;
  }
}

/* Supporto per tema scuro */
@media (prefers-color-scheme: dark) {
  header {
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(15, 15, 15, 0.95) 50%, rgba(5, 5, 5, 0.95) 100%);
  }
}

.hamburger-menu:not(.active) span {
  background-color: var(--light-text);
  box-shadow: none;
  transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.3s cubic-bezier(0.68,-0.55,0.27,1.55);
} 