main {
    width: 100%;
    background-color: #101e2b;
}

.capa {
    height: 266px;
    display: flex;
    align-items: center;
    background-image:
            linear-gradient(0deg, rgba(16,30,43,1) 0%, rgba(16,30,43,0.34) 100%),
            url("../../frontend/img/capa_sobre_a_borex.png");
    background-size: cover;
    background-position: center;
}

.capa img.titulo_pagina {
    margin-left: 53px;
    max-width: 280px;
}

/* LAYOUT TRICOLUNA ATÉ 1500px */
.sobre-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch; /* IMPORTANTE: estica os 3 blocos igualmente em altura */
    padding: 60px 5%;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* COLUNAS DE IMAGENS */
.col-images {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* distribui as imagens verticalmente */
    flex: 1;
    max-width: 320px;
}

.col-images img {
    width: 300px;
    height: 140px;
    border-radius: 4px;
    object-fit: cover;
    transition: transform .3s ease;
}

.col-images img:hover {
    transform: scale(1.05);
}

.texto-sobre-a-borex {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Alinha verticalmente */
    padding: 0 10px;
    max-width: 800px;
}

.texto-sobre-a-borex p {
    font-size: 20px;
    color: #e5e5e5;
    text-align: justify;
    padding-top: 10px;
}

@keyframes fadeInOut1 {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInOut2 {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

.fade1 {
    animation: fadeInOut1 6s infinite ease-in-out;
}

.fade2 {
    animation: fadeInOut2 6s infinite ease-in-out;
}

/* RESPONSIVO A PARTIR DE 1399px PRA BAIXO */
@media (max-width: 1399px) {
    .sobre-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .col-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .col-images img {
        width: 45%;
        height: auto;
    }

    .texto-sobre-a-borex {
        padding: 20px;
    }

    .texto-sobre-a-borex p {
        font-size: 18px;
    }

    .capa img.titulo_pagina {
        margin: 0 auto;
        padding: 20px;
        max-width: 80%;
    }
}

/* EXTRA PARA TELAS MENORES QUE 600px */
@media (max-width: 600px) {
    .col-images img {
        width: 100%;
    }

    .texto-sobre-a-borex p {
        font-size: 16px;
    }
}
