:root{}

/* HERO HOME ESTETICA AVANZATA */
.theme-home .hero-banner {
  background-image:
    radial-gradient(1200px 600px at 10% 20%, rgba(0, 215, 153, 0.35), transparent 60%),
    radial-gradient(800px 500px at 85% 30%, rgba(0, 87, 183, 0.35), transparent 60%),
    url('../img/hero-bg.png');
  background-size: cover, cover, cover;
  background-position: center;
  animation: homeGradientShift 12s ease-in-out infinite alternate;
}

.theme-home .hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 300px at 20% 80%, rgba(255, 208, 59, 0.10), transparent 60%),
    radial-gradient(700px 400px at 80% 10%, rgba(33, 150, 243, 0.10), transparent 60%);
  mix-blend-mode: screen;
}

.theme-home .hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 16px);
  opacity: 0.35;
}

@keyframes homeGradientShift {
  0% {
    background-position: 50% 50%, 50% 50%, center;
    filter: saturate(1) brightness(1);
  }
  100% {
    background-position: 48% 52%, 52% 48%, center;
    filter: saturate(1.1) brightness(1.05);
  }
}

.theme-home .hero-content h1 {
  background: linear-gradient(90deg, #ffd03b 0%, #00c875 50%, #2196f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.theme-home .hero-content p {
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}

.theme-home .hero-banner .hero-content {
  transform: translateY(6px);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0% { transform: translateY(6px); }
  50% { transform: translateY(0px); }
  100% { transform: translateY(6px); }
}

.theme-home .cta-swap .cta-btn {
  position: relative;
  overflow: hidden;
}
.theme-home .cta-swap .cta-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -20%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.25), rgba(255,255,255,0.0));
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.theme-home .cta-swap .cta-btn:hover::after {
  left: 80%;
}

/* Decorazione bordo inferiore dell'hero */
.theme-home .hero-banner .hero-overlay {
  --cut: 40px;
  mask-image: linear-gradient(#000 0 calc(100% - var(--cut)), transparent calc(100% - var(--cut)) 100%);
}
