
/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--cor-fundo-header);
    z-index: var(--z-fixed);
    transition: all .3s;
}

/*=============== NAV ===============*/
.nav {
    height: var(--header-height);
}  
.nav__logo, 
.nav__burger, 
.nav__close {
    color: var(--cor-branco);
}  
.nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}  
.nav__logo {
    width: 180px;
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-weight: var(--font-semi-bold);
    position: relative;
}  
.nav__logo img {
    position: relative;
    transition: all .3s;
    max-width: 180px;
}  
.nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
}
.nav__toggle svg path {
    color: var(--cor-branco);
}  
.nav__burger, 
.nav__close {
    position: absolute;
    width: 35px;
    height: 35px;
    inset: 0;
    margin: auto;
    font-size: 3em;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}  
.nav__close {
    opacity: 0;
}
.nav__menu {
    display: flex;
    gap: 2em;
}
.nav__list {
    align-items: center;
}

/* 
.nav__list button,
.nav__list a.btn {
    background: linear-gradient(135deg,  #1a9fdb 0%,#0ff8db 100%);
	background-size: 200% 100%;
	animation: bgButton 20s ease infinite;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: var(--size-itens-menuheader);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    color: var(--cor-fundo-header);
    transition: all .3s;
    cursor: pointer;
    text-decoration: none;
}
.nav__list button:hover,
.nav__list a.btn:hover {
    background-color: transparent;
    border: none;
    transition: all .3s;
    color: var(--cor-fundo-header);
    text-decoration: none;
}
@keyframes bgButton {
    0% {
        background-position: 0%;
    }
    50% {
        background-position: 99.5%;
    }
    100% {
        background-position: 0%;
    }
}  */

  
.nav__link {
    color: var(--cor-link-menuheader);
    background-color: var(--cor-fundo-header);
    text-transform: none;
    font-size: var(--size-itens-menuheader);
    font-weight: var(--font-medium);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
    position: relative;
}  
.nav__link:hover {
    color: var(--cor-link-menuheader);
}
.nav__link::after {
    content: '';
    background-color: transparent;
    top: 0;
    transition: all .3s;
}
.nav__link:hover::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background-color:var(--cor-link-menuheader);
    display: block;
    top: 20px;
    left: calc(50% - 16px);
    transition: all .3s;
}


/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
    .nav {
        height: calc(var(--header-height) + 2em) ;
    }
    .nav__logo img { 
        z-index: 110;        
        max-width: 180px;
        transition: all .3s;
    }
    .nav__menu {
        position: absolute;
        left: 0;
        padding-top: 30px;
        margin-top: 0;
        top: 2em;
        width: 100%;
        height: calc(100vh - 3.5em);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
        flex-direction: column;
        background: var(--cor-fundo-header);
    }
    .nav__menu::-webkit-scrollbar {
        width: 0;
    }
    .nav__list {
        background-color: var(--cor-fundo-header);
        padding: 3em auto;
    }
    .nav__list li,
    .nav__list li a.nav__link {
        justify-content: center;
        margin: 0 auto;
        text-align: center;
    }


    .nav__link::after {
        content: '';
        background-color: transparent;
        top: 0;
    }
    .nav__link:hover::after {
        content: '';
        position: absolute;
        background-color: transparent;
        top: 0;
    }
}


  
/* Show menu */
.show-menu {
    opacity: 1;
    top: 3rem;
    pointer-events: initial;
}
  
/* Show icon */
.show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
}
.show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
}



@media (max-width: 1118px) {
    .nav__list .btn {
        position: relative;
        top: 40px;
    }
}



/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
    .container {
        margin-inline: 1rem;
    }
    
    

    .nav__link {
        padding-inline: 1rem;
    }
}

  
/* For large devices */
@media screen and (min-width: 1118px) {
    .container {
        margin-inline: auto;
    }
  
    .nav {
        height: calc(var(--header-height) + 2rem);
        display: flex;
        justify-content: space-between;
    }
    .nav__toggle {
        display: none;
    }

    .nav__list {
        height: 100%;
        display: flex;
        column-gap: 2rem;
    }
    .nav__link {
        height: 100%;
        padding: 0;
        justify-content: initial;
    }
    .nav__link:hover {
        background-color: transparent;
    }    
}




/*=============== FOOTER ===============*/
footer {
    padding-top: var(--padding-top);
    padding-bottom: calc(var(--padding-bottom) + 3em);
    background-color: var(--cor-primaria);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

footer p {
    font-size: var(--size-text-small);
    color: var(--cor-branco);
    font-weight: var(--font-regular);
    text-align: center; 
    text-transform: uppercase;   
}