* {
    font-size: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box; /* Inclui padding e borda no cálculo de largura e altura */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
}
body {
    background-image: url('img/servicosWallpapeTela.png');
    background-size: 100vw;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    overflow-y: scroll;        /* mantém a rolagem funcional */
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE e Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Edge, Opera */
}

header {
    /* background: linear-gradient(to right, white, rgba(255, 255, 255, 0)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.406), rgba(255, 255, 255, 0.588)); */
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
}
header div {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whatsapp {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%; /* Faz com que a borda seja circular */
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp img {
    width: 60px;
    transition: transform 0.3s ease;
}

.whatsapp img:hover {
    transform: scale(1.1);
}

/* Animação de borda piscante */
@keyframes borderBlink {
    0%, 100% {
        filter: drop-shadow(0px 0px 10px  rgba(255, 255, 255, 0.339));

    }
    50% {
        filter: drop-shadow(0px 0px 10px  rgb(255, 255, 255));
    }
}

/* Classe para aplicar a animação */
.blinking-border {
    animation: borderBlink 1s infinite;
}
.ephitex {
    background-color: #dcdcdc;
    padding: 2rem .5rem;
    width: 10rem; 
    height: auto; 
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.307));
    transform-origin: top;
    animation: slideFromTop 0.8s ease-out forwards;
    opacity: 0; /* começa invisível */
}

@keyframes slideFromTop {
    0% {
        transform: translateY(-50px); /* começa acima */
        opacity: 0;
    }
    100% {
        transform: translateY(0);     /* posição original */
        opacity: 1;
    }
}
.menu-navegacao{
    background-color: #dcdcdc;
    padding: .5rem 2rem;
}
.menu-navegacao a {
    position: relative;
    text-decoration: none;
    color: #33414c;
    margin-right: 1.5rem;  
    font-size: 1rem;
}

.menu-navegacao a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajusta conforme o espaçamento desejado */
    width: 0;
    height: 2px;
    background-color: #33414c;
    transition: width 0.3s ease;
}

.menu-navegacao a:hover::after {
    width: 100%;
}

.menu-navegacao a:hover {
    color: #17222a;
}

.menu-versao-mobile{
    display: none;
}
.animatable-image {
    display: none;
}
.animatable-image-tela {
    width: 50%;
    height: auto;
    animation: slideInImage 1.6s ease-out forwards; /* Animação da imagem */
    margin-top: 2rem;
}

@keyframes slideInImage {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* SERVIÇOS BOX  */
.sec-serv{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sec-serv-div{
    width: 70%;
    height: auto;
    background: #242f38ce;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding-top: 8rem;
}
.box-intro {
    padding-top: 1rem;
    padding-left: 6rem;
    animation: slideInFromLeft 1.2s ease-in-out forwards; /* Duração de 2 segundos, suavização com ease-in-out */
}
/* Animação para mover o elemento da esquerda para a direita */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-10%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.box-tela {
    width: 90%;
    max-width: 1500px; 
    padding: 2rem;
}

.box-intro h2 {
    font-size: 1.4rem; 
    color: white;
    text-align: left;
    margin-bottom: 1rem;
}

.box-intro p {
    color: rgb(222, 222, 222);
    font-size: 1.1rem;
    text-align: left;
    width: 80%;
    z-index: 1;
}
/* GRID SERVIÇOS  */
.grid-container {
    width: 100%;
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, 440px);
    justify-content: center;
    justify-items: center;  
    align-items: center;
    padding: 2rem;
    margin-top: 1.1rem;
}
.grid-container  img {
    width: 100px;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.198));
}
.grid-container .grid-container-caixa{
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.385); /* Define a sombra */
    background: #283f4bb4;
    padding: 1.5rem 2rem;
    grid-gap: 15px;
    display: flex;
    justify-content: center;
    justify-items: center; 
    align-items: center;
    border-radius: 10px;
    height: 150px; 
}
.grid-container-texto {
    display: flex;
    flex-direction: column;
}
.titulo {
    color: white;
    font-size: 1.1rem;
}
p {
    font-size: 0.9rem;
    color: #b5b3b3;
    text-align: left; 
}
.espaco{
    height: 120px;
}

/* ----------------------------------------------------- */
/* MODULOS 1  */
/* ----------------------------------------------------- */
.modulos1 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    border-radius: 8px;
    background-color: #2a3a4a;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 2rem;
    height: auto;
    color: #dcdcdc;
}
.mod-titulo {
    background-color: #242F3A;
    width: 100%;
    border-radius: 5px;
    padding: 1rem;
}

.modulos1 .mobile-imagem{
    display: none;
}
.modulos1 .desktop-imagem{
    max-width: 100%;
}
.sep-modulos1 {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    justify-items: center;  
    align-items: center;
    position: relative;
}

.sep-modulos1 div {
    background-color: #242F3A;
    padding: 1rem;
    height: 180px;
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sep-modulos1 div p {
    font-size: .8rem;
    color: #8D8D8D;
    margin-top: 1.5rem;
}


/* ----------------------------------------------------- */
/* MODULOS 2  */
/* ----------------------------------------------------- */
.modulos2 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    border-radius: 8px;
    background-color: #2a3a4a;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 2rem;
    height: auto;
    color: #dcdcdc;
}
.sep-mod-2 {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.mod-titulo {
    background-color: #242F3A;
    width: 100%;
    border-radius: 5px;
    padding: 1rem;
}
.modulos2 .desktop-imagem{
    width: 58%;
    height: 370px;
    object-fit: cover;
    border-radius: 8px;
}
.modulos2 .mobile-imagem{
    display: none;
}
.sep-modulos2 {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    justify-items: center;  
    align-items: center;
    position: relative;
}

.sep-modulos2 div {
    background-color: #242F3A;
    padding: 1rem;
    height: 180px;
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
}
.sep-modulos2 div p {
    font-size: .8rem;
    color: #8D8D8D;
    margin-top: 1.5rem;
}

/* ----------------------------------------------------- */
/* MODULOS 3  */
/* ----------------------------------------------------- */
.modulos3-mobile{
    display: none;
}
.modulos3 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    border-radius: 8px;
    background-color: #2a3a4a;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 2rem;
    height: auto;

    color: #dcdcdc;
}
.mod-titulo {
    background-color: #242F3A;
    width: 100%;
    border-radius: 5px;
    padding: 1rem;
}
.modulos3 .desktop-imagem{
    max-width: 100%;
}
.modulos3 .mobile-imagem{
    display: none;
}

.sep-modulos3 {
    display: grid;
    height: 0;
    grid-gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;  
    align-items: center;
    position: relative;
    left: 5px;
}

.sep-modulos3 div {
    width: 220px;
    height: 170px;
    background-color: #242F3A;
    padding: .5rem;
    border-radius: 5px;
    position: relative;
    top: -195px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sep-modulos3 div p {
    font-size: .8rem;
    color: #8D8D8D;
    margin-top: 1.5rem;
}



/* FOOTER  */
footer {
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    width: 100%;
    background-color: #171f2783;
    height: 100px;
    padding: 0 15rem 0 15rem;
}
footer div {
    display: flex;
    flex-direction: column;
}

footer h3 {
    margin-bottom: 2px;
}

footer h2 {
    font-size: 0.8rem;
}
footer h3 {
    font-size: .7rem;
    margin-bottom: .6rem;
}
footer .siganos{
    margin-bottom: .6rem;
}
.linkedin {
    width: 2rem;
    padding-top: .2rem;
}


/* --------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------- */
/*                       Estilos específicos para dispositivos móveis                      */
/* --------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------- */

@media only screen and (max-width: 850px) {
    body {
        background-color: rgb(51, 68, 83);
        background-image: url('img/servicosWallpaper.png');
        background-size: auto;
        background-size: 100vh;
        background-repeat: no-repeat;
        background-position: top center;
    }
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    /* --------------------------------------------- */
    /* HEADER */
    /* --------------------------------------------- */

    header {
        background-color: #dcdcdc;
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 46%;
    }
    header div {
        width: 100%;
        display: block;
    }
    .animatable-image-tela{
        display: none;
    }
    .animatable-image {
        width: 100%;
        display: flex;
        height: auto;
        animation: slideInImage 1.6s ease-out forwards; /* Animação da imagem */
        margin-top: 3rem;
    }
    @keyframes slideInImage {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* --------------------------------------------- */
    /* SERVIÇOS BOX  */
    /* --------------------------------------------- */

    .sec-serv{
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .sec-serv-div{
        width: 100%;
        height: auto;
        background: #242f38ce;
        justify-content: center; 
        align-items: center; 
        text-align: center;
        padding-top: 8rem;
    }

    .servicos-grid img{
        display: none;
    }
    .menu-navegacao{
        display: none;
    }
    .menu-versao-mobile{
        display: inline-block;
    }
    .ephitex {
        width: 10rem; 
        background-color: #ffffff00;
        filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.307));
        height: 100px;
        object-fit: cover;
        transform-origin: center; /* Define o ponto de origem da transformação no centro */
        animation: growLogo 1s ease-out forwards; /* Animação do logo */
    }

    /* Animação do logo Ephitex */
    @keyframes growLogo {
        0% {
            transform: scale(0.1); /* Começa pequeno */
            opacity: 0; /* Invisível no início */
        }
        100% {
            transform: scale(1); /* Tamanho normal */
            opacity: 1; /* Totalmente visível no final */
        }
    }

    nav {
        display: flex;
        align-items: center;
    }

    .hamburguer-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 101;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #33414c;
        margin: 3px 0;
        transition: transform 0.3s ease;
    }

    .menu-mobile {
        display: none;
        position: absolute;
        width: 50%;
        top: 33%;
        right: 0;
        background-color: #242f38;
        padding: 10px;
        border-radius: 5px;
        z-index: 100;
        margin-right: .5rem;
    }

    .menu-mobile a {
        font-size: 1.4rem;
        padding: .8rem;
    }

    .menu-mobile.active {
        display: block;
    }

    .menu-mobile ul {
        list-style-type: none;
    }

    .menu-mobile ul li {
        margin-bottom: 20px;
    }

    .menu-mobile ul li:first-child {
        margin-top: 20px;
    }

    .menu-mobile ul li a {
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .menu-mobile ul li a:hover {
        color: #adc265;
        border-radius: 5px;
    }
    
    /*-----------------------------------------------------*/
    /* SERVIÇOS BOX  */
    /*-----------------------------------------------------*/
    .box-intro {
        padding: 1rem;
        margin-top: 0rem; 
        height: 120px;
        opacity: 0; /* Começa invisível */
        animation: fadeInUp 1s ease-out forwards; /* Animação de fadeIn */
        text-align: left;
    }
    .box-intro h2 {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 1rem;
        text-align: left;
    }
    .box-intro p {
        color: rgb(222, 222, 222);
        text-align: left;
        font-size: 1.3rem;
    }

    /* Animação de fadeIn para a caixa de introdução */
    @keyframes fadeInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /*-----------------------------------------------------*/
    /* GRID SERVIÇOS  */
    /*-----------------------------------------------------*/

    .grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .grid-container div:nth-child(odd) {
        background: #335263b4;
    }
    .grid-container div {
        padding: .4rem;
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .grid-container .grid-container-caixa {
        box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.385); /* Define a sombra */
        background: #283f4bb4;
        padding: .5rem .3rem;
        grid-gap: 15px;
        display: flex;
        justify-content: center;
        justify-items: center; 
        align-items: center;
        border-radius: 10px;
        height: auto; 
    }
    .grid-container-texto {
        gap: 10px;
    }
    .grid-container img {
        width: 8rem;
        padding-top: .5rem;
    }
    .titulo {
        color: white;
        font-size: 1.3rem;
        text-align: center;
    }
    p {
        text-align: left;
        font-size: .9rem;
    }


    /* ----------------------------------------------------- */
    /* MODULOS 1  */
    /* ----------------------------------------------------- */
    .modulos1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: #2a3a4a;
        gap: 1rem;
        padding: 1rem;
        margin: 1rem 2rem;
        height: auto;
        color: #dcdcdc;
    }
    .mod-titulo {
        background-color: #242F3A;
        width: 100%;
        border-radius: 5px;
        padding: 1rem;
    }
    .modulos1 .mobile-imagem{
        width: 100%;
        display: block;
    }
    .modulos1 .desktop-imagem{
        display: none;
    }
    .sep-modulos1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .sep-modulos1 div {
        background-color: #242F3A;
        padding: 1rem;
        height: auto;
        border-radius: 5px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .sep-modulos1 div p {
        font-size: .8rem;
        color: #8D8D8D;
        margin-top: 1.5rem;
    }

    /* ----------------------------------------------------- */
    /* MODULOS 2  */
    /* ----------------------------------------------------- */
    .modulos2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: #2f4e6d;
        gap: 1rem;
        padding: 1rem;
        margin: 1rem 2rem;
        height: auto;
        color: #dcdcdc;
    }
    .sep-mod-2 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .mod-titulo {
        background-color: #242F3A;
        width: 100%;
        border-radius: 5px;
        padding: 1rem;
    }
    .modulos2 .mobile-imagem{
        width: 100%;
        display: block;
    }
    .modulos2 .desktop-imagem{
        display: none;
    }
    .sep-modulos2 {
        display: flex;
        grid-gap: 12px;
        flex-direction: column;
        justify-content: center;
        justify-items: center;  
        align-items: center;
    }

    .sep-modulos2 div {
        background-color: #242F3A;
        padding: 1rem;
        height: auto;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .sep-modulos2 div p {
        font-size: .8rem;
        color: #8D8D8D;
        margin-top: 1.5rem;
    }

    /* ----------------------------------------------------- */
    /* MODULOS 3  */
    /* ----------------------------------------------------- */
    .modulos3 {
        display: none;
    }

    /* ----------------------------------------------------- */
    /* MODULOS 3 - VERSÃO ESPECIAL SOMENTE MOBILE  */
    /* ----------------------------------------------------- */

    #mobile-mod-3 {
        background-color: #2f4e6d;
    }
    .modulos3-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: #2a3a4a;
        gap: 1rem;
        padding: 1rem;
        margin: 1rem 2rem;
        height: auto;
        color: #dcdcdc;
    }
    .mod-titulo {
        background-color: #242F3A;
        width: 100%;
        border-radius: 5px;
        padding: 1rem;
    }
    .modulos3-mobile .mobile-imagem{
        width: 100%;
        display: block;
    }
    .modulos3-mobile .desktop-imagem{
        display: none;
    }
    .sep-modulos3-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 1rem;
    }

    .sep-modulos3-mobile div {
        background-color: #242F3A;
        padding: 1rem;
        height: auto;
        border-radius: 5px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .sep-modulos3-mobile div p {
        font-size: .8rem;
        color: #8D8D8D;
        margin-top: 1.5rem;
    }



    /* ----------------------------------------------------- */
    /* FOOTER  */
    /* ----------------------------------------------------- */

    footer {
        color: white;
        padding: 1.5rem;
        display: flex; /* Usar flex em vez de absolute */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100px;
    }

    footer div {
        display: flex;
        flex-direction: column;
    }

    footer h2, footer h3 {
        margin-bottom: 5px;
    }

    footer h2 {
        font-size: 1.3rem;
    }

    .linkedin {
        width: 2.6rem;
        padding-top: .2rem;
    }
    
}
