A penalty from Andrea Belotti ended a run of over 16 hours without conceding a goal in the league, and the shot-stopper admitted he almost missed the match.
Juventus' veteran goalkeeper Gianluigi Buffon dedicated his new Serie A record to his teammates after his run of 10 clean sheets came to an end in a 4-1 defeat of local rival Torino.
Buffon was beaten by an Andrea Belotti penalty after 973 minutes without conceding a goal, breaking Sebastiano Rossi's 22-year-old record of 929 minutes.
Paul Pogba and Sami Khedira - who was sent off late on - were both on target for Juve while Alvaro Morata added a brace in a comfortable win.