Atalanta were under pressure for long periods, but poor defending by Torino allowed Roberto Piccoli to snatch a stoppage-time winner.