The closest meaning would be: B. immoral
The word 'impious' is used to described certain behaviors that condemned by the majority of people because it crosses moral and ethical barriers that being held by a certain society. In Religious society, these actions are considered something that would ivite the 'wrath' of the God.