Simulating cosmologies beyond ΛCDM with PINOCCHIO