/* ===================================
   CSS ORGANIZADO (SEM ALTERAR NENHUMA REGRA)
   Apenas comentários adicionados para organização
=================================== */

/* ===== INÍCIO DO ARQUIVO ORIGINAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0998f7;
    --green: #125812;
    --yellow: #e2b709;
    --red: #d92d2d;
    --gray: #e4e4e4ea;
    --yellow2: #c2a637;
    --green2: #3d8d3d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Poppins, sans-serif;
    line-height: 1.6;
    color: #1d1e20;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    height: auto;
    overflow: visible;
}

/* HEADER */

.header {
    position: fixed;
    width: 100%;
    background: #f7f7f7;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;

}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #1a3fb3;
    font-weight: 600;
    transition: .3s;
}

nav a:hover {
    color: var(--yellow);
}

/* HERO */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    background: var(--blue);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 70px;
    line-height: 1.1;
}

.logo {
    display: block;
    width: 450px;
    height: auto;
    margin: 0 auto 30px;

    animation:
        fadeZoom 1.8s ease-out,
        floatLogo 4s ease-in-out infinite 1.8s;
}

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(.7) translateY(40px);
    }

    70% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* SEÇÕES */

.bloco {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 100px 0;
    height: auto;
}

.branco {
    background: white;
}

.verde {
    background-image: url("../images/fundo/verde.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    font-size: 20px;
}

.verde2 {
    background-image: url("../images/fundo/amarelo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    font-size: 20px;
    height: auto;
    min-height: 100vh;
    overflow: visible;

}

.vermelho {
    background-image: url("../images/fundo/vermelho.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amarelo {
    background: var(--yellow);
    font-size: 20px;
    color: white;

}


.azul {
    background: var(--blue);
    color: white;
}

.azul2 {
    background-image: url("../images/fundo/azul.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.transparencia-titulo {
    font-size: clamp(22px, 3vw, 30px);
    margin-top: 0;

}

/* grid */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
}

/* card */
.depoimento {
    text-align: center;
    max-width: 400px;
    margin: auto;
}

/* estrelas */
.estrelas {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

/* texto */
.depoimento p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* autor */
.autor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.autor img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.autor span {
    color: #ffd700;
    font-size: 18px;
    font-weight: 600;
}


.cinza {
    background-image: url("../images/fundo/branco.jpg");
    background-size: cover;
    background-position: unset;
    background-repeat: no-repeat;
}

.amarelo2 {
    background: #d4a80a;
    color: #1a3fb3;
}

/* GRID */
.contato-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* TITULOS */
.titulo-contato {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.titulo-fale {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* INFO */
.info-bloco {
    margin-bottom: 25px;
}

.info-bloco strong {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-bloco h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 22px;
}

.info-bloco p {
    margin: 3px 0;
}

/* FORM */
.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contato-form label {
    font-size: 14px;
}

.contato-form input {
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: #2f5bd3;
    color: white;
    outline: none;
}

.contato-form input::placeholder {
    color: #dcdcdc;
}

.contato-form textarea {
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: #2f5bd3;
    color: white;
    outline: none;
    resize: none;
}

.contato-form textarea::placeholder {
    color: #dcdcdc;
}

/* container dos botões */
.botoes-contato {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* botão enviar */
.btn-enviar {
    padding: 16px 22px;
    border: none;
    border-radius: 12px;
    background: #1a3fb3;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-enviar:hover {
    background: #122c80;
    transform: translateY(-2px);
}

#transparencia {
    align-items: flex-start;
    padding-top: 50px;
}


/* RESPONSIVO */
@media(max-width:900px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .titulo-fale {
        font-size: 42px;
    }
}


/* GRID */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.centralizado {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.centralizado div {
    max-width: 850px;
}

/* TEXTOS */


.center {
    text-align: center;
}

.titulo-projeto {
    text-align: center;
    font-size: 40px;
    color: #d90019;
    font-weight: bold;
    margin-top: 0px;

}

.subtitulo-projeto {
    text-align: center;
    font-size: 16px;
    color: #585858;

}

.titulo-verde {
    text-align: center;
    font-size: 50px;
    color: #ffd700;
    font-weight: bold;
    margin-top: -250px;
}

.subtitulo-verde {
    font-size: 40px;
    line-height: 2;
    color: #ffd700;
    font-weight: 700;
    margin-top: -20px;
}

.paragrafo-verde {
    font-size: 20px;
    line-height: 2;
    color: white;

}

.titulo-amarelo {
    font-size: 40px;
    line-height: 2;
    color: #125812;
    font-weight: 700;
    text-align: justify;
    margin-top: -90px;
}

/* IMAGENS */

.imagemHistoria {
    background-image: url("../images/missao/historia.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 400px;
    border-radius: 18px;
}

/* CARDS PADRÃO */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .08);
}

/* MISSÃO VISÃO VALORES */

.titulo-mvv {
    text-align: center;
    font-size: 40px;
    color: white;
    margin-bottom: 60px;
}

.cards-mvv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.mvv-card {
    background: #ececec;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mvv-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.mvv-body {
    padding: 35px;
    flex: 1;
    text-align: left;
}

.mvv-body h3 {
    font-size: 35px;
    color: #d90019;
    margin-bottom: 18px;
}

.mvv-body p {
    font-size: 20px;
    line-height: 1.7;
    color: #d90019;
}

/* FORM */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 650px;
    margin-top: 30px;
}

input,
textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    padding: 15px;
    background: var(--blue);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    opacity: .9;
}

/* FOOTER */

footer {
    background: #d4a80a;
    color: white;
    text-align: center;
    padding: 20px;
}



/* ========================= */
/* GALERIA (CORRIGIDA) */
/* ========================= */

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* leve aumento pra dar respiro */
    margin-top: 50px;
}

/* imagem grande */
.img-grande {
    grid-column: 1 / -1;
}

/* ===== CARD PROFISSIONAL ===== */
.img-grande,
.img-pequena {
    background: #fff;
    padding: 10px;
    border-radius: 22px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

/* hover no card */
.img-grande:hover,
.img-pequena:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
}

/* IMAGEM */
.grid-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
    transition: .6s;
}


/* zoom na imagem */
.img-grande:hover img,
.img-pequena:hover img {
    transform: scale(1.05);
}

/* TAMANHOS */
.img-grande img {
    height: 600px;
    object-position: center 30%;
}

.img-pequena img {
    height: 300px;
    object-position: center;
}

/* RESPONSIVO */

@media(max-width:992px) {

    .grid,
    .cards,
    .cards-mvv {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

    .logo {
        width: 280px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .bloco {
        padding: 70px 0;
    }

    .textoVerde {
        font-size: 38px;
    }

    .subVerde {
        font-size: 30px;
    }

    .textoAmarelo {
        font-size: 22px;
    }

    .titulo-mvv {
        font-size: 26px;
    }

    .mvv-body h3 {
        font-size: 34px;
    }


    .grid-galeria {
        grid-template-columns: 1fr !important;
    }

    /* CARD */
    .img-grande {
        padding: 8px;
        height: 300px;
        /* maior */
        overflow: hidden;
    }

    .img-pequena {
        padding: 8px;
        height: 200px;
        /* menor */
        overflow: hidden;
    }

    /* IMAGEM */
    .img-grande img,
    .img-pequena img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


}

@media(max-width:768px) {
    .depoimentos-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .depoimento p {
        font-size: 18px;
    }

    .titulo-mvv {
        font-size: 26px;
    }

    .mvv-body h3 {
        font-size: 24px;
        font-weight: bold;
    }

}

#transparencia .tree {
    list-style: none;
    margin-top: 40px;
    padding-left: 0;
    text-align: left;
}

#transparencia .tree li {
    margin: 8px 0;
}

/* linha principal */
#transparencia .tree .toggle {
    cursor: pointer;
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    position: relative;
}

/* setinha */
#transparencia .tree .toggle::before {
    content: "▸";
    margin-right: 8px;
    display: inline-block;
    transition: 0.3s;
}

/* aberto */
#transparencia .tree li.active>.toggle::before {
    transform: rotate(90deg);
}

/* filhos */
#transparencia .tree ul {
    list-style: none;
    margin-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;

}

/* aberto */
#transparencia .tree li.active>ul {
    max-height: none;
}

/* link */
#transparencia .tree a {
    display: block;
    padding: 8px 10px;
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
}

#transparencia .tree a:hover {
    text-decoration: underline;
}


/* ========================= */
/* TABLET */
/* ========================= */
@media (max-width: 992px) {

    .grid,
    .cards,
    .cards-mvv,
    .contato-grid,
    .depoimentos-grid {
        grid-template-columns: 1fr !important;
    }

    .logo {
        width: 280px !important;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
    }

    .grid-galeria {

        grid-template-columns: 1fr !important;
    }



    .img-grande img {
        height: 260px !important;
    }

    .img-pequena img {
        object-fit: cover;
        height: 200px !important;
    }
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 768px) {

    .hero {
        height: auto !important;
        padding: 120px 0 60px;
    }

    .bloco {
        min-height: auto !important;
        padding: 60px 0 !important;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }

    .logo {
        width: 200px !important;
    }

    .verde,
    .verde2,
    .azul2,
    .vermelho,
    .cinza {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;

        /* ESSENCIAL PRA NÃO “SUMIR COR” */
        min-height: 100vh !important;
    }

    .grid,
    .cards-mvv,
    .contato-grid,
    .depoimentos-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* CORREÇÃO PRINCIPAL (seu bug maior) */
    .titulo-verde {
        margin-top: 0 !important;
        font-size: 26px !important;
    }

    .subtitulo-verde {
        font-size: 20px !important;
        margin-top: 10px !important;
    }

    .titulo-amarelo {
        margin-top: 0 !important;
        font-size: 22px !important;
    }

    .transparencia-titulo {
        font-size: 22px !important;
    }

    .amarelo {
        font-size: 18px !important;
    }

    .titulo-projeto {
        font-size: 22px !important;
    }

    .subtitulo-projeto {
        font-size: 14px !important;
    }

    .titulo-fale {
        font-size: 32px !important;
    }

    .paragrafo-verde {
        font-size: 16px !important;
        line-height: 1.6;
    }

    .grid-galeria {
        grid-template-columns: 1fr !important;
    }

    /* 1. REMOVE TODAS AS ALTURAS FIXAS */
    .img-grande img,
    .img-pequena img {
        height: auto !important;
    }

    /* 2. FAZ O CARD SE AJUSTAR À IMAGEM */
    .img-grande,
    .img-pequena {
        height: auto !important;
        padding: 8px;
    }

    /* 3. GARANTE QUE A IMAGEM OCUPE 100% */
    .grid-galeria img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

    .btn-enviar {
        width: 100%;
    }

    #transparencia .tree .toggle {
        font-size: 14px;
    }
}


.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #1a3fb3;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        background: #f0f0f0;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
    }
}

/* ===== FIM DO ARQUIVO ORIGINAL ===== */