/**
 * Ingressi contenuti leggeri nel viewport (dissolvenza + leggero spostamento verso l’alto).
 */

@media (prefers-reduced-motion: no-preference) {
	body.psh-professional-theme .psh-reveal {
		opacity: 0;
		transform: translate3d(0, 20px, 0);
		transition:
			opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
		transition-delay: calc(var(--psh-reveal-delay, 0) * 1ms);
	}

	body.psh-professional-theme .psh-reveal.psh-reveal--visible {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}

	/*
	 * Ritardo leggero a cascata sulle liste di card (griglia o elenco semplice).
	 */
	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(1),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(1) {
		--psh-reveal-delay: 0;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(2),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(2) {
		--psh-reveal-delay: 42;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(3),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(3) {
		--psh-reveal-delay: 84;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(4),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(4) {
		--psh-reveal-delay: 126;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(5),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(5) {
		--psh-reveal-delay: 168;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(6),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(6) {
		--psh-reveal-delay: 204;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(7),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(7) {
		--psh-reveal-delay: 238;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(8),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(8) {
		--psh-reveal-delay: 272;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(9),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(9) {
		--psh-reveal-delay: 300;
	}

	body.psh-professional-theme #main .psh-grid > article.psh-card.psh-reveal:nth-child(n + 10),
	body.psh-professional-theme #main .psh-section > article.psh-card.psh-reveal:nth-child(n + 10) {
		--psh-reveal-delay: 320;
	}
	/* Hover card: leggerezza (non invasivo) */
	body.psh-professional-theme .psh-card:not(.no-motion) .psh-card__link {
		transition:
			transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			box-shadow 0.42s ease;
	}

	body.psh-professional-theme .psh-card:not(.no-motion):hover .psh-card__link {
		transform: translate3d(0, -4px, 0);
	}

	body.psh-professional-theme .psh-btn:not(:disabled):not(.no-motion),
	body.psh-professional-theme a.psh-btn:not(.no-motion) {
		transition:
			transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
			box-shadow 0.28s ease,
			opacity 0.28s ease;
	}

	body.psh-professional-theme .psh-btn:not(:disabled):not(.no-motion):hover,
	body.psh-professional-theme a.psh-btn:not(.no-motion):hover {
		transform: translate3d(0, -2px, 0);
	}
}

/* Accessibilità: niente motion */
@media (prefers-reduced-motion: reduce) {
	body.psh-professional-theme .psh-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		--psh-reveal-delay: 0 !important;
	}
}

@media print {
	body.psh-professional-theme .psh-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
