/* =========================
   Van4Opportunity (v4o) - QUIZ
   ========================= */

/* Test section */
.v4o-test-section{
  padding:85px 16px;
  background:#000;
  color:#fff;
}

.v4o-test-inner{
  max-width:1100px;
  margin:0 auto;
  text-align:center;
  position:relative;
}

.v4o-test-title{
  font-size:clamp(28px,2.7vw,44px);
  margin:0 0 10px;
}

.v4o-test-sub{
  margin:0 auto 28px;
  max-width:850px;
  opacity:.88;
  font-size:17px;
  line-height:1.35;
}

/* =========================
   Track / Teatro
   ========================= */

.v4o-track-container{
  position:relative;
  height:660px;
  background:rgba(255,255,255,0.03);
  border-radius:60px;
  margin:40px auto 0;
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}

/* sfondo teatro */
#v4o-meeting-bg{
  position:absolute;
  inset:0;
  border-radius:60px;
  z-index:0;
  opacity:0.66;
  transform:scale(1.02);
  transition:opacity .6s ease, transform .8s ease;
  pointer-events:none;
  background-image:url('/assets/meeting-teatro.png');
  background-size:cover;
  background-position:center 25%;
  background-repeat:no-repeat;
  filter:saturate(1.10) contrast(1.10) brightness(1.18);
}

/* overlay più leggero */
.v4o-track-container::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:60px;
  z-index:1;
  pointer-events:none;
  background: linear-gradient(to right,
    rgba(0,0,0,0.22),
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.18)
  );
}

/* =========================
   Scala step / righello
   ========================= */

.v4o-step-ruler{
  position:absolute;
  left:8%;
  right:10%;
  bottom:10px;
  height:42px;
  z-index:2;
  pointer-events:none;
}

.v4o-step-ruler::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:14px;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,0.62);
  box-shadow:0 0 0 1px rgba(255,255,255,0.08);
}

.v4o-step-ruler .tick{
  position:absolute;
  top:10px;
  width:2px;
  height:18px;
  background:rgba(255,255,255,0.72);
  transform:translateX(-50%);
}

.v4o-step-ruler .tick::after{
  content:attr(data-step);
  position:absolute;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  line-height:1;
  font-weight:700;
  color:rgba(255,255,255,0.92);
  text-shadow:0 1px 3px rgba(0,0,0,0.45);
}

.v4o-step-ruler .tick.s1{ left:12%; }
.v4o-step-ruler .tick.s2{ left:30%; }
.v4o-step-ruler .tick.s3{ left:48%; }
.v4o-step-ruler .tick.s4{ left:66%; }
.v4o-step-ruler .tick.s5{ left:84%; }

.v4o-step-ruler .tick::before{
  content:"";
  position:absolute;
  left:50%;
  top:5px;
  transform:translateX(-50%);
  width:1px;
  height:8px;
  background:rgba(255,255,255,0.32);
  box-shadow:
    -16px 0 0 rgba(255,255,255,0.24),
    16px 0 0 rgba(255,255,255,0.24);
}

/* =========================
   Van
   ========================= */

.v4o-van-display{
  position:absolute;
  width:150px;
  height:75px;
  left:4%;
  bottom:30px;
  z-index:3;
  background-image:url('/assets/id-buzz_1024x546_dx_bg-transparent.png') !important;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  transition:left 0.6s cubic-bezier(0.25,1,0.5,1);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45));
}

/* bandierina arrivo */
.v4o-finish-flag{
  position:absolute;
  right:34px;
  bottom:18px;
  z-index:3;
  width:34px;
  height:54px;
  padding:0;
  border-radius:0;
  background:transparent;
  color:transparent;
  font-size:0;
  overflow:hidden;
}

.v4o-finish-flag::before{
  content:"";
  position:absolute;
  left:6px;
  bottom:0;
  width:3px;
  height:54px;
  border-radius:2px;
  background:rgba(255,255,255,0.88);
  box-shadow:0 0 6px rgba(0,0,0,0.35);
}

.v4o-finish-flag::after{
  content:"";
  position:absolute;
  left:9px;
  top:4px;
  width:22px;
  height:16px;
  border-radius:2px;
  box-shadow:0 2px 6px rgba(0,0,0,0.28);
  background:
    linear-gradient(45deg,#ffffff 25%,#111111 25%,#111111 50%,#ffffff 50%,#ffffff 75%,#111111 75%,#111111);
  background-size:10px 10px;
}

/* =========================
   START button
   ========================= */

#v4o-start-btn-track{
  position:absolute;
  left:50%;
  bottom:58px;
  transform:translateX(-50%);
  z-index:4;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(0,0,0,0.24);
  color:#fff;
  font-weight:800;
  font-size:13px;
  letter-spacing:.02em;
  cursor:pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================
   Box WhatsApp principale
   ========================= */

#v4o-quiz-box{
  position:absolute;
  left:50%;
  top:18px;
  transform:translateX(-50%);
  z-index:4;
  width:min(760px, calc(100% - 32px));
  margin:0;
  border-radius:18px;
  padding:0;
  background:rgba(17,27,33,0.08);
  border:1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing:border-box;
}

/* =========================
   Responsive
   ========================= */

@media (max-width:768px) and (orientation:portrait){

  .v4o-track-container{
    height:500px;
    border-radius:42px;
    margin:28px auto 0;
  }

  #v4o-meeting-bg,
  .v4o-track-container::after{
    border-radius:42px;
  }

  #v4o-quiz-box{
    top:6px;
    width:calc(100% - 18px);
  }

  #v4o-start-btn-track{
    bottom:36px;
    padding:10px 14px;
    font-size:10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border:1px solid rgba(255,255,255,0.16);
  }

  .v4o-step-ruler{
    left:10%;
    right:10%;
    bottom:6px;
    height:34px;
  }

  .v4o-step-ruler::before{
    top:6px;
  }

  .v4o-step-ruler .tick{
    height:14px;
  }

  .v4o-step-ruler .tick::after{
    top:17px;
    font-size:11px;
  }

  .v4o-van-display{
    width:118px;
    height:59px;
    bottom:22px;
  }

  .v4o-finish-flag{
    right:18px;
    bottom:12px;
    width:28px;
    height:44px;
  }

  .v4o-finish-flag::before{
    height:44px;
  }

  .v4o-finish-flag::after{
    width:18px;
    height:13px;
  }
}

@media (max-width:900px) and (orientation:landscape){

  .v4o-track-container{
    height:340px;
    border-radius:42px;
    margin:22px auto 0;
  }

  #v4o-meeting-bg,
  .v4o-track-container::after{
    border-radius:42px;
  }

  #v4o-quiz-box{
    top:10px;
    width:calc(100% - 22px);
  }

  #v4o-start-btn-track{
    bottom:28px;
    padding:9px 13px;
    font-size:12px;
  }

  .v4o-step-ruler{
    left:10%;
    right:11%;
    bottom:-8px;
    height:30px;
  }

  .v4o-step-ruler::before{
    top:5px;
  }

  .v4o-step-ruler .tick{
    height:13px;
  }

  .v4o-step-ruler .tick::after{
    top:16px;
    font-size:10px;
  }

  .v4o-van-display{
    width:108px;
    height:54px;
    bottom:18px;
  }

  .v4o-finish-flag{
    right:18px;
    bottom:10px;
    width:26px;
    height:40px;
  }

  .v4o-finish-flag::before{
    height:40px;
  }

  .v4o-finish-flag::after{
    width:17px;
    height:12px;
  }
}

/* Smartphone verticale (titolo) */
@media (max-width:768px) and (orientation:portrait){
  .v4o-test-title{
    font-size:26px;
    line-height:1.15;
  }
}
