San Marino is one of the world’s smallest and oldest republics, but, technically, it is not part of Italy.