/* --- ESTILO FAQ (TEMA ROXO - VERSÃO FINAL OTIMIZADA) --- */

/* Animação de flutuar do Banner */
@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.faq {
    padding: 100px 20px;
    background-color: #050505;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge-faq {
    background: rgba(112, 0, 255, 0.1);
    color: #a044ff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.faq-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 25px 0;
}

.faq-header p {
    color: #888;
    line-height: 1.6;
}

/* ITENS DO ACORDEÃO */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden; /* Corta o conteúdo para a animação de deslize */
}

.faq-item[open] {
    background: rgba(112, 0, 255, 0.03);
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.1);
}

.faq-item summary {
    padding: 25px;
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    position: relative;
}

/* Seta animada */
.faq-item summary::after {
    content: '→';
    position: absolute;
    right: 25px;
    color: #a044ff;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(90deg);
}

.faq-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #a044ff;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

.faq-icon-box svg { width: 22px; height: 22px; }

/* ANIMAÇÃO DE DESLIZE (GRID TRICK) */
.faq-content {
    display: grid;
    grid-template-rows: 0fr; /* Começa fechado */
    transition: grid-template-rows 0.4s ease-out;
    padding-left: 88px;
    padding-right: 30px;
}

.faq-item[open] .faq-content {
    grid-template-rows: 1fr; /* Abre suavemente */
}

/* Wrapper interno necessário para a animação de altura */
.faq-content-wrapper {
    overflow: hidden;
    min-height: 0;
}

.faq-content-wrapper p {
    padding-bottom: 30px;
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* BANNER DE CTA FLUTUANTE */
.faq-cta-banner {
    background: linear-gradient(135deg, #3f0063 0%, #7000ff 100%);
    border-radius: 30px;
    padding: 50px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    box-shadow: 0 20px 40px rgba(112, 0, 255, 0.2);
    animation: flutuar 4s ease-in-out infinite;
}

.faq-cta-banner:hover {
    animation-play-state: paused;
}

.cta-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-info p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
}


/* RESPONSIVIDADE */
@media (max-width: 800px) {
    .faq-cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
        animation: none;
    }
    .faq-content { padding-left: 25px; }
    .faq-title { font-size: 2.5rem; }
}