@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lineGrow {
  from { height: 0; }
  to   { height: 72px; }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ── PAGE ENTRY ── */
body { animation: pageIn 0.5s var(--ease-out) both; }

/* Nav entra dall'alto */
.nav {
  animation: slideDown 0.6s var(--ease-out) 0.1s both;
}

/* Page header — hero interno pagine */
.page-header .t-label   { animation: fadeUp 0.7s var(--ease-out) 0.2s both; }
.page-header .t-display { animation: fadeUp 0.8s var(--ease-out) 0.35s both; }
.page-header .t-body    { animation: fadeUp 0.7s var(--ease-out) 0.55s both; }

/* Homepage hero */
.hero-left .t-label         { animation: fadeUp 0.7s var(--ease-out) 1.1s both; }
.hero-left .hero-name       { animation: fadeUp 0.8s var(--ease-out) 1.2s both; }
.hero-left .hero-name-italic{ animation: fadeUp 0.8s var(--ease-out) 1.32s both; }
.hero-left .t-body          { animation: fadeUp 0.7s var(--ease-out) 1.5s both; }
.hero-left .wa-btn          { animation: fadeUp 0.6s var(--ease-out) 1.7s both; }
.hero-right img             { animation: fadeIn 1.2s var(--ease-out) 1.1s both; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.36s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.48s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.60s; }

/* Gallery stagger — ogni item entra con ritardo crescente */
.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.35s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.42s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.49s; }
.gallery-grid .reveal:nth-child(9) { transition-delay: 0.56s; }

/* FAQ stagger */
.faq-list .faq-item.reveal:nth-child(1) { transition-delay: 0s; }
.faq-list .faq-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.faq-list .faq-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.faq-list .faq-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.faq-list .faq-item.reveal:nth-child(5) { transition-delay: 0.32s; }
.faq-list .faq-item.reveal:nth-child(6) { transition-delay: 0.40s; }
