Livorno, Catania and Bologna are all relegated, while a Torino-Parma dramatic draw leaves sixth place up for grabs.
Despite a 2-1 victory at the Dall’Ara, Catania still go down with the team they beat and Livorno, who fell at home to Fiorentina.
Sassuolo crushed Genoa 4-2 to secure their spot and Chievo won 1-0 in Sardinia to do the same.
Torino-Parma was a dramatic occasion with two red cards, including for Ciro Immobile, a saved penalty and sixth place still up for grabs in the final round.
Napoli thumped sorry Sampdoria 5-2 with Marek Hamsik ending his goal drought.