Historic Totti inspires Roma victory