Cagliari moved clear of the lower reaches of Serie A thanks to a 2-1 home win against Fiorentina.
Cagliari re-emerged briskly after the break after a mostly uneventful first half and Brazilian midfielder Joao Pedro opened the scoring, finishing off a brilliant cross from Fabrizio Cacciatore in the 52nd minute.
Luca Ceppitelli headed Cagliari's second on 66 minutes from a Charalampos Lykogiannis free-kick.
Joao Pedro should have sealed the result but his shot from a rebound struck the crossbar with the goal at his mercy.
Federico Chiesa curled a consolation effort inside the far post for Fiorentina with two minutes of normal time remaining.
Cagliari midfielder Luca Cigarini scored what would have been a contender for goal of the season from his own half but it was ruled out by referee Daniele Doveri as it should have been an indirect free-kick.
Three seasons after their most recent stint in Serie B, the Sardinia side are now nine points clear of the three-team drop zone.
Fiorentina, who haven't won in four league matches, are in 10th place, seven points above Cagliari, after the game opened matchday 28.
Fiorentina had hoped to keep alive their shot at securing a final UEFA Europa League slot with a victory.