/* BWC HERO CSS v1.0 — palette: #e94e24 | #0069b4 | #F6F6F6 | #080808 */

:root {
  --bwc-orange: #e94e24;
  --bwc-blue:   #0069b4;
  --bwc-white:  #F6F6F6;
  --bwc-black:  #080808;
  --bwc-accent: #e94e24;
}

/* Hero wrapper — aggancia sulla sezione Elementor data-id="413590e" */
.elementor-element-413590e {
  position: relative !important;
  overflow: hidden !important;
  background: #080808 !important;
  min-height: 100vh;
}

/* Nascondi immagine sfondo Elementor */
.elementor-element-413590e > .elementor-background-overlay {
  display: none !important;
}

/* Canvas desktop */
#bwc-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 767px) {
  #bwc-canvas { display: none !important; }
}

/* Custom cursor — solo desktop */
@media (min-width: 768px) {
  .elementor-element-413590e,
  .elementor-element-413590e * { cursor: none !important; }
}
#bwc-cursor {
  position: fixed; width: 8px; height: 8px;
  background: #e94e24; border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: background 0.4s ease;
}
#bwc-cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(233,78,36,0.4); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, border-color .4s;
}

/* Mobile: glow pulsante via pseudo-elemento (sostituisce canvas) */
@media (max-width: 767px) {
  .elementor-element-413590e::before {
    content: '';
    position: absolute; top: 25%; right: -10%;
    width: 80vw; height: 80vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(233,78,36,0.08) 0%, transparent 70%);
    animation: bwcGlowPulse 4s ease-in-out infinite;
    pointer-events: none; z-index: 0;
  }
  .elementor-element-413590e::after {
    content: '';
    position: absolute; top: 30%; right: 8%;
    width: 3px; height: 3px; border-radius: 50%;
    background: #e94e24;
    box-shadow:
      0 0 0 25px rgba(233,78,36,0.06),
      0 0 0 55px rgba(233,78,36,0.04),
      0 0 0 90px rgba(233,78,36,0.02);
    animation: bwcRingPulse 3s ease-in-out infinite;
    pointer-events: none; z-index: 0;
  }
}

/* Evoluzione colori mobile per fase — classe aggiunta via JS */
.bwc-phase-white .elementor-element-413590e::before {
  background: radial-gradient(circle, rgba(246,246,246,0.06) 0%, transparent 70%) !important;
}
.bwc-phase-blue .elementor-element-413590e::before {
  background: radial-gradient(circle, rgba(0,105,180,0.1) 0%, transparent 70%) !important;
}

/* Caratteri headline con transizione colore individuale */
.bwc-char {
  display: inline-block;
  transition: color 1.0s ease, text-shadow 1.0s ease;
  will-change: color;
}

/* Ticker bar */
#bwc-ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 36px; overflow: hidden; z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.5s ease;
}
#bwc-ticker.bwc-in { opacity: 1; }
#bwc-ticker-track {
  display: flex; gap: 60px; align-items: center;
  animation: bwcTicker 24s linear infinite;
  white-space: nowrap; width: max-content;
}
.bwc-ticker-item {
  display: flex; align-items: center; gap: 10px;
  font-family: neue-haas-unica, sans-serif;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246,246,246,0.2); white-space: nowrap;
  transition: color 0.8s ease;
}
.bwc-ticker-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #e94e24; flex-shrink: 0;
  transition: background 0.8s ease;
}

/* Hint click */
#bwc-hint {
  position: absolute; bottom: 44px;
  left: 50%; transform: translateX(-50%);
  font-family: neue-haas-unica, sans-serif;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(246,246,246,0.18);
  pointer-events: none; z-index: 10;
  opacity: 0; animation: bwcFadeIn 0.4s ease forwards 3.5s;
}

/* Scroll indicator */
#bwc-scroll {
  position: absolute; right: 60px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 10; opacity: 0;
  animation: bwcFadeUp 0.5s ease forwards 3s;
}
@media (max-width: 767px) { #bwc-scroll { display: none !important; } }
.bwc-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, #e94e24, transparent);
  animation: bwcScrollPulse 2s ease-in-out infinite;
}
.bwc-scroll-text {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(246,246,246,0.2); writing-mode: vertical-rl;
}

/* Keyframes */
@keyframes bwcGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.06); }
}
@keyframes bwcRingPulse {
  0%,100% { box-shadow: 0 0 0 25px rgba(233,78,36,.06), 0 0 0 55px rgba(233,78,36,.03); }
  50%     { box-shadow: 0 0 0 32px rgba(233,78,36,.09), 0 0 0 68px rgba(233,78,36,.05); }
}
@keyframes bwcTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes bwcFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bwcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bwcScrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50%     { opacity: 0.3; transform: scaleY(0.5); }
}
