Periodic orbits for perturbed non-autonomous differential equations