.megamenu-nav {
    left: 0;
    position: relative;
    z-index: 1000;
}
.icona-search {
  width: auto !important;
}
.megamenu-main {
display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  justify-content: end;
  position: relative;
  z-index: 1002; /* sopra al dropdown per click header */
}
.megamenu-main-item {
  position: relative;
  border: 1px solid transparent;
}
.megamenu-main-item > a {
    display: block;
    padding: 1em 1.2em;
    color: #fff;
    text-decoration: none;
    font-family: Roboto;
	font-weight: 400;
	font-size: 14px;
	line-height: 100%;
	letter-spacing:2px;
	text-transform: uppercase;
  transition: ease .3s ease-out;

}
.megamenu-main-item > a:hover {
    color:white;
}
.megamenu-main-item.active {
  border: 1px solid white;
  border-radius: 30px;
}
.megamenu-dropdown {
  display: none;
position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  min-width: 100vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 79px 0 0 0;
  z-index: 1000; /* sotto l'header, sopra il contenuto */
  background-color: rgba(9, 9, 9, 0.24) !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  height: 100vh;
}
.megamenu-row {
    display: flex;
    width: 100%;
    min-height: 530px;
    background: #090909D9;
}
.megamenu-col-70 {
    width: 80%;
    padding: 2em 2em 0 2em;
    position: relative;
}
#megamenu-dropdown-22958 #colonna-70, #megamenu-dropdown-22960 #colonna-70, #megamenu-dropdown-22959 #colonna-70, #megamenu-dropdown-22962 #colonna-70, #megamenu-dropdown-22963 #colonna-70, #megamenu-dropdown-22964 #colonna-70, #megamenu-dropdown-28238 #colonna-70, #megamenu-dropdown-33782 #colonna-70, #megamenu-dropdown-33788 #colonna-70, #megamenu-dropdown-33793 #colonna-70, #megamenu-dropdown-33848 #colonna-70, #megamenu-dropdown-33852 #colonna-70, #megamenu-dropdown-33883 #colonna-70, #megamenu-dropdown-33887 #colonna-70, #megamenu-dropdown-33806 #colonna-70, #megamenu-dropdown-33812 #colonna-70, #megamenu-dropdown-33817 #colonna-70, #megamenu-dropdown-33873 #colonna-70, #megamenu-dropdown-33878 #colonna-70, #megamenu-dropdown-33877 #colonna-70, #megamenu-dropdown-33899 #colonna-70, #megamenu-dropdown-33903 #colonna-70 {
  padding-left: 23vw;
}
#megamenu-dropdown-22961 .megamenu-inner-col, #megamenu-dropdown-33798 .megamenu-inner-col, #megamenu-dropdown-33822 .megamenu-inner-col {
  flex: 0 0 calc(100% / 5);
  max-width: calc(100% / 5);
}
#megamenu-dropdown-28238 .megamenu-child-titl, .megamenu-submenu li::before, .megamenu-item-main::before {
  display: none;
}

.megamenu-col-30 {
    width: 30%;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}
.megamenu-custom-title {
  color: #7C7C7C;
  font-family: Roboto;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
  line-height: 100%;
  letter-spacing: 1.8px;
}
.megamenu-col-70 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.megamenu-col-70 li {
    margin-bottom: 0.5em;
    padding-left:0;
}
.megamenu-submenu-link {
font-family: Roboto;
font-weight: 400;
font-size: 16px;
line-height: 220.00000000000003%;
letter-spacing: 3%;
color: rgba(255, 255, 255, 0.70);
text-decoration: none;
transition: transform .3s ease-out;
  display: inline-block;
}
.megamenu-submenu-link:hover {
    text-decoration: underline;
    transform: translate(5px, 0);
}
.megamenu-close {
    position: absolute;
    top: 0;
    right: 0.3em;
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    z-index: 10;
}
.megamenu-item-main > a {
    color: #D4D4D4;
    font-family: Roboto;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 220%;
    letter-spacing: 0.45px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transition: ease .3s ease-out;
}
.megamenu-item-main > a:hover {
  color: white;
}
.megamenu-contacts-bar {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2em 0;
    background: transparent;
    font-family: Roboto;
    font-size: 14px;
    color: #C1C1C1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.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;
}
@media (max-width: 900px) {
    .megamenu-row { flex-direction: column; }
    .megamenu-col-70, .megamenu-col-30 { width: 100%; min-height: 150px; }
}
.megamenu-submenu {
    margin-left: 24px;
    padding-left: 12px;
    list-style: none;
}
.megamenu-item-secondary:hover .megamenu-submenu-arrow, .megamenu-submenu li:hover .megamenu-submenu-arrow {
  transform: translate(4px, 0);
}
.megamenu-child-title {
  color: #D4D4D4;
  font-family: Roboto;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 220%;
  letter-spacing: 0.45px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: uppercase;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    z-index: 1000;
}

.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;
}

#menuSearchModal {
    display: none !important;
}

#menuSearchModal.active {
    display: flex !important;
}

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

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

.hamburger-menu.is-active .icon-close {
    display: inline !important;
}



/* Fix desktop: assicura che le voci principali restino visibili quando si apre il dropdown
   e rende il backdrop-filter più affidabile anche su altre pagine */
@media (min-width: 993px) {
  /* header/menu sopra il dropdown */
  .megamenu-main,
  .megamenu-nav,
  .megamenu-container {
    position: relative;
    z-index: 10050 !important;
  }

  /* dropdown: overlay sopra il contenuto ma sotto l'header/menu */
  .megamenu-dropdown {
    z-index: -1; /* sopra il contenuto della pagina */
    background-color: rgba(9, 9, 9, 0.15) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    backdrop-filter: blur(30px) !important;
    isolation: isolate; /* evita interferenze di stacking context */
    pointer-events: auto;
  }

  /* evidenzia la voce principale attiva (forza visibilità) */
  .megamenu-main-item.active > a,
  .megamenu-main-item.open > a {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* se serve un fallback visivo quando backdrop non è supportato, mantieni un leggero translucent bg */
  .megamenu-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9,9,9,0.6);
    pointer-events: none;
    z-index: -1;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
  }
}

/* Mobile Styles */
@media screen and (max-width: 991px) {
    .hamburger-menu {
        display: block;
        color: rgba(255,255,255,.7);
        float: right;
    }
    .megamenu-submenu-arrow {
  transition: transform .4s ease-out;
  float: right;
}
    
    .megamenu-container {
        position: relative;
    }
    .megamenu-main-item > a {
  padding: 0.9em 0em;
}
.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 25px 20px;
        background: #000;
    }
    
    .megamenu-nav.active {
        display: block;
    }
    
    .megamenu-main {
        flex-direction: column;
    }
    
    .megamenu-main-item {
        width: 100%;
        margin: 0;
        border-top: 1px solid #FFFFFF1A;
    }
    
    .megamenu-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
    }
    
    .megamenu-col-70,
    .megamenu-col-30 {
        width: 100%;
    }
    
    .megamenu-col-30 {
        display: none;
    }
    
     .mobile-contacts {
display: block;
    padding: 20px 0px;
    border-top: 1px solid #1a1a1a;
    position: relative;
    width: 100%;
    left: 0;
    bottom: 35px;
    background-color: black;
    z-index: 10000;
  }
    
    .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 panels */
    .megamenu-mobile-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
        display: block; /* assicurati che sia visibile su mobile */
        z-index: 1001;
        min-height: calc(90vh - 120px);
    }
    .megamenu-mobile-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: block;
        transition: transform .35s ease-in-out;
        will-change: transform;
        padding-bottom: 30px;
        min-height: 40vh;
    }
    .megamenu-mobile-panel--root {
        transform: translateX(0%);
    }
    .megamenu-mobile-panel--submenu {
        transform: translateX(100%);
    background: transparent;
    max-height: 100vh;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
    }
    .megamenu-mobile-slider.is-subopen .megamenu-mobile-panel--root {
        transform: translateX(-100%);
    }
    .megamenu-mobile-slider.is-subopen .megamenu-mobile-panel--submenu {
        transform: translateX(0%);
    }
    .megamenu-mobile-panel--third {
        transform: translateX(200%);
        background: transparent;
        max-height: 50vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 40px;
    }
    /* Quando solo il secondo livello è aperto, il terzo rimane fuori schermo */
    .megamenu-mobile-slider.is-subopen:not(.is-thirdopen) .megamenu-mobile-panel--third {
        transform: translateX(200%);
    }
    /* Quando il terzo livello è aperto */
    .megamenu-mobile-slider.is-thirdopen .megamenu-mobile-panel--root {
        transform: translateX(-200%);
    }
    .megamenu-mobile-slider.is-thirdopen .megamenu-mobile-panel--submenu {
        transform: translateX(-100%);
    }
    .megamenu-mobile-slider.is-thirdopen .megamenu-mobile-panel--third {
        transform: translateX(0%);
    }
    /* Nascondi la lista principale quando il pannello submenu è attivo */
    .megamenu-nav.submenu-open .megamenu-main { display: none !important; }
    .megamenu-mobile-back {
        display: block;
    margin: 0 0 0 auto;
    background: none;
    border: 0;
    color: rgba(255,255,255,.8);
    padding: 13px 12px 0 12px;
    border-radius: 6px;
    font-family: Roboto;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    }
    .megamenu-mobile-subtitle {
        color: #D4D4D4;
        font-weight: 700;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    .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 {
        text-decoration: none;
        display: block;
        padding: 0.7em 0em;
        color: #FFFFFFB2;
        font-family: Roboto;
        font-weight: 500;
        font-size: 15px;
        line-height: 100%;
        letter-spacing: 2px;
        transition: ease .3s ease-out;
    }
    .megamenu-mobile-list a::before {
  content: "";
  width: 23px;
  display: inline-flex;
  background: url(https://pdr.demo-dirweb.it/wp-content/uploads/2025/06/menu-arrow.svg);
    background-repeat: repeat;
    background-size: auto;
  background-size: contain;
  height: 17px;
  background-repeat: no-repeat;
  position: relative;
}
    .megamenu-mobile-list a:hover { color: #fff; }
    .megamenu-mobile-list .has-children > a {
        display: flex;
        align-items: start;
        gap: 10px;
    }
    .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-family: Roboto;
        font-weight: 500;
        font-size: 15px;
        line-height: 100%;
        letter-spacing: 2px;
        transition: ease .3s ease-out;
    }
    .megamenu-mobile-list--third a::before {
        content: "";
        width: 23px;
        display: inline-flex;
        background: url(https://pdr.demo-dirweb.it/wp-content/uploads/2025/06/menu-arrow.svg);
        background-repeat: repeat;
        background-size: auto;
        background-size: contain;
        height: 17px;
        background-repeat: no-repeat;
        position: relative;
        top: 3px;
    }
    .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;
    }
    .menu-open .navbar.navbar-expand-xxl.fixed-top.bg-transparent {
  background-color: black !important;
}
}

/* MODIFICHE */
/* === FIX MEGAMENU DESKTOP (compatibile con JS finale) === */
@media (min-width: 993px) {

  /* Assicura che il menu principale resti sempre sopra */
  header,
  .site-header,
  #site-header,
  .main-header,
  .megamenu-nav,
  .megamenu-main {
    position: relative !important;
    z-index: 12000 !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* Dropdown overlay con blur visibile */
  .megamenu-dropdown {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(9, 9, 9, 0.15) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    backdrop-filter: blur(30px) !important;
    isolation: isolate !important;
    z-index: 11000 !important; /* sotto header */
    pointer-events: auto !important;
    display: none; /* controllato via JS */
  }

  /* Mostra il dropdown quando è attivo */
  .megamenu-dropdown.is-open,
  .megamenu-main-item.active > .megamenu-dropdown {
    display: block !important;
  }

  /* Forza trasparenza del body per rendere visibile il blur */
  html.megamenu-active body,
  html.megamenu-active .site,
  html.megamenu-active .site-inner,
  html.megamenu-active .site-wrapper {
    background-color: transparent !important;
    background-image: none !important;
  }

  /* fallback visivo se backdrop non è supportato */
  .megamenu-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9,9,9,0.32);
    pointer-events: none;
    z-index: -1;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
  }

  /* evidenzia voce principale attiva */
  .megamenu-main-item.active > a {
    color: #ffffff !important;
  }
}
