Inter Milan have beaten Roma 1-0 to move back to within two points of Serie A leaders Napoli, who had earlier beaten Empoli 1-0.