.img1{
    transform: scale(0.325);
    transition: all 0.5s;
}
.img2{
  transform: scale(0.4);
  transition: all 0.5s;
}
.img3{
  transform: scale(0.4);
  transition: all 0.5s;
}
.terzetti {
    display: flex;
    justify-content: center; /* Center the cards horizontally */
    gap: 80px; /* Add space between the cards */
    padding: 20px;
}
/* Metto animazione glow */

.card:hover{
  transition: all 0.3s;
  margin-left: 80px;
  margin-right: 80px;
  transform: scale(1.2);
}

.img2:hover{
  transition: all 0.3s;
}
.card2:hover{
  transition: all 0.3s;
  margin-left: 80px;
  margin-right: 80px;
  transform: scale(1.2);
}
.img3:hover{
  transition: all 0.3s;
}
.card3:hover{
  transition: all 0.3s;
  margin-left: 80px;
  margin-right: 80px;
  transform: scale(1.2);
}
/* Spiegazioni */
.sp-1, .sp-2, .sp-3 {
  position: absolute;
  opacity: 0;
  transition: all 0.3s;
  margin-top: 50px;
  margin-left: 10%;
  margin-right: 11%;
  display: none;
  color: white;
  font-family:Helvetica;
  width: 79%;  /* o anche 100% */
}
.sp-1{
  text-align: left;
}
.sp-2{
  text-align: center;
}
.sp-3{
  text-align: right;
}
.sc-1{
  background-color: rgba(240, 248, 255, 0);
  filter: drop-shadow(0px 0px 20px rgba(93, 156, 236, 0.2));
}
.sc-2{
  background-color: rgba(240, 248, 255, 0);
  filter: drop-shadow(0px 0px 20px rgba(72, 207, 173, 0.2));
}
.sc-3{
  background-color: rgba(240, 248, 255, 0);
  filter: drop-shadow(0px 0px 20px rgba(172, 146, 236, 0.2));
}
.visible {
  display: block;
  opacity: 1;
}
/* card 1 */
.card {
    width: 300px;
    height: 350px;
    background: rgb(255, 255, 255);
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s;
  }
  
  .card h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
  }

  .card::after {
    content: '';
    position: absolute;
    background: rgb(255, 255, 255);
    inset: 5px;
    border-radius: 15px;
  }  

/* seconda card */
.card2 {
    width: 300px;
    height: 350px;
    background: rgb(255, 255, 255);
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s;
  }
  
  .card2 h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
  }
  
  @keyframes rotBGimg {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
  }
  
  .card2::after {
    content: '';
    position: absolute;
    background: rgb(255, 255, 255);
    inset: 5px;
    border-radius: 15px;
  }  
/* card 3 */
.card3 {
    width: 300px;
    height: 350px;
    background: rgb(255, 255, 255);
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s;
  }
  
  .card3 h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
  }
  
  @keyframes rotBGimg {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
  }
  
  .card3::after {
    content: '';
    position: absolute;
    background: rgb(255, 255, 255);
    ;
    inset: 5px;
    border-radius: 15px;
  }