/* Tema chiaro minimale */
:root{
  --bg:#ffffff;    /* sfondo bianco */
  --card:#ffffff;  /* box bianchi */
  --text:#000000;  /* testo nero */
  --muted:#444444; /* testo secondario grigio */
  --accent:#0066cc; /* blu link */
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{
  /* background:#e1e2de;   /* era var(--bg) */
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.5;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:24px;}

/* Navbar semplice */
nav{
  background:#ffffff;
}
.nav-inner{
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
}
.brand{display:flex;gap:10px;align-items:center}
.brand-logo{
  width:72px;
  height:56px;
  margin-left: 96px;
  object-fit:contain;
}

.brand-name{font-weight:700;}

.menu a {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  color: #00394A;
  padding: 8px 12px;
  text-decoration: none;
  position: relative;
}

/* Effetto hover: sottolineatura 2px #00A1E0 */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #00A1E0;
  transition: width 0.2s ease-in-out;
}

.menu a:hover::after {
  width: 100%;
}

/* Pagina attiva: sottolineatura fissa 2px #d44e93 */
.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #d44e93;
}

header.hero,
main,
footer {
  margin: 0;
  padding: 0;
}

/* Boxed: sezioni bianche su sfondo pagina grigio */
nav,
header.hero,
main,
footer {
  background:#ffffff;
}

.container {
  max-width: 1111px;
  margin: 0 auto;
  padding: 0; /* <-- togli padding, così non crea gap */
}

/* Header senza effetti */
header.hero{

  background:#ffffff;
}

.hero {
  padding: 0;
  margin: 0;
  background: #ffffff;
}

.headerText {
    position: absolute;
    left: 8.5vw;
    bottom: 7.5vw;
    color: #ffffff !important;
}

h1 {
    font-family: 'Arial Black', 'Arial-BoldMT', 'Arial Bold', 'Arial', Gadget, sans-serif;
    font-weight: 900;
    font-size: 36px;
}    

h2 {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1{font-size:28px;margin-bottom:10px;}
.hero p{margin:6px 0;color:var(--muted);max-width:800px}

/* Card semplici */
.card{
  background:#ffffff;
  padding:18px;
  margin:12px 0;
}
.card h3{margin-bottom:8px;}
.card p{margin:0;color:var(--muted);}

/* Footer bianco senza bordo */
footer {
  background: #00394A;
  height: 100px;
  display: flex;
  align-items: center;   /* centra verticalmente i contenuti */
  color: #00A1E0;        /* colore testo */
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 24px;
  font-size: .9rem;
  color: #00A1E0;        /* forza colore sui testi dentro */
}

footer a {
  color: #00A1E0;
  text-decoration: underline;
}


/* Bottoni base */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:4px;
  padding:8px 12px;
  cursor:pointer;
}
.btn.secondary{
  background:#cccccc;
  color:#000;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* Input */
.input, .select, textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #ccc;
  border-radius:4px;
  background:#ffffff;
  color:var(--text);
  font:inherit;
}
.label{display:block;margin:8px 0 4px 0;color:var(--muted);}

.linea {
    width: 80px;
    height: 2px;
    margin-left: 96px;
    margin-bottom: 10px;
    display: inline-block;
    background-color: #00A1E0;
    }

.breadcrumb {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    margin-left: 96px;
    margin-top: 20px;
    
}

.titolo {
    font-family: 'Arial Black', 'Arial-BoldMT', 'Arial Bold', 'Arial', Gadget, sans-serif;
    font-weight: 900;
    font-size: 36px;
    margin-left: 96px !important;
    margin-top: 20px;
    color: #000 !important;
}    

.paragrafo {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: normal;
    margin-left: 96px !important;
    margin-top: 10px;
    margin-bottom: 10px !important;
    padding-bottom: 10px;
    color: #000 !important;
}

.ptitle {
    font-family: 'Arial', sans-serif;;
    font-weight: bold;
    font-size: 23px;
    margin-top: 20px;
    text-align: center;
    color: #000 !important;
    
}   
.ppar {
    font-family: 'Arial', Gadget, sans-serif;
    font-weight: 500;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    color: #000 !important;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    max-width: 930px;
}   

.bluebox {
    width: 330px;
    height: 270px;
    background-color: rgb(0, 161, 224);
    font-weight: bold;
    font-size: 26px;
    color: white;
    border-radius: 10px;
    display: inline-block;
    align-content: center !important;
    text-align: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    margin-right: 7px;
    margin-left: 7px;
  } 
  
.blueicon {
    width: 94px;
    height: 94px;
    margin-bottom: 16px;
}

.blueboxes {
    margin-top: 30px;
    margin-bottom: 20px;
    margin-right: 13px;
    margin-left: 13px;
}

.pbiblio {
    font-family: 'Arial', Gadget, sans-serif;
    font-weight: 500;
    font-size: 12px;
    margin-top: 20px;
    text-align: center;
    color: #000 !important;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    max-width: 930px;
}  

.videobox {
    width: 360px;
    height: 260px;
    font-size: 16px;
    color: white;
    display: inline-block;
    position: relative;
    margin-top: 10px;
    margin-right: 3px;
    margin-left: 3px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    user-select: none;
}

.vboxHeader {
    font-size: 23px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    margin-right: 7px;
    margin-left: 7px;
}

.vidsub {
    line-height: 1.5;
}
.vboxArrow {
    bottom: 20px;
    left: calc(50% - 22px);
    position: absolute;
    width: 45px;
}


.video-player-wrap {
  margin: 24px auto 48px;
  max-width: 1100px;
  padding: 20px;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}

.video-player-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.video-player-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.video-player-sub {
  font-size: .95rem;
  color: #5b6675;
  margin-top: 4px;
}

.video-player-meta {
  font-size: .9rem;
  color: #7a8696;
  margin-top: 2px;
}

.video-player-close {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  line-height: 1;
}
.video-player-close:hover,
.video-player-close:focus {
  outline: none;
  background: #f2f4f7;
}

.video-player {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: #000;
}

@media (max-width: 768px) {
  .video-player-wrap { padding: 14px; }
  .video-player-title { font-size: 1.05rem; }
}

/* Card attiva */
.videobox.active {
  background-color: #0055a8 !important; /* override immagine di sfondo */
  background-image: none !important;
  outline: none;
  transform: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: background-color .3s ease, color .3s ease, box-shadow .25s ease;
  color: #fff;
}

/* Animazioni apertura/chiusura player */
.video-player-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
  will-change: opacity, transform;
}

.video-player-wrap.is-open {
  opacity: 1;
  transform: none;
}

.video-player-wrap.is-closing {
  opacity: 0;
  transform: translateY(10px);
}

/* Card base */
.videobox {
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover animazione */
.videobox:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}



/* Forzo testi bianchi dentro la card attiva */
.videobox.active .vboxHeader,
.videobox.active .vidsub,
.videobox.active span,
.videobox.active .vboxArrow {
  color: #fff !important;
  filter: brightness(0) invert(1); /* rende bianca anche la freccia PNG */
}


/* ========== STEP CARD ========== */
.step {
  background: #ffffff;
  padding: 16px 24px;
}

.step + .step {            /* separatore tra step adiacenti */
  border-top: 1px solid #e5e7eb;
}

.step__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.step__num {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 18px;
  color: #00394A;
  line-height: 1;
}

.step__title {
  font-weight: 700;
  font-size: 23px;
  color: #000;
}

.step__body {
  margin: 8px 0 12px 0;
  color: #444444;
}

.step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* testo piccolo già coerente con il tuo stile */
.step .small { font-size: 16px; color: #000000; font-family: Arial, Helvetica, sans-serif; }

/* (opzionale) stato attivo o completato */
.step--active .step__num { color: #d44e93; }       /* rosa attivo */
.step--done .step__num { color: #00A1E0; }         /* azzurro completato */

/* Pulsanti speciali rosa per il simulatore */
.btn-sim {
  background: #d44e93;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.btn-sim:hover {
  background: #b93f7c; /* più scuro all'hover */
}

.btn-sim:disabled {
  background: #f0bcd6; /* rosa chiaro quando disabilitato */
  cursor: not-allowed;
}

/* CARD rosa per selezione grado perdita */
.grade-card {
  background: #d44e93;
  color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
  font-weight: bold;
}

.grade-card:hover {
  background: #b93f7c; /* più scuro on hover */
}

.grade-card.active {
  border: 3px solid #00394A; /* blu scuro per evidenziare selezione */
}

/* Griglia per i 4 bottoni quadrati */
.grade-grid {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Bottone quadrato rosa */
.grade-btn {
  flex: 1 1 calc(25% - 16px); /* 4 per riga */
  aspect-ratio: 1 / 1;        /* quadrato perfetto */
  background: #d44e93;
  color: #fff;
  border-radius: 8px;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 23px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 12px;
}

.grade-btn:hover {
  background: #b93f7c;
  transform: scale(1.05);
}

.grade-btn.active {
  background: #00394A;
  border: 0px solid #00394A; /* bordo blu per selezione */
}

.grade-title {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 6px;
}

.grade-sub {
  font-size: 16px;
  font-weight: normal;
  opacity: 0.9;
  line-height: 1.3;
}

