{"id":33027,"date":"2026-06-07T19:36:21","date_gmt":"2026-06-07T17:36:21","guid":{"rendered":"https:\/\/www.immobiliarebotto.it\/my-favorites\/"},"modified":"2026-07-21T11:57:30","modified_gmt":"2026-07-21T09:57:30","slug":"my-favorites","status":"publish","type":"page","link":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/","title":{"rendered":"my favorites"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"33027\" class=\"elementor elementor-33027 elementor-20507\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c79fbda e-flex e-con-boxed e-con e-parent\" data-id=\"c79fbda\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-828b1cf elementor-widget elementor-widget-text-editor\" data-id=\"828b1cf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>WISHLIST<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef07590 elementor-widget elementor-widget-heading\" data-id=\"ef07590\" 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\">My favorite properties<\/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-11a9b760 e-flex e-con-boxed e-con e-parent\" data-id=\"11a9b760\" 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-789ec756 elementor-widget elementor-widget-shortcode\" data-id=\"789ec756\" 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    <div id=\"wishlist-grid\" class=\"wishlist-immobili\">\n        <p class=\"wishlist-loading\">Caricamento preferiti...<\/p>\n    <\/div>\n\n    <style>\n    .wishlist-immobili {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n        gap: 28px;\n        padding: 20px 0;\n    }\n    .wishlist-item {\n        background: #fff;\n        border-radius: 12px;\n        overflow: hidden;\n        box-shadow: 0 4px 20px rgba(0,0,0,0.08);\n        display: flex;\n        flex-direction: column;\n        transition: transform 0.2s, box-shadow 0.2s;\n    }\n    .wishlist-item:hover {\n        transform: translateY(-4px);\n        box-shadow: 0 8px 30px rgba(0,0,0,0.13);\n    }\n    .wishlist-item-link { text-decoration: none; color: inherit; flex: 1; }\n    .wishlist-item-img {\n        width: 100%;\n        aspect-ratio: 1 \/ 1;\n        overflow: hidden;\n        background: #f0f0f0;\n    }\n    .wishlist-item-img img {\n        width: 100%; height: 100%;\n        object-fit: cover; display: block;\n        transition: transform 0.3s;\n    }\n    .wishlist-item:hover .wishlist-item-img img { transform: scale(1.04); }\n    .wishlist-no-img { width: 100%; height: 100%; background: #e8e8e8; }\n    .wishlist-item-body { padding: 14px 16px 10px; }\n    .wishlist-item-title {\n        font-size: 15px; font-weight: 600;\n        margin: 0 0 6px; color: #222; line-height: 1.3;\n    }\n    .wishlist-item-price {\n        font-size: 17px; font-weight: 700;\n        color: #d2b94e; margin: 0 0 8px;\n    }\n    .wishlist-item-details {\n        display: flex; align-items: stretch;\n        border-top: 1px solid #f0f0f0;\n        margin: 10px 0 0; padding: 12px 0 4px;\n    }\n    .wid-col {\n        flex: 1; display: flex; flex-direction: column;\n        align-items: center; gap: 4px; position: relative;\n    }\n    .wid-col + .wid-col::before {\n        content: \"\"; position: absolute;\n        left: 0; top: 0; height: 100%; width: 1px; background: #e0e0e0;\n    }\n    .wid-val  { font-size: 18px; font-weight: 700; color: #d2b94e; line-height: 1; }\n    .wid-label { font-size: 10px; color: #999; letter-spacing: 0.5px; text-transform: uppercase; }\n    .rimuovi-wishlist {\n        display: block;\n        width: calc(100% - 32px);\n        margin: 0 16px 16px;\n        padding: 10px;\n        background: #d2b94e; color: #fff;\n        border: none; border-radius: 8px;\n        font-size: 14px; font-weight: 600;\n        cursor: pointer; transition: background 0.2s;\n        letter-spacing: 0.3px;\n    }\n    .rimuovi-wishlist:hover { background: #b8a03a; }\n    .wishlist-empty, .wishlist-loading { font-size: 16px; color: #666; padding: 20px 0; }\n    <\/style>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8634d2 elementor-widget elementor-widget-html\" data-id=\"a8634d2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\n\/* Popup feedback wishlist *\/\n.wishlist-popup {\n    position: fixed;\n    bottom: 30px;\n    left: 50%;\n    transform: translateX(-50%) translateY(20px);\n    background: #222;\n    color: #fff;\n    padding: 12px 28px;\n    border-radius: 30px;\n    font-size: 15px;\n    font-weight: 500;\n    z-index: 2147483647;\n    opacity: 0;\n    transition: opacity 0.3s, transform 0.3s;\n    pointer-events: none;\n    white-space: nowrap;\n}\n.wishlist-popup.show {\n    opacity: 1;\n    transform: translateX(-50%) translateY(0);\n}\n.wishlist-popup.aggiunto { background: #2e7d32; }\n.wishlist-popup.rimosso  { background: #c62828; }\n\n@keyframes wishSpin {\n    from { transform: rotate(0deg); }\n    to   { transform: rotate(360deg); }\n}\n\n\/* Modal condivisione *\/\n.share-overlay {\n    display: none;\n    position: fixed;\n    inset: 0;\n    background: rgba(0,0,0,0.55);\n    z-index: 2147483647;\n    align-items: center;\n    justify-content: center;\n}\n.share-overlay.show {\n    display: flex;\n}\n.share-modal {\n    background: #fff;\n    border-radius: 16px;\n    padding: 32px 28px 24px;\n    width: 90%;\n    max-width: 420px;\n    box-shadow: 0 20px 60px rgba(0,0,0,0.2);\n    position: relative;\n    animation: shareIn 0.25s ease;\n}\n@keyframes shareIn {\n    from { transform: translateY(30px); opacity: 0; }\n    to   { transform: translateY(0);    opacity: 1; }\n}\n.share-modal h3 {\n    margin: 0 0 22px;\n    font-size: 18px;\n    font-weight: 700;\n    color: #222;\n}\n.share-close {\n    position: absolute;\n    top: 14px;\n    right: 18px;\n    background: none;\n    border: none;\n    font-size: 22px;\n    cursor: pointer;\n    color: #aaa;\n    line-height: 1;\n}\n.share-close:hover { color: #333; }\n.share-grid {\n    display: grid;\n    grid-template-columns: repeat(3, 1fr);\n    gap: 12px;\n    margin-bottom: 20px;\n}\n.share-btn {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: 7px;\n    padding: 12px 8px 10px;\n    border-radius: 12px;\n    border: none;\n    cursor: pointer;\n    font-size: 12px;\n    font-weight: 600;\n    color: #fff !important;\n    text-decoration: none !important;\n    transition: opacity 0.2s, transform 0.2s;\n}\n.share-btn:hover {\n    opacity: 0.85;\n    transform: translateY(-2px);\n    color: #fff !important;\n    text-decoration: none !important;\n}\n.share-btn svg {\n    width: 28px;\n    height: 28px;\n    fill: #fff !important;\n}\n.share-btn.whatsapp { background: #25D366; }\n.share-btn.telegram { background: #229ED9; }\n.share-btn.facebook { background: #1877F2; }\n.share-btn.twitter  { background: #000; }\n.share-btn.email    { background: #EA4335; }\n.share-btn.linkedin { background: #0A66C2; }\n.share-copy {\n    display: flex;\n    gap: 8px;\n    align-items: center;\n}\n.share-copy input {\n    flex: 1;\n    padding: 10px 12px;\n    border: 1px solid #ddd;\n    border-radius: 8px;\n    font-size: 13px;\n    color: #444;\n    background: #f9f9f9;\n    outline: none;\n}\n.share-copy button {\n    padding: 10px 16px;\n    background: #d2b94e;\n    color: #fff;\n    border: none;\n    border-radius: 8px;\n    font-size: 13px;\n    font-weight: 600;\n    cursor: pointer;\n    transition: background 0.2s;\n    white-space: nowrap;\n}\n.share-copy button:hover { background: #b8a03a; }\n<\/style>\n\n<div class=\"wishlist-popup\" id=\"wishlist-popup\"><\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n\n    if ( typeof wishlistData === 'undefined' ) return;\n\n    var popup = document.getElementById('wishlist-popup');\n    var timer = null;\n\n    function mostraPopup( testo, tipo ) {\n        if ( ! popup ) return;\n        popup.textContent = testo;\n        popup.className   = 'wishlist-popup ' + tipo;\n        popup.classList.add('show');\n        clearTimeout( timer );\n        timer = setTimeout(function() {\n            popup.classList.remove('show');\n        }, 2500);\n    }\n\n    \/\/ \u2500\u2500 Cookie wishlist \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    var COOKIE_NAME = 'wishlist_immobili';\n    var COOKIE_DAYS = 30;\n\n    function getCookieWishlist() {\n        var match = document.cookie.match(new RegExp('(?:^|; )' + COOKIE_NAME + '=([^;]*)'));\n        if (!match) return [];\n        try { return JSON.parse(decodeURIComponent(match[1])).map(Number); }\n        catch(e) { return []; }\n    }\n\n    function setCookieWishlist(list) {\n        var expires = new Date(Date.now() + COOKIE_DAYS * 864e5).toUTCString();\n        document.cookie = COOKIE_NAME + '=' + encodeURIComponent(JSON.stringify(list))\n            + '; expires=' + expires + '; path=\/; SameSite=Lax';\n    }\n\n    var postId = Number(wishlistData.post_id) || 0;\n\n    \/\/ Fallback: leggi postid dal body class\n    if (!postId) {\n        var m = document.body.className.match(\/postid-(\\d+)\/);\n        if (m) postId = Number(m[1]);\n    }\n\n    \/\/ \u2500\u2500 WISHLIST toggle \u2014 listener diretto sul bottone \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ (Elementor blocca la propagazione, document.addEventListener non funziona)\n    function attachWishlistBtn() {\n        var b = document.querySelector('.pulsantewishlist');\n        if (!b || b.dataset.wishlistAttached) return;\n        b.dataset.wishlistAttached = '1';\n\n        \/\/ Stato iniziale\n        if (postId && getCookieWishlist().includes(postId)) {\n            b.classList.add('salvato');\n        }\n\n        b.addEventListener('click', function(e) {\n            if (!postId) return;\n            e.preventDefault();\n            e.stopPropagation();\n\n            var list  = getCookieWishlist();\n            var saved;\n\n            if (list.includes(postId)) {\n                list  = list.filter(function(id){ return id !== postId; });\n                saved = false;\n            } else {\n                list.push(postId);\n                saved = true;\n            }\n\n            setCookieWishlist(list);\n            b.classList.toggle('salvato', saved);\n            mostraPopup(\n                saved ? 'Aggiunto ai preferiti' : 'Rimosso dai preferiti',\n                saved ? 'aggiunto' : 'rimosso'\n            );\n        });\n    }\n\n    \/\/ Prova subito e dopo (Elementor pu\u00f2 ritardare il render)\n    attachWishlistBtn();\n    setTimeout(attachWishlistBtn, 500);\n    setTimeout(attachWishlistBtn, 1500);\n\n    \/\/ \u2500\u2500 RIMOZIONE dalla pagina preferiti \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    document.addEventListener('click', function(e) {\n        if ( ! e.target.closest('.rimuovi-wishlist') ) return;\n\n        var rb  = e.target.closest('.rimuovi-wishlist');\n        var pid = Number(rb.getAttribute('data-id'));\n\n        var list = getCookieWishlist().filter(function(id){ return id !== pid; });\n        setCookieWishlist(list);\n\n        var item = rb.closest('.wishlist-item');\n        if ( item ) {\n            item.style.transition = 'opacity 0.3s, transform 0.3s';\n            item.style.opacity    = '0';\n            item.style.transform  = 'scale(0.95)';\n            setTimeout(function() {\n                item.remove();\n                var grid = document.getElementById('wishlist-grid');\n                if ( grid && ! grid.querySelector('.wishlist-item') ) {\n                    grid.innerHTML = '<p class=\"wishlist-empty\">Non hai ancora salvato nessun immobile tra i preferiti.<\/p>';\n                }\n            }, 300);\n        }\n        mostraPopup('Rimosso dai preferiti', 'rimosso');\n    });\n\n    \/\/ \u2500\u2500 CARICA WISHLIST nella pagina preferiti \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    var grid = document.getElementById('wishlist-grid');\n    if ( grid ) {\n        var ids = getCookieWishlist();\n        if ( ids.length === 0 ) {\n            grid.innerHTML = '<p class=\"wishlist-empty\">Non hai ancora salvato nessun immobile tra i preferiti.<\/p>';\n        } else {\n            var body = 'action=get_wishlist_html&nonce=' + wishlistData.nonce\n                + '&' + ids.map(function(id){ return 'ids[]=' + id; }).join('&');\n            fetch(wishlistData.ajax_url, {\n                method : 'POST',\n                headers: { 'Content-Type': 'application\/x-www-form-urlencoded' },\n                body   : body\n            })\n            .then(function(r){ return r.json(); })\n            .then(function(data){\n                if (data.success) grid.innerHTML = data.data.html;\n            });\n        }\n    }\n\n    \/\/ \u2500\u2500 CONDIVISIONE \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    var shareBtn   = document.querySelector('.condividi');\n    var shareUrl   = window.location.href;\n    var shareTitle = document.title;\n\n    if ( shareBtn ) {\n\n        var modalHTML = '<div class=\"share-overlay\" id=\"share-overlay\">'\n            + '<div class=\"share-modal\">'\n            + '<button class=\"share-close\" id=\"share-close\">&#10005;<\/button>'\n            + '<h3>Condividi questo immobile<\/h3>'\n            + '<div class=\"share-grid\">'\n            + '<a class=\"share-btn whatsapp\" id=\"share-whatsapp\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z\"\/><\/svg>WhatsApp<\/a>'\n            + '<a class=\"share-btn telegram\" id=\"share-telegram\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z\"\/><\/svg>Telegram<\/a>'\n            + '<a class=\"share-btn facebook\" id=\"share-facebook\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z\"\/><\/svg>Facebook<\/a>'\n            + '<a class=\"share-btn twitter\" id=\"share-twitter\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.737-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z\"\/><\/svg>X \/ Twitter<\/a>'\n            + '<a class=\"share-btn email\" id=\"share-email\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z\"\/><\/svg>Email<\/a>'\n            + '<a class=\"share-btn linkedin\" id=\"share-linkedin\" target=\"_blank\" rel=\"noopener\"><svg viewBox=\"0 0 24 24\"><path d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\"\/><\/svg>LinkedIn<\/a>'\n            + '<\/div>'\n            + '<div class=\"share-copy\"><input type=\"text\" id=\"share-url-input\" readonly><button id=\"share-copy-btn\">Copia link<\/button><\/div>'\n            + '<\/div>'\n            + '<\/div>';\n\n        document.body.insertAdjacentHTML( 'beforeend', modalHTML );\n\n        var shareOverlay = document.getElementById('share-overlay');\n        var shareClose   = document.getElementById('share-close');\n\n        document.getElementById('share-url-input').value = shareUrl;\n        document.getElementById('share-whatsapp').href   = 'https:\/\/wa.me\/?text=' + encodeURIComponent( shareTitle + ' ' + shareUrl );\n        document.getElementById('share-telegram').href   = 'https:\/\/t.me\/share\/url?url=' + encodeURIComponent( shareUrl ) + '&text=' + encodeURIComponent( shareTitle );\n        document.getElementById('share-facebook').href   = 'https:\/\/www.facebook.com\/sharer\/sharer.php?u=' + encodeURIComponent( shareUrl );\n        document.getElementById('share-twitter').href    = 'https:\/\/twitter.com\/intent\/tweet?url=' + encodeURIComponent( shareUrl ) + '&text=' + encodeURIComponent( shareTitle );\n        document.getElementById('share-email').href      = 'mailto:?subject=' + encodeURIComponent( shareTitle ) + '&body=' + encodeURIComponent( shareUrl );\n        document.getElementById('share-linkedin').href   = 'https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=' + encodeURIComponent( shareUrl );\n\n        document.addEventListener('click', function(e) {\n            if ( ! e.target.closest('.condividi') ) return;\n            e.preventDefault();\n            e.stopPropagation();\n            shareOverlay.classList.add('show');\n        });\n\n        shareClose.addEventListener('click', function() {\n            shareOverlay.classList.remove('show');\n        });\n\n        shareOverlay.addEventListener('click', function(e) {\n            if ( e.target === shareOverlay ) {\n                shareOverlay.classList.remove('show');\n            }\n        });\n\n        document.getElementById('share-copy-btn').addEventListener('click', function() {\n            navigator.clipboard.writeText( shareUrl ).then(function() {\n                document.getElementById('share-copy-btn').textContent = '\u2713 Copiato!';\n                setTimeout(function() {\n                    document.getElementById('share-copy-btn').textContent = 'Copia link';\n                }, 2000);\n            }).catch(function() {\n                document.getElementById('share-url-input').select();\n                document.execCommand('copy');\n                document.getElementById('share-copy-btn').textContent = '\u2713 Copiato!';\n                setTimeout(function() {\n                    document.getElementById('share-copy-btn').textContent = 'Copia link';\n                }, 2000);\n            });\n        });\n    }\n\n    \/\/ \u2500\u2500 VIRTUAL TOUR \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    var tourIframe = document.querySelector('.virtual-title iframe');\n    var virtualBtn = document.getElementById('virtualbutton');\n\n    document.querySelectorAll('.virtual-title').forEach(function(box) {\n        if ( box.id === 'virtualbutton' ) return;\n        var iframe = box.querySelector('iframe');\n        if ( ! iframe ) box.style.display = 'none';\n    });\n\n    if ( virtualBtn ) {\n        if ( ! tourIframe ) {\n            virtualBtn.style.display = 'none';\n        } else {\n            virtualBtn.addEventListener('click', function(e) {\n                e.preventDefault();\n                var src = (tourIframe.getAttribute('src') || '').trim();\n                if ( ! src || src.indexOf('http') !== 0 ) return;\n\n                var overlay = document.createElement('div');\n                overlay.id = 'virtual-tour-overlay';\n                overlay.style.cssText = 'position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,0.92);display:flex;align-items:center;justify-content:center;';\n\n                var closeBtn = document.createElement('button');\n                closeBtn.textContent = '\u2715';\n                closeBtn.style.cssText = 'position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,0.6);color:#fff;font-size:16px;font-weight:700;cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center;';\n\n                var frame = document.createElement('iframe');\n                frame.src = src;\n                frame.style.cssText = 'width:95vw;height:90vh;border:none;border-radius:12px;';\n                frame.setAttribute('allowfullscreen', '');\n\n                overlay.appendChild(closeBtn);\n                overlay.appendChild(frame);\n                document.body.appendChild(overlay);\n                document.body.style.overflow = 'hidden';\n\n                closeBtn.addEventListener('click', function() {\n                    overlay.remove();\n                    document.body.style.overflow = '';\n                });\n                overlay.addEventListener('click', function(e) {\n                    if ( e.target === overlay ) {\n                        overlay.remove();\n                        document.body.style.overflow = '';\n                    }\n                });\n                document.addEventListener('keydown', function escVt(e) {\n                    if ( e.key === 'Escape' ) {\n                        overlay.remove();\n                        document.body.style.overflow = '';\n                        document.removeEventListener('keydown', escVt);\n                    }\n                });\n            });\n        }\n    }\n\n    \/\/ \u2500\u2500 HIDEBOX \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    document.querySelectorAll('.hidebox').forEach(function(box) {\n        var desc = box.querySelector('.elementor-icon-box-description');\n        if ( ! desc ) return;\n        var val = desc.innerText.trim();\n        if ( val === '' || val === '0' || val === '0,00' || val === '0.00' || val === 'HIDE' ) {\n            box.style.display = 'none';\n        }\n    });\n\n}); \/\/ fine DOMContentLoaded\n\n\n\/\/ \u2500\u2500 HIDEVIDEO \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar videoNascosto = false;\n\ndocument.querySelectorAll('.elementor-widget-video').forEach(function(widget) {\n    try {\n        var settings = JSON.parse( widget.getAttribute('data-settings') || '{}' );\n        if ( settings.youtube_url === 'HIDE' ) {\n            widget.style.display = 'none';\n            videoNascosto = true;\n        }\n    } catch(e) {}\n});\n\nif ( videoNascosto ) {\n    document.querySelectorAll('.hidevideo').forEach(function(btn) {\n        btn.style.display = 'none';\n    });\n}\n\n\/\/ \u2500\u2500 VIDEO IMMOBILE \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nwindow.addEventListener('load', function() {\n    var videoWidget = document.querySelector('.video-immobile');\n    if ( ! videoWidget ) return;\n    try {\n        var settings = JSON.parse( videoWidget.getAttribute('data-settings') || '{}' );\n        if ( settings.youtube_url === 'HIDE' ) {\n            videoWidget.style.display = 'none';\n            document.querySelectorAll('.btn-video-immobile').forEach(function(btn) {\n                btn.style.display = 'none';\n            });\n        }\n    } catch(e) {}\n});\n<\/script>\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>WISHLIST My favorite properties<\/p>\n","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-33027","page","type-page","status-publish","hentry"],"blocksy_meta":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>my favorites - Gruppo Immobiliare Botto<\/title>\n<meta name=\"robots\" content=\"noindex, nofollow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"my favorites - Gruppo Immobiliare Botto\" \/>\n<meta property=\"og:description\" content=\"WISHLIST My favorite properties\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/\" \/>\n<meta property=\"og:site_name\" content=\"Gruppo Immobiliare Botto\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-21T09:57:30+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:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/my-favorites\\\/\",\"url\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/my-favorites\\\/\",\"name\":\"my favorites - Gruppo Immobiliare Botto\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#website\"},\"datePublished\":\"2026-06-07T17:36:21+00:00\",\"dateModified\":\"2026-07-21T09:57:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/my-favorites\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/my-favorites\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/my-favorites\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"my favorites\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/\",\"name\":\"Gruppo Immobiliare Botto\",\"description\":\"Agenzia Leader del Piemonte\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#organization\",\"name\":\"Gruppo Immobiliare Botto\",\"url\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Immobiliare-Botto_base-scaled.png\",\"contentUrl\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Immobiliare-Botto_base-scaled.png\",\"width\":2560,\"height\":1326,\"caption\":\"Gruppo Immobiliare Botto\"},\"image\":{\"@id\":\"https:\\\/\\\/www.immobiliarebotto.it\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"my favorites - Gruppo Immobiliare Botto","robots":{"index":"noindex","follow":"nofollow"},"og_locale":"en_US","og_type":"article","og_title":"my favorites - Gruppo Immobiliare Botto","og_description":"WISHLIST My favorite properties","og_url":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/","og_site_name":"Gruppo Immobiliare Botto","article_modified_time":"2026-07-21T09:57:30+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/","url":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/","name":"my favorites - Gruppo Immobiliare Botto","isPartOf":{"@id":"https:\/\/www.immobiliarebotto.it\/en\/#website"},"datePublished":"2026-06-07T17:36:21+00:00","dateModified":"2026-07-21T09:57:30+00:00","breadcrumb":{"@id":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.immobiliarebotto.it\/en\/my-favorites\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.immobiliarebotto.it\/en\/"},{"@type":"ListItem","position":2,"name":"my favorites"}]},{"@type":"WebSite","@id":"https:\/\/www.immobiliarebotto.it\/en\/#website","url":"https:\/\/www.immobiliarebotto.it\/en\/","name":"Gruppo Immobiliare Botto","description":"Agenzia Leader del Piemonte","publisher":{"@id":"https:\/\/www.immobiliarebotto.it\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.immobiliarebotto.it\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.immobiliarebotto.it\/en\/#organization","name":"Gruppo Immobiliare Botto","url":"https:\/\/www.immobiliarebotto.it\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.immobiliarebotto.it\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.immobiliarebotto.it\/wp-content\/uploads\/2026\/04\/Immobiliare-Botto_base-scaled.png","contentUrl":"https:\/\/www.immobiliarebotto.it\/wp-content\/uploads\/2026\/04\/Immobiliare-Botto_base-scaled.png","width":2560,"height":1326,"caption":"Gruppo Immobiliare Botto"},"image":{"@id":"https:\/\/www.immobiliarebotto.it\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/pages\/33027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/comments?post=33027"}],"version-history":[{"count":1,"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/pages\/33027\/revisions"}],"predecessor-version":[{"id":33028,"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/pages\/33027\/revisions\/33028"}],"wp:attachment":[{"href":"https:\/\/www.immobiliarebotto.it\/en\/wp-json\/wp\/v2\/media?parent=33027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}