Pio Esposito scored his first Serie A hat-trick for Inter, but his treble was overshadowed as his side surrendered leads of 2-0, 3-1 and 4-2 to draw 4-4 with Atalanta. Charles De Ketelaere scored twice and won the stoppage-time penalty that Franck Kessié converted for the equaliser.

Esposito became only the third Italian to score a hat-trick for Inter in the era of three points for a win. The last was Christian Vieri, in 2003, two years before Esposito was born. Comparisons between the pair have followed Esposito for some time, and intensified after a strong November in which he scored eight times in five games, including three in two appearances for Italy.

After scoring twice in Italy’s upset win against France, Esposito was on the covers of the country’s sports newspapers. But after Sunday’s draw, he told TV cameras: “I’m really struggling to give an explanation right now,” when asked how Inter had failed to win. “It’s a beautiful thing [to score the hat-trick] but I’m having a hard time enjoying it because we threw two points away.”

The result echoed Italy’s Nations League defeat by Belgium. Esposito’s goals against France had put Italy on course for the quarter-finals, with a draw in their final group game away to Belgium enough to secure progress. He scored an early goal at the King Baudouin Stadium, but Italy lost 4-1. De Ketelaere assisted Belgium’s first and third goals, turning the match in 10 minutes.

On Sunday, Esposito might have completed his hat-trick before half-time, but Marco Sportiello saved his point-blank effort with Inter leading 1-0. He scored his third just after the interval, running on to a Marcus Thuram through ball and lifting it over the Atalanta goalkeeper.

None of Esposito’s goals was spectacular, but the three showed his growing threat. He stayed in the middle of the penalty area to score the opener after an initial cross was half-cleared, then headed in at a corner. His third came from Thuram’s pass.

The Vieri comparisons have their limits. Vieri has said that anyone who thinks they are similar “doesn’t understand much about football”, adding that Esposito’s 6ft 3in height and broad-shouldered physique remind him more of Luca Toni. Esposito’s brothers Salvatore and Sebastiano, both professional footballers, have compared him to Edin Dzeko, whom he looked up to while progressing through Inter’s academy. Like Dzeko, Esposito can hold off defenders as an attacking pivot and create space for midfield runners.

Esposito has played 48 times for Inter, but last season was the understudy to Thuram and Lautaro Martínez. This campaign, he is becoming a main character in his own right. Yet Inter’s defence let the game slip after appearing in control for much of the final 20 minutes.

Eljif Elmas’s first goal for Atalanta came after his scuffed shot was blocked by Federico Dimarco and rebounded to him. After Esposito made it 3-1, Inter gave Atalanta a route back. De Ketelaere headed in from a corner, then Inter restored a two-goal lead when Petar Sucic scored a penalty after Davide Zappacosta fell and handled the ball while trying to cut out Thuram’s cross.

Atalanta’s English winger Jonathan Rowe then worked along the byline and played an outside-of-the-boot pass to an unmarked De Ketelaere, who scored from the middle of the box. In the 90th minute, De Ketelaere headed the ball on to Alessandro Bastoni’s outstretched arm, and Kessié converted the penalty.

There were questions over whether De Ketelaere had fouled Bastoni in the challenge. Inter also had a stronger claim that Zappacosta should have been sent off for handball; his blocked cross led to Rowe’s assist for Atalanta’s third goal.

Inter manager Cristian Chivu focused on his team’s errors. He said none of the goals had come in transition but instead “a difesa schierata” – with defenders in position who ought to have known better how to manage the threats they faced.

“We will learn our lesson,” Chivu said. Inter had already conceded four goals in a home Champions League defeat by Club Brugge and had let in 17 in 12 Serie A games. Francesco Acerbi, 38, and Stefan de Vrij, 34, departed in the summer, but the current defence is performing below the standards they helped set. John Stones was on the bench after hamstring troubles, but Inter conceded three goals in his only start this season, against Udinese.

Atalanta coach Maurizio Sarri has improved De Ketelaere’s performances by adjusting the formation to accommodate him as a No 10. Sarri nevertheless said the Belgian needed to show greater continuity, adding: “Physically and technically, though, he’s one of the best I have ever coached.”

Serie A results: Como 2-0 Cagliari; Lazio 3-0 Lecce; Parma 1-5 AS Roma; Napoli 1-0 Torino; Juventus 4-0 Venezia; Bologna 1-1 Udinese; Sassuolo 0-2 Genoa; Milan 5-1 Frosinone; Atalanta 4-4 Inter.