/* ============================================== */
/* ANCHORS */
/* ============================================== */

section:not(:first-child) .anchor{  transform: translateY(2px);  }

/* ============================================== */
/* NAV */
/* ============================================== */

.nav{
  display: block;
  width: 80%;
  left: 50%;
  margin-left: -40%;
  position: fixed;
  top:30px;
  border-radius: 10px;
  transition:all 225ms ease-out;
}

.nav.effect{
  top:0px;
}

@media screen and (max-width: 1080px){
  .nav{
    width: 100%;
    left: 0%;
    margin-left: 0;
    top:0;
    border-radius: 0;
  }
}

/* ============================================== */
/* NAVIGATION */
/* ============================================== */

.navigation{
  margin:0 auto;
  padding: 10px 20px;
  max-width: 1920px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation ul li,
.navigation ul li a{
  display: inline-block;
  position: relative;
}

.navigation ul li a{
  padding: 10px 15px;
  cursor: pointer;
  font-size: var(--fs-base);
  margin: 0 5px;
  color:var(--color-h);
  opacity: 0.8;
  border-radius: 10px;
}

.navigation ul li:last-child a{
  background: var(--color-pri);
  color: white;
  opacity: 1;
}
.navigation ul li:last-child a:hover{
  background: var(--color-pri-h);
}

.navigation ul li a.active{
  background: var(--color-10);
  opacity: 1;
}

.navigation ul li a:hover{
  opacity: 1;
}

@media screen and (max-width: 1080px){
  .navigation{
    padding: 0px 30px;
  }
  .navigation ul{
    position: absolute;
    width: 300px;
    height: 100vh;
    top: 0;
    right: -300px;
    padding: 80px 20px 20px;
    overflow-y: scroll;
  }
  .navigation ul li,
  .navigation ul li a{
    width: 100%;
  }

  .navigation ul li a{
    margin: 5px 0;
  }

  .navigation ul.active{
    right: 0;
  }

}

/* ============================================== */
/* LOGO */
/* ============================================== */

.logo img{
  height: 40px;
}

@media screen and (max-width: 1080px){
  .logo img{
    height: 30px;
  }
}

/* ============================================== */
/* HAMBURGUER */
/* ============================================== */

.hamburguer{
  position: relative;
  width:50px;
  height:50px;
  cursor:pointer;
  margin:0;
  display: none;
}

.hamburguer span{
  position:absolute;
  display:block;
  height:2px;
  opacity: 1;
  top:10px;
  left:12px;
  width:50%;
  background: var(--color-sec);
}

.hamburguer span:nth-child(1){top:17px;}
.hamburguer span:nth-child(2){top:24px;}
.hamburguer span:nth-child(3){top:31px;}

.hamburguer.active span:nth-child(1){transform: rotate(135deg);top:24px;}
.hamburguer.active span:nth-child(2){width: 0%;}
.hamburguer.active span:nth-child(3){transform: rotate(-135deg);top:24px;}

@media screen and (max-width: 1080px){
  .hamburguer{
    display: block;
  }
}

/* ============================================== */
/* TRANSITIONS */
/* ============================================== */

nav,
.navigation,
.hamburguer{
  z-index: 8;
}

.hamburguer span,
.navigation ul,
.navigation a{
  -webkit-transition:all 350ms ease;
  -moz-transition:all 350ms ease;
  -ms-transition:all 350ms ease;
  transition:all 350ms ease;
}
