/* faq.css - Componente condiviso: sezione FAQ */

.faq-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.15s;
}

.faq-question:hover {
    color: var(--page-accent);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-50);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background-color 0.25s;
}

.faq-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.faq-item.open .faq-toggle {
    background: var(--page-accent-bg2);
}

.faq-item.open .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    will-change: max-height;
    contain: content;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .faq-section {
        padding: 24px;
    }

    .faq-question {
        font-size: 0.875rem;
        padding: 16px 0;
    }
}
