:root {
      --primary: #0b3a7a;      /* Blu Radio Blu */
      --secondary: #1d9bf0;    /* Azzurro accenti */
      --accent: #2dd4bf;       /* Teal leggero */
      --bg-gradient: linear-gradient(135deg, #071225 0%, #0b3a7a 55%, #020617 100%);
      --glass: rgba(255,255,255,0.10);
      --glow: 0 0 20px rgba(29,155,240,0.45);
    }

    * { box-sizing: border-box; }

    body{
      font-family: 'Segoe UI', system-ui, sans-serif;
      background: var(--bg-gradient);
      background-attachment: fixed;
      color: #fff;
      overflow-x: hidden;
      position: relative;
      min-height: 100vh;
    }

    /* Onde radio */
    .radio-waves{
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      background:
        radial-gradient(circle at 20% 80%, transparent 30%, var(--secondary) 40%, transparent 50%),
        radial-gradient(circle at 80% 20%, transparent 30%, var(--accent) 40%, transparent 50%);
      animation: waves 8s ease-in-out infinite;
    }
    @keyframes waves{
      0%,100%{ opacity:.25; transform:scale(1); }
      50%{ opacity:.55; transform:scale(1.08); }
    }

    /* Equalizzatore animato */
    .eq-container{
      position: fixed;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 4px;
      z-index: 2;
    }
    .eq-bar{
      width: 4px;
      height: 20px;
      background: var(--secondary);
      border-radius: 2px;
      animation: eq 1.5s ease-in-out infinite;
    }
    .eq-bar:nth-child(2){ animation-delay:-.1s; height:35px; }
    .eq-bar:nth-child(3){ animation-delay:-.2s; height:28px; }
    .eq-bar:nth-child(4){ animation-delay:-.3s; height:42px; }
    .eq-bar:nth-child(5){ animation-delay:-.4s; height:25px; }
    @keyframes eq{
      0%,100%{ transform:scaleY(1); opacity:.6; }
      50%{ transform:scaleY(2); opacity:1; }
    }

    .home-container{
      max-width: 800px;
      margin: 0 auto;
      padding: 2rem 1rem;
      position: relative;
      z-index: 10;
      text-align: center;
    }

    /* Logo con bagliore */
    .logo{
      width: 180px;
      height: auto;
      margin: 0 auto 2rem;
      filter: drop-shadow(0 0 28px var(--secondary));
      animation: logoGlow 3s ease-in-out infinite alternate;
    }
    @keyframes logoGlow{
      from{ filter: drop-shadow(0 0 18px var(--secondary)); }
      to{ filter: drop-shadow(0 0 38px var(--secondary)); }
    }

    .home-title{
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 700;
      background: linear-gradient(45deg, #ffffff, var(--secondary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 1rem;
      text-shadow: 0 0 30px rgba(255,255,255,0.25);
    }

    .home-subtitle{
      font-size: 1.2rem;
      opacity: .9;
      margin-bottom: 3rem;
      font-weight: 300;
    }

    /* Pulsanti */
    .radio-btn{
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(20px);
      border: 2px solid rgba(255,255,255,0.2);
      color: #fff;
      font-weight: 600;
      padding: 1.2rem 2.5rem;
      margin: 1rem;
      border-radius: 50px;
      text-decoration: none;
      font-size: 1.05rem;
      transition: all .4s cubic-bezier(0.4,0,0.2,1);
      position: relative;
      overflow: hidden;
      min-height: 70px;
    }
    .radio-btn::before{
      content:'';
      position:absolute;
      top:0;
      left:-100%;
      width:100%;
      height:100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
      transition:left .6s;
    }
    .radio-btn:hover::before{ left:100%; }
    .radio-btn:hover{
      transform: translateY(-8px) scale(1.04);
      box-shadow: var(--glow), 0 25px 50px rgba(0,0,0,0.30);
      border-color: var(--secondary);
    }
    .radio-btn i{ font-size: 1.35rem; width: 28px; }

    .btn-video{ --glow: 0 0 25px rgba(239,68,68,.55); }
    .btn-ai{ --glow: 0 0 25px rgba(45,212,191,.45); }
    .btn-music{ --glow: 0 0 25px rgba(29,155,240,.45); }

    /* Footer */
    .footer-container{
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(20px);
      padding: 2rem 1rem;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.1);
      margin-top: 4rem;
    }
    .footer-logo{
      width: 120px;
      height: auto;
      opacity: .9;
      margin-bottom: 1rem;
    }
    .link-glow{
      color: var(--secondary);
      text-decoration: none;
      transition: all .3s ease;
    }
    .link-glow:hover{
      color:#fff;
      text-shadow: 0 0 15px var(--secondary);
    }
    .radio-disclaimer{
      font-size: 12px;
      line-height: 1.35;
      opacity: .9;
      margin-top: 10px;
    }

    /* Chat */
    #chatbot-container{
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 380px;
      max-height: 500px;
      background: var(--glass);
      backdrop-filter: blur(25px);
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.2);
      box-shadow: var(--glow);
      transform: scale(0);
      transform-origin: bottom right;
      transition: all .4s cubic-bezier(0.4,0,0.2,1);
      z-index: 1000;
    }
    #chatbot-container.active{ transform: scale(1); }
    .chat-header{
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      padding: 1rem 1.5rem;
      border-radius: 20px 20px 0 0;
      display:flex;
      justify-content: space-between;
      align-items:center;
    }
    .chat-close{
      background:none;
      border:none;
      color:#fff;
      font-size: 1.5rem;
      cursor: pointer;
    }
    .chat-messages{
      height: 300px;
      overflow-y: auto;
      padding: 1rem;
      background: rgba(0,0,0,0.2);
    }
    .chat-input-wrap{
      padding: 1rem;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    #chat-input{
      width:100%;
      padding: .8rem 1rem;
      border-radius: 25px;
      border: 1px solid rgba(255,255,255,0.3);
      background: rgba(255,255,255,0.1);
      color:#fff;
      outline:none;
    }
    #chat-input::placeholder{ color: rgba(255,255,255,0.6); }

    #chat-btn{
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border: none;
      color: #fff;
      font-size: 1.5rem;
      box-shadow: var(--glow), 0 10px 30px rgba(0,0,0,0.4);
      cursor: pointer;
      z-index: 999;
      transition: all .3s ease;
      animation: pulse 2s infinite;
    }
    @keyframes pulse{
      0%{ box-shadow: var(--glow), 0 10px 30px rgba(0,0,0,0.4); }
      50%{ box-shadow: 0 0 40px var(--secondary), 0 20px 50px rgba(0,0,0,0.5); }
    }

    @media (max-width: 768px){
      .radio-btn{ display:block; margin:.8rem auto; max-width:320px; }
      #chatbot-container{ width:95vw; right:2.5vw; left:2.5vw; }
      .eq-container{ display:none; }
    }
  
    /* Social Icons Footer */
.social-icons {
  margin: 1.2rem 0 1.8rem;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.social-icons a {
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: all .35s ease;
  box-shadow: 0 0 12px rgba(29,155,240,0.25);
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 18px var(--secondary), 0 0 35px rgba(0,0,0,0.35);
  border-color: var(--secondary);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}






.onair-led{
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:10px;
  border-radius:50%;
  background:#ff2b2b;
  box-shadow: 0 0 10px rgba(255,43,43,.85);
  animation: onairBlink 1s infinite;
  vertical-align: middle;
}

@keyframes onairBlink{
  0%, 100% { opacity: .25; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1); }
}




.onair-led{
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:10px;
  border-radius:50%;
  background:#ff0000;
  box-shadow: 0 0 12px rgba(255,0,0,.9), 0 0 22px rgba(255,0,0,.75);
  animation: livePulse 1.2s infinite ease-out;
  vertical-align: middle;
}

/* Doppio impulso: lampo + lampo + pausa breve */
@keyframes livePulse {
  0%   { opacity: 1;   transform: scale(1); }
  10%  { opacity: .3;  transform: scale(.75); }
  20%  { opacity: 1;   transform: scale(1.25); }

  35%  { opacity: .25; transform: scale(.85); }
  45%  { opacity: 1;   transform: scale(1.2); }

  60%  { opacity: .4;  transform: scale(.9); }
  100% { opacity: .4;  transform: scale(.9); }
}






/* Badge LIVE */
.onair-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  margin-right:10px;

  background:rgba(255,0,0,0.15);
  border:1px solid rgba(255,0,0,0.35);
  border-radius:6px;

  color:#ff4a4a;
  font-size:.85rem;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;

  backdrop-filter:blur(6px);
  box-shadow:0 0 12px rgba(255,0,0,0.5);
}

/* LED aggressivo */
.onair-led{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff0000;
  box-shadow:
    0 0 10px rgba(255,0,0,1),
    0 0 18px rgba(255,0,0,.9),
    0 0 25px rgba(255,0,0,.7);
  animation: livePulse 1.15s infinite ease-out;
}

/* Doppio flash + pausa */
@keyframes livePulse {
  0%   { opacity:1;   transform:scale(1); }
  10%  { opacity:.3;  transform:scale(.75); }
  20%  { opacity:1;   transform:scale(1.35); }

  35%  { opacity:.35; transform:scale(.85); }
  45%  { opacity:1;   transform:scale(1.25); }

  60%  { opacity:.4;  transform:scale(.9); }
  100% { opacity:.4;  transform:scale(.9); }
}



.live-dot {
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;

  /* iPhone fix */
  will-change: opacity, transform;
  transform: translateZ(0);

  animation: liveBlink 1.1s ease-in-out infinite;
}

@keyframes liveBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0.15; }
  100% { opacity: 1; }
}
