Alessio Romagnoli’s freak goal with the last kick of the game beat Genoa 2-1 on Wednesday and sent Milan into the Champions League places.
Both sides seemed to be heading for a share of the spoils, until Romagnoli hooked the ball over Ionut Radu right at the death to make up for his earlier own goal.
Lucas Biglia pulled up with a calf injury so Tiemoue Bakayoko partnered Franck Kessie and Hakan Calhanoglu in Milan’s midfield.
With Davide Calabria also out of the matchday squad, Gennaro Gattuso switched to a 3-5-2 formation as Ricardo Rodriguez played as a makeshift centre-back.
The Diavolo ended a two-match losing steak last weekend, beating Genoa’s city rivals Sampdoria 3-2, and they faced a Rossoblu side with two draws from two games under the returning Ivan Juric.
The visitors were spearheaded up top by Serie A top scorer Krzysztof Piatek, although the Pole had not scored since October 7.
The match was originally due to be played in Week 1 but was postponed after part of the Morandi bridge collapsed, killing 41 people.