{"id":3077,"date":"2025-11-05T06:47:14","date_gmt":"2025-11-05T06:47:14","guid":{"rendered":"https:\/\/camminodeibriganti.app\/map\/"},"modified":"2025-12-19T14:42:49","modified_gmt":"2025-12-19T14:42:49","slug":"map","status":"publish","type":"page","link":"https:\/\/camminodeibriganti.app\/en\/map\/","title":{"rendered":"Map"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3077\" class=\"elementor elementor-3077\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-64f47ee e-con-full e-flex e-con e-parent\" data-id=\"64f47ee\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-064024a e-flex e-con-boxed e-con e-child\" data-id=\"064024a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-74bbae2 elementor-widget elementor-widget-shortcode\" data-id=\"74bbae2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet\/dist\/leaflet.css\" \/>\n\t<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet.fullscreen@1.6.0\/Control.FullScreen.css\" \/>\n\t<script src=\"https:\/\/unpkg.com\/leaflet\/dist\/leaflet.js\"><\/script>\n\t<script src=\"https:\/\/unpkg.com\/leaflet.fullscreen@1.6.0\/Control.FullScreen.js\"><\/script>\n\t<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/leaflet-gpx\/1.5.0\/gpx.min.js\"><\/script>\n\n\t<button id=\"toggle-legend\" class=\"mobile-only\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/2025\/12\/ico_filtri_2.png\" width=\"20\"><\/button>\n\t<button id=\"geolocate-button\" class=\"mobile-only\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/2025\/07\/icon-segnaposto.png\" width=\"20\"><\/button>\n\t<!--div id=\"zoom-label\">Ingrandisci per visualizzare gli itinerari locali<\/div-->\n\n\t<!-- Box filtro visibile sempre su desktop e apribile da mobile -->\n\t<div id=\"map-legend\" class=\"leaflet-gpx-legend collapsible\">\n\t  <div class=\"titleFiltroMappa\">Filter:<\/div>\n\t  <!--label for=\"filtro-piedi\"><input type=\"checkbox\" id=\"filtro-piedi\" name=\"filtro-piedi\" value=\"piedi\" class=\"filtro-checkbox\" checked> A piedi<\/label><br>\n\t  <label for=\"filtro-bici\"><input type=\"checkbox\" id=\"filtro-bici\" name=\"filtro-bici\" value=\"bici\" class=\"filtro-checkbox\" checked> In bici<\/label-->\n\t\t<label class=\"filtro-opzione\">\n\t\t  <input type=\"checkbox\" id=\"filtro-piedi\" name=\"filtro-piedi\" value=\"piedi\" class=\"filtro-checkbox\" checked>\n\t\t  On foot&nbsp;<span class=\"color-line\" style=\"background-color: #1D6B9B;\"><\/span> <!-- Itinerari a piedi -->\n\t\t<\/label>\n\t\t<label class=\"filtro-opzione\">\n\t\t  <input type=\"checkbox\" id=\"filtro-bici\" name=\"filtro-bici\" value=\"bici\" class=\"filtro-checkbox\" checked>\n\t\t  By bicycle&nbsp;<span class=\"color-line\" style=\"background-color: #b12944;\"><\/span> <!-- Itinerari in bici -->\n\t\t<\/label>\n\t\t<label class=\"filtro-opzione\">\n\t\t  <input type=\"checkbox\" id=\"filtro-poi\" name=\"filtro-poi\" value=\"poi\" class=\"filtro-checkbox\"> <!-- Attrattive -->\n\t\t  Points of interest\t\t<\/label>\n\t\t<label class=\"filtro-opzione\">\n\t\t  <input type=\"checkbox\" id=\"filtro-strutture\" name=\"filtro-strutture\" value=\"strutture\" class=\"filtro-checkbox\"> <!-- Alloggi -->\n\t\t  Accomodations\t\t<\/label>\n\t\t<label class=\"filtro-opzione\">\n\t\t  <input type=\"checkbox\" id=\"filtro-fontane\" name=\"filtro-fontane\" value=\"fontane\" class=\"filtro-checkbox\"> <!-- Fontanelle -->\n\t\t  Fountains\t\t<\/label>\n\t<\/div>\n\t\t\n\t<div id=\"map-loader\" class=\"map-loader\">Caricamento in corso\u2026<\/div>\n\t<div id=\"mapBici\" style=\"height: 600px\"><\/div>\n\n\t<script>\n\tconst gpxLayers = {};\n\tconst originalColors = {};\n\tconst layerCategories = {};\n\tconst poiLayers = {};\n\tconst strutLayers = {};\n\tconst fontanaLayers = {};\n\tconst boundsGroup = L.latLngBounds();\n\tlet loadedCount = 0;\n\tlet expectedCount = 0;\n\tlet initialBoundsCoords = [];\n\n\tconst map = L.map('mapBici', {\n\t  fullscreenControl: true,\n\t  fullscreenControlOptions: {\n\t\tposition: 'topright'\n\t  },\n\t  scrollWheelZoom: false\n\t}).setView([42.5, 12.5], 5);\n\t\/\/L.tileLayer('https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png').addTo(map);\n\tL.tileLayer('https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png', {\n\t\tmaxZoom: 19,\n\t\tattribution: '&copy; <a href=\"https:\/\/www.openstreetmap.org\/copyright\">OpenStreetMap<\/a>'\n\t}).addTo(map);\n\n\t\/\/ Geolocalizzazione da mobile con marker se subito disponibile\n\tif (window.innerWidth <= 768 && navigator.geolocation) {\n\t  navigator.geolocation.getCurrentPosition(function(position) {\n\t\tconst lat = position.coords.latitude;\n\t\tconst lng = position.coords.longitude;\n\t\tconst userMarker = L.circleMarker([lat, lng], {\n\t\t  radius: 6,\n\t\t  fillColor: '#3388ff',\n\t\t  color: '#fff',\n\t\t  weight: 2,\n\t\t  opacity: 1,\n\t\t  fillOpacity: 0.8\n\t\t}).addTo(map).bindPopup(\"Sei qui\");\n\t  });\n\t}\n\n\t\/\/ Pulsante \"\ud83d\udccd La mia posizione\"\n\tdocument.getElementById('geolocate-button').addEventListener('click', function () {\n\t  if (navigator.geolocation) {\n\t\tnavigator.geolocation.getCurrentPosition(function (position) {\n\t\t  const lat = position.coords.latitude;\n\t\t  const lng = position.coords.longitude;\n\t\t  const userMarker = L.circleMarker([lat, lng], {\n\t\t\tradius: 6,\n\t\t\tfillColor: '#3388ff',\n\t\t\tcolor: '#fff',\n\t\t\tweight: 2,\n\t\t\topacity: 1,\n\t\t\tfillOpacity: 0.8\n\t\t  }).addTo(map).bindPopup(\"Sei qui\").openPopup();\n\t\t  map.setView([lat, lng], 10);\n\t\t});\n\t  } else {\n\t\talert(\"Geolocalizzazione non supportata dal browser.\");\n\t  }\n\t});\n\t\tdocument.getElementById('map-loader').classList.remove('hidden');\n\t\t\n\tfunction setupFiltroMezzo() {\n\t  const checkboxes = document.querySelectorAll('.filtro-checkbox');\n\t  function aggiornaFiltro() {\n\t\tconst selected = Array.from(checkboxes)\n\t\t  .filter(cb => cb.checked)\n\t\t  .map(cb => cb.value);\n\t\tObject.entries(gpxLayers).forEach(([name, layer]) => {\n\t\t  const cat = layerCategories[name];\n\t\t  if (selected.includes(cat)) {\n\t\t\tif (!map.hasLayer(layer)) map.addLayer(layer);\n\t\t  } else {\n\t\t\tif (map.hasLayer(layer)) map.removeLayer(layer);\n\t\t  }\n\t\t});\n\t\t  \n\t\t\/\/ --- POI (categoria \"poi\")\n        Object.entries(poiLayers).forEach(([name, marker]) => {\n            if (selected.includes(\"poi\")) {\n                if (!map.hasLayer(marker)) map.addLayer(marker);\n            } else {\n                if (map.hasLayer(marker)) map.removeLayer(marker);\n            }\n        });\n\t\t\/\/ --- Strutture\n        Object.entries(strutLayers).forEach(([name, marker]) => {\n            if (selected.includes(\"strutture\")) {\n                if (!map.hasLayer(marker)) map.addLayer(marker);\n            } else {\n                if (map.hasLayer(marker)) map.removeLayer(marker);\n            }\n        });\n\t\t\/\/ --- FONTANE\n        Object.entries(fontanaLayers).forEach(([name, marker]) => {\n            if (selected.includes(\"fontane\")) {\n                if (!map.hasLayer(marker)) map.addLayer(marker);\n            } else {\n                if (map.hasLayer(marker)) map.removeLayer(marker);\n            }\n        });\n\t  }\n\t  checkboxes.forEach(cb => cb.addEventListener('change', aggiornaFiltro));\n\t  aggiornaFiltro();\n\t}\n\t<\/script>\n\n\t<script>expectedCount = 17;<\/script>\t<script>\n\t(function() {\n\t  const title = \"Stage 5 \\u2013 MTB \\u2013 Camporotondo \\u2013 Sante Marie\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/5-Camporotondo-\\u2013-Sante-Marie.gpx\";\n\t  const color = \"#b12944\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-5-mtb-camporotondo-sante-marie\\\/\";\n\t  const category = \"bici\";\n\t  const descrizione = \"<p>Fifth stage of the Cammino dei Briganti mountain bike trail.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 4 \\u2013 MTB \\u2013 Casale Le Crete \\u2013 Camporotondo\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-Casale-Le-Crete-\\u2013-Camporotondo.gpx\";\n\t  const color = \"#b12944\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-4-mtb-casale-le-crete-camporotondo\\\/\";\n\t  const category = \"bici\";\n\t  const descrizione = \"<p>Fourth stage of the Cammino dei Briganti mountain bike trail.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 3 &#8211; MTB &#8211; Rosciolo \\u2013 Casale Le Crete\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/3-Rosciolo-\\u2013-Casale-Le-Crete.gpx\";\n\t  const color = \"#b12944\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-3-mtb-rosciolo-casale-le-crete\\\/\";\n\t  const category = \"bici\";\n\t  const descrizione = \"<p>Third stage of the Cammino dei Briganti mountain bike trail.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 2 &#8211; MTB &#8211; Sant\\u2019Elpidio \\u2013 Rosciolo\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/2-SantElpidio-\\u2013-Rosciolo.gpx\";\n\t  const color = \"#b12944\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-2-mtb-santelpidio-rosciolo\\\/\";\n\t  const category = \"bici\";\n\t  const descrizione = \"<p>Second stage of the MTB &#8220;Cammino dei Briganti&#8221; trail.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Tappa 1 &#8211; MTB &#8211; Sante Marie \\u2013 Sant\\u2019Elpidio\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/1-Sante-Marie-\\u2013-SantElpidio.gpx\";\n\t  const color = \"#b12944\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/tappa-1-mtb-sante-marie-santelpidio\\\/\";\n\t  const category = \"bici\";\n\t  const descrizione = \"<p>First stage of the Cammino dei Briganti mountain bike trail.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 4 &#8211; Loop Route from Cartore\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/4-anello-Cartore-\\u2013-val-di-Fua-\\u2013-Duchessa-\\u2013-val-di-Teve.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-4-loop-route-from-cartore\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>There are <strong>two <\\\/strong><strong>options<\\\/strong>: a shorter one of 12 km (ascending from Val di Fua and descending via Prati di San Leonardo) and a 17-km route (through Val di Teve), which involves much greater elevation gain and is intended only for experienced hikers. Both options are described in detail in the book.<\\\/p>\\n<p><strong>Third option<\\\/strong> (not described in the guide): From Cartore, you can take a detour off the trail, climbing Mount Velino (2,489 m), spending the night at the Sebastiani Mountain Hut, and returning via a different trail to Santa Maria in Valle\\u2014a two-day hike. This summer route is for highly fit hikers who are well-prepared to navigate difficult, poorly marked trails. The terrain is high-mountain, rugged, and exposed. For this route, you must have a topographic map of Mount Velino and follow the trails carefully, taking care not to lose your way.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 7: Casale Le Crete \\u2013 Sante Marie\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-7-Casale-Le-Crete-\\u2013-Sante-Marie.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-7-casale-le-crete-sante-marie\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>From Le Crete, you\\u2019ll walk along scenic dirt roads to San Donato, climb up to the ruins of an ancient castle, and then descend to Scanzano and on to Tubione and Sante Marie via small roads and trails. You can pick up your certificate!<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 6: Massa d\\u2019Albe \\u2013 Magliano \\u2013 Casale Le Crete\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-6-Massa-dAlbe-\\u2013-Magliano-\\u2013-Casale-Le-Crete.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-6-massa-dalbe-magliano-casale-le-crete\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>From Massa d\\u2019Albe, the route climbs to Alba Fucens (8.5 km), which is worth a visit. Then head down to Magliano de\\u2019 Marsi, the largest and best-stocked town along the route. Continue on to Scurcola (or, via the alternate route, to Sorbo), until you reach the village of Le Crete (where you\\u2019ll find the Casale Le Crete B&#038;B and the Gargano farm campground).<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 4 &#8211; Long route via Val di Teve\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/variante_val_di_teve.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-4-long-route-via-val-di-teve\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>Once you reach Lago della Duchessa, the trail climbs further to 2,100 meters, then descends to Malopasso and Capo di Teve. Follow the entire beautiful Val di Teve until you exit the valley. If you turn right, you\\u2019ll reach Cartore in about one kilometer. If you\\u2019d like to extend the route by another 8 km, making this stage 29 km long (note: it\\u2019s very long), you can go directly to Rosciolo.<\\\/p>\\n<ul>\\n<li><strong>21.1 km<\\\/strong><\\\/li>\\n<li><strong>Elevation gain: 1,280 m<\\\/strong><\\\/li>\\n<li><strong>Elevation loss: 1,200 m<\\\/strong><\\\/li>\\n<\\\/ul>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 4: Corvaro \\u2013 Cartore\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-4-Corvaro-\\u2013-Cartore.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-4-corvaro-cartore\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>From Corvaro, leave the village and take the trail that climbs to Lake Duchessa along a beautiful path through a beech forest\\u2014an easy hike, very wild but well-marked\\u2014until you reach Lake Duchessa. From here, you can descend to the valley within the day\\u2014either to Cartore (via Prati di San Leonardo or Val di Fua) or to Rosciolo (via Val di Teve).<\\\/p>\\n<h2><strong>Long route, passing through the Val di Teve<\\\/strong><\\\/h2>\\n<ul>\\n<li><strong>21.1 km<\\\/strong><\\\/li>\\n<li><strong>Elevation gain: 1,280 m<\\\/strong><\\\/li>\\n<li><strong>Elevation loss: 1,200 m<\\\/strong><\\\/li>\\n<\\\/ul>\\n<p>Once you reach Lago della Duchessa, continue climbing to 2,100 meters, then descend to Malopasso and Capo di Teve. Follow the entire beautiful Val di Teve until you exit the valley. If you turn right, you\\u2019ll reach Cartore in about one kilometer. If you\\u2019d like to extend the route by another 8 km, making this stage 29 km long (note: it\\u2019s very long), you can go directly to Rosciolo.<\\\/p>\\n<h2><strong>Loop Route from Cartore<\\\/strong><\\\/h2>\\n<p>There are <strong>two <\\\/strong><strong>options<\\\/strong>: a shorter one of 12 km (ascending from Val di Fua and descending via Prati di San Leonardo) and a 17-km route (through Val di Teve), which involves much greater elevation gain and is intended only for experienced hikers. Both options are described in detail in the book.<\\\/p>\\n<p><strong>Third option<\\\/strong> (not described in the guide): From Cartore, you can take a detour off the trail, climbing Mount Velino (2,489 m), spending the night at the Sebastiani Mountain Hut, and returning via a different trail to Santa Maria in Valle\\u2014a two-day hike. This summer route is for highly fit hikers who are well-prepared to navigate difficult, poorly marked trails. The terrain is high-mountain, rugged, and exposed. For this route, you must have a topographic map of Mount Velino and follow the trails carefully, taking care not to lose your way.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 5: Cartore \\u2013 Rosciolo \\u2013 Massa d\\u2019Albe\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-5-Cartore-\\u2013-Rosciolo-\\u2013-Massa-dAlbe-1.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-5-cartore-rosciolo-massa-dalbe\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<div class=\\\"excerpt\\\">\\n<p>From Cartore, the route climbs to the Le Forche Pass, below Mount Velino, and descends to Santa Maria in Valle Porclaneta, another place steeped in charm, including a magnificent Romanesque church, a 10th-century masterpiece of art.<\\\/p>\\n<\\\/div>\\n<div class=\\\"map\\\">\\n<div id=\\\"map\\\" class=\\\"mapboxgl-map\\\">\\n<div class=\\\"mapboxgl-canary\\\">Next is the picturesque medieval village of Rosciolo (8.5 km), an ideal place to stop if you\\u2019re looking for a more leisurely day (there are cozy accommodations and restaurants). If you continue on, you\\u2019ll enter a beautiful, uphill gorge until you reach the foot of Mount Velino once again, and then descend to Massa d\\u2019Albe.<\\\/div>\\n<div class=\\\"mapboxgl-control-container\\\">\\n<div class=\\\"mapboxgl-ctrl-top-left\\\"><\\\/div>\\n<div class=\\\"mapboxgl-ctrl-top\\\"><\\\/div>\\n<div class=\\\"mapboxgl-ctrl-top-right\\\">\\n<div class=\\\"mapboxgl-ctrl mapboxgl-ctrl-group\\\"><\\\/div>\\n<\\\/div>\\n<\\\/div>\\n<\\\/div>\\n<\\\/div>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 3 &#8211; Grotti-Torano-Spedino Route\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/variante_grotti_torano_spedino.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-3-grotti-torano-spedino-route\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>Ideal for those who want to stay in Grotti or Torano, and for those who want to avoid the mountains, especially when it&#8217;s muddy.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 3 &#8211; Cartore Detour\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/variante_spedino_cartore.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-3-cartore-detour\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>A detour that follows the old route of the trail, suitable for those who want to shorten the journey.<\\\/p>\\n<p>The detour begins in Spedino, from where you descend to the valley floor, pass under the highway, and follow the trail to the beautiful village of Cartore, once home to a famous band of brigands.<br \\\/>\\nOvernight stay in the charming village of Cartore, with accommodations and a restaurant.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 2 &#8211; Poggiovalle Bypass\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/variante_poggiovalle.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-2-poggiovalle-bypass\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>The official trail stays at a high elevation on the mountain, offering panoramic views along the way to Nesce. The alternate route, on the other hand, branches off to descend to the valley floor as far as the village of Poggiovalle (once known as a bandit stronghold) before rejoining the trail to Nesce.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 2: Santo Stefano \\u2013 Nesce\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-2-Santo-Stefano-\\u2013-Nesce.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-2-santo-stefano-nesce\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>You\\u2019ll arrive in the charming medieval village of Nesce, where you can stay at a B&#038;B or a tourist lodging. You can also stay overnight in Valdevarri in private homes with a home-cooked dinner; simple rooms are available at<\\\/p>\\n<p>. You\\u2019ll enter Val de Varri, the least touristy valley on this trip\\u2014just think, the road running through it was paved only a few years ago. From Val de Varri, you cross over and enter the Valle del Salto, passing over a small mountain; here, the main trail stays at a higher elevation, while a side trail descends to the village of Poggiovalle (once a haven for bandits\\u2014some famous bandits came from here). But we\\u2019ve chosen to stay on the mountain for our main route, following a beautiful scenic trail that leads directly to Nesce.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 3: Nesce \\u2013 Corvaro\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-3-Nesce-\\u2013-Corvaro.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-3-nesce-corvaro\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>You follow the Salto River downstream, walking alongside it for a stretch. Then you pass beneath Monte Rose on your way to Spedino, and from there you turn left, following the red-and-white markers, and descend through the woods to Corvaro. Here you can stay either in a lodging facility or in a tent, and there are various dining options (pizzerias, pubs, restaurants).<\\\/p>\\n<p>Alternative Route to Cartore (from Spedino): an alternative route that follows the old trail, suitable for those who want to shorten the journey.<\\\/p>\\n<p>Alternative Route to Grotti \\u2013 Torano \\u2013 Spedino: suitable for those who want to stay overnight in Grotti or Torano, and for those who want to avoid the mountain, especially when the trail is muddy.<\\\/p>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t  const title = \"Stage 1: Sainte-Marie \\u2013 Santo Stefano\";\n\t  const url = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Tappa-1-Sante-Marie-\\u2013-Santo-Stefano.gpx\";\n\t  const color = \"#1D6B9B\";\n\t  const link = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/itinerario\\\/stage-1-sainte-marie-santo-stefano\\\/\";\n\t  const category = \"piedi\";\n\t  const descrizione = \"<p>The first leg of the Cammino dei Briganti is short, so that even those coming from far away can start walking in the early afternoon, after their journey to the starting point.<\\\/p>\\n<article>You can reach <strong>Sante Marie<\\\/strong> (850 m) by train (get off at Tagliacozzo, then take the bus) or by car. After picking up your pass at the Town Hall (have it stamped along the route to receive your final certificate), begin walking through the historic center, following the red-and-white markers.<\\\/article>\\n\";\n\t\t\n\t  var weightTrace = 4;\n\t  if (window.innerWidth <= 768){\n\t  \t  var weightTrace = 4;\n\t  }\n\t  const layer = new L.GPX(url, {\n\t\tasync: true,\n\t\tpolyline_options: {\n\t\t  color: color,\n\t\t  weight: weightTrace,\n\t\t  opacity: 0.9\n\t\t},\n\t\tmarker_options: {\n\t\t  startIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  endIcon: new L.Icon({ iconUrl: 'img.jpg', iconSize: [0, 0] }),\n\t\t  shadowUrl: ''\n\t\t}\n\t  });\n\n\t  layer.on('loaded', function(e) {\n\t\tconst bounds = e.target.getBounds();\n\t\tboundsGroup.extend(bounds);\n\t\tinitialBoundsCoords.push(bounds);\n\t\tgpxLayers[title] = layer;\n\t\toriginalColors[title] = color;\n\t\tlayerCategories[title] = category;\n\t\tlayer.bindPopup('<strong>'+title+'<\/strong><br><em>'+descrizione+'<\/em><br><a href=\"'+link+'\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\tloadedCount++;\n\t\t  \n\t\tif (loadedCount === expectedCount && initialBoundsCoords.length > 0) {\n\t\t\tmap.invalidateSize();\n\t\t  \tconst combinedBounds = initialBoundsCoords.reduce((acc, b) => acc.extend(b), L.latLngBounds());\n\t\t  \tmap.fitBounds(combinedBounds);\n\t\t  \tmap._initialBounds = combinedBounds;\n\t\t    setupFiltroMezzo();\n\t\t  \tdocument.getElementById('map-loader').classList.add('hidden');\n\t\t}\n\t  });\n\t\t\n\t\tlet activeLayer = null;\n\tlayer.on('mouseover', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tl.setStyle({\n\t\t\t\tcolor: '#E9782B',\n\t\t\t\tweight: 5,\n\t\t\t\topacity: 1\n\t\t\t});\n\t\t\t\/\/e.target.openPopup(e.latlng);\n\t\t}\n\t});\n\n\tlayer.on('mouseout', function(e) {\n\t\tconst l = e.target;\n\t\tif (l !== activeLayer) {\n\t\t\tconst title = Object.keys(gpxLayers).find(key => gpxLayers[key] === l);\n\t\t\tconst originalColor = originalColors[title] || '#b12944';\n\t\t\tl.setStyle({\n\t\t\t\tcolor: originalColor,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t});\n\t\t\t\/\/e.target.closePopup();\n\t\t}\n\t});\n\t\t\n\t\tlayer.on('click', function(e) {\n\t\t  const clicked = e.target;\n\n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\t\/*\n\t\t  \/\/ Ripristina la traccia attiva precedente, se esiste\n\t\t  if (activeLayer && activeLayer !== clicked) {\n\t\t\tconst prevTitle = Object.keys(gpxLayers).find(key => gpxLayers[key] === activeLayer);\n\t\t\tconst prevColor = originalColors[prevTitle] || '#3388ff';\n\t\t\tactiveLayer.setStyle({\n\t\t\t  color: prevColor,\n\t\t\t  weight: 4,\n\t\t\t  opacity: 0.9\n\t\t\t});\n\n\t\t  }\n\n\t\t  \/\/ Imposta come nuova traccia attiva\n\t\t  activeLayer = clicked;\n\t\t  *\/\n\t\t  clicked.setStyle({\n\t\t\tcolor: '#ffcc00',\n\t\t\tweight: 6,\n\t\t\topacity: 1\n\t\t  });\n\n\t\t  \/\/ \ud83d\udc49 Apri manualmente il popup\n\t\t\te.target.openPopup(e.latlng);\n  \t\t\tactiveLayer = clicked;\n\t\t});\n\t\t\n\t  layer.addTo(map);\n\t\tmap.on('click', function(e) {\n\t\t  const { latlng } = e;\n\n\t\t  \/\/ Se il click NON \u00e8 avvenuto su un layer GPX\n\t\t  \/*\n\t\t  let clickedOnLayer = false;\n\t\t  map.eachLayer(function(l) {\n\t\t\tif (l instanceof L.Polyline && l !== activeLayer && l.getBounds().contains(latlng)) {\n\t\t\t  clickedOnLayer = true;\n\t\t\t}\n\t\t  });\n*\/\n\t\t  \/\/if (!clickedOnLayer) {\n\t\t\t\/\/ Ripristina stili \n\t\t\tObject.entries(gpxLayers).forEach(([name, l]) => {\n\t\t\t  const original = originalColors[name] || '#b12944';\n\t\t\t  l.setStyle({\n\t\t\t\tcolor: original,\n\t\t\t\tweight: weightTrace,\n\t\t\t\topacity: 0.9\n\t\t\t  });\n\t\t\t  l.closePopup();\n\t\t\t});\n\t\t\tactiveLayer = null;\n\t\t  \/\/}\n\t\t});\n\t\t\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.137276;\n\t\tconst lon      = 13.3361298;\n\t\tconst title    = \"Church of Santa Maria in Valle Porclaneta\";\n\t\tconst link_poi = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/point-of-interest\\\/church-of-santa-maria-in-valle-porclaneta\\\/\";\n\t\tconst categoria = \"historic-buildings\";\n    \tconst iconaUrl  = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/centro-statico.png\";\n\n\n\t\tconst poiIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: poiIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_poi + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tpoiLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0799152;\n\t\tconst lon      = 13.4112405;\n\t\tconst title    = \"Alba Fucens\";\n\t\tconst link_poi = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/point-of-interest\\\/alba-fucens\\\/\";\n\t\tconst categoria = \"historic-buildings\";\n    \tconst iconaUrl  = \"https:\\\/\\\/camminodeibriganti.app\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/centro-statico.png\";\n\n\n\t\tconst poiIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: poiIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_poi + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tpoiLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0590225;\n\t\tconst lon      = 13.3074471;\n\t\tconst title    = \"Dante&#8217;s Orchard Tent Area\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/dantes-orchard-tent-area\\\/\";\n\t\tconst categoria = \"spartan\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0960277;\n\t\tconst lon      = 13.3543701;\n\t\tconst title    = \"Il Timo Farmstay, Restaurant, and Campground\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/il-timo-farmstay-restaurant-and-campground\\\/\";\n\t\tconst categoria = \"spartan\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1633483;\n\t\tconst lon      = 13.3145014;\n\t\tconst title    = \"The Brigand&#8217;s Stop\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/the-brigands-stop\\\/\";\n\t\tconst categoria = \"spartan\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1256189;\n\t\tconst lon      = 13.2219658;\n\t\tconst title    = \"Le Macerine Farm&#8217;s Tent Area\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/le-macerine-farms-tent-area\\\/\";\n\t\tconst categoria = \"spartan\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.070586;\n\t\tconst lon      = 13.2587629;\n\t\tconst title    = \"B&#038;B La casa a colori\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-la-casa-a-colori\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0890493;\n\t\tconst lon      = 13.2364108;\n\t\tconst title    = \"B&#038;B Relais Borgo Poggetello\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-relais-borgo-poggetello\\\/\";\n\t\tconst categoria = \"hospitaliera\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1033736;\n\t\tconst lon      = 13.2508585;\n\t\tconst title    = \"La casa dei nonni Guesthouse\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-casa-dei-nonni-guesthouse\\\/\";\n\t\tconst categoria = \"hospitaliera\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0950609;\n\t\tconst lon      = 13.2779778;\n\t\tconst title    = \"B&#038;B At Giulia&#8217;s House\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-at-giulias-house\\\/\";\n\t\tconst categoria = \"hospitaliera\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0568163;\n\t\tconst lon      = 13.3070956;\n\t\tconst title    = \"Casale Le Crete Organic Bed &#038; Breakfast\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/casale-le-crete-organic-bed-breakfast\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0572542;\n\t\tconst lon      = 13.3199311;\n\t\tconst title    = \"Le Piagge Farmstay B&#038;B\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/le-piagge-farmstay-bb\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0663803;\n\t\tconst lon      = 13.3406127;\n\t\tconst title    = \"Enchanted Inn\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/enchanted-inn\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.094993;\n\t\tconst lon      = 13.36329;\n\t\tconst title    = \"B&#038;B Valle Gio\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-valle-gio\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.0782621;\n\t\tconst lon      = 13.3832576;\n\t\tconst title    = \"La Terra di Gaia Farmstay and Farm Campground\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-terra-di-gaia-farmstay-and-farm-campground\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1079437;\n\t\tconst lon      = 13.3949391;\n\t\tconst title    = \"B&#038;B At Grandma&#8217;s House\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-at-grandmas-house\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1171912;\n\t\tconst lon      = 13.3396274;\n\t\tconst title    = \"La Citavella B&#038;B\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-citavella-bb\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1163445;\n\t\tconst lon      = 13.339819;\n\t\tconst title    = \"B&#038;B La Residenza\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bb-la-residenza\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.2060454;\n\t\tconst lon      = 13.265922;\n\t\tconst title    = \"CasalColle B&#038;B\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/casalcolle-bb\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.2064087;\n\t\tconst lon      = 13.2673936;\n\t\tconst title    = \"Accommodations at Fontanile\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/accommodations-at-fontanile\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.142505;\n\t\tconst lon      = 13.260607;\n\t\tconst title    = \"Dimora la Nembe B&#038;B\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/dimora-la-nembe-bb\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.155443;\n\t\tconst lon      = 13.2175168;\n\t\tconst title    = \"Private Home\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/private-home\\\/\";\n\t\tconst categoria = \"hospitaliera\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.103034;\n\t\tconst lon      = 13.2027933;\n\t\tconst title    = \"Bed and Breakfast: At Lucy&#8217;s House\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/bed-and-breakfast-at-lucys-house\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1018464;\n\t\tconst lon      = 13.2054494;\n\t\tconst title    = \"Hostel at the Castle\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/hostel-at-the-castle\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1035107;\n\t\tconst lon      = 13.2028528;\n\t\tconst title    = \"Da Michelina B&#038;B\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/da-michelina-bb\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1206827;\n\t\tconst lon      = 13.2284543;\n\t\tconst title    = \"La Grande Quercia Farmstay\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-grande-quercia-farmstay\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1565402;\n\t\tconst lon      = 13.184548;\n\t\tconst title    = \"La Brigantessa Guesthouse\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-brigantessa-guesthouse\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1568555;\n\t\tconst lon      = 13.1850294;\n\t\tconst title    = \"Da Pippo Guesthouse\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/da-pippo-guesthouse\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1568555;\n\t\tconst lon      = 13.1850294;\n\t\tconst title    = \"Mimma&#8217;s House\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/mimmas-house\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1948833;\n\t\tconst lon      = 13.1768162;\n\t\tconst title    = \"Di Felice Tourist Accommodation\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/di-felice-tourist-accommodation\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1944843;\n\t\tconst lon      = 13.1779265;\n\t\tconst title    = \"La Casa della Fonte Bed &#038; Breakfast\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/la-casa-della-fonte-bed-breakfast\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<script>\n\t(function() {\n\t\tconst lat      = 42.1025834;\n\t\tconst lon      = 13.2013409;\n\t\tconst title    = \"Monte Bove Home\";\n\t\tconst link_strut = \"https:\\\/\\\/camminodeibriganti.app\\\/en\\\/strut-accoglienza\\\/monte-bove-home\\\/\";\n\t\tconst categoria = \"hospitality-industry\";\n    \tconst iconaUrl  = \"\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/poi-mappa.png\";\n\n\n\t\tconst strutIcon = L.icon({\n\t\t\ticonUrl: iconaUrl,\n\t\t\ticonSize: [28, 28],\n\t\t\ticonAnchor: [14, 28],\n\t\t\tpopupAnchor: [0, -30]\n\t\t});\n\n\t\tconst marker = L.marker([lat, lon], { icon: strutIcon }).bindPopup('<strong>' + title + '<\/strong><br><br><a href=\"' + link_strut + '\" target=\"_blank\">Vai alla scheda<\/a>');\n\t\t\n\t\t\/\/ Salviamo il marker\n\t\tstrutLayers[title] = marker;\n\t})();\n\t<\/script>\n\t\t<!--script src=\"\/wp-content\/themes\/theme-rz\/js\/mappa.js\" defer><\/script-->\n\t<script>\n\t\t\n\t\t\/\/ Layer per le fontane\nlet fontaneLayer = L.layerGroup().addTo(map);\n\n\/\/ Funzione per caricare le fontane nell'area visibile\nfunction caricaFontane() {\n    fontaneLayer.clearLayers();\n\n    const bbox = map.getBounds();\n    const query = `\n        [out:json][timeout:25];\n        (\n            node[\"amenity\"=\"drinking_water\"](${bbox.getSouth()},${bbox.getWest()},${bbox.getNorth()},${bbox.getEast()});\n        );\n        out;\n    `;\n\n    fetch(\"https:\/\/overpass-api.de\/api\/interpreter\", {\n        method: \"POST\",\n        body: query\n    })\n    .then(res => res.json())\n    .then(data => {\n        data.elements.forEach(el => {\n            if (el.lat && el.lon) {\n                L.marker([el.lat, el.lon], {\n                    icon: L.divIcon({\n                        className: \"icona-fontana\",\n                        html: \"\ud83d\udca7\",\n                        iconSize: [20, 20],\n                        iconAnchor: [10, 10]\n                    })\n                }).addTo(fontaneLayer);\n            }\n        });\n    });\n}\n\n\/\/ Carico le fontane al load e allo spostamento mappa\n\/\/map.on(\"moveend\", caricaFontane);\n\/\/caricaFontane();\n\n\t\t\n\tdocument.getElementById('toggle-legend').addEventListener('click', function() {\n\t  const legend = document.getElementById('map-legend');\n\t  legend.classList.toggle('collapsed');\n\t  this.classList.toggle('active'); \/\/ aggiungi\/togli classe \"active\" al bottone\n\t});\n\t\t\n\tmap.on('enterFullscreen', function(){\n\t\tconst btn = document.querySelector('.leaflet-control-zoom-fullscreen.fullscreen-icon');\n\t\tif (btn) {\n\t\t\tbtn.classList.add('exit-fullscreen');\n\t\t\tbtn.classList.remove('fullscreen');\n\t\t}\n\t});\n\n\tmap.on('exitFullscreen', function(){\n\t\tconst btn = document.querySelector('.leaflet-control-zoom-fullscreen.fullscreen-icon');\n\t\tif (btn) {\n\t\t\tbtn.classList.add('fullscreen');\n\t\t\tbtn.classList.remove('exit-fullscreen');\n\t\t}\n\t});\n\t\n\tmap.on('zoomend', function() {\n\t\tconst currentZoom = map.getZoom();\n\t\t\/\/caricaItinerariPerZoom(currentZoom);\n\t\tconst checkboxFontane = document.getElementById('filtro-fontane');\n\t\tif(currentZoom > 12){\n\t\t   \/\/document.getElementById('zoom-label').style.display = 'none';\n\t\t\tif (checkboxFontane) {\n\t\t\t\tcheckboxFontane.checked = true;\n\t\t\t}\n\t\t}else{\n\t\t   \/\/document.getElementById('zoom-label').style.display = 'flex';\n\t\t\tif (checkboxFontane) {\n\t\t\t\tcheckboxFontane.checked = false;\n\t\t\t}\n\t\t}\n\t\tsetupFiltroMezzo();\n\t});\n\n\t<\/script>\n\n\t<style>\n\t\t#mapBici{\n\t\t\theight: 500px;\n\t\t\tposition: relative;\n\t\t}\n\t\t.map-loader {\n\t\t  position: absolute;\n\t\t  top: 50%;\n\t\t  left: 50%;\n\t\t  transform: translate(-50%, -50%);\n\t\t  z-index: 1003;\n\t\t  background: rgba(255,255,255,0.9);\n\t\t  padding: 1em 1.5em;\n\t\t  border-radius: 5px;\n\t\t  font-size: 1.1em;\n\t\t}\n\t\t.hidden { display: none; }\n\t\t\n\t\t.titleFiltroMappa{\n\t\t\tfont-size: 21px;\n\t\t\tmargin-bottom:10px;\n\t\t}\n\t.leaflet-gpx-legend {\n\t  background: white;\n\t  padding: 8px;\n\t  border-radius: 4px;\n\t  box-shadow: 0 0 6px rgba(0,0,0,0.3);\n\t  max-height: 190px;\n\t  overflow-y: auto;\n\t  overflow-x: hidden;\n\t  width: 200px;\n\t  position: absolute;\n\t  top: 110px;\n\t  right: 10px;\n\t  z-index: 1001;\n\t  display: block;\n\t}\n\n\t.leaflet-gpx-legend.collapsible.collapsed {\n\t  display: none;\n\t}\n\t.mobile-only {\n\t  display: none;\n\t}\n\t\t#toggle-legend{\n  \t\t\tbackground: white;\n\t\t\ttop: 110px;\n\t\t\tpadding: 6px;\n\t\t\tline-height: 10px;\n\t\t\tborder-color: #777;\n\t\t}\n\t\t#toggle-legend.active {\n\t\t  background-color: #F29A5B;\n\t\t  color: white;\n\t\t  border: 1px solid #C0663B;\n\t\t}\n\t\t#geolocate-button {\n\t\t  position: absolute;\n\t\t\ttop: auto;\n\t\t  bottom: 10px;\n\t\t  right: 10px;\n\t\t  z-index: 1002;\n\t\t  background: white;\n\t\t  border: 1px solid #ccc;\n\t\t  padding: 8px 12px;\n\t\t  border-radius: 4px;\n\t\t  font-size: 16px;\n\t\t  cursor: pointer;\n\t\t  box-shadow: 0 0 6px rgba(0,0,0,0.3);\n\t\t\twidth: auto;\n\t\t  height: auto;\n\t\t  line-height: normal;\n\t\t}.filtro-opzione {\n\t\t  display: flex;\n\t\t  align-items: center;\n\t\t  margin-bottom: 8px;\n\t\t  font-size: 14px;\n\t\t  cursor: pointer;\n\t\t}\n\n\t\t.filtro-opzione input[type=\"checkbox\"] {\n\t\t  appearance: none;\n\t\t  width: 16px;\n\t\t  height: 16px;\n\t\t  border: 2px solid #999;\n\t\t  border-radius: 3px;\n\t\t  margin-right: 8px;\n\t\t  position: relative;\n\t\t  cursor: pointer;\n\t\t  background-color: white;\n\t\t  transition: background-color 0.2s, border-color 0.2s;\n\t\t}\n\n\t\t.filtro-opzione input[type=\"checkbox\"]:checked {\n\t\t  background-color: #333;\n\t\t  border-color: #333;\n\t\t}\n\n\t\t.filtro-opzione input[type=\"checkbox\"]::after {\n\t\t  content: \"\";\n\t\t  position: absolute;\n\t\t  top: 2px;\n\t\t  left: 5px;\n\t\t  width: 3px;\n\t\t  height: 8px;\n\t\t  border: solid white;\n\t\t  border-width: 0 2px 2px 0;\n\t\t  transform: rotate(45deg);\n\t\t  opacity: 0;\n\t\t}\n\n\t\t.filtro-opzione input[type=\"checkbox\"]:checked::after {\n\t\t  opacity: 1;\n\t\t}\n\n\t\t.color-line {\n\t\t  display: inline-block;\n\t\t  width: 20px;\n\t\t  height: 3px;\n\t\t  border-radius: 2px;\n\t\t  margin-right: 6px;\n\t\t}\n\t\t\t\n\t\t.leaflet-control-zoom-fullscreen.fullscreen-icon.fullscreen {\n\t\t\tbackground-image: url('https:\/\/unpkg.com\/leaflet.fullscreen@1.6.0\/icon-fullscreen-2x.png');\n\t\t\t\/*background-size: 18px 18px;*\/\n\t\t}\n\t\t.leaflet-control-zoom-fullscreen.fullscreen-icon.exit-fullscreen {\n\t\t\tbackground-image: url('https:\/\/slowitaly.tours\/wp-content\/uploads\/2025\/07\/icon_zoom-indietro.png');\n\t\t\tbackground-size: 18px 18px;\n\t\t}\n\t\t#zoom-label {\n\t\t\tposition: absolute;\n\t\t\tleft: 50px;\n    \t\ttop: 12px;\n\t\t\tz-index: 1002;\n\t\t\tbackground: white;\n\t\t\tcolor: #333;\n\t\t\tfont-size: 13px;\n\t\t\tpadding: 6px 10px;\n\t\t\tborder-radius: 4px;\n\t\t\tbox-shadow: 0 0 6px rgba(0,0,0,0.2);\n\t\t\tmax-width: 140px;\n\t\t\ttext-align: left;\n\t\t  }\n\t\t\n\t@media (max-width: 768px) {\n\t\t#map {\n\t\t\theight: 70vh;\n\t\t  }\n\t  .mobile-only {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 10px;\n\t\tright: 10px;\n\t\tz-index: 1002;\n\t  }\n\t  #geolocate-button {\n\t\tdisplay: block;\n\t  }\n\t\t.leaflet-gpx-legend{\n\t\t\ttop: 25%;\n\t\t\tright: 25%;\n\t\t\twidth: 50%;\n\t\t\tpadding: 15px;\n\t\t}\n\t  .leaflet-gpx-legend.collapsible {\n\t\tdisplay: none;\n\t  }\n\t  .leaflet-gpx-legend.collapsible.collapsed {\n\t\tdisplay: block!important;\n\t  }\n\t\t\n\t\t\n\t\t#toggle-legend{\n  \t\t\tbackground: white;\n\t\t\ttop: 110px;\n\t\t\tpadding: 6px;\n\t\t\tline-height: 10px;\n\t\t\tborder-color: #777;\n\t\t}\n\t\t#toggle-legend.active {\n\t\t  background-color: #F29A5B;\n\t\t  color: white;\n\t\t  border: 1px solid #C0663B;\n\t\t}\n\t\t\n\t  .leaflet-top.leaflet-left {\n\t\tleft: auto !important;\n\t\tright: 10px !important;\n\t  }\n\t  .leaflet-control {\n\t\tmargin-right: 10px !important;\n\t  }\n\t\t#zoom-label {\n\t\t\tright: 60px;\n        \ttop: 12px;\n        \tleft: auto;\n\t\t}\n\t  .leaflet-control-zoom,\n\t  .leaflet-control-zoom-fullscreen {\n\t\tbox-shadow: 0 0 6px rgba(0, 0, 0, 0.3);\n\t  }\n\t}\n\t<\/style>\n\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-3077","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/pages\/3077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/comments?post=3077"}],"version-history":[{"count":1,"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/pages\/3077\/revisions"}],"predecessor-version":[{"id":3078,"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/pages\/3077\/revisions\/3078"}],"wp:attachment":[{"href":"https:\/\/camminodeibriganti.app\/en\/wp-json\/wp\/v2\/media?parent=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}