Joan Mir took his eighth victory of the season with a superb last lap overtake, with Di Giannantonio and Bastianini completing the podium