:root {
    --azul-principal: #002147;
    --azul-destaque: #3b77d1;
    --cinza-escuro: #333;
    --cinza-claro: #fafafa;
    --texto: #222;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}

/* Base */
html,
body {
    min-height: 100vh;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    background: var(--azul-principal);
    color: var(--texto);
    display: flex;
    flex-direction: column;
}

a {
    color: #5783b3;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: #003f7f;
    text-decoration: underline;
}

/* Header */
header {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Navbar */
.navbar {
    font-family: 'Outfit', sans-serif;
    background: var(--cinza-escuro);
    padding: 12px;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 10px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--azul-destaque) !important;
}

/* Conteúdo */
main {
    max-width: 1000px;
    width: 100%;
    min-height: 500px;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main p {
    line-height: 1.7;
}

section h2,
#historia h3 {
    border-bottom: 2px solid var(--azul-destaque);
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.linha-azul {
    border-bottom: 2px solid var(--azul-destaque);
    padding-bottom: 8px;
    margin-bottom: 25px;
}

section h3 {
    margin-top: 35px;
    color: var(--azul-principal);
}

#historia p {
    text-align: justify;
    text-indent: 2em;
}

#contato {
    min-height: 550px;
}

.mt-5 h3 {
    border-bottom: 2px solid var(--azul-destaque);
}
#projetos {
    min-height: 600px;
}

.logos-parceiros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0 40px 0;
    align-items: center;
    justify-items: center;
}

.logos-parceiros img {
    max-width: 220px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logos-parceiros img:hover {
    transform: scale(1.05);
}



/* Projetos */
.intro-pagina {
    margin-bottom: 30px;
    text-align: justify;
}

.projeto {
    margin-bottom: 28px;
    padding: 24px;
    background: #fff;
    border-left: 5px solid var(--azul-destaque);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}

.projeto h3 {
    margin-top: 10px;
    color: var(--azul-principal);
}

.projeto p {
    margin-bottom: 10px;
    text-align: justify;
}

.projeto-status {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(95, 159, 255, 0.15);
    color: var(--azul-principal);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blocos gerais */
.publicacao,
.contato-card,
.info-card {
    background: var(--cinza-claro);
    border-left: 4px solid var(--azul-destaque);
    border-radius: 8px;
}

.publicacao {
    margin-bottom: 25px;
    padding: 15px;
}


.resumo-noticia,
.texto-noticia {
    text-align: justify;
}

.publicacao .resumo,
.colaborador .resumo {
    text-align: justify;
    line-height: 1.6;
    text-indent: 2em;
}

/* Equipe */
.membro {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    padding: 24px;
    background: #fff;
    border-left: 5px solid var(--azul-destaque);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}

.membro img {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--azul-destaque);
    flex-shrink: 0;
}

.membro-info h3 {
    margin: 0 0 10px 0;
    color: var(--azul-principal);
    font-size: 1.6rem;
}

.membro-info p {
    margin: 6px 0;
    text-align: left;
    text-indent: 0;
    line-height: 1.5;
}

.membro-info a {
    margin-right: 8px;
}

/* Cards */
.card-custom,
.info-card {
    transition: transform 0.2s ease;
}

.card-custom {
    border: none;
    border-left: 4px solid var(--azul-destaque);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-custom:hover,
.info-card:hover {
    transform: translateY(-4px);
}

.info-card {
    height: 100%;
    padding: 20px;
}

.info-card h4 {
    color: var(--azul-principal);
    margin-bottom: 10px;
}

/* Contato */
.contato-card {
    height: 100%;
    padding: 25px;
}

.contato-card h3 {   
    margin-bottom: 20px;
}

.social-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-lista a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.mapa-container,
.imagem-secao,
.secao-imagem img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mapa-container {
    margin-top: 20px;
    overflow: hidden;
}

/* Seções com imagem */
.secao-com-imagem {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.secao-com-imagem.invertida {
    flex-direction: row-reverse;
}

.secao-texto {
    flex: 2;
}

.secao-imagem {
    flex: 1;
}

.secao-imagem img {
    width: 100%;
    object-fit: cover;
}

.agenda-google {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

#agenda p {
    text-align: justify;
    margin-bottom: 25px;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--cinza-escuro);
    padding: 18px;
    text-align: center;
}

footer p {
    color: white;
    margin: 0;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .banner-img {
        max-height: 180px;
        width: 100%;
        object-fit: cover;
    }

    main {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin: 20px 12px;
        padding: 18px;
    }

    .membro {
        flex-direction: column;
        text-align: center;
    }

    .membro-info p {
        text-align: center;
    }

    .navbar .nav-link {
        text-align: center;
        margin: 6px 0;
    }

    .secao-com-imagem,
    .secao-com-imagem.invertida {
        flex-direction: column;
    }

    .logos-parceiros {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-parceiros img {
        max-width: 140px;
        max-height: 80px;
    }
}
