It’s as safe as most developing countries. Most cliche tourist spots, are heavily policed so it’s rather safe for tourist. Best recommendation I can give you is don’t stand out, don’t carry expensive jewelry or watches, don’t keep looking at your phone while in the streets. If you can pass as a native, there are several places that are better than the cliche like Rio. Beaches in the northeast are one of the best. If you want natural beauty, there is Mato Grosso or Minas Gerais for lakes, rivers, waterfalls or hiking. There is a city in mato gross literally called “bonito” which means pretty lol.