ROME - Lazio bounced back from two debilitating losses to beat Napoli 4-2 on Sunday and secure a spot in the Champions League playoffs on the final day of the Serie A season.

Lazio finished third, five points ahead of Fiorentina and six ahead of Napoli, qualifying for the final playoff round for the lucrative European competition in August.

Substitute Eddy Onazi scored the winner five minutes from time after both sides were reduced to 10 men.

Marco Parolo and Antonio Candreva gave Lazio a 2-0 lead at halftime but Gonzalo Higuain scored twice early in the second half to draw Napoli level.

Napoli would have finished third with a win and the southern club had its chance but Higuain sent a penalty high in the 76th.

Miroslav Klose added a headed goal for Lazio in added time.

Lazio lost the Italian Cup final to Juventus 2-1 after extra time last week then was beaten by city rival Roma with the same score in a heated derby on Monday.

"This is a huge accomplishment," Candreva said. "When Higuain's penalty was called I thought we were out of the (Champions League). But it went how it went and now third place is a huge prize.

"After the derby loss we were a bit down and disappointed," Candreva added. "But we put together a great performance in a tough stadium against a very strong opponent."

Napoli coach Rafa Benitez announced on Friday that this would be his last match with the club. He leaves on a sour note, amid speculation that he will soon be announced as Carlo Ancelotti's replacement at Real Madrid.

Juventus clinched its fourth straight title weeks ago, and Roma secured second with the derby win.

Roma finished 17 points behind Juventus and one ahead of Lazio after getting beat 2-1 at home by Palermo in its final match, which was mostly meaningless.

Franco Vazquez put Palermo ahead with a first-half penalty, Roma's 38-year-old captain Francesco Totti equalized in the 85th and Andrea Belotti scored the winner for Palermo in added time.

Fiorentina moved ahead of Napoli with a 3-0 win over 10-man Chievo Verona, with goals from Josip Ilicic, Federico Bernardeschi and Milan Badelj.

Maurco Icardi scored twice and also had an assist in Inter Milan's 4-3 win over Empoli to finish joint top scorer with Hellas Verona's Luca Toni — with 22 goals each, two more than Juve's Carlos Tevez.

Toni, who turned 38 on Tuesday, became the oldest "capocannoniere" in Serie A history. Dario Hubner, who was joint top scorer with David Trezeguet at the age of 35 in 2001-02, was the previous oldest leader.

"Achieving this at my age is something special," said the 22-year-old Icardi.

Also, it was: Sampdoria 2, Parma 2; Sassuolo 3, Genoa 1; Torino 5, Cesena 0; and Cagliari 4, Udinese 3.

The next Serie A season is slated to start Aug. 22-23.

At a packed San Paolo stadium, Napoli took the initiative at the start and was unfortunate when Jose Callejon slipped through the defence only to have his effort go just wide.

Parolo put Lazio ahead with a long shot that deflected slightly off a defender in the 33rd, although Napoli goalkeeper Mariano Andujar could have done more.

In first-half added time, Candreva got past the defence and slotted a shot past Andujar from the edge of the area.

Higuain pulled one back by tapping in a cross from Callejon in the 55th and then Dries Mertens nearly equalized two minutes later when defender Stefan De Vrij cleared his shot off the line.

Parolo picked up his second yellow in the 62nd for a late tackle on David Lopez and Higuain equalized two minutes later after taking a pass from Mertens inside the area.

Napoli fullback Faouzi Ghoulam was shown his second yellow in the 70th and the match appeared to take another wild turn when Senad Lulic tripped Christian Maggio on the edge of the area, resulting in a penalty for Napoli.

Lazio protested that the foul occurred outside the area but Higuain soon stepped up to the spot and blasted his shot well over the bar, setting off Lazio celebrations.

One minute after replacing Danilo Cataldi, Onazi scored the winner after Maggio's attempt to strip Cristian Ledesma on a counterattack resulted in a perfect pass for Onazi, and the Nigeria midfielder calmly found the target.

With Napoli having virtually given up, Klose — who also came on in the second half — headed in a free kick from Ledesma to seal it.

___

Andrew Dampf can be followed at www.twitter.com/asdampf