/* ============================================================================
   MAFFEI LABS — WOW POLISH (override sobrio finale)
   Disattiva tutti i cursor custom + trail stelle.
   Lascia: stella respiro, hover lift card, scroll progress, sparkles brand, letter rise.
   ============================================================================ */

/* Cursor nativo ripristinato ovunque */
body, body * {
  cursor: auto !important;
}
body input, body textarea {
  cursor: text !important;
}
body a, body button, body [role="button"] {
  cursor: pointer !important;
}

/* Cursor custom stella: OFF */
.wow-cursor,
.wow-cursor-glow,
.cursor-glow {
  display: none !important;
}

/* Star trail dietro mouse: OFF */
.wow-trail,
.wow-trail-star {
  display: none !important;
}

/* Click burst esplosione: OFF */
.wow-burst { display: none !important; }

/* Pulse beams laser orizzontali: OFF */
.wow-pulse-beam { display: none !important; }

/* EQ visualizer: OFF */
.wow-eq { display: none !important; }

/* Spotlight cursor: OFF */
.wow-spotlight { display: none !important; }
body.wow-spotlight-on { /* niente effetti */ }

/* Constellation canvas: OFF (era distraente) */
.wow-constellation { display: none !important; }

/* Shockwave intro: OFF */
.wow-shockwave { display: none !important; }

/* Ambient rays: ridotti drasticamente */
.wow-rays {
  opacity: 0.08 !important;
  filter: blur(80px) !important;
  animation-duration: 80s !important;
}

/* Vignette glow: molto leggera, no animazione */
.wow-vignette {
  animation: none !important;
  box-shadow:
    inset 0 0 80px 20px rgba(255, 210, 26, 0.05),
    inset 0 0 200px 40px rgba(184, 134, 11, 0.02) !important;
}

/* Particles flottanti: solo 3 visibili, lente, basse opacity */
.wow-particles .pt:nth-child(n+4) { display: none !important; }
.wow-particles .pt {
  opacity: 0.25 !important;
  animation-duration: 28s !important;
}

/* Floating sparkles background (wow_site originale): mantieni 6, opacità ridotta */
.wow-sparkles-bg .wow-spk:nth-child(n+7) { display: none !important; }
.wow-sparkles-bg .wow-spk {
  opacity: 0.4 !important;
}

/* Headline shimmer dorato: OFF (era distrazione su titoli) */
h1, h2, .hero h1, .hero h2 {
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}
h1 em, h2 em {
  -webkit-text-fill-color: var(--accent, #B8860B) !important;
  color: var(--accent, #B8860B) !important;
}

/* Stella core breathing: ammorbidito (4% scale, glow leggero) */
.brand-star,
.empty-star,
.drop-star,
.hero-mark svg,
.hero svg {
  animation: starGentleBreathe 5s ease-in-out infinite,
             starGentleGlow 5s ease-in-out infinite !important;
}
@keyframes starGentleBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
@keyframes starGentleGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 210, 26, 0.25)); }
  50%      { filter: drop-shadow(0 0 12px rgba(255, 210, 26, 0.40))
                     drop-shadow(0 0 24px rgba(184, 134, 11, 0.18)); }
}

/* Orbital rings logo: OFF (troppo evidente) */
.wow-orbital { display: none !important; }

/* CTA pulse anelli: OFF (lampeggiavano sui bottoni, fastidioso) */
.wow-cta-pulse::before,
.wow-cta-pulse::after { display: none !important; }

/* Section ultra entry blur drama: ridotto a fade subtile */
section.wow-ultra-enter,
.wow-reveal {
  filter: none !important;
  transform: translateY(12px) !important;
}
section.wow-ultra-enter.in,
.wow-reveal.is-visible {
  transform: translateY(0) !important;
}

/* 3D card tilt: ridotto angolo (era 8°, ora gestito via JS più leggero) */
/* lasciamo a JS, qui solo smussiamo transizione */
.wow-tilt {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Magnetic buttons: ammorbidito */
.wow-magnetic { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important; }

/* Scroll progress bar top: sottile (2px) e sobria */
.wow-scroll-progress {
  height: 2px !important;
  box-shadow: 0 0 6px rgba(255, 210, 26, 0.4) !important;
}

/* Progress ring top-right: ridotto opacity */
.wow-progress-ring {
  opacity: 0.55 !important;
}


/* === LOCAL AGENT badge sidebar + status =================================== */
.local-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--sans, "Inter");
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin-bottom: 8px;
}
.local-agent-badge:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--fg);
}
.local-agent-badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
}
.local-agent-badge.online {
  border-color: rgba(46, 125, 90, 0.4);
  color: var(--success, #2E7D5A);
  background: rgba(46, 125, 90, 0.06);
}
.local-agent-badge.online .pulse {
  background: var(--success, #2E7D5A);
  box-shadow: 0 0 0 0 rgba(46, 125, 90, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
}
.local-agent-badge.unpaired {
  border-color: rgba(184, 134, 11, 0.4);
  color: var(--accent, #B8860B);
  background: rgba(184, 134, 11, 0.06);
}
.local-agent-badge.unpaired .pulse {
  background: var(--accent, #B8860B);
}
.local-agent-badge.offline {
  opacity: 0.7;
}

.la-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}
.la-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
}
.la-status-dot.ok {
  background: var(--success, #2E7D5A);
  box-shadow: 0 0 0 3px rgba(46, 125, 90, 0.15);
}
.la-status-dot.err {
  background: var(--error, #B83A3A);
  box-shadow: 0 0 0 3px rgba(184, 58, 58, 0.15);
}

.la-pair-form {
  min-width: 420px;
  max-width: 520px;
}

.la-ts-btn {
  font-size: 1.05rem !important;
  border-color: rgba(184, 134, 11, 0.35) !important;
}
.la-ts-btn:hover:not(:disabled) {
  background: rgba(255, 210, 26, 0.10) !important;
  border-color: var(--accent) !important;
}


/* === WEBAPP CHAT: dentro la chat NIENTE effetti di sfondo ============== */
body:has(.page-chat) .wow-rays,
body:has(.page-chat) .wow-vignette,
body:has(.page-chat) .wow-particles,
body:has(.page-chat) .wow-sparkles-bg,
body:has(.page-chat) .wow-progress-ring,
body:has(.page-chat) .wow-scroll-progress {
  display: none !important;
}
