Don't know how it works in Italia, but in America when a conviction is overturned on appeal, it doesn't mean the accused is acquitted.
It simply puts the case back to square one, and the prosecution has to decide whether to file new charges.
There may be exceptions to this general rule.
Turns out Italian justice system operates on quite different principles from ours. Trials, appeals, etc. don’t correlate exactly.