.megamenu-nav {
    left: 0;
    position: relative;
    z-index: 1000;
}
.icona-search {
    width: auto !important;
}

/* Nascondi il megamenu desktop visuale in quanto gestito a livello DOM solo per JS */
.megamenu-dropdown {
    display: none !important;
}

/* Hamburger Menu Styles - Sempre attivo */
.hamburger-menu {
    display: block;
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    z-index: 1000;
    color: rgba(255,255,255,.7);
    float: right;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: rgba(255,255,255,.7);
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Di default mostra hamburger + testo */
.hamburger-menu .icon-close {
    display: none;
}

.hamburger-menu svg {
    display: none;
}

/* Quando attivo */
.hamburger-menu.is-active .icon-hamburger {
    display: none !important;
}

.hamburger-menu.is-active svg {
    display: inline !important;
    color: #010101;
}

.megamenu-submenu-arrow {
    transition: transform .4s ease-out;
    float: right;
}

.megamenu-container {
    position: relative;
}

.megamenu-main-item > a {
display: block;
  transition: ease .3s ease-out;
  color: #6B6B6B;
  font-family: Gabarito;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline !important;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: capitalize;
  padding: 13px 25px;
  background-color: white;
  border-radius: 30px;
  margin: 0 0px 5px 0px;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: fixed;
    background-color: #000;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 30px 16px;
    z-index: 9999;
    left: 0;
    height: 100vh;
}

div.asp_m.ajaxsearchpro .probox .proinput {
    margin: 0 0 0 0 !important;
}

.dropdown.open .dropdown-content {
    display: block;
}

.megamenu-nav {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    height: 100vh;
    color: rgba(255,255,255,.7);
    overflow-y: auto;
    padding: 20px 20px 120px; /* Abbondante padding per scroll */
    background: #E5F6FD;
}

.megamenu-nav.active {
    display: block;
}

.megamenu-main {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    position: relative;
}

.megamenu-main-item {
    width: 100%;
    margin: 0;
    border-top: 1px solid #FFFFFF1A;
    position: relative;
}

.mobile-contacts {
    display: block;
    padding: 20px 0px;
    position: relative;
    width: 100%;
    left: 0;
    z-index: 10000;
    margin-top: 20px;
}

#btn-gradient {
  background-color: transparent;
  font-size: 16px;
  background-image: linear-gradient(90deg, var( --e-global-color-primary ) 0%, var( --e-global-color-secondary ) 100%);
  box-shadow: 0px 0px 27px 0px rgba(0,0,0,0.12);
  border-radius: 100px 100px 100px 100px;
  color: white;
}
#btn-gradient:hover {
  background-color: #0098A0 !important;
  background-image: none !important;
}

.mobile-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    margin-left: 10px;
    transition: transform 0.3s;
}

.megamenu-main-item.active .mobile-arrow {
    transform: rotate(-135deg);
}

/* Mobile slider — flex track approach (reliable on all real mobile devices) */
.megamenu-mobile-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    z-index: 1001;
}

/* The track holds all panels side-by-side */
#megamenu-panels-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform .35s ease-in-out;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Each panel takes exactly 100% of the slider width */
.megamenu-mobile-panel {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    padding-bottom: 40px;
    box-sizing: border-box;
}


.megamenu-mobile-back {
display: block;
  margin: 0 0 0 auto;
  background: none;
  border: 0;
  padding: 13px 12px 0 12px;
  border-radius: 6px;
  color: #6B6B6B;
  font-family: Gabarito;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline;
}

.megamenu-mobile-subtitle {
    margin-bottom: 10px;
  color: #6B6B6B;
  font-family: Gabarito;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.megamenu-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-mobile-list li {
    margin: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-left: 0;
}

.megamenu-mobile-list li::before {
    display: none;
}

.megamenu-mobile-list li:last-child {
    border-bottom: none;
}

.megamenu-mobile-list a {
transition: ease .3s ease-out;
  color: #6B6B6B;
  font-family: Gabarito;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline !important;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: capitalize;
  padding: 13px 25px;
  background-color: white;
  border-radius: 30px;
  margin: 0 0px 5px 0px;
  display: block;
}

.megamenu-mobile-list .mobile-level-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.7);
    border-bottom: 2px solid rgba(255,255,255,.7);
    transform: rotate(-45deg);
    margin-left: 4px;
    flex-shrink: 0;
}

/* Stili per il terzo livello */
.megamenu-mobile-list--third {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-mobile-list--third li {
    margin: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-left: 0;
}

.megamenu-mobile-list--third li::before {
    display: none;
}

.megamenu-mobile-list--third li:last-child {
    border-bottom: none;
}

.megamenu-mobile-list--third a {
    text-decoration: none;
    display: block;
    padding: 0.7em 0em;
    color: #FFFFFFB2;
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 2px;
    transition: ease .3s ease-out;
}

.megamenu-mobile-list--third a:hover {
    color: #fff;
}

.megamenu-mobile-subtitle--third {
    color: #D4D4D4;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.megamenu-contacts-bar {
padding: 20px 0;
  background: transparent;
  font-size: 14px;
  color: #C1C1C1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
    margin-left: auto;
  width: 100%;
}

.megamenu-contacts-bar a {
    color: #C1C1C1;
}

.btn-grey {
    padding: 10px 20px !important;
    background: #313131 !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-grey:hover {
    background: #444444 !important;
}

.link-header {
    text-decoration: none;
    font-family: Roboto;
    font-weight: bold;
    font-size: 14px;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
}

.link-header span {
    font-size: 11px;
    margin-left: 2px;
    color: #888;
}
