*{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

  body {
    background-color: rgb(26, 26, 26) !important;   
    /*background-image: url(../img/sacrocuore/sacrocuore5.jpg) !important;  */ 
    /*background-color: #d8d0bf;*/  
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;  
    min-height: 100%;
    /*
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    */
    overflow: hidden; 
  
  }

  ul {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 140px;
    padding-right: 140px;
  }

  p{
    font-size: 16px;
    color: rgb(253, 252, 252);
  }

  h6{
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
    color: black;
  }

 a{
   color: rgb(255, 255, 255);
 }

 video{
	position:fixed;
	left:0;
	min-width:100%;
	min-height:100%;
	width:auto;
	height:auto;
	z-index:-100;
	visibility: visible;
}


 .open{
  display: none;
}
 
  #dochomemedia{
    display: none;
  }

  .conthomemedia{
    display: none;
  }

  /* button */

  .custom-btn {
    color: #fff;
    padding: 6px 12px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    /* box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
     7px 7px 20px 0px rgba(0,0,0,.1),
     4px 4px 5px 0px rgba(0,0,0,.1);*/
    outline: none;
    height: 100%;
  }

  .bcbg{
    text-decoration:dashed ;
    background-color: #0002004d;
    font-size: 18px;

  } 
    .bcbg:hover{
      color: rgba(243, 187, 66, 0.822);
      transform: scale(1.1, 1.1);
      
    }

/* Risparmio energetico - vantaggi - tecnologieled*/
/* fonti rinnovabili */   
  #bgphoto1{
    background-image: url(../img/Solare-0-bg.png) !important;
  }
  #bgphoto2{
    background-image: url(../img/Eolico-bg.jpg);
  }
  #bgphoto3{
    background-image: url(../img/biomassabg.jpg);
  }
  #bgphoto4{
    background-image: url(../img/geotermica-bg.jpg);
  }
  #bgphoto5{
    background-image: url(../img/energia-idroelettrica-bg.jpg);
  }
  .idtitle{
    color: rgb(86, 86, 255);
    font-weight: bold;
    text-align: center;
  }  

  .docscroll{
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .docstyle{
    top: 10px;
    position: relative; 
    left: 10%;
    width: 80%;
    padding-left: 2%;
    padding-right: 2%;
  }
  
  .risparmiotitle{
    font-size:25px !important; 
    color:orange; 
    font-weight: bold; 
    text-align:center;
    margin-bottom:10px;
  }
  .risparmiotitle h4{
    font-size:29px !important; 
  }
  .risparmiosubtitle{
    color:orange; 
    font-size:20px !important;
    font-weight: bold; 
    text-align:center;
    margin-bottom:10px
  }
  .risparmiotext{
    font-size: 16px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .risparmiotext span{
    color: rgb(58, 189, 233);
    font-weight: bold;
  }
  /*risparmioenergetico tipologie*/
  .risparmiocard1{
    display: inline-block;
    width: 49.8%;
  }

  .risparmiotext1{
    margin-bottom: 50px;
    display: inline-block;
    width: 49.8%;
    height: 450px;
    font-size: 16px;
  }
  .risparmiotext2{
    margin-bottom: 50px;
    display: inline-block;
    width: 49.8%;
    height: 700px;
    font-size: 16px;
  }

  .risparmiotext1 span{
    font-size: 18px;
    color: orange;
  }

  #tipologie01{
    margin-left: 10px;
    margin-right: 10px;
  }
  .contenttext1{
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
  }

  .footerfix1{
    width: 100%;
    position: fixed;
    bottom:15px;
    text-align: center;
    padding-bottom: 10px;
  }


 /*to-top-botton*/ 
 .go-top {
	position: fixed;
	bottom: 60px;
	right: 0px;
	text-decoration: none;
	color: white;
	background-color: rgba(46, 46, 46, 0.3);
	font-size: 12px;
	padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  padding-right: 25px;
  border-bottom-left-radius:3px;
  border-top-left-radius:3px;
	display: none;
}

.go-top:hover {
	background-color: rgba(73, 73, 73, 0.6);
  color: white;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}
.go-top i:hover {
color: white;
}



/* Home */

  #dochome{
    color: white;
    position: relative;
    width: 60%;
    height: 100%;
    border-color: red;
    padding-top: 15px;
    padding-left: 150px;  
    background-color: rgba(0, 0, 0, 0);
    display: block;
    float: left;
  } 
  #dochome h3{
    text-shadow: 2px 2px 5px black;
  }
  #dochome li{
    text-shadow: 2px 2px 5px black;
  }
  #dochome p{
    text-shadow: 2px 2px 5px black;
  }
  .dochomemargin{
    margin-top: 100px;
  }
  .dochome2{
    overflow-y: auto;
    color: white;
    position: relative;
    border-color: red;
    width: 30%;
    height: 400px;   
    background: linear-gradient(to right, #0c16088e, #071407c5);
    margin-bottom: 20px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    display: block;
    float: left;
    border-left: 3px solid rgba(255, 255, 255, 0.493);
  }
  .anim1{
    font-size: 30px;
    background: linear-gradient(to right, #ffffff, #999999);
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  

  .zoom{
    position: absolute;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
  }
  .zoom:hover{
    transform: scale(1.1,1.1); 
  }
  div .cont2:active{
    transform: scale(0.7, 0.7);
  }
 .texthome{
  color: rgb(255, 255, 255); 
  text-transform: uppercase;
  line-height: .96;
  font-size: 60px;
  letter-spacing: 2px; 
  font-weight: 100 !important;
  font-family:"Segoe UI","Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif !important ;
 }
 .texthome2{
  color: rgb(255, 255, 255); 
  text-transform: uppercase;
  line-height: .97;
  font-size: 40px;
  letter-spacing: 1.5px; 
  font-weight: 200 !important;
  margin-top: 30px;
  margin-left: 45px;
  font-family:"Segoe UI","Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif !important ;
 }
 .texthome3{
  color: rgb(255, 255, 255); 
  text-transform: uppercase;
  line-height: .97;
  font-size: 20px;
  text-shadow: 2px 2px black;
  letter-spacing: 1.5px; 
  font-family:"Segoe UI","Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif !important ;
 }
/* Home news */
  .news1{
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    width: 30%;
    height: 550px; 
    display: block;
    float: left;  
    margin-top: 100px;
  }
  .imghome{
    width:200px; 
    height:160px;
  }

  .contslid{
    width: 100%;
    height: 45%;
    margin-top: 5%;

  }
  .slidforcour{
    max-width: 70% !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
/*aboutUs*/
  .abAs{
    top: 20px;
    position: relative;
    max-width: 80% !important;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    animation-name: abAs;
    animation-duration: 4s;
  }
  @keyframes abAs{
    from {top:1000px;}
    to {top:20px;}
  }
  .abAs h4 {
    text-align: center;
    color: white;
    animation-name: abAsh4;
    animation-duration: 6s;
  }
  @keyframes abAsh4{
    from {color: rgba(255, 255, 255, 0);}
    to {color: rgb(255, 255, 255);}
  }
  .abAs p{
    padding-left: 2%;
    padding-right: 2%;
    text-align: center;
    animation-name: abAsp;
    animation-duration: 9s;
  }
  @keyframes abAsp{
    from {color: rgba(255, 255, 255, 0);}
    to {color: rgb(255, 255, 255);}
  }
  .abAs2{
    position: relative;
    max-width: 80% !important;
    margin-right: auto;
    margin-left: auto;
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    animation-name: abAs2;
    animation-duration: 7s;
  }
  @keyframes abAs2{
    from {top:1000px;}
    to {top:0px;}
  }
  .abAs2 h4 {
    text-align: center;
    color: white;
    animation-name: abAs2h4;
    animation-duration: 18s;
  }
  @keyframes abAs2h4{
    from {color: rgba(255, 255, 255, 0);}
    to {color: rgb(255, 255, 255);}
  }
  .abAs2 p{
  padding-left: 2%;
  padding-right: 2%;
  text-align: center;
  animation-name: abAs2p;
  animation-duration: 22s;
  }
  @keyframes abAs2p{
    from {color: rgba(255, 255, 255, 0);}
    to {color: rgb(255, 255, 255);}
  }

  .titlecard{
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    background-image: linear-gradient(to top left, rgba(0, 169, 199, 0.253), rgba(0, 82, 189, 0.267)) !important;
    background-color: rgba(0, 0, 0, 0.95) !important;


    -webkit-box-shadow: 0 2px 5px 0 rgba(255, 255, 255, 0.36),0 2px 10px 0 rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 2px 5px 0 rgba(255, 255, 255, 0.36),0 2px 10px 0 rgba(255, 255, 255, 0.32) !important;

    border-radius: 0 !important;
  }
  .textcard{
    -webkit-box-shadow: 0 2px 5px 0 rgba(255, 255, 255, 0.16),0 2px 10px 0 rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 5px 0 rgba(255, 255, 255, 0.16),0 2px 10px 0 rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(0, 0, 0, 0.623) !important;

    border-radius: 0 !important;
  }
  .color{
    color: white !important;
  }
 .shad-eff{
  box-shadow:0px 2px 5px 0px rgba(255, 255, 255, 0.199), 0px 2px 10px 0px rgba(255, 255, 255, 0.192) !important;
 }
  #card-body{
    padding-top: 54.5%;
  }


.navcol{  
  background-color: rgba(3, 3, 49, 0);
  /*background: linear-gradient(90deg, rgba(228, 228, 228, 0.534) 0%, rgba(204, 204, 204, 0.623) 98%);*/
  position: relative;
  display: flex;
	display: -webkit-flex;
  justify-content: flex-end;
  height: 70%;
  margin-top: 5px;
  margin-bottom: 5px;
}

.navcol2{  
  background-color: rgba(0, 0, 0, 0.363);
  /*background: linear-gradient(90deg, rgba(228, 228, 228, 0.534) 0%, rgba(204, 204, 204, 0.623) 98%);*/
  display: block;
  position: relative;
  width: 100%;
	display: -webkit-flex;
	align-items: center;
	-webkit-align-items: center;
	justify-content: center;
	-webkit-justify-content: center;
  margin-top: 0px;
  padding-bottom: 5px;
 border-bottom: 3px solid rgba(255, 255, 255, 0);
 height: 70px;
}
.navcol2:hover{
  background-color: rgba(0, 0, 0, 0.5);
}

.rid-logo{
  height: 40px;
}

::-webkit-scrollbar {
  top: 10px;
  width: 15px;
  border-radius: 15px;
}
                  
::-webkit-scrollbar-track {
  top: 10px;
  border-radius: 15px;
}
                  
::-webkit-scrollbar-thumb {
  top: 10px;
  border-radius: 15px;
  background: linear-gradient( #110df8a4, #514ee69b,#39d5f1a1, #83dae9a2);
  background: none;
}


footer{
  border-radius: 15px;
  text-align: center;
  background-color: rgba(7, 2, 2, 0);
  position: absolute;
  bottom: 12px;
  z-index: 1;
  width: 100%;
  margin-bottom: 10px;
}
.fitem1{
  color: rgb(255, 255, 255);
  margin-right: 300px;
}
.fitem2{
  color: rgb(255, 255, 255);
  text-align: left;
}


.card3d:hover{
 
  transform: scale(1.1, 1.1);
  
}

.cont2{
  position: relative;
  text-align: center;
  color: white;
  display: inline-block;
}


.image {
 
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
.middle h5{
  font-size: 23px;
  font-weight: 400;
}


.text {
  background-color: #02020200;
  color: white;
  font-size: 18px;
  text-decoration: none; 
}


.popover-title {
  background-color: #8bc539;
}

/* analizza orienta progetta*/

.slidhome2{
  width: 70%;
  margin-left: 15%;
  margin-top: 15px;
  overflow: auto;
  
}

.sub{

  position: relative;
  left: 59%;
  margin-top: 15px;
  padding: 1%;
  max-width:26%;
  text-align: center;
  font-style: italic;
}
.sub h6{
  color: orange;
}
.sub2{

  position: absolute; 

  right:150px; 
  max-width:26%;
  text-align: right;
  font-style: oblique;
}
.sub3{
  position: fixed; 
  bottom:7%; 
  right:50px; 
  max-width:45%;
  text-align: center;
}
.sub3bis{
  position: fixed; 
  bottom:7%; 
  left:50px; 
  max-width:26%;
  text-align: center;
}
.btn:hover{
  box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.705) !important;
}
.sub3:active{
  transform: scale(0.8, 0.8);
}
.sub3bis:active{
  transform: scale(0.8, 0.8);
}

/*AboutUs*/
.card-text{
  font-size: 16px !important;
  margin-bottom: 10px;
}

/*news*/

#newscontent{
  position: relative;
  flex: auto;
  justify-content: center;
  margin-top: 20px;
  
  border: 1px solid white;
  margin-left: 10%;
  margin-right: 10%;
  padding-left: 5%;
  padding-right: 5%;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 25px 50px rgba(0, 0, 0, 0.1);
  font-family: "Roboto",sans-serif;
  background-image: linear-gradient(to top left, rgba(0, 169, 199, 0.253), rgba(0, 82, 189, 0.267)) !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
}
#newscontent::before{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: -0.5%;
  background-image: linear-gradient(to top left, rgba(0, 169, 199, 0.253), rgba(0, 82, 189, 0.267)) !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  border: 1px solid white;
  bottom: -8px;
  z-index: -1;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 25px 50px rgba(0, 0, 0, 0.1);
}
#newscontent::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: -1%;
  background-image: linear-gradient(to top left, rgba(0, 169, 199, 0.253), rgba(0, 82, 189, 0.267)) !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  border: 1px solid white;
  bottom: -16px;
  z-index: -2;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 25px 50px rgba(0, 0, 0, 0.1);
}
.source{
  text-align: center;
  width: 100%;
  color: rgb(53, 53, 255);
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: bold;
}
.contentnews{
  text-align: center;
  width: 100%;
  padding-right: 2px;
  margin-top:10px;
  max-height: 500px;
  overflow-y: scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: thin;  /* Firefox */
  scrollbar-color: rgb(68, 68, 68) #ffffff27;
  padding: 15px;
}
.contentnews h3{
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
}
.contentnews h6{
  color: rgb(255, 255, 255);
  margin-top: -20px;
  margin-bottom: 20px;
  font-style: oblique;
  text-decoration: underline;
}
.contentnews h5{
  font-size: 16px;
  color: rgb(255, 255, 255);
}
.contentnews p{
  text-align: justify;
  color: rgb(255, 255, 255);
}
.datanews{
  text-align: center;
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgb(143, 143, 143);
}
/* Hide scrollbar for Chrome, Safari and Opera */
.contentnews::-webkit-scrollbar {
  width: 3px;

} 
/* Track */
.contentnews::-webkit-scrollbar-track {
  background: #f0f0f027; 
}
 
/* Handle */
.contentnews::-webkit-scrollbar-thumb {
  background: rgb(109, 109, 109); 
}



/* risparmio energetico*/

.scrollspy-example {
  overflow-y: auto;
  
  height: 650px;
  }

#list-item-1,
#list-item-2,
#list-item-3,
#list-item-4 {
  color: orange;
}
.list-group-item.active {
  background-color: gray !important;
}

.col-4v2{
margin-top:250px;
flex: 0 0 22.333333% !important;
max-width: 22.333333% !important;
}

.col-8v2{
flex: 0 0 76.666667% !important; 
max-width: 76.666667% !important;
}

.fontititle{
  width: 100%;
  height: 350px;
  margin-bottom: 80px;
  justify-content: center;
  text-align: center;
}
.fontiBox1{
  text-align: center;
  margin-top: 45px;
  margin-bottom: 30px;
  width: 100%;
}

#fontijustify{
  text-align: center; 
}
.foglia{
margin-right: 4px;
transform: translateY(-3px);
}

/*carousel style fontirinnovabili*/
.fontiBox2multi{
  display: inline-block;
  width: 40%;
}

/* navnews- archivio */
.navnews{
  z-index: 10;
  justify-content: center;
  width: 100%;
  /*box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.671);*/
}
.navnews ul{
  margin-top: 0px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.navnewsbutton{
  border: 2px solid rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
  font-size: 23px;
  margin: 5px 5px 5px 5px;
  opacity: 0.8;
}
.navnewsbutton a{
  color: white;
}
.navnewsbutton a:hover{
  color: white;
}
.navnewsbutton:hover{
  opacity: 1;
  box-shadow: 0px 7px 20px rgba(255, 255, 255, 0.671);
}


/*contatti*/
.contContact p{
  color: rgb(255, 255, 255);
  font-weight: bold;
}
.contContact a{
  color: rgb(255, 255, 255);
}
.titlecontact{
  color: rgb(255, 255, 255);
  font-weight: bold;
}
.contContact{
  position: relative;
  margin-top: 100px;
  margin-left: 20%;
  margin-right: 20%;
  text-align: center;
  flex: auto;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.096);
  border: 1px solid white;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.541), 0 0 25px rgba(255, 255, 255, 0.5);
  animation-name: contContact;
  animation-duration: 3s;
}
.contContact ul{
  padding-left: 0;
  padding-right: 0;
}

label a{
  text-decoration:underline;
}

/*aminazioni analizza-orienta-progetta*/
.translate0{
  position: relative;
  animation-name: titletranslate0;
  animation-duration: 2s;
}
@keyframes titletranslate0 {
  from {top: -100px;}
  to {top: 0px;}
}

.translate1{
  position: relative;
  animation-name: titletranslate1;
  animation-duration: 3s;
}
@keyframes titletranslate1 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate2{
  position: relative;
  animation-name: titletranslate2;
  animation-duration: 4s;
}
@keyframes titletranslate2 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate3{
  position: relative;
  animation-name: titletranslate3;
  animation-duration: 5s;
}
@keyframes titletranslate3 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate4{
  position: relative;
  animation-name: titletranslate4;
  animation-duration: 5.5s;
}
@keyframes titletranslate4 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate5{
  position: relative;
  animation-name: titletranslate5;
  animation-duration: 6s;
}
@keyframes titletranslate5 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate6{
  position: relative;
  animation-name: titletranslate6;
  animation-duration: 6.5s;
}
@keyframes titletranslate6 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate7{
  position: relative;
  animation-name: titletranslate7;
  animation-duration: 7s;
}
@keyframes titletranslate7 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate8{
  position: relative;
  animation-name: titletranslate8;
  animation-duration: 7.5s;
}
@keyframes titletranslate8 {
  from {left: 2500px;}
  to {left: 0px;}
}
.translate9{
  position: relative;
  animation-name: titletranslate9;
  animation-duration: 8s;
}
@keyframes titletranslate9 {
  from {left: 2500px;}
  to {left: 0px;}
}
.orangetext{
  color: orange;
}