
/*
Aeffe Consulting
Menu classico desktop e mobile
*/

.ae-header > .wp-block-shortcode {
  width: max-content;
  max-width: 100%;
  margin: 0 !important;
  flex: 0 1 auto;
}

.ae-classic-nav {
  color: #012c6b;
  font-family: inherit;
}

/* MENU DESKTOP */

.ae-classic-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0 !important;
  padding: 0 !important;
}

.ae-classic-list > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ae-classic-list a {
  display: block;
  color: #012c6b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 0;
  text-decoration: none;
  white-space: nowrap;
}

.ae-classic-list a:hover,
.ae-classic-list a:focus-visible,
.ae-classic-list .current-menu-item > a,
.ae-classic-list .current-menu-ancestor > a {
  color: #e64b39;
}

.ae-classic-list .current-menu-item > a {
  box-shadow: inset 0 -2px 0 #e64b39;
}

/* SOTTOMENU DESKTOP */

.ae-classic-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px 16px !important;
  margin: 0 !important;
  list-style: none;
  background: #fff;
  box-shadow: 0 8px 26px #012c6b20;
  border: 1px solid #e1eaf4;
  z-index: 510;
}

.ae-classic-list .sub-menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ae-classic-list .sub-menu a {
  white-space: normal;
  padding: 9px 0;
}

.ae-classic-list li:hover > .sub-menu,
.ae-classic-list li:focus-within > .sub-menu {
  display: block;
}

.ae-classic-mobile {
  display: none;
}

/* CENTRATURA HEADER */

@media (min-width: 1101px) {

  body .ae-header > .wp-block-shortcode {
    justify-self: center;
    width: max-content;
  }

}

/* NAVIGAZIONE MOBILE E TABLET */

@media (max-width: 1100px) {

  body .ae-header > .wp-block-shortcode {
    margin-left: auto !important;
  }

  .ae-classic-desktop {
    display: none;
  }

  .ae-classic-mobile {
    display: block;
  }

  .ae-classic-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 8px;
    color: #012c6b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .ae-classic-toggle::-webkit-details-marker {
    display: none;
  }

  .ae-classic-toggle::marker {
    content: '';
  }

  /* Icona hamburger */

  .ae-classic-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
  }

  .ae-classic-burger i {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #012c6b;
  }

  /* Pannello aperto */

  .ae-classic-panel {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 100%;
    padding: 16px 22px;
    background: #fff;
    box-shadow: 0 14px 25px #012c6b25;
    border: 1px solid #e1eaf4;
    z-index: 520;
  }

  .ae-classic-panel > .ae-classic-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ae-classic-panel .ae-classic-list > li {
    border-bottom: 1px solid #e1eaf4;
  }

  .ae-classic-panel .ae-classic-list > li:last-child {
    border-bottom: 0;
  }

  .ae-classic-panel .ae-classic-list > li > a {
    padding: 12px 0;
    font-size: 15px;
  }

  /* Sottomenu mobile */

  .ae-classic-panel .ae-classic-list .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 12px 16px !important;
    border: 0;
    box-shadow: none;
  }

  .ae-classic-panel .ae-classic-list .sub-menu a {
    font-size: 13px;
    padding: 8px 0;
  }

}
