AC Milan couldn't take advantage of a slip-up by city rivals Inter after they were humbled in the San Siro by mid-table Palermo.
Second-placed Milan meekly ended a run of five straight league wins and slipped five points behind Inter when Fabrizio Miccoli scored one goal and helped set up Mark Bresciano for the second in the away side's deserved victory.
Forward Miccoli cut inside and arrowed in an unstoppable drive early in the second half before producing great skill on the flank to allow Australian Bresciano to slam the ball into the net.
"We knew we could do well today. We thoroughly deserved it. We are a good team, today we showed it," Miccoli told Sky TV.
"I have to congratulate Palermo,'' said Leonardo. "They deserved the win. They play a little bit like us, with so many players in attack. It was an open game but the two goals conceded after the re-start determined the result.''
"I think my players played well,'' he said. "Perhaps we lacked the same rhythm that we showed in our last three games. But we didn't play badly, it's just that we found a Palermo side that played better.''
Champions Inter were held 1-1 by Atalanta. Jose Mourinho's side went ahead on 15 minutes when Argentina striker Diego Milito, one of three forwards in another attacking formation, skipped two tackles and scuffed the ball home.
Dutch playmaker Wesley Sneijder hit the bar with a free kick but was dismissed for a second booking after the break. Simone Tiribocchi expertly equalised for struggling Atalanta nine minutes from time after Lucio failed to stop a through ball but Inter's Thiago Motta could still have won it in stoppage time.
"Maybe it's an opportunity missed by the others but not by us," Inter assistant coach Beppe Baresi said. "It's the only foul he has done in recent games," he added, referring to Sneijder's second yellow card.
Inter coach Jose Mourinho, who like counterpart Antonio Conte was in the stands after being sent off in last weekend's defeat at Juventus, was unable to talk with media.
Nicola Amoruso missed a penalty but redeemed himself with an 86th-minute winner as fourth-placed Parma came back to win 2-1 at home to Bologna and move two points behind third-placed Juventus, who lost 3-1 at Bari on Saturday.
Inter were the only Serie A side who played in the Champions League in midweek to pick up a point with Fiorentina going down 2-1 at Chievo to slip four adrift of Parma.
Sampdoria and AS Roma both edged up to joint fifth after drawing 0-0 in an entertaining late game.
Genoa are another of the sides in the bunch after losing 1-0 at Lazio, who recorded only their third league win of the campaign thanks to wingback Aleksandar Kolarov's classy goal.