/* problema altezza dei video in home - fix balbooa */
.ba-video-background video,
.ba-video-background iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
}
/*
div .ba-video-background video,
div .ba-video-background iframe {
     left: 0;
     min-height: 100% !important;
     top: 0 !important;
     transform: translateX(-50%) translateX(50vw);
     width: calc(200vh / .5624) !important;
}*/
/* Attivazione blur allo scroll */
#item-179497138800 {
  transition: backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease, background-color .25s ease;
}

#item-179497138800.is-scrolled, .custom-blur i {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background-color:rgba(255,255,255,0.4);
}
/* saturazione */
.saturato img, .saturato .ba-slideshow-img {filter:saturate(.4);}
.saturato1 img {filter:saturate(.1);}
 /* horizontal scrolling */
@media (min-width: 1281px) {
    .com_gridbox:not(.gridbox) .horizontal-section {
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .com_gridbox:not(.gridbox) .horizontal-section .ba-section-items {
        display: flex;
        position: sticky;
        top: 0;
        width: fit-content;
        z-index: 1;
    }
    
    .com_gridbox:not(.gridbox) .horizontal-section > .ba-section-items >.ba-row-wrapper {
        width: calc(100vw - 15px);
    }
}
    
@media (max-width: 1280px) {
    .com_gridbox:not(.gridbox) .horizontal-section{
        height: auto !important; 
    }
    .com_gridbox:not(.gridbox) .horizontal-section .ba-section-items  {
        transform: none!important;
    }
}
/* testo sottolineato su pulsante */
.custom-button:hover span, .custom-button div.slideshow-button a:hover {
  text-decoration:underline !important;
}
/* Plugin Carousel */
  .custom-carousel .ba-slideshow-caption {
      flex-direction: column;
      justify-content: flex-end;
      align-items: flex-start;
      transition: background-color 1s linear;
  }
@media (max-width: 1280px) {
  .custom-carousel .ba-slideshow-caption {
      padding: 1.75rem 1.25rem;
  }
  .custom-carousel .slideset-btn-prev, .slideshow-btn-prev {
  left:-1.25rem;
}
.custom-carousel .slideset-btn-next, .slideshow-btn-next {
  right:-1.25rem;
}
   li.item.active .ba-slideshow-caption {
      background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 60%) !important;
  }
}
@media (min-width: 1281px) {
  .custom-carousel ul li {
      width: calc((100% - 12px) / 3) !important;
  }  
  .custom-carousel .ba-slideshow-caption {
      padding: 3.75rem 5rem;
  }
  li.item.active[data-position="1"] .ba-slideshow-caption {
      background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 60%) !important;
  }
  .ba-slideshow-caption > * {
      opacity: 0;
      transition: 1s linear;
  }
  li.item.active[data-position="1"] .ba-slideshow-caption > * {
      opacity: 1;
  }
  .custom-carousel .ba-slideshow-caption > * {
      padding: 0;
  }
  /*
  .custom-carousel .slideshow-title-wrapper {
      order: 2;
      margin-left: 20px;
  }
  .custom-carousel .slideshow-description-wrapper {
      order: 3;
  }
  .custom-carousel .ba-slideshow-description:before {
      content: '•';
      color: #fff;
      margin: 0 5px;
  }
  */
}
/* contatori */
.custom-counter-width .ba-counter span.counter-number {
  width:100% !important;
}
.custom-counter .counter-number:after {
  font-size:2.5rem;
  line-height:4.5rem;
  margin-top:0.5rem;
  content:'';
  padding-left:1rem;
}
.custom-counter1 .counter-number:after {
  font-size:2.5rem;
  line-height:4.5rem;
  margin-top:0.5rem;
  content:'km';
  padding-left:1rem;
}
.custom-counter2 .counter-number:after {
  font-size:2.5rem;
  line-height:4.5rem;
  margin-top:0.5rem;
  content:'mq';
  padding-left:1rem;
}
.custom-counter3 .counter-number:after {
  font-size:2.5rem;
  line-height:4.5rem;
  margin-top:0.5rem;
  content:'t';
  padding-left:1rem;
}
/* testo di sottofondo (virgolette in home) */
@media (min-width: 421px) {
.custom-bg-text i {
  transform: scaleX(-1);
  position: absolute;
  top: -12.5rem;
  left:-7.5rem ;
  z-index: -1;
}
}
@media (max-width: 420px) {
.custom-bg-text i {
  transform: scaleX(-1);
  position: absolute;
  top: -7.5rem;
  left:0.25rem ;
  z-index: -1;
}
}
/* stessa altezza box */
.custom-box > .ba-row-wrapper {
    display: flex;
    flex: 1 1 auto;
    align-self: stretch;
}
.custom-box > .ba-row-wrapper > .ba-row {
    flex: 1 1 auto;
    width: 100%;
}
.custom-box > .ba-row-wrapper > .ba-row > .column-wrapper {
    height: 100%;
}

/* La descrizione occupa lo spazio libero e spinge l'email in basso */
.custom-in-box {
    flex-grow: 1;
}