@import url('reset.css');
@import url('https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap');

html{
	font-size: 62.5%;
}
html, body{
	width: 100%;
    height: 100%;
	font-family: 'Poppins', sans-serif;
}
body{
	font-size: 1.4rem;
	line-height: 2rem;
	background-color: #EDF2F4;
	color: #2B2D42;
}
.contatti:after{
	content: url("img/contatti/map.png");
    display:none;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
/*------------Preloader-----------*/
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	display: flex;
	align-items: center;
}
.loading {
  display: inline-block;
  animation: rotation 2s infinite ease-in-out;
}
@keyframes rotation {
  	50% {
    transform: rotate(360deg);
  }  
	100% {
    transform: rotate(0deg);
  }
}
/*------------Preloader end-----------*/
/*------------Colors-----------*/
.red{
	background-color: #D90429;
	color: #EDF2F4;
}
.grey{
	background-color: #8D99AE;
	color: #EDF2F4;
}
.dark-mode{
    background: #2B2D42;
    background: linear-gradient(180deg, rgba(43,45,66,1) 25%, rgba(15,15,15,1) 75%);
	color: #EDF2F4;}
/*------------Colors end-----------*/
/*------------Typo-----------*/
h1, h2, h3, h4{
	font-weight: 700;
	font-size: 4rem;
	line-height: 6rem;
	text-align: center;
	text-transform: uppercase;
}
h2{
	font-size: 3rem;
	line-height: 5rem;
}
h3{
	font-size: 2rem;
	line-height: 3rem;
}
h4{
	font-size: 1rem;
	line-height: 2rem;
}
h5{
	font-size: .8rem;
	line-height: 1.4rem;
}
hr{
	height: 0px;
	border-top: 5px solid #8D99AE;
	width: 50px;
	border-radius: 10px;
    margin: 40px auto;
}
/*------------Typo end-----------*/
/*------------Navigation bar-----------*/
nav{
	position: relative;
	width: 96%;
	margin: 0 2%;
	border-radius: 5px;
	padding: 10px 0px;
	z-index: 10;
  	transition: .7s;	
}
#logo{
	float: left;
	display: block;
	height: 30px;
	margin: 15px 0;
}
/*------------Navigation bar end-----------*/
/*------------Menu-----------*/
#menu{
	display: none;
	float: right;
	width: 100%;
	border-radius: 5px;
	height: auto;
	background-color: #D90429;
}
#menu li{
	text-align: center;
	color: #EDF2F4;
	line-height: 9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
#submenu{
	display: none;
	background-color: #EDF2F4;
    padding: 20px;
	border: none;
	-webkit-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
	-moz-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
	box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
}
#submenu li{
	line-height: 5rem;
}
#submenu li a{
	color: #2B2D42;
    font-size: 1.2rem;
}
/*------------Menu end-----------*/
/*------------Ham icon menu-----------*/
button:focus{
    outline: none;
}
.hamburger{
    float: right;
    width: 30px;
    padding: 15px 0;
}
.hamburger-box{
    width: 100%;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after, .hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner:after, .hamburger.is-active .hamburger-inner:before{
    background: #EDF2F4;
    width: 30px;
    height: 3px;
}
/*------------Ham icon menu end-----------*/
/*------------Up button-----------*/
#up{
	display: none;
	width: 50px;
	height: 50px;
	margin: 2%;
	border-radius: 5px;
	position:fixed;
	bottom: 0px;
	right: 0px;
	z-index: 9;
	background-color: #D90429;
	-webkit-box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
	-moz-box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
	box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
}
/*------------Up button end-----------*/
/*------------Box-shadow end-----------*/
.boxSha-b{
	-webkit-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
	-moz-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
	box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
}
.boxSha{
	-webkit-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
	-moz-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
	box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
}
/*------------Box-shadow end-----------*/
/*------------Header-----------*/
header{
	width: 100%;
	height: 100%;
	background-image: url("img/index/header.jpg");
	background-size: cover;
	background-position: center center;
}
.filter{
	width: 100%;
	height: 100%;
	z-index: 3;
	background: rgb(217,4,41);
background: linear-gradient(180deg, rgba(217,4,41,.8) 60%, rgba(0,212,255,0.30) 100%);
}
.logo-home{
	width: 100%;
	position: relative;
  	top: 50%;
  	transform: perspective(1px) translateY(-50%);
	color:#EF233C;
}
header p{
	color: #EDF2F4;
}
.arrow{
	width: 30px;
	height: 30px;
	margin: 0 auto;
	background-image: url("img/icon/arrow-down.svg");
	position: relative;
	top: 10em;
}
.bounce{
	animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
 }
/*------------Header end-----------*/
section, footer{
	padding: 100px 0;
}
.tools-bg{
	background-image: url("img/tools-bg.png");
	background-size: contain;
	background-repeat: repeat;
	-webkit-animation: slide 40s linear infinite;
}
@-webkit-keyframes slide {
	from {background-position: 0 0;}
    to {background-position: -400px -400px;}
}
.asfalt-bg{
	background-image: url("img/asfalt-bg.png");
	background-size: contain;
	background-repeat: repeat;
}
.button{
	border: 2px solid #D90429;
	background: #D90429;
	border-radius: 5px;
	width: 180px;
	height: 50px;
	margin: 0 auto;
	color: #EDF2F4;
}
.deco{
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: 400px;
}
#decoIndex1{
	background-image: url("img/index/decoIndex1.jpg");
}
.card{
	width: 100%;
	height: 200px;
	margin: 0 auto;
	margin: 15px 0;
	float: left;
	border: none;
	border-radius: 5px;
}
.card img{
	width: 64px;
	height: auto;
	margin: 0 auto;
	padding: 30px 0;
}
#decoIndex2{
	background-image: url("img/index/decoIndex2.jpg");
}
#decoIndex3{
	background-image: url("img/index/decoIndex3.jpg");
}
#conglomerati{
	float: none;
	margin: 0;
	background-image: url("img/index/conglomerati.jpg");
	background-size: cover;
	background-position: center center;
}

#inerti{
	float: none;
	margin: 0;
	background-image: url("img/index/inerti.jpg");
	background-size: cover;
	background-position: center center;
}
/*------------pages header-----------*/
.chisiamo header, .servizi header, .conglomerati header, .inerti header, .contatti header, .realizzazioni header{
	height: 400px!important;
	background-image:url("img/chisiamo/header.jpg");
}
.chisiamo header h1, .servizi header h1, .conglomerati header h1, .inerti header h1, .contatti header h1, .realizzazioni header h1{
	color: #EDF2F4;
	line-height: 24rem;
}
/*------------pages header end-----------*/
/*------------Chi siamo page-----------*/
.chisiamo .card{
	height: 400px;
	background-position: center center;
	background-size: cover;
}
#decoChisiamo{
    background-image: url("img/chisiamo/decoChisiamo.jpg");
}
#pic1{
	background-image: url("img/chisiamo/pic1.jpg");
}
#pic2{
	background-image: url("img/chisiamo/pic2.jpg");
}
#pic3{
	background-image: url("img/chisiamo/pic3.jpg");
}
#pic4{
	background-image: url("img/chisiamo/pic4.jpg");
}
#pic5{
	background-image: url("img/chisiamo/pic5.jpg");
}
#pic6{
	background-image: url("img/chisiamo/pic6.jpg");
}
#pic7{
	background-image: url("img/chisiamo/pic7.jpg");
}
#pic8{
	background-image: url("img/chisiamo/pic8.jpg");
}
/*------------Chi siamo page end-----------*/
/*------------servizi page-----------*/
.servizi header{
	background-image: url("img/servizi/header.jpg");
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
  	position: absolute;
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
}
.vp-center #player{
	margin-top: 0!important;
	padding-top: 0!important;
}
/*------------servizi page end-----------*/
/*------------conglomerati page-----------*/
.conglomerati header{
	background-image: url("img/conglomerati/header.jpg");
}
.prodotti .card{
	height: auto;
	padding: 10px;
}
.prodotti .card img{
	width: 80%;
	margin: 10% 10%;
	padding: 0;
	border-radius: 5px;
}
.prodotti .card p:last-of-type{
	margin-bottom: 15%;
}
#decoCei{
	background-image: url("img/conglomerati/decoCei.jpg");
}
.full-size{
	width: 80%;
	margin: 0 10%;
	border-radius: 5px;
	border: none;
}
/*------------conglomerati page end-----------*/
/*------------inerti page-----------*/
.inerti header{
	background-image: url("img/inerti/header.jpg");
}
/*------------inerti page end-----------*/
/*------------realizzazioni page-----------*/
.realizzazioni .card{
	height: 85vh;
    float: none;
}
.swiper-container{
    width: 100%;;
	margin-left: auto;
   	margin-right: auto;
	border-radius: 5px;
}
.swiper-slide{
	display: flex;
	align-items: center;
}
.swiper-slide img{
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
.swiper-lazy-preloader{
	--swiper-preloader-color: #D90429;
}
.swiper-button-next{
	color: #EDF2F4;
}
.swiper-button-prev{
	color: #EDF2F4;
}
.swiper-pagination-bullet{
	background-color: #EDF2F4;
	opacity: 0.8;
}
.swiper-pagination-bullet-active{
	background-color: #D90429;
}
/*------------contatti page-----------*/
.contatti header{
	background-image: url("img/contatti/header.jpg");
}
.map{
	width: 98%;
	height: 500px;
	margin: 0 1%;
	border-radius: 5px;
	background-image: url(img/contatti/map.png);
	background-size: cover;
	background-position: center center;
}
#decoContatti{
	background-image: url("img/contatti/decoContatti.jpg");
}
.contatti .col-md-6 a{
	color: #EF233C;
}
/*------------realizzazioni page- end----------*/
/*------------contatti page end-----------*/




@media (min-width: 575px){
	
}
@media (min-width: 768px){

}
@media (min-width: 992px){
    .button, .card, .map, #up{
		box-shadow: none;
		-webkit-transition: all .4s ease-in-out;
  		-moz-transition: all .4s ease-in-out;
  		-o-transition: all .4s ease-in-out;
  		transition: all .4s ease-in-out;	
	}
	.button:hover{
		color: #BA3430;
		background: #EDF2F4;
		-webkit-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		-moz-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
	}
	.card:hover{
		-webkit-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		-moz-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		transform: translateY(-10px);
	}	
    .card.boxSha-b:hover{
		-webkit-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
		-moz-box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
		box-shadow: 0px 30px 50px -25px rgba(2,52,102,0.7);
		transform: translateY(-10px);
	}
	.map:hover{
		background-image: url("img/contatti/map-hover.png");
		-webkit-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		-moz-box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
		box-shadow: 0px 20px 50px -10px rgba(239,46,69,0.7);
	}
    #up:hover{
		-webkit-box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
		-moz-box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
		box-shadow: 0px 20px 50px -5px rgba(239,46,69,0.7);
    }
	.hamburger{
		display: none;
	}
    nav{
        position: fixed;
	    margin: 2%;
    }
	#menu{
		width: auto;
		display: block!important;
		margin: 15px 0;
		background: none;
	}	
	#menu li{
		float: left;
		padding-top: 0;
		padding-left: 35px;
		color:#EDF2F4;
	}
	#menu li a{
		display: block;
		line-height: 3rem;
		-webkit-transition: all .4s ease-in-out;
  		-moz-transition: all .4s ease-in-out;
  		-o-transition: all .4s ease-in-out;
  		transition: all .4s ease-in-out;	
	}
	#menu li a:hover{
		text-decoration: none;
		color: #2B2D42;
	}
    #submenu{
    	position: absolute;
		left: 0px;	
        border-radius: 5px;
	}
	#menu #submenu li{
		display: block;
		float: none;
		padding: 10px 0;
		line-height: 6rem;
		width: 300px;
        transition: all .2s ease-in-out;
	}
	#menu #submenu li:hover{
        background: #2B2D42;
    }
    #menu #submenu li a:hover{
        color: #EDF2F4;
    }
	.logo-home{
		width: 50%;
	}
    .chisiamo header h1, .servizi header h1, .conglomerati header h1, .inerti header h1, .contatti header h1, .realizzazioni header h1{
	line-height: 40rem;
    }
	.deco{
		background-attachment: fixed;
	}
	footer .link:hover{
		color: #2B2D42;
	}
    .link{
		-webkit-transition: all .4s ease-in-out;
  		-moz-transition: all .4s ease-in-out;
  		-o-transition: all .4s ease-in-out;
  		transition: all .4s ease-in-out;	
	}
	.link:hover{
		color: #EF233C;
	}	

}