/*
 * vw_how-it-works.css
 * Stili specifici della pagina "Come Funziona".
 * Richiede: ../vw_welcome_shared.css
 */

#model {
  background-image: url("/image/bg_section_dark.png");
  background-size: cover;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  padding-top: 100px;
}

#evidence {
  background-image: url("/image/bg_section_dark_2.png");
  background-size: cover;
  background-position: 70% 90%;
  background-repeat: no-repeat;
}


#visualization {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

}

#visualization video {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  
}

/* ===== Sovrascritture locali hero ===== */
.hero .sub {
  margin-bottom: 22px;
}
.kicker {
  max-width: 920px;
  margin: 0 auto 10px;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.88);
  font-size: 15px;
}

/* ===== Override cap-desc (peso font specifico) ===== */
.cap-desc {
  font-weight: 650;
}

/* ===== Box generico card-like ===== */
.cardlike {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ======================================================
   Stepper desktop
   ====================================================== */
.hstepper-wrap {
  margin-top: 28px;
}
.hstepper-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 22px 22px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.phases {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 184, 204, 0.18);
  background: rgba(0, 184, 204, 0.08);
  color: #0b2b33;
}
.phase-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 184, 204, 0.95);
}
.phase-note {
  font-weight: 800;
  font-size: 12px;
  color: rgba(31, 41, 55, 0.7);
}

.hstepper {
  position: relative;
  padding: 18px 10px 6px;
}
.hstepper::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 184, 204, 0.22),
    rgba(0, 184, 204, 0.12)
  );
  border: 1px solid rgba(0, 184, 204, 0.18);
  z-index: 0;
}
.hstepper .arrows {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 8px;
  height: 88px;
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
}
.hstepper .arrows svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hsteps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}
.hstep {
  text-align: center;
  padding-top: 6px;
}
.hnode {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: rgba(0, 184, 204, 0.12);
  border: 1px solid rgba(0, 184, 204, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: #0b2b33;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.hlabel {
  font-size: 13px;
  font-weight: 900;
  color: rgba(31, 41, 55, 0.86);
  line-height: 1.25;
}
.hhint {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(31, 41, 55, 0.68);
}

.hdetails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.dcard {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
}
.dcard h3 {
  margin: 0 0 8px;
  color: var(--ccy-title);
  font-size: 14px;
  font-weight: 950;
}
.dcard p {
  margin: 0;
  color: #4b5563;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.55;
}
.loop-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  color: #0b2b33;
  background: rgba(0, 184, 204, 0.1);
  border: 1px solid rgba(0, 184, 204, 0.18);
  margin-top: 12px;
}

/* ======================================================
   Timeline mobile (nascosta su desktop)
   ====================================================== */
.vtimeline-wrap {
  margin-top: 26px;
  display: none;
}
.vtimeline {
  position: relative;
  margin-top: 22px;
  padding-left: 86px;
}
.vtimeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0, 184, 204, 0.2);
  border-radius: 4px;
}
.vstep {
  position: relative;
  margin-bottom: 26px;
}
.vdot {
  position: absolute;
  left: -68px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 184, 204, 0.12);
  border: 1px solid rgba(0, 184, 204, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: #0b2b33;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.vcard {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.vcard h3 {
  margin: 0 0 8px;
  color: var(--ccy-title);
  font-size: 16px;
  font-weight: 950;
}
.vcard p {
  margin: 0;
  color: #4b5563;
  font-weight: 650;
  line-height: 1.55;
}
.vphase {
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vphase .badge {
  background: rgba(0, 184, 204, 0.08);
  border: 1px solid rgba(0, 184, 204, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 950;
  font-size: 12px;
  color: #0b2b33;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}
.vphase i {
  color: rgba(0, 184, 204, 0.95);
}

/* ======================================================
   Responsive: Show/Hide Desktop/Mobile Elements
   ====================================================== */
.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .hstepper-wrap {
    display: none;
  }
  .vtimeline-wrap {
    display: block;
  }
}

/* ======================================================
   Sezione Rischio + Compliance
   ====================================================== */
/* viz2-grid is kept for layout */

@media (max-width: 900px) {
  .viz2-grid {
    grid-template-columns: 1fr;
  }
}
.two-lines {
  margin-top: 18px;
  background: rgba(0, 184, 204, 0.08);
  border: 1px solid rgba(0, 184, 204, 0.18);
  border-radius: 14px;
  padding: 16px;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.88);
}

/* ======================================================
   Sezione Misurazioni
   ====================================================== */
.measure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.mbox {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mbox i {
  color: var(--ccy-primary);
  margin-top: 2px;
  font-size: 18px;
}
.mbox .tt {
  font-weight: 950;
  color: var(--ink);
  margin-bottom: 4px;
}
.mbox .dd {
  color: #4b5563;
  font-weight: 650;
  line-height: 1.55;
}

/* ======================================================
   Evidence Grid - Connettori & Evidenze Section
   ====================================================== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Responsive breakpoints per evidence-grid */
@media (min-width: 1400px) {
  .evidence-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1399px) {
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .evidence-grid {
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
}
