/* DUCKMAZE • Stacking Cards (Elementor)
 * Status: STABLE
 * Version: 1.0.0
 * - Prime N-1 card sticky (Elementor), ultima card libera
 * - Effetti applicati via JS: translateY/scale/opacity/blur
 */

.sc-stack {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
  contain: none !important;

  /* Parametri effetto */
  --stack-z-base: 100;
  --slide: 18px;  /* discesa massima */
  --scale: 0.08;  /* riduzione max */
  --fade: 0.35;   /* attenuazione max */
  --blur: 8px;    /* blur max */

  /* quando la successiva è “in testa”, la superata va a opacità 0 */
  --hide-threshold: 0.985;
}

.sc-stack > .elementor-sticky,
.sc-stack > .e-con-inner > .elementor-sticky {
  will-change: transform, filter, opacity;
  transform: translateZ(0);
  overflow: visible !important;
  isolation: isolate;
}

/* (opzionale stile card)
.sc-stack > .elementor-sticky,
.sc-stack > .e-con-inner > .elementor-sticky {
  background:#fff; border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.12);
}
*/
