Trying to find an explainer for the Serie A tiebreakers as they are a bit confusing.
I think Atalanta, Napoli and Milan beat Juve on the head to head, but if Juve win their last game they sneak in if Milan or Napoli don't win.
Pathetic of Milan not to beat Cagliari at home, they'd have been confirmed top 4. Now they'll probably have to win away at Atalanta. Atalanta may not be that up for it though after a cup final in midweek and if they lose to Juve, they'll be less keen to do them a favour, perhaps.
Atalanta/Inter also have a friendly relationship with the fans IIRC. However, Inter would probably prefer Juve miss out.