/* CSS per pagine percorsi e quiz */

.percorso-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.percorso-header h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Domande */
#question-container h3 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Container opzioni - per quiz 730 */
.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* PULSANTI OPZIONI - MIGLIORATI */
.option-button, .option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
}

.option-button:hover, .option-btn:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.option-button.selected, .option-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 500;
}

.option-button.selected:hover, .option-btn.selected:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Bottone Avanti */
#next-button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#next-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Risultati */
.result-box {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.result-box.urgente {
    background: #fef2f2;
    border-color: #dc2626;
}

.result-box.attenzione {
    background: #fff7ed;
    border-color: #f59e0b;
}

.result-box.tranquillo {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-box h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.result-box p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.result-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.result-box li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Action Sections */
.action-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.action-section h4 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.action-section ul {
    margin-left: 1.5rem;
}

.action-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Input ricerca */
.action-section input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.action-section input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.action-section button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-section button:hover {
    background: #2563eb;
}

/* Card Patronati */
.patronato-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.patronato-card h5 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.patronato-card p {
    margin: 0.3rem 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Note */
.note {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Restart Button */
.restart-button {
    background: #64748b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.restart-button:hover {
    background: #475569;
}

/* Disclaimer Box */
.disclaimer-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.disclaimer-box p {
    margin: 0;
    line-height: 1.6;
    color: #78350f;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1.5rem;
    }
    
    #question-container h3 {
        font-size: 1.2rem;
    }
    
    .option-button {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 50px;
    }
    
    .result-icon {
        font-size: 2.5rem;
    }
    
    .action-section {
        padding: 1rem;
    }
}
