article#servicos {
    display: flex;
    padding: 88px 7%;
    flex-direction: column;
    /* min-height: 77vh; */
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #012035;
}
article#servicos h2.widget-title {color: #fff !important;margin: 0 !important;}
article#servicos .descricao {
    color: var(--cor-secundaria);
    font-size: 44px;
    font-weight: 800;
    display: block;
    /* max-width: 455px; */
    margin: 0 0 77px;
}
.w-servicos-grid {
    display: flex;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas do mesmo tamanho */
    justify-content: space-between; /* distribui espaço horizontalmente */
    gap: 22px; /* sem gap, já que vamos espaçar com o próprio grid */
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

article#servicos .w-servicos-item {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border-radius: 11px;
    box-shadow: 0 0 25px rgba(0,0,0,1);
    width: 100%;
    max-width: 522px; /* largura máxima de cada item */
    height: auto;
    justify-self: start; /* padrão: alinhado à esquerda */
    border: 0px solid #ffffff54;
    flex: 1 1 50%;
}
article#servicos .w-servicos-item:hover {box-shadow: 0 0 25px rgba(0,0,0,1); background-color: #00365a}
.w-servicos-grid > :nth-child(2n) {
    justify-self: end !important; /* os itens da segunda coluna encostam na direita */
}


.w-servicos-icone {
    display: none;
    background-color: var(--cor-secundaria);
    position: absolute;
    left: 0px;
    top: 0;
    height: 88px;
    width: 111px;
    -webkit-mask-image: url('moldura-lozango.png');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../../images/mask.png');
    mask-size: 110%;
    mask-repeat: no-repeat;
    mask-position: -33px -33px;
     /* Garante que o vídeo preencha o container */
    z-index: 999; /* Fica sobre os outros elementos */
    box-shadow: 0 0 15px rgba(0,0,0,0.4); /* Moldura sombra opcional */
}
.w-servicos-icone img{position: relative;left: 11px;top: 11px;width: 41px;}
article#servicos .w-servicos-item .w-produto-content {
    position: relative;
    width: 100%;
    padding: 22px 22px;
}
article#servicos .w-servicos-item .w-produto-content h2,
article#servicos .w-servicos-item .w-produto-content h3 {font-weight: 900;color: var(--cor-secundaria) !important;padding: 0;}
article#servicos .w-servicos-item .w-produto-content p,
article#servicos .w-servicos-item .w-produto-content li {color: #fff !important}
article#servicos .w-servicos-item .w-produto-content ul {
    padding: 0 0 0 22px;
    margin: 0;
}
article#servicos a.bt {margin: 0px 0 0 0;padding: 3px 18px;font-size: 12px;}
article#servicos a.bt:hover {padding: 3px 28px !important;}
article#servicos .w-servicos-item .w-produto-content li {
    list-style: disc;
    padding: 0;
    margin: 0;
}
article#servicos .icone {
    display: block;
    width: 55px;
    height: 55px;
    overflow: hidden;
}

article#servicos .icone a {
    width: 100%;
    height: 100%;
}
article#servicos .icone a img {filter: brightness(0.5);}

article#servicos a.tit {
    color: #999;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}



article#servicos .resumo {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: -333px;
    left: 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px;
    color: #999;
    font-size: 14px;
    opacity: 0;
    transition-delay: 0.0s; /* ajuste o valor conforme necessário */
    text-align: center;
}
article#servicos .resumo img{ width:55px !important}

article#servicos .texto {
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%);
    transition-delay: 0.3s; /* ajuste o valor conforme necessário */
    text-align: center;
}
article#servicos .w-servicos-item > div:hover .texto {
    bottom: -50px;
    opacity: 1;
    transition-delay: 0.0s; /* ajuste o valor conforme necessário */
}
article#servicos .w-servicos-item > div:hover .resumo {
    bottom: 0px;
    opacity: 1;
    transition-delay: 0.3s;
}
article#servicos .bloco1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
article#servicos .bloco1 > *{
    text-align: center !important;
}

article#servicos .bloco2 {
    width: 100%;
     background-image: url(../../images/simbolo2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
	backdrop-filter: blur(5px);
}
.popup-box {
    background: #fff;
    padding: 30px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    position: relative;
    border: 22px solid #fff;
}
.popup-box:before {
    content: "";
    background-image: url(../../images/simbolo2.png);
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: 19%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}
.fechar-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/*------------------------------------*/
/*------------MOBILE-----------------*/
/*------------------------------------*/
@media (max-width: 700px) {
    article#servicos {
        flex-direction: column;
        padding: 40px 5%;
        min-height: auto;
    }

    article#servicos .descricao {
        font-size: 22px;
        max-width: 100%;
        /* text-align: center; */
        margin-bottom: 20px;
    }

    article#servicos .w-servicos-item {
        padding: 0px;
    }

    article#servicos .icone {
        width: 40px;
        height: 40px;
    }

    article#servicos a.tit {
        font-size: 16px;
    }

    article#servicos .resumo {
        padding: 12px;
        bottom: 0;
        opacity: 1;
        /* background-color: rgba(0, 0, 0, 0.6); */
        transition: none;
    }

    article#servicos .texto {
        display: none; /* Torna o elemento completamente invisível */
    }

    /* Impede que os links sejam clicáveis */
    article#servicos a {
        /* pointer-events: none; */ /* Desativa todos os eventos de clique */
        cursor: default; /* Altera o cursor para o padrão */
    }

    article#servicos .bloco1, 
    article#servicos .bloco2 {
        width: 100%;
    }
    .w-servicos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 colunas do mesmo tamanho */
    justify-content: space-between; /* distribui espaço horizontalmente */
    gap: 0px; /* sem gap, já que vamos espaçar com o próprio grid */
    width: 100%;
    margin: 0 auto;
}

article#servicos .w-servicos-item {
    width: 100%;
    max-width: 100%; /* largura máxima de cada item */
    height: auto;
    justify-self: start; /* padrão: alinhado à esquerda */
    border: 0px solid #ffffff54;
}

.w-servicos-grid > :nth-child(2n) {
    justify-self: end !important; /* os itens da segunda coluna encostam na direita */
}
    article#servicos .w-servicos-item .w-produto-content {
    padding: 22px 11px;
}
    .popup-box {
    padding: 0px;
    max-width: 90vw;
    max-height: 90vh;
}
    .popup-inner {
    position: relative;
    border: 3px solid #fff;
    padding: 11px;
}

span.fechar-popup {position: fixed;color: #fff;font-size: 47px;background-color: var(--cor-secundaria);border-radius: 100%;width: 44px;height: 44px;display: flex;justify-content: center;align-items: center;line-height: 0 !important;}
}



