{"id":1961,"date":"2026-07-11T15:36:29","date_gmt":"2026-07-11T15:36:29","guid":{"rendered":"https:\/\/www.gestioneindustriale.it\/?page_id=1961"},"modified":"2026-11-18T13:41:01","modified_gmt":"2026-11-18T12:41:01","slug":"test","status":"publish","type":"page","link":"https:\/\/www.gestioneindustriale.it\/it_it\/test\/","title":{"rendered":"Test"},"content":{"rendered":"<style>\n.lpe-wrap { max-width: 720px; margin: 20px 0; padding: 16px; border: 1px solid rgb(209,213,219); border-radius: 10px; background: rgb(255,255,255); font-family: Arial, Helvetica, sans-serif; box-sizing: border-box; }\n.lpe-wrap * { box-sizing: border-box; }\n.lpe-barra { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }\n.lpe-sep { width: 1px; height: 26px; background: rgb(209,213,219); margin: 0 4px; }\n.lpe-btn { min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid rgb(156,163,175); border-radius: 6px; background: rgb(243,244,246); color: rgb(17,24,39); font-size: 15px; cursor: pointer; line-height: 1; }\n.lpe-btn:hover { background: rgb(219,234,254); border-color: rgb(10,102,194); }\n.lpe-btn:active { background: rgb(191,219,254); }\n.lpe-area { width: 100%; padding: 12px; border: 1px solid rgb(156,163,175); border-radius: 6px; font-size: 15px; line-height: 1.5; font-family: Arial, Helvetica, sans-serif; color: rgb(17,24,39); background: rgb(255,255,255); resize: vertical; }\n.lpe-area:focus { outline: 2px solid rgb(10,102,194); border-color: rgb(10,102,194); }\n.lpe-piede { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }\n.lpe-contatore { font-size: 13px; color: rgb(75,85,99); }\n.lpe-contatore.lpe-oltre { color: rgb(185,28,28); font-weight: bold; }\n.lpe-stato { font-size: 13px; color: rgb(21,128,61); min-height: 18px; }\n.lpe-copia { background: rgb(10,102,194); color: rgb(255,255,255); border-color: rgb(10,102,194); font-weight: bold; }\n.lpe-copia:hover { background: rgb(8,81,155); border-color: rgb(8,81,155); }\n.lpe-nota { margin-top: 8px; font-size: 12px; color: rgb(107,114,128); }\n.lpe-tag-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgb(229,231,235); }\n.lpe-tag-sezione { margin-bottom: 12px; }\n.lpe-tag-titolo { font-size: 13px; font-weight: bold; color: rgb(31,41,55); margin-bottom: 6px; }\n.lpe-tag-info { font-weight: normal; color: rgb(107,114,128); font-size: 12px; }\n.lpe-chips { display: flex; flex-wrap: wrap; gap: 6px; }\n.lpe-chip { padding: 5px 10px; border: 1px solid rgb(156,163,175); border-radius: 16px; background: rgb(255,255,255); color: rgb(31,41,55); font-size: 13px; cursor: pointer; line-height: 1.2; }\n.lpe-chip:hover { border-color: rgb(10,102,194); background: rgb(239,246,255); }\n.lpe-chip.lpe-sel { background: rgb(10,102,194); border-color: rgb(10,102,194); color: rgb(255,255,255); }\n.lpe-tag-azioni { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }\n.lpe-tag-conteggio { font-size: 13px; color: rgb(75,85,99); }\n.lpe-tag-conteggio.lpe-molti { color: rgb(180,83,9); }\n\n\/* ---- Colori forzati: il tema del sito non deve alterare i pulsanti dell'editor ---- *\/\n.lpe-wrap { position: relative; }\n.lpe-wrap button.lpe-btn { background: rgb(243,244,246) !important; color: rgb(17,24,39) !important; border: 1px solid rgb(107,114,128) !important; box-shadow: none !important; text-shadow: none !important; text-transform: none !important; opacity: 1 !important; }\n.lpe-wrap button.lpe-btn:hover, .lpe-wrap button.lpe-btn:focus { background: rgb(219,234,254) !important; color: rgb(12,41,77) !important; border-color: rgb(10,102,194) !important; }\n.lpe-wrap button.lpe-btn:active { background: rgb(191,219,254) !important; color: rgb(12,41,77) !important; }\n.lpe-wrap button.lpe-copia { background: rgb(10,102,194) !important; color: rgb(255,255,255) !important; border-color: rgb(10,102,194) !important; }\n.lpe-wrap button.lpe-copia:hover, .lpe-wrap button.lpe-copia:focus, .lpe-wrap button.lpe-copia:active { background: rgb(7,63,122) !important; color: rgb(255,255,255) !important; border-color: rgb(7,63,122) !important; }\n.lpe-wrap button.lpe-chip { background: rgb(255,255,255) !important; color: rgb(31,41,55) !important; border: 1px solid rgb(107,114,128) !important; box-shadow: none !important; text-shadow: none !important; text-transform: none !important; opacity: 1 !important; }\n.lpe-wrap button.lpe-chip:hover, .lpe-wrap button.lpe-chip:focus { background: rgb(224,242,254) !important; color: rgb(12,41,77) !important; border-color: rgb(10,102,194) !important; }\n.lpe-wrap button.lpe-chip.lpe-sel, .lpe-wrap button.lpe-chip.lpe-sel:hover, .lpe-wrap button.lpe-chip.lpe-sel:focus, .lpe-wrap button.lpe-chip.lpe-sel:active { background: rgb(7,63,122) !important; color: rgb(255,255,255) !important; border-color: rgb(7,63,122) !important; }\n\/* ---- Suggerimento (tooltip) ---- *\/\n.lpe-tooltip { position: absolute; z-index: 9999; max-width: 300px; padding: 8px 10px; border-radius: 6px; background: rgb(17,24,39); color: rgb(255,255,255); font-size: 12px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,0.3); pointer-events: none; }\n.lpe-tooltip strong { display: block; margin-bottom: 3px; font-size: 13px; color: rgb(255,255,255); }\n.lpe-tooltip p { margin: 0 0 4px 0; color: rgb(255,255,255); }\n.lpe-tooltip small { display: block; color: rgb(209,213,219); font-size: 11px; }\n\/* ---- Emoji e invio mail ---- *\/\n.lpe-emoji-box { margin-bottom: 10px; padding: 8px; border: 1px solid rgb(209,213,219); border-radius: 6px; background: rgb(249,250,251); }\n.lpe-emoji-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }\n.lpe-emoji-tabs .lpe-btn { height: 30px; font-size: 13px; padding: 0 8px; }\n.lpe-wrap button.lpe-btn.lpe-tab-att { background: rgb(7,63,122) !important; color: rgb(255,255,255) !important; border-color: rgb(7,63,122) !important; }\n.lpe-emoji-grid { display: flex; flex-wrap: wrap; gap: 2px; max-height: 150px; overflow-y: auto; }\n.lpe-wrap button.lpe-emoji-btn { width: 36px; height: 36px; padding: 0 !important; font-size: 20px; line-height: 1; border: 1px solid transparent !important; border-radius: 6px; background: rgb(255,255,255) !important; color: rgb(17,24,39) !important; cursor: pointer; box-shadow: none !important; }\n.lpe-wrap button.lpe-emoji-btn:hover, .lpe-wrap button.lpe-emoji-btn:focus { background: rgb(224,242,254) !important; border-color: rgb(10,102,194) !important; }\n.lpe-mail-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }\n.lpe-mail-input { flex: 1 1 220px; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid rgb(107,114,128); border-radius: 6px; font-size: 14px; color: rgb(17,24,39); background: rgb(255,255,255); }\n.lpe-azioni-piede { display: flex; flex-wrap: wrap; gap: 6px; }\n<\/style><script>\n(function () {\n    'use strict';\n\n    \/\/ Offset dei blocchi Unicode \"Mathematical Sans-Serif\"\n    var STILI = {\n        grassetto:  { maiu: 0x1D5D4, mini: 0x1D5EE, cifre: 0x1D7EC },\n        corsivo:    { maiu: 0x1D608, mini: 0x1D622, cifre: null },\n        grascors:   { maiu: 0x1D63C, mini: 0x1D656, cifre: 0x1D7EC }\n    };\n\n    \/\/ Tabella inversa per rimuovere la formattazione\n    var INVERSA = {};\n    (function costruisciInversa() {\n        var nome, s, i;\n        for (nome in STILI) {\n            s = STILI[nome];\n            for (i = 0; i < 26; i++) {\n                INVERSA[s.maiu + i] = String.fromCharCode(65 + i);\n                INVERSA[s.mini + i] = String.fromCharCode(97 + i);\n            }\n            if (s.cifre !== null) {\n                for (i = 0; i < 10; i++) {\n                    INVERSA[s.cifre + i] = String.fromCharCode(48 + i);\n                }\n            }\n        }\n    })();\n\n    function convertiCarattere(ch, stile) {\n        var c = ch.codePointAt(0);\n        var s = STILI[stile];\n        if (c >= 65 && c <= 90)  { return String.fromCodePoint(s.maiu + (c - 65)); }\n        if (c >= 97 && c <= 122) { return String.fromCodePoint(s.mini + (c - 97)); }\n        if (c >= 48 && c <= 57 && s.cifre !== null) { return String.fromCodePoint(s.cifre + (c - 48)); }\n        return ch;\n    }\n\n    function applicaStile(testo, stile) {\n        var pulito = rimuoviStile(testo).normalize('NFD');\n        var risultato = '';\n        Array.from(pulito).forEach(function (ch) {\n            risultato += convertiCarattere(ch, stile);\n        });\n        return risultato;\n    }\n\n    function rimuoviStile(testo) {\n        var risultato = '';\n        Array.from(testo).forEach(function (ch) {\n            var c = ch.codePointAt(0);\n            risultato += (INVERSA[c] !== undefined) ? INVERSA[c] : ch;\n        });\n        return risultato.normalize('NFC');\n    }\n\n    var SIMBOLI = {\n        freccia: '\\u2794',\n        spunta:  '\\u2714',\n        quadrato:'\\u25AA',\n        stella:  '\\u2605',\n        punto:   '\\u2022'\n    };\n\n    \/\/ Numero massimo di hashtag consigliato (solo avviso, non blocca)\n    var TAG_CONSIGLIATI = 5;\n\n    function contaCaratteri(testo) {\n        return Array.from(testo).length;\n    }\n\n    function aggiornaContatore(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        var cont = wrap.querySelector('.lpe-contatore');\n        var limite = parseInt(wrap.getAttribute('data-limite'), 10);\n        var n = contaCaratteri(area.value);\n        cont.textContent = n + ' \/ ' + limite + ' caratteri';\n        if (n > limite) {\n            cont.classList.add('lpe-oltre');\n        } else {\n            cont.classList.remove('lpe-oltre');\n        }\n    }\n\n    function mostraStato(wrap, messaggio, durata) {\n        var el = wrap.querySelector('.lpe-stato');\n        el.textContent = messaggio;\n        window.clearTimeout(el._timer);\n        el._timer = window.setTimeout(function () { el.textContent = ''; }, durata || 2500);\n    }\n\n    function azioneStile(wrap, stile) {\n        var area = wrap.querySelector('.lpe-area');\n        var ini = area.selectionStart;\n        var fin = area.selectionEnd;\n        if (ini === fin) {\n            mostraStato(wrap, 'Seleziona prima le parole da formattare.');\n            return;\n        }\n        var selezione = area.value.substring(ini, fin);\n        var nuovo = (stile === 'normale') ? rimuoviStile(selezione) : applicaStile(selezione, stile);\n        area.value = area.value.substring(0, ini) + nuovo + area.value.substring(fin);\n        area.focus();\n        area.setSelectionRange(ini, ini + nuovo.length);\n        aggiornaContatore(wrap);\n    }\n\n    function azioneSimbolo(wrap, nome) {\n        var area = wrap.querySelector('.lpe-area');\n        var ini = area.selectionStart;\n        var fin = area.selectionEnd;\n        var simbolo = SIMBOLI[nome] + ' ';\n        area.value = area.value.substring(0, ini) + simbolo + area.value.substring(fin);\n        var pos = ini + simbolo.length;\n        area.focus();\n        area.setSelectionRange(pos, pos);\n        aggiornaContatore(wrap);\n    }\n\n    function azioneCopia(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        var testo = area.value;\n        if (testo === '') {\n            mostraStato(wrap, 'Non c\\'e nulla da copiare.');\n            return;\n        }\n        function ok() { mostraStato(wrap, 'Copiato! Ora incollalo su LinkedIn.'); }\n        function alternativa() {\n            area.focus();\n            area.select();\n            try {\n                document.execCommand('copy');\n                ok();\n            } catch (e) {\n                mostraStato(wrap, 'Copia non riuscita: usa Ctrl+C.');\n            }\n        }\n        if (navigator.clipboard && navigator.clipboard.writeText) {\n            navigator.clipboard.writeText(testo).then(ok, alternativa);\n        } else {\n            alternativa();\n        }\n    }\n\n    function azioneSvuota(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        if (area.value === '') { return; }\n        if (window.confirm('Cancellare tutto il testo?')) {\n            area.value = '';\n            aggiornaContatore(wrap);\n            area.focus();\n        }\n    }\n\n    \/\/ ------------------------------------------------------------------\n    \/\/ EMOJI (caratteri Unicode standard, gratuiti: l'aspetto dipende dal dispositivo)\n    \/\/ ------------------------------------------------------------------\n    var EMOJI = [\n        { nome: 'Faccine', lista: [0x1F600,0x1F603,0x1F604,0x1F601,0x1F606,0x1F605,0x1F602,0x1F923,0x1F642,0x1F609,0x1F60A,0x1F607,0x1F970,0x1F60D,0x1F618,0x1F60B,0x1F60E,0x1F913,0x1F914,0x1F928,0x1F610,0x1F62E,0x1F622,0x1F62D,0x1F624,0x1F620,0x1F631,0x1F917,0x1F644,0x1F634] },\n        { nome: 'Gesti', lista: [0x1F44D,0x1F44E,0x1F44F,0x1F64C,0x1F64F,0x1F4AA,0x1F44B,0x1F91D,0x1F448,0x1F449,0x1F446,0x1F447,0x261D,0x270C,0x1F91E,0x1F44C,0x270D,0x1F440,0x1F4A1,0x1F525,0x2728,0x1F4A5,0x1F389,0x1F38A] },\n        { nome: 'Lavoro', lista: [0x1F4BC,0x1F4C8,0x1F4C9,0x1F4CA,0x1F4CB,0x1F4DD,0x1F4C5,0x1F4CC,0x1F4CE,0x1F4E2,0x1F4E3,0x1F4E7,0x1F4F1,0x1F4BB,0x2699,0x1F50D,0x1F511,0x1F512,0x1F3AF,0x1F680,0x1F3C6,0x1F947,0x1F4B0,0x1F4B5,0x1F3E2,0x1F465,0x1F9E0,0x1F393,0x1F4DA,0x23F0,0x231B] },\n        { nome: 'Simboli', lista: [0x2705,0x274C,0x2714,0x2716,0x2757,0x2753,0x26A0,0x1F6A8,0x2795,0x2796,0x27A1,0x2B05,0x2B06,0x2B07,0x2194,0x1F501,0x1F504,0x25B6,0x2B50,0x1F31F,0x1F4AF,0x1F51D,0x1F193,0x1F195,0x1F197,0x1F534,0x1F7E2,0x1F535,0x1F7E1] },\n        { nome: 'Cuori', lista: [0x2764,0x1F9E1,0x1F49B,0x1F49A,0x1F499,0x1F49C,0x1F5A4,0x1F90D,0x1F496,0x1F495,0x1F4AC,0x1F4AD] },\n        { nome: 'Altro', lista: [0x2600,0x1F31E,0x1F308,0x1F331,0x1F340,0x1F33F,0x1F30D,0x1F30E,0x2615,0x1F355,0x1F3E0,0x2708,0x1F697,0x1F3D6,0x26BD,0x1F3B5,0x1F3A8,0x1F4F7,0x1F381] }\n    ];\n\n    \/\/ I simboli del blocco basso hanno bisogno del selettore di presentazione emoji (U+FE0F)\n    function emojiDa(cp) {\n        var testo = String.fromCodePoint(cp);\n        if (cp < 0x1F000) { testo += String.fromCharCode(0xFE0F); }\n        return testo;\n    }\n\n    function mostraCategoriaEmoji(wrap, indice) {\n        var box = wrap.querySelector('.lpe-emoji-box');\n        var griglia = box.querySelector('.lpe-emoji-grid');\n        var schede = box.querySelectorAll('.lpe-emoji-tabs button');\n        var i;\n        for (i = 0; i < schede.length; i++) {\n            if (i === indice) { schede[i].classList.add('lpe-tab-att'); } else { schede[i].classList.remove('lpe-tab-att'); }\n        }\n        griglia.innerHTML = '';\n        EMOJI[indice].lista.forEach(function (cp) {\n            var b = document.createElement('button');\n            b.type = 'button';\n            b.className = 'lpe-emoji-btn';\n            b.setAttribute('data-azione', 'emoji');\n            b.setAttribute('data-valore', String(cp));\n            b.textContent = emojiDa(cp);\n            griglia.appendChild(b);\n        });\n    }\n\n    function azioneEmojiPannello(wrap) {\n        var box = wrap.querySelector('.lpe-emoji-box');\n        if (box.style.display === 'none') {\n            if (!box._pronto) {\n                var tabs = box.querySelector('.lpe-emoji-tabs');\n                EMOJI.forEach(function (cat, i) {\n                    var t = document.createElement('button');\n                    t.type = 'button';\n                    t.className = 'lpe-btn';\n                    t.setAttribute('data-azione', 'emoji-cat');\n                    t.setAttribute('data-valore', String(i));\n                    t.textContent = cat.nome;\n                    tabs.appendChild(t);\n                });\n                box._pronto = true;\n                mostraCategoriaEmoji(wrap, 0);\n            }\n            box.style.display = 'block';\n        } else {\n            box.style.display = 'none';\n        }\n    }\n\n    function azioneEmoji(wrap, codice) {\n        var area = wrap.querySelector('.lpe-area');\n        var ini = area.selectionStart;\n        var fin = area.selectionEnd;\n        var emo = emojiDa(parseInt(codice, 10));\n        area.value = area.value.substring(0, ini) + emo + area.value.substring(fin);\n        var pos = ini + emo.length;\n        area.focus();\n        area.setSelectionRange(pos, pos);\n        aggiornaContatore(wrap);\n    }\n\n    \/\/ ------------------------------------------------------------------\n    \/\/ SALVA COME .TXT E INVIO PER MAIL\n    \/\/ ------------------------------------------------------------------\n\n    function nomeFileTxt() {\n        var d = new Date();\n        function z(n) { return (n < 10 ? '0' : '') + n; }\n        return 'post-linkedin-' + d.getFullYear() + z(d.getMonth() + 1) + z(d.getDate()) + '-' + z(d.getHours()) + z(d.getMinutes()) + '.txt';\n    }\n\n    function azioneSalvaTxt(wrap) {\n        var testo = wrap.querySelector('.lpe-area').value;\n        if (testo === '') {\n            mostraStato(wrap, 'Non c\\'e nulla da salvare.');\n            return;\n        }\n        \/\/ Righe in formato Windows, cosi il Blocco note le mostra correttamente\n        var blob = new Blob([testo.replace(\/\\r?\\n\/g, '\\r\\n')], { type: 'text\/plain;charset=utf-8' });\n        var url = URL.createObjectURL(blob);\n        var a = document.createElement('a');\n        a.href = url;\n        a.download = nomeFileTxt();\n        document.body.appendChild(a);\n        a.click();\n        document.body.removeChild(a);\n        window.setTimeout(function () { URL.revokeObjectURL(url); }, 1000);\n        mostraStato(wrap, 'File salvato (UTF-8).');\n    }\n\n    function azioneMailApri(wrap) {\n        var box = wrap.querySelector('.lpe-mail-box');\n        if (!box) { return; }\n        var input = box.querySelector('.lpe-mail-input');\n        box.style.display = 'flex';\n        \/\/ Riproponi l'ultimo indirizzo usato, se disponibile\n        try {\n            var ultimo = window.localStorage.getItem('lpes_email');\n            if (ultimo && input.value === '') { input.value = ultimo; }\n        } catch (e) { \/* storage non disponibile: nessun problema *\/ }\n        input.focus();\n    }\n\n    function azioneMailChiudi(wrap) {\n        var box = wrap.querySelector('.lpe-mail-box');\n        if (box) { box.style.display = 'none'; }\n    }\n\n    function azioneMailInvia(wrap) {\n        var testo = wrap.querySelector('.lpe-area').value;\n        var input = wrap.querySelector('.lpe-mail-input');\n        var email = input.value.replace(\/^\\s+|\\s+$\/g, '');\n        if (testo === '') {\n            mostraStato(wrap, 'Non c\\'e nulla da inviare.');\n            return;\n        }\n        if (!\/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/.test(email)) {\n            mostraStato(wrap, 'Indirizzo email non valido.', 5000);\n            input.focus();\n            return;\n        }\n        var dati = new FormData();\n        dati.append('action', 'lpes_invia_mail');\n        dati.append('nonce', wrap.getAttribute('data-nonce'));\n        dati.append('email', email);\n        dati.append('testo', testo);\n        mostraStato(wrap, 'Invio in corso...', 20000);\n        fetch(wrap.getAttribute('data-ajax'), { method: 'POST', body: dati, credentials: 'same-origin' })\n            .then(function (r) { return r.json(); })\n            .then(function (r) {\n                if (r && r.success) {\n                    mostraStato(wrap, 'Mail inviata a ' + email + '.', 6000);\n                    try { window.localStorage.setItem('lpes_email', email); } catch (e) { \/* ignora *\/ }\n                    azioneMailChiudi(wrap);\n                } else {\n                    mostraStato(wrap, (r && r.data && r.data.messaggio) ? r.data.messaggio : 'Invio non riuscito.', 8000);\n                }\n            })\n            .catch(function () {\n                mostraStato(wrap, 'Invio non riuscito: controlla la connessione e riprova.', 8000);\n            });\n    }\n\n    \/\/ ------------------------------------------------------------------\n    \/\/ HASHTAG\n    \/\/ ------------------------------------------------------------------\n\n    \/\/ Una sola richiesta per pagina, condivisa da tutte le istanze dell'editor\n    var promessaHashtag = null;\n    function caricaHashtag(url) {\n        if (promessaHashtag === null) {\n            promessaHashtag = fetch(url + '?action=lpes_hashtag', { credentials: 'same-origin', cache: 'no-store' })\n                .then(function (r) {\n                    if (!r.ok) { throw new Error('http ' + r.status); }\n                    return r.json();\n                });\n        }\n        return promessaHashtag;\n    }\n\n    function disegnaChips(contenitore, lista) {\n        contenitore.innerHTML = '';\n        if (!lista || lista.length === 0) {\n            var vuoto = document.createElement('span');\n            vuoto.className = 'lpe-tag-info';\n            vuoto.textContent = 'Nessun hashtag disponibile al momento.';\n            contenitore.appendChild(vuoto);\n            return;\n        }\n        lista.forEach(function (voce) {\n            var b = document.createElement('button');\n            b.type = 'button';\n            b.className = 'lpe-chip';\n            b.setAttribute('data-azione', 'chip');\n            b.setAttribute('data-tag', voce.n);\n            if (voce.d) { b.setAttribute('data-desc', voce.d); }\n            if (voce.u) { b.setAttribute('data-uso', String(voce.u)); }\n            b.textContent = '#' + voce.n;\n            contenitore.appendChild(b);\n        });\n    }\n\n    \/\/ ------------------------------------------------------------------\n    \/\/ SUGGERIMENTO (TOOLTIP) CON DESCRIZIONE DELL'HASHTAG\n    \/\/ ------------------------------------------------------------------\n\n    \/\/ Le descrizioni automatiche si scaricano solo al primo passaggio del mouse\n    var cacheDescrizioni = {};\n    function ottieniDescrizione(url, tag) {\n        if (!cacheDescrizioni[tag]) {\n            cacheDescrizioni[tag] = fetch(url + '?action=lpes_descrizione&tag=' + encodeURIComponent(tag), { credentials: 'same-origin' })\n                .then(function (r) {\n                    if (!r.ok) { throw new Error('http ' + r.status); }\n                    return r.json();\n                })\n                .catch(function () {\n                    delete cacheDescrizioni[tag];\n                    return { d: '', fonte: '' };\n                });\n        }\n        return cacheDescrizioni[tag];\n    }\n\n    function posizionaTooltip(wrap, tip, chip) {\n        var rw = wrap.getBoundingClientRect();\n        var rc = chip.getBoundingClientRect();\n        tip.style.display = 'block';\n        var larg = tip.offsetWidth;\n        var alt = tip.offsetHeight;\n        var sinistra = rc.left - rw.left;\n        if (sinistra + larg > rw.width) { sinistra = rw.width - larg; }\n        if (sinistra < 0) { sinistra = 0; }\n        var alto = rc.top - rw.top - alt - 8;\n        if (alto < 0) { alto = rc.bottom - rw.top + 8; }\n        tip.style.left = sinistra + 'px';\n        tip.style.top = alto + 'px';\n    }\n\n    function mostraTooltip(wrap, chip) {\n        var tip = wrap._tip;\n        var tag = chip.getAttribute('data-tag');\n        var fissa = chip.getAttribute('data-desc');\n        var uso = chip.getAttribute('data-uso');\n        wrap._chipTip = chip;\n\n        function disegna(descrizione, fonte) {\n            tip.innerHTML = '';\n            var titolo = document.createElement('strong');\n            titolo.textContent = '#' + tag;\n            tip.appendChild(titolo);\n            if (descrizione) {\n                var p = document.createElement('p');\n                p.textContent = descrizione;\n                tip.appendChild(p);\n            }\n            if (uso) {\n                var u = document.createElement('p');\n                u.textContent = 'Usato in circa ' + uso + ' post su Mastodon negli ultimi 2 giorni.';\n                tip.appendChild(u);\n            }\n            if (fonte) {\n                var f = document.createElement('small');\n                f.textContent = 'Fonte: ' + fonte;\n                tip.appendChild(f);\n            }\n            posizionaTooltip(wrap, tip, chip);\n        }\n\n        if (fissa) {\n            disegna(fissa, '');\n            return;\n        }\n        disegna('Caricamento descrizione...', '');\n        ottieniDescrizione(wrap.getAttribute('data-ajax'), tag).then(function (r) {\n            if (wrap._chipTip !== chip) { return; }\n            disegna(r.d ? r.d : 'Nessuna descrizione automatica disponibile per questo hashtag.', r.d ? r.fonte : '');\n        });\n    }\n\n    function nascondiTooltip(wrap) {\n        wrap._chipTip = null;\n        wrap._tip.style.display = 'none';\n    }\n\n    function inizializzaTooltip(wrap) {\n        var tip = document.createElement('div');\n        tip.className = 'lpe-tooltip';\n        tip.setAttribute('role', 'tooltip');\n        tip.style.display = 'none';\n        wrap.appendChild(tip);\n        wrap._tip = tip;\n        wrap._chipTip = null;\n\n        wrap.addEventListener('mouseover', function (e) {\n            var c = e.target.closest ? e.target.closest('.lpe-chip') : null;\n            if (c && wrap.contains(c) && wrap._chipTip !== c) { mostraTooltip(wrap, c); }\n        });\n        wrap.addEventListener('mouseout', function (e) {\n            var c = e.target.closest ? e.target.closest('.lpe-chip') : null;\n            if (c && !c.contains(e.relatedTarget)) { nascondiTooltip(wrap); }\n        });\n        wrap.addEventListener('focusin', function (e) {\n            var c = e.target.closest ? e.target.closest('.lpe-chip') : null;\n            if (c && wrap.contains(c)) { mostraTooltip(wrap, c); }\n        });\n        wrap.addEventListener('focusout', function () { nascondiTooltip(wrap); });\n    }\n\n    function tagSelezionati(wrap) {\n        var lista = [];\n        var chips = wrap.querySelectorAll('.lpe-chip.lpe-sel');\n        for (var i = 0; i < chips.length; i++) {\n            var t = chips[i].getAttribute('data-tag');\n            if (lista.indexOf(t) === -1) { lista.push(t); }\n        }\n        return lista;\n    }\n\n    function aggiornaConteggioTag(wrap) {\n        var n = tagSelezionati(wrap).length;\n        var el = wrap.querySelector('.lpe-tag-conteggio');\n        if (n === 0) {\n            el.textContent = 'Nessun hashtag selezionato';\n            el.classList.remove('lpe-molti');\n        } else {\n            el.textContent = n + ' selezionati' + (n > TAG_CONSIGLIATI ? ' (ne consigliati max ' + TAG_CONSIGLIATI + ')' : '');\n            if (n > TAG_CONSIGLIATI) { el.classList.add('lpe-molti'); } else { el.classList.remove('lpe-molti'); }\n        }\n    }\n\n    function azioneChip(wrap, btn) {\n        var tag = btn.getAttribute('data-tag');\n        var nuovoStato = !btn.classList.contains('lpe-sel');\n        \/\/ Lo stesso hashtag puo comparire in entrambe le liste: si sincronizzano\n        var uguali = wrap.querySelectorAll('.lpe-chip');\n        for (var i = 0; i < uguali.length; i++) {\n            if (uguali[i].getAttribute('data-tag') === tag) {\n                if (nuovoStato) { uguali[i].classList.add('lpe-sel'); } else { uguali[i].classList.remove('lpe-sel'); }\n            }\n        }\n        aggiornaConteggioTag(wrap);\n    }\n\n    function azioneAggiungiTag(wrap) {\n        var scelti = tagSelezionati(wrap);\n        if (scelti.length === 0) {\n            mostraStato(wrap, 'Seleziona prima qualche hashtag.');\n            return;\n        }\n        var area = wrap.querySelector('.lpe-area');\n        var testo = area.value;\n        var minuscolo = testo.toLowerCase();\n        \/\/ Salta gli hashtag gia presenti nel testo\n        var daAggiungere = scelti.filter(function (t) {\n            return minuscolo.indexOf('#' + t.toLowerCase()) === -1;\n        });\n        if (daAggiungere.length === 0) {\n            mostraStato(wrap, 'Gli hashtag scelti sono gia nel post.');\n            return;\n        }\n        var riga = daAggiungere.map(function (t) { return '#' + t; }).join(' ');\n        var separatore = '';\n        if (testo.length > 0) {\n            separatore = \/\\n\\s*$\/.test(testo) ? '' : '\\n\\n';\n        }\n        area.value = testo.replace(\/\\s+$\/, '') + (testo.length > 0 ? separatore : '') + riga;\n        aggiornaContatore(wrap);\n        area.focus();\n        mostraStato(wrap, daAggiungere.length + ' hashtag aggiunti al post.');\n        azioneDeseleziona(wrap);\n    }\n\n    function azioneDeseleziona(wrap) {\n        var chips = wrap.querySelectorAll('.lpe-chip.lpe-sel');\n        for (var i = 0; i < chips.length; i++) { chips[i].classList.remove('lpe-sel'); }\n        aggiornaConteggioTag(wrap);\n    }\n\n    function inizializzaHashtag(wrap) {\n        var url = wrap.getAttribute('data-ajax');\n        var boxWeb = wrap.querySelector('.lpe-chips-web');\n        var boxLi = wrap.querySelector('.lpe-chips-linkedin');\n        var info = wrap.querySelector('.lpe-info-web');\n        caricaHashtag(url).then(function (dati) {\n            disegnaChips(boxWeb, dati.web);\n            disegnaChips(boxLi, dati.linkedin);\n            if (dati.ora) {\n                info.textContent = dati.ok ? '(aggiornati alle ' + dati.ora + ')' : '(fonte non raggiungibile, ultimo elenco valido delle ' + dati.ora + ')';\n            } else {\n                info.textContent = '';\n            }\n        }).catch(function () {\n            disegnaChips(boxWeb, []);\n            disegnaChips(boxLi, []);\n            info.textContent = '(caricamento non riuscito)';\n        });\n        aggiornaConteggioTag(wrap);\n    }\n\n    function inizializza(wrap) {\n        if (wrap.getAttribute('data-pronto') === '1') { return; }\n        wrap.setAttribute('data-pronto', '1');\n\n        wrap.addEventListener('click', function (e) {\n            var btn = e.target.closest('button');\n            if (!btn || !wrap.contains(btn)) { return; }\n            var tipo = btn.getAttribute('data-azione');\n            var valore = btn.getAttribute('data-valore');\n            if (tipo === 'stile')       { azioneStile(wrap, valore); }\n            if (tipo === 'simbolo')     { azioneSimbolo(wrap, valore); }\n            if (tipo === 'copia')       { azioneCopia(wrap); }\n            if (tipo === 'svuota')      { azioneSvuota(wrap); }\n            if (tipo === 'chip')        { azioneChip(wrap, btn); }\n            if (tipo === 'aggiungitag') { azioneAggiungiTag(wrap); }\n            if (tipo === 'deseleziona') { azioneDeseleziona(wrap); }\n            if (tipo === 'emoji-pannello') { azioneEmojiPannello(wrap); }\n            if (tipo === 'emoji-cat')   { mostraCategoriaEmoji(wrap, parseInt(valore, 10)); }\n            if (tipo === 'emoji')       { azioneEmoji(wrap, valore); }\n            if (tipo === 'salvatxt')    { azioneSalvaTxt(wrap); }\n            if (tipo === 'mail-apri')   { azioneMailApri(wrap); }\n            if (tipo === 'mail-chiudi') { azioneMailChiudi(wrap); }\n            if (tipo === 'mail-invia')  { azioneMailInvia(wrap); }\n        });\n\n        \/\/ I pulsanti non devono togliere la selezione dall'area di testo\n        wrap.addEventListener('mousedown', function (e) {\n            if (e.target.closest('button')) { e.preventDefault(); }\n        });\n\n        wrap.querySelector('.lpe-area').addEventListener('input', function () {\n            aggiornaContatore(wrap);\n        });\n        aggiornaContatore(wrap);\n        inizializzaTooltip(wrap);\n        inizializzaHashtag(wrap);\n    }\n\n    function avvia() {\n        var lista = document.querySelectorAll('.lpe-wrap');\n        for (var i = 0; i < lista.length; i++) { inizializza(lista[i]); }\n    }\n\n    if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', avvia);\n    } else {\n        avvia();\n    }\n})();\n<\/script><div class=\"lpe-wrap\" data-limite=\"3000\" data-ajax=\"https:\/\/www.gestioneindustriale.it\/wp-admin\/admin-ajax.php\" data-nonce=\"\"><div class=\"lpe-barra\"><button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"grassetto\" title=\"Grassetto sulla selezione\"><b>G<\/b><\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"corsivo\" title=\"Corsivo sulla selezione\"><i>C<\/i><\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"grascors\" title=\"Grassetto e corsivo sulla selezione\"><b><i>GC<\/i><\/b><\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"normale\" title=\"Rimuovi formattazione dalla selezione\">Normale<\/button><span class=\"lpe-sep\"><\/span><button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"freccia\" title=\"Inserisci freccia\">&#10132;<\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"spunta\" title=\"Inserisci spunta\">&#10004;<\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"quadrato\" title=\"Inserisci quadratino\">&#9642;<\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"stella\" title=\"Inserisci stella\">&#9733;<\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"punto\" title=\"Inserisci punto elenco\">&#8226;<\/button><span class=\"lpe-sep\"><\/span><button type=\"button\" class=\"lpe-btn\" data-azione=\"emoji-pannello\" title=\"Mostra o nascondi le emoji\">&#128578; Emoji<\/button><\/div><div class=\"lpe-emoji-box\" style=\"display:none;\"><div class=\"lpe-emoji-tabs\"><\/div><div class=\"lpe-emoji-grid\"><\/div><\/div><textarea class=\"lpe-area\" style=\"height: 300px;\" placeholder=\"Scrivi qui il tuo post, seleziona le parole e premi G per il grassetto...\"><\/textarea><div class=\"lpe-piede\"><span class=\"lpe-contatore\">0 \/ 3000 caratteri<\/span><span class=\"lpe-stato\" aria-live=\"polite\"><\/span><span class=\"lpe-azioni-piede\"><button type=\"button\" class=\"lpe-btn\" data-azione=\"svuota\">Svuota<\/button> <button type=\"button\" class=\"lpe-btn\" data-azione=\"salvatxt\" title=\"Scarica il testo in un file .txt\">Salva .txt<\/button> <button type=\"button\" class=\"lpe-btn lpe-copia\" data-azione=\"copia\">Copia testo<\/button><\/span><\/div><div class=\"lpe-tag-box\"><div class=\"lpe-tag-sezione\"><div class=\"lpe-tag-titolo\">Hashtag di tendenza sul web <span class=\"lpe-tag-info lpe-info-web\">(caricamento...)<\/span><\/div><div class=\"lpe-chips lpe-chips-web\"><span class=\"lpe-tag-info\">Caricamento...<\/span><\/div><\/div><div class=\"lpe-tag-sezione\"><div class=\"lpe-tag-titolo\">Hashtag popolari su LinkedIn <span class=\"lpe-tag-info\">(lista curata)<\/span><\/div><div class=\"lpe-chips lpe-chips-linkedin\"><span class=\"lpe-tag-info\">Caricamento...<\/span><\/div><\/div><div class=\"lpe-tag-azioni\"><button type=\"button\" class=\"lpe-btn lpe-copia\" data-azione=\"aggiungitag\">Aggiungi al post<\/button><button type=\"button\" class=\"lpe-btn\" data-azione=\"deseleziona\">Deseleziona<\/button><span class=\"lpe-tag-conteggio\">Nessun hashtag selezionato<\/span><\/div><\/div><div class=\"lpe-nota\">Il grassetto e il corsivo usano caratteri Unicode: funzionano meglio su parole e frasi brevi. LinkedIn non ha un evidenziatore, usa i simboli per dare risalto. Gli hashtag di tendenza del web provengono da Mastodon; quelli LinkedIn sono una lista curata. Passa il mouse su un hashtag per leggerne una breve descrizione.<\/div><\/div>\n\n\n<style>\n\/* Stili dell'editor, tutti con prefisso lpe- per non confliggere col tema *\/\n.lpe-wrap { max-width: 720px; margin: 20px 0; padding: 16px; border: 1px solid rgb(209,213,219); border-radius: 10px; background: rgb(255,255,255); font-family: Arial, Helvetica, sans-serif; box-sizing: border-box; }\n.lpe-wrap * { box-sizing: border-box; }\n.lpe-barra { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }\n.lpe-sep { width: 1px; height: 26px; background: rgb(209,213,219); margin: 0 4px; }\n.lpe-btn { min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid rgb(156,163,175); border-radius: 6px; background: rgb(243,244,246); color: rgb(17,24,39); font-size: 15px; cursor: pointer; line-height: 1; }\n.lpe-btn:hover { background: rgb(219,234,254); border-color: rgb(10,102,194); }\n.lpe-btn:active { background: rgb(191,219,254); }\n.lpe-area { width: 100%; padding: 12px; border: 1px solid rgb(156,163,175); border-radius: 6px; font-size: 15px; line-height: 1.5; font-family: Arial, Helvetica, sans-serif; color: rgb(17,24,39); background: rgb(255,255,255); resize: vertical; }\n.lpe-area:focus { outline: 2px solid rgb(10,102,194); border-color: rgb(10,102,194); }\n.lpe-piede { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }\n.lpe-contatore { font-size: 13px; color: rgb(75,85,99); }\n.lpe-contatore.lpe-oltre { color: rgb(185,28,28); font-weight: bold; }\n.lpe-stato { font-size: 13px; color: rgb(21,128,61); min-height: 18px; }\n.lpe-copia { background: rgb(10,102,194); color: rgb(255,255,255); border-color: rgb(10,102,194); font-weight: bold; }\n.lpe-copia:hover { background: rgb(8,81,155); border-color: rgb(8,81,155); }\n.lpe-nota { margin-top: 8px; font-size: 12px; color: rgb(107,114,128); }\n<\/style>\n<script>\n(function () {\n    'use strict';\n\n    \/\/ Offset dei blocchi Unicode \"Mathematical Sans-Serif\" (nessun carattere speciale nel sorgente)\n    \/\/ [maiuscole, minuscole, cifre]\n    var STILI = {\n        grassetto:  { maiu: 0x1D5D4, mini: 0x1D5EE, cifre: 0x1D7EC },\n        corsivo:    { maiu: 0x1D608, mini: 0x1D622, cifre: null },\n        grascors:   { maiu: 0x1D63C, mini: 0x1D656, cifre: 0x1D7EC }\n    };\n\n    \/\/ Tabella inversa per rimuovere la formattazione\n    var INVERSA = {};\n    (function costruisciInversa() {\n        var nome, s, i;\n        for (nome in STILI) {\n            s = STILI[nome];\n            for (i = 0; i < 26; i++) {\n                INVERSA[s.maiu + i] = String.fromCharCode(65 + i);\n                INVERSA[s.mini + i] = String.fromCharCode(97 + i);\n            }\n            if (s.cifre !== null) {\n                for (i = 0; i < 10; i++) {\n                    INVERSA[s.cifre + i] = String.fromCharCode(48 + i);\n                }\n            }\n        }\n    })();\n\n    \/\/ Converte un singolo carattere nello stile richiesto\n    function convertiCarattere(ch, stile) {\n        var c = ch.codePointAt(0);\n        var s = STILI[stile];\n        if (c >= 65 && c <= 90)  { return String.fromCodePoint(s.maiu + (c - 65)); }\n        if (c >= 97 && c <= 122) { return String.fromCodePoint(s.mini + (c - 97)); }\n        if (c >= 48 && c <= 57 && s.cifre !== null) { return String.fromCodePoint(s.cifre + (c - 48)); }\n        return ch;\n    }\n\n    \/\/ Applica lo stile a una stringa. Prima riporta tutto a testo normale,\n    \/\/ poi scompone le lettere accentate (e + accento) cosi anche \"e'\" resta formattata.\n    function applicaStile(testo, stile) {\n        var pulito = rimuoviStile(testo).normalize('NFD');\n        var risultato = '';\n        Array.from(pulito).forEach(function (ch) {\n            risultato += convertiCarattere(ch, stile);\n        });\n        return risultato;\n    }\n\n    \/\/ Riporta il testo a caratteri normali\n    function rimuoviStile(testo) {\n        var risultato = '';\n        Array.from(testo).forEach(function (ch) {\n            var c = ch.codePointAt(0);\n            risultato += (INVERSA[c] !== undefined) ? INVERSA[c] : ch;\n        });\n        return risultato.normalize('NFC');\n    }\n\n    \/\/ Simboli di evidenziazione (codici Unicode, nessun carattere speciale nel sorgente)\n    var SIMBOLI = {\n        freccia: '\\u2794',\n        spunta:  '\\u2714',\n        quadrato:'\\u25AA',\n        stella:  '\\u2605',\n        punto:   '\\u2022'\n    };\n\n    function contaCaratteri(testo) {\n        return Array.from(testo).length;\n    }\n\n    function aggiornaContatore(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        var cont = wrap.querySelector('.lpe-contatore');\n        var limite = parseInt(wrap.getAttribute('data-limite'), 10);\n        var n = contaCaratteri(area.value);\n        cont.textContent = n + ' \/ ' + limite + ' caratteri';\n        if (n > limite) {\n            cont.classList.add('lpe-oltre');\n        } else {\n            cont.classList.remove('lpe-oltre');\n        }\n    }\n\n    function mostraStato(wrap, messaggio) {\n        var el = wrap.querySelector('.lpe-stato');\n        el.textContent = messaggio;\n        window.clearTimeout(el._timer);\n        el._timer = window.setTimeout(function () { el.textContent = ''; }, 2500);\n    }\n\n    \/\/ Applica stile alla selezione corrente\n    function azioneStile(wrap, stile) {\n        var area = wrap.querySelector('.lpe-area');\n        var ini = area.selectionStart;\n        var fin = area.selectionEnd;\n        if (ini === fin) {\n            mostraStato(wrap, 'Seleziona prima le parole da formattare.');\n            return;\n        }\n        var selezione = area.value.substring(ini, fin);\n        var nuovo = (stile === 'normale') ? rimuoviStile(selezione) : applicaStile(selezione, stile);\n        area.value = area.value.substring(0, ini) + nuovo + area.value.substring(fin);\n        area.focus();\n        area.setSelectionRange(ini, ini + nuovo.length);\n        aggiornaContatore(wrap);\n    }\n\n    \/\/ Inserisce un simbolo nella posizione del cursore\n    function azioneSimbolo(wrap, nome) {\n        var area = wrap.querySelector('.lpe-area');\n        var ini = area.selectionStart;\n        var fin = area.selectionEnd;\n        var simbolo = SIMBOLI[nome] + ' ';\n        area.value = area.value.substring(0, ini) + simbolo + area.value.substring(fin);\n        var pos = ini + simbolo.length;\n        area.focus();\n        area.setSelectionRange(pos, pos);\n        aggiornaContatore(wrap);\n    }\n\n    \/\/ Copia tutto il testo negli appunti\n    function azioneCopia(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        var testo = area.value;\n        if (testo === '') {\n            mostraStato(wrap, 'Non c\\'e nulla da copiare.');\n            return;\n        }\n        function ok() { mostraStato(wrap, 'Copiato! Ora incollalo su LinkedIn.'); }\n        function alternativa() {\n            \/\/ Metodo di riserva per browser piu vecchi\n            area.focus();\n            area.select();\n            try {\n                document.execCommand('copy');\n                ok();\n            } catch (e) {\n                mostraStato(wrap, 'Copia non riuscita: usa Ctrl+C.');\n            }\n        }\n        if (navigator.clipboard && navigator.clipboard.writeText) {\n            navigator.clipboard.writeText(testo).then(ok, alternativa);\n        } else {\n            alternativa();\n        }\n    }\n\n    function azioneSvuota(wrap) {\n        var area = wrap.querySelector('.lpe-area');\n        if (area.value === '') { return; }\n        if (window.confirm('Cancellare tutto il testo?')) {\n            area.value = '';\n            aggiornaContatore(wrap);\n            area.focus();\n        }\n    }\n\n    function inizializza(wrap) {\n        if (wrap.getAttribute('data-pronto') === '1') { return; }\n        wrap.setAttribute('data-pronto', '1');\n\n        wrap.addEventListener('click', function (e) {\n            var btn = e.target.closest('button');\n            if (!btn || !wrap.contains(btn)) { return; }\n            var tipo = btn.getAttribute('data-azione');\n            var valore = btn.getAttribute('data-valore');\n            if (tipo === 'stile')   { azioneStile(wrap, valore); }\n            if (tipo === 'simbolo') { azioneSimbolo(wrap, valore); }\n            if (tipo === 'copia')   { azioneCopia(wrap); }\n            if (tipo === 'svuota')  { azioneSvuota(wrap); }\n        });\n\n        \/\/ I pulsanti non devono togliere la selezione dall'area di testo\n        wrap.addEventListener('mousedown', function (e) {\n            if (e.target.closest('button')) { e.preventDefault(); }\n        });\n\n        wrap.querySelector('.lpe-area').addEventListener('input', function () {\n            aggiornaContatore(wrap);\n        });\n        aggiornaContatore(wrap);\n    }\n\n    function avvia() {\n        var lista = document.querySelectorAll('.lpe-wrap');\n        for (var i = 0; i < lista.length; i++) { inizializza(lista[i]); }\n    }\n\n    if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', avvia);\n    } else {\n        avvia();\n    }\n})();\n<\/script>\n        <div class=\"lpe-wrap\" data-limite=\"3000\">\n    <div class=\"lpe-barra\">\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"grassetto\" title=\"Grassetto sulla selezione\"><b>G<\/b><\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"corsivo\" title=\"Corsivo sulla selezione\"><i>C<\/i><\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"grascors\" title=\"Grassetto e corsivo sulla selezione\"><b><i>GC<\/i><\/b><\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"stile\" data-valore=\"normale\" title=\"Rimuovi formattazione dalla selezione\">Normale<\/button>\n        <span class=\"lpe-sep\"><\/span>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"freccia\" title=\"Inserisci freccia\">&#10132;<\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"spunta\" title=\"Inserisci spunta\">&#10004;<\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"quadrato\" title=\"Inserisci quadratino\">&#9642;<\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"stella\" title=\"Inserisci stella\">&#9733;<\/button>\n        <button type=\"button\" class=\"lpe-btn\" data-azione=\"simbolo\" data-valore=\"punto\" title=\"Inserisci punto elenco\">&#8226;<\/button>\n    <\/div>\n\n    <textarea class=\"lpe-area\" style=\"height: 300px;\" placeholder=\"Scrivi qui il tuo post, seleziona le parole e premi G per il grassetto...\"><\/textarea>\n\n    <div class=\"lpe-piede\">\n        <span class=\"lpe-contatore\">0 \/ 3000 caratteri<\/span>\n        <span class=\"lpe-stato\" aria-live=\"polite\"><\/span>\n        <span>\n            <button type=\"button\" class=\"lpe-btn\" data-azione=\"svuota\">Svuota<\/button>\n            <button type=\"button\" class=\"lpe-btn lpe-copia\" data-azione=\"copia\">Copia testo<\/button>\n        <\/span>\n    <\/div>\n    <div class=\"lpe-nota\">Il grassetto e il corsivo usano caratteri Unicode: funzionano meglio su parole e frasi brevi. LinkedIn non ha un evidenziatore, usa i simboli per dare risalto.<\/div>\n<\/div>\n    \n\n\n\n<div style=\"\n  background: linear-gradient(135deg, #eef4ff, #dce8ff);\n  border: 1px solid #a9c6ff;\n  border-radius: 10px;\n  padding: 18px 22px;\n  margin: 20px 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  font-family: Arial, sans-serif;\n\">\n  <div style=\"font-size: 16px; color: #1a2b4c;\">\n    \ud83d\udd04 Questa \u00e9 la versione legacy in formato <strong> Visual Basic 6.0<\/strong> che \u00e8 stato creato ad hoc per il portale www.gestioneindustriale.it <br><br> Sul  portale di LL Lavorazione Lamiera Srl \u00e9 attiva la nuova versione  <strong>4.0<\/strong> <br><br>I dati in ingresso sono gli stessi, il risultato \u00e8 tutto da vedere!\n  <\/div><br>\n  <a href=\"https:\/\/www.ll1970.it\/\" style=\"\n    background: #2b56d6;\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    font-weight: bold;\n    white-space: nowrap;\n  \">\n    Guarda sul sito \u2192\n  <\/a>\n<\/div>\n\n\n    <style>\n        #ll1970-vb6-window {\n            font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;\n            font-size: 12px;\n            color: #000;\n            background: #d4d0c8;\n            border: 2px solid #fff;\n            box-shadow:\n                inset -1px -1px 0 #404040,\n                inset 1px 1px 0 #dfdfdf,\n                inset -2px -2px 0 #808080,\n                inset 2px 2px 0 #fff;\n            max-width: 1150px;\n            margin: 20px auto;\n        }\n        #ll1970-vb6-titlebar {\n            background: linear-gradient(90deg, #000080, #1084d0);\n            color: #fff;\n            font-weight: bold;\n            padding: 5px 8px;\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            font-size: 13px;\n        }\n        #ll1970-vb6-titlebar .ll1970-title-buttons span {\n            display: inline-block;\n            width: 16px;\n            height: 14px;\n            background: #d4d0c8;\n            color: #000;\n            text-align: center;\n            line-height: 14px;\n            font-size: 10px;\n            margin-left: 2px;\n            border: 1px solid #fff;\n            box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #fff;\n        }\n        #ll1970-vb6-body {\n            padding: 14px;\n        }\n        .ll1970-groupbox {\n            position: relative;\n            border: 1px solid #808080;\n            box-shadow: inset -1px -1px 0 #fff;\n            margin-top: 14px;\n            padding: 14px 12px 12px 12px;\n        }\n        .ll1970-groupbox-legend {\n            position: absolute;\n            top: -9px;\n            left: 10px;\n            background: #d4d0c8;\n            padding: 0 4px;\n            font-weight: bold;\n            font-size: 12px;\n        }\n        .ll1970-radio-group {\n            display: flex;\n            gap: 18px;\n            align-items: center;\n            flex-wrap: wrap;\n        }\n        .ll1970-radio-item {\n            display: inline-flex;\n            align-items: center;\n            gap: 5px;\n            cursor: pointer;\n            user-select: none;\n        }\n        .ll1970-radio-dot {\n            width: 12px;\n            height: 12px;\n            border-radius: 50%;\n            border: 1px solid #404040;\n            box-shadow: inset 1px 1px 0 #fff;\n            background: #fff;\n            display: inline-block;\n            position: relative;\n            flex-shrink: 0;\n        }\n        .ll1970-radio-item.ll1970-radio-selected .ll1970-radio-dot::after {\n            content: '';\n            position: absolute;\n            top: 3px; left: 3px;\n            width: 6px; height: 6px;\n            border-radius: 50%;\n            background: #000080;\n        }\n        .ll1970-vb6-table {\n            width: 100%;\n            border-collapse: collapse;\n            background: #fff;\n            font-size: 11px;\n        }\n        .ll1970-vb6-table th {\n            background: #d4d0c8;\n            border: 1px solid #808080;\n            padding: 3px 6px;\n            text-align: left;\n            font-weight: bold;\n        }\n        .ll1970-vb6-table td {\n            border: 1px solid #c0c0c0;\n            padding: 3px 6px;\n        }\n        .ll1970-stato-riga {\n            display: flex;\n            align-items: center;\n            margin-bottom: 5px;\n        }\n        .ll1970-stato-swatch {\n            width: 18px;\n            height: 18px;\n            margin-right: 8px;\n            border: 1px solid #404040;\n            box-shadow: inset 1px 1px 0 #fff;\n            flex-shrink: 0;\n        }\n        .ll1970-stato-nome { width: 110px; }\n        .ll1970-stato-pct { width: 65px; }\n        #ll1970-foto-macchina {\n            width: 100%;\n            height: auto;\n            display: none;\n            border: 1px solid #808080;\n            box-shadow: inset -1px -1px 0 #fff;\n        }\n        #ll1970-timestamp {\n            font-size: 11px;\n            color: #444;\n            margin-top: 10px;\n        }\n    <\/style>\n\n    <div id=\"ll1970-vb6-window\">\n        <div id=\"ll1970-vb6-titlebar\">\n            <span>SHREWD - Monitoraggio Produzione<\/span>\n            <span class=\"ll1970-title-buttons\"><span>_<\/span><span>&#9633;<\/span><span>X<\/span><\/span>\n        <\/div>\n\n        <div id=\"ll1970-vb6-body\">\n\n            <div class=\"ll1970-groupbox\">\n                <span class=\"ll1970-groupbox-legend\">Selezione macchinario<\/span>\n                <div id=\"ll1970-selettore-wrapper\" class=\"ll1970-radio-group\">\n                    <span class=\"ll1970-radio-item ll1970-btn-matricola\" data-matricola=\"LL773\"><i class=\"ll1970-radio-dot\"><\/i>LL773<\/span>\n                    <span class=\"ll1970-radio-item ll1970-btn-matricola\" data-matricola=\"TUTTI\"><i class=\"ll1970-radio-dot\"><\/i>TUTTI<\/span>\n                    <span class=\"ll1970-radio-item ll1970-btn-matricola\" data-matricola=\"LL752\"><i class=\"ll1970-radio-dot\"><\/i>LL752<\/span>\n                <\/div>\n            <\/div>\n\n            <div style=\"display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap;\">\n                <div class=\"ll1970-groupbox\" style=\"flex:0 0 380px;\">\n                    <span class=\"ll1970-groupbox-legend\">Macchinario<\/span>\n                    <img decoding=\"async\" id=\"ll1970-foto-macchina\" src=\"\" alt=\"Foto macchinario\" \/>\n                <\/div>\n\n                <div class=\"ll1970-groupbox\" style=\"flex:0 0 380px;\">\n                    <span class=\"ll1970-groupbox-legend\">Tempo di lavoro<\/span>\n                    <div id=\"ll1970-stati-wrapper\"><\/div>\n                <\/div>\n\n                <div class=\"ll1970-groupbox\" style=\"flex:1 1 320px;\">\n                    <span class=\"ll1970-groupbox-legend\">Riepilogo giornaliero Taglio Singolo<\/span>\n                    <table id=\"ll1970-taglio-table\" class=\"ll1970-vb6-table\"><\/table>\n                <\/div>\n\n                <div class=\"ll1970-groupbox\" style=\"flex:1 1 320px;\">\n                    <span class=\"ll1970-groupbox-legend\">Riepilogo giornaliero Piano Produzione<\/span>\n                    <table id=\"ll1970-piano-table\" class=\"ll1970-vb6-table\"><\/table>\n                <\/div>\n            <\/div>\n\n            <div class=\"ll1970-groupbox\">\n                <span class=\"ll1970-groupbox-legend\">Log produzione (ultime righe)<\/span>\n                <table id=\"ll1970-log-table\" class=\"ll1970-vb6-table\"><\/table>\n            <\/div>\n\n            <p id=\"ll1970-timestamp\"><\/p>\n        <\/div>\n    <\/div>\n\n    <script>\n\n    (function () {\n        var endpoint = 'https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/ll1970\/v1\/livedata';\n\n        \/\/ Foto reali dei macchinari\n        var fotoMacchine = {\n            'LL773': 'https:\/\/www.ll1970.it\/wp-content\/uploads\/2024\/09\/LL773.jpg',\n            'LL752': 'https:\/\/www.ll1970.it\/wp-content\/uploads\/2024\/09\/LL752.jpg',\n            'TUTTI': 'https:\/\/www.ll1970.it\/wp-content\/uploads\/2026\/07\/neve-marketing-logo-2.jpg'\n        };\n\n        \/\/ Chiave di salvataggio della selezione nel browser (persistente\n        \/\/ tra una visita e l'altra sullo stesso PC\/browser)\n        var CHIAVE_STORAGE = 'll1970_matricola_selezionata';\n\n        var matricolaCorrente = localStorage.getItem(CHIAVE_STORAGE) || 'TUTTI';\n        var matricoleValide = ['LL773', 'LL752', 'TUTTI'];\n        if (matricoleValide.indexOf(matricolaCorrente) === -1) {\n            matricolaCorrente = 'TUTTI';\n        }\n\n        function aggiornaTabellaLog(righe) {\n            var html = '<tr><th>Programma<\/th><th>Matricola<\/th><th>Modalita<\/th><th>Lam Nr<\/th><th>Valore<\/th><th>Situazione<\/th><th>Orario<\/th><th>Secondi<\/th><\/tr>';\n            righe.forEach(function (r) {\n                html += '<tr><td>' + r.programma + '<\/td><td>' + r.matricola + '<\/td><td>' + r.modalita + '<\/td><td>' + r.lam_nr + '<\/td><td>' + r.valore + '<\/td><td>' + r.situazione + '<\/td><td>' + r.orario + '<\/td><td>' + r.secondi + '<\/td><\/tr>';\n            });\n            document.getElementById('ll1970-log-table').innerHTML = html;\n        }\n\n        function aggiornaTabellaRiepilogo(idTabella, righe) {\n            var html = '<tr><th>N.<\/th><th>Codice<\/th><th>Tempo ciclo (sec)<\/th><th>Macchinario<\/th><\/tr>';\n            righe.forEach(function (r) {\n                html += '<tr><td>' + r.n + '<\/td><td>' + r.codice + '<\/td><td>' + r.tempo_ciclo + '<\/td><td>' + r.macchinario + '<\/td><\/tr>';\n            });\n            document.getElementById(idTabella).innerHTML = html;\n        }\n\n        function aggiornaStati(stati, matricolaRichiesta, matricolaAttiva) {\n            var html = '';\n            if (stati.length === 0) {\n                html = '<p style=\"font-size:11px; color:#555; font-style:italic;\">';\n                if (matricolaAttiva) {\n                    html += 'Percentuali disponibili solo per la macchina attualmente attiva su VB6 (' + matricolaAttiva + ').';\n                } else {\n                    html += 'Percentuali non disponibili al momento.';\n                }\n                html += '<\/p>';\n            } else {\n                stati.forEach(function (s) {\n                    html += '<div class=\"ll1970-stato-riga\">';\n                    html += '<div class=\"ll1970-stato-swatch\" style=\"background-color: rgb(' + s.colore + ');\"><\/div>';\n                    html += '<div class=\"ll1970-stato-nome\">' + s.stato + '<\/div>';\n                    html += '<div class=\"ll1970-stato-pct\">' + s.percentuale + '<\/div>';\n                    html += '<div>' + s.minuti + ' min<\/div>';\n                    html += '<\/div>';\n                });\n            }\n            document.getElementById('ll1970-stati-wrapper').innerHTML = html;\n        }\n\n        function aggiornaFoto(matricola) {\n            var img = document.getElementById('ll1970-foto-macchina');\n            var url = fotoMacchine[matricola];\n            if (url) {\n                img.src = url;\n                img.style.display = 'inline-block';\n            } else {\n                img.style.display = 'none';\n            }\n        }\n\n        function caricaSnapshot() {\n            fetch(endpoint + '?matricola=' + encodeURIComponent(matricolaCorrente))\n                .then(function (resp) { return resp.json(); })\n                .then(function (dati) {\n                    aggiornaTabellaLog(dati.log_righe || []);\n                    aggiornaTabellaRiepilogo('ll1970-taglio-table', dati.taglio_singolo || []);\n                    aggiornaTabellaRiepilogo('ll1970-piano-table', dati.piano_produzione || []);\n                    aggiornaStati(dati.stati_lavoro || [], dati.matricola, dati.matricola_attiva);\n                    document.getElementById('ll1970-timestamp').innerText = dati.timestamp\n                        ? ('Ultimo aggiornamento: ' + dati.timestamp + ' (matricola: ' + dati.matricola + ')')\n                        : 'In attesa di dati per ' + matricolaCorrente + '...';\n                })\n                .catch(function (err) {\n                    console.error('Errore caricamento snapshot LL1970:', err);\n                });\n        }\n\n        \/\/ Gestione click sui \"radio\" selettore matricola\n        var pulsanti = document.querySelectorAll('.ll1970-btn-matricola');\n        pulsanti.forEach(function (btn) {\n            btn.addEventListener('click', function () {\n                matricolaCorrente = btn.getAttribute('data-matricola');\n                localStorage.setItem(CHIAVE_STORAGE, matricolaCorrente);\n                aggiornaFoto(matricolaCorrente);\n                evidenziaPulsanteAttivo();\n                caricaSnapshot();\n            });\n        });\n\n        function evidenziaPulsanteAttivo() {\n            pulsanti.forEach(function (b) {\n                if (b.getAttribute('data-matricola') === matricolaCorrente) {\n                    b.classList.add('ll1970-radio-selected');\n                } else {\n                    b.classList.remove('ll1970-radio-selected');\n                }\n            });\n        }\n\n        \/\/ Ripristina la selezione salvata (o il default TUTTI) al caricamento\n        evidenziaPulsanteAttivo();\n        aggiornaFoto(matricolaCorrente);\n        caricaSnapshot();\n        setInterval(caricaSnapshot, 5000);\n    })();\n    <\/script>\n    \n\n\n    <style>\n    .ll1970-macchina-hover { position: relative; }\n    .ll1970-foto-hover {\n        display: block;\n        opacity: 0;\n        position: absolute;\n        bottom: 110%;\n        left: 50%;\n        transform: translateX(-50%);\n        width: 320px;\n        max-width: 320px;\n        border: 2px solid #fff;\n        box-shadow: 0 2px 10px rgba(0,0,0,0.35);\n        border-radius: 4px;\n        z-index: 50;\n        pointer-events: none;\n        transition: opacity 0.25s ease;\n    }\n    .ll1970-macchina-hover:hover .ll1970-foto-hover {\n        opacity: 1;\n    }\n    .ll1970-foto-hover::after {\n        content: attr(alt);\n        display: block;\n        background: rgba(0,0,0,0.7);\n        color: #fff;\n        font-size: 11px;\n        text-align: center;\n        padding: 3px 0;\n    }\n    .ll1970-led-badge {\n        position: absolute;\n        top: 50%;\n        left: 50%;\n        transform: translate(-50%, -50%);\n        width: 24px;\n        height: 24px;\n        border-radius: 50%;\n        border: 2px solid rgba(255,255,255,0.85);\n        z-index: 6;\n        opacity: 0.85;\n    }\n    <\/style>\n    <div style=\"width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;padding:0 20px;box-sizing:border-box;font-family:inherit;\">\n    <div style=\"max-width:1900px;margin:0 auto;display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;\">\n\n        <div id=\"ll1970-pannello-stats\" style=\"flex:0 0 300px;background:#f7f7f7;border:2px solid #888;border-radius:6px;padding:16px;box-sizing:border-box;\">\n            <h3 style=\"margin:0 0 12px 0;font-size:15px;\">Riepilogo presenze<\/h3>\n            <div style=\"position:relative;width:150px;height:150px;margin:0 auto 16px auto;\">\n                <div id=\"ll1970-torta\" style=\"width:150px;height:150px;border-radius:50%;background:conic-gradient(#ddd 0% 100%);\"><\/div>\n                <div style=\"position:absolute;left:15px;top:15px;width:120px;height:120px;border-radius:50%;background:#f7f7f7;display:flex;align-items:center;justify-content:center;flex-direction:column;\">\n                    <span id=\"ll1970-perc-globale\" style=\"font-size:20px;font-weight:bold;\">0%<\/span>\n                    <span style=\"font-size:10px;color:#666;\">presenti<\/span>\n                <\/div>\n            <\/div>\n            <div style=\"font-size:13px;line-height:1.7;\">\n                <div><strong>Totale:<\/strong> <span id=\"ll1970-testo-globale\">-<\/span><\/div>\n                <div style=\"margin-top:8px;\"><strong>Uomini:<\/strong> <span id=\"ll1970-testo-m\">-<\/span><\/div>\n                <div><strong>Donne:<\/strong> <span id=\"ll1970-testo-f\">-<\/span><\/div>\n            <\/div>\n        <\/div>\n\n        <div id=\"ll1970-colonna-planimetria\" style=\"flex:1 1 900px;min-width:0;\">\n            <div id=\"ll1970-planimetria\" style=\"position:relative;width:100%;aspect-ratio:60\/25;background:#e8e8e8;border:2px solid #888;\">\n\n                <!-- ============ ATTREZZERIA ============ -->\n                <div class=\"ll1970-zona\" data-reparto=\"ATTREZZERIA\" style=\"position:absolute;left:0;top:0;width:83.33%;height:50%;background:#fdebd0;border-right:1px solid #999;border-bottom:1px solid #999;box-sizing:border-box;\">\n                   <span style=\"position:absolute;left:6px;bottom:4px;font-size:12px;font-weight:bold;\">ATTREZZERIA<\/span>\n\n                    <div id=\"laser-2d\" data-matricola=\"LL752\" data-badge=\"707742\" class=\"ll1970-macchina-hover\" style=\"position:absolute;right:20%;top:10%;width:20%;height:35%;\">\n                        <svg viewBox=\"0 0 100 30\" width=\"80%\" height=\"100%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"8\" width=\"100\" height=\"20\" fill=\"#5b6b7a\"\/><rect x=\"0\" y=\"0\" width=\"24\" height=\"10\" fill=\"#3d4a56\"\/><circle cx=\"12\" cy=\"0\" r=\"4\" fill=\"#e0563a\"\/><line x1=\"18\" y1=\"0\" x2=\"92\" y2=\"22\" stroke=\"#e0563a\" stroke-width=\"2\"\/><rect x=\"88\" y=\"16\" width=\"12\" height=\"12\" fill=\"#8a97a3\"\/><\/svg>\n                        <div style=\"text-align:center;font-size:10px;color:#555;\">Laser 2D LL752<\/div>\n                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL752.jpg\" alt=\"LL752\">\n                        <button type=\"button\" onclick=\"ll1970ApriDettaglio('LL752')\" title=\"Lavorazioni in corso\" style=\"position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;border:1px solid #888;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;z-index:8;\">\n                            <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#333\" stroke-width=\"2.5\"><circle cx=\"10\" cy=\"10\" r=\"7\"><\/circle><line x1=\"21\" y1=\"21\" x2=\"15\" y2=\"15\"><\/line><\/svg>\n                        <\/button>\n                    <\/div>\n\n                    <div id=\"laser-3d\" data-matricola=\"LL773\" data-badge=\"737213\" class=\"ll1970-macchina-hover\" style=\"position:absolute;right:1%;top:40%;width:15%;height:50%;\">\n                        <svg viewBox=\"0 0 30 100\" width=\"100%\" height=\"100%\" preserveAspectRatio=\"none\"><rect x=\"6\" y=\"0\" width=\"18\" height=\"100\" fill=\"#5b6b7a\"\/><rect x=\"0\" y=\"0\" width=\"10\" height=\"24\" fill=\"#3d4a56\"\/><circle cx=\"0\" cy=\"12\" r=\"4\" fill=\"#e0563a\"\/><line x1=\"0\" y1=\"20\" x2=\"20\" y2=\"82\" stroke=\"#e0563a\" stroke-width=\"2\"\/><rect x=\"10\" y=\"78\" width=\"14\" height=\"14\" fill=\"#8a97a3\"\/><\/svg>\n                        <div style=\"text-align:center;font-size:10px;color:#555;\">Laser 3D LL773<\/div>\n                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL773.jpg\" alt=\"LL773\">\n                        <button type=\"button\" onclick=\"ll1970ApriDettaglio('LL773')\" title=\"Lavorazioni in corso\" style=\"position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;border:1px solid #888;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;z-index:8;\">\n                            <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#333\" stroke-width=\"2.5\"><circle cx=\"10\" cy=\"10\" r=\"7\"><\/circle><line x1=\"21\" y1=\"21\" x2=\"15\" y2=\"15\"><\/line><\/svg>\n                        <\/button>\n                    <\/div>\n\n                    <div style=\"position:absolute;left:2%;top:8%;width:58%;height:88%;\">\n\n                        <div id=\"macchina-LL119\" data-matricola=\"LL119\" data-badge=\"705757\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:60%;top:2%;width:22%;height:20%;\">\n                            <svg viewBox=\"0 0 40 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"14\" width=\"32\" height=\"16\" fill=\"#5b6b7a\"\/><rect x=\"8\" y=\"4\" width=\"6\" height=\"12\" fill=\"#3d4a56\"\/><circle cx=\"11\" cy=\"4\" r=\"2\" fill=\"#e0a83a\"\/><rect x=\"20\" y=\"18\" width=\"12\" height=\"8\" fill=\"#3d4a56\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL119<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL119.jpg\" alt=\"LL119\">\n                        <\/div>\n\n                        <div id=\"macchina-LL745\" data-matricola=\"LL745\" data-badge=\"759421\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:5%;top:22%;width:26%;height:36%;\">\n                            <svg viewBox=\"0 0 34 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"16\" width=\"26\" height=\"12\" fill=\"#6b7a89\"\/><rect x=\"12\" y=\"4\" width=\"10\" height=\"14\" fill=\"#8a97a3\"\/><rect x=\"9\" y=\"2\" width=\"16\" height=\"4\" fill=\"#3d4a56\"\/><circle cx=\"17\" cy=\"24\" r=\"2\" fill=\"#e0a83a\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL745<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL745.jpg\" alt=\"LL745\">\n                        <\/div>\n\n                        <div id=\"macchina-LL726\" data-matricola=\"LL726\" data-badge=\"708018\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:33%;top:22%;width:26%;height:36%;\">\n                            <svg viewBox=\"0 0 34 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"16\" width=\"26\" height=\"12\" fill=\"#6b7a89\"\/><rect x=\"12\" y=\"4\" width=\"10\" height=\"14\" fill=\"#8a97a3\"\/><rect x=\"9\" y=\"2\" width=\"16\" height=\"4\" fill=\"#3d4a56\"\/><circle cx=\"17\" cy=\"24\" r=\"2\" fill=\"#e0a83a\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL726<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL726.jpg\" alt=\"LL726\">\n                        <\/div>\n\n                        <div id=\"macchina-LL734\" data-matricola=\"LL734\" data-badge=\"705757\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:60%;top:26%;width:22%;height:20%;\">\n                            <svg viewBox=\"0 0 40 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"14\" width=\"32\" height=\"16\" fill=\"#5b6b7a\"\/><rect x=\"8\" y=\"4\" width=\"6\" height=\"12\" fill=\"#3d4a56\"\/><circle cx=\"11\" cy=\"4\" r=\"2\" fill=\"#e0a83a\"\/><rect x=\"20\" y=\"18\" width=\"12\" height=\"8\" fill=\"#3d4a56\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL734<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL734.jpg\" alt=\"LL734\">\n                        <\/div>\n                       \n                        <div id=\"macchina-LL742\" data-matricola=\"LL742\" data-badge=\"705974\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:5%;top:66%;width:14%;height:30%;display:flex;flex-direction:column;align-items:center;justify-content:center;\">\n                            <div style=\"transform:rotate(90deg);width:75%;\">\n                                <svg viewBox=\"0 0 34 40\" width=\"100%\" height=\"auto\"><rect x=\"6\" y=\"30\" width=\"22\" height=\"8\" fill=\"#5b6b7a\"\/><circle cx=\"17\" cy=\"16\" r=\"12\" fill=\"#8a97a3\"\/><circle cx=\"17\" cy=\"16\" r=\"6\" fill=\"#3d4a56\"\/><\/svg>\n                            <\/div>\n                            <div style=\"text-align:center;font-size:10px;color:#555;margin-top:4px;\">LL742<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL742.jpg\" alt=\"LL742\">\n                        <\/div>\n\n                        <div id=\"macchina-LL708\" data-matricola=\"LL708\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:24%;top:60%;width:26%;height:36%;\">\n                            <svg viewBox=\"0 0 34 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"16\" width=\"26\" height=\"12\" fill=\"#6b7a89\"\/><rect x=\"12\" y=\"4\" width=\"10\" height=\"14\" fill=\"#8a97a3\"\/><rect x=\"9\" y=\"2\" width=\"16\" height=\"4\" fill=\"#3d4a56\"\/><circle cx=\"17\" cy=\"24\" r=\"2\" fill=\"#e0a83a\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL708<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL708.jpg\" alt=\"LL708\">\n                        <\/div>\n\n                        <div id=\"macchina-LL763\" data-matricola=\"LL763\" data-badge=\"757576\" class=\"ll1970-macchina-hover\" style=\"position:absolute;left:60%;top:60%;width:26%;height:36%;\">\n                            <svg viewBox=\"0 0 34 34\" width=\"100%\" height=\"88%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"4\" y=\"16\" width=\"26\" height=\"12\" fill=\"#6b7a89\"\/><rect x=\"12\" y=\"4\" width=\"10\" height=\"14\" fill=\"#8a97a3\"\/><rect x=\"9\" y=\"2\" width=\"16\" height=\"4\" fill=\"#3d4a56\"\/><circle cx=\"17\" cy=\"24\" r=\"2\" fill=\"#e0a83a\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:10px;color:#555;\">LL763<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL763.jpg\" alt=\"LL763\">\n                        <\/div>\n\n                    <\/div>\n                <\/div>\n\n                <!-- ============ PRODUZIONE: 3 sottoreparti ============ -->\n                <div class=\"ll1970-zona\" data-reparto=\"PRODUZIONE\" style=\"position:absolute;left:0;bottom:0;width:83.33%;height:50%;background:#d5f5e3;border-right:1px solid #999;box-sizing:border-box;display:flex;\">\n                    <span style=\"position:absolute;right:6px;bottom:4px;font-size:12px;font-weight:bold;\">PRODUZIONE<\/span>\n\n                    <!-- Stampaggio: 15 presse (7 a sx in 2 file 4+3, corridoio, 8 a dx in griglia 4x2) - 50% dello spazio -->\n                    <div style=\"flex:2;position:relative;border-right:1px solid #b8ddc4;box-sizing:border-box;\">\n                        <span style=\"position:absolute;left:4px;top:2px;font-size:10px;color:#3a6b4a;\">Stampaggio<\/span>\n                        <div style=\"position:absolute;left:2%;top:14%;width:96%;height:82%;display:flex;\">\n\n                            <div style=\"flex:1.4;display:flex;flex-direction:column;\">\n                                <div style=\"flex:1;display:flex;gap:4%;\">\n                                    <div id=\"pressa-1\" data-matricola=\"PR-201\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL007<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL007.jpg\" alt=\"PR-201\">\n                                    <\/div>\n                                    <div id=\"pressa-2\" data-matricola=\"PR-202\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL039<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL039.jpg\" alt=\"PR-202\">\n                                    <\/div>\n                                    <div id=\"pressa-3\" data-matricola=\"PR-203\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL012<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL012.jpg\" alt=\"PR-203\">\n                                    <\/div>\n                                    <div id=\"pressa-4\" data-matricola=\"PR-204\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL011<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL011.jpg\" alt=\"PR-204\">\n                                    <\/div>\n                                <\/div>\n                                <div style=\"flex:0.5;\"><\/div>\n                                <div style=\"flex:1;display:flex;gap:4%;\">\n                                    <div id=\"pressa-5\" data-matricola=\"PR-205\" data-badge=\"760508\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL730<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL730.jpg\" alt=\"PR-205\">\n                                    <\/div>\n                                    <div id=\"pressa-6\" data-matricola=\"PR-206\"data-badge=\"737261\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL714<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL714.jpg\" alt=\"PR-206\">\n                                    <\/div>\n                                    <div id=\"pressa-7\" data-matricola=\"PR-207\" data-badge=\"760620\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                        <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                        <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL724<\/div>\n                                        <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL724.jpg\" alt=\"PR-207\">\n                                    <\/div>\n                                <\/div>\n                            <\/div>\n\n                            <div style=\"flex:0.3;\"><\/div>\n\n                            <div style=\"flex:1;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:4%;\">\n                                <div id=\"pressa-8\" data-matricola=\"PR-208\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL002<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL002.jpg\" alt=\"PR-208\">\n                                <\/div>\n                                <div id=\"pressa-9\" data-matricola=\"PR-209\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL003<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL003.jpg\" alt=\"PR-209\">\n                                <\/div>\n                                <div id=\"pressa-10\" data-matricola=\"PR-210\" data-badge=\"758702\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL004<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL004.jpg\" alt=\"PR-210\">\n                                <\/div>\n                                <div id=\"pressa-11\" data-matricola=\"PR-211\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL005<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL005.jpg\" alt=\"PR-211\">\n                                <\/div>\n                                <div id=\"pressa-12\" data-matricola=\"PR-212\" data-badge=\"737261\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL041<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL041.jpg\" alt=\"PR-212\">\n                                <\/div>\n                                <div id=\"pressa-13\" data-matricola=\"PR-213\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL042<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL042.jpg\" alt=\"PR-213\">\n                                <\/div>\n                                <div id=\"pressa-14\" data-matricola=\"PR-214\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL737<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL737.jpg\" alt=\"PR-214\">\n                                <\/div>\n                                <div id=\"pressa-15\" data-matricola=\"PR-215\"data-badge=\"761094\" class=\"ll1970-macchina-hover\" style=\"position:relative;\">\n                                    <svg viewBox=\"0 0 20 16\" width=\"100%\" height=\"82%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"6\" width=\"20\" height=\"8\" fill=\"#7a6b5b\"\/><rect x=\"6\" y=\"0\" width=\"8\" height=\"7\" fill=\"#a3948a\"\/><rect x=\"8\" y=\"7\" width=\"4\" height=\"4\" fill=\"#e0a83a\"\/><\/svg>\n                                    <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;margin-top:1px;\">LL016<\/div>\n                                    <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/10\/LL016.jpg\" alt=\"PR-215\">\n                                <\/div>\n                            <\/div>\n\n                        <\/div>\n                    <\/div>\n\n                    <!-- Piegatura CN: 2 macchine affiancate, rapporto 2:3 -->\n                    <div style=\"flex:1;position:relative;border-right:1px solid #b8ddc4;box-sizing:border-box;\">\n                        <span style=\"position:absolute;left:4px;top:2px;font-size:10px;color:#3a6b4a;\">Piegatura CN<\/span>\n                        <div style=\"position:absolute;left:2%;top:20%;width:96%;height:40%;display:flex;gap:4%;\">\n                            <div id=\"piegatrice-1\" data-matricola=\"PZ-3401\" data-badge=\"706506\" class=\"ll1970-macchina-hover\" style=\"flex:2;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><rect x=\"4\" y=\"0\" width=\"18\" height=\"14\" fill=\"#3d4a56\"\/><rect x=\"26\" y=\"4\" width=\"60\" height=\"6\" fill=\"#e0a83a\"\/><circle cx=\"90\" cy=\"18\" r=\"4\" fill=\"#8a97a3\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL760<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL760.jpg\" alt=\"PZ-3401\">\n                            <\/div>\n                            <div id=\"piegatrice-2\" data-matricola=\"PZ-3402\" class=\"ll1970-macchina-hover\" style=\"flex:3;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><rect x=\"4\" y=\"0\" width=\"18\" height=\"14\" fill=\"#3d4a56\"\/><rect x=\"26\" y=\"4\" width=\"60\" height=\"6\" fill=\"#e0a83a\"\/><circle cx=\"90\" cy=\"18\" r=\"4\" fill=\"#8a97a3\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL743<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL743.jpg\" alt=\"PZ-3402\">\n                            <\/div>\n                        <\/div>\n                    <\/div>\n\n                    <!-- Saldatura: 2 in alto, corridoio, 3 in basso -->\n                    <div style=\"flex:1;position:relative;box-sizing:border-box;\">\n                        <span style=\"position:absolute;left:4px;bottom:4px;font-size:10px;color:#3a6b4a;\">Saldatura<\/span>\n\n                        <div style=\"position:absolute;left:2%;top:8%;width:96%;height:30%;display:flex;gap:6%;\">\n                            <div id=\"saldatrice-1\" data-matricola=\"SLD-101\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><line x1=\"10\" y1=\"10\" x2=\"34\" y2=\"0\" stroke=\"#3d4a56\" stroke-width=\"3\"\/><circle cx=\"34\" cy=\"0\" r=\"3\" fill=\"#e0a83a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL762<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/10\/LL762.jpg\" alt=\"SLD-101\">\n                            <\/div>\n                            <div id=\"saldatrice-2\" data-matricola=\"SLD-102\" data-badge=\"738580\"class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><line x1=\"10\" y1=\"10\" x2=\"34\" y2=\"0\" stroke=\"#3d4a56\" stroke-width=\"3\"\/><circle cx=\"34\" cy=\"0\" r=\"3\" fill=\"#e0a83a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL766<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL766.jpg\" alt=\"SLD-102\">\n                            <\/div>\n                        <\/div>\n\n                        <div style=\"position:absolute;left:2%;top:56%;width:96%;height:30%;display:flex;gap:4%;\">\n                            <div id=\"saldatrice-3\" data-matricola=\"SLD-103\" data-badge=\"738580\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><line x1=\"10\" y1=\"10\" x2=\"34\" y2=\"0\" stroke=\"#3d4a56\" stroke-width=\"3\"\/><circle cx=\"34\" cy=\"0\" r=\"3\" fill=\"#e0a83a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL018<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL018.jpg\" alt=\"SLD-103\">\n                            <\/div>\n                            <div id=\"saldatrice-4\" data-matricola=\"SLD-104\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><line x1=\"10\" y1=\"10\" x2=\"34\" y2=\"0\" stroke=\"#3d4a56\" stroke-width=\"3\"\/><circle cx=\"34\" cy=\"0\" r=\"3\" fill=\"#e0a83a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL019<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL019.jpg\" alt=\"SLD-104\">\n                            <\/div>\n                            <div id=\"saldatrice-5\" data-matricola=\"SLD-105\" class=\"ll1970-macchina-hover\" style=\"flex:1;position:relative;\">\n                                <svg viewBox=\"0 0 100 30\" width=\"100%\" height=\"78%\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"10\" width=\"100\" height=\"16\" fill=\"#5b6b7a\"\/><line x1=\"10\" y1=\"10\" x2=\"34\" y2=\"0\" stroke=\"#3d4a56\" stroke-width=\"3\"\/><circle cx=\"34\" cy=\"0\" r=\"3\" fill=\"#e0a83a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:9px;color:#555;margin-top:1px;\">LL020<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/LL020.jpg\" alt=\"SLD-105\">\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n              <!-- ============ UFFICIO ============ -->\n                <div class=\"ll1970-zona\" data-reparto=\"UFFICIO\" style=\"position:absolute;right:0;top:0;width:16.67%;height:100%;background:#d4e6f1;box-sizing:border-box;\">\n                    <span style=\"position:absolute;left:6px;top:4px;font-size:12px;font-weight:bold;\">UFFICIO<\/span>\n                    <div style=\"position:absolute;left:10%;top:5%;width:80%;height:58%;display:flex;flex-direction:column;justify-content:space-between;\">\n                        <div id=\"scrivania-1\" data-matricola=\"FRONT OFFICE - Clienti\" data-badge=\"757638\" class=\"ll1970-macchina-hover\" style=\"height:22%;position:relative;\">\n                            <svg viewBox=\"0 0 60 34\" width=\"100%\" height=\"70%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"2\" y=\"22\" width=\"56\" height=\"5\" fill=\"#8a97a3\"\/><rect x=\"10\" y=\"4\" width=\"24\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"12\" y=\"6\" width=\"20\" height=\"13\" fill=\"#a9c6e6\"\/><rect x=\"38\" y=\"12\" width=\"16\" height=\"10\" fill=\"#c9b896\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;line-height:1.2;\">FRONT OFFICE<br>Clienti Int.300<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/P.jpg\" alt=\"FRONT OFFICE - Clienti\">\n                        <\/div>\n                        <div id=\"scrivania-2\" data-matricola=\"BACK OFFICE - Fornitori\" data-badge=\"760703\" class=\"ll1970-macchina-hover\" style=\"height:22%;position:relative;\">\n                            <svg viewBox=\"0 0 60 34\" width=\"100%\" height=\"70%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"2\" y=\"22\" width=\"56\" height=\"5\" fill=\"#8a97a3\"\/><rect x=\"10\" y=\"4\" width=\"24\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"12\" y=\"6\" width=\"20\" height=\"13\" fill=\"#a9c6e6\"\/><rect x=\"38\" y=\"12\" width=\"16\" height=\"10\" fill=\"#c9b896\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;line-height:1.2;\">BACK OFFICE<br>Fornitori Int.302<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/P.jpg\" alt=\"BACK OFFICE - Fornitori\">\n                        <\/div>\n                        <div id=\"scrivania-3\" data-matricola=\"AMMINISTRAZIONE\" data-badge=\"704520\" class=\"ll1970-macchina-hover\" style=\"height:22%;position:relative;\">\n                            <svg viewBox=\"0 0 60 34\" width=\"100%\" height=\"70%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"2\" y=\"22\" width=\"56\" height=\"5\" fill=\"#8a97a3\"\/><rect x=\"10\" y=\"4\" width=\"24\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"12\" y=\"6\" width=\"20\" height=\"13\" fill=\"#a9c6e6\"\/><rect x=\"38\" y=\"12\" width=\"16\" height=\"10\" fill=\"#c9b896\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;line-height:1.2;\">AMMINISTRAZIONE Int.308<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/P.jpg\" alt=\"AMMINISTRAZIONE\">\n                        <\/div>\n                        <div id=\"scrivania-4\" data-matricola=\"CONTABILITA\" data-badge=\"759854\" class=\"ll1970-macchina-hover\" style=\"height:22%;position:relative;\">\n                            <svg viewBox=\"0 0 60 34\" width=\"100%\" height=\"70%\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"2\" y=\"22\" width=\"56\" height=\"5\" fill=\"#8a97a3\"\/><rect x=\"10\" y=\"4\" width=\"24\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"12\" y=\"6\" width=\"20\" height=\"13\" fill=\"#a9c6e6\"\/><rect x=\"38\" y=\"12\" width=\"16\" height=\"10\" fill=\"#c9b896\"\/><\/svg>\n                            <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;line-height:1.2;\">CONTABILITA Int.310<\/div>\n                            <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/P.jpg\" alt=\"CONTABILITA\">\n                        <\/div>\n                    <\/div>\n\n                    <!-- Fascia muletti: 35% dell'altezza totale, in fondo -->\n                    <div style=\"position:absolute;left:0;bottom:0;width:100%;height:35%;border-top:1px dashed #8ab0cc;box-sizing:border-box;padding:6px 0;\">\n                        <span style=\"display:block;text-align:center;font-size:9px;color:#3a6a8a;font-weight:bold;margin-bottom:4px;\">MULETTI<\/span>\n                        <div style=\"display:flex;justify-content:space-around;align-items:center;height:75%;\">\n                            <div id=\"muletto-1\" data-badge=\"737261\" data-matricola=\"CARRELLO1\" class=\"ll1970-macchina-hover\" style=\"width:42%;position:relative;\">\n                                <svg viewBox=\"0 0 50 40\" width=\"100%\" height=\"auto\"><rect x=\"6\" y=\"18\" width=\"26\" height=\"14\" fill=\"#e0a83a\"\/><rect x=\"10\" y=\"6\" width=\"14\" height=\"14\" fill=\"#3d4a56\"\/><rect x=\"30\" y=\"10\" width=\"4\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"34\" y=\"4\" width=\"3\" height=\"26\" fill=\"#5b6b7a\"\/><circle cx=\"12\" cy=\"34\" r=\"4\" fill=\"#2a2a2a\"\/><circle cx=\"26\" cy=\"34\" r=\"4\" fill=\"#2a2a2a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;\">CARRELLO1<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/07\/CARRELLO1.jpg\" alt=\"CARRELLO1\">\n                            <\/div>\n                            <div id=\"muletto-2\" data-badge=\"761094\" data-matricola=\"CARRELLO2\" class=\"ll1970-macchina-hover\" style=\"width:42%;position:relative;\">\n                                <svg viewBox=\"0 0 50 40\" width=\"100%\" height=\"auto\"><rect x=\"6\" y=\"18\" width=\"26\" height=\"14\" fill=\"#e0a83a\"\/><rect x=\"10\" y=\"6\" width=\"14\" height=\"14\" fill=\"#3d4a56\"\/><rect x=\"30\" y=\"10\" width=\"4\" height=\"18\" fill=\"#5b6b7a\"\/><rect x=\"34\" y=\"4\" width=\"3\" height=\"26\" fill=\"#5b6b7a\"\/><circle cx=\"12\" cy=\"34\" r=\"4\" fill=\"#2a2a2a\"\/><circle cx=\"26\" cy=\"34\" r=\"4\" fill=\"#2a2a2a\"\/><\/svg>\n                                <div style=\"text-align:center;font-size:8px;font-weight:bold;color:#333;\">CARRELLO2<\/div>\n                                <img decoding=\"async\" class=\"ll1970-foto-hover\" src=\"https:\/\/www.gestioneindustriale.it\/wp-content\/uploads\/2026\/10\/CARRELLO2.jpg\" alt=\"CARRELLO2\">\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n            <\/div>\n\n            <div id=\"ll1970-zona-assenti\" style=\"width:100%;min-height:100px;background:#f2f2f2;border:2px solid #888;border-top:none;box-sizing:border-box;padding:10px;\">\n                <span style=\"font-size:12px;font-weight:bold;\">ZONA ASSENTI<\/span>\n                <div id=\"ll1970-assenti-icone\" style=\"display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;\"><\/div>\n            <\/div>\n        <\/div>\n\n    <\/div>\n    <\/div>\n    <script>\n    window.ll1970ApriDettaglio = function(matricola) {\n        try {\n            localStorage.setItem('ll1970_matricola_selezionata', matricola);\n        } catch (e) {}\n        window.open('https:\/\/www.gestioneindustriale.it\/it_it\/?matricola=' + matricola, '_blank');\n    };\n    (function() {\n        var URL_MASCHIO = \"https:\/\/www.ll1970.it\/wp-content\/uploads\/2024\/07\/Uomo.bmp\";\n        var URL_FEMMINA = \"https:\/\/www.ll1970.it\/wp-content\/uploads\/2024\/07\/Donna.bmp\";\n        var URL_API = \"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/ll1970\/v1\/presenze\";\n\n        function coloreStato(stato) {\n            if (stato === 'P') return 'limegreen';\n            if (stato === 'A') return 'red';\n            return '#999';\n        }\n\n        function creaIcona(dip) {\n            var icona = document.createElement('img');\n            icona.className = 'll1970-icona';\n            icona.src = (dip.sesso === 'F') ? URL_FEMMINA : URL_MASCHIO;\n            icona.title = dip.codice;\n            icona.style.width = '44px';\n            icona.style.height = '44px';\n            icona.style.borderRadius = '50%';\n            icona.style.objectFit = 'cover';\n            icona.style.background = '#fff';\n            icona.style.border = '4px solid ' + coloreStato(dip.stato);\n            return icona;\n        }\n\n        function formattaPerc(n) { return n.toFixed(2).replace('.', ',') + '%'; }\n\n        function aggiornaStatistiche(dati) {\n            var totale = dati.length;\n            var presenti = dati.filter(function(d) { return d.stato === 'P'; }).length;\n            var percGlobale = totale > 0 ? (presenti \/ totale * 100) : 0;\n            var uomini = dati.filter(function(d) { return d.sesso === 'M'; });\n            var donne  = dati.filter(function(d) { return d.sesso === 'F'; });\n            var uominiPresenti = uomini.filter(function(d) { return d.stato === 'P'; }).length;\n            var donnePresenti  = donne.filter(function(d) { return d.stato === 'P'; }).length;\n            var percUomini = uomini.length > 0 ? (uominiPresenti \/ uomini.length * 100) : 0;\n            var percDonne  = donne.length > 0 ? (donnePresenti \/ donne.length * 100) : 0;\n            document.getElementById('ll1970-perc-globale').textContent = Math.round(percGlobale) + '%';\n            document.getElementById('ll1970-testo-globale').textContent = presenti + ' su ' + totale + ' presenti (' + formattaPerc(percGlobale) + ')';\n            document.getElementById('ll1970-testo-m').textContent = uominiPresenti + ' su ' + uomini.length + ' presenti (' + formattaPerc(percUomini) + ')';\n            document.getElementById('ll1970-testo-f').textContent = donnePresenti + ' su ' + donne.length + ' presenti (' + formattaPerc(percDonne) + ')';\n            document.getElementById('ll1970-torta').style.background = 'conic-gradient(limegreen 0% ' + percGlobale + '%, #ddd ' + percGlobale + '% 100%)';\n        }\n\n        function aggiornaLedMacchine(dati) {\n            var statoPerBadge = {};\n            dati.forEach(function(d) { statoPerBadge[d.codice] = d.stato; });\n\n            document.querySelectorAll('[data-badge]').forEach(function(el) {\n                var badge = el.getAttribute('data-badge');\n                if (!badge) return;\n\n                var led = el.querySelector('.ll1970-led-badge');\n                if (!led) {\n                    led = document.createElement('div');\n                    led.className = 'll1970-led-badge';\n                    el.appendChild(led);\n                }\n\n                var stato = statoPerBadge[badge];\n                if (stato === 'P') {\n                    led.style.background = 'limegreen';\n                    led.style.boxShadow = '0 0 4px 1px limegreen';\n                } else {\n                    led.style.background = 'red';\n                    led.style.boxShadow = '0 0 4px 1px red';\n                }\n            });\n        }\n\n        function posizionaVicinoAMacchina(icona, elemMacchina, zona) {\n            var rectMacchina = elemMacchina.getBoundingClientRect();\n            var rectZona = zona.getBoundingClientRect();\n            var centroX = rectMacchina.left + rectMacchina.width \/ 2;\n            var centroY = rectMacchina.top + rectMacchina.height \/ 2;\n\n            var jitterX = (Math.random() - 0.5) * 8;\n            var jitterY = (Math.random() - 0.5) * 8;\n\n            var leftPercent = ((centroX - rectZona.left) \/ rectZona.width * 100) + jitterX;\n            var topPercent = ((centroY - rectZona.top) \/ rectZona.height * 100) + jitterY;\n\n            leftPercent = Math.max(3, Math.min(94, leftPercent));\n            topPercent = Math.max(5, Math.min(92, topPercent));\n\n            icona.style.position = 'absolute';\n            icona.style.left = leftPercent + '%';\n            icona.style.top = topPercent + '%';\n            zona.appendChild(icona);\n        }\n\n        function aggiornaPlanimetria() {\n            fetch(URL_API).then(function(r) { return r.json(); }).then(function(dati) {\n                document.querySelectorAll('#ll1970-planimetria .ll1970-zona').forEach(function(z) {\n                    z.querySelectorAll('.ll1970-icona').forEach(function(v) { v.remove(); });\n                });\n                var contAssenti = document.getElementById('ll1970-assenti-icone');\n                contAssenti.innerHTML = '';\n\n                dati.forEach(function(dip) {\n                    var icona = creaIcona(dip);\n                    if (dip.stato === 'P') {\n                        var elencoMacchine = document.querySelectorAll('[data-badge=\"' + dip.codice + '\"]');\n                        if (elencoMacchine.length > 0) {\n                            var elemMacchina = elencoMacchine[Math.floor(Math.random() * elencoMacchine.length)];\n                            var zonaMacchina = elemMacchina.closest('.ll1970-zona');\n                            if (zonaMacchina) {\n                                posizionaVicinoAMacchina(icona, elemMacchina, zonaMacchina);\n                            }\n                        } else {\n                            var zona = document.querySelector('#ll1970-planimetria .ll1970-zona[data-reparto=\"' + dip.reparto + '\"]');\n                            if (!zona) return;\n                            icona.style.position = 'absolute';\n                            icona.style.left = (12 + Math.random() * 70) + '%';\n                            if (dip.reparto === 'PRODUZIONE') {\n                                icona.style.top = (80 + Math.random() * 15) + '%';\n                            } else {\n                                icona.style.top = (15 + Math.random() * 65) + '%';\n                            }\n                            zona.appendChild(icona);\n                        }\n                    } else {\n                        contAssenti.appendChild(icona);\n                    }\n                });\n\n                aggiornaStatistiche(dati);\n                aggiornaLedMacchine(dati);\n            });\n        }\n\n        aggiornaPlanimetria();\n        setInterval(aggiornaPlanimetria, 20000);\n    })();\n    <\/script>\n    \n\n\n\n<div style=\"\n  background: linear-gradient(135deg, #eef4ff, #dce8ff);\n  border: 1px solid #a9c6ff;\n  border-radius: 10px;\n  padding: 18px 22px;\n  margin: 20px 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  font-family: Arial, sans-serif;\n\">\n  <div style=\"font-size: 16px; color: #1a2b4c;\">\n    \ud83d\udd04 Questa \u00e9 la versione <strong>4.0<\/strong> creata ad hoc per mostrare il felice connubio tra tecnologie legacy (VB6 ) e il web con l&#8217;aiuto di Claude AI di Anthropic <br><br> Sul  portale di LL Lavorazione Lamiera Srl  la vecchia versione  <strong>1970<\/strong> <br><br> I dati in ingresso sono gli stessi, l&#8217;aspetto estetico appare decisamente differente !\n  <\/div><br>\n  <a href=\"https:\/\/www.ll1970.it\/cosa-stiamo-facendo\/\" style=\"\n    background: #2b56d6;\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 20px;\n    border-radius: 6px;\n    font-weight: bold;\n    white-space: nowrap;\n  \">\n    Guarda la versione 1970 \u2192\n  <\/a>\n<\/div>\n\n\n    <div id=\"pc-root\">\n        <style>\n            #pc-root {\n                font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;\n                max-width: 1100px;\n                margin: 0 auto;\n                background: #f4f6f9;\n                border: 1px solid #d5dae1;\n                border-radius: 10px;\n                padding: 16px;\n                box-shadow: 0 2px 10px rgba(0,0,0,0.06);\n            }\n            #pc-root .pc-layout {\n                display: flex;\n                gap: 20px;\n                flex-wrap: wrap;\n            }\n            #pc-root .pc-valori {\n                flex: 0 0 260px;\n                background: #ffffff;\n                border-radius: 8px;\n                padding: 14px;\n                border: 1px solid #e2e6ec;\n            }\n            #pc-root .pc-valori h3 {\n                margin: 0 0 10px 0;\n                font-size: 14px;\n                text-transform: uppercase;\n                letter-spacing: 0.05em;\n                color: #4a5568;\n            }\n            #pc-root .pc-riga-valore {\n                display: flex;\n                justify-content: space-between;\n                padding: 6px 0;\n                border-bottom: 1px solid #eef1f4;\n                font-size: 14px;\n            }\n            #pc-root .pc-riga-valore span.pc-etichetta {\n                color: #5b6472;\n            }\n            #pc-root .pc-riga-valore span.pc-valore {\n                font-weight: 600;\n                color: #1a2330;\n            }\n            #pc-root .pc-schema-wrap {\n                flex: 1 1 500px;\n                background: #ffffff;\n                border-radius: 8px;\n                border: 1px solid #e2e6ec;\n                padding: 10px;\n            }\n            #pc-root svg circle {\n                transition: fill 0.4s ease;\n            }\n            #pc-root .pc-stato-banner {\n                margin-bottom: 10px;\n                padding: 8px 12px;\n                border-radius: 6px;\n                font-size: 13px;\n                font-weight: 600;\n                display: none;\n            }\n            #pc-root .pc-stato-banner.pc-visibile {\n                display: block;\n            }\n            #pc-root .pc-stato-vecchio {\n                background: #fff3cd;\n                color: #8a6300;\n            }\n            #pc-root .pc-timestamp {\n                font-size: 12px;\n                color: #8a94a3;\n                margin-top: 8px;\n            }\n            #pc-root .pc-produzione-layout {\n                display: flex;\n                gap: 20px;\n                flex-wrap: wrap;\n                margin-top: 20px;\n            }\n            #pc-root .pc-tabella-produzione {\n                flex: 1 1 420px;\n                background: #000000;\n                border-radius: 8px;\n                padding: 14px;\n                border: 1px solid #333;\n            }\n            #pc-root .pc-tabella-titolo {\n                text-align: center;\n                color: #ffffff;\n                font-size: 15px;\n                font-weight: bold;\n                margin-bottom: 10px;\n            }\n            #pc-root .pc-tabella-produzione table {\n                width: 100%;\n                border-collapse: collapse;\n                font-size: 12px;\n            }\n            #pc-root .pc-tabella-produzione td {\n                border: 1px solid #2ea8a0;\n                padding: 4px 8px;\n                color: #ffffff;\n            }\n            #pc-root .pc-tabella-produzione td.pc-etichetta-cella {\n                color: #e0b400;\n                font-weight: bold;\n                white-space: nowrap;\n            }\n        <\/style>\n\n        <div id=\"pc-banner\" class=\"pc-stato-banner\"><\/div>\n\n        <div class=\"pc-layout\">\n            <div class=\"pc-valori\">\n                <h3>Valori di processo<\/h3>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Pressione N2 (B1)<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_Gas_pressure_B1\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Pressione Aria (B3)<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_Air_Pressure_B3\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Pressione HP Tank (B32)<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_HP_Tank_Pressure_B32\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Portata (FL1)<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_Flow_FL1\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Portata Media<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_AVG_Flow_FL1\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Ossigeno (B2)<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_Oxygen_B2\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Ossigeno Medio<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_AVG_Oxygen_B2\">--<\/span><\/div>\n                <div class=\"pc-riga-valore\"><span class=\"pc-etichetta\">Ciclo PSA<\/span><span class=\"pc-valore\" id=\"pc-val-AIM_Actual_Cycle_PSA\">--<\/span><\/div>\n                <div class=\"pc-timestamp\">Ultimo aggiornamento: <span id=\"pc-timestamp\">--<\/span><\/div>\n            <\/div>\n\n            <div class=\"pc-schema-wrap\">\n                <svg id=\"pc-svg\" viewBox=\"0 0 1300 680\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <g stroke-linecap=\"round\">\n                        <line x1=\"60\" y1=\"560\" x2=\"300\" y2=\"560\" stroke=\"#7a95ad\" stroke-width=\"5\"\/>\n                        <line x1=\"300\" y1=\"560\" x2=\"620\" y2=\"560\" stroke=\"#7a95ad\" stroke-width=\"5\"\/>\n                        <line x1=\"300\" y1=\"560\" x2=\"300\" y2=\"500\" stroke=\"#7a95ad\" stroke-width=\"5\"\/>\n                        <line x1=\"620\" y1=\"560\" x2=\"620\" y2=\"500\" stroke=\"#7a95ad\" stroke-width=\"5\"\/>\n                        <line x1=\"245\" y1=\"420\" x2=\"300\" y2=\"420\" stroke=\"#9aa5b1\" stroke-width=\"4\"\/>\n                        <line x1=\"675\" y1=\"420\" x2=\"620\" y2=\"420\" stroke=\"#9aa5b1\" stroke-width=\"4\"\/>\n                        <line x1=\"300\" y1=\"150\" x2=\"300\" y2=\"110\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"620\" y1=\"150\" x2=\"620\" y2=\"110\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"300\" y1=\"110\" x2=\"620\" y2=\"110\" stroke=\"#1f9a4a\" stroke-width=\"3\"\/>\n                        <line x1=\"300\" y1=\"480\" x2=\"620\" y2=\"480\" stroke=\"#9aa5b1\" stroke-width=\"3\"\/>\n                        <line x1=\"300\" y1=\"110\" x2=\"300\" y2=\"90\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"300\" y1=\"90\" x2=\"770\" y2=\"90\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"680\" y1=\"90\" x2=\"680\" y2=\"45\" stroke=\"#9aa5b1\" stroke-width=\"3\"\/>\n                        <line x1=\"730\" y1=\"90\" x2=\"730\" y2=\"140\" stroke=\"#9aa5b1\" stroke-width=\"3\"\/>\n                        <line x1=\"770\" y1=\"90\" x2=\"850\" y2=\"90\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"850\" y1=\"90\" x2=\"950\" y2=\"90\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"950\" y1=\"90\" x2=\"950\" y2=\"180\" stroke=\"#1f9a4a\" stroke-width=\"5\"\/>\n                        <line x1=\"950\" y1=\"230\" x2=\"950\" y2=\"290\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                        <line x1=\"950\" y1=\"330\" x2=\"950\" y2=\"370\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                        <line x1=\"950\" y1=\"392\" x2=\"950\" y2=\"430\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                        <line x1=\"950\" y1=\"443\" x2=\"950\" y2=\"470\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                        <line x1=\"1030\" y1=\"540\" x2=\"1090\" y2=\"540\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                        <line x1=\"1103\" y1=\"540\" x2=\"1140\" y2=\"540\" stroke=\"#1f9a4a\" stroke-width=\"4\"\/>\n                    <\/g>\n                    <rect x=\"245\" y=\"150\" width=\"110\" height=\"330\" rx=\"18\" fill=\"#dde3ea\" stroke=\"#5a6473\" stroke-width=\"3\"\/>\n                    <text x=\"300\" y=\"325\" text-anchor=\"middle\" font-size=\"16\" font-weight=\"bold\" fill=\"#19232b\">COLONNA A<\/text>\n                    <rect x=\"565\" y=\"150\" width=\"110\" height=\"330\" rx=\"18\" fill=\"#dde3ea\" stroke=\"#5a6473\" stroke-width=\"3\"\/>\n                    <text x=\"620\" y=\"325\" text-anchor=\"middle\" font-size=\"16\" font-weight=\"bold\" fill=\"#19232b\">COLONNA B<\/text>\n                    <rect x=\"880\" y=\"180\" width=\"140\" height=\"50\" rx=\"20\" fill=\"#c8e0f5\" stroke=\"#3c5a8c\" stroke-width=\"3\"\/>\n                    <text x=\"950\" y=\"209\" text-anchor=\"middle\" font-size=\"15\" font-weight=\"bold\" fill=\"#19232b\">LP TANK<\/text>\n                    <text x=\"950\" y=\"250\" text-anchor=\"middle\" font-size=\"12\" fill=\"#19232b\">Pressione \/ ppm<\/text>\n                    <text x=\"950\" y=\"313\" text-anchor=\"middle\" font-size=\"11\" fill=\"#19232b\">POMPA<\/text>\n                    <text x=\"950\" y=\"383\" text-anchor=\"middle\" font-size=\"11\" fill=\"#19232b\">RP1<\/text>\n                    <rect x=\"870\" y=\"470\" width=\"160\" height=\"140\" fill=\"#c8e0f5\" stroke=\"#3c5a8c\" stroke-width=\"3\"\/>\n                    <text x=\"950\" y=\"543\" text-anchor=\"middle\" font-size=\"15\" font-weight=\"bold\" fill=\"#19232b\">HP TANK 2<\/text>\n                    <text x=\"950\" y=\"628\" text-anchor=\"middle\" font-size=\"12\" fill=\"#19232b\">Pressione HP2<\/text>\n                    <rect x=\"1140\" y=\"495\" width=\"130\" height=\"105\" fill=\"#c8e0f5\" stroke=\"#3c5a8c\" stroke-width=\"3\"\/>\n                    <text x=\"1205\" y=\"551\" text-anchor=\"middle\" font-size=\"15\" font-weight=\"bold\" fill=\"#19232b\">HP TANK 1<\/text>\n                    <text x=\"1205\" y=\"618\" text-anchor=\"middle\" font-size=\"12\" fill=\"#19232b\">Pressione HP1<\/text>\n                    <circle id=\"pc-valvola-Y1\" cx=\"300\" cy=\"530\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"278\" y=\"535\" text-anchor=\"end\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y1<\/text>\n                    <circle id=\"pc-valvola-Y2\" cx=\"245\" cy=\"420\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"245\" y=\"402\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y2<\/text>\n                    <circle id=\"pc-valvola-Y3\" cx=\"620\" cy=\"530\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"642\" y=\"535\" text-anchor=\"start\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y3<\/text>\n                    <circle id=\"pc-valvola-Y4\" cx=\"675\" cy=\"420\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"675\" y=\"402\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y4<\/text>\n                    <circle id=\"pc-valvola-Y5\" cx=\"800\" cy=\"90\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"800\" y=\"72\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y5<\/text>\n                    <circle id=\"pc-valvola-Y6\" cx=\"730\" cy=\"120\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"752\" y=\"125\" text-anchor=\"start\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y6<\/text>\n                    <circle id=\"pc-valvola-Y7\" cx=\"680\" cy=\"65\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"702\" y=\"70\" text-anchor=\"start\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y7<\/text>\n                    <circle id=\"pc-valvola-Y8\" cx=\"460\" cy=\"480\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"460\" y=\"462\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y8<\/text>\n                    <circle id=\"pc-valvola-Y9\" cx=\"300\" cy=\"130\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"278\" y=\"135\" text-anchor=\"end\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y9<\/text>\n                    <circle id=\"pc-valvola-Y10\" cx=\"620\" cy=\"130\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"642\" y=\"135\" text-anchor=\"start\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y10<\/text>\n                    <circle id=\"pc-valvola-Y11\" cx=\"460\" cy=\"110\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"460\" y=\"92\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y11<\/text>\n                    <circle id=\"pc-valvola-Y34\" cx=\"950\" cy=\"430\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"972\" y=\"435\" text-anchor=\"start\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y34<\/text>\n                    <circle id=\"pc-valvola-Y35\" cx=\"1090\" cy=\"540\" r=\"13\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"1090\" y=\"522\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"bold\" fill=\"#19232b\">Y35<\/text>\n                    <text x=\"200\" y=\"420\" text-anchor=\"end\" font-size=\"11\" fill=\"#19232b\">SFIATO<\/text>\n                    <text x=\"720\" y=\"420\" text-anchor=\"start\" font-size=\"11\" fill=\"#19232b\">SFIATO<\/text>\n                    <circle id=\"pc-allarme\" cx=\"220\" cy=\"340\" r=\"10\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"30\" y=\"344\" font-size=\"12\" fill=\"#19232b\">ALLARME CUMULATIVO<\/text>\n                    <circle id=\"pc-warning\" cx=\"220\" cy=\"365\" r=\"10\" fill=\"#787878\" stroke=\"#28313d\" stroke-width=\"2\"\/>\n                    <text x=\"30\" y=\"369\" font-size=\"12\" fill=\"#19232b\">WARNING CUMULATIVO<\/text>\n                    <text x=\"650\" y=\"25\" text-anchor=\"middle\" font-size=\"20\" font-weight=\"bold\" fill=\"#19232b\">GENERATORE DI AZOTO - COMPRESSIONE E ACCUMULO<\/text>\n                    <text x=\"80\" y=\"545\" font-size=\"13\" font-weight=\"bold\" fill=\"#19232b\">ARIA INGRESSO<\/text>\n                    <text x=\"880\" y=\"90\" text-anchor=\"end\" font-size=\"11\" fill=\"#19232b\">VERSO SERBATOI<\/text>\n                <\/svg>\n            <\/div>\n        <\/div>\n\n        <div class=\"pc-produzione-layout\">\n            <div class=\"pc-tabella-produzione\">\n                <div class=\"pc-tabella-titolo\">Produzione giornaliera gas (Mc)<\/div>\n                <table id=\"pc-tabella-giornaliera\"><\/table>\n            <\/div>\n            <div class=\"pc-tabella-produzione\">\n                <div class=\"pc-tabella-titolo\">Produzione mensile gas (Mc)<\/div>\n                <table id=\"pc-tabella-mensile\"><\/table>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n    (function() {\n        var urlLettura = \"https:\\\/\\\/www.gestioneindustriale.it\\\/it_it\\\/wp-json\\\/compressore\\\/v1\\\/dati\";\n        var timeoutDatiSec = 30;\n\n        var unitaProcesso = {\n            \"AIM_Gas_pressure_B1\": \"bar\",\n            \"AIM_Air_Pressure_B3\": \"bar\",\n            \"AIM_HP_Tank_Pressure_B32\": \"bar\",\n            \"AIM_Flow_FL1\": \"Nmc\/h\",\n            \"AIM_AVG_Flow_FL1\": \"Nmc\/h\",\n            \"AIM_Oxygen_B2\": \"%\",\n            \"AIM_AVG_Oxygen_B2\": \"%\",\n            \"AIM_Actual_Cycle_PSA\": \"sec\"\n        };\n\n        \/\/ Mappa ogni valvola alla chiave esatta usata nel JSON inviato da VB6\n        \/\/ (stessa stringa descrittiva usata in NomiIO nel codice VB6)\n        var chiaveIOPerValvola = {\n            \"Y1\": \"Valvola Y1 - Ingresso Aria Colonna A\",\n            \"Y2\": \"Valvola Y2 - Sfiato Colonna A\",\n            \"Y3\": \"Valvola Y3 - Ingresso Aria Colonna B\",\n            \"Y4\": \"Valvola Y4 - Sfiato Colonna B\",\n            \"Y5\": \"Valvola Y5 - Uscita Azoto Linea\",\n            \"Y6\": \"Valvola Y6 - Sfiato Azoto\",\n            \"Y7\": \"Valvola Y7 - Campionamento Gas Analizzatore\",\n            \"Y8\": \"Valvola Y8 - Equalizzazione Fondo\",\n            \"Y9\": \"Valvola Y9 - Uscita Azoto Colonna A\",\n            \"Y10\": \"Valvola Y10 - Uscita Azoto Colonna B\",\n            \"Y11\": \"Valvola Y11 - Equalizzazione Testa\",\n            \"Y34\": \"Valvola Y34 - Ricarica Serbatoio Booster (se presente)\",\n            \"Y35\": \"Valvola Y35 - Unione Serbatoi HP (se presenti)\"\n        };\n\n        var COLORE_NORMALE = \"#787878\";\n        var COLORE_ATTIVO = \"#00b400\";\n        var COLORE_ALLARME = \"#dc0000\";\n        var COLORE_WARNING = \"#e6b400\";\n\n        function aggiornaPannello() {\n            fetch(urlLettura, { cache: \"no-store\" })\n                .then(function(risposta) { return risposta.json(); })\n                .then(function(dati) {\n                    if (dati.errore) {\n                        mostraBanner(\"Nessun dato ricevuto ancora dal compressore.\");\n                        return;\n                    }\n                    applicaDati(dati);\n                })\n                .catch(function() {\n                    mostraBanner(\"Impossibile contattare il server.\");\n                });\n        }\n\n        function applicaDati(dati) {\n            var adesso = new Date();\n            var timestampDati = new Date(dati.timestamp.replace(\" \", \"T\"));\n            var secondiTrascorsi = (adesso - timestampDati) \/ 1000;\n\n            document.getElementById(\"pc-timestamp\").textContent = dati.timestamp;\n\n            if (secondiTrascorsi > timeoutDatiSec) {\n                mostraBanner(\"Dati non aggiornati da \" + Math.round(secondiTrascorsi) + \" secondi.\");\n            } else {\n                nascondiBanner();\n            }\n\n            for (var chiave in unitaProcesso) {\n                var elemento = document.getElementById(\"pc-val-\" + chiave);\n                if (elemento && dati.processo && (chiave in dati.processo)) {\n                    elemento.textContent = dati.processo[chiave] + \" \" + unitaProcesso[chiave];\n                }\n            }\n\n            if (dati.ingressi_uscite) {\n                for (var nomeValvola in chiaveIOPerValvola) {\n                    var chiaveIO = chiaveIOPerValvola[nomeValvola];\n                    var cerchio = document.getElementById(\"pc-valvola-\" + nomeValvola);\n                    if (cerchio && (chiaveIO in dati.ingressi_uscite)) {\n                        cerchio.setAttribute(\"fill\", dati.ingressi_uscite[chiaveIO] ? COLORE_ATTIVO : COLORE_NORMALE);\n                    }\n                }\n\n                var allarme = document.getElementById(\"pc-allarme\");\n                if (allarme && (\"Allarme Cumulativo Attivo\" in dati.ingressi_uscite)) {\n                    allarme.setAttribute(\"fill\", dati.ingressi_uscite[\"Allarme Cumulativo Attivo\"] ? COLORE_ALLARME : COLORE_NORMALE);\n                }\n\n                var warning = document.getElementById(\"pc-warning\");\n                if (warning && (\"Warning Cumulativo Attivo\" in dati.ingressi_uscite)) {\n                    warning.setAttribute(\"fill\", dati.ingressi_uscite[\"Warning Cumulativo Attivo\"] ? COLORE_WARNING : COLORE_NORMALE);\n                }\n            }\n\n            if (dati.produzione) {\n                aggiornaTabellaGiornaliera(dati.produzione.giornaliera);\n                aggiornaTabellaMensile(dati.produzione.mensile);\n            }\n        }\n\n        \/\/ Tabella \"Giorno 1\"...\"Giorno 31\", 3 colonne, stesso stile del pannello originale\n        function aggiornaTabellaGiornaliera(valori) {\n            if (!valori) return;\n            var tabella = document.getElementById(\"pc-tabella-giornaliera\");\n            var html = \"\";\n            var colonne = 3;\n            var righe = Math.ceil(31 \/ colonne);\n\n            for (var r = 0; r < righe; r++) {\n                html += \"<tr>\";\n                for (var c = 0; c < colonne; c++) {\n                    var giorno = r + c * righe + 1;\n                    if (giorno <= 31) {\n                        var valore = (valori[giorno - 1] !== undefined) ? valori[giorno - 1] : 0;\n                        html += '<td class=\"pc-etichetta-cella\">Giorno ' + giorno + '<\/td><td>' + valore.toFixed(1) + '<\/td>';\n                    } else {\n                        html += '<td><\/td><td><\/td>';\n                    }\n                }\n                html += \"<\/tr>\";\n            }\n            tabella.innerHTML = html;\n        }\n\n        \/\/ Tabella \"Gennaio\"..\"Dicembre\", 2 colonne, stesso stile del pannello originale\n        function aggiornaTabellaMensile(valori) {\n            if (!valori) return;\n            var nomiMesi = [\"Gennaio\", \"Febbraio\", \"Marzo\", \"Aprile\", \"Maggio\", \"Giugno\",\n                             \"Luglio\", \"Agosto\", \"Settembre\", \"Ottobre\", \"Novembre\", \"Dicembre\"];\n            var tabella = document.getElementById(\"pc-tabella-mensile\");\n            var html = \"\";\n            var righe = 6;\n\n            for (var r = 0; r < righe; r++) {\n                html += \"<tr>\";\n                for (var c = 0; c < 2; c++) {\n                    var mese = r + c * righe;\n                    var valore = (valori[mese] !== undefined) ? valori[mese] : 0;\n                    html += '<td class=\"pc-etichetta-cella\">' + nomiMesi[mese] + '<\/td><td>' + valore.toFixed(1) + '<\/td>';\n                }\n                html += \"<\/tr>\";\n            }\n            tabella.innerHTML = html;\n        }\n\n        function mostraBanner(testo) {\n            var banner = document.getElementById(\"pc-banner\");\n            banner.className = \"pc-stato-banner pc-visibile pc-stato-vecchio\";\n            banner.textContent = testo;\n        }\n\n        function nascondiBanner() {\n            var banner = document.getElementById(\"pc-banner\");\n            banner.className = \"pc-stato-banner\";\n        }\n\n        aggiornaPannello();\n        setInterval(aggiornaPannello, 5000);\n    })();\n    <\/script>\n    \n\n\n\n<!DOCTYPE html>\n<html lang=\"it\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Pipeline \u2014 Il cashflow della tua azienda, sempre sotto controllo<\/title>\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&#038;family=IBM+Plex+Mono:wght@400;500;600&#038;family=IBM+Plex+Sans:wght@400;500;600;700&#038;display=swap\" rel=\"stylesheet\">\n<style>\n  :root{\n    --paper: #F4EEDF;\n    --paper-deep: #E9E0C6;\n    --card: #FFFFFF;\n    --ink: #191F17;\n    --ink-soft: #5B6156;\n    --blue: #2451B0;\n    --blue-deep: #16346F;\n    --amber: #C97A20;\n    --signal-green: #2F9E44;\n    --signal-green-soft: #D7ECDA;\n    --signal-red: #B3261E;\n    --line: #D9CFAE;\n    --nav-h: 64px;\n  }\n  html[data-theme=\"dark\"]{\n    --paper: #12160F;\n    --paper-deep: #191F16;\n    --card: #1A2018;\n    --ink: #ECE7D6;\n    --ink-soft: #A2A894;\n    --blue: #6E9BF0;\n    --blue-deep: #0E1E43;\n    --amber: #E3A24A;\n    --signal-green: #49C468;\n    --signal-green-soft: #17331F;\n    --signal-red: #E2564B;\n    --line: #303528;\n  }\n\n  *{ box-sizing: border-box; }\n  html{ scroll-behavior: smooth; }\n  body{\n    margin:0;\n    background: var(--paper);\n    color: var(--ink);\n    font-family: 'IBM Plex Sans', sans-serif;\n    -webkit-font-smoothing: antialiased;\n    transition: background-color .25s ease, color .25s ease;\n  }\n  @media (prefers-reduced-motion: reduce){\n    *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n  }\n\n  .wrap{ max-width: 1080px; margin: 0 auto; padding: 0 28px; }\n  a{ color: inherit; text-decoration: none; }\n  a:focus-visible, button:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }\n  section{ scroll-margin-top: calc(var(--nav-h) + 12px); }\n\n  \/* ---------- nav ---------- *\/\n  .nav{\n    position: sticky; top:0; z-index: 50;\n    background: color-mix(in srgb, var(--paper) 88%, transparent);\n    backdrop-filter: blur(8px);\n    border-bottom: 1px solid var(--line);\n  }\n  .nav .wrap{\n    height: var(--nav-h);\n    display:flex; align-items:center; justify-content:space-between;\n  }\n  .brand{\n    display:flex; align-items:center; gap:9px;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 13px; font-weight: 600;\n    letter-spacing: 0.03em;\n  }\n  .brand .pulse{\n    width:8px; height:8px; border-radius:50%;\n    background: var(--signal-green);\n    box-shadow: 0 0 0 0 rgba(47,158,68,.55);\n    animation: pulse 2.4s infinite;\n  }\n  @keyframes pulse{\n    0%{ box-shadow: 0 0 0 0 rgba(47,158,68,.45); }\n    70%{ box-shadow: 0 0 0 8px rgba(47,158,68,0); }\n    100%{ box-shadow: 0 0 0 0 rgba(47,158,68,0); }\n  }\n  .brand .sub{ color: var(--ink-soft); font-weight: 400; }\n  .navlinks{ display:flex; align-items:center; gap: 28px; }\n  .navlinks a{\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;\n    color: var(--ink-soft);\n    padding: 6px 0; border-bottom: 1px solid transparent;\n  }\n  .navlinks a:hover{ color: var(--ink); border-color: var(--amber); }\n  .theme-toggle{\n    width: 34px; height: 34px; border-radius: 6px;\n    border: 1px solid var(--line); background: var(--card);\n    display:flex; align-items:center; justify-content:center;\n    cursor:pointer; font-size: 15px;\n  }\n  @media (max-width: 760px){\n    .navlinks .link-text{ display:none; }\n  }\n\n  \/* ---------- hero ---------- *\/\n  .hero{ padding: 56px 0 20px; }\n  .hero-grid{ display:grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items:center; }\n  @media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }\n\n  .kicker{\n    font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;\n    letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);\n    margin: 0 0 16px; display:flex; align-items:center; gap:8px;\n  }\n  .kicker::before{ content:\"\u203a\"; color: var(--amber); font-weight:700; }\n  h1{\n    font-family: 'IBM Plex Sans', sans-serif;\n    font-weight: 700;\n    font-size: clamp(32px, 4.6vw, 46px);\n    line-height: 1.12;\n    letter-spacing: -0.015em;\n    margin: 0 0 20px;\n    color: var(--ink);\n  }\n  h1 .hl{ color: var(--amber); }\n  .lede{\n    font-size: 17.5px; line-height: 1.65; color: var(--ink-soft);\n    max-width: 52ch; margin: 0 0 28px;\n  }\n  .cta-row{ display:flex; gap: 14px; flex-wrap: wrap; }\n  .btn{\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 13.5px; font-weight: 600;\n    padding: 13px 20px; border-radius: 5px;\n    cursor: pointer; display:inline-flex; align-items:center; gap:8px;\n    border: 1px solid transparent;\n  }\n  .btn-primary{ background: var(--blue); color: #fff; }\n  .btn-primary:hover{ background: var(--blue-deep); }\n  .btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }\n  .btn-ghost:hover{ background: var(--ink); color: var(--paper); }\n\n  \/* ---------- exe window mockup ---------- *\/\n  .exe-window{\n    background: var(--card);\n    border: 1px solid var(--line);\n    border-radius: 8px;\n    overflow: hidden;\n    box-shadow: 0 24px 50px -30px rgba(15,25,15,.45), 0 1px 0 var(--line);\n  }\n  .exe-titlebar{\n    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);\n    color: #fff;\n    display:flex; align-items:center; justify-content:space-between;\n    padding: 7px 10px 7px 12px;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px; font-weight: 600;\n  }\n  .exe-titlebar .tb-icons{ display:flex; gap:5px; }\n  .exe-titlebar .tb-icons span{\n    width:17px; height:15px; background: rgba(255,255,255,.16);\n    border: 1px solid rgba(255,255,255,.35);\n    border-radius: 2px; display:inline-block;\n  }\n  .exe-toolbar{\n    display:flex; align-items:center; gap: 14px; flex-wrap: wrap;\n    padding: 10px 14px; border-bottom: 1px solid var(--line);\n    background: var(--paper-deep);\n    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-soft);\n  }\n  .exe-toolbar .field{ display:flex; align-items:center; gap:6px; }\n  .exe-toolbar input.fake{\n    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;\n    background: var(--card); border: 1px solid var(--line); border-radius: 3px;\n    padding: 4px 7px; width: 68px; color: var(--ink);\n  }\n  .exe-toolbar .fbtn{\n    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight:600;\n    background: var(--card); border: 1px solid var(--line); border-radius: 3px;\n    padding: 5px 10px; color: var(--blue-deep);\n  }\n  html[data-theme=\"dark\"] .exe-toolbar .fbtn{ color: var(--blue); }\n\n  .exe-body{ padding: 18px 16px 0; }\n  .exe-chart{ position: relative; height: 190px; }\n  .zero-line{ position:absolute; left:0; right:0; top:50%; border-top: 1px solid var(--ink); opacity:.4; }\n  .bars{ position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding: 0 4px; }\n  .bar-col{ flex:1; height:100%; position:relative; display:flex; align-items:center; justify-content:center; }\n  .bar{\n    width: 60%; max-width: 26px; position:absolute; left:50%; transform: translateX(-50%);\n    transition: height 1.1s cubic-bezier(.2,.8,.2,1), background-color .6s ease, border-color .6s ease;\n  }\n  .bar.up{ bottom:50%; border-radius: 2px 2px 0 0; }\n  .bar.down{ top:50%; border-radius: 0 0 2px 2px; }\n  .bar.previsto{ background: transparent; border: 1.5px dashed var(--ink-soft); opacity:.85; }\n  .bar.reale.up{ background: var(--signal-green); border: 1.5px solid var(--signal-green); }\n  .bar.reale.down{ background: var(--signal-red); border: 1.5px solid var(--signal-red); }\n  .exe-labels{\n    display:flex; justify-content:space-between; padding: 6px 4px 12px;\n    font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-soft);\n  }\n  .exe-labels span{ flex:1; text-align:center; }\n  .exe-statusbar{\n    display:flex; justify-content:space-between; align-items:center;\n    padding: 8px 14px; border-top: 1px solid var(--line);\n    background: var(--paper-deep);\n    font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;\n  }\n  .exe-statusbar .ok{ color: var(--signal-green); font-weight:600; }\n  .exe-caption{\n    font-size: 12.5px; color: var(--ink-soft); margin: 12px 2px 0; line-height: 1.55;\n  }\n\n  \/* ---------- problem statement ---------- *\/\n  .problem-sec{ padding: 60px 0; border-top: 1px solid var(--line); }\n  .problem{\n    font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;\n    font-size: clamp(21px, 3.2vw, 28px); line-height: 1.42;\n    color: var(--ink); border-left: 3px solid var(--signal-red);\n    padding-left: 22px; margin:0;\n  }\n  .problem .plain{\n    font-family: 'IBM Plex Sans', sans-serif; font-style: normal; font-weight: 400;\n    font-size: 16.5px; color: var(--ink-soft); display:block; margin-top: 14px;\n  }\n\n  \/* ---------- shared section head ---------- *\/\n  section.block{ padding: 64px 0; border-top: 1px solid var(--line); }\n  .eyebrow{\n    font-family: 'IBM Plex Mono', monospace; font-size: 12px;\n    letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px;\n  }\n  h2{\n    font-family: 'IBM Plex Sans', sans-serif; font-weight: 700;\n    font-size: clamp(23px, 3.6vw, 30px); margin: 0 0 8px; color: var(--ink); max-width: 26ch;\n  }\n  .section-lede{ color: var(--ink-soft); font-size: 15.5px; max-width: 58ch; line-height:1.6; margin: 0 0 36px; }\n\n  \/* ---------- feature grid ---------- *\/\n  .feature-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }\n  @media (max-width: 720px){ .feature-grid{ grid-template-columns: 1fr; } }\n  .feature-card{\n    background: var(--card); border: 1px solid var(--line); border-radius: 8px;\n    padding: 22px 20px; border-top: 3px solid var(--mark, var(--blue));\n  }\n  .feature-card .num{\n    font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--mark, var(--blue));\n    font-weight:700; margin-bottom: 10px;\n  }\n  .feature-card h3{ font-family:'IBM Plex Sans',sans-serif; font-weight:700; font-size:17px; margin:0 0 8px; }\n  .feature-card p{ margin:0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }\n  .tag-demo{ display:flex; gap:8px; margin-top: 12px; flex-wrap: wrap; }\n  .tag{ font-family:'IBM Plex Mono',monospace; font-size: 11px; padding: 4px 8px; border-radius: 3px; }\n  .tag.stima{ background: var(--paper-deep); color: var(--ink-soft); border: 1px dashed var(--line); }\n  .tag.reale{ background: var(--signal-green-soft); color: var(--signal-green); border: 1px solid var(--signal-green); font-weight:600; }\n\n  \/* ---------- perche vb6 ---------- *\/\n  .vb6-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }\n  @media (max-width: 800px){ .vb6-grid{ grid-template-columns: 1fr; } }\n  .vb6-copy p{ color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin: 0 0 16px; }\n  .vb6-copy strong{ color: var(--ink); }\n  .vb6-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }\n  .vb6-list li{\n    display:flex; gap: 12px; align-items:flex-start;\n    font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft);\n    padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px;\n  }\n  .vb6-list li b{ color: var(--amber); }\n\n  \/* ---------- duality ---------- *\/\n  .duality{ display:grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow:hidden; }\n  .duality > div{ background: var(--card); padding: 26px 22px; }\n  .duality h3{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color: var(--blue); margin:0 0 12px; }\n  .duality p{ color: var(--ink-soft); font-size: 14.5px; line-height:1.6; margin:0 0 10px; }\n  .duality ul{ margin:0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }\n  @media (max-width: 640px){ .duality{ grid-template-columns: 1fr; } }\n\n  \/* ---------- honest ---------- *\/\n  .honest{\n    background: var(--blue-deep); color: #F2F0E4; border-radius: 10px; padding: 34px 28px; margin-top: 4px;\n  }\n  .honest .eyebrow{ color: #A9C6F5; }\n  .honest h2{ color:#fff; }\n  .honest p{ color:#D9DFEA; font-size:15.5px; line-height:1.65; max-width:56ch; margin:0; }\n\n  \/* ---------- footer ---------- *\/\n  footer{ border-top: 1px solid var(--line); padding: 56px 0 48px; }\n  .cta-line{ font-family:'IBM Plex Sans',sans-serif; font-weight:700; font-size: clamp(21px,3.4vw,27px); color: var(--ink); margin:0 0 18px; max-width: 26ch; }\n  .stamp{\n    display:inline-flex; align-items:center; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:12px;\n    color: var(--ink-soft); border:1px solid var(--line); border-radius:6px; padding:10px 14px; margin-top:6px; background: var(--card);\n  }\n  .stamp .sq{ width:8px; height:8px; background: var(--amber); border-radius:50%; }\n  .fine{ margin-top: 40px; font-size: 12px; color: var(--ink-soft); font-family:'IBM Plex Mono',monospace; }\n<\/style>\n<\/head>\n<body>\n\n  <nav class=\"nav\">\n    <div class=\"wrap\">\n      <div class=\"brand\">\n        <span class=\"pulse\"><\/span>\n        PIPELINE <span class=\"sub\">\u2014 scadenziario &amp; cashflow<\/span>\n      <\/div>\n      <div class=\"navlinks\">\n        <a href=\"#funzioni\"><span class=\"link-text\">Funzioni<\/span><\/a>\n        <a href=\"#architettura\"><span class=\"link-text\">Architettura<\/span><\/a>\n        <a href=\"#perche-vb6\"><span class=\"link-text\">Perch\u00e9 VB6<\/span><\/a>\n        <button class=\"theme-toggle\" id=\"themeToggle\" aria-label=\"Cambia tema\" title=\"Chiaro \/ scuro\">\u2600<\/button>\n      <\/div>\n    <\/div>\n  <\/nav>\n\n  <div class=\"wrap\">\n    <header class=\"hero\">\n      <div class=\"hero-grid\">\n        <div>\n          <p class=\"kicker\">Previsione di cassa per piccole aziende<\/p>\n          <h1>A fine mese, i conti tornano? <span class=\"hl\">Scoprilo prima<\/span>, non dopo.<\/h1>\n          <p class=\"lede\">Pipeline legge le tue fatture da sola, impara come pagano davvero i tuoi clienti, e stima anche quello che ancora non ha una fattura \u2014 bollette, vendite future, acquisti \u2014 cos\u00ec la proiezione di cassa non ha buchi.<\/p>\n          <div class=\"cta-row\">\n            <a class=\"btn btn-primary\" href=\"#footer-cta\">Parliamo del tuo caso \u2192<\/a>\n            <a class=\"btn btn-ghost\" href=\"#funzioni\">Guarda come funziona<\/a>\n          <\/div>\n        <\/div>\n\n        <div>\n          <div class=\"exe-window\" id=\"chartCard\">\n            <div class=\"exe-titlebar\">\n              <span>Proiezione_Cashflow.exe<\/span>\n              <span class=\"tb-icons\"><span><\/span><span><\/span><span><\/span><\/span>\n            <\/div>\n            <div class=\"exe-toolbar\">\n              <div class=\"field\">Data inizio: <input class=\"fake\" value=\"01\/08\/2026\" readonly><\/div>\n              <div class=\"field\">Mesi: <input class=\"fake\" style=\"width:30px\" value=\"6\" readonly><\/div>\n              <div class=\"fbtn\">\u25b6 Genera proiezione<\/div>\n            <\/div>\n            <div class=\"exe-body\">\n              <div class=\"exe-chart\">\n                <div class=\"zero-line\"><\/div>\n                <div class=\"bars\" id=\"bars\"><\/div>\n              <\/div>\n              <div class=\"exe-labels\" id=\"barLabels\"><\/div>\n            <\/div>\n            <div class=\"exe-statusbar\">\n              <span>Saldo teorico fine periodo<\/span>\n              <span class=\"ok\" id=\"statusLabel\">calcolo\u2026<\/span>\n            <\/div>\n          <\/div>\n          <p class=\"exe-caption\">Le barre tratteggiate sono la previsione di oggi. Appena arriva il dato vero, si trasformano da sole in barre piene \u2014 verdi se il saldo resta positivo, rosse se serve attenzione. Questa \u00e8 la vera finestra del programma, non un mockup.<\/p>\n        <\/div>\n      <\/div>\n    <\/header>\n  <\/div>\n\n  <section class=\"problem-sec\">\n    <div class=\"wrap\">\n      <p class=\"problem\">\n        La maggior parte delle aziende scopre di essere in difficolt\u00e0 <u style=\"text-decoration-color: var(--signal-red);\">quando la scadenza \u00e8 gi\u00e0 arrivata<\/u>.\n        <span class=\"plain\">Un foglio Excel invecchia dal giorno dopo. Il commercialista lo vede a bilancio chiuso. Pipeline lo vede tre, sei, dodici mesi prima \u2014 e si aggiorna da sola ogni volta che arriva un dato nuovo.<\/span>\n      <\/p>\n    <\/div>\n  <\/section>\n\n  <section class=\"block\" id=\"funzioni\">\n    <div class=\"wrap\">\n      <p class=\"eyebrow\">Cosa fa, da sola<\/p>\n      <h2>Il lavoro che oggi fai a mano, o non fai per niente<\/h2>\n      <p class=\"section-lede\">Niente inserimento manuale, niente rincorrere le scadenze a memoria.<\/p>\n\n      <div class=\"feature-grid\">\n        <div class=\"feature-card\" style=\"--mark: var(--blue);\">\n          <div class=\"num\">01<\/div>\n          <h3>Legge le fatture da sola<\/h3>\n          <p>Trascini i PDF (anche dal cassetto fiscale) in una cartella. Riconosce fornitore, cliente, importo e scadenza, e li mette a posto nello scadenziario.<\/p>\n        <\/div>\n        <div class=\"feature-card\" style=\"--mark: var(--amber);\">\n          <div class=\"num\">02<\/div>\n          <h3>Impara come pagano i tuoi clienti<\/h3>\n          <p>Chi paga in anticipo, chi slitta sempre di due settimane, chi \u00e8 a rischio \u2014 cliente per cliente, in automatico.<\/p>\n        <\/div>\n        <div class=\"feature-card\" style=\"--mark: var(--signal-green);\">\n          <div class=\"num\">03<\/div>\n          <h3>Prevede anche ci\u00f2 che non ha ancora fattura<\/h3>\n          <p>Bollette non arrivate, vendite future, acquisti: stimati dalla storia dell&#8217;azienda, poi sostituiti dal dato vero.<\/p>\n          <div class=\"tag-demo\">\n            <span class=\"tag stima\">stima manuale<\/span>\n            <span class=\"tag reale\">fattura reale<\/span>\n          <\/div>\n        <\/div>\n        <div class=\"feature-card\" style=\"--mark: var(--signal-red);\">\n          <div class=\"num\">04<\/div>\n          <h3>Ti segue anche fuori ufficio<\/h3>\n          <p>Scadenziario, estratto conto, proiezione e classificazione clienti sincronizzati sul telefono.<\/p>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <section class=\"block\" id=\"perche-vb6\">\n    <div class=\"vb6-grid wrap\">\n      <div>\n        <p class=\"eyebrow\">La domanda che tutti fanno<\/p>\n        <h2>Perch\u00e9 VB6, nel 2026?<\/h2>\n        <div class=\"vb6-copy\">\n          <p><strong>Non \u00e8 nostalgia, \u00e8 una scelta.<\/strong> VB6 gira senza cloud, senza abbonamento, senza dipendere da una connessione \u2014 su un PC Windows qualunque, anche il pi\u00f9 vecchio dello studio del commercialista.<\/p>\n          <p>I tuoi dati restano <strong>sul tuo computer<\/strong>, in un database locale che apri quando vuoi tu, non quando lo decide un servizio online. Nessun rischio che il fornitore chiuda e ti porti via i dati.<\/p>\n          <p>Ed \u00e8 uno stack <strong>maturo da 25 anni<\/strong>: nessuna sorpresa, nessuna dipendenza che smette di funzionare dopo un aggiornamento.<\/p>\n        <\/div>\n      <\/div>\n      <ul class=\"vb6-list\">\n        <li><b>\u2192<\/b> Nessun cloud: i dati restano sul tuo PC<\/li>\n        <li><b>\u2192<\/b> Nessun abbonamento mensile a vita<\/li>\n        <li><b>\u2192<\/b> Funziona anche offline, sempre<\/li>\n        <li><b>\u2192<\/b> Si affianca al gestionale che gi\u00e0 usi<\/li>\n        <li><b>\u2192<\/b> La parte mobile resta sincronizzata quando serve<\/li>\n      <\/ul>\n    <\/div>\n  <\/section>\n\n  <section class=\"block\" id=\"architettura\">\n    <div class=\"wrap\">\n      <p class=\"eyebrow\">Due facciate, un solo registro<\/p>\n      <h2>In ufficio e in tasca<\/h2>\n      <div class=\"duality\">\n        <div>\n          <h3>Sulla scrivania<\/h3>\n          <p>Il motore: import fatture, scadenziario, apprendimento comportamentale, proiezione cassa.<\/p>\n          <ul>\n            <li>Estratto conto per cliente<\/li>\n            <li>Movimenti ricorrenti e riallineamenti<\/li>\n            <li>Grafico mensile Cassa \/ Teorico<\/li>\n            <li>Confronto previsto vs. reale nel tempo<\/li>\n          <\/ul>\n        <\/div>\n        <div>\n          <h3>In tasca<\/h3>\n          <p>Lo stesso quadro, sincronizzato, ovunque tu sia.<\/p>\n          <ul>\n            <li>Dashboard di sintesi<\/li>\n            <li>Classificazione clienti a colpo d&#8217;occhio<\/li>\n            <li>Scadenziario e proiezione mobile<\/li>\n            <li>Aggiornamento automatico<\/li>\n          <\/ul>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <section class=\"block\">\n    <div class=\"wrap\">\n      <div class=\"honest\">\n        <p class=\"eyebrow\">Onest\u00e0, non magia<\/p>\n        <h2>Se non ha abbastanza storia per essere precisa, te lo dice<\/h2>\n        <p>Ogni previsione porta con s\u00e9 la sua origine \u2014 stima manuale, media storica, o fattura reale gi\u00e0 in scadenzario. Pipeline conserva ogni previsione nel tempo, cos\u00ec puoi verificare tu stesso quanto \u00e8 affidabile, invece di doverci credere sulla fiducia.<\/p>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <footer id=\"footer-cta\">\n    <div class=\"wrap\">\n      <p class=\"cta-line\">In beta, testata su dati reali. Cerco 3\u20135 aziende per il test.<\/p>\n      <div class=\"stamp\"><span class=\"sq\"><\/span>Nessuna migrazione richiesta \u2014 affianca il tuo gestionale, non lo sostituisce<\/div>\n      <p class=\"fine\">Pipeline \u2014 Scadenziario &amp; Cashflow Intelligente<\/p>\n    <\/div>\n  <\/footer>\n\n<script>\n(function(){\n  var mesi = [\n    { label:\"Ago\", valore: 34, stato:\"reale\" },\n    { label:\"Set\", valore: 22, stato:\"reale\" },\n    { label:\"Ott\", valore:-14, stato:\"reale\" },\n    { label:\"Nov\", valore: 18, stato:\"previsto\" },\n    { label:\"Dic\", valore: -9, stato:\"previsto\" },\n    { label:\"Gen\", valore: 27, stato:\"previsto\" }\n  ];\n  var barsEl = document.getElementById('bars');\n  var labelsEl = document.getElementById('barLabels');\n  var statusEl = document.getElementById('statusLabel');\n  var maxAbs = Math.max.apply(null, mesi.map(function(m){ return Math.abs(m.valore); }));\n\n  mesi.forEach(function(m){\n    var col = document.createElement('div'); col.className='bar-col';\n    var bar = document.createElement('div');\n    var dir = m.valore >= 0 ? 'up' : 'down';\n    bar.className = 'bar ' + dir + ' ' + (m.stato==='reale' ? 'reale' : 'previsto');\n    bar.style.height = '0px';\n    bar.dataset.finalHeight = (Math.abs(m.valore)\/maxAbs*40) + '%';\n    bar.dataset.stato = m.stato;\n    col.appendChild(bar); barsEl.appendChild(col);\n    var lab = document.createElement('span'); lab.textContent = m.label; labelsEl.appendChild(lab);\n  });\n\n  function anima(){\n    var barre = barsEl.querySelectorAll('.bar');\n    barre.forEach(function(b,i){ setTimeout(function(){ b.style.height = b.dataset.finalHeight; }, i*110); });\n    setTimeout(function(){ statusEl.textContent = \"+78.400 \u20ac (teorico)\"; }, barre.length*110 + 400);\n    setTimeout(function(){\n      var previsti = barsEl.querySelectorAll('.bar[data-stato=\"previsto\"]');\n      if (previsti.length){\n        var b = previsti[0];\n        b.dataset.stato='reale'; b.classList.remove('previsto'); b.classList.add('reale');\n      }\n    }, barre.length*110 + 1400);\n  }\n  var osservato = false;\n  new IntersectionObserver(function(entries){\n    entries.forEach(function(e){ if (e.isIntersecting && !osservato){ osservato = true; anima(); } });\n  }, { threshold: .4 }).observe(document.getElementById('chartCard'));\n\n  var toggle = document.getElementById('themeToggle');\n  var root = document.documentElement;\n  var saved = localStorage.getItem('pipeline-theme');\n  if (saved === 'dark'){ root.setAttribute('data-theme','dark'); toggle.textContent = '\u263e'; }\n  toggle.addEventListener('click', function(){\n    var isDark = root.getAttribute('data-theme') === 'dark';\n    if (isDark){ root.removeAttribute('data-theme'); toggle.textContent='\u2600'; localStorage.setItem('pipeline-theme','light'); }\n    else{ root.setAttribute('data-theme','dark'); toggle.textContent='\u263e'; localStorage.setItem('pipeline-theme','dark'); }\n  });\n})();\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd04 Questa \u00e9 la versione legacy in formato Visual Basic 6.0 che \u00e8 stato creato ad hoc per il portale www.gestioneindustriale.it Sul portale di LL Lavorazione Lamiera Srl \u00e9 attiva la nuova versione 4.0 I dati in ingresso sono gli stessi, il risultato \u00e8 tutto da vedere! Guarda sul sito \u2192 \ud83d\udd04 Questa \u00e9 la &#8230; <a title=\"Test\" class=\"read-more\" href=\"https:\/\/www.gestioneindustriale.it\/it_it\/test\/\" aria-label=\"Per saperne di pi\u00f9 su Test\">Leggi tutto<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1961","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/pages\/1961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/comments?post=1961"}],"version-history":[{"count":24,"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/pages\/1961\/revisions"}],"predecessor-version":[{"id":2213,"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/pages\/1961\/revisions\/2213"}],"wp:attachment":[{"href":"https:\/\/www.gestioneindustriale.it\/it_it\/wp-json\/wp\/v2\/media?parent=1961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}