
/* Stili personalizzati */

body {
  overflow-y: scroll;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
}

html {
  scroll-padding-top: 100px !important;
}

/*h1{visibility:hidden;margin: 0;height: 0;}*/

/* OFFSET ANCHOR TAG */
@media screen and (max-width:767px) {
  html {
    scroll-padding-top: 0px !important;
  }
}

@media (min-width:768px) and (max-width:991px) {
  html {
    scroll-padding-top: 80px !important;
  }
}

h2 {
  color: #517994 !important;
  font-size: 30px;
  font-weight: 600;
}

@media screen and (max-width:991px) {
  h2 {
    font-size: 2rem;
  }
}

p {
  margin-top: 0px;
  margin-bottom: 0px;
}

a {
  color: #517994;
}

.text-blue {
  color: #517994 !important;
}

.text-black {
  color: #000;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.flex-center {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.col-md-6,
.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
  padding-left: 0px;
  padding-right: 0px;
}

@media screen and (max-width:576px) {
  .my-sm-0 {
    margin: 0px;
  }

  .py-sm-0 {
    padding: 0px;
  }
}

/* BUTTON */
button:focus {
  outline: 0px;
}

/* LINE HL */
.line-hl:before {
  content: '';
  position: relative;
  top: -5px;
  background-color: #fff;
  display: inline-block;
  width: 45px;
  height: 2px;
  margin-right: 12px;
}

.line-hl-black:before {
  content: '';
  position: relative;
  top: -5px;
  background-color: #000;
  display: inline-block;
  width: 45px;
  height: 2px;
  margin-right: 12px;
}






/* NAVBAR */
.navbar-brand {
  margin-right: 0;
  padding: 0;
}

.navbar-toggler {
  border: none;
  color: #fff;
}

.navbar.transparent {
  background-color: transparent !important;
  transition: background-color 0.5s ease-in-out;
  /* Effetto di transizione */
}

@media screen and (max-width:991px) {
  .navbar-light .navbar-nav .nav-link {
    color: #000 !important;
  }

  #navbarNav {
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
  }

  .navbar-collapse {
    background: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    height: 100vh;
    margin-left: -16px;
    margin-right: -16px;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .navbar-collapse .navbar-nav {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .sm-mt-5 {
    margin-top: 3rem;
  }

  .text-white,
  .text-black {
    padding: 0 25px;
  }
}

.navbar.fixed-top {
  position: fixed;
  top: 0px;
  width: 100%;
}

@media screen and (max-width:480px) {
  .navbar.fixed-top {
    padding-bottom: 15px;
  }
}

@media screen and (min-width:991px) {
  .navbar.fixed-top {
    padding: 30px 0;
  }
}

.navbar-light .navbar-nav .nav-link {
  color: #fff;
}

.openBar.navbar-light .navbar-nav .nav-link {
  color: #000;
}

.openBar.navbar-light .navbar-nav .nav-link.active {
  color: #000;
  font-weight: bold;
}

.navbar-light .navbar-toggler-icon {
  background-image: url(../img/menu.svg);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: rgba(0, 0, 0, .5);
}

/* HEADER VIDEO */
#headerImg {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1))
    /*,url(../img/IMG_4317-min.jpg)*/
  ;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  padding-top: 0px;
  height: 100vh;
}

@media (min-width:768px) and (max-width:991px) {
  #headerImg {
    margin-bottom: -100px;
  }
}

#headerImg video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Per adattare il video alla dimensione del contenitore mantenendo le proporzioni */
  z-index: -1;
  /* Imposta lo z-index in modo che il video sia dietro agli altri contenuti */
}

@media screen and (max-width:991px) {
  #headerImg {
    height: 100%;
    background: none;
    margin-top:86px;
  }
}

/* SECTION*/
#section2,
#section3,
#section4,
#section55 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* SECTION TESTI */
#section2 h1,
#section3 h1,
#section4 h1,
,
#section55 h1,
,
#section55 p #section1 p,
#section2 p,
#section3 p,
#section4 p {
  margin-bottom: 20px;
}

#section2,
#section55 {
  background: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  margin-bottom: 0;
  height: 100%;
}

#section2 .carousel img,
#section55 .carousel img #section3 video {
  height: 600px;
  object-fit: cover;
}

#section2 .carousel-control-prev,
#section2 .carousel-control-next,
#section55 .carousel-control-prev,
#section55 .carousel-control-next {
  background: none;
  opacity: 1;
  border: none;
}

#section2 .visually-hidden,
#section55 .visually-hidden {
  display: none;
}

.carousel-indicators {
  z-index: 1;
}

#section2 .carousel-indicators button,
#section55 .carousel-indicators button {
  border: none;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  margin: 20px 5px;
  opacity: .7;
}

#section2 .carousel-indicators button.active,
#section55 .carousel-indicators button.active {
  opacity: 1;
}

#section3 {
  background: #fff;
  height: 100%;
  margin-bottom: -7px;
}

@media screen and (max-width:991px) {

  #section2 .carousel img,
  #section55 .carousel img,
  #section3 video {
    height: 500px;
  }

  #section3 .row {
    margin-top: 0px;
  }

  #p_terzista {
    margin-bottom: 50px !important;
    margin-top: 10px;
  }
}

@media screen and (max-width:560px) {

  #section2 .carousel img,
  #section55 .carousel img,
  #section3 video {
    height: 350px;
  }

  #p_terzista {
    margin-bottom: 0px !important;
    margin-top: 10px;
  }
}

#section4 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url(../img/IMG_4273-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 150px 0px;
  height: 100%;
}

@media screen and (min-width:1600px) {
  #section4 {
    padding: 280px 50px;
  }
}

#section55 #carouselExampleIndicators .carousel-indicators {
  /*visibility: hidden;*/
}

#section55 .carousel-control-next,
#section55 .carousel-control-prev {
  /*visibility: hidden;*/
}

#section5 {
  padding: 0;
  padding-top: 0px;
}

#section5 video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Per adattare il video alla dimensione del contenitore mantenendo le proporzioni */
  z-index: -1;
  /* Imposta lo z-index in modo che il video sia dietro agli altri contenuti */
}

/* SLIDER*/
.slider-biemme {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}

#slider-biemme-slide-1 {
  background: url(../img/slider/1-min.jpg);
  background-size: cover;
  min-height: 600px;
}

#slider-biemme-slide-2 {
  background: url(../img/slider/2-min.jpg);
  background-size: cover;
  min-height: 600px;
}

#slider-biemme-slide-3 {
  background: url(../img/slider/3-min.jpg);
  background-size: cover;
  min-height: 600px;
}

#slider-biemme-slide-4 {
  background: url(../img/slider/4-min.jpg);
  background-size: cover;
  min-height: 600px;
}

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

  #slider-biemme-slide-1,
  #slider-biemme-slide-2,
  #slider-biemme-slide-3,
  #slider-biemme-slide-4 {
    min-height: 600px;
  }
}

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

  #slider-biemme-slide-1,
  #slider-biemme-slide-2,
  #slider-biemme-slide-3,
  #slider-biemme-slide-4 {
    min-height: 1000px;
  }
}

@media screen and (max-width:767px) {

  #slider-biemme-slide-1,
  #slider-biemme-slide-2,
  #slider-biemme-slide-3,
  #slider-biemme-slide-4 {
    min-height: 350px;
  }

  #slider-biemme-slide-azienda-1 {
    min-height: 400px !important;
  }
}

#slider-biemme-slide-azienda-1 {
  background: url(../img/IMG_4294-min.jpg);
  background-size: cover;
  min-height: 600px;
}

/* FORM CONTATTI */
.compilazione-campi {
  margin-bottom: 20px;
  padding: 0 10px;
}

.compilazione-campi input,
.compilazione-campi textarea {
  color: #000 !important;
}

.g-recaptcha {   margin: 20px 0 50px 0;  text-align:center;  }
#form-contatti > div.col-12.my-4 > div > div{width:100%!important;}

#contatti {
  background: rgb(81, 121, 148);
  background: linear-gradient(180deg, rgba(81, 121, 148, 1) 0%, rgba(226, 225, 224, 1) 100%);
  padding-top: 100px;
  padding-bottom: 40px;
}

#contatti form {      width: 650px;      margin: auto;    }
.form-check-input {      margin-left: 0px;    }
textarea.form-control {      max-height: 80px;    }
input#button-invia {      padding: 10px 100px !important;    }

@media screen and (max-width:767px) {
  #contatti {padding-left: 20px;padding-right: 20px;padding-top: 150px;}
  #contatti form {width: 90%;}
}

/*FOOTER*/
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 80px 0;
  text-align: center;
}

div#sezione-footer {
  background-color: #909fb6 !important;
}

div#sezione-copyright {
  padding-left: 30px;
  padding-right: 30px;
  background: #e2e1e0;
}

div#sezione-copyright p {
  font-size: 1rem;
}

@media screen and (max-width:767px) {
  footer #logo-footer {
    margin-right: 0px;
  }
  .lead {font-size: 1rem;}
}

/* Classe di animazione */
.show-sequence {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* MODAL PER VIDEO */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 65%;
  BACKGROUND: #000;
  /* max-width: 800px; */
  height: auto;
  top: 150px;
}

.close {
  color: white;
  position: absolute;
  z-index: 999;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
}


.carousel-item{max-height:600px!important;}

.nav-link{text-transform:uppercase!important;}


/* COOKIE BAR */

#cookie-bar{opacity:0.85;}
#cookie-bar p{ font-family: 'Raleway', sans-serif;}
#cookie-bar a, #cookie-bar-prompt-content a, #cookie-bar-prompt-content span {
  color: #7b91aa!important;}
#cookie-bar-button {  background-color: #e2e1e0!important;border-radius:0px!important;padding:10px!important;}



.wave-effect {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  margin: 0;
  text-align: center;
  font-size: 3rem;
  background: linear-gradient(90deg, rgba(113, 140, 165, 0.7), rgba(255, 255, 255, 1), rgba(113, 140, 165, 0.7));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #fff; /* Il testo sarà trasparente ma riempito dall'animazione */
  /*animation: gradient-animation 8s ease-in-out infinite;*/
  font-family: Arial, sans-serif;
}

@media screen and (max-width:767px){
  .wave-effect {
    top: 27.5%;
    font-size: 1.2rem;
  }
}