* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background-color: black;
}

.intro-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-in-out;
  z-index: 2;
  overflow: hidden;
}

video.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.logo {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  animation: pulse-glow 2s infinite;
  /* Riduci i filtri per migliorare performance */
  filter: drop-shadow(0 0 10px hsl(294, 100%, 79.8%));
  margin-bottom: 0;
  z-index: 3;
  display: block;
  cursor: pointer;
  /* Usa hardware acceleration */
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 600px) {
  .logo {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
  }
}
.logo:hover {
  animation: pulse 2s infinite;
  transform: translateZ(0) scale(1.03);
}

.particles {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 4 !important; /* Davanti al logo per i cuori */
  top: 0 !important;
  left: 0 !important;
  /* Usa hardware acceleration */
  transform: translateZ(0) !important;
  will-change: transform !important;
}

@keyframes pulse-glow {
  0% { 
    filter: drop-shadow(0 0 8px hsl(294, 100%, 79.8%));
    transform: translateZ(0) scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 15px hsl(294, 100%, 79.8%));
    transform: translateZ(0) scale(1.02);
  }
  100% { 
    filter: drop-shadow(0 0 8px hsl(294, 100%, 79.8%));
    transform: translateZ(0) scale(1);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tornado-effect {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  background-repeat: no-repeat;
  pointer-events: none;
  animation: cinematicTornado 2s cubic-bezier(0.6, 0.01, 0.6, 1) forwards;
  z-index: 5;
  mix-blend-mode: screen;
}

@keyframes cinematicTornado {
  0% {
    transform: rotate(0deg) scale(0.1);
    opacity: 1;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
  }
  50% {
    transform: rotate(720deg) scale(2);
    clip-path: polygon(40% 40%, 60% 40%, 60% 60%, 40% 60%);
    opacity: 1;
    filter: blur(10px);
  }
  100% {
    transform: rotate(1440deg) scale(10);
    clip-path: circle(200% at 50% 50%);
    opacity: 0;
    filter: blur(20px);
  }
}

/* Animazioni sempre attive - rimossa limitazione mobile */

/* Riduce le animazioni per chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .logo {
    animation: none !important;
  }
  
  .tornado-effect {
    animation-duration: 0.5s !important;
  }
}

/* Classe per disabilitare animazioni quando necessario */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduced-motion .logo {
  animation: none !important;
  filter: drop-shadow(0 0 5px hsl(294, 100%, 79.8%)) !important;
  transform: none !important;
}