Franco Colapinto left it late to take his first Formula 3 victory in the Imola Sprint Race with a final lap pass on Caio Collet.