/* Stili per la pagina FAQ */
.faq-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-container h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.faq-container .intro-text {
    text-align: center;
    color: var(--light-text-color, #666);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-section-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color, #007bff);
    padding-bottom: 0.5rem;
    color: var(--primary-color, #007bff);
}

.faq-accordion .faq-item {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color, #333);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    color: var(--light-text-color, #555);
    line-height: 1.7;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

/* Stili per lo stato "aperto" dell'accordion */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Un valore abbastanza grande da contenere la risposta */
}