Pope Leo was visiting San Marino, the world’s oldest surviving republic.