/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #D96C5F;
    z-index: 100;
}
.overlay .overlay-close {
    width: 20px;
    height: 20px;
    overflow: hidden;
	float: right;
	margin-top: 13px;
    border: none;
    background: none !important;
    color: transparent;
    outline: none;
    z-index: 100;
}
.overlay .overlay-close img {
    width: 100%;
    height: auto;
}
/* Menu style */
.centra-menu-mobile {
	font-family: sans-serif;
	position: absolute;
	left: 5vw;
	z-index: 3;
	top: 50%;
	height: 378px;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}
.centra-menu-mobile ul {
  	list-style: none;
  	padding: 0;
  	margin: 0;
}
.centra-menu-mobile a,
.centra-menu-mobile span {
    color: #FFF;
    font-size: 35px;
    line-height: 47px;
    font-weight: 400;
}
.centra-menu-mobile ul li.link-attivo, .centra-menu-mobile ul li a:hover {
	color: rgba(255, 255, 255, 0.5);
    font-size: 35px;
    line-height: 47px;
    font-weight: 400;	
}
.centra-menu-mobile a:hover,
.centra-menu-mobile a:focus, 
.centra-menu-mobile span {
	color: rgba(255, 255, 255, 0.5);
    font-size: 35px;
    line-height: 47px;
    font-weight: 400;
}
/* Effects */
.overlay-hugeinc {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}
/*.overlay-hugeinc.close .foto-sfondo-menu {
	opacity: 0;
	-webkit-transition: opacity 0s 0s;
	transition: opacity 0s 0s;
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}
.overlay-hugeinc .foto-sfondo-menu {
	opacity: 0;
	-webkit-transition: opacity 2s 2s;
	transition: opacity 2s 2s;
}
.overlay-hugeinc.open .foto-sfondo-menu {
	opacity: 1;
	-webkit-transition-delay: 0.4s;
	transition-delay: 0.4s;
}*/
.foto-sfondo-menu {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 1;	
}
.overlay-hugeinc.open {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}
.overlay-hugeinc nav {
	-webkit-perspective: 1200px;
	perspective: 1200px;
}
.overlay .overlay-close:hover {
	cursor: pointer;
	-webkit-animation-name: rotateInmenu;
	-moz-animation-name: rotateInmenu;
	-o-animation-name: rotateInmenu;
	animation-name: rotateInmenu;
	-webkit-animation-duration: 1s;
	   -moz-animation-duration: 1s;
	     -o-animation-duration: 1s;
	        animation-duration: 1s;
	-webkit-animation-fill-mode: infinite;
	   -moz-animation-fill-mode: infinite;
	     -o-animation-fill-mode: infinite;
	        animation-fill-mode: infinite;
}
@-webkit-keyframes rotateInmenu {
  from {
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform: rotate3d(0, 0, 1, -200deg);
    transform: rotate3d(0, 0, 1, -200deg);
  }
  to {
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rotateInmenu {
  from {
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform: rotate3d(0, 0, 1, -200deg);
    transform: rotate3d(0, 0, 1, -200deg);
  }
  to {
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
.rotateInmenu {
  -webkit-animation-name: rotateInmenu;
  animation-name: rotateInmenu;
}

@media screen and (max-height: 30.5em) {
	.overlay nav {
		height: 70%;
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}