/*PALETA DE COR fortelecom
Azul claro:
Hexadecimal: #4589e0

Azul Euro:
Hexadecimal: #0078da
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

header {
  position: absolute;
  background-color: transparent;
  width: 100%;
  height: auto;
  padding: 1rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.05rem solid;
  border-color: rgba(255, 255, 255, 0.527);
  z-index: 1;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.menu .nav-style {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  background-color: transparent;
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  box-shadow: 0px 0px 30px silver;
  border: 2px solid rgba(192, 192, 192, 0.151);
}

.nav-style span {
  position: absolute;
  top: 0;
  left: 0;
  width: 6rem;
  height: 100%;
  background: linear-gradient(45deg, rgb(12, 12, 92), rgb(71, 71, 255));
  border-radius: 0.5rem;
  transition: 0.5s;
}

nav .logo img {
  width: 15%;
  height: auto;
  margin: 0 5rem;
  padding: 0;
  display: block;
}

.menu ul li {
  display: grid;
  place-content: center;
  margin: 0;
}

.menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
}

.menu li {
  margin-left: 1rem;
  padding: 1rem;
  white-space: nowrap;
  position: relative;
}

.menu a {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  text-decoration: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-weight: 500;
  z-index: 1;
}

.menu .nav-style li:nth-child(1):hover ~ span {
  left: 0;
}

.menu .nav-style li:nth-child(2):hover ~ span {
  left: 95px;
  width: 150px;
}
.menu .nav-style li:nth-child(3):hover ~ span {
  left: 259px;
}

.menu .nav-style li:nth-child(4):hover ~ span {
  left: 390px;
}
.menu .nav-style li:nth-child(5):hover ~ span {
  left: 500px;
  width: 190px;
}

.mobile-menu div {
  width: 2rem;
  height: 0.02rem;
  background-color: white;
  margin: 0.5rem;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu div {
  width: 2rem;
  height: 0.02rem;
  background-color: rgb(0, 0, 0);
  margin: 0.5rem;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

@media (max-width: 800px) {
  header {
    position: relative;
    background: linear-gradient(to left, blue, white);
  }

  .header-container {
    background-color: transparent;
  }

  .nav-style span {
    display: none;
  }
  .nav-list .cliente {
    display: block;
  }

  .nav-list {
    position: relative;
    margin: 0;
    padding: 0;
    top: 2vh;
    right: -1.5rem;
    width: 10rem;
    height: 50vh;
    background-color: rgba(0, 0, 0, 0.815);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 5;
  }

  .menu .logo img {
    width: 41%;
    height: auto;
    margin: 0;
    display: block;
  }

  .nav-list li {
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu .line {
    transition: all 0.3s ease-in-out;
    height: 2px;
  }

  .nav-list.active {
    transform: translateX(0);
  }

  .mobile-menu.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu.active .line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .line:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }
}

@media (max-width: 1700px) {
  .header-container {
    position: relative;
    background: linear-gradient(to left, blue, white);
    border: transparent;
  }

  .nav-style span {
    display: none;
  }

  body {
    background: linear-gradient(to left, blue, white);
  }
  .menu .nav-style {
    border: transparent;
    box-shadow: none;
  }
}
