.menu{
	margin-left: 4rem;
}

.hb-menu {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    background: transparent;
}

.hb-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 20px;
}

.hb-menu-icon span {
    width: 30px;
    border: 1px solid white;
    transition: all 0.3s ease;
    left: 0;
}

.hb-menu-icon span:first-child {
    top: 0;
    left: 0px;
    margin-bottom: 8px;
    position: relative;
}

.hb-menu-icon span:nth-child(2) {
    top: 0;
    left: 0px;
    margin-bottom: 8px;
    position: relative;
}

.hb-menu-icon span:last-child {
    bottom: 0;
    position:relative;
}

/* Stile quando attivo: trasformiamo in X */
.hb-menu.active .hb-menu-icon span:first-child {
    transform: rotate(45deg);
    top: 4px;
}

.hb-menu.active .hb-menu-icon span:nth-child(2){
    display:none;
}


.hb-menu.active .hb-menu-icon span:last-child {
    transform: rotate(-45deg);
    bottom: 6px;
    
}

.header-black{
    background: var(--color-nero)!important;
}

/* MENU CONTAINER */
.menu-container {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100vw!important;
  height: calc(100vh - var(--header-height));
  background: var(--color-nero);
  color: white;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: -1;
  overflow-y: auto;      
  display: block;              
  box-sizing: border-box;
}

.menu-container a{
    color: white;
}

.menu-container.active {
  transform: translateX(0);
}

/* menu */

#menu-menu-eng,
#menu-menu{
    margin-top:4rem;
}

#menu-menu-eng li a,
#menu-menu li a{
	line-height:0.9;
}

#menu-menu-eng li,
#menu-menu li{
  width:calc(33vw - 2.5rem);
  list-style: none;
margin-bottom: 1rem!important
}

#menu-menu-eng a,
#menu-menu a{
  font-weight: 600;
    font-size: 2.5rem;
}

#menu-menu-eng .level-3,
#menu-menu-eng .level-2,
#menu-menu .level-3,
#menu-menu .level-2{
    position: absolute;
    left: 33vw;
    top:0;
    margin-top:4rem;
}

#menu-menu-eng .level-3,
#menu-menu .level-3{
    margin-left:0;
    margin-top:-2px
}

#menu-menu-eng .level-2 a,
#menu-menu .level-2 a{
    font-size: 1.5rem;
    font-weight: 400;
}

#menu-menu-eng .level-3 a,
#menu-menu .level-3 a{
    font-size: 1.5rem;
    font-weight: 400;
}


.menu-item-has-children > ul.level-2,
.menu-item-has-children > ul.level-3 {
    display: none; 
}

.menu-item-has-children.open > ul.level-2,
.menu-item-has-children.open > ul.level-3 {
    display: block;
} 

.menu-item-has-children.open > a {
  color: var(--color-rosso);
}

.polylang_langswitcher{
    color:white;
    margin:0
}
.polylang_langswitcher li{
    list-style: none;
    text-transform: uppercase;
    margin:0;
}
.polylang_langswitcher{
    display: flex;
    align-items: center;
}

.polylang_langswitcher li:nth-child(2){
    margin-left: 0.5rem;
}

.l-subheader-cell .at_right a{
    text-decoration: none!important;
}

.header_hor .w-nav.type_mobile.m_layout_dropdown .w-nav-list.level_1{
    height: 100vh!important;
    width:100vw;
    left:-24px!important;
	top:0;
	display:block;
}

.w-nav-close{
	display: none!important;
}

.w-nav.type_mobile.m_layout_fullscreen .w-nav-list.level_1>li:first-child{
	margin-top:0!important;
}

.header_hor .w-nav.type_mobile.m_layout_dropdown .w-nav-list.level_1 a{
    padding-bottom:0.1rem;
}

.menu .lang-item{
    display:none;
}

@media (max-width: 768px) {
    .menu .lang-item{
        display:block;
    }
}

#menu-footer .menu-item-has-children > a{
  pointer-events: none;
  cursor: default;     
  color: inherit;       
}

.ush_menu_1 .w-nav-item.level_1.current-menu-item>a:not(.w-btn), .ush_menu_1 .w-nav-item.level_1.current-menu-ancestor>a:not(.w-btn), .ush_menu_1 .w-nav-item.level_1.current-page-ancestor>a:not(.w-btn) {
    background: transparent!important;
    color: white!important;
}


.w-nav.type_mobile.m_layout_fullscreen .w-nav-list.level_1 {
    min-height: 80vh !important;
    height: 80vh !important;
}


#undermenu-content{
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100vw;
	background: var(--color-grigio);
	z-index: 999999;
	display: none;
}

.undermenu-block{
	padding-left: var(--page-padding-sma);
	padding-right: var(--page-padding-sma);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	height: 80px;
	width: 100%;
	max-width: 400px; 
}

.undermenu-block a{
	flex: 1;                
	border: 2px solid black;
	display: block;
	padding: 10px;
	text-align: center;
}

@media (max-width: 768px) {
	#undermenu-content{
		display: flex;
		justify-content: center;
	}
}

/* Seleziona solo le voci di menu che contengono la classe di Polylang */
.w-nav-list.level_1{
	display:flex;
	flex-direction: row;
}
.w-nav-list.level_1 .lang-item {
    display: inline-block!important;
    vertical-align: top;
    margin-right: 15px;
	width:30%;
}

.menu-item-7904-en,
.menu-item-616-en{
	top: -50px;
	left: 40px;
}

.w-nav-arrow{
	margin:0!important;
}

.w-nav-anchor.level_1 .w-nav-title{
	font-weight: bold;
}