NAV.menu {
	transition: transform .5s;
	width: fit-content;
	padding-bottom: 3%;

	max-width: 100%;
	max-height: 100%;
	}
/* nomi pagine */
NAV.menu UL A {
	width: fit-content;
	height: auto;
	border-radius: var(--radius-md);
	color: var(--char_col_menu);
	text-transform: uppercase;
	font-size: inherit;
	font-weight: bold;
	&:hover, &:focus {
		color: var(--orange_hover);
		background-color: var(--bg_default);
		text-decoration-line: none;
		text-shadow: 0 0 1px var(--blue_juice);
	}
}

NAV.menu UL LI.selected A {
	background-color: var(--bg_default);
	cursor: default;
	color: var(--orange_hover) !important;
	text-shadow: 0 0 1px var(--blue_juice);
}

/* freccia per sottomenu */
NAV.menu .pure-menu-has-children > .pure-menu-link::after {
	content: "\25BE";
}

NAV.menu .pure-menu-has-children {
	background-color: transparent;
	flex-direction: column;
}
/* voce con sottomenu */
NAV.menu .pure-menu-active > .pure-menu-link {
	background-color: transparent;
	color: var(--char_col_menu);
	&:hover, &:focus{
		background-color: var(--bg_default);
		color: var(--orange_hover);
		text-shadow: 0 0 1px var(--blue_juice);
	}
}

NAV.menu .pure-menu-children {
	position: static;
	background-color: transparent;
	margin-left: 1.3em;
	border-left: solid 1px var(--char_col);
}

A.menu_burger, A.menu_close {
	display: none;
	position: fixed;
	top: 120%;
	left: 0%;
	font-size: 2em;
	color: var(--char_col);	
	z-index: 10;
}
A.menu_burger:focus, A.menu_close:focus{
	color: var(--char_col);	
}
A.menu_burger.active {
	position: absolute;
}
#menu-container.active .menu_burger .fa-bars{
	transition: all 0.05s ease-in-out;
	opacity: 0;
	pointer-events: none;
}	
A.menu_close {
	display: none;
	position: absolute;
	margin: .2em .4em;
	top: 0;
	left: 0;
	font-size: 2em;
	color: var(--char_col);	
}
#blink-menu {
	display: none;
	position: fixed;
	margin-top: 10%;
	margin-left: -2%;
	top:0;
	transform: rotate(45deg);	
		font-size: 4em;
	color: rgba(86,146, 198, 0.7);	
	pointer-events: none;
	animation: blink 1.5s infinite;
}
/*elementi menu laterale*/
/* richiamato in header.php */
#menu-container {
	display: flex;
	flex-direction: column;
	width: 20dvw;
	height: 100dvh;
	z-index: 15;
	max-width: fit-content;
	box-shadow: 1px 0px 3px var(--orange);
	background-image: linear-gradient(var(--orange_light), var(--orange));
    font-family: 'Saira Condensed', sans-serif;
	font-size:2vh;
	justify-content: space-between;
	border-radius:0 var(--radius-md) 0 0;
	transition: transform .5s;
}
@media screen and (max-height: 767px) and (orientation: landscape){
	#menu-container{
		background-image: none;
		background-color: var(--orange_light);
	}
}
#menu_main {
	z-index: 20;
}
NAV.menu > UL {
	margin-top: 1em;
}
@media screen and (max-width: 550px) and (orientation: portrait){
	NAV.menu > UL {
		margin-top: .2em;
	}
}

#menu_title{
	display: none;
	margin-left: -8%;
	margin-bottom: -5%;
	margin-top: -5%;
	text-shadow: 0px 1px 2px #000000;
	pointer-events: none;
}

#logo-container {
	display: block;
    z-index: 20;
	min-width: 4rem;
	max-width: 100%;
    background-color: inherit;
	cursor: pointer;
	box-shadow: 0px 1px 5px var(--shadow);
	transition: 0 0.2s ease-in-out;
	border-radius: var(--radius-xl);
	overflow: hidden;
	margin-inline: 1rem;
	writing-mode: horizontal-tb;
	&:hover{
		box-shadow: 0px 2px 10px rgba(255, 255, 255, 0.3);
	}
}

#juice_home{
	max-width: 100%;
	height: auto;
	width: auto;
	display: block;
}
#current_user {
	text-align: center;
	position: relative;
	color: white;
	white-space: nowrap;
	font-size: 2.2vh;
}

#sticky-bottom-menu {
	/* background-color: rgba(255, 255, 255, 0.7); */
	background-color: var(--bg_card);
	z-index: 20;
	width: 100%;
	height: fit-content;
	box-shadow: 0px -1px 5px 1px var(--shadow);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	text-align: center;
	color: var(--blue_juice);
	font-family: inherit;
	font-size: 100% !important;
	font-weight: bold;
	text-shadow: 0 0 1px #000000;
	margin-top: auto;
}

@media screen and (max-width: 767px),
(max-height: 767px) {	
	#menu-container {
		display: grid !important;
		position: absolute;
		width: 100dvw;
		transform: translateY(-120%);		
		border-radius: 0;
	}
	#menu_title{
		display: block;
	}
	#sticky-top-menu {
		box-shadow: none !important;
		width: auto;
		height: 100%;
		padding-bottom: 0 !important;
	}
	#menu-container.active {
		transform: translateY(0%);
	}	
	#logo-container {
		margin-top: .5rem;
		width: 100%;
		min-height: 75px;
	}
	#juice_home{
		max-height: 100%;
		min-height: 75px;
	}

	NAV.menu{
		align-self: start;
		width: 100%;
	}
	A.menu_burger{
		margin: 0;
		padding: .4em .4em 1.8rem .4em;
		padding-bottom: 2rem;
		background-image: linear-gradient(180deg, var(--meta_theme) 75%, transparent);
	}
	A.menu_burger, #blink-menu {
		display: block;
		z-index: 10;
	}	
	A.menu_close {
		display: block;
	}	
}
@media screen and (max-width: 767px) and (orientation: portrait) {
	#menu-container {
		grid-template-columns: 5% 10% 70% 10% 5%;
		grid-template-rows: 5% 20% 68% 7%;
		justify-items: center;
		align-items: center;
		font-size: 2.5vh;
	}
	#menu_title{
		font-size: 4vh;
	}
	#sticky-top-menu {
		grid-area: 2 / 2 / 2 / 5 ;
	}
	#current_user {
		font-size: 2.4vh !important;
		padding-bottom: 4%; 
	}
	#sticky-bottom-menu {
		grid-area: 4 / 1 / 4 / 6;
		height: 100%;
		font-size: 4vh !important;
	}
	NAV.menu {
		grid-area: 3 / 3 / 3 / 3;
	}
	#blink-menu{
		left: 18%;
	}
	
}
@media screen and (max-height: 767px) and (orientation: landscape) {
	#menu-container {
		grid-template-columns: 10% 35% 10% 35% 10%;
		grid-template-rows: 5% 30% 5% 55% 5%;
		justify-items: right;
		font-size: 1.9vw;
	}
	#menu_title{
		font-size: 3.5vw;
	}
	#current_user {
		font-size: 2.1vw !important;
		padding-bottom: -5%;
	}
	#sticky-top-menu {
		grid-area: 2 / 4 ;
	}
	#sticky-bottom-menu {
		grid-area: 4 / 4;
		box-shadow: none;
		color: transparent;
		text-shadow: none;
		width: 100%;
		height: 100%;
		background: url('../logo_large.png') transparent no-repeat center;
		background-size: 35dvh;
	}
	NAV.menu{
		grid-area: 2 / 2 / 5 / 2;
	}
	#blink-menu{
		margin-top: 2.2rem;
		left: 9%;
	}
}

@keyframes blink {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@media print {
	A.menu_burger, NAV.menu {
		display: none;
	}
}