/* ==================================================
SOMA LOTEAMENTOS
ABERTURA PÁGINA A SOMA
================================================== */


/* ==================================================
SEÇÃO
================================================== */

.soma-topo {

    position: relative;

    width: 100%;

    height: 570px;

    margin-top: 82px;

    overflow: hidden;

    background-color: #222222;

}


/* ==================================================
IMAGEM
================================================== */

.soma-topo-imagem {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: url("../img/soma/soma-topo.jpg");

    background-repeat: no-repeat;

    background-position: center center;

    background-size: cover;

    transform: scale(1.06);

    transition: transform 1.6s ease;

}


/* IMAGEM ENTRANDO */

.soma-topo.soma-topo-ativo .soma-topo-imagem {

    transform: scale(1);

}


/* ==================================================
OVERLAY
================================================== */

.soma-topo-overlay {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.32);

    z-index: 1;

}


/* ==================================================
CONTAINER
================================================== */

.soma-topo-container {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 90%;
    max-width: 1180px;

    height: 100%;

    margin: 0 auto;

}


/* ==================================================
TÍTULO
================================================== */

.soma-topo-titulo {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

}


/* ==================================================
GRUPO SOMA
================================================== */

.soma-topo-titulo h1 {

    margin: 0 28px;

    font-family: 'Oswald', Arial, Helvetica, sans-serif;

    font-size: 68px;

    line-height: 1;

    font-weight: 600;

    letter-spacing: 7px;

    text-align: center;

    text-transform: uppercase;

    color: #ffffff;


    /* POSIÇÃO ANTES DA ANIMAÇÃO */

    opacity: 0;

    transform: translateY(55px);

}


/* ==================================================
LINHAS
================================================== */

.soma-topo-linha {

    display: block;

    width: 0;

    height: 2px;

    background-color: #99C339;

    opacity: 0;

}


/* ==================================================
ANIMAÇÃO DO TÍTULO
================================================== */

.soma-topo.soma-topo-ativo .soma-topo-titulo h1 {

    opacity: 1;

    transform: translateY(0);

    letter-spacing: 4px;

    transition:
        opacity 0.8s ease 0.35s,
        transform 0.8s ease 0.35s,
        letter-spacing 1.1s ease 0.35s;

}


/* ==================================================
ANIMAÇÃO DAS LINHAS
================================================== */

.soma-topo.soma-topo-ativo .soma-topo-linha {

    width: 85px;

    opacity: 1;

    transition:
        width 0.8s ease 0.8s,
        opacity 0.5s ease 0.8s;

}


/* ==================================================
TABLET
================================================== */

@media screen and (max-width: 900px) {

    .soma-topo {

        height: 500px;

        margin-top: 72px;

    }


    .soma-topo-titulo h1 {

        margin-left: 22px;
        margin-right: 22px;

        font-size: 56px;

        letter-spacing: 6px;

    }


    .soma-topo.soma-topo-ativo .soma-topo-titulo h1 {

        letter-spacing: 3px;

    }


    .soma-topo.soma-topo-ativo .soma-topo-linha {

        width: 60px;

    }

}


/* ==================================================
MOBILE
================================================== */

@media screen and (max-width: 600px) {

    .soma-topo {

        height: 500px;

        margin-top: 72px;

    }


    .soma-topo-imagem {

        background-image: url("../img/soma/soma-topo-mb.jpg");

        background-position: center center;

    }


    .soma-topo-overlay {

        background-color: rgba(0, 0, 0, 0.36);

    }


    .soma-topo-container {

        width: 88%;

    }


    .soma-topo-titulo h1 {

        margin-left: 15px;
        margin-right: 15px;

        font-size: 40px;

        letter-spacing: 4px;

        white-space: nowrap;

    }


    .soma-topo.soma-topo-ativo .soma-topo-titulo h1 {

        letter-spacing: 2px;

    }


    .soma-topo.soma-topo-ativo .soma-topo-linha {

        width: 35px;

    }

}


/* ==================================================
MOBILE PEQUENO
================================================== */

@media screen and (max-width: 380px) {

    .soma-topo-titulo h1 {

        margin-left: 10px;
        margin-right: 10px;

        font-size: 34px;

    }


    .soma-topo.soma-topo-ativo .soma-topo-linha {

        width: 25px;

    }

}