/*********************
NAVBAR
*********************/

/* GENERALE */
.navbar {
  box-shadow: none;
  padding: 0;
}
.navbar-brand {
  padding: 0;
  margin: 0;
}
.navbar .nav-link {
  font-size: 80%;
  font-weight: 700;
}
.navbar.navbar-dark .navbar-nav .nav-item.active .nav-link {
  color: #ffdd00;
}
.dropdown-menu {
  border: 0;
  border-radius: 0;
}
.dropdown:not(.mega-dropdown) .dropdown-menu {
  background-color: #fff;
}
.dropdown:not(.mega-dropdown) .dropdown-menu .dropdown-item {
  color: #000;
}
.dropdown:not(.mega-dropdown) .dropdown-menu .dropdown-item.active,
.dropdown:not(.mega-dropdown) .dropdown-menu .dropdown-item:active,
.dropdown:not(.mega-dropdown) .dropdown-menu .dropdown-item:hover,
.dropleft:not(.mega-dropdown) .dropdown-menu .dropdown-item.active,
.dropleft:not(.mega-dropdown) .dropdown-menu .dropdown-item:active,
.dropleft:not(.mega-dropdown) .dropdown-menu .dropdown-item:hover,
.dropright:not(.mega-dropdown) .dropdown-menu .dropdown-item.active,
.dropright:not(.mega-dropdown) .dropdown-menu .dropdown-item:active,
.dropright:not(.mega-dropdown) .dropdown-menu .dropdown-item:hover,
.dropup:not(.mega-dropdown) .dropdown-menu .dropdown-item.active,
.dropup:not(.mega-dropdown) .dropdown-menu .dropdown-item:active,
.dropup:not(.mega-dropdown) .dropdown-menu .dropdown-item:hover {
  background-color: #ffdd00;
  color: #000 !important;
  box-shadow: none;
  border-radius: 0;
  font-weight: bold;
}
.logo {
  width: 347px;
}
@media (max-width: 1199.98px) {
  .logo {
    width: 130px;
  }
  .navbar-brand {
    margin: 0 1rem;
  }
}
.navbar-toggler {
  padding: calc(1rem - 2px);
  background-color: #ffdd00;
  position: absolute;
  right: 51px;
  top: 0;
  border-radius: 0;
}
.navbar-toggler span {
  width: 25px;
  height: 3px;
  border-radius: 50px;
  background-color: #000;
  display: block;
}
.navbar-toggler span:nth-child(2) {
  margin: 4px 0;
}
/* INSERITO PER MOTIVI DI OTTIMIZZAZIONE */
.menu-mobile {
  display: none;
}

/* NAVBAR MAIN */
#navbarMain {
  background-color: #000;
  width: 100vw;
}
#navbarMain .navbar__links .nav-link {
  padding: 1rem 0.5rem;
  letter-spacing: 2px;
  transition: 0.2s;
  cursor: pointer;
  font-size: 0.7rem;
}
#navbarMain .nav-item:hover .nav-link {
  color: #ffdd00;
}
.navbar__actions {
  position: relative;
  background-color: #ffdd00;
}
.navbar__actions a.nav-link {
  color: #000 !important;
}
.navbar__actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 70px 40px;
  border-color: transparent transparent #ffdd00 #000;
}
.navbar__actions ul li:first-child::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -26px;
  display: block;
  width: 119px;
  background-color: #eee;
  height: 1px;
}
@media (min-width: 1440px) {
  #navbarMain .navbar__links .nav-link {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* NAVBAR BOTTOM */
#navbarBottom {
  box-shadow: 0px -1px 15px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px -1px 15px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px -1px 15px 0px rgba(0, 0, 0, 0.1);
  color: #000;
}
.navbar-bottom__item {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  color: inherit;
}
#navbarBottom .navbar-bottom__item > i {
  font-size: 1em;
  margin: 0.25rem 0;
}
#navbarBottom .navbar-bottom__item > span {
  font-size: 12px;
}

/*********************
CERCA
*********************/
.search-form__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: #121212;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
}
#searchInput {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #fff;
  width: 60vw;
  padding: 2rem;
  font-size: 2em;
  color: #fff;
  background-color: #121212;
}
/* SEARCH NAVBOTTOM MOBILE */
@media (max-width: 1199.98px) {
  #searchInput {
    padding: 1.25em;
    font-size: 1.25em;
    text-align: center;
    margin: auto;
    width: 80vw;
  }
  .search-form button,
  .search-form .btn-close {
    padding-top: 0.58rem !important;
    padding-bottom: 0.58rem !important;
    font-size: 0.7rem !important;
  }
  .search-form .close {
    font-size: 1.25em !important;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .search-form button > i {
    font-size: 0.7rem !important;
  }
  .search-form {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-form .nav-link {
    padding: 0;
    font-size: 12px;
    display: flex;
    flex-direction: column-reverse;
  }
  .search-form .nav-link > i {
    padding: 0;
    font-size: 1rem;
    margin: 0.25rem 0;
  }
}
#searchInput:focus {
  box-shadow: none;
}
.search-form .close {
  position: absolute;
  z-index: 1030;
  top: 1rem;
  right: 2rem;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}
/* SEARCH BOX MOBILE MENU */
.search-form--mobile {
  width: 100%;
}
.search-form--mobile > .md-form input[type="text"] {
  margin: 0;
  border-bottom: 1px solid #ffdd00;
  padding: 12px 0 12px 16px;
}
.search-form--mobile > .md-form input[type="text"]:focus {
  box-shadow: 0 1px 0 0 #ffdd00 !important;
  border-bottom: 1px solid #ffdd00 !important;
}
.search-form--mobile > .md-form input[type="text"]::placeholder {
  font-size: 12px;
  text-transform: none;
  font-weight: normal;
}

/*********************
SWITCH LINGUA
*********************/
.flag-icon {
  width: 1.2rem !important;
  height: 0.8rem;
  line-height: 1rem;
  background-size: cover;
}
.dropdown:not(.mega-dropdown).langmobile .dropdown-menu {
  background-color: #fff;
  width: 100vw;
  border-top: 1px solid #eee;
  padding: 0;
}
.dropdown:not(.mega-dropdown).langmobile .dropdown-menu .dropdown-item {
  color: #000;
  font-weight: normal;
  border-bottom: 1px solid var(--mm-color-border);
  padding: 0.5rem 1rem;
}
.dropdown:not(.mega-dropdown).langmobile .dropdown-menu .dropdown-item.active {
  color: #000 !important;
  font-weight: bold;
  background-color: transparent !important;
}
.dropdown:not(.mega-dropdown).langmobile i.fa-chevron-down {
  position: absolute;
  bottom: 5px;
  left: calc(50% - 7px);
  font-size: 10px;
  color: #000;
}

/*********************
MEGA MENU
*********************/
@media (min-width: 1200px) {
  .navbar .mega-dropdown .dropdown-menu.mega-menu {
    margin-top: 0;
    padding: 0;
    min-height: 40vh;
    background-color: #fff;
    border-bottom: 2px solid #ffdd00;
  }
  .navbar .mega-dropdown .dropdown-menu.mega-menu.show {
    display: flex;
  }
  .sub-menu {
    padding: 1rem !important;
  }
  .sub-menu .submenu-item {
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #ffdd00;
  }
  .sub-menu .dropdown-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: transparent;
    padding: 0;
    max-height: 540px;
    margin-top: 0.5rem;
  }
  .sub-menu .dropdown-menu .dropdown-item {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    background-color: transparent;
    font-size: 12px;
    color: #000;
    text-transform: none;
    padding: 0 0.5rem;
    line-height: 1.2;
    max-width: 50%;
    white-space: normal;
    margin-top: 0.5rem;
  }

  .dropdown.mega-dropdown .dropdown-menu .dropdown-item.active,
  .dropdown.mega-dropdown .dropdown-menu .dropdown-item:active,
  .dropdown.mega-dropdown .dropdown-menu .dropdown-item:hover,
  .dropleft.mega-dropdown .dropdown-menu .dropdown-item.active,
  .dropleft.mega-dropdown .dropdown-menu .dropdown-item:active,
  .dropleft.mega-dropdown .dropdown-menu .dropdown-item:hover,
  .dropright.mega-dropdown .dropdown-menu .dropdown-item.active,
  .dropright.mega-dropdown .dropdown-menu .dropdown-item:active,
  .dropright.mega-dropdown .dropdown-menu .dropdown-item:hover,
  .dropup.mega-dropdown .dropdown-menu .dropdown-item.active,
  .dropup.mega-dropdown .dropdown-menu .dropdown-item:active,
  .dropup.mega-dropdown .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    color: #6c757d !important;
    box-shadow: none;
    border-radius: 0;
  }
}
/******************************

    MM MENU JS

    Documentazione: https://mmenujs.com/

    - VERIFICARE CHE IL META VIEWPORT NEL FILE HEAD.htm INCLUDA minimum-scale=1.0
    - VERIFICARE CHE TUTTI GLI ELEMENTI DELLA PAGINA ESCLUSI HEAD.htm E BOTTOM.htm SIANO ALL'INTERNO DEL DIV #MY-PAGE
    - VARIBALI COLORI: https://mmenujs.com/docs/core/scss.html

******************************/

/* SETTINGS GENERALE */
.mm-navbar {
  --mm-color-background: var(--primary);
  --mm-color-text-dimmed: #000;
  --mm-color-button: #000;
}
.mm-panel,
.mm-panels {
  --mm-color-background: #fff;
  --mm-color-text: var(--dark);
  --mm-color-button: var(--dark);
}
.mm-listitem_selected > .mm-listitem__text,
.mm-listitem_selected,
.dropdown-item.active,
.dropdown-item:active {
  background: #000;
  color: #fff !important;
}
.mm-listitem_selected > .mm-btn_next::after {
  border-color: #fff;
}
.mm-btn_prev {
  position: absolute;
  left: 0;
}
.mm-btn_close {
  position: absolute;
  right: 0;
}

/* UTLIZZA MMENU JS SOLO SU MOBILE */
@media (max-width: 1199.98px) {
  #menu {
    display: none !important;
  }
  #mm-menu .dropdown-menu {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    position: initial;
    float: none;
    background-color: inherit;
  }
  .dropdown-toggle::after {
    display: none;
  }
  #mm-menu .dropdown-item::after {
    content: "";
    border-color: var(--mm-color-border);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .mm-navbar__title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
  }
  .mm-navbars_bottom > .mm-navbar {
    background: #000;
    color: #fff;
  }

  #mm-menu .nav-item::after {
    left: 0;
  }
  #mm-menu .mm-listitem__text,
  #mm-menu .dropdown-item:not(.dropdown-submenu) {
    padding: 12px 0 12px 16px;
    font-weight: bold;
    text-transform: uppercase;
  }

  #mm-menu .nav-bottom__item > * {
    background: var(--light);
    font-weight: normal;
    font-size: 12px;
    text-transform: uppercase;
  }
  #mm-menu .nav-bottom__item.mm-listitem_selected > * {
    font-weight: bold;
    color: #000 !important;
  }
}
@media (min-width: 1200px) {
  #menu {
    width: 100%;
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
  }

  #menu .nav-bottom__item {
    display: none;
  }

  #mm-menu {
    display: none !important;
  }
}
