:root {
    --azul-01: #29539C;
    --dourado: #D8AD36;
}

#home-slider-borda::after {
    z-index: 1;
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    min-height: 10px;
    background: linear-gradient(90deg, #2F539C 0%, #335599 14%, #405C91 30%, #556784 46%, #737772 62%, #9A8C5B 79%, #C8A43F 95%, #D8AD36 100%);
}

.elementor-element.destaque-subtitulo {
    display: flex;
    align-items: center;
}

.destaque-subtitulo::before {
    content: '';
    position: relative;
    display: block;
    width: 100%;
    max-width: 64px;
    height: 1px;
    background-color: var(--dourado);
}

#breadcrumbs span {
    gap: 32px;
    display: flex;
}

a#botao-contato-whatsapp {

    .elementor-button-content-wrapper{
        align-items: center;
    }
    .elementor-button-icon svg {
        height: 28px;
        width: 28px;
    }
}

.area-de-atuacao-grid {
    overflow: hidden;
}

.caixa-servicos {
    position: relative;
    cursor: pointer;
    transition: all .3s ease-in-out;
    max-height: 320px;
    overflow: hidden;
    

    &::after {
        position: absolute;
        content: "";
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, .6);
    }

    .servico-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 320px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        transition: transform .3s ease-in-out;
    }
    
    .el-capa {
        z-index: 2;
        opacity: 1;
        transition: opacity .4s ease-in-out;
    }

    .el-fundo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;                
        opacity: 0;
        z-index: 1;
        transition: opacity .4s ease-in-out;
    }

    &:hover {
        .servico-background {
            transform: scale(1.2);
        }
        .el-capa {
            z-index: 1;
            
            opacity: 0;
            transition: opacity .4s ease-in-out;
        }

        .el-fundo {
            z-index: 2;
            
            opacity: 1;
            transition: opacity .4s ease-in-out;
        }
    }
}

/* 
	911 -> tecnologia concreto    
	951 -> concreto massa	
	968 -> concreto aparente
    973 -> barragens
    978 -> patologia
    983 -> pesquisas  
    
*/

body.page-id-911 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.tecnologia-do-concreto) {
            display: none;
        }
    }
}

body.page-id-951 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.concreto-massa) {
            display: none;
        }
    }
}

body.page-id-968 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.concreto-aparente) {
            display: none;
        }
    }
}

body.page-id-973 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.seguranca-de-barragens) {
            display: none;
        }
    }
}

body.page-id-978 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.patologia-das-construcoes) {
            display: none;
        }
    }
}

body.page-id-983 {
    .consultorias {
        .e-loop-item.consultoria-grid:has(div.elementor-element.pesquisas-e-desenvolvimento) {
            display: none;
        }
    }
}

/* 
    799 -> edificações residenciais e comerciais
    844 -> barragens 
    873 -> complexos eolicos
    896 -> indústrias
    901 -> infrastrutura
    906 -> saneamento
*/
body.page-id-799 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.edificios) {
            display: none;
        }
    }
}

body.page-id-844 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.barragens) {
            display: none;
        }
    }
}

body.page-id-873 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.complexos-eolicos) {
            display: none;
        }
    }
}

body.page-id-896 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.industrias) {
            display: none;
        }
    }
}

body.page-id-901 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.infraestrutura) {
            display: none;
        }
    }
}

body.page-id-906 {
    .areas-atuacao {
        .e-loop-item.area-de-atuacao-grid:has(div.elementor-element.saneamento) {
            display: none;
        }
    }
}

/* body.page-child {
    .elementor-element.elementor-position-inline-start.elementor-widget.elementor-widget-icon-box {
        .elementor-icon-box-wrapper {            
            .elementor-icon-box-icon {                
                span.elementor-icon svg {
                    margin-top: 10px;
                                     
                }
            }
            .elementor-icon-box-content {
                .elementor-icon-box-title {
                    margin-block-start: 0px;
                }
            }
        }

    }
} */

body.page-child .elementor-widget-icon-box .elementor-icon-box-icon svg {
    margin-top: 10px;
}

body.page-child .elementor-widget-icon-box .elementor-icon-box-title {
    margin-block-start: 0;
}



/* Formulário Contato - Fluent Forms */
form.fluent_form_1 {
    input[type="text"], input[type="email"], textarea, select {
        font-family: "Plus Jakarta Sans", sans-serif !important;
        border-color: var(--azul-01) !important;
        color: var(--azul-01) !important;
        padding: 14px 16px !important;

        &::placeholder {
            color: var(--azul-01) !important;
        }
    }

    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;

        /* Ícone na posição normal */
        background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.0233 7.14798L9.39828 12.773C9.34604 12.8253 9.284 12.8668 9.21572 12.8951C9.14743 12.9234 9.07423 12.9379 9.00031 12.9379C8.92639 12.9379 8.8532 12.9234 8.78491 12.8951C8.71662 12.8668 8.65458 12.8253 8.60234 12.773L2.97734 7.14798C2.8718 7.04243 2.8125 6.89927 2.8125 6.75001C2.8125 6.60074 2.8718 6.45759 2.97734 6.35204C3.08289 6.24649 3.22605 6.18719 3.37531 6.18719C3.52458 6.18719 3.66773 6.24649 3.77328 6.35204L9.00031 11.5798L14.2273 6.35204C14.2796 6.29978 14.3417 6.25832 14.4099 6.23004C14.4782 6.20175 14.5514 6.18719 14.6253 6.18719C14.6992 6.18719 14.7724 6.20175 14.8407 6.23004C14.909 6.25832 14.971 6.29978 15.0233 6.35204C15.0755 6.4043 15.117 6.46634 15.1453 6.53463C15.1736 6.60291 15.1881 6.6761 15.1881 6.75001C15.1881 6.82392 15.1736 6.8971 15.1453 6.96539C15.117 7.03367 15.0755 7.09571 15.0233 7.14798Z' fill='%2329539C'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 20px center !important;
        padding-right: 48px !important;
    }

    /* Troca a imagem apenas quando aberto */
    select.is-open {
        background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg' style='transform: rotate(180deg);'%3E%3Cpath d='M15.0233 7.14798L9.39828 12.773C9.34604 12.8253 9.284 12.8668 9.21572 12.8951C9.14743 12.9234 9.07423 12.9379 9.00031 12.9379C8.92639 12.9379 8.8532 12.9234 8.78491 12.8951C8.71662 12.8668 8.65458 12.8253 8.60234 12.773L2.97734 7.14798C2.8718 7.04243 2.8125 6.89927 2.8125 6.75001C2.8125 6.60074 2.8718 6.45759 2.97734 6.35204C3.08289 6.24649 3.22605 6.18719 3.37531 6.18719C3.52458 6.18719 3.66773 6.24649 3.77328 6.35204L9.00031 11.5798L14.2273 6.35204C14.2796 6.29978 14.3417 6.25832 14.4099 6.23004C14.4782 6.20175 14.5514 6.18719 14.6253 6.18719C14.6992 6.18719 14.7724 6.20175 14.8407 6.23004C14.909 6.25832 14.971 6.29978 15.0233 6.35204C15.0755 6.4043 15.117 6.46634 15.1453 6.53463C15.1736 6.60291 15.1881 6.6761 15.1881 6.75001C15.1881 6.82392 15.1736 6.8971 15.1453 6.96539C15.117 7.03367 15.0755 7.09571 15.0233 7.14798Z' fill='%2329539C'/%3E%3C/svg%3E") !important;
    }

    button[type="submit"] {
        padding: 16px 24px;
        background: #FFF !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    button[type="submit"]::after{
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.6002 8.00006L3 8.00006' stroke='black' stroke-width='1.5' stroke-linecap='square'/%3E%3Cpath d='M8.9668 3.98369L13.0001 7.99969L8.9668 12.0164' stroke='black' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
        transition: transform 0.2s ease;
    }

    button[type="submit"]:hover::after {
        transform: translateX(3px);
    }
}

/* Case Infos Shortcode */

.slider-cases {
    .elementor-element.elementor-widget.elementor-widget-shortcode {
        width: 100%;
    }
    .case-infos {
        position: absolute; z-index: 9999; display: flex; flex-direction: column; gap: 6px; width: max-content;
        @media (max-width: 576px) {
                width: auto;
            }

        &.posicao-superior {
            top: 75px;
            @media (max-width: 576px) {
                top: 0px;
            }
        }
    
        &.posicao-inferior {
            bottom: 75px;
            @media (max-width: 576px) {
                bottom: 0px;
            }
        }
    
        &.posicao-esquerda {
            left: 40px;
            @media (max-width: 576px) {
                left: 0px;
            }
        }
    
        &.posicao-direita {
            right: 40px;
            align-items: flex-end;
            @media (max-width: 576px) {
                right: 0px;
            }
        }
    
        .titulo {
            background-color: var(--azul-01);
            padding: 1px 10px;
            width: fit-content;
            .titulo-texto {
                font-family: "Plus Jakarta Sans", sans-serif !important;
                font-weight: 700;            
                font-size: 16px;
                line-height: 24px;
                color: #FFFFFF;
            }
        }
        .info-adicional {
            background-color: var(--azul-01);
            padding: 1px 10px;
            width: fit-content;
            .info-adicional-texto {
                font-family: "Plus Jakarta Sans", sans-serif !important;
                font-weight: 400;            
                font-size: 14px;
                line-height: 20px;
                color: #FFFFFF;
            }
        }
    }
}



