Alexander Dunne battled his way through from fifth on the grid around Imola to take his second victory of the 2025 Formula 2 season.