Hearts hardened by ideology, ego leave no room for God, pope says