@media (max-width: 767px) {
  .text-reveal-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    transition: all 0.4s ease;
  }

  .text-reveal-container.expanded .text-reveal-content {
    -webkit-line-clamp: unset;
  }

  .text-reveal-toggle {
    display: inline-block;
    font-weight: bold;
    margin-top: 0.5em;
    cursor: pointer;
  }
}

/* Effetto Blur + Zoom al caricamento */
.gsap-bg-zoom-blur {
  filter: blur(6px);
  transform: scale(1);
  transition: filter 1.5s ease, transform 1.5s ease;
}
.gsap-bg-zoom-blur.active {
  filter: blur(0px);
  transform: scale(1.05);
}

/* Effetto Overlay su Hover */
.gsap-bg-hover-overlay .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.2), rgba(255,255,255,0.2));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.gsap-bg-hover-overlay:hover .overlay {
  transform: translateX(0);
}

/* Comuni */
.gsap-img-parallax-hover,
.gsap-img-zoom-desat,
.gsap-img-reveal {
  background-size: cover;
  background-position: center;
}

/* Effetto Reveal da destra */
.gsap-img-reveal {
  clip-path: inset(0 100% 0 0);
}
/* Effetto Ken Burns su immagini di sfondo Elementor */
.gsap-bg-kenburns {
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-size;
}
