﻿:root {
	--left_menu_open_width: 250px;
	--left_menu_close_width: 50px;
}

/* Menu Styles */

.ML_MainMenu {
	position: fixed;
	z-index: 999;
	height: calc(100% - 51px);
}

.ML_Menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ML_Menu_Hamburger {
	border: none;
	background-color: var(--background-color-menu-top);
	position: relative;
	display: block;
	text-align: center;
	padding: 0px;
	width: 50px;
	height: 50px;
	left: 0;
	top: 0;
	z-index: 1000;
	cursor: pointer;
}

	.ML_Menu_Hamburger:before {
		content: "\2630";
		/* hamburger icon */
		display: block;
		color: var(--label-color-main);
		line-height: 32px;
		font-size: 16px;
	}

.ML_Menu_Pinned .ML_Menu_Hamburger:before {
	content: "\2715";
	/* close icon */
	display: block;
	color: var(--label-color-main);
	line-height: 32px;
	font-size: 16px;
}

.ML_Menu_Hamburger:hover:before {
	color: #777;
}

.ML_MainMenu .ML_Menu li {
	position: relative;
}



.ML_Menu .ML_Menu_Icon {
	position: absolute;
	top: 12px;
	right: 14px;
	pointer-events: none;
	width: 24px;
	height: 24px;
	color: var(--background-color-site-secondary);
	font-size: 17px;
	text-align: center;
}


.ML_Menu {
	color: var(--background-color-site-secondary);
	text-decoration: none !important;
	position: relative;
}


.ML_Menu_Item {
	display: block;
	white-space: nowrap;
	padding: 1em;
	font-size: 14px;
	cursor: pointer;
}


.ML_Menu .ML_Menu_CurrentUser .ML_Menu_Item:hover {
	color: #aaa;
}

.ML_Menu {
	margin-bottom: 3em;
	height: 100%;
}

.ML_Menu_Items li .ML_Menu_Icon {
	color: var(--background-color-site-secondary);
}



.ML_Menu_Items .ML_Menu_CurrentUser:hover .ML_Menu_Icon {
	color: #777;
}

.ML_Menu {
	position: absolute;
	display: block;
	left: -200px;
	top: 0;
	width: var(--left_menu_open_width);
	transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
	background-color: var(--background-color-menu);
	z-index: 999;
}

.ML_Menu_Items {
	top: 0;
	height: 100%;
	direction: ltr;
	background-color: var(--background-color-menu);
}

ul > .ML_Menu_Items {
	overflow-y: auto;
	direction: ltr;
}

.ML_MainMenu_Container {
	position: relative;
	height: calc(100% - 80px) !important;
	border-top: 0px solid #fff;
	z-index: -1;
	display: block;
	direction: rtl;
	overflow-y: auto;
}

.ML_Menu_CurrentPage_SubPage {
	background-color: var(--background-color-subpage);
}

.ML_Menu .ML_Menu_CurrentPage_SubPage .ML_Menu_Item {
	color: var(--background-color-site-secondary) !important;
}

.ML_Menu .ML_Menu_CurrentPage_SubPage .ML_Menu_Icon {
	color: var(--background-color-site-secondary) !important;
}

.ML_Menu:hover {
	position: absolute;
	left: 0;
	top: 0;
}

.ML_Menu_Pinned .ML_Menu:hover {
	position: absolute;
	left: -200px;
}

.ML_Menu_Pinned .ML_Menu {
	transform: translate3d(200px, 0, 0);
	transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}

.ML_Menu_CurrentUser {
	background-color: var(--background-color-menu);
	cursor: pointer;
}

	.ML_Menu_CurrentUser span {
		color: var(--background-color-site-secondary:);
	}


.ML_Menu_CurrentUser_OpenNav [ML_PageControl_Key=CurrentUserFullNameNav] {
	font-size: 14px;
	font-weight: bold;
}

.ML_Menu_CurrentUser_OpenNav [ML_PageControl_Key=CurrentUserTypology] {
	font-size: 12px;
}


.ML_Menu_CurrentPage {
	background-color: var(--background-color-site-tertiary);
}

.ML_Menu_CurrentSection {
	background-color: var(--background-color-site-secondary) !important;
}

	.ML_Menu_CurrentSection span {
		color: var(--label-color-main);
		font-weight: bold;
	}


.ML_Menu_CurrentPage > div > span,
.ML_Menu_CurrentPage > div > span > span {
	color: var(--label-color-main);
	font-weight: bold;
}

.ML_Menu_CurrentSubPage {
	background-color: var(--background-color-site-secondary);
}


	.ML_Menu_CurrentSubPage > div > span,
	.ML_Menu_CurrentSubPage > div > span > span {
		color: var(--label-color-main);
		font-weight: bold;
	}


.ML_Menu_CurrentPage_SubPage li {
	padding-left: 15px;
}

	.ML_Menu_CurrentPage_SubPage li:hover {
		background-color: white;
	}

.ML_Menu_CurrentUser_OpenNav {
	display: none;
	background-color: var(--background-color-menu);
	cursor: pointer;
	color: var(--background-color-site-secondary:);
}

.ML_Menu_CurrentUser_Avatar {
	border-radius: 50px;
}

.ML_Menu_Pinned .ML_Menu_CurrentUser_OpenNav {
	display: block;
}

.ML_Menu_Pinned .ML_Menu_CurrentUser {
	display: none;
}

li:not(.ML_Menu_CurrentPage) > ul {
	transition: all 0.2s cubic-bezier(0.77, 0, 0.175, 1);
	opacity: 0;
	left: -2500px;
	position: fixed;
	z-index: -1;
	height: 100%;
	top: 0px;
	width: var(--left_menu_open_width);
	background: var(--background-color-site-tertiary);
	overflow-y: auto;
}

li:not(.ML_Menu_CurrentPage):hover > .ML_Menu_CurrentPage_SubPage {
	left: var(--left_menu_open_width);
	opacity: 1;
	transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.ML_Menu_Pinned li:not(.ML_Menu_CurrentPage):hover > .ML_Menu_CurrentPage_SubPage {
	transition: all 0.2s cubic-bezier(0.77, 0, 0.175, 1);
}

li:not(.ML_Menu_CurrentPage):hover > .ML_Menu_CurrentPage_SubPage span {
	color: var(--background-color-menu);
}

li:not(.ML_Menu_CurrentPage):hover > .ML_Menu_CurrentPage_SubPage li:hover span {
	color: var(--label-color-main) !important;
}

.ML_Menu_Pinned li:not(.ML_Menu_CurrentPage):hover > ul {
	top: 0px;
}

li:not(.ML_Menu_CurrentPage):hover > ul {
	top: 54px;
}


li:not(.ML_Menu_CurrentPage):hover {
	background: var(--background-color-site-tertiary) !important;
}

	li:not(.ML_Menu_CurrentPage):hover span {
		color: var(--label-color-main);
	}


	li:not(.ML_Menu_CurrentPage):hover .ML_Menu_Item_Arrow {
		left: var(--left_menu_open_width);
	}


.ML_Menu_CurrentPage > ul {
	display: block !important;
}


.ML_Menu_Item_Arrow {
	left: -2000px;
	position: fixed;
	z-index: 100323243;
	width: 0;
	height: 0;
	border-top: 17px solid transparent;
	border-bottom: 17px solid transparent;
	border-left: 17px solid #2a3e4c;
	transform: translateY(-8px);
	transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.ArrowNav {
	transform: translateY(-58px);
}

.ML_Menu_Pinned .ML_Menu_Item_Arrow {
	transition: all 0s cubic-bezier(0.77, 0, 0.175, 1);
}
/* loghi in fodno al menù*/
div[ML_PageControl_Key=Menu_MainTitle] {
	background-image: url("Images/Shared/Login/Logo_w.png");
	height: 40px;
	align-items: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: fixed;
	bottom: 40px;
	width: var(--left_menu_open_width);
}

div[ML_PageControl_Key=Menu_MainLogo] {
	height: 40px;
	align-items: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: fixed;
	bottom: 0px;
	width: var(--left_menu_open_width);
}