/* BOX CAROUSEL */



.swiper-button-next,
.swiper-button-prev {
  position: relative;
  top: auto;
  width: auto;
  height: auto;
  margin-top: auto;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  right: auto;
  left: auto;
}

.swiper-button-prev {
  margin-right: 20px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  content: url("../img/freccia-dx.svg");
  font-family: swiper-icons;
  font-size: var(--swiper-navigation-size);
  text-transform: none !important;
  letter-spacing: 0;
  text-transform: none;
  font-variant: initial;
  line-height: 30px;
}
.swiper-button-prev:after {
  content: url("../img/freccia-sx.svg");
}



.carosello-sfondo {
  background-color: #f2ede6;
  padding: 20px 50px;
  margin-bottom: 50px;
}

.carosello-titolo-grande {
  font-weight: 600;
  font-size: 34px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.25);
  margin-left: 30px;
  margin-right: 30px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: space-between;
  -ms-flex-pack: space-between;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: flex-end;
  -ms-flex-align: flex-end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  padding-bottom: 20px;
}

.carosello-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
}

.carosello-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  -webkit-justify-content: end;
  justify-content: end;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  background-image: url(../img/card/card.png);
  background-size: contain;
  height: 527px;
  width: 340px;
  border-radius: 8px;
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.1);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.25s ease;
  margin-top: 50px;
  margin-bottom: 30px;
}


.carosello-card:first-of-type {
  margin-left: 30px;
}
.carosello-card:last-of-type {
  margin-right: 30px;
}

.carosello-card:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.carosello-card:hover .carosello-testo {
  opacity: 0.8;
}


.carosello-href,
.carosello-card a{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: block;
}


.carosello-sfumato {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5)
  );
  top: 0;
  left: 0;
}
.carosello-card-occhiello {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.14;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 1;
}
.carosello-card-titolo {
  margin: 3px 0 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.07;
  color: #fff;
  z-index: 1;
}
.carosello-card-firma {
  margin: 15px 0 0;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.14;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* DESKTOP */

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

  .carosello-titolo-grande {
    max-width: 1260px;
    margin: auto;
  }

  .swiper-wrapper {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }
}


/* RESPONSIVE MOBILE */
@media screen and (max-width: 480px) {

  .carosello-card {
    background-image: url(../img/card/card.png);
    background-size: contain;
    height: 465px;
    width: 300px;
  }

  .carosello-titolo-grande {
    font-size: 28px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .carosello-card:first-of-type {
    margin-left: 0;
  }

  .carosello-buttons {
    display: none;
  }
}
