Sampdoria and Fiorentina scored precious away wins to maintain their hopes of European football next season as AC Milan saw their hopes of Champions League football dented by a shock 1-0 home loss to Atalanta.