
/* RESET BÁSICO */

html { scroll-behavior: smooth; }

@font-face {
    font-family: 'Soleto';
    src: url('../fonts/soleto-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soleto';
    src: url('../fonts/soleto-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soleto';
    src: url('../fonts/soleto-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

#btn-topo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;           /* começa escondido */
  z-index: 9999;
}

#btn-topo img {
  width: 50px;             /* ajuste conforme seu design */
  height: auto;
  display: block;
  cursor: pointer;
}

template { transition: opacity 0.5s ease; }

header, nav, ul, li, a, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* HEADER GERAL */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 999;
    overflow: hidden;
}


.social-icon { aspect-ratio: 1; width: 36px; margin-left: 10px; display: flex; align-items: center; }
.social-icon img { aspect-ratio: 1; width: 36px !important; }
.social-icon-linkedin { aspect-ratio: 1; width: 30px !important; margin-left: 10px; display: flex; align-items: center; }
.social-icon-linkedin img { aspect-ratio: 1; width: 30px !important; }
.logo_header_mobile { display: none; }


/* LINHA 1 - DESKTOP E MOBILE */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    height: 50px;
}

.header-links { display: flex; align-items: center; justify-content: flex-end; }

.header-top img, .nav-desktop img {
    width: 135px;
    height: auto;
    margin: 20px 0;
}

.header-top .buscar-vagas {
    background: white;
    border-radius: 5px;
    border: 2px solid #CBCBCB;
    padding: 10px 18px;
    color: #5c007a;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    letter-spacing: .5px !important;
    font-size: 18px;
}
.left { display: flex; align-items: center; column-gap: 20px }

/* BOTÃO MENU HAMBURGUER (VISIBLE ONLY IN MOBILE) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* MENU DESKTOP (A PARTIR DE 1024PX) */
.nav-desktop {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #EDEDED;
    background: #ffffff;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-desktop ul li a {
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    display: inline-block;
    color: #6d2077;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 13px;
}

.nav-desktop ul li a:hover {
    background: #EDEDED;
}

/* MENU MOBILE FINAL */
.nav-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    opacity: 1;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    max-width: 300px;
}

.nav-mobile.open {
    left: 0;
}

.nav-mobile .close-btn {
    display: block;
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile ul li {
    margin-bottom: 5px;
}

.nav-mobile ul li a {
    color: #626262;
    text-decoration: none;
    font-weight: 400;
    display: block;
    padding: 5px 0;
}

/* RESPONSIVO - ATÉ 1024PX */


@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-top {
        height: 50px;
        padding: 10px 5%;
    }

.social-icon, .social-icon-linkedin { display: none; }
.logo_header_mobile { display: initial; }


}


.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.3s ease;
    opacity: 1;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    max-width: 300px;
}

.nav-mobile.open {
    transform: translateX(0);
}

.nav-mobile .close-btn {
    display: block;
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile ul li {
    margin-bottom: 10px;
}

.nav-mobile ul li a {
    color: #6d2077;
    text-decoration: none;
    font-weight: 400;
    display: block;
    padding: 10px 0;
}

/* MOBILE LANDSCAPE ATÉ 750PX - 3 colunas + 80% largura */
@media (min-width: 569px) and (max-width: 750px) and (orientation: landscape) {
    .nav-mobile {
        width: 80%;
        max-width: none;
    }

    .nav-mobile ul {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-mobile ul li {
        width: 33.33%;
        margin-bottom: 10px;
    }

    .nav-mobile ul li a {
        padding: 8px;
        display: block;
    }
}

/* DE 751px ATÉ 1024px - Volta para 1 coluna */
@media (min-width: 751px) and (max-width: 1024px) {
    .nav-mobile {
        width: 70%;
        max-width: 300px;
    }

    .nav-mobile ul {
        display: block;
    }

    .nav-mobile ul li {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* menu desktop a partir de 1024px até 1320px */
@media (min-width: 1024px) and (max-width: 1320px) {

    .nav-desktop { padding: 10px 2%; }
    .nav-desktop ul { padding-right: 2%; }

}

/* menu desktop a parti de 1320px */
@media (min-width: 1320px) {
    .nav-desktop ul li a {
        font-size: 14px !important;
        font-weight: 300;
        padding: 0 10px;
    }
    
    .header-top, .nav-desktop { max-width: 1280px; margin: 0 auto; padding: 10px 0; }
    .nav-desktop ul li a { font-size: 14px; }
    .nav-desktop ul { padding-right: 0; }

}


/* PAGE SPEEDY */

[data-page-speedy] {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
}

[data-page-speedy].visible {
  opacity: 1;
  transform: translateY(0);
}


/* PRELOADER */

#preloader { position: fixed; z-index: 9999; background: #fff; top: 0; left: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; }
.logo-wrapper { position: relative; width: 80%; max-width: 270px; overflow: hidden; border-radius: 4px; }
#logo-loading { display: block; width: 100%; height: auto; position: relative; z-index: 2; }

/* Cor se preenchendo de baixo para cima */
.logo-fill {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: url("../img/rede_americas_loading.svg") no-repeat center center;
  background-size: contain;
  animation: fillLogo 0.5s forwards;
  z-index: 1;
}

@keyframes fillLogo {
  to {
    height: 100%;
  }
}