Milan: Inter Milan snatched the final Champions League berth with a dramatic rally to win 3-2 against direct European rivals Lazio on the final day of the season at the Stadio Olimpico on Sunday.

Inter had to win in order to take third place from Lazio, who had a superior head-to-head record and needed just to draw.

Late goals from captain Mauro Icardi and Matias Vecino ensured Inter return to Europe for the first time since the 2011-2012 season, along with Juventus, Napoli and Roma.

Lazio had led 2-1 with a quarter of an hour to go in Rome after Ivan Perisic turned the ball into his own net and Brazilian Anderson got a second four minutes before the break.

But Danilo D’Ambrosio got one back after 29 minutes with Icardi slotting in a penalty after 78 minutes following a Stefan De Vrij foul to join Lazio’s Ciro Immobile as the top Serie A scorer this season with 29 goals.

Lazio captain Senad Lulic was sent off late for a second yellow card with Vecino heading in the winner minutes later.

Both Inter and Lazio finished equal on 72 points but Inter are ahead on direct clashes leaving Lazio fourth, five points behind Roma who beat Sassuolo 1-0 on Sunday.

Lazio go into the Europa League along with AC Milan who sealed direct access to the group stage with a 5-1 rout of Fiorentina, who finish eighth.

Earlier second-placed Napoli ended their record-breaking season with a 2-1 win that condemned Crotone to second-tier football next season.

Lorenzo Insigne orchestrated both Napoli goals as the southerners achieved a club record 91 points for the season — four behind champions Juventus.

Juve lifted the Scudetto for the seventh consecutive year with a game to spare and capped the season with a 2-1 win over Verona on Saturday, during which goalkeeping star Gianluigi Buffon called time on his 17-year career with the Turin giants.

Maurizio Sarri’s Napoli also became the first Serie A side to reach 90 points and still not win the league.

Crotone return to Serie A after two seasons in the top flight where they join already-relegated Verona and Benevento.