/* CSS per menu javascript free */

/* Screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}
/* stile del TOGGLE */
#main-menu-toggle {
	position: fixed;
	color: black;
	border: 0;
	z-index: 87654321;
	bottom: 4em;
	right: 4em;
	width: 30px;
	text-align: center;
	text-decoration: none;
	font-family: 'DIN';
	font-size: 1.2em;
}
.icon-bar{
	display: block;
	width: 31px;
	height: 3px;
	background-color: black !important;
	margin: 3px 0 3px 0px;
}
.menu-toggle:hover,
.menu-toggle:focus {
  	background-color: transparent;
}

/*  il toggle X che chiude */
.main-menu .menu-close {
	position: absolute;
	width: 25px;
	color: white;
	background-color: transparent;
	border: 0px;
	bottom: 2.5em;
	right: 1.3em;
	padding: 10px 35px;
	font-size: 36px;
	font-weight: bold;
	text-decoration: none !important;
}
.main-menu .menu-close:hover{
	 background-color: transparent;
}

/* MENU chiuso */
.main-menu {
	position: absolute;
	transform: translateX(150%);
	left: 0%;
	top: 0;
	margin-top: 0;
	padding: 34px;
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	overflow-x: visible;
	z-index: 987654321;
	background: black;
	opacity: 0;
	font-family: "HelveticaNeue-Bold", Helvetica, 'Roboto', arial, sans-serif;
	animation: right 0.3s ease;
	transition: all ease-in 0.5s;
}
ul.menu{
	position: fixed;
	bottom: 6.5em;
	padding-left: 0px;
}

/*  le voci di menu */
.main-menu a {
	display: block;
	padding: 0px 10px 35px 0px;
	line-height: 1em;
	font-size: 35px;
	color: white;
	text-decoration: none;
	text-align: left;
}
.main-menu li.secondario{
	display: inline-block;
}
.main-menu li.secondario a{
	font-size: 2em;
	line-height: 0.5em;
	font-family: 'DIN';
}
.main-menu a:hover,
.main-menu a:focus {
	text-decoration: underline;
	color: #FC7273;
	text-decoration: none;
}

/* Il menu aperto */
.main-menu:target,
.main-menu[aria-expanded="true"] {
	left: 0%;
	width: 100%;
	transform: translateX(0%);
	outline: none;
	opacity: 0.9;
	overflow-y: scroll;
}

/* lo sfondo grigio */
.main-menu:target + .backdrop,
.main-menu[aria-expanded="true"] + .backdrop {
	position: absolute;
	display: block;  
	content: "";
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1998;
	cursor: default;
}
.solomobile{
	display: block;
}
/* ----------barra traduzioni temp---------- */
#traduzione{
	display: none;
	position: relative;
	background-color: transparent;
	color: white;
	margin-top: 1em;
}
a.glink {
	text-decoration: none;
	display: inline-block !important;
	margin-right: 18px;
	padding: 0em;
}
a.glink img{
	display: none;
}

@supports (position: fixed) {
  .main-menu,
  .main-menu:target + .backdrop,
  .main-menu[aria-expanded="true"] + .backdrop {
    position: fixed;
  }
}
/* Sotto 350 px FEATURE PHONES */
@media only screen and (max-width: 400px){
	.main-menu li.secondario{
		display: block;
		line-height: 1em;
	}
	.main-menu li.secondario a{
		padding: 0.8em 0;
	}
/*
	#main-menu-toggle {
		padding: 1px 2px 1px;
	}
*/
/*
	ul.menu{
		position: fixed;
	}
	.main-menu a{
		padding: 0px 10px 20px 0px;
		font-size: 1.6em;
	}

*/
}
/*
 Larger screen styling
 Horizontal menu
*/
@media only screen and (min-width: 768px){
	/* stile del TOGGLE */
	#main-menu-toggle {
		z-index: 87654321;
		top: 9em !important;
		bottom: initial;
		right: 4em;
		width: 30px;
		position: fixed;
	}
	.main-menu {
		transform: translateX(150%);
		right: 0%;
		left: auto;
		padding: 34px;
		width: 50%;
		height: 100%;
/* 		animation: right 0.3s ease; */
		transition: all ease 0.5s;
	}

	/* Il menu aperto */
	.main-menu:target,
	.main-menu[aria-expanded="true"] {
		right: 0%;
		left: auto;
		width: 50%;
		transform: translateX(12%);
		outline: none;
		opacity: 0.9;
		overflow-y: scroll;
	}
	/*  il toggle X che chiude */
	.main-menu .menu-close {
		position: absolute;
		width: 25px;
		color: white;
		background-color: transparent;
		border: 0px;
		top: 2em;
		right: 1.55em;
		padding: 10px 35px;
		font-size: 36px;
		font-weight: bold;
		text-decoration: none !important;
	}
/*
	.menu-toggle,
	.main-menu .menu-close {
		display: none;
	}
*/

	/* ----------barra traduzioni temp---------- */
/*
	#traduzione{
		position: relative;
		background-color: transparent;
		color: white;
		margin-top: 1em;
	}
	a.glink span{
		margin-right: 0;
	}
	a.glink {
		margin-right: 10px;
		padding: 0px 7px 2px 7px !important;
		text-align: center;
	}
	a.glink img{
		display: none;
	}
	.solomobile{
		display: none;
	}
*/
}



/* ------------Query speciale per webcat----------- */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 
    @media {
		    /* stile del TOGGLE */
		#main-menu-toggle {
			position: fixed;
			color: black;
			border: 0;
			z-index: 87654321;
			bottom: 6em;
			right: 4em;
			width: 30px;
		}
		/* MENU chiuso */
		.main-menu {
			position: fixed;
			left: 0px;
			top: 0px;
			width: 100%;
			padding-top: 7em;
			margin-top: 0px;
			height: 100%;
			opacity: 0;
			overflow: hidden;
			visibility: hidden;

			animation: right 0.3s ease;
			transition: all ease-in 0.5s;
		}
		/* Il menu aperto */
		.main-menu:target,
		.main-menu[aria-expanded="true"] {
			width: 100%;
			outline: none;
			opacity: 1;
			visibility: visible;
		}
		ul.menu{
			position: fixed;
			bottom: 5.2em;
			padding-left: 0px;
		}
		/*  il toggle X che chiude */
		.main-menu .menu-close {
			position: fixed;
			width: 25px;
			bottom: 1.8em;
			right: 0.25em;
			padding: 10px 35px;
			font-size: 36px;
			font-weight: bold;
			text-decoration: none !important;
			z-index: 1987654321;

		}

    }
}
