﻿/* FAQ Section */
.faq-section {
    background-color: var(--corFundoCinza);
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--corOdisseusPurple);
    margin-bottom: 40px;
}

.faq-item {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
    text-align: left;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .faq-item:hover {
        background-color: #f4f4f4;
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg); /* Rotate when open */
}

.faq-question h3 {
    font-size: 1.25rem;
    color: var(--corOdisseusPurple);
    margin: 0;
    flex-grow: 1;
}

.faq-answer {
    display: none;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--corTextoCinza);
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-item {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-icon {
        width: 25px;
        height: 25px;
    }
}