Inter twice let the lead slip as their hopes of playing European football next season were dented in an entertaining 3-2 loss at Genoa.
Juraj Kucka headed home a dramatic late winner as Inter's hopes of qualifying for the UEFA Europa League were dealt a potentially fatal blow in an enthralling 3-2 Serie A loss at Genoa on Saturday.
Earlier this week it was confirmed that Genoa — which started the game in sixth — would not be granted a UEFA license to play in Europe next season, meaning that even if the club maintains its current standing, the team finishing seventh will play in Europe's secondary competition.
But Inter twice let the lead slip in the pulsating encounter at Luigi Ferraris, meaning it is two points behind seventh-place Sampdoria — which faces Empoli on Sunday — with just one game to play.
In an action-packed first half Mauro Icardi prodded Inter ahead just before the 20-minute mark, only for Leonardo Pavoletti to restore parity.
Rodrigo Palacio finished a swift breakaway to put Inter back in front, but again Genoa responded when Maxime Lestienne — who had earlier rattled the crossbar — capitalized on a defensive mix-up.
The second half was just as exciting and the woodwork denied Hernanes and Marcelo Brozovic a winner for Inter in the same attack, and there was worse to come when Kucka netted in the 89th minute as Genoa climbed to fifth.
In a high-octane start Samir Handanovic kept the scores level with a stunning save when he flung himself to the right to keep out Lestienne's point-blank header on the goal line.
Having survived that scare, Inter made the breakthrough in the 19th minute. Icardi's header from Hernanes' cross hit Edenilson on the back and the striker pounced quickest to prod past Mattia Perin.
The lead lasted just five minutes, though, as Pavoletti turned Andrea Ranocchia on the edge of the box and rifled an unstoppable half-volley past Handanovic.
Inter was back in front on the half-hour as Palacio collected Icardi's flick and calmly slotted past Perin when one-on-one to finish a lightning counterattack.
The pulsating action continued as Pavoletti crashed a fierce volley against the crossbar, before Icardi twice had the ball in the back of the net only to be rightfully denied for offside on both occasions.
Genoa made the visitors pay with an equalizer four minutes before halftime as Handanovic and Ranocchia got their wires crossed when dealing with a through ball and Lestienne slotted into the empty net.
The hosts piled forward at the start of the second half and Pavoletti had claims for a penalty turned down when he went to ground under a challenge from Juan Jesus.
Handanovic made another fine stop to deny Andrea Bertolacci's long-range effort, before Nicolas Burdisso headed narrowly wide of the right-hand post from Lestienne's corner with under 20 minutes remaining.
Inter was then visibly frustrated as Hernanes' low drive rebounded off the left-hand post and Brozovic curled the follow-up against the bar.
Hernanes and Icardi both missed chances as Inter pushed for winner, and Kucka dealt the sucker punch when he leapt highest to meet Edenilson's free kick a minute from time.
There was almost one last twist when Icardi appealed for a penalty in injury time when he went tumbling from Burdisso's challenge, but referee Paolo Tagliavento was uninterested.