@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --cor-primaria: #8B4513;
    --cor-secundaria: #2E8B57;
    --cor-fundo: #f0f0f0;
    --cor-texto: #333;
    --cor-neon: #39FF14;
    --cor-link-footer: #6366f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--cor-texto);
    overflow-y: auto;
    background-color: var(--cor-fundo);
    padding-top: 250px; /* Espaço para o cabeçalho fixo */
    padding-bottom: 60px; /* Espaço para o rodapé fixo */
}

/* ======================================= */
/* === ESTILOS DO CABEÇALHO ==== */
/* ======================================= */
.cabecalho-principal {
    background-color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-logo {
    height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
}

.header-titulo-container h1 {
    font-size: 1.8rem;
    color: var(--cor-primaria);
    margin: 0;
}

.header-titulo-container h2 {
    font-size: 1.1rem;
    color: var(--cor-texto);
    font-weight: 400;
    margin: 0.25rem 0;
}

.header-titulo-container h3 {
    font-size: 1rem;
    color: var(--cor-secundaria);
    font-weight: 700;
    margin: 0;
}

.header-menu {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-menu a {
    padding: 8px 20px;
    background-color: var(--cor-secundaria);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.header-menu a:hover {
    background-color: #257548;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- ESTRUTURA GERAL --- */
.conteudo-tela {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 40px;
}

/* ======================================= */
/* === SEÇÃO DE TEXTO CRÍTICO (PÁG. INICIAL) === */
/* ======================================= */
#texto-critico-bncc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 310px); /* body padding-top + padding-bottom */
}

.texto-critica-container {
    max-width: 800px;
    margin-bottom: 3rem;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
    background: #fff;
    padding: 2rem;
    border-left: 5px solid var(--cor-primaria);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#btn-ver-atividades {
    padding: 20px 45px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background-color: var(--cor-secundaria);
    border: 3px solid white;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 5px var(--cor-neon), 0 0 15px var(--cor-neon), 0 0 30px var(--cor-neon);
    animation: pulsar-neon 2s infinite alternate;
    transition: all 0.3s;
}

#btn-ver-atividades:hover {
    animation-play-state: paused;
}

@keyframes pulsar-neon {
    from {
        box-shadow: 0 0 5px var(--cor-neon), 0 0 15px var(--cor-neon), 0 0 30px var(--cor-neon);
    }
    to {
        box-shadow: 0 0 10px var(--cor-neon), 0 0 30px var(--cor-neon), 0 0 60px var(--cor-neon);
    }
}

/* ================================================= */
/* === BOTÕES DE FILTRO (PÁG. INICIAL) === */
/* ================================================= */
.botoes-filtro-container {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filtro-ano {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: var(--cor-secundaria);
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px var(--cor-neon), 0 0 10px var(--cor-neon);
    animation: pulsar-neon-suave 2.5s infinite alternate;
}

.filtro-ano:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

.filtro-ano.ativo {
    background-color: white;
    color: var(--cor-secundaria);
    animation-play-state: paused;
    box-shadow: 0 0 8px var(--cor-neon), 0 0 20px var(--cor-neon);
    transform: scale(1.05);
}

.filtro-ano--destaque {
    background-color: var(--cor-primaria);
    border-color: white;
}

.filtro-ano--destaque:hover {
    background-color: #a55d2a;
}

.filtro-ano--destaque.ativo {
    background-color: white;
    color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

@keyframes pulsar-neon-suave {
    from {
        box-shadow: 0 0 3px var(--cor-neon), 0 0 10px var(--cor-neon);
    }
    to {
        box-shadow: 0 0 6px var(--cor-neon), 0 0 18px var(--cor-neon);
    }
}

/* ======================================= */
/* === BOTÕES EXTRAS (PÁG. INICIAL) === */
/* ======================================= */
.container-botao-extra {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.botao-extra {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--cor-primaria);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 25px;
    border: 2px solid var(--cor-primaria);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.botao-extra:hover {
    background-color: #fff;
    color: var(--cor-primaria);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.botao-extra.botao-sugestao {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

.botao-extra.botao-sugestao:hover {
    color: var(--cor-secundaria);
}


/* ======================================= */
/* === SEÇÃO DE CARDS DE ATIVIDADES === */
/* ======================================= */
.container-cards-propostas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card-proposta {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-proposta:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-proposta img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-proposta .card-texto {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-proposta .card-titulo {
    font-size: 0.9rem;
    color: var(--cor-texto);
    font-weight: bold;
    padding: 0;
}

.card-proposta .card-habilidade {
    display: block;
    font-size: 0.8rem;
    color: var(--cor-primaria);
    margin-top: 5px;
}

/* =============================================== */
/* === ESTILOS PARA FORMULÁRIOS ==== */
/* =============================================== */
.conteudo-formulario,
.conteudo-sucesso {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.conteudo-formulario h2,
.conteudo-sucesso h1 {
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    text-align: center;
}

form fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

form legend {
    font-weight: bold;
    color: var(--cor-secundaria);
    padding: 0 0.5rem;
    margin-left: 1rem;
    font-size: 1.2rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

form input[type="text"],
form input[type="tel"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

form input[type="file"] {
    margin-bottom: 1rem;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--cor-secundaria);
    outline: none;
    box-shadow: 0 0 5px rgba(46, 139, 87, 0.5);
}

form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--cor-secundaria);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #257548;
}

fieldset input[type="checkbox"] {
    margin-right: 10px;
}

fieldset label[for="autorizacao"] {
    display: inline;
    font-weight: normal;
}

.mensagem-erro {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.mensagem-erro ul {
    margin: 0;
    padding-left: 20px;
}

/* ======================================= */
/* === ESTILOS PARA O MODAL DE DETALHES ==== */
/* ======================================= */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.modal-container.ativo {
    opacity: 1;
    visibility: visible;
}

.modal-conteudo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-container.ativo .modal-conteudo {
    transform: scale(1);
}

.modal-fechar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.modal-fechar:hover {
    color: #333;
}

.modal-conteudo h2 {
    color: var(--cor-primaria);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-right: 30px; 
}

.modal-autor {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-autor-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-descricao {
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.modal-imagens-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 1.5rem;
}

.modal-figure {
    margin: 0;
    text-align: center;
}

.modal-imagem {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #eee;
}

.modal-figcaption-titulo {
    font-size: 0.9em;
    text-align: center;
    color: #333;
    margin-bottom: 3px;
}

.modal-figcaption-fonte {
    font-size: 0.8em;
    text-align: center;
    color: #666;
    font-style: italic;
}

.modal-botoes-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px; 
}

.modal-link-externo {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--cor-secundaria);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.modal-pdf-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--cor-primaria);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.modal-pdf-button:hover {
    opacity: 0.9;
}


/* ======================================= */
/* === ESTILOS DO RODAPÉ (VERSÃO FINAL CORRIGIDA) ==== */
/* ======================================= */
#modern-footer {
    background-color: #111827;
    color: #f3f4f6;
    padding: 0 1.5rem;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cor-link-footer), transparent);
}

#footer-links {
    display: flex;
    gap: 1.5rem;
}

#footer-links a {
    color: #f3f4f6;
    text-decoration: none;
    font-size: .85rem;
    opacity: .8;
    transition: all .3s ease;
    position: relative;
}

#footer-links a:hover {
    opacity: 1;
    color: var(--cor-link-footer);
}

#footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cor-link-footer);
    transition: all .3s ease;
}

#footer-links a:hover::after {
    width: 100%;
}

#footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#social-icons {
    display: flex;
    gap: .75rem;
}

#social-icons svg {
    width: 18px;
    height: 18px;
    fill: #f3f4f6;
    opacity: .7;
    transition: all .3s ease;
}

#social-icons a:hover svg {
    opacity: 1;
    transform: translateY(-2px);
    fill: var(--cor-link-footer);
}

#footer-face {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.eye {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.pupil {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all .05s ease-out;
}

/* ======================================= */
/* === RESPONSIVIDADE GERAL ==== */
/* ======================================= */
@media(max-width:768px) {
    body {
        padding-top: 280px;
        padding-bottom: 0;
    }

    .cabecalho-principal {}
    
    .header-titulo-container h1 { font-size: 1.5rem; }
    .header-titulo-container h2 { font-size: 0.9rem; }
    .header-titulo-container h3 { font-size: 0.8rem; }
    
    .conteudo-tela { padding: 20px; }
    
    .conteudo-formulario,
    .conteudo-sucesso {
        padding: 1rem;
        margin: 1rem;
    }
    
    #modern-footer {
        flex-direction: column;
        height: auto;
        padding: .75rem 1.5rem;
        gap: .75rem;
        position: static;
    }

    #footer-face {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: .5rem 0;
    }
}

/* ======================================================= */
/* === ESTILO PARA A LISTA DE HABILIDADES DENTRO DO MODAL ==== */
/* ======================================================= */

.modal-habilidades-lista {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.modal-habilidades-lista strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cor-primaria);
}

.modal-habilidade-item {
    font-size: 0.9em;
    color: #333;
    padding-left: 10px;
    border-left: 3px solid var(--cor-secundaria);
    margin: 0.5rem 0;
}
.modal-habilidade-item b {
    color: #000;
}
