section {
  padding: 20px 0;
  text-align: left;
  background-color: #f0f0f0;
}

/*TÍTULO*/
.quemsomos {
  background: linear-gradient(90deg, #37AF8F 40%, #007EA7 60%);
  color: white;
  text-align: center;
  padding: 5px 0;
  margin-top: 10px;
}

.quemsomos h1{
  text-align: center;
  font-size: 1.7rem;
  padding: 10px 0;
}


/*HISTORIA*/

.historia {
 background-color: #f2f2f2;
 padding: 40px 0;
}

.historia-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 80%;
    margin: 0 auto;
}

.historia-imagem img {
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.historia-texto {
    max-width: 1000px;
    text-align: justify;
}

.historia-texto h2 {
    color: #37AF8F;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.historia-texto p {
    line-height: 1.5;
    color: #353D3F;
    margin-bottom: 20px;
}

/*PILARES*/
.pilares {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.pilares h2 {
    color: #37AF8F;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.pilares-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.pilar-card {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.pilar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.pilar-card:hover img {
    transform: scale(1.5);
    filter: brightness(60%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

.pilar-card:hover .overlay {
    opacity: 1;
}

.overlay p {
    font-size: 1rem;
    line-height: 1.4;
    max-height: 80%;
    overflow-y: auto;
    padding-right: 5px;
}


/*ÁREAS DE ATUAÇÃO*/
.atuacao {
    background-color: #f2f2f2;
    padding: 5px 0 10px 0;
}

.atuacao-container {
    width: 85%;
    margin: 0 auto;
}

.atuacao-texto h2 {
    color: #37AF8F;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.atuacao-texto h3 {
    color: #353D3F;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.atuacao-texto p {
    color: #353D3F;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 10px;
}

/*RESPONSIVIDADE*/

/*RESPONSIVIDADE – TABLET*/
@media (max-width: 1100px) {

    /* História */
    .historia-container {
        flex-direction: column;
        text-align: center;
    }

    .historia-imagem img {
        width: 280px;
    }

    /* Pilares */
    .pilar-card {
        width: 330px;
        height: 330px;
    }

    /* Áreas de Atuação */
    .atuacao-container {
        width: 95%;
    }
}

/*RESPONSIVIDADE – MOBILE*/
@media (max-width: 768px) {

    /* História */
    .historia-container {
        flex-direction: column;
        gap: 20px;
        width: 90%;
    }

    .historia-imagem img {
        width: 260px;
    }

    .historia-texto h2 {
        text-align: center;
    }

    /* Pilares */
    .pilares-container {
        flex-direction: column;
        align-items: center;
    }

    .pilar-card {
        width: 90%;
        height: 320px;
    }

    .overlay p {
        max-width: 90%;
    }

    /* Áreas de atuação */
    .atuacao-texto h2 {
        font-size: 1.6rem;
    }

    .atuacao-texto h3 {
        font-size: 1.3rem;
    }

    .atuacao-texto p {
        font-size: 0.95rem;
    }
}

/*RESPONSIVIDADE – MOBILE PEQUENO*/
@media (max-width: 480px) {

    /* História */
    .historia-imagem img {
        width: 220px;
    }

    .historia-texto p {
        font-size: 0.95rem;
    }

    /* Pilares */
    .pilar-card {
        width: 95%;
        height: 280px;
    }

    /* Áreas de atuação */
    .atuacao-texto h2 {
        font-size: 1.4rem;
    }

    .atuacao-texto h3 {
        font-size: 1.1rem;
    }
}