/* --- BARRA DI PROGRESSO A STEP (WIZARD) --- */
.wizard-progress-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto; /* Centra perfettamente la barra nella fascia grigia */
}

.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-progress-bar .step {
    flex: 1;
    text-align: center;
    color: #a0a0a0; 
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Il cerchio con il numero perfettamente centrato */
.wizard-progress-bar .step span {
    display: inline-flex; /* inline-flex è più stabile su elementi inline come gli span */
    justify-content: center;
    align-items: center;
    
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    font-size: 15px;
    color: #a0a0a0;
    transition: all 0.3s ease;
    
    /* --- IL TRUCCO OTTICO --- */
    line-height: 0; /* Annulla completamente lo spazio verticale generato dal testo */
    padding-bottom: 5px; /* Spinge fisicamente il numero verso l'alto. Aumenta a 4px o 5px se serve! */
}

/* Stato attivo (Fase corrente in arancione) */
.wizard-progress-bar .step.active {
    color: #C85A28; /* Darkorange */
}

.wizard-progress-bar .step.active span {
    background-color: #C85A28;
    border-color: #C85A28;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.25);
}

/* --- LOGICA DI VISUALIZZAZIONE STEP --- */
.test-section {
    display: none; 
}

.test-section.active {
    display: block; 
    animation: fadeInStep 0.5s ease forwards;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.domanda-box {
    margin-bottom: 40px;
}