San Marino is one of the world’s smallest countries and Europe’s oldest surviving republic, perched on a mountaintop above the Italian countryside. Our guide covers its medieval towers, walls and old town, and how to fit a visit into a trip through northern Italy.