{"id":3895,"date":"2024-10-04T12:59:50","date_gmt":"2024-10-04T12:59:50","guid":{"rendered":"https:\/\/trekking.parcoforestecasentinesi.it\/track\/nature-trail-in-ridracoli-en\/"},"modified":"2025-02-13T15:22:57","modified_gmt":"2025-02-13T15:22:57","slug":"sentiero-natura-ridracoli","status":"publish","type":"track","link":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/","title":{"rendered":"Sentiero Natura Ridracoli"},"content":{"rendered":"\t\t\t<!-- Fallback featured image (same markup used by grid_track) -->\n\t\t<section class=\"wm_featured_image_page_header_fallback l-section wpb_row height_small with_img with_overlay wm_header_section\">\n\t\t\t<div class=\"l-section-img loaded wm-header-image\" style=\"background-image: url('https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/Resize\/1440x500\/16955_1440x500.jpg');\"><\/div>\n\t\t\t<div class=\"l-section-h i-cf wm_header_wrapper\"><\/div>\n\t\t<\/section>\n\t\t<div class=\"wm_content_wrapper\">\n\t\t<!-- 1. Featured Image -->\n\t\t\n\t\t<!-- 2. Title -->\n\t\t\t\t\t<h1 class=\"wm_title\">\n\t\t\t\tNature Trail in Ridracoli\t\t\t<\/h1>\n\t\t\n\t\t<!-- 2.5. Not Accessible Message -->\n\t\t\n\t\t<!-- 3. Taxonomies -->\n\t\t\t\t\t<div class=\"wm_taxonomies\">\n\t\t\t\t\t\t\t\t\t<span class=\"wm_taxonomy_item\">\n\t\t\t\t\t\t<span class=\"wm_taxonomy_name\">Trekking<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\n\t\t<!-- 4. Main content + optional sidebar (same layout as single_poi) -->\n\t\t\t\t\t<div class=\"wm_detail_with_sidebar\">\n\t\t\t\t<div class=\"wm_detail_main_content\">\n\t\t\t\t\n\t\t\t\t<!-- 4. Map -->\n\t\t\t\t\t\t\t\t\t<div class=\"wm_map\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tid=\"wm-leaflet-map-track-75553\"\n\t\t\t\t\t\t\tclass=\"wm_leaflet_map\"\n\t\t\t\t\t\t\tdata-geometry='{&quot;type&quot;:&quot;LineString&quot;,&quot;coordinates&quot;:[[11.83524,43.88361,462],[11.83521,43.88356,462],[11.83505,43.88343,462],[11.83482,43.88317,462],[11.83478,43.88311,462],[11.83481,43.88307,462],[11.83483,43.88307,462],[11.83476,43.88286,462],[11.83474,43.8827,490],[11.83475,43.88256,490],[11.83482,43.88244,490],[11.83483,43.88234,490],[11.83502,43.88224,490],[11.83508,43.88226,490],[11.83542,43.88205,490],[11.83558,43.88198,448],[11.83581,43.88181,458],[11.83622,43.88158,458],[11.83627,43.88146,458],[11.83624,43.88135,458],[11.83628,43.88098,458],[11.83626,43.88084,448],[11.83616,43.8807,448],[11.83555,43.8808,448],[11.83484,43.88079,453],[11.83454,43.88072,453],[11.83448,43.88073,453],[11.83438,43.88071,453],[11.83435,43.88067,453],[11.83416,43.88061,480],[11.8341,43.88051,480],[11.83392,43.8803,480],[11.83367,43.8798,471],[11.8337,43.87969,471],[11.83368,43.87962,471],[11.83371,43.87944,471],[11.83369,43.87936,471],[11.83367,43.87932,471],[11.83354,43.87919,457],[11.83316,43.87902,457],[11.83289,43.87893,457],[11.83275,43.87884,490],[11.83258,43.87879,490],[11.83256,43.87875,490],[11.83242,43.87867,490],[11.83228,43.87861,490],[11.83215,43.8786,490],[11.83201,43.87866,490],[11.83193,43.87877,490],[11.83183,43.87882,490],[11.83169,43.87884,490],[11.83139,43.87896,526],[11.83137,43.87902,526],[11.83115,43.87911,526],[11.83095,43.87914,526],[11.83089,43.87912,526],[11.83083,43.87904,526],[11.83084,43.87884,526],[11.8308,43.87875,526],[11.83056,43.8788,526],[11.83042,43.87878,526],[11.83033,43.87874,554],[11.83013,43.8785,554],[11.83012,43.87841,554],[11.83023,43.87827,516],[11.83024,43.8782,516],[11.83014,43.8782,516],[11.82989,43.87812,516],[11.82911,43.87827,520],[11.82897,43.87826,520],[11.8287,43.87834,520],[11.82854,43.87835,520],[11.82834,43.87839,587],[11.82811,43.87813,520],[11.82801,43.87808,520],[11.82784,43.87793,541],[11.82786,43.87788,541],[11.8278,43.87784,541],[11.82762,43.87786,541],[11.82758,43.87783,541],[11.82758,43.8778,541],[11.82755,43.8778,541],[11.82752,43.87777,541],[11.82743,43.87778,541],[11.82734,43.87772,541],[11.82723,43.87758,541],[11.82714,43.8775,520],[11.8271,43.87734,520],[11.82712,43.87732,520],[11.82714,43.8773,520],[11.8272,43.87728,520],[11.82735,43.87731,520],[11.82746,43.87729,520],[11.82755,43.87731,520],[11.82786,43.87718,512],[11.82798,43.87709,512],[11.82811,43.87705,512],[11.82818,43.87706,512],[11.82831,43.87711,512],[11.82841,43.87729,512],[11.82852,43.87735,512],[11.82861,43.87733,512],[11.82929,43.87693,497],[11.82982,43.87676,497],[11.83001,43.87679,497],[11.83017,43.8769,497],[11.8303,43.87708,497],[11.83034,43.87723,495],[11.83041,43.87733,495],[11.8305,43.87735,495],[11.83093,43.87722,495],[11.83109,43.87725,495],[11.83183,43.87771,477],[11.83219,43.87791,477],[11.83269,43.87827,477],[11.83335,43.8783,457],[11.83336,43.87832,457],[11.83351,43.87857,457],[11.83368204,43.878565153,457],[11.833971176,43.878647678,457],[11.83431,43.87886,458],[11.8346,43.87891,458],[11.834813778,43.879069287,458],[11.834994274,43.879214307,450],[11.835162648,43.879452318,450],[11.835261519,43.879488734,450],[11.835400128,43.879447917,455],[11.835598473,43.879359272,455],[11.835776731,43.879326441,455],[11.835921746,43.879289949,455],[11.836046683,43.879265917,455],[11.83672,43.87924,461],[11.83679,43.87922,461],[11.83682,43.87925,461],[11.83718,43.8793,461],[11.83757,43.87922,461],[11.8378,43.87925,461],[11.83792,43.87929,483],[11.83785,43.87935,483],[11.83786,43.8794,483],[11.83794,43.87947,483],[11.83806,43.87961,483],[11.83819,43.87982,483],[11.83826,43.87999,483],[11.83827,43.88021,481],[11.83824,43.88049,481],[11.83827,43.88093,483],[11.8382,43.88096,483],[11.83798,43.88092,481],[11.8379,43.881,447],[11.83769,43.88127,447],[11.83758,43.88147,447],[11.83753,43.88162,447],[11.83751,43.88195,448],[11.83741,43.88242,448],[11.8373,43.88256,448],[11.83701,43.8827,448],[11.83651,43.88285,443],[11.83634,43.88293,443],[11.83626,43.88306,443],[11.83627,43.88314,443],[11.83636,43.88324,443],[11.83653,43.8837,434],[11.83657,43.884,434],[11.83672,43.88413,434],[11.83672,43.88415,434],[11.83673,43.88426,434],[11.83657,43.88434,434],[11.83649,43.88431,434],[11.83636,43.88438,434],[11.83637,43.88465,425],[11.83635,43.88475,425],[11.83621,43.88489,425],[11.83602,43.88493,425],[11.83587,43.88485,425],[11.83586,43.88483,425],[11.83613,43.88454,434],[11.83612,43.88448,434],[11.83605,43.88447,434],[11.83591,43.88452,434],[11.83525,43.88486,429],[11.83503,43.88506,429],[11.83491,43.885,429],[11.8345,43.88469,429],[11.83443,43.88462,429],[11.83445,43.88454,438],[11.83462,43.8845,438],[11.83487,43.88439,438],[11.8354,43.88399,438],[11.83541,43.88393,438],[11.835415543,43.883910131,438],[11.835341095,43.883822279,438],[11.83527705,43.883692308,438],[11.83524,43.88361,462]]}'\n\t\t\t\t\t\t\tdata-related-pois='[]'><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_download_links wm_download_links--map\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"wm_download_link\" href=\"https:\/\/geohub.webmapp.it\/api\/ec\/track\/download\/75553.gpx\" download>\n\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-download\"><\/i>\n\t\t\t\t\t\t\t\t\t\tDownload GPX\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<!-- 5. Description -->\n\t\t\t\t\t\t\t\t\t<div class=\"wm_description\">\n\t\t\t\t\t\t<h1 id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">Welcome to the Ridracoli valley <\/span><\/h1>\r\n<p class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">The events that have given the current face to the Bidente Valley of Ridracoli bring us back in time of many years. But the event that most changed its appearance, between 1976 and 1983, is the construction of the homonymous dam, whose lake stretches for over 3 km inside the park. <\/span><span lang=\"en\">What is the result? Today we discover a valley with many notable naturalistic elements, where tourism has allowed the creation of important tourist services and the conservation of some of the houses that were once inhabited. But the protagonist, in Ridracoli more than elsewhere, is still the water, which flows the Bidente Valley, which sometimes still moves the blades of the mills, once scattered along the courses of the Apennine ditches, which fills the dam and quenches thousands of people throughout Romagna. <\/span><\/p>\r\n<ul>\r\n<a href=\"https:\/\/www.parcoforestecasentinesi.it\/sites\/default\/files\/INGLESE%20PIE%20A3%20RIDRACOLI%20corretto_0.pdf\"><li class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\">Download the &nbsp;description&nbsp;of the path.<\/span><\/li><\/a><li class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Traduzione\"><span lang=\"en\"><\/span><\/li>\r\n<\/ul>\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<!-- 6. Gallery -->\n\t\t\t\t\t\t\t\t\t<div class=\"wm_gallery\">\n\t\t\t\t\t\t<div class=\"swiper-container wm_swiper\">\n\t\t\t\t\t\t\t<div class=\"swiper-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"swiper-slide\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/IMG_1026.jpg.jpeg\" data-lightbox=\"track-gallery\" data-title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/IMG_1026.jpg.jpeg\" alt=\"\" loading=\"lazy\">\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"swiper-slide\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/IMG_1052.jpg.jpeg\" data-lightbox=\"track-gallery\" data-title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/IMG_1052.jpg.jpeg\" alt=\"\" loading=\"lazy\">\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"swiper-pagination\"><\/div>\n\t\t\t\t\t\t\t<div class=\"swiper-button-prev\"><\/div>\n\t\t\t\t\t\t\t<div class=\"swiper-button-next\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t\t\t\t<!-- 7a. Welcome points (osm2cai only: POIs with identifier punto-accoglienza) -->\n\t\t\t\t\n\t\t\t\t<!-- 7b. Related POIs -->\n\t\t\t\t\n\t\t\t\t<!-- 8. Track Navigation -->\n\t\t\t\t\n\t\t\t\t\t\t\t\t<\/div><!-- .wm_detail_main_content -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<aside class=\"wm_detail_sidebar\">\n\t\t\t\t\t\t<div class=\"wm_info_details\">\n\t\t\t\t\t\t\t<h2 class=\"wm_info_details_title\">Information<\/h2>\n\t\t\t\t\t\t\t<div class=\"wm_info_details_grid\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-route\" aria-hidden=\"true\"><\/i> Distance:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">3.5 km<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-clock\" aria-hidden=\"true\"><\/i> Duration Forward:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">120 min<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-clock\" aria-hidden=\"true\"><\/i> Duration Backward:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">75 min<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-arrow-up\" aria-hidden=\"true\"><\/i> Ascent:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">100 m<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-arrow-down\" aria-hidden=\"true\"><\/i> Descent:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">204 m<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-plus\" aria-hidden=\"true\"><\/i> Start Elevation:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">462 m<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wm_info_detail_item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_label\"><i class=\"fa fa-minus\" aria-hidden=\"true\"><\/i> End Elevation:<\/span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"wm_info_detail_value\">438 m<\/span>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/aside>\n\t\t\t\t\t\t\t<\/div><!-- .wm_detail_with_sidebar -->\n\t\t\t<\/div>\n\n\t<script>\n\t\tdocument.addEventListener('DOMContentLoaded', function() {\n\t\t\t\t\t\t\t\/\/ Set featured image in page-header section\n\t\t\t\tvar fallbackEl = document.querySelector('.wm_featured_image_page_header_fallback');\n\t\t\t\t\/\/ Try both the original selector and a permissive one (some themes use .page-header on non-header tags).\n\t\t\t\tvar pageHeader = document.querySelector('header.page-header') || document.querySelector('.page-header');\n\t\t\t\tif (pageHeader) {\n\t\t\t\t\tvar wmFeaturedImageUrl = 'https:\/\/ecmedia.s3.eu-central-1.amazonaws.com\/EcMedia\/Resize\/1440x500\/16955_1440x500.jpg';\n\t\t\t\t\tpageHeader.style.backgroundImage = 'url(' + wmFeaturedImageUrl + ')';\n\t\t\t\t\tpageHeader.style.backgroundSize = 'cover';\n\t\t\t\t\tpageHeader.style.backgroundPosition = 'center';\n\t\t\t\t\tpageHeader.style.backgroundRepeat = 'no-repeat';\n\t\t\t\t\tif (fallbackEl) {\n\t\t\t\t\t\t\/\/ Hide fallback only if the theme actually ended up applying a background image.\n\t\t\t\t\t\tvar computedBg = window.getComputedStyle(pageHeader).backgroundImage;\n\t\t\t\t\t\tif (computedBg && computedBg !== 'none') {\n\t\t\t\t\t\t\tfallbackEl.style.display = 'none';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tif (typeof Swiper !== 'undefined') {\n\t\t\t\tvar swiperContainers = document.querySelectorAll('.wm_swiper');\n\t\t\t\tswiperContainers.forEach(function(container) {\n\t\t\t\t\tvar config = {\n\t\t\t\t\t\tslidesPerView: 1,\n\t\t\t\t\t\tspaceBetween: 10,\n\t\t\t\t\t\tfreeMode: true,\n\t\t\t\t\t\tloop: true\n\t\t\t\t\t};\n\n\t\t\t\t\tvar paginationEl = container.querySelector('.swiper-pagination');\n\t\t\t\t\tif (paginationEl) {\n\t\t\t\t\t\tconfig.pagination = {\n\t\t\t\t\t\t\tel: paginationEl,\n\t\t\t\t\t\t\tclickable: true\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tvar nextEl = container.querySelector('.swiper-button-next');\n\t\t\t\t\tvar prevEl = container.querySelector('.swiper-button-prev');\n\t\t\t\t\tif (nextEl && prevEl) {\n\t\t\t\t\t\tconfig.navigation = {\n\t\t\t\t\t\t\tnextEl: nextEl,\n\t\t\t\t\t\t\tprevEl: prevEl\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\tnew Swiper(container, config);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t\/\/ Initialize Leaflet map for Track\n\t\t\t\t\t\t\tvar mapElement = document.getElementById('wm-leaflet-map-track-75553');\n\t\t\t\tif (mapElement && typeof wmInitLeafletMap !== 'undefined') {\n\t\t\t\t\tvar geometryJson = mapElement.getAttribute('data-geometry');\n\t\t\t\t\tvar relatedPoisJson = mapElement.getAttribute('data-related-pois');\n\t\t\t\t\tvar defaultImageUrl = 'https:\/\/trekking.parcoforestecasentinesi.it\/wp-content\/plugins\/wm-package\/assets\/default_image.png';\n\t\t\t\t\twmInitLeafletMap('wm-leaflet-map-track-75553', geometryJson, relatedPoisJson, defaultImageUrl);\n\t\t\t\t}\n\t\t\t\n\t\t\t\/\/ Handle GPX generation from GeoJSON\n\t\t\tvar gpxGenerateLinks = document.querySelectorAll('.wm_download_link--generate');\n\t\t\tgpxGenerateLinks.forEach(function(link) {\n\t\t\t\tlink.addEventListener('click', function(e) {\n\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\tvar trackFeatureJson = this.getAttribute('data-track-feature');\n\t\t\t\t\tvar trackName = this.getAttribute('data-track-name') || 'track';\n\n\t\t\t\t\tif (!trackFeatureJson) {\n\t\t\t\t\t\tconsole.error('Track feature data not found');\n\t\t\t\t\t\talert('Error: Track data not available');\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ Function to generate and download GPX\n\t\t\t\t\tfunction generateAndDownloadGPX() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvar trackFeature = JSON.parse(trackFeatureJson);\n\n\t\t\t\t\t\t\t\/\/ Check if togpx is available\n\t\t\t\t\t\t\tif (typeof togpx === 'undefined') {\n\t\t\t\t\t\t\t\tconsole.error('togpx library not loaded');\n\t\t\t\t\t\t\t\talert('Error: GPX generation library not available. Please refresh the page.');\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/ Generate GPX from GeoJSON\n\t\t\t\t\t\t\tvar gpxString = togpx(trackFeature);\n\n\t\t\t\t\t\t\tif (!gpxString || gpxString.trim() === '') {\n\t\t\t\t\t\t\t\tconsole.error('Failed to generate GPX');\n\t\t\t\t\t\t\t\talert('Error: Failed to generate GPX file');\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/ Clean track name for filename (remove spaces and special chars)\n\t\t\t\t\t\t\tvar cleanName = trackName.replace(\/\\s+\/g, '').replace(\/[^a-zA-Z0-9-_]\/g, '') || 'track';\n\n\t\t\t\t\t\t\t\/\/ Create blob and download\n\t\t\t\t\t\t\tvar blob = new Blob([gpxString], {\n\t\t\t\t\t\t\t\ttype: 'application\/gpx+xml'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tvar url = window.URL.createObjectURL(blob);\n\t\t\t\t\t\t\tvar a = document.createElement('a');\n\t\t\t\t\t\t\ta.href = url;\n\t\t\t\t\t\t\ta.download = cleanName + '.gpx';\n\t\t\t\t\t\t\tdocument.body.appendChild(a);\n\t\t\t\t\t\t\ta.click();\n\t\t\t\t\t\t\tdocument.body.removeChild(a);\n\t\t\t\t\t\t\twindow.URL.revokeObjectURL(url);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tconsole.error('Error generating GPX:', error);\n\t\t\t\t\t\t\talert('Error: Failed to generate GPX file');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ Wait for togpx library to be loaded if not already available\n\t\t\t\t\tif (typeof togpx !== 'undefined') {\n\t\t\t\t\t\tgenerateAndDownloadGPX();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\/\/ Wait a bit for the library to load\n\t\t\t\t\t\tvar attempts = 0;\n\t\t\t\t\t\tvar checkInterval = setInterval(function() {\n\t\t\t\t\t\t\tattempts++;\n\t\t\t\t\t\t\tif (typeof togpx !== 'undefined') {\n\t\t\t\t\t\t\t\tclearInterval(checkInterval);\n\t\t\t\t\t\t\t\tgenerateAndDownloadGPX();\n\t\t\t\t\t\t\t} else if (attempts > 20) {\n\t\t\t\t\t\t\t\tclearInterval(checkInterval);\n\t\t\t\t\t\t\t\talert('Error: GPX generation library failed to load. Please refresh the page.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 100);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t<\/script>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"class_list":["post-3895","track","type-track","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sentiero Natura Ridracoli - PNFC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sentiero Natura Ridracoli - PNFC\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/\" \/>\n<meta property=\"og:site_name\" content=\"PNFC\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-13T15:22:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/\",\"url\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/\",\"name\":\"Sentiero Natura Ridracoli - PNFC\",\"isPartOf\":{\"@id\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/#website\"},\"datePublished\":\"2024-10-04T12:59:50+00:00\",\"dateModified\":\"2025-02-13T15:22:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tracks\",\"item\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sentiero Natura Ridracoli\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/#website\",\"url\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/\",\"name\":\"PNFC\",\"description\":\"Parco Nazionale Foreste Casentinesi\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trekking.parcoforestecasentinesi.it\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sentiero Natura Ridracoli - PNFC","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/","og_locale":"en_US","og_type":"article","og_title":"Sentiero Natura Ridracoli - PNFC","og_url":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/","og_site_name":"PNFC","article_modified_time":"2025-02-13T15:22:57+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/","url":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/","name":"Sentiero Natura Ridracoli - PNFC","isPartOf":{"@id":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/#website"},"datePublished":"2024-10-04T12:59:50+00:00","dateModified":"2025-02-13T15:22:57+00:00","breadcrumb":{"@id":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/sentiero-natura-ridracoli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/"},{"@type":"ListItem","position":2,"name":"Tracks","item":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/track\/"},{"@type":"ListItem","position":3,"name":"Sentiero Natura Ridracoli"}]},{"@type":"WebSite","@id":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/#website","url":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/","name":"PNFC","description":"Parco Nazionale Foreste Casentinesi","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/wp-json\/wp\/v2\/track\/3895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/wp-json\/wp\/v2\/track"}],"about":[{"href":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/wp-json\/wp\/v2\/types\/track"}],"wp:attachment":[{"href":"https:\/\/trekking.parcoforestecasentinesi.it\/en\/wp-json\/wp\/v2\/media?parent=3895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}