nav img {
  max-height: 60px;
}

nav .nav-item .nav-link {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 16px;
  padding: 10px 0;
  color: var(--text_color) !important;
}

.nav-item .nav-link.active::after {
  display: block;
  position: relative;
  content: "";
  width: 40px;
  height: 4px;
  background: var(--main_color);
  text-align: center;
  margin: 0 auto;
}

nav .nav-item .nav-link.active {
  font-weight: 600;
  color: var(--main_color);
}

nav .nav-links {
  border-bottom: 1px solid var(--main_color);
}

nav .navbar-toggler {
  justify-content: end;
  border: 0px !important;
}

nav {
  display: block !important;
}

nav .nav-top {
  background-color: #333333;
  height: 100%;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.nav-top .w-50 {
  width: 100% !important;
}

.nav-top .py-2 {
  padding-bottom: 0px !important;
}

nav.scrolled .nav-top {
  opacity: 0;
  transform: translateY(-20px);
}

nav .link_ordina a,
nav #webapp {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 300;
}

nav .link_ordina span,
nav #webapp span {
  font-size: 14px;
}

nav .social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  gap: 7px;
  flex-direction: row-reverse;
}

nav .social span.mb-2 {
  margin-bottom: 0px !important;
}

nav .nav-social {
  display: flex;
  flex-direction: column;
  line-height: 24px;
}

nav .social {
  padding: 0px !important;
  background-color: transparent !important;
}

nav .social svg {
  width: 15px;
  height: 15px;
  fill: var(--main_color);
  margin: 0px !important;
}

nav .social span {
  display: block !important;
  color: #fff !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.toggler-icon {
  color: #fff !important;
}

@media (max-width: 900px) {
  nav .social svg {
    width: 20px;
    height: 20px;
  }

  nav .nav-top .container {
    display: flex;
    justify-content: center !important;
  }

  .navbar-collapse {
    display: block;
    min-height: 100vh;
    opacity: 0;
    background-color: var(--main_color);
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: opacity 250ms;
    visibility: hidden;
  }

  .navbar-collapse.show {
    opacity: 1;
    z-index: 1;
    overflow-y: scroll;
    visibility: visible;
  }

  .navbar-toggler.collapsed {
    position: relative;
    top: initial;
    right: initial;
    transition: all 0.1s ease-in-out;
    display: block;
  }

  .navbar-toggler:not(.collapsed) span::after {
    content: "close";
    font-family: "Material Symbols Outlined";
    z-index: 99;
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    font-size: 35px;
    color: #fff;
    font-weight: 600;
  }

  .navbar-nav li {
    padding: 1rem 0;
    text-align: center;
    font-size: 18px;
    width: 100%;
  }

  .navbar-nav li.nav-item:not(.dropdown):first-child {
    margin-top: 30px;
  }

  .navbar-nav li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  nav .nav-links {
    background-color: #333333;
  }

  .nav-social {
    display: none !important;
  }

  nav .nav-item .nav-link.active {
    color: #000;
  }

  nav .nav-item .nav-link {
    color: var(--main_text_color) !important;
  }

  nav .icon-md {
    font-size: 24px !important;
  }

  nav .dropdown-menu {
    background-color: transparent !important;
    border: 0px !important;
  }

  nav .dropdown-menu li {
    padding-top: 0px !important;
  }

  nav .dropdown-menu a {
    font-size: 14px !important;
  }

  .search-icon {
    color: #fff;
  }

  nav .social span {
    display: none !important;
  }
  
}