html {
	background: #333;
	min-height: 100%;
	position: relative;
}
body {
	margin: 0;
	overflow-x: hidden;
	min-height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	color: #333;
	font-size: 16px;
	font-family: "Helvetica", "Verdana";
}
ul, ol, li p {
	margin: 0;
	padding: 0;
}

/* panorama */
#cover {
	display: none;
	position: fixed;
	width: 200%;
	height: 200%;
	left: -50%;
	top: -50%;
}
#cover2 {
	position: absolute;
	width: 50%;
	height: 50%;
	top: 25%;
	left: 25%;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	overflow: hidden;
}
#panorama_wrapper {
	position: absolute;
	min-width: 100%;
	height: 61vw;
	min-height: 100%;
	width: 166.666667vh;
}
#panorama {
	position: absolute;
	top: 0%;
	left: 0;
	width: 100%;
	padding-bottom: 61%;
	overflow: hidden;
}
.livello {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.livello>div{
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	background-size: 100% 100%;
	background-repeat: no-repeat;
}
#cielo {
	background-image: url("../immagini/panorama/cielo.png");
}
#sole {
	background-image: url("../immagini/panorama/sole.png");
	width: 49.16%;
	height: 56.15%;
	left: 50.84%;
	top: 43%;
}
#stelle { background-image: url("../immagini/panorama/stelle.png");}
#nuvola01 {
	background-image: url("../immagini/panorama/nuvola01.png");
	width: 27.21%;
	height: 24.76%;
	top: 57%;
	left: 58%;
}
#nuvola02 {
	background-image: url("../immagini/panorama/nuvola02.png");
	width: 32.17%;
	height: 21.52%;
	left: 25%;
	top: 45%;
}
#montagne {
	background-image: url("../immagini/panorama/montagne.png");
	height: 24.43%;
	top: 75.57%;
}
#pianura {
	background-image: url("../immagini/panorama/pianura.png");
}
#uccelli {
	background-image: url("../immagini/panorama/uccelli.png");
	width: 9.53%;
	height: 12.46%;
	left: 54%;
	top: 63%;
}
#fogli {
	background-image: url("../immagini/panorama/fogli.png");
	width: 24.96%;
	height: 9.87%;
	top: 67%;
	left: 3.5%;
}
#collina {
	background-image: url("../immagini/panorama/collina.png");
	top: 58.58%;
	width: 61.60%;
	height: 41.42%;
}
#erba_primopiano {
	background-image: url("../immagini/panorama/erba_primopiano.png");
	width: 29.39%;
	height: 12.46%;
	left: 28.33%;
	top: 87.54%;
}
#hadeon {
	background-image: url("../immagini/panorama/hadeon.png");
	opacity: 0.2;
	width: 33.77%;
	height: 46.73%;
	left: 32%;
	top: 5%;
}
/* fine panorama */


/* loading */
#loading{
	display: block;
	background: #000;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
#loadbar {
	display: block;
	width: 200px;
	height: 200px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -120px;
	margin-left: -100px;
	overflow: hidden;
	border-radius: 50%;
}
#loadbar .layer {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("../immagini/sunrise.png");
	background-size: 100%;
}
#loading_text {
	color:#CEB75A;
	position: absolute;
	top: 50%;
	margin-top: 100px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: "Homemade Apple";
}

#main {
	position: relative;
	z-index: 2;
}
#mobile_menu { display: none;}
#menu_flag { display: none; }
#menu_wrapper {
	position: relative;
	width: 740px;
	height: 45px;
	background: rgba(0, 0, 0, 0.7);
	margin: 30px auto;
	z-index:3;
}
#logo_menu {
	width: 100px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -50px;
	margin-top: -50px;
}
#menu_wrapper #menu_sx, #menu_wrapper #menu_dx{
	position: absolute;
	top: 0;
	bottom: 0;
	width: 320px;
}
#menu_wrapper #menu_sx{left: 0;}
#menu_wrapper #menu_dx{right: 0;}
#menu_wrapper .voce {
	position: relative;
	width: 50%;
	float: left;
}
#menu_wrapper .voce>a {
	display: block;
	text-align: center;
	font-size: 1.2em;
	height: 45px;
	line-height: 45px;
}
#menu_wrapper .voce a {
	color: #B29860;
	text-decoration: none;
	text-transform: uppercase;	
}
#menu_wrapper .submenu {
	display: none;
    background: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.9em;
	padding: 5px 0;
}
#menu_dx .voce:last-child .submenu {right: 0; left: auto;}
#menu_wrapper .submenu a {
	display: block;
	padding: 6px 15px;
	margin: 3px 0px;
	font-size: 1.1em;
}

#mask {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6);
	overflow: auto;
	padding: 10px;
}
#mask > div {
	display: none;
}
#mask #chiudi_maschera {
	display: block;
	position: fixed;
	top: 80px;
	right: 50%;
	margin-right: -450px;
	font-size: 3em;
	font-family: "Homemade Apple";
	color: #332714;
	text-decoration: none;
	width: 50px;
	height: 50px;
    z-index: 3;
    line-height: 60px;
    text-align: center;
}
@media (max-width: 950px){
	#mask #chiudi_maschera {
		right: 20px;
		margin-right: 0;
	}
}

.carta {
	position: relative;
	max-width: 950px;
	background: url("../immagini/carta_centro.jpg")  #e0d0af;
	background-size: 100% auto;
	margin: 40px auto 40px;
	box-shadow: 0 0 65px 0 rgba(0, 0, 0, 1);
}
.carta .carta_contenuto {
	position:relative;
	z-index: 2;
	padding: 40px 60px 100px;
}
.carta:before, .carta:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: 100% auto;
}
.carta:before {
	background-image: url("../immagini/carta_alto.png");
	background-position: top center;
}
.carta:after {
	background-image: url("../immagini/carta_basso.png");
	background-position: bottom center;
}
.carta .carta_contenuto h1, .carta .carta_contenuto h2 {
	font-family: "Homemade Apple";
	text-align: center;
	color: #4F3F24;
	font-weight: normal;
}
.carta .carta_contenuto h1 {
	font-size: 2.5em;
}
.carta .carta_contenuto h2 {
	font-size: 2em;
	margin: 0;
}
.carta .carta_contenuto .testo {
	font-size: 1em;
	line-height: 1.6em;
	text-align: left;
}
.carta .carta_contenuto .testo.lyrics {
	text-align: center;
	white-space: pre-line;
}
.carta .carta_contenuto .testo p {
	margin: 0;
	padding: 5px 0;
}
.data {
	font-family: "Homemade Apple";
	text-align: center;
	color: #4F3F24;
	font-size: 1.4em;
}
.carta .carta_contenuto .separatore {
	background: url("../immagini/logo_divisorio.png") no-repeat 50% 50%;
	height: 180px;
	padding: 40px 0px;
	
}
.carta a {
	text-decoration: none;
	color: #004CA3;
}

.due_col {
	padding: 40px 0;
}
.due_col:after {
	content:"";
	display: block;
	clear: both;
}
.due_col>div {
	box-sizing: border-box;
	float: left;
}
.due_col>div:first-child {
	width: 45%;
	padding-right: 2%;
}
.due_col>div:last-child {
	width: 55%;
	padding-left: 2%;
}
.due_col.inverti>div {
	float: right;
}
.due_col.inverti>div:first-child {
	padding-left: 2%;
	padding-right: 0;
}
.due_col.inverti>div:last-child {
	padding-right: 2%;
	padding-left: 0;
}

.polaroid {
	position: relative;
	padding-bottom: 110%;
	margin: 10px;
}
.polaroid:after {
	content: "";
	position: absolute;
	background: url("../immagini/polaroid.png") no-repeat;
	background-size: 100% 100%;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0 0 18px 3px rgba(0,0,0,0.5);
}
.polaroid img {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	max-height: 100%;
}
.due_col .polaroid {
	margin-top: 30px;
	transform: rotate(-7deg);
	margin-left: -10px;
}
.due_col.inverti .polaroid {
	transform: rotate(7deg);
	margin-right: -10px;
	margin-left: 10px;
}

.citazione {
	letter-spacing: 2px;
    text-align: center;
    font-family: "Homemade Apple";
    padding: 50px 0;
}

/* media */
.gallery li {
	list-style-type: none;
	float: left;
	width: 200px;
}
.gallery a {
	display: block;
	box-shadow: 0px 0px 7px 0 rgba(0, 0, 0, 0.6);
}
.gallery:after {
	content: "";
	display: block;
	clear: both;
}

#social {
	position: fixed;
	bottom: 0px;
	left: 0;
	right: 0;
	z-index: 3;
	text-align: center;
}
#social ul {
	margin: 0;
	padding: 5px 0px;
	list-style-type: none;
	background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
#social ul li {
	display: inline-block;
	font-size: 1.2em;
	padding: 0px 10px;
}
#social ul li a {
	text-decoration: none;
	color: #9c8656;
}
#social ul li a i {
	font-size: 1.2em;
}
#spotify {
	display: block;
	width: 170px;
	border: none;
}

/* iPad portrait */
@media (max-width: 768px){
	body {
		font-size: 13px;
	}
	#main {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		
	}
	#logo_menu_wrapper {
	    position: fixed;
		left: 0;
		right: 0;
		background: rgba(0,0,0,0.7);
		height: 65px;
		top: 0px;
		z-index: 2;
	}
	#logo_menu {
		width: 60px;
		margin-top: -30px;
		margin-left: -30px;
	}
	#mobile_menu {
		display: block;
		position: fixed;
		top: 10px;
		left: 10px;
		z-index: 4;
		width: 45px;
		height: 45px;
		font-size: 40px;
		color: #9c8656;
		text-align: center;
	}
	#menu_flag {display: none;}
	#menu_wrapper {
		box-sizing: border-box;
		width: auto;
		height: auto;
		min-height: 100%;
		margin: auto;
		left: -100%;
		transition: left 0.5s;
		padding-top: 80px;
		padding-bottom: 66px;
	}
	#menu_flag:checked + #menu_wrapper {
		left: 0;
	}
	#menu_wrapper #menu_sx, #menu_wrapper #menu_dx {
		position: static;
		width: auto;
	}
	#menu_wrapper .voce {
		float: none;
		width: auto;
	}
	#menu_wrapper .voce a{
		font-size: 1.3em;
		padding: 3px 0;
	}
	#menu_wrapper .submenu {
		position: relative;
		top: 0;
	}
	#menu_wrapper .submenu a {
		padding: 10px 0;
		text-align: center;
	}
	
	#mask #chiudi_maschera { top: 80px; }
	.carta {
		margin-top: 0px;
	}
	.carta .carta_contenuto {
		box-sizing: border-box;
		width: auto;
		max-width: 480px;
		margin: auto;
		padding: 40px 20px 20px;
	}
	.due_col {
		padding-top: 0;
	}
	.due_col>div {
		float: none;
		width: auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.due_col.inverti>div {float: none;}
	.carta .carta_contenuto h2 {
		font-size: 1.5em;
	}
	.carta .carta_contenuto .due_col h2 {
		position: relative;
		margin-top: -60px;
		font-size: 1.7em;
		padding-bottom: 20px;
	}
	.carta .carta_contenuto .due_col .polaroid {
		transform: rotate(0);
		margin-left: 0;
		margin-right: 0;
	}
}
/* iPhone landscape */
@media (max-width: 480px){
	#mask #chiudi_maschera {top: 75px; right: 5px;}
	.carta .carta_contenuto {
		max-width: 320px;
		padding: 40px 20px 20px;
	}
	.carta .carta_contenuto .due_col h2 {
		margin-top: -45px;
		font-size: 1.3em;
		padding-bottom: 20px;
	}
	#social ul li a span {
		display: none;
	}
	#social ul li a i {
		font-size: 2.3em;
		padding: 0 5px;
	}
	.gallery li {
		float: none;
		margin: auto;
	}
}
/* iPhone portrait */
@media (max-width: 320px){
	html {background: #ffe;}
}
