.valori{
  padding-top: clamp(5rem, 3rem + 2vw, 9rem);
  padding-bottom: calc(10% + clamp(6.25rem, 5.5825rem + 2.8479vw, 9rem));
}

.valori:before{
  content:'';
  position:absolute;
  width:clamp(125rem, 114rem + 55vw, 180rem);
  top:0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-size: 100% 100%;
  z-index: -1;
}

.valori *{
  transition: all .5s ease-in-out;
}

.valori > p{
  /*max-width: 766px;*/
}

.swiper-slide.card-valore img:before {
  background-color: #000000;
  opacity: .5;
}

.valori .swiper-valori:not([open]){
  min-width: 10rem;
  width: 50%;
  aspect-ratio: 403/563;
  cursor: pointer !important;
  transform: rotate(-10deg);
}

.valori .swiper-valori[open]{
  width: 100%;
}

.valori .swiper-valori[open] .swiper-slide{
  position: relative;
  min-width. 10rem;
  width: 50%;
  aspect-ratio: 403/563;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  transform: translate(0) !important;
}

.valori .swiper-valori:not([open]) .swiper-slide{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
}

.valori .swiper-valori:not([open]) .description{
  display: none;
}

.valori .card-valore img{
  position: absolute;
  inset: 0;
  z-index: -1;
}
.valori .swiper-valori .swiper-slide.card-valore:before {
    background-color: black;
    opacity: .4;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}
.valori .card-valore .content{
  z-index: 1;
  margin-top: 100%;
}

.valori .title-valori{
  color: #9AB34B !important;
  font-size: 200px !important;
  letter-spacing: 15px;
  line-height: 0.75;
}
.description-valori {
  margin-top: 40px;
}

@media only screen and (max-width: 768px){
  .valori .title-valori {
    font-size: 100px !important;
  }
}

@media only screen and (min-width: 768px){  
  .valori .swiper-valori:not([open]){
    min-width: 10rem;
    width: 22%;
    aspect-ratio: 403/563;
    cursor: pointer !important;
    transform: rotate(-10deg);
  }

  .valori .swiper-valori[open]{
    width: 100%;
  }

  .valori .swiper-valori[open] .swiper-slide{
    position: relative;
    min-width. 10rem;
    width: 22%;
    aspect-ratio: 403/563;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    transform: translate(0) !important;
  }

  .valori .swiper-valori:not([open]) .swiper-slide{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .valori .title-valori {
    font-size: 200px !important;
  }
}

@media only screen and (max-width: 768px) {
  .valori .card-valore .content{
    margin-top: 50%;
  }
}