@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Estilos gerais da página */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #1e3a5f;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Container principal da FAQ */
.faq-container {
    max-width: 900px;
    width: 90%;
    margin: 3rem auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

/* Estilo para cada item da FAQ */
.faq-item {
    border-bottom: 1px solid #e0e6ed;
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Estilo para a pergunta (cabeçalho da sanfona) */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1e3a5f;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a5f;
    transition: transform 0.3s ease;
}

/* Estilo para a resposta (conteúdo da sanfona) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
    color: #555;
}

.faq-answer ul {
    margin-top: 0;
    padding-left: 20px;
}

/* Estilos quando a sanfona está ativa (aberta) */
.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    display: none;
}

.back-to-top:hover {
    background-color: #0056b3;
}

/* Estilos do rodapé */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #1e3a5f;
    color: #b0c4de;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Estilos para telas menores (smartphones) */
@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .faq-container {
        width: 95%;
        padding: 0.5rem;
        margin: 2rem auto;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}