/* Style per la pagina FAQ */

.faq-section {
    padding: 8rem 0 4rem;
    background-color: var(--light-gray);
    min-height: calc(100vh - 7rem);
}

.faq-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin: 0 auto;
}

.faq-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    line-height: 1.8;
    color: #555;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--text-color);
}

.faq-answer-content ul {
    margin: 0.5rem 0 0.75rem 1.5rem;
    list-style-type: disc;
}

.faq-answer-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.faq-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.faq-cta p {
    color: #666;
    margin-bottom: 0.5rem;
}

.faq-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-cta a:hover {
    text-decoration: underline;
}
