/* ========================= */
/* Configurações Gerais */
/* ========================= */
html {
    scroll-behavior: smooth; 
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif; 
    overflow-x: hidden; 
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* ========================= */
/* Estilo do Conteúdo Principal */
/* ========================= */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 5%;
    margin-top: 2rem;
    padding-top: 100px;
}

.main-content2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 5%;
    margin-top: 2rem;
    padding-top: 20px;
}

.main-content3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 5%;
    margin-top: 2rem;
    padding-top: 30px;
}



.main-container {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 1rem;
}

.main-text {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Roboto', sans-serif; 
    font-size: clamp(2rem, 5vw, 3rem);
    color: #072C47;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.main-title2 {
    font-family: 'Roboto', sans-serif; 
    font-size: clamp(1rem, 3vw, 2rem);
    color: #072C47;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    align-self: start;
    align-items: baseline;
}

.main-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    width: 90%;
    max-width: 550px;
    text-align: center;
}

.description-at {
    font-size: 1.2rem;
    color: #34495e;
    text-align: justify;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 1rem;

}

/* Estilo dos Botões */
.button-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #297FB8; 
    color: white; 
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.button:hover {
    background-color: #1A5E7D;
    transform: translateY(-2px);
}

/* Estilo da Imagem Principal */
.main-image {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 50px;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========================= */
/* Animações */
/* ========================= */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(50px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slide-in 0.8s ease-out; 
}

/* ========================= */
/* Estilo da Seção "Quem Somos" */
/* ========================= */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInEffect {
    animation: fade-in 0.8s ease-out forwards; /* "forwards" mantém o estado final da animação */
}

#quem-somos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 4rem 5%;
    margin: 2rem 0;
}

.imagem-quemsomos {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.imagem-quemsomos img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
}

.texto-quemsomos {
    flex: 1 1 55%;
    min-width: 300px;
    padding: 2rem;
}

.titulo-missao {
    font-family: 'Roboto', sans-serif; 
    font-size: 2em; 
    margin-bottom: 10px; 
    color: #072C47; 
}

.Cores_texto {
    color: #297FB8; 
}

.linha-missao {
    border: none; 
    border-top: 2px solid #297FB8; 
    margin: 0; 
    width: 50%; 
}

.descricao-missao {
    font-family: 'Lato', sans-serif; 
    font-size: 1.2em; 
    line-height: 1.5; 
    margin-top: 20px; 
    color: #072C47;
    text-align: justify; 
}

.saber-mais {
    margin-top: 30px; 
}


/* ========================= */
/* Estilo da Seção "Valores" */
/* ========================= */
#valores {
    padding: 4rem 5%;
}

.titulo-valores {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
}

.cards-container {
    display: flex;           
    justify-content: center;    
    gap: 80px; 
    margin-top: 20px;        
    flex-wrap: wrap;        
}

.card {
    width: 240px; 
    height: 320px; 
    perspective: 1000px;    
    position: relative;        
    cursor: pointer;        
    border-radius: 10px;     
    overflow: hidden;         
    transition: transform 0.3s; 
    opacity: 0; 
    transform: translateY(20px); 
}

.card:hover {
    transform: scale(1.1); 
    transition: 0.5s; 
}

/* Animações para surgimento das cartas */
@keyframes surgir {
    from {
        opacity: 0; 
        transform: translateY(20px); 
    }
    to {
        opacity: 1;
        transform: translateY(0); 
    }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.face {
    width: 100%;             
    height: 100%;             
    position: absolute;     
    backface-visibility: hidden; 
    display: flex;       
    flex-direction: column;   
    align-items: center;    
    justify-content: center;   
    transition: transform 0.6s; 
    text-align: center; 
}

.frente {
    background-color: #072C47; 
    color: white;            
}

.verso {
    background-color: #075E8D; 
    color: white;              
    transform: rotateY(180deg); 
}

.card.virar .frente {
    transform: rotateY(180deg); 
}

.card.virar .verso {
    transform: rotateY(0); 
}

.icone {
    width: 50px; 
    height: auto; 
}

.surgir {
    opacity: 1; 
    transform: translateY(0); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

/* ========================= */
/* Estilo da Seção "Contato" */
/* ========================= */
#contato {
    padding: 4rem 5%;
}

.contato-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.informacoes,
.formulario {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.formulario-contato {
    display: grid;
    gap: 1rem;
}

.formulario-contato input,
.formulario-contato textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.botao-enviar {
    padding: 0.8rem 1.5rem;
    background-color: #297FB8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.botao-enviar:hover {
    background-color: #1A5E7D;
}

/* ========================= */
/* Media Queries */
/* ========================= */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        text-align: center;
    }

    .button-container {
        justify-content: center;
    }

    .main-description {
        width: 100%;
        margin: 0 auto;
    }

    #quem-somos {
        text-align: center;
    }

    .linha-missao {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main-content,
    #quem-somos {
        padding: 2rem 1rem;
    }

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