@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700);

@font-face {
    font-family: 'modern_pictogramsnormal';
    src: url('../fonts/modernpics-webfont.eot');
    src: url('../fonts/modernpics-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/modernpics-webfont.woff') format('woff'),
         url('../fonts/modernpics-webfont.ttf') format('truetype'),
         url('../fonts/modernpics-webfont.svg#modern_pictogramsnormal') format('svg');
    font-weight: normal;
    font-style: normal;
}

body, html{
	position: relative;
	height: 100%;
	background: rgba(25,25,25, 0.97);
	-webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.004);
}

body{
	font-size: 1.4rem;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}

h1{
	font-size: 12rem;
	margin: 0 0 30px 0;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: -5px;
	line-height: 100px;
}

h2{
	font-size: 1.8rem;
	margin: 0 0 5px 0;
	text-transform: uppercase;
	font-weight: bold;
	line-height: 1.8rem;
}

p{
	margin: 20px 0 0 0;
	padding: 0 60px;
	font-family: times;
	font-size: 1.8rem;
	line-height: 2.4rem;
}

#mainWrapper{
	width: 100%;
	height: 100%;
	min-height: 500px;
	padding:0;
	margin: 0 auto;
	background: rgba(25,25,25, 0.97);
}	

/* MAIN NAV */
#logo{
	height: 100px;
	color: #fff;
	line-height: 100px;
	text-align: center;
	font-size: 4rem;
	background-image: url('../img/logo.png');
	background-repeat: no-repeat;
	background-position: 50%;
}

#toggleMenu{
	width: 40px;
	height: 40px;
	position: absolute;
	right: 20px;
	top: 30px;
	border: 1px solid #5e5e65;
	border-radius: 2px;
	font-family: 'modern_pictogramsnormal';
	color: #5e5e65;
	font-size: 4rem;
	line-height: 40px;
	display: none;
}

#mainNavWrapper{
	width: 20%;
	height: 100%;
	position: fixed;
	background: rgba(25,25,25, 0.97);
	border-right: 1px solid #111;
	float: left;
	font-size: 1.2rem;
}

ul#mainNav{
	margin: 0;
	padding: 0;
	list-style: none;
	-webkit-backface-visibility:hidden;
	backface-visibility:hidden;
}

li.mainNavItem{
	position: relative;
	margin: 0;
	padding: 0 20px;
	line-height: 40px;
	box-sizing:border-box;
}

li.mainNavItem a{
	display: block;
	padding: 0 5px;
	color: #b9b9b9;
	text-decoration: none;
	border-bottom: 1px solid #3a3a41;
}

li.mainNavItem a:hover{
	color: #b60027;
}

.expand:hover ul#mainSubNav{
	opacity: 1;
	left: 0;
}

/* SUB NAV */
ul#mainSubNav{
	position: absolute;
	left: -285px;
	margin: 0;
	width: 100%;
	padding: 0 0 0 35px;
	list-style: none;
	opacity: 0;
	transition: all 0.5s;
	box-sizing:border-box;
}

li.mainSubNavItem{
	height: 40px;
	margin: 0;
	padding: 0;
	line-height: 40px;
}

li.mainSubNavItem a{
	display: block;
	padding: 0;
	color: #b9b9b9;
	text-decoration: none;
	border-bottom: none;
}

li.mainSubNavItem a:hover{
	color: #b60027;
}

.current:after{
	content: '';
	position: absolute;
	top: 15px;
	right: 22px;
	width: 10px;
	height: 10px;
	padding:0;
	display: block;
	border-radius: 50%;
	background: #b60027;
	border: 1px solid #c0392b;
}

/* LEGACY */
#legacy{
	width: 20%;
	position: fixed;
	bottom: 0;
	padding: 20px;
	box-sizing:border-box;
	border-top: 1px solid #111;
	font-size: 1.1rem;
	line-height: 1.8rem;
	color: #b9b9b9;
	background: rgba(0,0,0, 0.15);
}

/* CENTRAL */
#centralWrapper{
	position: relative;
	width: 80%;
	padding: 40px 0;
	min-height: 100%;
	float: right;
	background-image: url('../img/bg.jpg');
	box-sizing: border-box;
}

#map-wrapper{
	position: absolute;
	width: 80%;
	height: 100%;
	right: 0;
}

#popup p{
	font-size: 1.4rem;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}

.article{
	width: 100%;
	position: absolute;
	top: 50%;
	margin-top: -195px;
	text-align: center;
	color:#fff;
}

.section{
	width: 100%;
	text-align: center;
	color:#fff;
	padding: 40px 0;
	border-bottom: 1px solid #000;
}

.section:first-child{
	padding-top: 0;
}

.section:last-child{
	padding-bottom: 0;
	border-bottom: none;
}

.section:nth-child(even){
	background-color: rgba(0,0,0,0.2);
}

.divider{
	width: 140px;
	height: 3px;
	margin: 0 auto;
	background-color: #c0392b;
}


/* CENTRAL BUTTON*/
.buttonWrapper{
	width: 480px;
	margin: 0 auto;
}

.button{
	width: 230px;
	height: 55px;
	margin: 0;
	margin-top: 30px;
	border-radius: 3px;
	font-size: 1.7rem;
	line-height: 55px;
	font-weight: normal;
	float: left;
}

.button:first-child{
	margin-right: 10px;
}

.button a{
	display: block;
	text-decoration: none;
	color: #f1f1f1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stroke{
	border: 2px solid #f1f1f1;
	color: #f1f1f1;
}

.stroke a{
	color: #f1f1f1;
}

.fill{
	border: 2px solid #b60027;
	background: #b60027;
}


/* PRODOTTI */
ul.product-list{
	width: 60%;
	margin: 20px auto;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

ul.product-list li{

}

.product-button{
	width: 180px;
	height: 35px;
	margin: 0 auto;
	margin-top: 30px;
	border-radius: 3px;
	font-size: 1.7rem;
	line-height: 35px;
	font-weight: normal;
}

.product-button a{
	display: block;
	text-decoration: none;
	color: #f1f1f1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* MAP */
#map-canvas{
	max-width: none;
	height: 100%;
}


/* FORM */
#form-wrapper{
	margin-top:-261px;
}

#form-email{
	padding: 20px;
}

.row{
	position: relative;
}

.fields{
	width: 100%;
	height: 40px;
	margin: 5px 0;
	padding-left: 10px;
	border: 1px solid #eee;
	box-sizing:border-box;
	color: #444;
}

textarea{
	height: 100px !important;
	padding: 10px 40px 10px 10px;
}

.input-label{
	width: 40px;
	font-family: 'modern_pictogramsnormal';
	color: #555;
	font-size: 1.7em;
	position: absolute;
	font-weight: lighter;
	right: 5px;
	top: 13px;
	text-align: center;
}

label.error{
	width: 40px;
	font-family: 'modern_pictogramsnormal';
	color: #c0392b;
	font-size: 1.7em;
	position: absolute;
	right: 5px;
	top: 12px;
	text-align: center;
	background:#fff;
}

#invia{
    display: block;
    width: 100%;
    height: 50px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 20px 0;
    font-size: 1.3em;
    line-height: 2px;
    color: #f1f1f1;
    font-weight: 300;
    float: none !important;
}

.inviato{
	background: rgb(39,174,96) !important; /* Old browsers */
	border: 1px solid #27ae60;
}


/* IPAD */
@media only screen and (min-width : 768px) and (max-width : 1024px)  {
	#mainNavWrapper{
		width: 30%;
	}

	#centralWrapper{
		width: 70%;
	}

	#legacy{
		width: 30%;
	}

	.article{
		margin-top: -204px;
	}

	h1{
		font-size: 8rem;
		line-height: 7rem;
	}
}

/* IPHONE */
@media only screen and (min-width : 320px) and (max-width : 568px) {
	#mainNavWrapper{
		position: relative;
		width:  100% !important;
		height: auto !important;
		text-align: center !important;
		font-size: 1.4rem !important;
		float: none !important;
		border-right: none !important;
	}

	#toggleMenu{
		display: block !important;
	}

	ul#mainNav{
		position: absolute !important;
		width: 100% !important;
		top: 100px !important;
		background: rgba(25,25,25, 0.98) !important;
		display: none;
		z-index: 999 !important;
		border-bottom: 1px solid #000;
	}

	li.mainNavItem{
		padding: 0 !important;
	}

	ul#mainSubNav{
		position: relative !important;
		left: 0 !important;
		opacity: 1 !important;
		transition: none !important;
		padding: 0 !important;
	}

	.mainSubNavItem{
		background: rgba(25,25,25, 0.5) !important;
	}

	.current{
		color: #b60027 !important;
	}

	.current:after{
		display: none !important;
	}

	#legacy{
		display: none !important;
		visibility: hidden !important;
	}

	#centralWrapper{
		width: 100% !important;
		height: auto !important;
		float: none !important;
	}

	.article{
		position: relative !important;
		top: 0 !important;
		left: 0 !important;
		margin: 0 auto !important;
	}

	h1{
		font-size: 5rem !important;
		line-height: 4.4rem !important;
		letter-spacing: -3px;
	}

	p{
		padding: 0 20px !important;
	}

	.buttonWrapper{
		width: 100% !important;
	}

	.button{
		margin: 0 auto !important;
		float: none !important;
	}

	.button:first-child{
		margin-top: 30px !important;
		margin-bottom: 20px !important;
	}

	#map-wrapper{
		width: 100% !important;
		height: 100% !important;
		left: 0 !important;
	}
}