AS Roma moved back up to second but had to come from behind to beat Atalanta 2-1 thanks to Francesco Totti's low freekick and Mancini's thumping strike.