RIO DE JANEIRO — As Rio landmarks go, the bright yellow trams of Santa Teresa were one of the most visible in the Olympic city. For more than a century, they ferried tourists and residents up and down the steep hills from central Rio to the narrow, cobbled streets of this famous colonial neighborhood and the favelas above and around it.