html,body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #f2f2f2;
	font-family: Raleway;
	font-weight: 300;
	font-size: 17px;
}

a,a:link,a:visited {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

li {
	margin: 0;
	padding: 0;
}

h1 {
	font-family: sans-serif;
	font-weight: lighter;
	font-size: 2em;
	text-align: center;
	display: block;
	position: absolute;
	top: 40%;
	width: 100%;
}

h3 {
    font-size: 1em;
    font-weight: inherit;
    text-align: center;
}

img {
	margin: auto;
	display: block;
}

p {
    text-align: center;
    font-family: sans-serif;
    font-weight: lighter;
    font-size: 1.5em;
    margin: 0 auto .5em;
}

b {
	font-weight: 500;
}

.clear {
	clear: both;
}

.transition {
	-webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.inactive {
	opacity: .5;
}

.transition {
	-webkit-transition: .5s;
	-moz-transition: .5s;
	transition: .5s;
	-webkit-transition-timing-function: cubic-bezier(.4,0,.5,1);
	-moz-transition-timing-function: cubic-bezier(.4,0,.5,1);
	transition-timing-function: cubic-bezier(.4,0,.5,1);
}

/* ACTIVE NAV */

body.prodotto #prodotti {
	color: rgb(214, 93, 93);
}

body.prodotto .nav ul li:nth-child(2) span {
	bottom: 10px;
	background: rgb(214, 93, 93);
	opacity: 1;
	-webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

/* NAV */

.social {
    position: absolute;
    right: 20px;
    line-height: 100px;
}

.social span {
    display: inline-block;
    color: #666;
}

.social img {
    display: inline-block !important;
    vertical-align: middle;
    width: 25px;
    opacity: 0.3;
    margin-left: 5px !important;
}

.social img:hover {
	opacity: 0.5;
}

.nav {
    width: 100%;
    background: transparent;
    text-align: center;
    background: rgba(255,255,255,0.4);
    position: relative;
    z-index: 99999;
}

.nav img {
    box-sizing: border-box;
    display: block;
    padding: 20px 0;
    max-height: 100px;
    margin: auto;
    box-sizing: border-box;
}

.nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: auto;
    background: rgba(219, 219, 219, 0.99);
    height: 45px;
}

.nav ul li {
    display: inline-block;
    color: #000;
    padding: 0 10px;
    line-height: 45px;
    overflow: hidden;
}

.nav ul li a {
	display: block;
	position: relative;
	overflow: hidden;
}

.nav ul li.active,.nav ul li:hover {
	color: rgb(214, 93, 93);
}

/* SUBMENU */

.nav ul ul {
    left: 0;
    right: 0;
    background: #444;
    width: 100%;
    position: absolute;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;   
    display: -webkit-flex;
    display: flex; 
    overflow: hidden;
    padding: 0 15px;
    box-sizing: border-box;
    max-height: 0px;
    opacity: 0;
    height: auto;
}

.nav ul li:hover ul {
	max-height: 300px;
	padding: 15px 15px;
	opacity: 1;
}

.nav ul ul ul {
    position: relative;
    width: auto;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -moz-flex-grow: 1;
    display: block;
    margin: 0;
    padding: 0 5px !important;
    box-sizing: border-box;
}

.nav ul ul:hover ul li {
	opacity: .6;
}

.nav ul ul ul li {
    display: block;
    height: auto;
    line-height: 1em;
    padding: 5px;
    font-size: .8em;
    cursor: pointer;
    color: #fff;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.nav ul ul ul li:hover {
	opacity: 1;;
}

.nav ul ul ul li:nth-child(1), .accessori-li a {
    font-weight: 500;
    padding: 0 5px 5px;
    margin-bottom: 5px;
    font-size: 1em;
    opacity: 1 !important;
    cursor: default;
    color: rgba(214, 94, 94, 0.99);
    opacity: 1;
}

.main-product {
    flex-grow: 4;
    -webkit-flex-grow: 4;
    -moz-flex-grow: 4;
    background: rgba(0,0,0,0.3);
}

.box-applicazioni {
	flex-grow: 1;
    -webkit-flex-grow: 1;
    -moz-flex-grow: 1;
	background: rgba(0,0,0,0.3);
	margin: 0 5px;
	height: 150px;
	font-size: 1.5em;
	line-height: 150px;
	color: #fff;
}

/* MED */

.med {
    padding: 0px 10%;
    text-align: left;
    font-size: 1em;
    background: rgb(214, 93, 93);
    color: #fff;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
}

.med.active {
	padding: 15px 10%;
	max-height: 100px;
}

.med.active span {
	display: inline-block;
}

.med img {
	height: 50px;
	display: inline-block;
	vertical-align: middle;
}

.med span {
    position: absolute;
    right: 20px;
    font-weight: 300;
    cursor: pointer;
    display: none;
}

/* HEADER */

.header {
    width: 100%;
    height: 500px;
    background: #f2f2f2;
    background-size: 100%;
    line-height: 250px;
    font-size: 3em;
    color: #fff;
    text-align: center;
    font-weight: lighter;
    overflow: hidden;
}

.item {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 100% 50%;
}

.item-content {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.item-content h2,.item-content p {
    margin: 0;
    height: auto;
    line-height: 1.2em;
    text-align: left;
}

.item-content h2 {
    color: rgb(214, 93, 93);
    font-weight: 700;
    font-size: 1em;
}

.item-content p {
    font-size: .5em;
    color: #666;
    font-weight: 100;
}

/* FOOTER */

.footer {
    padding: 30px;
    background: #444;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.col {
    width: 28%;
    min-height: 300px;
    display: inline-block;
    vertical-align: top;
    margin: 0 10px;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
    position: relative;
}

.overlay-col {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(68, 68, 68, 0.47);
}

.col:nth-child(2) {
	border-left: 2px solid rgba(0,0,0,0.1);
	border-right: 2px solid rgba(0,0,0,0.1);
}

.col p {
    color: #fff;
    margin-bottom: 15px;
}

.col h6 {
    font-weight: 300;
    font-size: .5em;
}

.col p span {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    margin: 10px auto 0;
}

.footer img {
    margin: 1em auto;
}

.icon {
    width: 30px;
    margin: 10px 10px 0 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

.newsletter p {
    font-size: 1em;
}

.newsletter input, .newsletter textarea {
    border: none;
    padding: 15px;
    display: block;
    width: 80%;
    text-align: center;
    margin: 10px auto;
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: .9em;
    font-weight: 300;
    resize: none;
}

.newsletter button {
    border: none;
    border-radius: 3px;
    background: rgba(26, 105, 153, 0.7);
    padding: 15px;
    margin: auto;
    float: none;
    display: block;
    font-size: .9em;
    font-weight: 300;
    font-family: inherit;
    color: #fff;
}

.newsletter button:hover {
	background: rgba(38, 129, 184, 0.7);
}

.checkbox {
    width: 80%;
    margin: 10px auto;
    display: block;
}

input[type="checkbox"] {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin: 0 10px 0 0;
}


/* --- PAGINE INTERNE --- */


/* INSTALLATORI */

.map-container {
    text-align: center;
    margin: 1em 0;
}

.map {
    height: 300px;
    width: 300px;
    margin: 1em;
    display: inline-block;
    vertical-align: middle;
}

.map polygon,.map path {
    fill: #e9e9e9;
    stroke-width: 2px;
    stroke: #333;
}

.map polygon:hover, .map path:hover,.map polygon.active, .map path.active  {
    fill: rgb(214, 93, 93) !important;
}

.lista-installatori {
	display: inline-block;
	vertical-align: middle;
	margin: 1em;
	position: relative;
}

.installatori {
    display: none;
    text-align: left;
    padding-left: 1em;
    border-left: 1px solid #c9c9c9;
    min-width: 300px;
}

.installatori li:first-child {
	font-weight: 500;
}

.installatori.active {
    display: block;
}

/* CHI SIAMO */

.chi-siamo {
    padding-bottom: 3em;
}

.chi-siamo p {
    max-width: 60%;
    font-size: 1em;
    text-align: justify;
    line-height: 1.4em;
}

.chi-siamo ul {
    list-style: inherit;
    padding-left: 1em;
    margin: 1em 0;
    width: 60%;
    margin: 1em auto;
    box-sizing: border-box;
}

.chi-siamo ul li {
    padding-left: 1em;
}

/* CONTACT */

.contatti {
	width: 80%;
	text-align: center;
	margin: auto;
}

.contatti h2 {
    font-weight: 500;
    margin: 0 0 .5em;
    text-align: left;
    font-size: 1.2em;
}

.contatti p {
    font-size: 1em;
    margin: .5em 0 0;
    font-weight: 300;
    text-align: left;
}

.contact-info {
    padding: 80px 0;
}

.contact-info.right {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    padding: 0 0 0 30px;
    border-left: 1px solid #B8B8B8;
}

.contatti img {
    margin: 1em 30px;
    display: inline-block;
    vertical-align: middle;
    max-height: 60px;
}

.ass {
	display: block;
	text-align: center;
	margin-top: 1em;
}

.assicurazioni {
	height: 100px;
	display: inline-block;
	vertical-align: middle;
}

/* SLIDE */

button.slick-prev {
    position: absolute;
    left: 30px;
    top: 50%;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
}

button.slick-next {
    position: absolute;
    right: 30px;
    top: 50%;
}

button.slick-prev,button.slick-next {
    font-size: 0;
    padding: 0;
    border: none;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-color: transparent;
    background-image: url(../img/arrow.png);
    cursor: pointer;
}