Brazil is a country of haves and have nothing.
The houses are gated for a reason
We had an office in Sao Paulo for a number of years. Spent a lot of time in Ipatinga and Santos (below) as well.
First time I had seen families (Squatters) living under "tin houses" right next to a high rise...