Giacomo Bonaventura scored the only goal of the game as AC Milan made it 10 matches unbeaten in all competitions with a 1-0 Serie A win over Sampdoria.
The Rossoneri have experienced a significant upturn in fortunes under Gennaro Gattuso and they dominated an eventful contest at San Siro.
Ricardo Rodriguez saw a seventh-minute penalty saved, but Milan were not punished for his profligacy and Bonaventura netted what proved to be the decisive goal six minutes later.
But the remaining 77 minutes were filled with incident, Milan seeing a Leonardo Bonucci effort ruled out for offside while Hakan Calhanoglu struck the crossbar.
A lifeless Sampdoria team did not offer a genuine threat until Gianluca Caprari squandered a late chance to equalise and seventh-placed Milan now move level with them on 41 points, just seven points adrift of a Champions League qualification berth.
Next for Milan is the second leg of a Europa League round-of-32 tie with Ludogorets that they appear to have wrapped up thanks to a 3-0 victory in the first meeting, before Gattuso's credentials will receive their sternest test yet with league games against Roma and Inter either side of the second leg of the Coppa Italia semi-final with Lazio.
2 - The last two Giacomo Bonaventura's goals in Serie A arrived thanks to Davide Calabria assists. Duo. #MilanSampdoria-- OptaPaolo (@OptaPaolo) February 18, 2018
Milan threatened inside the first three minutes as Bonaventura headed straight at Emiliano Viviano from a Riccardo Montolivo cross but a better opportunity was squandered by Rodriguez four minutes later.
Samp left-back Nicola Murru blocked a cross from the right with his arm and referee Daniele Doveri duly pointed to the spot.
However, Rodriguez's penalty was a tame one and Viviano got down low to his left to turn the ball behind.
But Viviano was picking the ball out of his net soon after as Milan broke the deadlock with a wonderful move.
Suso played in Davide Calabria down the right and he whipped in a magnificent delivery for the onrushing Bonaventura, the unmarked midfielder firing a first-time volley into the ground and underneath Viviano.
Suso and Calhanoglu both had efforts deflected wide as Milan spent much of the first half camped in the Samp half, but the visitors were aggrieved not to be awarded a penalty of their own, the VAR opting not to punish Calabria's apparent handball with a spot-kick.
But Samp were grateful to the VAR shortly before half-time when Suso and Calhanoglu orchestrated a well-worked free-kick, the latter's low cross turned in by Bonucci, only for the centre-half to be correctly adjudged to have been offside on review.
The frame of the goal rescued Samp seven minutes after the restart as Calhanoglu's fierce effort from the edge of the area cannoned off the top of the crossbar, before Suso shot across the face of goal with the net at his mercy at the far post.
Vivano denied both Calhanoglu and Calabria to keep Samp in it but, despite a late scare when substitute Caprari fired wide at the far post, Milan gained ground on fourth-placed Inter to perhaps open another avenue back into the Champions League.
1 goal scored / gol segnato-- AC Milan (@acmilan) February 18, 2018
1 penalty missed / rigore sbagliato
1 goal disallowed / gol annullato
3 BIG FAT POINTS / IMPORTANTISSIMI PUNTI#MilanSampdoria 1-0
14' @giacomobona pic.twitter.com/ytUGBLI0x4