
html,
body { background: var(--corCinzaBody); }




#bgGridServicos {
    width: 100%;
    height: auto;
    padding: 70px 0 100px 0;
    background: url(../images/bg-grid.jpg) center no-repeat;
    background-size: cover;
}

#bgGridServicos h1 {
    display: block;
    text-align: center;
    color: var(--corBranco);
    margin-bottom: 50px;
    font-size: var(--sizeText36);
    line-height: var(--sizeText36);
}

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}    
.parent .boxServicoAncoraTopo:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.parent .boxServicoAncoraTopo:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
.parent .boxServicoAncoraTopo:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
.parent .boxServicoAncoraTopo:nth-child(4) { grid-area: 1 / 3 / 2 / 4; }
.parent .boxServicoAncoraTopo:nth-child(5) { grid-area: 2 / 3 / 3 / 5; }
.parent .boxServicoAncoraTopo:nth-child(6) { grid-area: 1 / 4 / 2 / 5; }
.parent .boxServicoAncoraTopo:nth-child(7) { grid-area: 1 / 5 / 3 / 6; }
.parent .boxServicoAncoraTopo {
    width: 98%;
    margin: 0.5% 1%;
}

.parent .boxServicoAncoraTopo:nth-child(3) .capaServicoAncoraTopo,
.parent .boxServicoAncoraTopo:nth-child(7) .capaServicoAncoraTopo { height: 410px; }

.capaServicoAncoraTopo {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.capaServicoAncoraTopo img {
    width: 100%;
	height: 100%;
	object-fit: cover;
    transition: .5s;
}

.bgBoxGrid {
    position: absolute;
    inset: 0;
    background: rgba(000, 000, 000, 0.7);
    color: var(--corBranco);    
}

.bgBoxGrid a {
    display: block;
    position: absolute;
    inset: 0;
}

.bgBoxGrid a div {
    position: absolute;
    bottom: 0;
    padding: 24px;
    color: var(--corBranco);    
}

.bgBoxGrid a div h2 {
    font-weight: 800;
    font-size: var(--sizeText22);
    transition: .5s;
}

.bgBoxGrid a div span {
    font-weight: 400;
    margin-top: 5px;
    display: block;
    font-size: var(--sizeText13);
    display: flex;
    align-items: center;
}

.bgBoxGrid a div span i {
    color: var(--corVerde2);
    margin: 2px 0 0 5px;
}

.capaServicoAncoraTopo:hover .bgBoxGrid a div h2 {
    color: var(--corVerde2);
}

.capaServicoAncoraTopo:hover img {
    transform: scale(1.03);
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray; /* IE */
}





.tituloServicos {
    width: 100%;
    height: auto;
}

.tituloServicos h3 {
    font-size: var(--sizeText24);
    line-height: var(--sizeText24);
    font-weight: 800;
    color: var(--corCinzaEscuroTexto);
}

.tituloServicos span {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--corPadraoBorda);
    margin: 10px 0 20px 0;
}


.containerBlocoServicos {
    width: 100%;
    height: auto;
    padding: 50px 0
}

.containerBlocoServicos .blocoServicos {
    width: 90%;
    max-width: 1100px;
    margin: 25px auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;  
}

.imgServico {
    width: 40%;
    max-height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 1px 15px 0px rgba(000, 000, 000, 0.05); 
}

.imgServico img {
    width: 100%;
	height: 100%;
	object-fit: cover;
}

.imgServico > video {
    position: relative;
    top: 0;
    left: 0;
    height: 350px;
    width: 100%;
    object-fit: cover; 
}

.textoDescricaoServico {
    width: 59%;
    padding: 50px; 
    border-radius: 10px;
    background: var(--corBranco);
    overflow: hidden;
    box-shadow: 0px 1px 15px 0px rgba(000, 000, 000, 0.05); 
    display: flex;
    flex-direction: row;
    align-items: center;
}

.textoDescricaoServico p {
    font-size: var(--sizeText14);
    line-height: var(--sizeText18);
    font-weight: 400;
    color: var(--corCinzaClaroTexto);
    margin: 10px 0;
}


.containerBlocoServicos .blocoServicos:nth-child(2) .imgServico,
.containerBlocoServicos .blocoServicos:nth-child(4) .imgServico,
.containerBlocoServicos .blocoServicos:nth-child(6) .imgServico,
.containerBlocoServicos .blocoServicos:nth-child(8) .imgServico,
.containerBlocoServicos .blocoServicos:nth-child(10) .imgServico,
.containerBlocoServicos .blocoServicos:nth-child(12) .imgServico {
    order: -1;
}

/* FIM ANDAR UM */







/* CSS RESPONSIVO */

@media (max-width: 1100px) {
    
    .parent {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
    .parent .boxServicoAncoraTopo:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
    .parent .boxServicoAncoraTopo:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
    .parent .boxServicoAncoraTopo:nth-child(4) { grid-area: 2 / 1 / 3 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(5) { grid-area: 2 / 3 / 3 / 4; }
    .parent .boxServicoAncoraTopo:nth-child(6) { grid-area: 3 / 1 / 4 / 2; }
    .parent .boxServicoAncoraTopo:nth-child(7) { grid-area: 3 / 2 / 4 / 4; }

    .capaServicoAncoraTopo {
        width: 100%;
        height: 250px;
    }
    .parent .boxServicoAncoraTopo:nth-child(3) .capaServicoAncoraTopo,
    .parent .boxServicoAncoraTopo:nth-child(7) .capaServicoAncoraTopo { height: 250px; }
}



@media (max-width: 800px) {

    #bgGridServicos {
        width: 100%;
        height: auto;
        padding: 50px 0;
    }
        
    .parent {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
    .parent .boxServicoAncoraTopo:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
    .parent .boxServicoAncoraTopo:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(3) { grid-area: 2 / 1 / 3 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }
    .parent .boxServicoAncoraTopo:nth-child(5) { grid-area: 3 / 2 / 4 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(6) { grid-area: 4 / 1 / 5 / 3; }
    .parent .boxServicoAncoraTopo:nth-child(7) { grid-area: 5 / 1 / 6 / 3; }
    .parent .boxServicoAncoraTopo {
        width: 98%;
        height: auto;
        margin: 0.5% 1%;
    }

    .capaServicoAncoraTopo {
        width: 100%;
        height: 200px;
    }

    .parent .boxServicoAncoraTopo:nth-child(3) .capaServicoAncoraTopo,
    .parent .boxServicoAncoraTopo:nth-child(7) .capaServicoAncoraTopo { height: 200px; }

    /* -------------------------- */
    
    .bgBoxGrid a div {
        position: absolute;
        bottom: 0;
        padding: 15px;
        color: var(--corBranco);    
    }
    
    .bgBoxGrid a div h2 {
        font-size: var(--sizeText18);
    }
    


    .containerBlocoServicos {
        width: 100%;
        height: auto;
        padding: 50px 0
    }
    
    .containerBlocoServicos .blocoServicos {
        width: 90%;
        max-width: 1100px;
        margin: 25px auto;
        flex-wrap: wrap;  
    }
    
    .imgServico {
        width: 100%;
        max-height: 200px;
        border-radius: 10px 10px 0 0;
        order: -1;
    }
    
   
    .textoDescricaoServico {
        width: 100%;
        padding: 30px; 
        border-radius: 0 0 10px 10px;
    }
    
    
}


