html, body {
  height: 100%;
}

html {
    font-size: 1em;
    color: #222;
    background: #f3f3f3;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    font-weight: 300;
}

::-moz-selection {
    background: #ff8c00;
    color: #fff;
}

::selection {
    background: #ff8c00;
    color: #fff;
}

a {
	color: #ff8c00;
}
a:hover,
a:focus {
	text-shadow: 0 0 1px #ff8c00;
}

/* =============
   ELEMENTI BASE
   ============= */
ul, li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

footer li {
	display: inline-block;
	margin: 0 0.5rem;
}

li a {
	display: inline-block; 
	width: 48px;
	height: 48px;
	overflow: hidden;
	text-indent: -9999px;
}

li.fb a {
	background: url(../img/fb.svg) center center no-repeat;
}

li.da a {
	background: url(../img/da.svg) center center no-repeat;
}

li.et a {
	background: url(../img/et.svg) center center no-repeat;
}

h1, h2 {
	margin:0;
	color: #ff8c00;
}

/* ======
   LAYOUT
   ====== */
   
header,
footer {
	background: #000;
	color: #fff;
	padding: 1rem;
}

header {
	margin: 0 -1rem;
}

footer {
	height: 5rem;
	text-align:center;
}

.principale {
	padding: 0 1rem;
	min-height: 100%;
	margin-bottom: -5rem; 
}

.principale:after {
  content: "";
  display: block;
}
 
.principale:after {
  height: 5rem; 
}

.dignilista {
	margin: 0 -1rem;
}

#tos {
	padding: 2rem;
}

#tos li {
	list-style-image: url(../img/pallino.svg);
	margin: 0.5rem 0;
}

/* ====
   FORM
   ==== */
   
form {
	margin-bottom: 2rem;
}

button {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    font-weight: 300;
}
   
input[type="text"],
input[type="email"],
textarea {
	font-family: 'Podkova', serif;
	font-size: 1.2rem;
	line-height: 1.3;
	color: #000;
	width: 100%;
	-webkit-box-sizing: border-box;
		    box-sizing: border-box;
	-webkit-border-radius: 2px;  
		    border-radius: 2px;
}

input[type="text"],
input[type="email"] {
	background: transparent;
	border: 1px dashed #999;
	padding: 0.25rem 0.5rem;
	margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus {
	border: 1px dashed #ff8c00;
	background: #fff;
}

textarea {
	border: 1px dashed #999;
	background: transparent;
    resize: vertical;
	padding: 0.25rem 0.5rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
	border: 1px solid #ff8c00;
	background: #fff;
}

textarea:focus {
	border-color: #ff8c00;
}

label {
	font-size: 0.86em;
	font-weight: 700;
	color: #999;
}
   
button {
	font-weight: 700;
	border: 0;
	-webkit-border-radius: 2px;  
		    border-radius: 2px;
	text-shadow: 0 1px 1px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0 5px 10px -5px rgba(0,0,0,0.5);
		    box-shadow: 0 5px 10px -5px rgba(0,0,0,0.5);
	color: #ffffff;
	background: #ff8c00;
	padding: 0.5rem 3rem;
	margin: 1rem auto 0 auto; 
}

button:hover {
	background: #ffbf00;
}

button:active {
	position: relative;
	top: 5px;
	-webkit-box-shadow: 0 0 10px -5px rgba(0,0,0,0.5);
		    box-shadow: 0 0 10px -5px rgba(0,0,0,0.5);
}

.form-line:nth-child(5) {
	margin: 0.5rem 0;
	text-align: center;
}

.form-required {
	font-weight: bold;
	color: #ff8c00;
}

/* ========
   MESSAGGI
   ======== */
   
.form-error-message {
	
}
 
.form-error-message img {
	display: none;
}

.tooltip {
	display: none;
	position: absolute;
	background: #fff;
	padding: 0.25rem 1rem;
}

.hidden {
	display:none;
}

/* =======
   DISEGNI
   ======= */
   
.di {
	width: 400px;
	height: 200px;
	position: relative;
	background-size: 100% 100%;
	-webkit-box-shadow:inset 0 0 40px 0 rgba(0,0,0,0.1);
			box-shadow:inset 0 0 40px 0 rgba(0,0,0,0.1);
}

.di span {
	display: block;
	padding: 0.25em 0.5em;
	position: absolute; 
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255,255,255,0.8);
	text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.d1 { background: url(../img/d1-b.jpg) center center no-repeat; }
.d2 { background: url(../img/d2-b.jpg) center center no-repeat; }
.d3 { background: url(../img/d3-b.jpg) center center no-repeat; }
.d4 { background: url(../img/d4-b.jpg) center center no-repeat; }

/* =============
   MEDIA QUERIES
   ============= */

@media only screen and (min-width: 768px) {

	.dignilista { 
		float: right;
		width: 400px;
		margin-left: -400px;
	}
	
	.content { 
		margin-right: 400px;
	}
	
	.di {
		width: 400px;
		height: 606px;
	}
	.d1 { background: url(../img/d1-a.jpg) center center no-repeat; }
	.d2 { background: url(../img/d2-a.jpg) center center no-repeat; }
	.d3 { background: url(../img/d3-a.jpg) center center no-repeat; }
	.d4 { background: url(../img/d4-a.jpg) center center no-repeat; }

}

@media only screen and (min-width: 960px) {

	.principale {
		width: 768px;
		min-height:calc(100% - 5rem);
		margin: 0 auto;
	}
	
	.principale:after {
		height: 5rem; 
	}
	
	h1 {
		width: 768px;
		padding: 0 1rem;
		margin: 0 auto;
		height: 3rem;
	}
	
	header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		margin: 0
	}
	
	.content,
	.dignilista {
		padding-top: 5rem;
	}
	
	
	form {
		padding-bottom: 0;
	}

}

/* ===========
   PEZZE VARIE
   =========== */
   
* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
		    box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}
