Giacomo Bonaventura scored a last-minute goal for Atalanta BC to earn his side a 2-1 victory over Inter Milan in their Serie A match at the San Siro.
Fredy Guarin had an early sight of goal for the hosts when he was picked out on the edge of the box, but he could only place his shot wide of the post.
The midfielder came close again moments later as he worked himself some space to shoot before firing a long-range effort narrowly over the bar.
Despite their strong start, Inter almost fell behind when Maximiliano Moralez drilled in a powerful shot from just inside the box that was beaten away by Samir Handanovic.
Handanovic was called into action again soon after to block Luca Cigarini's fierce attempt following German Denis's pass.
Atalanta continued to threaten and were inches away from taking the lead when Denis met Bonaventura's cross and powered a header against the bar.
Midway through the half Mauro Icardi had a good opportunity for Inter after being slipped into the box by Guarin, but Andrea Consigli was out quickly to block his attempt.
In the 35th minute Atalanta took the lead through Bonaventura, who was picked on the edge of the box and powered a low strike into the bottom corner.
Their lead didn't last long as within a minute Inter were level, as Icardi burst into the box and drilled an effort past the helpless Consigli.
Danilo D`Ambrosio had a chance to put his side ahead in the final minute of the half, but after being picked out inside the box he could only volley an effort wide of the post.
After the break Guarin came close to scoring when he received the ball in space outside the box and fired a strike against the bar.
They were denied by the woodwork again when Rodrigo Palacio met Jonathan's cross and flicked a header against the post.
Franco Brienza came close to giving the visitors the lead when his attempt was cleared off the line, before Jonathan hit the crossbar for Inter from close range.
With a minute of the match left to play, Atalanta stole all three points as Bonaventura arrived at the back post to head Brienza's free kick past Handanovic and into the net.