/* -----------------------------------------------------
   BASE
----------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    background: #0b0c10;
    color: #f5f5f7;
    line-height: 1.5;
    overflow-x: hidden;
}


/* -----------------------------------------------------
   HERO VIDEO
----------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    height: 45vh;
    overflow: hidden;
    z-index: 1;
    margin-bottom: -40px;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icone audio/video */
.unmute-icon,
.replay-icon {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.55);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.unmute-icon { left: 20px; }
.replay-icon { right: 20px; }


/* -----------------------------------------------------
   CANVAS SFONDO
----------------------------------------------------- */

#neuralCanvas,
#neuralCanvas2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#neuralCanvas { opacity: 0.35; }
#neuralCanvas2 { opacity: 0.22; }


/* -----------------------------------------------------
   DUE COLONNE
----------------------------------------------------- */

.dual-columns {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 40px;
    padding: 0 10% 80px;
    position: relative;
    z-index: 5;
    margin-top: 40px;
}


/* -----------------------------------------------------
   COLONNE CONTENUTO
----------------------------------------------------- */

.colonna h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.colonna h3 {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 6px;
}

.colonna p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #d6d7dd;
}

.colonna a {
    font-size: 14px;
    color: #f5f5f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 245, 247, 0.4);
    padding-bottom: 2px;
}

.colonna a:hover {
    border-bottom-color: #ffffff;
}

.colonna video {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
    background: #111219;
}


/* -----------------------------------------------------
   LICENZA
----------------------------------------------------- */

.licenza-colonna {
    margin-top: 30px;
    font-size: 12px;
    color: #8f9096;
    line-height: 1.5;
    opacity: 0.75;
}

.licenza-colonna strong {
    color: #cfcfd4;
}


/* -----------------------------------------------------
   RETE NEURALE CENTRALE
----------------------------------------------------- */

.neural-column {
    position: relative;
}

.neural-column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.05)
    );
}


/* -----------------------------------------------------
   PLAYER AUDIO CUSTOM
----------------------------------------------------- */

.bb-audio {
    width: 100%;
    max-width: 400px;
    margin: 12px 0 20px;
}

.bb-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-play {
    background: #000;
    color: #0ff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.bb-timeline {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.bb-progress {
    height: 100%;
    width: 0%;
    background: #0ff;
    border-radius: 3px;
}

.bb-time {
    font-size: 14px;
    color: #0ff;
}


/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

/* MOBILE FINO A 900px */
@media (max-width: 900px) {

    .dual-columns {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 20px 6% 60px;
        margin-top: 0;
    }

    .neural-column {
        display: none;
    }

    .hero {
        height: 40vh;
        margin-bottom: -20px;
    }

    .colonna h2 {
        font-size: 20px;
    }

    .colonna h3 {
        font-size: 15px;
    }

    .colonna p,
    .colonna a {
        font-size: 14px;
    }

    .video-frame,
    .audio-frame {
        margin-bottom: 20px;
    }
}


/* -----------------------------------------------------
   OVERLAY DEMO
----------------------------------------------------- */

.bb-demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.bb-demo-overlay.visible {
  opacity: 1;
}

.bb-demo-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.bb-demo-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.8;
  transition: 0.2s ease;
}

.bb-demo-btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: 0.3s ease;
}
