Atalanta snatch five-goal thriller