Juventus won 3-1 at midtable Livorno in Sunday's late game to go 10 points behind Inter in third.