{"id":956,"date":"2025-09-11T14:15:11","date_gmt":"2025-09-11T14:15:11","guid":{"rendered":"https:\/\/corinaldoturismo.eu\/what-to-see\/"},"modified":"2025-11-03T10:11:39","modified_gmt":"2025-11-03T10:11:39","slug":"what-to-see","status":"publish","type":"page","link":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/","title":{"rendered":"What to See"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"956\" class=\"elementor elementor-956 elementor-738\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1c167fe e-flex e-con-boxed e-con e-parent\" data-id=\"1c167fe\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-982884f elementor-widget__width-inherit elementor-widget elementor-widget-heading\" data-id=\"982884f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><b>WHAT<\/b> TO SEE<\/h2>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-e58bcd1 e-flex e-con-boxed e-con e-parent\" data-id=\"e58bcd1\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-58bbe72 elementor-widget elementor-widget-shortcode\" data-id=\"58bbe72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">         \n        <style>\n        \/* Solo stili specifici per il pulsante \"Carica altro\" *\/\n        .ac-load-more-container {\n            grid-column: 1 \/ -1;\n            text-align: center;\n            margin-top: 20px;\n            padding: 20px;\n        }\n\n        .ac-load-more-btn {\n            display: inline-block;\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            color: white;\n            padding: 15px 30px;\n            text-decoration: none;\n            border-radius: 25px;\n            font-weight: 600;\n            font-size: 16px;\n            transition: all 0.3s ease;\n            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);\n        }\n\n        .ac-load-more-btn:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);\n            color: white;\n            text-decoration: none;\n        }\n\n        .ac-load-more-btn:active {\n            transform: translateY(0);\n        }\n        <\/style>\n\n        <div id=\"attivita-commerciali-container\">\n                            <!-- Modalit\u00e0 filtro singola categoria -->\n                <div class=\"ac-single-category-view\">\n                    <div class=\"ac-businesses-grid\" id=\"businesses-vedere\"><\/div>\n                <\/div>\n            \n            <!-- Loading spinner -->\n            <div id=\"ac-loading\" class=\"ac-loading\" style=\"display:none;\">\n                <div class=\"ac-spinner\"><\/div>\n                <p>Loading...<\/p>\n            <\/div>\n        <\/div>\n\n        <script>\n        jQuery(document).ready(function($) {\n            if ($('#attivita-commerciali-container').length === 0) {\n                return;\n            }\n            \n            var categoriaFiltro = 'vedere';\n            \n            if (categoriaFiltro) {\n                \/\/ Modalit\u00e0 filtro singola categoria - mostra tutte le attivit\u00e0 senza limite\n                loadBusinessesByCategory(categoriaFiltro, true);\n            } else {\n                \/\/ Modalit\u00e0 normale con tab\n                initializeTabs();\n                loadBusinessesByCategory('mangiare');\n            }\n            \n            function initializeTabs() {\n                const tabs   = document.querySelectorAll('.ac-tab-btn');\n                const panels = document.querySelectorAll('.ac-tab-content');\n\n                function activate(tab) {\n                    tabs.forEach(t => {\n                        const selected = (t === tab);\n                        t.classList.toggle('active', selected);\n                        t.setAttribute('aria-selected', selected ? 'true' : 'false');\n                        t.tabIndex = selected ? 0 : -1;\n                    });\n\n                    panels.forEach(p => {\n                        const match = p.id === tab.getAttribute('aria-controls');\n                        p.classList.toggle('active', match);\n                        if (match) {\n                            p.removeAttribute('hidden');\n                        } else {\n                            p.setAttribute('hidden', 'hidden');\n                        }\n                    });\n                }\n\n                tabs.forEach(t => t.addEventListener('click', () => {\n                    activate(t);\n                    const category = t.getAttribute('data-category');\n                    loadBusinessesByCategory(category);\n                }));\n\n                document.querySelector('.ac-tabs-nav').addEventListener('keydown', e => {\n                    if (!['ArrowLeft','ArrowRight','Home','End'].includes(e.key)) return;\n                    e.preventDefault();\n                    const list = Array.from(tabs);\n                    const current = document.activeElement.closest('.ac-tab-btn');\n                    let idx = list.indexOf(current);\n                    if (e.key === 'ArrowRight') idx = (idx + 1) % list.length;\n                    if (e.key === 'ArrowLeft')  idx = (idx - 1 + list.length) % list.length;\n                    if (e.key === 'Home')       idx = 0;\n                    if (e.key === 'End')        idx = list.length - 1;\n                    list[idx].focus();\n                    activate(list[idx]);\n                    const category = list[idx].getAttribute('data-category');\n                    loadBusinessesByCategory(category);\n                });\n            }\n            \n            function loadBusinessesByCategory(category, showAll = false) {\n                const $loading = $('#ac-loading');\n                const $grid = $('#businesses-' + category);\n                \n                $loading.show();\n                console.log(\"USQQS\");\n                $.ajax({\n                    url: ajax_object.ajax_url,\n                    type: 'POST',\n                    data: {\n                        action: 'get_businesses_by_category',\n                        category: category,\n                        nonce: ajax_object.nonce,\n                        lang: ac_i18n.lang\n                    },\n                    success: function(response) {\n                        $loading.hide();\n                        \n                        if (response.success && response.data) {\n                            \/\/ Gestisci sia il nuovo formato (con debug) che quello vecchio\n                            let businesses = response.data.businesses || response.data;\n                            \n                            \/\/ Verifica che sia un array e che abbia elementi\n                            if (Array.isArray(businesses) && businesses.length > 0) {\n                                let html = '';\n                                let totalBusinesses = businesses.length;\n                                let displayLimit = showAll ? totalBusinesses : 6;\n                                let businessesToShow = businesses.slice(0, displayLimit);\n                                \n                                businessesToShow.forEach(function(business) {\n                                    html += '<a href=\"' + business.link + '\" class=\"ac-business-card\" data-business-id=\"' + business.id + '\" data-business-link=\"' + business.link + '\">';\n                                    html += '<img decoding=\"async\" style=\"padding:5px; object-fit:contain\" src=\"' + business.foto_principale + '\" alt=\"' + business.nome + '\" class=\"ac-business-image\" onerror=\"this.src=\\'https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/placeholder.png\\'\">';\n                                    html += '<div class=\"ac-business-info\">';\n                                    html += '<h3 class=\"ac-business-name\">' + business.nome + '<\/h3>';\n                                    html += '<div class=\"ac-business-contact\">';\n                                    if (business.telefono !== 'Non specificato') {\n                                        html += '\ud83d\udcde <span>' + business.telefono + '<\/span>';\n                                    }\n                                    html += '<\/div>';\n                                    if (business.email !== 'Non specificato') {\n                                        html += '<div class=\"ac-business-contact\">';\n                                        html += '\u2709\ufe0f <span>' + business.email + '<\/span>';\n                                        html += '<\/div>';\n                                    }\n                                    html += '<div class=\"ac-business-excerpt\">' + business.descrizione + '<\/div>';\n                                    html += '<\/div>';\n                                    html += '<\/a>';\n                                });\n                                \n                                \/\/ Aggiungi pulsante \"Carica altro\" solo se non stiamo mostrando tutto e ci sono pi\u00f9 di 6 attivit\u00e0\n                                if (!showAll && totalBusinesses > displayLimit) {\n                                    var categoryPageUrl = '';\n                                    \n                                    switch(category) {\n                                        case 'mangiare':\n                                            categoryPageUrl = 'https:\/\/corinaldoturismo.eu\/en\/category\/where-to-eat\/';\n                                            break;\n                                        case 'dormire':\n                                            categoryPageUrl = 'https:\/\/corinaldoturismo.eu\/en\/category\/where-to-sleep\/';\n                                            break;\n                                        case 'comprare':\n                                            categoryPageUrl = 'https:\/\/corinaldoturismo.eu\/en\/category\/where-to-shop\/';\n                                            break;\n                                        case 'vedere':\n                                            categoryPageUrl = 'https:\/\/corinaldoturismo.eu\/en\/category\/what-to-see\/';\n                                            break;\n                                    }\n                                    \n                                    if (categoryPageUrl && categoryPageUrl !== '') {\n                                        html += '<div class=\"ac-load-more-container\">';\n                                        html += '<a href=\"' + categoryPageUrl + '\" class=\"ac-load-more-btn\">';\n                                        html += 'Carica altro (' + (totalBusinesses - displayLimit) + ' attivit\u00e0)';\n                                        html += '<\/a>';\n                                        html += '<\/div>';\n                                    }\n                                }\n                                \n                                $grid.html(html);\n                            } else {\n                                \/\/ Array vuoto o non valido\n                                $grid.html('<p class=\"ac-no-results\">No businesses found in this category.<\/p>');\n                            }\n                        } else {\n                            $grid.html('<p class=\"ac-no-results\">No businesses found in this category.<\/p>');\n                        }\n                    },\n                    error: function() {\n                        $loading.hide();\n                        $grid.html('<p class=\"ac-no-results\">Error loading businesses.<\/p>');\n                    }\n                });\n            }\n        });\n        <\/script>\n        <\/div>\n\t\t\t\t\t\t<\/div>\n\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":"<p>WHAT TO SEE<\/p>\n","protected":false},"author":2,"featured_media":955,"parent":0,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-956","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Corinaldo Turismo | What to see<\/title>\n<meta name=\"description\" content=\"If you&#039;re looking for places to visit in Corinaldo, you&#039;re in the right place. Discover all the hidden spots of Corinaldo here\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Corinaldo Turismo | What to see\" \/>\n<meta property=\"og:description\" content=\"If you&#039;re looking for places to visit in Corinaldo, you&#039;re in the right place. Discover all the hidden spots of Corinaldo here\" \/>\n<meta property=\"og:url\" content=\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/\" \/>\n<meta property=\"og:site_name\" content=\"Corinaldo Turismo\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-03T10:11:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"896\" \/>\n\t<meta property=\"og:image:height\" content=\"276\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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:\/\/corinaldoturismo.eu\/en\/what-to-see\/\",\"url\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/\",\"name\":\"Corinaldo Turismo | What to see\",\"isPartOf\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg\",\"datePublished\":\"2025-09-11T14:15:11+00:00\",\"dateModified\":\"2025-11-03T10:11:39+00:00\",\"description\":\"If you're looking for places to visit in Corinaldo, you're in the right place. Discover all the hidden spots of Corinaldo here\",\"breadcrumb\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage\",\"url\":\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg\",\"contentUrl\":\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg\",\"width\":896,\"height\":276},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/corinaldoturismo.eu\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What to See\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#website\",\"url\":\"https:\/\/corinaldoturismo.eu\/en\/\",\"name\":\"Corinaldo Turismo\",\"description\":\"Dove mangiare, Dove Dormire, Dove Comprare\",\"publisher\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/corinaldoturismo.eu\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#organization\",\"name\":\"Corinaldo Turismo\",\"url\":\"https:\/\/corinaldoturismo.eu\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/cropped-corinaldo-turismo-1.png\",\"contentUrl\":\"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/cropped-corinaldo-turismo-1.png\",\"width\":2439,\"height\":664,\"caption\":\"Corinaldo Turismo\"},\"image\":{\"@id\":\"https:\/\/corinaldoturismo.eu\/en\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Corinaldo Turismo | What to see","description":"If you're looking for places to visit in Corinaldo, you're in the right place. Discover all the hidden spots of Corinaldo here","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:\/\/corinaldoturismo.eu\/en\/what-to-see\/","og_locale":"en_US","og_type":"article","og_title":"Corinaldo Turismo | What to see","og_description":"If you're looking for places to visit in Corinaldo, you're in the right place. Discover all the hidden spots of Corinaldo here","og_url":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/","og_site_name":"Corinaldo Turismo","article_modified_time":"2025-11-03T10:11:39+00:00","og_image":[{"width":896,"height":276,"url":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/","url":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/","name":"Corinaldo Turismo | What to see","isPartOf":{"@id":"https:\/\/corinaldoturismo.eu\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage"},"image":{"@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage"},"thumbnailUrl":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg","datePublished":"2025-09-11T14:15:11+00:00","dateModified":"2025-11-03T10:11:39+00:00","description":"If you're looking for places to visit in Corinaldo, you're in the right place. Discover all the hidden spots of Corinaldo here","breadcrumb":{"@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/corinaldoturismo.eu\/en\/what-to-see\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#primaryimage","url":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg","contentUrl":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/494356447_1008166948094413_8353501694586868855_n.jpg","width":896,"height":276},{"@type":"BreadcrumbList","@id":"https:\/\/corinaldoturismo.eu\/en\/what-to-see\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/corinaldoturismo.eu\/en\/"},{"@type":"ListItem","position":2,"name":"What to See"}]},{"@type":"WebSite","@id":"https:\/\/corinaldoturismo.eu\/en\/#website","url":"https:\/\/corinaldoturismo.eu\/en\/","name":"Corinaldo Turismo","description":"Dove mangiare, Dove Dormire, Dove Comprare","publisher":{"@id":"https:\/\/corinaldoturismo.eu\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/corinaldoturismo.eu\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/corinaldoturismo.eu\/en\/#organization","name":"Corinaldo Turismo","url":"https:\/\/corinaldoturismo.eu\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/corinaldoturismo.eu\/en\/#\/schema\/logo\/image\/","url":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/cropped-corinaldo-turismo-1.png","contentUrl":"https:\/\/corinaldoturismo.eu\/wp-content\/uploads\/2025\/09\/cropped-corinaldo-turismo-1.png","width":2439,"height":664,"caption":"Corinaldo Turismo"},"image":{"@id":"https:\/\/corinaldoturismo.eu\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/pages\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/comments?post=956"}],"version-history":[{"count":1,"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/pages\/956\/revisions"}],"predecessor-version":[{"id":957,"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/pages\/956\/revisions\/957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/media\/955"}],"wp:attachment":[{"href":"https:\/\/corinaldoturismo.eu\/en\/wp-json\/wp\/v2\/media?parent=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}