/* HEROBOTS — schede Projects, blocco PROJECT IN NUMBERS (desktop + mobile) */

#numbers .hb-stat {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .7s cubic-bezier(.16, 1, .3, 1),
    border-color .35s cubic-bezier(.16, 1, .3, 1);
}
#numbers .hb-reveal.is-in .hb-stat { opacity: 1; transform: none; }
#numbers .hb-reveal.is-in .hb-stat:nth-child(1) { transition-delay: 0s; }
#numbers .hb-reveal.is-in .hb-stat:nth-child(2) { transition-delay: .09s; }
#numbers .hb-reveal.is-in .hb-stat:nth-child(3) { transition-delay: .18s; }
#numbers .hb-reveal.is-in .hb-stat:nth-child(4) { transition-delay: .27s; }

#numbers .hb-stat__value { font-variant-numeric: tabular-nums; }
#numbers .hb-stat__sub { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  #numbers .hb-stat { opacity: 1; transform: none; transition: border-color .35s; }
}

@media (max-width: 860px) {
  #numbers .hb-stat { min-height: 0 !important; padding: 22px 18px !important; }
  #numbers .hb-stat__value { font-size: 28px !important; }
  #numbers .hb-stat__sub { font-size: 12.5px !important; }
}

/* ---- card PARTNERS / FUNDING: bordo + comparsa in cascata ---- */
#partners .hb-pcard {
  border-color: rgba(255, 255, 255, .22) !important;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .7s cubic-bezier(.16, 1, .3, 1),
    border-color .35s cubic-bezier(.16, 1, .3, 1);
}
#partners .hb-reveal.is-in .hb-pcard { opacity: 1; transform: none; }
#partners .hb-reveal.is-in .hb-pcard:nth-child(1) { transition-delay: 0s; }
#partners .hb-reveal.is-in .hb-pcard:nth-child(2) { transition-delay: .09s; }
#partners .hb-reveal.is-in .hb-pcard:nth-child(3) { transition-delay: .18s; }
#partners .hb-reveal.is-in .hb-pcard:hover {
  border-color: rgba(255, 255, 255, .65) !important;
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  #partners .hb-pcard { opacity: 1; transform: none; transition: border-color .35s; }
}

/* ---- blocchi 1-4: testo centrato ---- */
#project > div > .hb-reveal,
#challenge > div > .hb-reveal,
#herobots > div > .hb-reveal:first-child,
#herobots > .hb-reveal:first-child > div:first-child,
#numbers > div > p.hb-reveal {
  text-align: center;
}
#project > div > .hb-reveal > p,
#challenge > div > .hb-reveal > p,
#herobots > div > .hb-reveal:first-child > p,
#herobots > .hb-reveal:first-child > div:first-child > p {
  text-wrap: pretty;
}
