There's a funicular on Monte Titano in San Marino, linking the old historical centre with Borgo Maggiore, one of the other castelli. Unfortunately, I neither got time to ride it or get a decent shot of it.