/* --- ANIMAZIONI --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

/* --- NAVBAR --- */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
  pointer-events: none;
}

.navbar-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-pill img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.navbar-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s;
  white-space: nowrap;
}

.navbar-link:hover, .navbar-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Legale */
.legal-wrapper { position: relative; }
.legal-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  min-width: 200px;
  padding: 0.75rem;
  border-radius: 1.5rem;
  transition: all 0.3s;
}
.legal-wrapper:hover .legal-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.legal-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.legal-dropdown a:hover {
  color: white;
  background: rgba(220, 38, 38, 0.1);
}

/* --- MENU MOBILE --- */
.mobile-menu {
  position: fixed;
  top: 85px;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .navbar-pill {
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }
}

/* --- STILI GENERALI --- */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-strong {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cart-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #dc2626;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 45;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 800;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
