Danilo Petrucci claimed his first WorldSBK podium of the season after getting the better of Andrea Iannone.