@charset "utf-8";

section#historia{
    float: left;
    width: 100%;
    padding: 50px 0;
}

section#historia article{
    display: block;
    width: 100%;
    text-align: center;
}

section#historia article p{
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    font-size: 17px;
    color: #333;
    line-height: 20px;
}

section#historia figure{
    display: inline-block;
    width: 90%;
    max-width: 553px;
    margin-top: 40px;
    background-color: #a60000;
    border-radius: 20px;
}

section#historia figure img{
    display: inline-block;
    width: 100%;
}

section#historia figure figcaption{
    display: inline-block;
    width: 100%;
    color: #fff;
    font-size: 35px;
    padding: 25px 0;
    font-weight: 700;
}

section#historia div#empresas{
    display: block;
    width: 100%;
    margin-top: 50px;
    text-align: center;
}

section#historia div#empresas h2{
    display: inline-block;
    width: 90%;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

section#historia div#empresas img{
    display: inline-block;
    vertical-align: middle;
    height: 58px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 20px 18px 0;
}

section#mapa{
    float: left;
    width: 100%;
    background-color: #a60000;
    padding: 30px 0;
    margin-top: 30px;
}

section#mapa img{
    display: none;
}

section#mapa article{
    display: inline-block;
    width: 90%;
}

section#mapa article h1{
    color: #c91515;
    font-weight: 700;
}

section#mapa article h2{
    display: inline-block;
    width: 100%;
    font-size: 35px;
    color: #fff;
    margin-top: 10px;
    font-weight: 700;
}

section#mapa article p{
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    color: #fff;
    font-size: 17px;
    line-height: normal;
}

section#mapa article a{
    display: inline-block;
    margin-top: 30px;
    background-color: #c91515;
    color: #fff;
    font-size: 17px;
    padding: 15px 20px;
    font-weight: 700;
    border-radius: 20px;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

section#mapa article a:hover{
    background-color: #ea2a29;
}

section#familia{
    float: left;
    width: 100%;
    padding: 50px 0;
}

section#familia h1{
    display: inline-block;
    width: 90%;
    font-weight: 700;
    font-size: 30px;
}

section#familia div.setores{
    display: inline-block;
    width: 90%;
    margin-top: 40px;
}

section#familia div#gestao img{
    width: 90%;
    max-width: 350px;
    margin: 20px 15px 0 15px;
}

section#familia div.setores h2{
    display: inline-block;
    width: 90%;
    border-bottom: 2px solid #a60000;
    padding-bottom: 10px;
    color: #a60000;
    font-size: 25px;
    margin-bottom: 40px;
}

section#familia div#equipe-campo img, section#familia div#equipe-operacao img, section#familia div#equipe-rh img{
    width: 90%;
    max-width: 282px;
    margin: 5px 5px 0 5px;
}

section#familia div#equipe-comercial img{
    width: 90%;
    max-width: 282px;
    margin: 5px 7px 0 7px;
}

@media screen and (min-width: 768px) {
    section#historia div#empresas h2{
        font-size: 40px;
        text-align: left;
    }

    section#familia h1{
        font-size: 50px;
        text-align: left;
    }

    section#familia div.setores h2{
        text-align: left;
        padding-bottom: 0;
        width: 100%;
    }

    section#familia div.setores h2 strong{
        background-color: #e7e7e7;
        padding: 5px 10px 5px 0;
        font-size: 35px;
        position: relative;
        top: 15px;
    }

    section#familia div#equipe-campo img.destaque, section#familia div#equipe-operacao img.destaque, section#familia div#equipe-rh img.destaque, section#familia div#equipe-comercial img.destaque{
        max-width: 580px;
    }
}

@media screen and (min-width: 1024px){
    section#historia article{
        float: left;
        width: 48%;
        margin-left: 20px;
    }

    section#historia article p{
        text-align: justify;
    }

    section#historia figure{
        float: right;
        width: 45%;
        margin-top: 20px;
        margin-right: 20px;
    }

    section#historia figure figcaption{
        font-size: 45px;
    }

    section#mapa{
        padding: 50px 0;
    }

    section#mapa img{
        display: block;
        float: left;
        width: 50%;
        margin-left: 10px;
    }

    section#mapa article{
        float: right;
        text-align: left;
        width: 45%;
        padding-right: 10px;
    }

    section#familia div#equipe-campo img.destaque, section#familia div#equipe-rh img.destaque{
        float: right;
    }

    section#familia div#equipe-operacao img.destaque{
        float: left;
    }
}

@media screen and (min-width: 1200px){
    section#mapa img{
        width: 55%;
    }

    section#mapa article{
        margin-top: 30px;
        width: 42%;
        padding-right: 0;
    }

    section#mapa article h2{
        font-size: 42px;
    }

    section#familia h1{
        margin-top: 60px;
        width: 100%;
    }

    section#familia div.setores{
        width: 100%;
    }

    section#familia div#equipe-campo div.cont-equipe, section#familia div#equipe-rh div.cont-equipe{
        float: left;
        width: 50%;
    }
}

section#historia div#empresas .empresas-carousel{
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    padding: 10px 0 5px 0;
}

section#historia div#empresas .empresas-track{
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: empresas-scroll-4u 26s linear infinite;
}

section#historia div#empresas .empresas-carousel:hover .empresas-track{
    animation-play-state: paused;
}

section#historia div#empresas .marca{
    flex: 0 0 auto;
    width: 180px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
}

section#historia div#empresas .marca img{
    max-width: 145px;
    max-height: 62px;
    width: auto;
    height: auto;
    margin: 0;
    object-fit: contain;
}

@keyframes empresas-scroll-4u{
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 14px)); }
}

@media screen and (max-width: 767px){
    section#historia div#empresas .marca{
        width: 150px;
        height: 82px;
    }

    section#historia div#empresas .marca img{
        max-width: 122px;
        max-height: 52px;
    }
}
