/* ─── HERO ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(10,10,10,1) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 65%, rgba(10,10,10,1) 100%),
    linear-gradient(to right,   rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 55%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 8rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 7rem; }
}

/* Hero badge */
#hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,192,127,0.25);
  background: rgba(0,192,127,0.04);
  border-radius: 100px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  opacity: 0;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero title */
#hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
  opacity: 0;
  filter: blur(12px);
  letter-spacing: -0.01em;
}
#hero-title em {
  font-style: normal;
  color: var(--emerald);
}

/* Hero sub */
#hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero actions */
#hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero stats */
#hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.stat-glass {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}
.stat-glass:hover {
  border-color: rgba(0,192,127,0.2);
  background: rgba(0,192,127,0.03);
}
.stat-icon {
  width: 40px; height: 40px;
  background: rgba(0,192,127,0.08);
  border: 1px solid rgba(0,192,127,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
  animation: float-scroll 2.5s ease-in-out infinite;
}
@keyframes float-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
}

/* ─── HERO FLOATING ORBS ──────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 560px; height: 560px;
  right: 6%;
  top: 12%;
  background: radial-gradient(circle, rgba(0,192,127,0.11) 0%, rgba(0,192,127,0.04) 40%, transparent 70%);
  filter: blur(55px);
  animation: orb-float-a 17s ease-in-out infinite;
}
.hero-orb-2 {
  width: 340px; height: 340px;
  right: 24%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(0,140,95,0.08) 0%, transparent 70%);
  filter: blur(48px);
  animation: orb-float-b 22s ease-in-out infinite;
  animation-delay: -9s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  left: 40%;
  top: 25%;
  background: radial-gradient(circle, rgba(0,192,127,0.05) 0%, transparent 70%);
  filter: blur(40px);
  animation: orb-float-c 13s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes orb-float-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-28px,-38px) scale(1.06); }
  66%       { transform: translate(22px,18px) scale(0.95); }
}
@keyframes orb-float-b {
  0%, 100% { transform: translate(0,0); }
  40%       { transform: translate(32px,-22px); }
  75%       { transform: translate(-18px,28px); }
}
@keyframes orb-float-c {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(12px,-16px) scale(1.08); }
}

/* ─── HERO STAT GLASS — ENHANCED ─────────────────────────────── */
.stat-glass {
  border-left: 2px solid transparent;
  transition: border-left-color 0.4s, border-color 0.3s, background 0.3s, transform 0.3s;
}
.stat-glass:hover {
  border-left-color: rgba(0,192,127,0.45);
  transform: translateX(4px);
}
.stat-value {
  text-shadow: 0 0 24px rgba(0,192,127,0.25);
}

/* ─── HERO → SEZIONE SUCCESSIVA: TRANSIZIONE SFUMATA ─────────────── */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    transparent          0%,
    rgba(10,10,10,0.45) 40%,
    rgba(10,10,10,0.82) 72%,
    #0a0a0a             100%
  );
  pointer-events: none;
  z-index: 60;
}
