﻿.carousel {
  position: relative;
}
.carousel-item {
  background-position: top right;
  background-repeat: no-repeat;
  background-size: cover;
  height: 780px;
  overflow-y: auto;
}
.carousel .carosello-rotazione{
  background-color: var(--bcc-bianco);
  border: 3px solid var(--bcc-verde-medio);
  border-radius: 26px;
  bottom: 5px;
  height: 44px;
  outline: none;
  padding: 0;
  position: absolute;
  right: 15px;
  transition: border 0.3s, background-color 0.3s, color 0.3s;
  width: 54px;
  z-index: 16;
}
.carousel .carosello-rotazione .play,
.carousel .carosello-rotazione .pausa {
  display: block;
  height: 16px;
  left: 15px;
  position: absolute;
  top: 11px;
  width: 16px;
}
.carousel .carosello-rotazione .play {
  border-bottom: 8px solid transparent;
  border-left: 8px solid transparent;
  border-radius: 2px;
  border-right: 8px solid transparent;
  border-top: 8px solid transparent;
  left: 11px;
  transform: rotate(45deg);
  transition: border 0.3s;
}
.carousel .carosello-rotazione .pausa::before, .carousel .carosello-rotazione .pausa:after {
  background-color: transparent;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: background-color 0.3s;
  width: 6px;
}
.carousel .carosello-rotazione .pausa:after {
  left: 11px;
}
.carousel .carosello-rotazione.rotazione-play .play {
  border-bottom: 8px solid transparent;
  border-left: 8px solid transparent;
  border-right: 8px solid var(--bcc-verde-medio);
  border-top: 8px solid var(--bcc-verde-medio);
}
.carousel .carosello-rotazione.rotazione-play:focus .play, .carousel .carosello-rotazione.rotazione-play:hover .play {
  border-right-color: var(--bcc-bianco);
  border-top-color: var(--bcc-bianco);
}
.carousel .carosello-rotazione.rotazione-pausa .pausa::before, .carousel .carosello-rotazione.rotazione-pausa .pausa::after {
  background-color: var(--bcc-verde-medio);
}
.carousel .carosello-rotazione.rotazione-pausa:focus .pausa::before, .carousel .carosello-rotazione.rotazione-pausa:focus .pausa::after, .carousel .carosello-rotazione.rotazione-pausa:hover .pausa::before, .carousel .carosello-rotazione.rotazione-pausa:hover .pausa::after {
  background-color: var(--bcc-bianco);
}
.carousel .carosello-rotazione:focus, .carousel .carosello-rotazione:hover {
  background-color: var(--bcc-verde-scuro);
  border-color: var(--bcc-verde-scuro);
}
.carousel .carosello-rotazione:focus-visible {
  box-shadow: 0 0 0 3px var(--bcc-bianco), 0 0 0 8px var(--bcc-verde-scuro);
}
.carousel .carosello-indicatori {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 30px;
  bottom: 45px;
  display: flex;
  height: 44px;
  left: 0;
  margin: 0 auto;
  padding: 0 16px;
  position: absolute;
  right: 0;
  width: -moz-fit-content;
  width: fit-content;
  z-index: 1;
}
.carousel .carosello-indicatori button {
  background-color: transparent;
  background-image: none;
  border: none;
  height: 44px;
  left: 0;
  margin: 0;
  opacity: 1;
  outline: 0;
  padding: 0;
  position: relative;
  top: 0;
  width: 44px;
}
.carousel .carosello-indicatori button::after {
  background-color: var(--bcc-alluminio);
  background-image: linear-gradient(270deg, var(--bcc-alluminio) 0%, var(--bcc-bianco) 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  content: "";
  display: block;
  height: 16px;
  left: 50%;
  outline: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s, background-image 0.3s, height 0.3s, width 0.3s;
  width: 16px;
}
.carousel .carosello-indicatori button:focus-visible::after {
  outline: 2px solid var(--bcc-bianco);
  outline-offset: 5px;
}
.carousel .carosello-indicatori button:hover::after {
  height: 20px;
  width: 20px;
}
.carousel .carosello-indicatori button.indicatore-attivo::after {
  height: 10px;
  width: 10px;
}
/*.carousel .carosello-1 {
  background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180389.webp);
}
.carousel .carosello-2 {
  background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180393.webp);
}*/
.carousel .carosello-contenuto {
  background-color: var(--bcc-bianco);
  bottom: 104px;
  left: 50%;
  max-height: 300px;
  overflow-y: auto;
  padding: 20px 15px;
  position: absolute;
  text-align: left;
  transform: translate(-50%, 0);
  width: calc(100% - 30px);
}
.carousel .carosello-titolo {
  color: var(--bcc-blu);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}
.carousel .carosello-testo {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}
.carousel .carosello-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.carousel .carosello-disclamer, .carousel p.disclaimer {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0;
}

/* Media breakpoint up md */
@media (min-width: 768px) {
  .carousel-item {
    height: 100svh;
  }
 /*.carousel .carosello-1 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180388.webp);
  }
  .carousel .carosello-2 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180392.webp);
  }*/
  .carousel .carosello-contenuto {
    bottom: 125px;
    max-height: 450px;
    padding: 30px 20px;
    width: 730px;
  }
  .carousel .carosello-titolo {
    font-size: 1.875rem;
  }
  .carousel .carosello-testo {
    margin-bottom: 30px;
  }
}
/* Media breakpoint up lg */
@media (min-width: 992px) {
 /*.carousel .carosello-1 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180387.webp);
  }
  .carousel .carosello-2 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180391.webp);
  }*/
  .carousel .carosello-contenuto {
    padding: 30px 30px 20px 30px;
    width: 960px;
  }
}
/* Media breakpoint up xl */
@media (min-width: 1200px) {
 /*.carousel .carosello-1 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180386.webp);
  }
  .carousel .carosello-2 {
    background-image: url(https://static.publisher.iccrea.bcc.it/archivio/648/180390.webp);
  }*/
  .carousel .carosello-contenuto {
    left: 150px;
    transform: translate(0);
    width: 610px;
  }
  .carousel .carosello-cta {
    margin: 0 0 0 auto;
  }
}
