{"id":1318,"date":"2025-09-04T10:21:09","date_gmt":"2025-09-04T10:21:09","guid":{"rendered":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/index.php\/home\/"},"modified":"2026-11-08T22:08:22","modified_gmt":"2026-11-08T22:08:22","slug":"home","status":"publish","type":"page","link":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","title":{"rendered":"Home"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1318\" class=\"elementor elementor-1318\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3768344 e-flex e-con-boxed e-con e-parent\" data-id=\"3768344\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-53a2fdc elementor-widget elementor-widget-html\" data-id=\"53a2fdc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\r\n\/* =========================================================\r\n   CDC \u2022 WEBCAM FLOATING LAUNCHER \u2014 V30\r\n   DARK GLASS \/ LIQUID DROP \/ PERFORMANCE FIRST\r\n\r\n   Ottimizzato per Safari iOS 26\/27, Chrome Android e desktop.\r\n   Obiettivi:\r\n   - animazioni principalmente su transform\/opacity\r\n   - niente will-change permanente sui pannelli grandi\r\n   - raggi sospesi quando il launcher \u00e8 nascosto\r\n   - niente backdrop-filter sul pannello webcam mobile\r\n   - cache-busting allineato al ciclo reale di aggiornamento immagini\r\n   - rotazione senza flash nero tra una webcam e l'altra\r\n   - gestione robusta di aperture\/chiusure ravvicinate\r\n   - fallback per browser meno recenti\r\n\r\n   Grafica, dimensioni, testi, URL e struttura funzionale mantenuti. Migliorie limitate a fluidit\u00e0, gestione risorse, pulsanti X e resa luminosa del launcher.\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-launcher,\r\n#cdc-w7-launcher *,\r\n#cdc-w7-overlay,\r\n#cdc-w7-overlay *,\r\n#cdc-w7-zoom,\r\n#cdc-w7-zoom * {\r\n    box-sizing: border-box;\r\n    -webkit-tap-highlight-color: transparent;\r\n}\r\n\r\n\/* =========================================================\r\n   LAUNCHER\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-launcher {\r\n    position: fixed !important;\r\n    left: 22px !important;\r\n    right: auto !important;\r\n    bottom: 22px !important;\r\n\r\n    width: 64px !important;\r\n    height: 64px !important;\r\n\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n\r\n    border: 1px solid rgba(72,220,146,.34) !important;\r\n    border-radius: 50% !important;\r\n\r\n    background:\r\n        radial-gradient(circle at 34% 28%, rgba(116,255,181,.18), transparent 38%),\r\n        radial-gradient(circle at 66% 72%, rgba(72,220,146,.055), transparent 50%),\r\n        linear-gradient(145deg, rgba(20,42,39,.94), rgba(7,20,27,.96)) !important;\r\n\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: center !important;\r\n\r\n    color: #fff !important;\r\n    cursor: pointer !important;\r\n    z-index: 2147483000 !important;\r\n    overflow: visible !important;\r\n\r\n    -webkit-backdrop-filter: none !important;\r\n    backdrop-filter: none !important;\r\n\r\n    box-shadow:\r\n        0 12px 28px rgba(0,0,0,.32),\r\n        0 0 0 1px rgba(255,255,255,.035),\r\n        0 0 18px rgba(72,220,146,.14),\r\n        inset 0 1px 0 rgba(255,255,255,.10) !important;\r\n\r\n    opacity: 1 !important;\r\n    transform: translate3d(0,0,0) scale3d(1,1,1) !important;\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n\r\n    transition:\r\n        opacity .24s cubic-bezier(.25,.8,.25,1),\r\n        transform .30s cubic-bezier(.22,1.08,.30,1),\r\n        border-color .20s ease,\r\n        box-shadow .20s ease !important;\r\n\r\n    touch-action: manipulation !important;\r\n    user-select: none;\r\n    -webkit-user-select: none;\r\n}\r\n\r\n\/* =========================================================\r\n   RAGGI + PULSAZIONE INTERNA\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-launcher::before {\r\n    content: \"\";\r\n    position: absolute;\r\n    inset: -5px;\r\n    border: 1.5px solid rgba(82,238,157,.62);\r\n    border-radius: 50%;\r\n    pointer-events: none;\r\n    z-index: -2;\r\n    box-shadow:\r\n        0 0 0 4px rgba(72,220,146,.13),\r\n        0 0 16px rgba(72,220,146,.15);\r\n    opacity: .92;\r\n    transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    animation: cdcw7-ring-one 3.8s cubic-bezier(.18,.7,.2,1) infinite;\r\n}\r\n\r\n#cdc-w7-launcher::after {\r\n    content: \"\";\r\n    position: absolute;\r\n    inset: -5px;\r\n    border: 1px solid rgba(88,242,164,.46);\r\n    border-radius: 50%;\r\n    pointer-events: none;\r\n    z-index: -1;\r\n    box-shadow:\r\n        0 0 0 4px rgba(72,220,146,.10),\r\n        0 0 16px rgba(72,220,146,.10);\r\n    opacity: .76;\r\n    transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    animation: cdcw7-ring-two 3.8s cubic-bezier(.18,.7,.2,1) 1.9s infinite;\r\n}\r\n\r\n\/*\r\n   Pulsazione interna molto leggera.\r\n   Un singolo layer radiale senza blur: l'animazione usa solo\r\n   opacity + transform per restare reattiva anche su mobile.\r\n*\/\r\n#cdc-w7-inner-pulse {\r\n    position: absolute;\r\n    width: 44px;\r\n    height: 44px;\r\n    left: 50%;\r\n    top: 50%;\r\n    margin: -22px 0 0 -22px;\r\n    border-radius: 50%;\r\n    pointer-events: none;\r\n    z-index: 1;\r\n    background: radial-gradient(\r\n        circle at 50% 50%,\r\n        rgba(125,255,187,.24) 0%,\r\n        rgba(72,220,146,.15) 28%,\r\n        rgba(72,220,146,.065) 52%,\r\n        rgba(72,220,146,0) 74%\r\n    );\r\n    opacity: .72;\r\n    transform: translate3d(0,0,0) scale3d(.86,.86,1);\r\n    animation: cdcw7-inner-pulse 2.6s cubic-bezier(.35,0,.25,1) infinite;\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n}\r\n\r\n#cdc-w7-launcher.cdcw7-hidden::before,\r\n#cdc-w7-launcher.cdcw7-hidden::after,\r\n#cdc-w7-launcher.cdcw7-hidden #cdc-w7-inner-pulse {\r\n    animation-play-state: paused !important;\r\n}\r\n\r\n#cdc-w7-launcher.cdcw7-hidden {\r\n    opacity: 0 !important;\r\n    pointer-events: none !important;\r\n    transform: translate3d(0,0,0) scale3d(.62,.62,1) !important;\r\n}\r\n\r\n#cdc-w7-launcher.cdcw7-page-hidden::before,\r\n#cdc-w7-launcher.cdcw7-page-hidden::after,\r\n#cdc-w7-launcher.cdcw7-page-hidden #cdc-w7-inner-pulse,\r\n#cdc-w7-overlay.cdcw7-page-hidden #cdc-w7-live-dot {\r\n    animation-play-state: paused !important;\r\n}\r\n\r\n@keyframes cdcw7-ring-one {\r\n    0% {\r\n        opacity: .92;\r\n        transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    }\r\n    40% {\r\n        opacity: .58;\r\n        transform: translate3d(0,0,0) scale3d(1.06,1.06,1);\r\n    }\r\n    70% {\r\n        opacity: .13;\r\n        transform: translate3d(0,0,0) scale3d(1.32,1.32,1);\r\n    }\r\n    100% {\r\n        opacity: 0;\r\n        transform: translate3d(0,0,0) scale3d(1.45,1.45,1);\r\n    }\r\n}\r\n\r\n@keyframes cdcw7-ring-two {\r\n    0%, 100% {\r\n        opacity: 0;\r\n        transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    }\r\n    15% {\r\n        opacity: .78;\r\n        transform: translate3d(0,0,0) scale3d(.94,.94,1);\r\n    }\r\n    45% {\r\n        opacity: .42;\r\n        transform: translate3d(0,0,0) scale3d(1.12,1.12,1);\r\n    }\r\n    75% {\r\n        opacity: .07;\r\n        transform: translate3d(0,0,0) scale3d(1.38,1.38,1);\r\n    }\r\n}\r\n\r\n@keyframes cdcw7-inner-pulse {\r\n    0%, 100% {\r\n        opacity: .52;\r\n        transform: translate3d(0,0,0) scale3d(.86,.86,1);\r\n    }\r\n    42% {\r\n        opacity: .90;\r\n        transform: translate3d(0,0,0) scale3d(1.02,1.02,1);\r\n    }\r\n    68% {\r\n        opacity: .67;\r\n        transform: translate3d(0,0,0) scale3d(1.08,1.08,1);\r\n    }\r\n}\r\n\/* =========================================================\r\n   HOVER \/ TOUCH\r\n   ========================================================= *\/\r\n\r\n@media (hover: hover) and (pointer: fine) {\r\n    #cdc-w7-launcher:hover {\r\n        transform: translate3d(0,0,0) scale3d(1.07,1.07,1) !important;\r\n        border-color: rgba(108,241,171,.50) !important;\r\n        box-shadow:\r\n            0 14px 32px rgba(0,0,0,.36),\r\n            0 0 0 1px rgba(255,255,255,.04),\r\n            0 0 22px rgba(72,220,146,.18) !important;\r\n    }\r\n\r\n    #cdc-w7-launcher:hover svg {\r\n        transform: translate3d(0,0,0) scale3d(1.07,1.07,1) !important;\r\n    }\r\n\r\n    #cdc-w7-close:hover {\r\n        background: rgba(78,13,24,.70) !important;\r\n        border-color: rgba(255,135,150,.28) !important;\r\n        color: #fff !important;\r\n    }\r\n\r\n    .cdc-w7-arrow:hover {\r\n        background: rgba(32,165,109,.58) !important;\r\n        border-color: rgba(98,242,170,.30) !important;\r\n        opacity: 1 !important;\r\n    }\r\n\r\n    #cdc-w7-zoom-close:hover {\r\n        background: rgba(38,180,119,.55) !important;\r\n        border-color: rgba(104,245,177,.32) !important;\r\n        color: #fff !important;\r\n    }\r\n\r\n    .cdc-w7-dot:hover {\r\n        background: rgba(255,255,255,.55) !important;\r\n        transform: scale3d(1.25,1.25,1) !important;\r\n    }\r\n}\r\n\r\n#cdc-w7-launcher:active {\r\n    transform: translate3d(0,0,0) scale3d(.93,.93,1) !important;\r\n}\r\n\r\n#cdc-w7-launcher:active svg {\r\n    transform: translate3d(0,0,0) scale3d(.91,.91,1) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   KEYFRAMES LAUNCHER\r\n   ========================================================= *\/\r\n\r\n@keyframes cdcw7-ring-one {\r\n    0% {\r\n        opacity: .88;\r\n        transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    }\r\n    40% {\r\n        opacity: .52;\r\n        transform: translate3d(0,0,0) scale3d(1.06,1.06,1);\r\n    }\r\n    70% {\r\n        opacity: .10;\r\n        transform: translate3d(0,0,0) scale3d(1.32,1.32,1);\r\n    }\r\n    100% {\r\n        opacity: 0;\r\n        transform: translate3d(0,0,0) scale3d(1.45,1.45,1);\r\n    }\r\n}\r\n\r\n@keyframes cdcw7-ring-two {\r\n    0%, 100% {\r\n        opacity: 0;\r\n        transform: translate3d(0,0,0) scale3d(.88,.88,1);\r\n    }\r\n    15% {\r\n        opacity: .72;\r\n        transform: translate3d(0,0,0) scale3d(.94,.94,1);\r\n    }\r\n    45% {\r\n        opacity: .36;\r\n        transform: translate3d(0,0,0) scale3d(1.12,1.12,1);\r\n    }\r\n    75% {\r\n        opacity: .06;\r\n        transform: translate3d(0,0,0) scale3d(1.38,1.38,1);\r\n    }\r\n}\r\n\r\n\/* =========================================================\r\n   ICONA SVG\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-launcher svg {\r\n    width: 34px !important;\r\n    height: 34px !important;\r\n    display: block !important;\r\n    position: relative;\r\n    z-index: 2;\r\n    filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));\r\n    transform: translate3d(0,0,0) scale3d(1,1,1) !important;\r\n    transition: transform .26s cubic-bezier(.22,1.08,.30,1) !important;\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n}\r\n\r\n\/* =========================================================\r\n   OVERLAY\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-overlay {\r\n    position: fixed !important;\r\n    inset: 0 !important;\r\n    display: flex !important;\r\n    align-items: flex-end !important;\r\n    justify-content: flex-start !important;\r\n    padding: 22px !important;\r\n    background: transparent !important;\r\n    pointer-events: none !important;\r\n    z-index: 2147482990 !important;\r\n    visibility: hidden !important;\r\n    transition: visibility 0s linear .36s !important;\r\n    overscroll-behavior: none;\r\n}\r\n\r\n#cdc-w7-overlay.cdcw7-active,\r\n#cdc-w7-overlay.cdcw7-closing {\r\n    visibility: visible !important;\r\n}\r\n\r\n\/* =========================================================\r\n   FINESTRA WEBCAM\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-window {\r\n    position: relative !important;\r\n    width: 430px !important;\r\n    max-width: calc(100vw - 44px) !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    overflow: hidden !important;\r\n\r\n    background:\r\n        linear-gradient(\r\n            145deg,\r\n            rgba(12,23,34,.975),\r\n            rgba(5,13,21,.985)\r\n        ) !important;\r\n\r\n    border: 1px solid rgba(255,255,255,.11) !important;\r\n    border-radius: 20px !important;\r\n\r\n    box-shadow:\r\n        0 20px 50px rgba(0,0,0,.45),\r\n        0 0 0 1px rgba(255,255,255,.025) !important;\r\n\r\n    \/*\r\n       Sui dispositivi touch evitiamo il blur del backdrop per\r\n       contenere il costo di compositing; desktop mantiene un\r\n       blur leggero per conservare il feeling glass.\r\n    *\/\r\n    -webkit-backdrop-filter: none !important;\r\n    backdrop-filter: none !important;\r\n\r\n    pointer-events: none !important;\r\n\r\n    opacity: 0;\r\n\r\n    transform:\r\n        translate3d(0,20px,0)\r\n        scale3d(.28,.18,1);\r\n\r\n    transform-origin: 16px 100%;\r\n\r\n    isolation: isolate;\r\n\r\n    contain: layout style paint;\r\n\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n\r\n    transition:\r\n        opacity .22s cubic-bezier(.22,1,.36,1),\r\n        transform .40s cubic-bezier(.18,1.08,.28,1) !important;\r\n}\r\n\r\n@media (min-width: 768px) {\r\n    #cdc-w7-overlay.cdcw7-active #cdc-w7-window,\r\n    #cdc-w7-overlay.cdcw7-closing #cdc-w7-window {\r\n        -webkit-backdrop-filter: blur(7px) saturate(118%) !important;\r\n        backdrop-filter: blur(7px) saturate(118%) !important;\r\n    }\r\n}\r\n\r\n#cdc-w7-overlay.cdcw7-active #cdc-w7-window {\r\n    opacity: 1;\r\n    transform:\r\n        translate3d(0,0,0)\r\n        scale3d(1,1,1);\r\n    pointer-events: auto !important;\r\n}\r\n\r\n#cdc-w7-overlay.cdcw7-active.cdcw7-closing #cdc-w7-window {\r\n    opacity: 0;\r\n    transform:\r\n        translate3d(0,12px,0)\r\n        scale3d(.26,.17,1);\r\n    pointer-events: none !important;\r\n    transition:\r\n        opacity .23s cubic-bezier(.4,0,.2,1),\r\n        transform .33s cubic-bezier(.4,0,.2,1) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   HEADER\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-header {\r\n    position: relative !important;\r\n    width: 100% !important;\r\n    height: 48px !important;\r\n    padding: 0 8px 0 15px !important;\r\n    margin: 0 !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: space-between !important;\r\n    background:\r\n        linear-gradient(\r\n            135deg,\r\n            rgba(48,191,126,.20),\r\n            rgba(20,109,83,.14)\r\n        ) !important;\r\n    color: #fff !important;\r\n    border-bottom: 1px solid rgba(72,220,146,.15) !important;\r\n    line-height: 1 !important;\r\n    overflow: hidden !important;\r\n}\r\n\r\n#cdc-w7-header::before {\r\n    content: \"\";\r\n    position: absolute;\r\n    width: 160px;\r\n    height: 80px;\r\n    left: -35px;\r\n    top: -55px;\r\n    border-radius: 50%;\r\n    background: rgba(72,220,146,.09);\r\n    filter: blur(20px);\r\n    pointer-events: none;\r\n}\r\n\r\n#cdc-w7-overlay:not(.cdcw7-active) #cdc-w7-header::before {\r\n    display: none;\r\n}\r\n\r\n\/* =========================================================\r\n   LIVE\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-live {\r\n    position: relative;\r\n    z-index: 2;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    gap: 8px !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 12px !important;\r\n    font-weight: 750 !important;\r\n    letter-spacing: .055em !important;\r\n    color: rgba(235,255,244,.96) !important;\r\n}\r\n\r\n#cdc-w7-live-dot {\r\n    width: 8px !important;\r\n    height: 8px !important;\r\n    flex: 0 0 8px !important;\r\n    border-radius: 50% !important;\r\n    background:\r\n        radial-gradient(\r\n            circle at 35% 30%,\r\n            #ffd2d2 0%,\r\n            #ff6666 32%,\r\n            #ff3030 68%,\r\n            #d81919 100%\r\n        ) !important;\r\n    box-shadow:\r\n        0 0 0 3px rgba(255,255,255,.07),\r\n        0 0 7px rgba(255,45,45,.25) !important;\r\n    animation: cdcw7-live 1.5s ease-in-out infinite;\r\n}\r\n\r\n@keyframes cdcw7-live {\r\n    0%,100% {\r\n        opacity: 1;\r\n        transform: translate3d(0,0,0) scale3d(1,1,1);\r\n    }\r\n    50% {\r\n        opacity: .55;\r\n        transform: translate3d(0,0,0) scale3d(.84,.84,1);\r\n    }\r\n}\r\n\r\n\/* =========================================================\r\n   CLOSE POPUP\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-close {\r\n    position: relative;\r\n    z-index: 3;\r\n    width: 32px !important;\r\n    height: 32px !important;\r\n    flex: 0 0 32px !important;\r\n    display: grid !important;\r\n    place-items: center !important;\r\n    padding: 0 !important;\r\n    border: 1px solid rgba(255,255,255,.10) !important;\r\n    border-radius: 50% !important;\r\n    color: rgba(255,255,255,.94) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 0 !important;\r\n    font-weight: 800 !important;\r\n    line-height: 1 !important;\r\n    cursor: pointer !important;\r\n    background: rgba(68,12,21,.68) !important;\r\n    transition:\r\n        background .12s ease,\r\n        border-color .12s ease,\r\n        color .12s ease !important;\r\n    touch-action: manipulation;\r\n    -webkit-font-smoothing: antialiased;\r\n}\r\n\r\n\/*\r\n   X otticamente centrata e pi\u00f9 leggibile.\r\n   Il transform \u00e8 statico: serve solo al centraggio del glifo,\r\n   non viene mai modificato durante hover\/tap\/chiusura.\r\n*\/\r\n#cdc-w7-close::before {\r\n    content: \"\u00d7\";\r\n    display: block;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif;\r\n    font-size: 25px;\r\n    font-weight: 800;\r\n    line-height: .84;\r\n    letter-spacing: 0;\r\n    color: currentColor;\r\n    transform: translate3d(0,-.5px,0);\r\n    -webkit-font-smoothing: antialiased;\r\n}\r\n\r\n#cdc-w7-close:active {\r\n    background: rgba(82,14,25,.76) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   IMAGE AREA\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-image-wrap {\r\n    position: relative !important;\r\n    width: 100% !important;\r\n    aspect-ratio: 16 \/ 9 !important;\r\n    overflow: hidden !important;\r\n    background: #000 !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    line-height: 0 !important;\r\n}\r\n\r\n#cdc-w7-image-wrap::after {\r\n    content: \"\";\r\n    position: absolute;\r\n    inset: 0;\r\n    border: 1px solid rgba(255,255,255,.03);\r\n    pointer-events: none;\r\n    z-index: 7;\r\n}\r\n\r\n#cdc-w7-image {\r\n    position: absolute !important;\r\n    inset: 0 !important;\r\n    width: 100% !important;\r\n    height: 100% !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    border: 0 !important;\r\n    display: block !important;\r\n    background: #000 !important;\r\n    object-fit: contain !important;\r\n    opacity: 0;\r\n    transform: translate3d(0,0,0);\r\n    transition: opacity .16s ease !important;\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n}\r\n\r\n#cdc-w7-image.cdcw7-image-ready {\r\n    opacity: 1;\r\n}\r\n\r\n\/* =========================================================\r\n   INVISIBLE ZOOM TARGET\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-zoom-button {\r\n    position: absolute !important;\r\n    inset: 0 !important;\r\n    width: 100% !important;\r\n    height: 100% !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    border: 0 !important;\r\n    outline: 0 !important;\r\n    background: transparent !important;\r\n    box-shadow: none !important;\r\n    appearance: none !important;\r\n    -webkit-appearance: none !important;\r\n    cursor: zoom-in !important;\r\n    z-index: 8 !important;\r\n    color: transparent !important;\r\n    font-size: 0 !important;\r\n    line-height: 0 !important;\r\n    border-radius: 0 !important;\r\n    touch-action: manipulation !important;\r\n}\r\n\r\n\/* Frecce sopra il target invisibile *\/\r\n.cdc-w7-arrow {\r\n    z-index: 10 !important;\r\n}\r\n\r\n\/* =========================================================\r\n   LOADING \/ ERROR\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-loading {\r\n    position: absolute !important;\r\n    inset: 0 !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: center !important;\r\n    background:\r\n        radial-gradient(\r\n            circle at center,\r\n            rgba(25,52,46,.28),\r\n            rgba(0,0,0,.97) 68%\r\n        ) !important;\r\n    color: rgba(255,255,255,.76) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 13px !important;\r\n    font-weight: 500 !important;\r\n    z-index: 4 !important;\r\n    transition: opacity .16s ease !important;\r\n}\r\n\r\n#cdc-w7-loading.cdcw7-loaded {\r\n    opacity: 0 !important;\r\n    pointer-events: none !important;\r\n}\r\n\r\n#cdc-w7-error {\r\n    position: absolute !important;\r\n    left: 50% !important;\r\n    top: 50% !important;\r\n    transform: translate3d(-50%,-50%,0) !important;\r\n    width: 90% !important;\r\n    padding: 12px 15px !important;\r\n    border: 1px solid rgba(255,255,255,.08) !important;\r\n    border-radius: 12px !important;\r\n    background: rgba(10,17,25,.78) !important;\r\n    text-align: center !important;\r\n    color: rgba(255,255,255,.82) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 13px !important;\r\n    z-index: 12 !important;\r\n    opacity: 0 !important;\r\n    pointer-events: none !important;\r\n    -webkit-backdrop-filter: none !important;\r\n    backdrop-filter: none !important;\r\n    transition: opacity .16s ease !important;\r\n}\r\n\r\n#cdc-w7-error.cdcw7-error-active {\r\n    opacity: 1 !important;\r\n    -webkit-backdrop-filter: blur(8px) !important;\r\n    backdrop-filter: blur(8px) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   FRECCE\r\n   ========================================================= *\/\r\n\r\n.cdc-w7-arrow {\r\n    position: absolute !important;\r\n    top: 50% !important;\r\n    transform: translate3d(0,-50%,0) !important;\r\n    width: 38px !important;\r\n    height: 54px !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    border: 1px solid rgba(255,255,255,.08) !important;\r\n    border-radius: 11px !important;\r\n    background: rgba(5,12,19,.50) !important;\r\n    color: rgba(255,255,255,.90) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 25px !important;\r\n    line-height: 54px !important;\r\n    text-align: center !important;\r\n    cursor: pointer !important;\r\n    z-index: 10 !important;\r\n    opacity: .76 !important;\r\n    -webkit-backdrop-filter: blur(6px) !important;\r\n    backdrop-filter: blur(6px) !important;\r\n    transition:\r\n        background .16s ease,\r\n        opacity .16s ease,\r\n        border-color .16s ease,\r\n        transform .22s cubic-bezier(.22,1.08,.30,1) !important;\r\n    touch-action: manipulation;\r\n}\r\n\r\n.cdc-w7-arrow:active {\r\n    transform:\r\n        translate3d(0,-50%,0)\r\n        scale3d(.92,.92,1) !important;\r\n}\r\n\r\n#cdc-w7-prev { left: 10px !important; }\r\n#cdc-w7-next { right: 10px !important; }\r\n\r\n\/* =========================================================\r\n   ZOOM\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-zoom {\r\n    position: fixed !important;\r\n    inset: 0 !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: center !important;\r\n    padding: 30px !important;\r\n    background:\r\n        radial-gradient(\r\n            circle at 50% 45%,\r\n            rgba(27,52,57,.15),\r\n            transparent 45%\r\n        ),\r\n        rgba(2,7,11,.96) !important;\r\n    z-index: 2147483100 !important;\r\n    visibility: hidden !important;\r\n    opacity: 0 !important;\r\n    pointer-events: none !important;\r\n    transition:\r\n        opacity .23s cubic-bezier(.22,1,.36,1),\r\n        visibility 0s linear .28s !important;\r\n    touch-action: manipulation !important;\r\n    overscroll-behavior: none !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active,\r\n#cdc-w7-zoom.cdcw7-zoom-closing {\r\n    visibility: visible !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active {\r\n    opacity: 1 !important;\r\n    pointer-events: auto !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active.cdcw7-zoom-closing {\r\n    opacity: 0 !important;\r\n    pointer-events: none !important;\r\n}\r\n\r\n#cdc-w7-zoom-image {\r\n    max-width: 96vw !important;\r\n    max-height: 90vh !important;\r\n    width: auto !important;\r\n    height: auto !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    border: 1px solid rgba(255,255,255,.07) !important;\r\n    border-radius: 12px !important;\r\n    display: block !important;\r\n    object-fit: contain !important;\r\n    background: #000 !important;\r\n    box-shadow: 0 18px 55px rgba(0,0,0,.55) !important;\r\n    opacity: 0;\r\n    transform:\r\n        translate3d(0,8px,0)\r\n        scale3d(.94,.94,1);\r\n    backface-visibility: hidden;\r\n    -webkit-backface-visibility: hidden;\r\n    transition:\r\n        opacity .25s cubic-bezier(.22,1,.36,1),\r\n        transform .30s cubic-bezier(.18,1.08,.30,1) !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active\r\n    #cdc-w7-zoom-image.cdcw7-zoom-image-ready {\r\n    opacity: 1;\r\n    transform:\r\n        translate3d(0,0,0)\r\n        scale3d(1,1,1);\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active.cdcw7-zoom-closing\r\n    #cdc-w7-zoom-image {\r\n    opacity: 0;\r\n    transform:\r\n        translate3d(0,5px,0)\r\n        scale3d(.96,.96,1);\r\n}\r\n\r\n\/* =========================================================\r\n   CHIUDI ZOOM\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-zoom-close {\r\n    position: fixed !important;\r\n    top: max(18px, calc(env(safe-area-inset-top,0px) + 10px)) !important;\r\n    right: max(22px, calc(env(safe-area-inset-right,0px) + 10px)) !important;\r\n    width: 46px !important;\r\n    height: 46px !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: center !important;\r\n    border: 1px solid rgba(255,255,255,.12) !important;\r\n    border-radius: 50% !important;\r\n    background: rgba(10,20,29,.66) !important;\r\n    color: rgba(255,255,255,.90) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 37px !important;\r\n    font-weight: 800 !important;\r\n    line-height: 1 !important;\r\n    cursor: pointer !important;\r\n    z-index: 20 !important;\r\n    -webkit-backdrop-filter: none !important;\r\n    backdrop-filter: none !important;\r\n    opacity: 0;\r\n    transition:\r\n        opacity .20s ease,\r\n        background .16s ease,\r\n        border-color .16s ease !important;\r\n    touch-action: manipulation;\r\n    -webkit-font-smoothing: antialiased;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active #cdc-w7-zoom-close {\r\n    opacity: 1;\r\n    -webkit-backdrop-filter: blur(10px) !important;\r\n    backdrop-filter: blur(10px) !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active.cdcw7-zoom-closing\r\n    #cdc-w7-zoom-close {\r\n    opacity: 0;\r\n}\r\n\r\n#cdc-w7-zoom-close:active {\r\n    background: rgba(10,20,29,.72) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   INFO ZOOM\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-zoom-info {\r\n    position: fixed !important;\r\n    left: 50% !important;\r\n    bottom: max(18px, calc(env(safe-area-inset-bottom,0px) + 10px)) !important;\r\n    transform: translate3d(-50%,8px,0) !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    gap: 12px !important;\r\n    padding: 8px 14px !important;\r\n    border: 1px solid rgba(255,255,255,.09) !important;\r\n    border-radius: 999px !important;\r\n    background: rgba(8,17,26,.68) !important;\r\n    color: rgba(255,255,255,.90) !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    font-size: 13px !important;\r\n    z-index: 20 !important;\r\n    -webkit-backdrop-filter: none !important;\r\n    backdrop-filter: none !important;\r\n    opacity: 0;\r\n    transition:\r\n        opacity .22s ease,\r\n        transform .27s cubic-bezier(.22,1.08,.30,1) !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active #cdc-w7-zoom-info {\r\n    opacity: 1;\r\n    -webkit-backdrop-filter: blur(12px) !important;\r\n    backdrop-filter: blur(12px) !important;\r\n    transform: translate3d(-50%,0,0) !important;\r\n}\r\n\r\n#cdc-w7-zoom.cdcw7-zoom-active.cdcw7-zoom-closing #cdc-w7-zoom-info {\r\n    opacity: 0;\r\n    transform: translate3d(-50%,6px,0) !important;\r\n}\r\n\r\n#cdc-w7-zoom-counter {\r\n    color: rgba(255,255,255,.45) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   INFO POPUP + DOTS\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-info {\r\n    min-height: 42px !important;\r\n    width: 100% !important;\r\n    padding: 9px 14px !important;\r\n    margin: 0 !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: space-between !important;\r\n    gap: 10px !important;\r\n    background: rgba(9,18,27,.88) !important;\r\n    color: #fff !important;\r\n    font-family:\r\n        -apple-system,\r\n        BlinkMacSystemFont,\r\n        \"Segoe UI\",\r\n        Roboto,\r\n        Helvetica,\r\n        Arial,\r\n        sans-serif !important;\r\n    line-height: 1.2 !important;\r\n    border-top: 1px solid rgba(255,255,255,.04) !important;\r\n}\r\n\r\n#cdc-w7-title {\r\n    min-width: 0 !important;\r\n    overflow: hidden !important;\r\n    text-overflow: ellipsis !important;\r\n    white-space: nowrap !important;\r\n    font-size: 13px !important;\r\n    font-weight: 650 !important;\r\n    color: rgba(255,255,255,.92) !important;\r\n}\r\n\r\n#cdc-w7-counter {\r\n    flex: 0 0 auto !important;\r\n    color: rgba(255,255,255,.46) !important;\r\n    font-size: 11px !important;\r\n    font-weight: 600 !important;\r\n}\r\n\r\n#cdc-w7-dots {\r\n    width: 100% !important;\r\n    min-height: 38px !important;\r\n    margin: 0 !important;\r\n    padding: 8px 10px !important;\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    justify-content: center !important;\r\n    gap: 7px !important;\r\n    background: rgba(7,15,23,.92) !important;\r\n    border-top: 1px solid rgba(255,255,255,.03) !important;\r\n}\r\n\r\n.cdc-w7-dot {\r\n    width: 7px !important;\r\n    height: 7px !important;\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    border: 1px solid rgba(255,255,255,.08) !important;\r\n    border-radius: 50% !important;\r\n    background: rgba(255,255,255,.24) !important;\r\n    cursor: pointer !important;\r\n    transition:\r\n        background .16s ease,\r\n        transform .20s cubic-bezier(.22,1.08,.30,1),\r\n        width .20s cubic-bezier(.22,1.08,.30,1) !important;\r\n    touch-action: manipulation;\r\n}\r\n\r\n.cdc-w7-dot.cdcw7-selected {\r\n    width: 20px !important;\r\n    border-radius: 5px !important;\r\n    border-color: rgba(100,245,173,.32) !important;\r\n    background:\r\n        linear-gradient(\r\n            90deg,\r\n            rgba(56,196,128,.80),\r\n            rgba(72,220,146,.96)\r\n        ) !important;\r\n}\r\n\r\n\/* =========================================================\r\n   MOBILE\r\n   ========================================================= *\/\r\n\r\n@media (max-width: 767px) {\r\n\r\n    #cdc-w7-launcher {\r\n        width: 58px !important;\r\n        height: 58px !important;\r\n        left: 15px !important;\r\n        bottom: 15px !important;\r\n    }\r\n\r\n    #cdc-w7-launcher svg {\r\n        width: 31px !important;\r\n        height: 31px !important;\r\n    }\r\n\r\n    #cdc-w7-inner-pulse {\r\n        width: 41px;\r\n        height: 41px;\r\n        margin: -20.5px 0 0 -20.5px;\r\n    }\r\n\r\n    #cdc-w7-overlay {\r\n        padding: 15px !important;\r\n    }\r\n\r\n    #cdc-w7-window {\r\n        width: calc(100vw - 30px) !important;\r\n        max-width: calc(100vw - 30px) !important;\r\n        border-radius: 17px !important;\r\n        transform-origin: 12px 100%;\r\n    }\r\n\r\n    #cdc-w7-header {\r\n        height: 44px !important;\r\n    }\r\n\r\n    #cdc-w7-title {\r\n        font-size: 12px !important;\r\n    }\r\n\r\n    .cdc-w7-arrow {\r\n        width: 34px !important;\r\n        height: 48px !important;\r\n        line-height: 48px !important;\r\n        font-size: 22px !important;\r\n        border-radius: 9px !important;\r\n        -webkit-backdrop-filter: blur(5px) !important;\r\n        backdrop-filter: blur(5px) !important;\r\n    }\r\n\r\n    #cdc-w7-zoom {\r\n        padding: 10px !important;\r\n    }\r\n\r\n    #cdc-w7-zoom-image {\r\n        max-width: 100vw !important;\r\n        max-height: 88vh !important;\r\n        border-radius: 8px !important;\r\n    }\r\n\r\n    #cdc-w7-zoom-close {\r\n        top: max(10px, calc(env(safe-area-inset-top,0px) + 6px)) !important;\r\n        right: max(10px, calc(env(safe-area-inset-right,0px) + 6px)) !important;\r\n        width: 44px !important;\r\n        height: 44px !important;\r\n    }\r\n\r\n    #cdc-w7-zoom-info {\r\n        max-width: calc(100vw - 30px) !important;\r\n        bottom: max(10px, calc(env(safe-area-inset-bottom,0px) + 6px)) !important;\r\n        font-size: 11px !important;\r\n        white-space: nowrap !important;\r\n    }\r\n\r\n    #cdc-w7-error.cdcw7-error-active {\r\n        -webkit-backdrop-filter: blur(6px) !important;\r\n        backdrop-filter: blur(6px) !important;\r\n    }\r\n}\r\n\r\n@media (max-width: 380px) {\r\n\r\n    #cdc-w7-launcher {\r\n        width: 56px !important;\r\n        height: 56px !important;\r\n        left: 13px !important;\r\n        bottom: 13px !important;\r\n    }\r\n\r\n    #cdc-w7-launcher svg {\r\n        width: 30px !important;\r\n        height: 30px !important;\r\n    }\r\n\r\n    #cdc-w7-inner-pulse {\r\n        width: 40px;\r\n        height: 40px;\r\n        margin: -20px 0 0 -20px;\r\n    }\r\n\r\n    #cdc-w7-window {\r\n        width: calc(100vw - 26px) !important;\r\n        max-width: calc(100vw - 26px) !important;\r\n        transform-origin: 10px 100%;\r\n    }\r\n\r\n    #cdc-w7-overlay {\r\n        padding: 13px !important;\r\n    }\r\n\r\n    #cdc-w7-live {\r\n        font-size: 11px !important;\r\n    }\r\n}\r\n\r\n\/* =========================================================\r\n   TOUCH OVERRIDES\r\n   ========================================================= *\/\r\n\r\n@media (hover: none), (pointer: coarse) {\r\n\r\n    #cdc-w7-launcher:hover {\r\n        transform:\r\n            translate3d(0,0,0)\r\n            scale3d(1,1,1) !important;\r\n    }\r\n\r\n    #cdc-w7-launcher:hover svg {\r\n        transform:\r\n            translate3d(0,0,0)\r\n            scale3d(1,1,1) !important;\r\n    }\r\n\r\n    .cdc-w7-arrow:hover {\r\n        background:\r\n            rgba(5,12,19,.50) !important;\r\n        border-color:\r\n            rgba(255,255,255,.08) !important;\r\n        opacity:\r\n            .76 !important;\r\n        transform:\r\n            translate3d(0,-50%,0) !important;\r\n    }\r\n\r\n    #cdc-w7-close:hover {\r\n        background:\r\n            rgba(68,12,21,.68) !important;\r\n        border-color:\r\n            rgba(255,255,255,.10) !important;\r\n    }\r\n\r\n    #cdc-w7-zoom-close:hover {\r\n        background:\r\n            rgba(10,20,29,.66) !important;\r\n        border-color:\r\n            rgba(255,255,255,.12) !important;\r\n    }\r\n}\r\n\r\n\/* =========================================================\r\n   FOCUS\r\n   ========================================================= *\/\r\n\r\n#cdc-w7-launcher:focus-visible,\r\n#cdc-w7-close:focus-visible,\r\n#cdc-w7-zoom-button:focus-visible,\r\n#cdc-w7-zoom-close:focus-visible,\r\n.cdc-w7-arrow:focus-visible,\r\n.cdc-w7-dot:focus-visible {\r\n    outline:\r\n        2px solid rgba(72,220,146,.75) !important;\r\n    outline-offset:\r\n        3px !important;\r\n}\r\n\r\n\/* =========================================================\r\n   REDUCED MOTION\r\n   ========================================================= *\/\r\n\r\n@media (prefers-reduced-motion: reduce) {\r\n\r\n    #cdc-w7-launcher::before,\r\n    #cdc-w7-launcher::after,\r\n    #cdc-w7-inner-pulse,\r\n    #cdc-w7-live-dot {\r\n        animation-duration: .01ms !important;\r\n        animation-iteration-count: 1 !important;\r\n        animation-play-state: paused !important;\r\n    }\r\n\r\n    #cdc-w7-launcher,\r\n    #cdc-w7-window,\r\n    #cdc-w7-close,\r\n    .cdc-w7-arrow,\r\n    #cdc-w7-zoom,\r\n    #cdc-w7-zoom-image,\r\n    #cdc-w7-zoom-close,\r\n    #cdc-w7-zoom-info,\r\n    .cdc-w7-dot,\r\n    #cdc-w7-loading,\r\n    #cdc-w7-error {\r\n        transition-duration: .01ms !important;\r\n    }\r\n\r\n    #cdc-w7-window,\r\n    #cdc-w7-zoom-image {\r\n        transform: none !important;\r\n    }\r\n}\r\n<\/style>\r\n\r\n<!-- =========================================================\r\n     ICONA\r\n     ========================================================= -->\r\n\r\n<button\r\n    id=\"cdc-w7-launcher\"\r\n    type=\"button\"\r\n    aria-label=\"Apri webcam live\"\r\n    title=\"Webcam Live\">\r\n\r\n    <span\r\n        id=\"cdc-w7-inner-pulse\"\r\n        aria-hidden=\"true\"><\/span>\r\n\r\n    <svg\r\n        viewBox=\"0 0 64 64\"\r\n        xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\r\n        aria-hidden=\"true\">\r\n\r\n        <rect\r\n            x=\"8\"\r\n            y=\"18\"\r\n            width=\"38\"\r\n            height=\"30\"\r\n            rx=\"8\"\r\n            fill=\"none\"\r\n            stroke=\"white\"\r\n            stroke-width=\"4\"\/>\r\n\r\n        <path\r\n            d=\"M46 27L57 21C59 20 61 21.5 61 24V40C61 42.5 59 44 57 43L46 37V27Z\"\r\n            fill=\"none\"\r\n            stroke=\"white\"\r\n            stroke-width=\"4\"\r\n            stroke-linejoin=\"round\"\/>\r\n\r\n        <circle\r\n            cx=\"27\"\r\n            cy=\"33\"\r\n            r=\"8\"\r\n            fill=\"none\"\r\n            stroke=\"white\"\r\n            stroke-width=\"4\"\/>\r\n\r\n    <\/svg>\r\n<\/button>\r\n\r\n<!-- =========================================================\r\n     POPUP WEBCAM\r\n     ========================================================= -->\r\n\r\n<div id=\"cdc-w7-overlay\">\r\n\r\n    <div id=\"cdc-w7-window\">\r\n\r\n        <div id=\"cdc-w7-header\">\r\n\r\n            <div id=\"cdc-w7-live\">\r\n                <span id=\"cdc-w7-live-dot\"><\/span>\r\n                <span>WEBCAM LIVE<\/span>\r\n            <\/div>\r\n\r\n            <div\r\n                id=\"cdc-w7-close\"\r\n                role=\"button\"\r\n                tabindex=\"0\"\r\n                aria-label=\"Chiudi\">\r\n                \u00d7\r\n            <\/div>\r\n\r\n        <\/div>\r\n\r\n        <div id=\"cdc-w7-image-wrap\">\r\n\r\n            <div id=\"cdc-w7-loading\">\r\n                Caricamento webcam...\r\n            <\/div>\r\n\r\n            <div id=\"cdc-w7-error\">\r\n                Impossibile caricare questa webcam.\r\n            <\/div>\r\n\r\n            <img\r\n                id=\"cdc-w7-image\"\r\n                src=\"\"\r\n                alt=\"Webcam Citt\u00e0 di Castello\"\r\n                decoding=\"async\"\r\n                fetchpriority=\"high\"\r\n            \/>\r\n\r\n            <button\r\n                id=\"cdc-w7-prev\"\r\n                class=\"cdc-w7-arrow\"\r\n                type=\"button\"\r\n                aria-label=\"Webcam precedente\">\r\n                &#10094;\r\n            <\/button>\r\n\r\n            <button\r\n                id=\"cdc-w7-next\"\r\n                class=\"cdc-w7-arrow\"\r\n                type=\"button\"\r\n                aria-label=\"Webcam successiva\">\r\n                &#10095;\r\n            <\/button>\r\n\r\n            <button\r\n                id=\"cdc-w7-zoom-button\"\r\n                type=\"button\"\r\n                aria-label=\"Ingrandisci\"\r\n                title=\"Ingrandisci\">\r\n            <\/button>\r\n\r\n        <\/div>\r\n\r\n        <div id=\"cdc-w7-info\">\r\n\r\n            <span id=\"cdc-w7-title\">\r\n                Citt\u00e0 di Castello Centro sud-est\r\n            <\/span>\r\n\r\n            <span id=\"cdc-w7-counter\">\r\n                1 \/ 7\r\n            <\/span>\r\n\r\n        <\/div>\r\n\r\n        <div id=\"cdc-w7-dots\">\r\n\r\n            <button type=\"button\" class=\"cdc-w7-dot cdcw7-selected\" data-index=\"0\" aria-label=\"Citt\u00e0 di Castello Centro sud-est\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"1\" aria-label=\"Fraccano\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"2\" aria-label=\"La Cima\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"3\" aria-label=\"Citt\u00e0 di Castello Centro nord-est\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"4\" aria-label=\"Panoramica\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"5\" aria-label=\"Frigino - Scalocchio\"><\/button>\r\n            <button type=\"button\" class=\"cdc-w7-dot\" data-index=\"6\" aria-label=\"Citt\u00e0 di Castello Centro ovest\"><\/button>\r\n\r\n        <\/div>\r\n\r\n    <\/div>\r\n\r\n<\/div>\r\n\r\n<!-- =========================================================\r\n     ZOOM\r\n     ========================================================= -->\r\n\r\n<div id=\"cdc-w7-zoom\">\r\n\r\n    <div\r\n        id=\"cdc-w7-zoom-close\"\r\n        role=\"button\"\r\n        tabindex=\"0\"\r\n        aria-label=\"Chiudi ingrandimento\">\r\n        \u00d7\r\n    <\/div>\r\n\r\n    <img\r\n        id=\"cdc-w7-zoom-image\"\r\n        src=\"\"\r\n        alt=\"Webcam ingrandita\"\r\n        decoding=\"async\"\r\n        fetchpriority=\"low\"\r\n    \/>\r\n\r\n    <div id=\"cdc-w7-zoom-info\">\r\n\r\n        <span id=\"cdc-w7-zoom-title\">\r\n            Citt\u00e0 di Castello Centro sud-est\r\n        <\/span>\r\n\r\n        <span id=\"cdc-w7-zoom-counter\">\r\n            1 \/ 7\r\n        <\/span>\r\n\r\n    <\/div>\r\n\r\n<\/div>\r\n\r\n<script>\r\n(function () {\r\n    \"use strict\";\r\n\r\n    var webcams = [\r\n        {\r\n            title: \"Citt\u00e0 di Castello Centro sud-est\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam1.jpg\"\r\n        },\r\n        {\r\n            title: \"Fraccano\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam2.jpg\"\r\n        },\r\n        {\r\n            title: \"La Cima\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam3.jpg\"\r\n        },\r\n        {\r\n            title: \"Citt\u00e0 di Castello Centro nord-est\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam4.jpg\"\r\n        },\r\n        {\r\n            title: \"Panoramica\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam5.jpg\"\r\n        },\r\n        {\r\n            title: \"Frigino - Scalocchio\",\r\n            url: \"https:\/\/www.cittadicastellowebcam.it\/webcam\/webcam6.jpg\"\r\n        },\r\n        {\r\n            title: \"Citt\u00e0 di Castello Centro ovest\",\r\n            url: \"https:\/\/www.arezzometeo.cloud\/cittadicastellowebcam\/lastimage.jpg\"\r\n        }\r\n    ];\r\n\r\n    var launcher = document.getElementById(\"cdc-w7-launcher\");\r\n    var overlay = document.getElementById(\"cdc-w7-overlay\");\r\n    var image = document.getElementById(\"cdc-w7-image\");\r\n    var loading = document.getElementById(\"cdc-w7-loading\");\r\n    var error = document.getElementById(\"cdc-w7-error\");\r\n    var title = document.getElementById(\"cdc-w7-title\");\r\n    var counter = document.getElementById(\"cdc-w7-counter\");\r\n    var closeButton = document.getElementById(\"cdc-w7-close\");\r\n    var prevButton = document.getElementById(\"cdc-w7-prev\");\r\n    var nextButton = document.getElementById(\"cdc-w7-next\");\r\n    var zoomButton = document.getElementById(\"cdc-w7-zoom-button\");\r\n    var dots = overlay ? overlay.querySelectorAll(\".cdc-w7-dot\") : [];\r\n    var zoom = document.getElementById(\"cdc-w7-zoom\");\r\n    var zoomImage = document.getElementById(\"cdc-w7-zoom-image\");\r\n    var zoomClose = document.getElementById(\"cdc-w7-zoom-close\");\r\n    var zoomTitle = document.getElementById(\"cdc-w7-zoom-title\");\r\n    var zoomCounter = document.getElementById(\"cdc-w7-zoom-counter\");\r\n\r\n    if (\r\n        !launcher ||\r\n        !overlay ||\r\n        !image ||\r\n        !loading ||\r\n        !error ||\r\n        !title ||\r\n        !counter ||\r\n        !closeButton ||\r\n        !prevButton ||\r\n        !nextButton ||\r\n        !zoomButton ||\r\n        !zoom ||\r\n        !zoomImage ||\r\n        !zoomClose ||\r\n        !zoomTitle ||\r\n        !zoomCounter\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    var currentIndex = 0;\r\n    var rotationTimer = null;\r\n    var closeTimer = null;\r\n    var zoomCloseTimer = null;\r\n    var imageRequestId = 0;\r\n    var zoomRequestId = 0;\r\n    var isFirstImage = true;\r\n    var bodyOverflowBeforeZoom = \"\";\r\n    var documentOverflowBeforeZoom = \"\";\r\n    var zoomScrollLocked = false;\r\n\r\n    \/*\r\n       Le webcam vengono aggiornate ogni ~10 minuti.\r\n       Evitiamo di forzare una nuova rete ogni 4 secondi.\r\n       Il bucket cambia ogni 10 minuti e mantiene comunque\r\n       un aggiornamento automatico coerente con la sorgente.\r\n    *\/\r\n    var CACHE_BUST_INTERVAL = 10 * 60 * 1000;\r\n\r\n    function imageUrl(url) {\r\n        var bucket = Math.floor(Date.now() \/ CACHE_BUST_INTERVAL);\r\n        var separator = url.indexOf(\"?\") !== -1 ? \"&\" : \"?\";\r\n        return url + separator + \"t=\" + bucket;\r\n    }\r\n\r\n    function updateDots(index) {\r\n        for (var i = 0; i < dots.length; i++) {\r\n            dots[i].classList.toggle(\"cdcw7-selected\", i === index);\r\n        }\r\n    }\r\n\r\n    function handleImageReady(requestId) {\r\n        if (requestId !== imageRequestId) return;\r\n\r\n        var showImmediately = isFirstImage;\r\n        isFirstImage = false;\r\n\r\n        if (showImmediately) {\r\n            window.requestAnimationFrame(function () {\r\n                if (requestId !== imageRequestId) return;\r\n                image.classList.add(\"cdcw7-image-ready\");\r\n                loading.classList.add(\"cdcw7-loaded\");\r\n                error.classList.remove(\"cdcw7-error-active\");\r\n            });\r\n        } else {\r\n            image.classList.add(\"cdcw7-image-ready\");\r\n            loading.classList.add(\"cdcw7-loaded\");\r\n            error.classList.remove(\"cdcw7-error-active\");\r\n        }\r\n    }\r\n\r\n    function loadWebcam(index) {\r\n        if (index < 0) index = webcams.length - 1;\r\n        if (index >= webcams.length) index = 0;\r\n\r\n        currentIndex = index;\r\n\r\n        var requestId = ++imageRequestId;\r\n        var firstLoad = !image.classList.contains(\"cdcw7-image-ready\");\r\n\r\n        title.textContent = webcams[index].title;\r\n        counter.textContent = (index + 1) + \" \/ \" + webcams.length;\r\n        zoomTitle.textContent = webcams[index].title;\r\n        zoomCounter.textContent = (index + 1) + \" \/ \" + webcams.length;\r\n\r\n        updateDots(index);\r\n\r\n        error.classList.remove(\"cdcw7-error-active\");\r\n\r\n        \/*\r\n           Durante la rotazione manteniamo la webcam precedente visibile.\r\n           Questo elimina il lampeggio nero ogni 4 secondi.\r\n           Solo la prima apertura usa il layer di caricamento.\r\n        *\/\r\n        if (firstLoad) {\r\n            loading.classList.remove(\"cdcw7-loaded\");\r\n            image.classList.remove(\"cdcw7-image-ready\");\r\n        } else {\r\n            loading.classList.add(\"cdcw7-loaded\");\r\n        }\r\n\r\n        image.setAttribute(\"data-cdc-request\", String(requestId));\r\n        image.src = imageUrl(webcams[index].url);\r\n    }\r\n\r\n    image.onload = function () {\r\n        var requestId = Number(image.getAttribute(\"data-cdc-request\"));\r\n        if (requestId !== imageRequestId) return;\r\n\r\n        \/*\r\n           Dove disponibile, lasciamo completare il decode prima del\r\n           reveal. In questo modo il cambio immagine evita il pi\u00f9\r\n           possibile un frame intermedio poco fluido.\r\n        *\/\r\n        var reveal = function () {\r\n            window.requestAnimationFrame(function () {\r\n                handleImageReady(requestId);\r\n            });\r\n        };\r\n\r\n        if (typeof image.decode === \"function\") {\r\n            image.decode().then(reveal, reveal);\r\n        } else {\r\n            reveal();\r\n        }\r\n    };\r\n\r\n    image.onerror = function () {\r\n        var requestId = Number(image.getAttribute(\"data-cdc-request\"));\r\n        if (requestId !== imageRequestId) return;\r\n\r\n        if (!image.classList.contains(\"cdcw7-image-ready\")) {\r\n            loading.classList.add(\"cdcw7-loaded\");\r\n        }\r\n\r\n        error.classList.add(\"cdcw7-error-active\");\r\n    };\r\n\r\n    function scheduleRotation() {\r\n        stopRotation();\r\n\r\n        rotationTimer = window.setTimeout(function tick() {\r\n            rotationTimer = null;\r\n\r\n            if (\r\n                document.visibilityState === \"visible\" &&\r\n                overlay.classList.contains(\"cdcw7-active\") &&\r\n                !overlay.classList.contains(\"cdcw7-closing\") &&\r\n                !zoom.classList.contains(\"cdcw7-zoom-active\")\r\n            ) {\r\n                loadWebcam(currentIndex + 1);\r\n            }\r\n\r\n            if (\r\n                document.visibilityState === \"visible\" &&\r\n                overlay.classList.contains(\"cdcw7-active\") &&\r\n                !overlay.classList.contains(\"cdcw7-closing\") &&\r\n                !zoom.classList.contains(\"cdcw7-zoom-active\")\r\n            ) {\r\n                rotationTimer = window.setTimeout(tick, 4000);\r\n            }\r\n        }, 4000);\r\n    }\r\n\r\n    function startRotation() {\r\n        scheduleRotation();\r\n    }\r\n\r\n    function stopRotation() {\r\n        if (rotationTimer !== null) {\r\n            window.clearTimeout(rotationTimer);\r\n            rotationTimer = null;\r\n        }\r\n    }\r\n\r\n    function resetRotation() {\r\n        startRotation();\r\n    }\r\n\r\n    function cancelCloseSequence() {\r\n        if (closeTimer !== null) {\r\n            window.clearTimeout(closeTimer);\r\n            closeTimer = null;\r\n        }\r\n        overlay.classList.remove(\"cdcw7-closing\");\r\n    }\r\n\r\n    function openWebcam(index) {\r\n        cancelCloseSequence();\r\n        cancelZoomClose();\r\n\r\n        zoom.classList.remove(\r\n            \"cdcw7-zoom-active\",\r\n            \"cdcw7-zoom-closing\"\r\n        );\r\n\r\n        launcher.classList.add(\"cdcw7-hidden\");\r\n        overlay.classList.add(\"cdcw7-active\");\r\n\r\n        loadWebcam(index);\r\n        startRotation();\r\n    }\r\n\r\n    function closeWebcam() {\r\n        stopRotation();\r\n        closeZoom(false, false);\r\n        cancelCloseSequence();\r\n\r\n        overlay.classList.add(\r\n            \"cdcw7-active\",\r\n            \"cdcw7-closing\"\r\n        );\r\n\r\n        launcher.classList.add(\"cdcw7-hidden\");\r\n\r\n        closeTimer = window.setTimeout(function () {\r\n            overlay.classList.remove(\r\n                \"cdcw7-active\",\r\n                \"cdcw7-closing\"\r\n            );\r\n\r\n            launcher.classList.remove(\r\n                \"cdcw7-hidden\"\r\n            );\r\n\r\n            closeTimer = null;\r\n        }, 360);\r\n    }\r\n\r\n    function cancelZoomClose() {\r\n        if (zoomCloseTimer !== null) {\r\n            window.clearTimeout(zoomCloseTimer);\r\n            zoomCloseTimer = null;\r\n        }\r\n        zoom.classList.remove(\"cdcw7-zoom-closing\");\r\n    }\r\n\r\n    function openZoom() {\r\n        stopRotation();\r\n        cancelZoomClose();\r\n\r\n        var requestId = ++zoomRequestId;\r\n\r\n        zoomTitle.textContent = webcams[currentIndex].title;\r\n        zoomCounter.textContent = (currentIndex + 1) + \" \/ \" + webcams.length;\r\n\r\n        zoomImage.classList.remove(\"cdcw7-zoom-image-ready\");\r\n        zoom.classList.add(\"cdcw7-zoom-active\");\r\n\r\n        zoomImage.setAttribute(\"data-cdc-request\", String(requestId));\r\n        zoomImage.src = imageUrl(webcams[currentIndex].url);\r\n\r\n        bodyOverflowBeforeZoom = document.body.style.overflow;\r\n        documentOverflowBeforeZoom = document.documentElement.style.overflow;\r\n\r\n        document.body.style.overflow = \"hidden\";\r\n        document.documentElement.style.overflow = \"hidden\";\r\n        zoomScrollLocked = true;\r\n    }\r\n\r\n    zoomImage.onload = function () {\r\n        var requestId = Number(zoomImage.getAttribute(\"data-cdc-request\"));\r\n        if (requestId !== zoomRequestId) return;\r\n\r\n        var revealZoom = function () {\r\n            window.requestAnimationFrame(function () {\r\n                if (requestId !== zoomRequestId) return;\r\n                zoomImage.classList.add(\"cdcw7-zoom-image-ready\");\r\n            });\r\n        };\r\n\r\n        if (typeof zoomImage.decode === \"function\") {\r\n            zoomImage.decode().then(revealZoom, revealZoom);\r\n        } else {\r\n            revealZoom();\r\n        }\r\n    };\r\n\r\n    zoomImage.onerror = function () {\r\n        var requestId = Number(zoomImage.getAttribute(\"data-cdc-request\"));\r\n        if (requestId !== zoomRequestId) return;\r\n        zoomImage.classList.remove(\"cdcw7-zoom-image-ready\");\r\n    };\r\n\r\n    function restoreBodyAfterZoom() {\r\n        if (!zoomScrollLocked) return;\r\n\r\n        document.body.style.overflow = bodyOverflowBeforeZoom;\r\n        document.documentElement.style.overflow = documentOverflowBeforeZoom;\r\n        zoomScrollLocked = false;\r\n    }\r\n\r\n    function closeZoom(animate, resumeRotation) {\r\n        cancelZoomClose();\r\n\r\n        var active = zoom.classList.contains(\"cdcw7-zoom-active\");\r\n\r\n        if (!active) {\r\n            restoreBodyAfterZoom();\r\n\r\n            if (\r\n                resumeRotation &&\r\n                overlay.classList.contains(\"cdcw7-active\") &&\r\n                !overlay.classList.contains(\"cdcw7-closing\")\r\n            ) {\r\n                startRotation();\r\n            }\r\n\r\n            return;\r\n        }\r\n\r\n        if (!animate) {\r\n            zoom.classList.remove(\r\n                \"cdcw7-zoom-active\",\r\n                \"cdcw7-zoom-closing\"\r\n            );\r\n\r\n            zoomImage.classList.remove(\r\n                \"cdcw7-zoom-image-ready\"\r\n            );\r\n\r\n            restoreBodyAfterZoom();\r\n\r\n            if (\r\n                resumeRotation &&\r\n                overlay.classList.contains(\"cdcw7-active\")\r\n            ) {\r\n                startRotation();\r\n            }\r\n\r\n            return;\r\n        }\r\n\r\n        zoom.classList.add(\"cdcw7-zoom-closing\");\r\n\r\n        zoomCloseTimer = window.setTimeout(function () {\r\n            zoom.classList.remove(\r\n                \"cdcw7-zoom-active\",\r\n                \"cdcw7-zoom-closing\"\r\n            );\r\n\r\n            zoomImage.classList.remove(\r\n                \"cdcw7-zoom-image-ready\"\r\n            );\r\n\r\n            restoreBodyAfterZoom();\r\n\r\n            zoomCloseTimer = null;\r\n\r\n            if (\r\n                resumeRotation &&\r\n                overlay.classList.contains(\"cdcw7-active\") &&\r\n                !overlay.classList.contains(\"cdcw7-closing\")\r\n            ) {\r\n                startRotation();\r\n            }\r\n        }, 280);\r\n    }\r\n\r\n    \/* =====================================================\r\n       OPEN \/ CLOSE EVENTS\r\n       ===================================================== *\/\r\n\r\n    launcher.addEventListener(\"click\", function () {\r\n        openWebcam(currentIndex);\r\n    });\r\n\r\n    prevButton.addEventListener(\"click\", function (event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        loadWebcam(currentIndex - 1);\r\n        resetRotation();\r\n    });\r\n\r\n    nextButton.addEventListener(\"click\", function (event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        loadWebcam(currentIndex + 1);\r\n        resetRotation();\r\n    });\r\n\r\n    \/* Delegazione: un solo listener per i 7 dot. *\/\r\n    var dotsWrap = document.getElementById(\"cdc-w7-dots\");\r\n\r\n    if (dotsWrap) {\r\n        dotsWrap.addEventListener(\"click\", function (event) {\r\n            var dot = event.target.closest(\".cdc-w7-dot\");\r\n            if (!dot) return;\r\n\r\n            event.preventDefault();\r\n            event.stopPropagation();\r\n\r\n            var index = parseInt(\r\n                dot.getAttribute(\"data-index\"),\r\n                10\r\n            );\r\n\r\n            if (isNaN(index)) return;\r\n\r\n            loadWebcam(index);\r\n            resetRotation();\r\n        });\r\n    }\r\n\r\n    closeButton.addEventListener(\"click\", function () {\r\n        closeWebcam();\r\n    });\r\n\r\n    zoomButton.addEventListener(\"click\", function (event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        openZoom();\r\n    });\r\n\r\n    zoomClose.addEventListener(\"click\", function () {\r\n        closeZoom(true, true);\r\n    });\r\n\r\n    zoom.addEventListener(\"click\", function (event) {\r\n        if (event.target === zoom) {\r\n            closeZoom(true, true);\r\n        }\r\n    });\r\n\r\n    \/* =====================================================\r\n       KEYBOARD ACCESSIBILITY\r\n       ===================================================== *\/\r\n\r\n    function activateRoleButton(element, callback, event) {\r\n        if (!element || !callback) return;\r\n\r\n        if (\r\n            event.key === \"Enter\" ||\r\n            event.key === \" \"\r\n        ) {\r\n            event.preventDefault();\r\n            callback();\r\n        }\r\n    }\r\n\r\n    closeButton.addEventListener(\"keydown\", function (event) {\r\n        activateRoleButton(\r\n            closeButton,\r\n            closeWebcam,\r\n            event\r\n        );\r\n    });\r\n\r\n    zoomClose.addEventListener(\"keydown\", function (event) {\r\n        activateRoleButton(\r\n            zoomClose,\r\n            function () {\r\n                closeZoom(true, true);\r\n            },\r\n            event\r\n        );\r\n    });\r\n\r\n    document.addEventListener(\"keydown\", function (event) {\r\n        if (zoom.classList.contains(\"cdcw7-zoom-active\")) {\r\n            if (event.key === \"Escape\") {\r\n                closeZoom(true, true);\r\n            }\r\n            return;\r\n        }\r\n\r\n        if (\r\n            !overlay.classList.contains(\"cdcw7-active\") ||\r\n            overlay.classList.contains(\"cdcw7-closing\")\r\n        ) {\r\n            return;\r\n        }\r\n\r\n        if (event.key === \"Escape\") {\r\n            closeWebcam();\r\n            return;\r\n        }\r\n\r\n        if (event.key === \"ArrowLeft\") {\r\n            loadWebcam(currentIndex - 1);\r\n            resetRotation();\r\n            return;\r\n        }\r\n\r\n        if (event.key === \"ArrowRight\") {\r\n            loadWebcam(currentIndex + 1);\r\n            resetRotation();\r\n        }\r\n    });\r\n\r\n    \/* =====================================================\r\n       PAGE VISIBILITY\r\n       ===================================================== *\/\r\n\r\n    document.addEventListener(\"visibilitychange\", function () {\r\n        var hidden = document.visibilityState === \"hidden\";\r\n\r\n        launcher.classList.toggle(\"cdcw7-page-hidden\", hidden);\r\n        overlay.classList.toggle(\"cdcw7-page-hidden\", hidden);\r\n        zoom.classList.toggle(\"cdcw7-page-hidden\", hidden);\r\n\r\n        if (hidden) {\r\n            stopRotation();\r\n            return;\r\n        }\r\n\r\n        if (\r\n            overlay.classList.contains(\"cdcw7-active\") &&\r\n            !overlay.classList.contains(\"cdcw7-closing\") &&\r\n            !zoom.classList.contains(\"cdcw7-zoom-active\")\r\n        ) {\r\n            startRotation();\r\n        }\r\n    });\r\n\r\n    \/* =====================================================\r\n       BODY PORTAL\r\n       ===================================================== *\/\r\n\r\n    if (overlay.parentNode !== document.body) {\r\n        document.body.appendChild(overlay);\r\n    }\r\n\r\n    if (zoom.parentNode !== document.body) {\r\n        document.body.appendChild(zoom);\r\n    }\r\n\r\n    \/* =====================================================\r\n       INITIAL STATE\r\n       ===================================================== *\/\r\n\r\n    updateDots(0);\r\n    title.textContent = webcams[0].title;\r\n    counter.textContent = \"1 \/ \" + webcams.length;\r\n    zoomTitle.textContent = webcams[0].title;\r\n    zoomCounter.textContent = \"1 \/ \" + webcams.length;\r\n    launcher.classList.remove(\"cdcw7-hidden\");\r\n\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0fbb31b e-flex e-con-boxed e-con e-parent\" data-id=\"0fbb31b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-57d9bcb elementor-widget elementor-widget-html\" data-id=\"57d9bcb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!--\n  CITT\u00c0 DI CASTELLO WEBCAM \u2014 MAPPE DEL TERRITORIO TIFERNATE\n  Versione standalone per Elementor > widget HTML.\n  Include una sola mappa Leaflet, 15 localit\u00e0, ricerca e zoom contestuale.\n  Non richiede plugin WordPress o modifiche al tema.\n-->\n<div id=\"ctw-tiferno-widget\" class=\"ctw-widget\" aria-label=\"Mappe e localit\u00e0 dell'Appennino Tifernate\">\n  <div class=\"ctw-shell\">\n    <button class=\"ctw-menu-scrim\" type=\"button\" data-action=\"close-locations\" aria-label=\"Chiudi il menu delle localit\u00e0\" aria-hidden=\"true\" tabindex=\"-1\" hidden><\/button>\n    <header class=\"ctw-header\">\n      <div class=\"ctw-heading-copy\">\n        <div class=\"ctw-eyebrow\"><span class=\"ctw-eyebrow-dot\" aria-hidden=\"true\"><\/span> CITT\u00c0 DI CASTELLO WEBCAM <span class=\"ctw-eyebrow-sep\">\/<\/span> TERRITORIO<\/div>\n        <div class=\"ctw-title-row\">\n          <span class=\"ctw-title-emblem\" aria-hidden=\"true\">\n            <svg viewBox=\"0 0 32 32\"><path d=\"m3.5 25 9.1-15 4.2 6.3 3-4.4L28.5 25H3.5Z\"\/><path d=\"m10.5 13.5 2.1-3.5 2.7 4M21.2 16.3l1.7-2.6 1.8 2.7\"\/><circle cx=\"23.8\" cy=\"8.2\" r=\"3.1\"\/><path d=\"m23.8 5.9.7 2.1-.7 2.1-.7-2.1.7-2.1Z\"\/><\/svg>\n          <\/span>\n          <h2 class=\"ctw-title\">Appennino Tifernate<\/h2>\n        <\/div>\n      <\/div>\n      <div class=\"ctw-header-actions\">\n        <div class=\"ctw-header-badge\" aria-label=\"15 localit\u00e0 mappate\">\n          <span class=\"ctw-badge-icon\" aria-hidden=\"true\">\n            <svg viewBox=\"0 0 24 24\"><path d=\"m3 19 6.2-10 3.1 4.5 2.1-3.1L21 19H3Z\"\/><path d=\"m8.1 10.8 1.1-1.8 1.3 1.9M14.4 12.2l1.2-1.8 1.1 1.8\"\/><\/svg>\n          <\/span>\n          <span><strong>15<\/strong><small>localit\u00e0<\/small><\/span>\n        <\/div>\n        <button class=\"ctw-icon-button ctw-expand-button\" type=\"button\" data-action=\"expand\" aria-label=\"Apri il widget a schermo intero\" title=\"Schermo intero\">\n          <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M8 3H3v5M16 3h5v5M3 16v5h5M21 16v5h-5\"\/><\/svg>\n        <\/button>\n      <\/div>\n    <\/header>\n\n    <div class=\"ctw-layout\">\n      <section class=\"ctw-map-panel\" data-map-panel aria-label=\"Mappa interattiva del territorio\">\n        <div class=\"ctw-map-toolbar\" aria-label=\"Controlli della mappa\">\n          <button class=\"ctw-control-button ctw-overview-button is-active\" type=\"button\" data-action=\"overview\" aria-pressed=\"true\" aria-label=\"Mostra tutte le localit\u00e0 sulla mappa\">\n            <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3.5 10.5 12 3l8.5 7.5M5.5 9.5v10h13v-10M9.5 19.5v-6h5v6\"\/><\/svg>\n            <span>Tutte le localit\u00e0<\/span>\n          <\/button>\n          <div class=\"ctw-layer-switch\" role=\"group\" aria-label=\"Scegli la cartografia\">\n            <button type=\"button\" class=\"ctw-layer-button is-active\" data-layer=\"topo\" aria-pressed=\"true\">\n              <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m3 19 6.2-10 3.1 4.5 2.1-3.1L21 19H3Z\"\/><path d=\"m8.1 10.8 1.1-1.8 1.3 1.9M14.4 12.2l1.2-1.8 1.1 1.8\"\/><\/svg>\n              <span>Topografica<\/span>\n            <\/button>\n            <button type=\"button\" class=\"ctw-layer-button\" data-layer=\"osm\" aria-pressed=\"false\">\n              <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M8 3 4 21M16 3l4 18M12 4v3m0 3v3m0 3v3\"\/><\/svg>\n              <span>Stradale<\/span>\n            <\/button>\n          <\/div>\n        <\/div>\n\n        <div class=\"ctw-map-frame\">\n          <div class=\"ctw-map-canvas\" data-map role=\"region\" aria-label=\"Mappa interattiva navigabile con quindici localit\u00e0 dell\u2019Appennino Tifernate\" tabindex=\"0\">\n            <div class=\"ctw-map-loading\" data-loading>\n              <span class=\"ctw-loader\" aria-hidden=\"true\"><\/span>\n              <strong>Preparazione della mappa\u2026<\/strong>\n              <span>Caricamento della cartografia<\/span>\n            <\/div>\n          <\/div>\n          <div class=\"ctw-map-error\" data-error hidden role=\"alert\">\n            <span class=\"ctw-error-symbol\" aria-hidden=\"true\">!<\/span>\n            <strong>Mappa momentaneamente non disponibile<\/strong>\n            <span>Controlla la connessione e riprova. Le localit\u00e0 restano consultabili nell'elenco.<\/span>\n            <button type=\"button\" class=\"ctw-retry-button\" data-action=\"retry\">Riprova<\/button>\n          <\/div>\n        <\/div>\n\n        <div class=\"ctw-map-meta\">\n          <div class=\"ctw-map-status\" data-status role=\"status\" aria-live=\"polite\">Caricamento delle 15 localit\u00e0\u2026<\/div>\n          <div class=\"ctw-map-legend\"><span class=\"ctw-legend-marker\" aria-hidden=\"true\"><\/span> Localit\u00e0<\/div>\n        <\/div>\n\n        <div class=\"ctw-selected-place\" data-selected-panel hidden>\n          <div class=\"ctw-selected-icon\" aria-hidden=\"true\">\n            <svg viewBox=\"0 0 24 24\"><path d=\"m3 19 6.2-10 3.1 4.5 2.1-3.1L21 19H3Z\"\/><path d=\"m8.1 10.8 1.1-1.8 1.3 1.9\"\/><\/svg>\n          <\/div>\n          <div class=\"ctw-selected-copy\">\n            <span class=\"ctw-section-kicker\">LOCALIT\u00c0 SELEZIONATA<\/span>\n            <strong data-selected-name><\/strong>\n            <span data-selected-altitude><\/span>\n          <\/div>\n          <a class=\"ctw-open-map-link\" data-open-osm href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">\n            Apri su OSM\n            <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M14 4h6v6M20 4l-9 9M18 13v6H5V6h6\"\/><\/svg>\n          <\/a>\n          <button class=\"ctw-clear-selection\" type=\"button\" data-action=\"overview\" aria-label=\"Torna alla panoramica\" title=\"Torna alla panoramica\">\u00d7<\/button>\n        <\/div>\n      <\/section>\n\n      <aside class=\"ctw-explorer\" aria-label=\"Elenco delle localit\u00e0\">\n        <button class=\"ctw-mobile-location-toggle\" type=\"button\" data-action=\"toggle-locations\" aria-expanded=\"false\" aria-controls=\"ctw-location-content\" hidden>\n          <span class=\"ctw-mobile-toggle-icon\" aria-hidden=\"true\">\n            <svg viewBox=\"0 0 24 24\"><path d=\"M12 21s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12Z\"\/><circle cx=\"12\" cy=\"9\" r=\"2.4\"\/><\/svg>\n          <\/span>\n          <span class=\"ctw-mobile-toggle-copy\">\n            <strong>Localit\u00e0<\/strong>\n            <small data-mobile-current>Tutte le 15 localit\u00e0<\/small>\n          <\/span>\n          <span class=\"ctw-mobile-toggle-count\" aria-hidden=\"true\">15<\/span>\n          <span class=\"ctw-mobile-toggle-chevron\" aria-hidden=\"true\">\n            <svg viewBox=\"0 0 24 24\"><path d=\"m6 9 6 6 6-6\"\/><\/svg>\n          <\/span>\n        <\/button>\n        <div class=\"ctw-explorer-content\" id=\"ctw-location-content\" data-explorer-content>\n          <div class=\"ctw-explorer-header\">\n            <div>\n              <span class=\"ctw-section-kicker\">PUNTI DI INTERESSE<\/span>\n              <h3 class=\"ctw-panel-title\">Scegli una localit\u00e0<\/h3>\n              <p class=\"ctw-explorer-description\">Seleziona un luogo per avvicinarti sulla mappa.<\/p>\n            <\/div>\n            <span class=\"ctw-count-pill\" data-count>15 \/ 15<\/span>\n          <\/div>\n\n          <label class=\"ctw-search-wrap\">\n            <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"10.8\" cy=\"10.8\" r=\"6.8\"\/><path d=\"m16 16 4.5 4.5\"\/><\/svg>\n            <span class=\"ctw-visually-hidden\">Cerca una localit\u00e0<\/span>\n            <input type=\"search\" data-search placeholder=\"Cerca una localit\u00e0\u2026\" autocomplete=\"off\" spellcheck=\"false\">\n            <kbd class=\"ctw-search-shortcut\" aria-hidden=\"true\">\u2315<\/kbd>\n          <\/label>\n\n          <div class=\"ctw-location-list\" data-location-list aria-label=\"Localit\u00e0 disponibili\">\n            <!-- Le 15 schede sono create dallo script usando l'unico archivio dati. -->\n          <\/div>\n          <div class=\"ctw-no-results\" data-no-results hidden>Nessuna localit\u00e0 corrisponde alla ricerca.<\/div>\n          <div class=\"ctw-explorer-footnote\"><span class=\"ctw-footnote-icon\" aria-hidden=\"true\">\u2197<\/span> Tocca un luogo per visualizzarlo sulla mappa.<\/div>\n        <\/div>\n      <\/aside>\n    <\/div>\n\n    <footer class=\"ctw-footer\">\n      <span>\u00a9 Citt\u00e0 di Castello Webcam<\/span>\n      <span class=\"ctw-footer-separator\" aria-hidden=\"true\">\u00b7<\/span>\n      <span>Appennino Tifernate<\/span>\n      <span class=\"ctw-footer-spacer\"><\/span>\n      <span class=\"ctw-footer-note\">Dati geografici e cartografia con attribuzione ai rispettivi fornitori.<\/span>\n    <\/footer>\n  <\/div>\n<\/div>\n\n<style>\n  \/* Tutte le regole sono circoscritte al widget CTW. *\/\n  #ctw-tiferno-widget {\n    --ctw-bg-1: #0b2942;\n    --ctw-bg-2: #103c5b;\n    --ctw-bg-3: #174d70;\n    --ctw-glass: rgba(188, 224, 246, .16);\n    --ctw-glass-strong: rgba(194, 225, 245, .23);\n    --ctw-line: rgba(218, 239, 252, .22);\n    --ctw-text: #f1f8fd;\n    --ctw-muted: #b4cddd;\n    --ctw-accent: #83d8f4;\n    --ctw-accent-strong: #b5ebff;\n    --ctw-radius: 27px;\n    width: 100%;\n    max-width: 100%;\n    min-width: 0;\n    color: var(--ctw-text);\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n    font-size: 15px;\n    line-height: 1.45;\n    isolation: isolate;\n    position: relative;\n    color-scheme: dark;\n    -webkit-text-size-adjust: 100%;\n    text-size-adjust: 100%;\n  }\n  #ctw-tiferno-widget *,\n  #ctw-tiferno-widget *::before,\n  #ctw-tiferno-widget *::after { box-sizing: border-box; }\n  #ctw-tiferno-widget button,\n  #ctw-tiferno-widget input,\n  #ctw-tiferno-widget select { font: inherit; }\n  #ctw-tiferno-widget button { -webkit-tap-highlight-color: transparent; }\n  #ctw-tiferno-widget button:focus-visible,\n  #ctw-tiferno-widget a:focus-visible,\n  #ctw-tiferno-widget input:focus-visible,\n  #ctw-tiferno-widget select:focus-visible,\n  #ctw-tiferno-widget [data-map]:focus-visible {\n    outline: 3px solid rgba(131, 216, 244, .92);\n    outline-offset: 3px;\n  }\n  #ctw-tiferno-widget .ctw-shell {\n    width: 100%;\n    min-width: 0;\n    overflow: hidden;\n    border: 1px solid rgba(197, 226, 245, .22);\n    border-radius: var(--ctw-radius);\n    background:\n      radial-gradient(ellipse at 4% 0%, rgba(105, 190, 229, .22), transparent 42%),\n      radial-gradient(ellipse at 100% 100%, rgba(88, 176, 218, .19), transparent 40%),\n      linear-gradient(143deg, rgba(9, 43, 68, .74), rgba(13, 60, 89, .72) 54%, rgba(18, 76, 107, .74));\n    box-shadow: 0 16px 38px rgba(5, 29, 48, .17), inset 0 1px 0 rgba(255,255,255,.13);\n    \/* Niente blur sull'intero widget: mantiene il vetro visivo senza costose ricolorazioni durante il pan della mappa. *\/\n  }\n  #ctw-tiferno-widget .ctw-header {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 18px;\n    padding: clamp(18px, 3vw, 29px) clamp(17px, 3.2vw, 32px) 20px;\n    border-bottom: 1px solid rgba(217, 239, 251, .11);\n  }\n  #ctw-tiferno-widget .ctw-heading-copy { min-width: 0; }\n  #ctw-tiferno-widget .ctw-title-row { display: flex; align-items: center; gap: 11px; min-width: 0; margin-top: 7px; }\n  #ctw-tiferno-widget .ctw-title-emblem { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgba(183,230,250,.28); border-radius: 14px; color: #b8edff; background: linear-gradient(145deg, rgba(146,218,246,.25), rgba(117,190,224,.10)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 5px 16px rgba(1,24,41,.12); }\n  #ctw-tiferno-widget .ctw-title-emblem svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-eyebrow,\n  #ctw-tiferno-widget .ctw-section-kicker {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n    color: #a9d5e9;\n    font-size: 10px;\n    font-weight: 750;\n    letter-spacing: .13em;\n    line-height: 1.35;\n  }\n  #ctw-tiferno-widget .ctw-eyebrow-dot,\n  #ctw-tiferno-widget .ctw-live-dot {\n    display: inline-block;\n    width: 7px;\n    height: 7px;\n    flex: 0 0 7px;\n    border-radius: 50%;\n    background: #83d8f4;\n    box-shadow: 0 0 0 4px rgba(131,216,244,.13), 0 0 13px rgba(131,216,244,.52);\n  }\n  #ctw-tiferno-widget .ctw-eyebrow-sep { opacity: .5; }\n  #ctw-tiferno-widget .ctw-title {\n    margin: 0 !important;\n    color: #f4faff !important;\n    font-size: clamp(23px, 3vw, 33px) !important;\n    font-weight: 740 !important;\n    letter-spacing: -.045em !important;\n    line-height: 1.12 !important;\n  }\n  #ctw-tiferno-widget .ctw-subtitle {\n    margin: 0 !important;\n    color: #bed2df !important;\n    font-size: 13px !important;\n    line-height: 1.5 !important;\n  }\n  #ctw-tiferno-widget .ctw-header-badge {\n    display: inline-flex;\n    align-items: center;\n    gap: 10px;\n    flex: 0 0 auto;\n    padding: 10px 14px;\n    border: 1px solid rgba(203, 233, 249, .17);\n    border-radius: 15px;\n    background: linear-gradient(140deg, rgba(181,224,246,.15), rgba(137,194,223,.07));\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);\n  }\n  #ctw-tiferno-widget .ctw-badge-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: rgba(130,213,242,.15); }\n  #ctw-tiferno-widget .ctw-badge-icon svg { width: 17px; height: 17px; fill: none; stroke: #a6e8ff; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-header-badge strong { display: block; color: #f5fbff; font-size: 16px; line-height: 1.05; }\n  #ctw-tiferno-widget .ctw-header-badge small { display: block; margin-top: 2px; color: #b4cede; font-size: 10px; }\n\n  #ctw-tiferno-widget .ctw-layout {\n    display: grid;\n    grid-template-columns: minmax(0, 1.72fr) minmax(245px, .86fr);\n    align-items: stretch;\n    gap: 16px;\n    padding: 18px;\n  }\n  #ctw-tiferno-widget .ctw-map-panel,\n  #ctw-tiferno-widget .ctw-explorer {\n    min-width: 0;\n    border: 1px solid var(--ctw-line);\n    border-radius: 22px;\n    background: linear-gradient(145deg, rgba(213,237,250,.115), rgba(170,214,237,.075));\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 24px rgba(2,20,35,.08);\n  }\n  #ctw-tiferno-widget .ctw-map-panel { padding: 15px; }\n  #ctw-tiferno-widget .ctw-panel-heading {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 12px;\n    margin: 0 0 12px;\n  }\n  #ctw-tiferno-widget .ctw-panel-title {\n    margin: 3px 0 0 !important;\n    color: #f2f9fd !important;\n    font-size: 17px !important;\n    font-weight: 680 !important;\n    line-height: 1.25 !important;\n    letter-spacing: -.02em !important;\n  }\n  #ctw-tiferno-widget .ctw-section-kicker { font-size: 9px; letter-spacing: .145em; }\n  #ctw-tiferno-widget .ctw-icon-button {\n    display: inline-grid;\n    width: 38px;\n    height: 38px;\n    flex: 0 0 38px;\n    place-items: center;\n    padding: 0;\n    border: 1px solid rgba(215,239,251,.18);\n    border-radius: 999px;\n    color: #d7f1ff;\n    background: rgba(174,217,239,.13);\n    cursor: pointer;\n    transition: background .18s ease, border-color .18s ease, transform .18s ease;\n  }\n  #ctw-tiferno-widget .ctw-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }\n  #ctw-tiferno-widget .ctw-control-button {\n    display: inline-flex;\n    min-height: 44px;\n    align-items: center;\n    justify-content: center;\n    gap: 8px;\n    padding: 10px 15px;\n    border: 1px solid rgba(211,237,250,.22);\n    border-radius: 999px;\n    color: #e5f4fc;\n    background: rgba(180,220,241,.15);\n    font-size: 11px;\n    font-weight: 680;\n    line-height: 1.2;\n    white-space: nowrap;\n  }\n  #ctw-tiferno-widget .ctw-control-button svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #a8e3fa; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-layer-switch {\n    display: inline-flex;\n    align-items: center;\n    gap: 4px;\n    min-height: 44px;\n    padding: 4px;\n    border: 1px solid rgba(211,237,250,.22);\n    border-radius: 999px;\n    background: rgba(7,36,57,.34);\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.11);\n    -webkit-backdrop-filter: blur(5px);\n    backdrop-filter: blur(5px);\n  }\n  #ctw-tiferno-widget .ctw-layer-button {\n    display: inline-flex;\n    min-width: 0;\n    min-height: 36px;\n    align-items: center;\n    justify-content: center;\n    gap: 7px;\n    padding: 8px 13px;\n    border: 1px solid transparent;\n    border-radius: 999px;\n    color: #c9deea;\n    background: transparent;\n    font-size: 11px;\n    font-weight: 680;\n    line-height: 1.15;\n    white-space: nowrap;\n    cursor: pointer;\n    touch-action: manipulation;\n    transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;\n  }\n  #ctw-tiferno-widget .ctw-layer-button svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-layer-button.is-active { border-color: rgba(183,235,255,.28); color: #f3fbff; background: linear-gradient(135deg, rgba(119,207,238,.30), rgba(108,177,213,.17)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 8px rgba(2,26,43,.10); }\n  #ctw-tiferno-widget .ctw-layer-button:active { transform: scale(.97); }\n\n  #ctw-tiferno-widget .ctw-map-frame {\n    position: relative;\n    width: 100%;\n    height: clamp(370px, 42vw, 535px);\n    min-height: 340px;\n    overflow: hidden;\n    border: 1px solid rgba(4,34,54,.17);\n    border-radius: 19px;\n    background: #d9e5e8;\n    isolation: isolate;\n  }\n  #ctw-tiferno-widget .ctw-map-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; background: #dce7e8; }\n  #ctw-tiferno-widget .ctw-map-loading[hidden] { display: none !important; }\n  #ctw-tiferno-widget .ctw-map-loading {\n    position: absolute;\n    z-index: 500;\n    inset: 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n    gap: 7px;\n    padding: 20px;\n    color: #23445a;\n    background: linear-gradient(140deg, #e5eef0, #d4e2e6);\n    text-align: center;\n  }\n  #ctw-tiferno-widget .ctw-map-loading strong { color: #24485f; font-size: 13px; font-weight: 700; }\n  #ctw-tiferno-widget .ctw-map-loading > span:last-child { color: #577082; font-size: 11px; }\n  #ctw-tiferno-widget .ctw-loader { width: 25px; height: 25px; border: 2px solid rgba(41,99,127,.2); border-top-color: #287da2; border-radius: 50%; animation: ctw-spin .85s linear infinite; }\n  @keyframes ctw-spin { to { transform: rotate(360deg); } }\n  #ctw-tiferno-widget .ctw-map-error {\n    position: absolute;\n    z-index: 700;\n    inset: 12px;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    gap: 9px;\n    padding: 22px;\n    border: 1px solid rgba(42,94,120,.16);\n    border-radius: 12px;\n    color: #294c61;\n    background: rgba(239,246,248,.96);\n    text-align: center;\n  }\n  #ctw-tiferno-widget .ctw-map-error[hidden] { display: none; }\n  #ctw-tiferno-widget .ctw-error-symbol { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(170,91,70,.24); border-radius: 50%; color: #a94d37; font-weight: 800; }\n  #ctw-tiferno-widget .ctw-map-error strong { font-size: 13px; }\n  #ctw-tiferno-widget .ctw-map-error > span:not(.ctw-error-symbol) { max-width: 310px; color: #587181; font-size: 11px; }\n  #ctw-tiferno-widget .ctw-retry-button { min-height: 42px; padding: 9px 18px; border: 0; border-radius: 999px; color: #fff; background: #175d82; font-size: 11px; font-weight: 700; cursor: pointer; }\n  #ctw-tiferno-widget .ctw-map-corner-tag {\n    position: absolute;\n    z-index: 450;\n    top: 11px;\n    left: 11px;\n    display: flex;\n    align-items: center;\n    gap: 7px;\n    padding: 7px 9px;\n    border: 1px solid rgba(255,255,255,.45);\n    border-radius: 999px;\n    color: #23475c;\n    background: rgba(245,250,251,.88);\n    box-shadow: 0 3px 10px rgba(13,44,61,.08);\n    font-size: 8px;\n    font-weight: 800;\n    letter-spacing: .09em;\n    pointer-events: none;\n  }\n  #ctw-tiferno-widget .ctw-live-dot { width: 6px; height: 6px; flex-basis: 6px; background: #2389a9; box-shadow: 0 0 0 3px rgba(35,137,169,.12); }\n  #ctw-tiferno-widget .ctw-map-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 1px; }\n  #ctw-tiferno-widget .ctw-map-status { min-width: 0; color: #bad0dd; font-size: 10px; line-height: 1.4; }\n  #ctw-tiferno-widget .ctw-map-legend { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: #b8ccda; font-size: 10px; }\n  #ctw-tiferno-widget .ctw-legend-marker { display: inline-block; width: 8px; height: 8px; border: 2px solid #d9f6ff; border-radius: 50%; background: #398fb2; box-shadow: 0 0 0 2px rgba(111,202,233,.2); }\n  #ctw-tiferno-widget .ctw-selected-place {\n    display: flex;\n    align-items: center;\n    gap: 11px;\n    margin-top: 12px;\n    padding: 11px 12px;\n    border: 1px solid rgba(131,216,244,.29);\n    border-radius: 12px;\n    background: linear-gradient(110deg, rgba(101,183,216,.16), rgba(191,226,244,.055));\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.055);\n  }\n  #ctw-tiferno-widget .ctw-selected-place[hidden] { display: none; }\n  #ctw-tiferno-widget .ctw-selected-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; background: rgba(131,216,244,.15); }\n  #ctw-tiferno-widget .ctw-selected-icon svg { width: 20px; height: 20px; fill: none; stroke: #a8eaff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-selected-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 2px; }\n  #ctw-tiferno-widget .ctw-selected-copy strong { overflow-wrap: anywhere; color: #f4faff; font-size: 12px; line-height: 1.3; }\n  #ctw-tiferno-widget .ctw-selected-copy > span:last-child { color: #b9d1de; font-size: 10px; }\n  #ctw-tiferno-widget .ctw-open-map-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #aee8ff; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }\n  #ctw-tiferno-widget .ctw-open-map-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-clear-selection { display: inline-grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 1px solid rgba(219,239,249,.22); border-radius: 50%; color: #d6e9f3; background: rgba(217,239,249,.07); font-size: 19px; line-height: 1; cursor: pointer; }\n\n  #ctw-tiferno-widget .ctw-explorer { display: flex; flex-direction: column; padding: 16px; }\n  #ctw-tiferno-widget .ctw-explorer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 13px; }\n  #ctw-tiferno-widget .ctw-explorer-description { margin: 5px 0 0 !important; color: #b5cad8 !important; font-size: 11px !important; line-height: 1.45 !important; }\n  #ctw-tiferno-widget .ctw-count-pill { flex: 0 0 auto; margin-top: 2px; padding: 5px 8px; border: 1px solid rgba(162,216,239,.2); border-radius: 8px; color: #c7eafa; background: rgba(131,216,244,.09); font-size: 9px; font-weight: 750; white-space: nowrap; }\n  #ctw-tiferno-widget .ctw-search-wrap {\n    display: flex;\n    min-height: 40px;\n    align-items: center;\n    gap: 9px;\n    padding: 0 11px;\n    border: 1px solid rgba(207,233,247,.16);\n    border-radius: 999px;\n    background: rgba(4,27,45,.30);\n  }\n  #ctw-tiferno-widget .ctw-search-wrap > svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #a9d7ea; stroke-width: 1.6; stroke-linecap: round; }\n  #ctw-tiferno-widget .ctw-search-wrap input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; color: #eff9ff; background: transparent; font-size: 11px; line-height: 1.3; box-shadow: none; }\n  #ctw-tiferno-widget .ctw-search-wrap input::placeholder { color: #92afc1; opacity: 1; }\n  #ctw-tiferno-widget .ctw-search-wrap input::-webkit-search-cancel-button { cursor: pointer; }\n  #ctw-tiferno-widget .ctw-search-shortcut { display: none; }\n  #ctw-tiferno-widget .ctw-location-list { display: grid; grid-template-columns: 1fr; gap: 7px; max-height: 438px; min-height: 100px; margin-top: 11px; padding: 1px 3px 3px 1px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(164,209,231,.35) transparent; }\n  #ctw-tiferno-widget .ctw-location-list::-webkit-scrollbar { width: 5px; }\n  #ctw-tiferno-widget .ctw-location-list::-webkit-scrollbar-track { background: transparent; }\n  #ctw-tiferno-widget .ctw-location-list::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(164,209,231,.32); }\n  #ctw-tiferno-widget .ctw-location-card {\n    display: flex;\n    width: 100%;\n    min-width: 0;\n    min-height: 49px;\n    align-items: center;\n    gap: 9px;\n    padding: 7px 9px;\n    border: 1px solid rgba(207,232,246,.105);\n    border-radius: 15px;\n    color: #ecf7fd;\n    background: rgba(191,224,242,.075);\n    text-align: left;\n    cursor: pointer;\n    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;\n  }\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] { border-color: rgba(131,216,244,.58); background: linear-gradient(110deg, rgba(95,186,221,.28), rgba(157,211,237,.14)); box-shadow: inset 0 0 0 1px rgba(131,216,244,.07); }\n  #ctw-tiferno-widget .ctw-location-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid rgba(156,220,244,.16); border-radius: 9px; color: #a9e5fa; background: rgba(126,201,230,.105); }\n  #ctw-tiferno-widget .ctw-location-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }\n  #ctw-tiferno-widget .ctw-location-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 2px; }\n  #ctw-tiferno-widget .ctw-location-copy strong { display: block; overflow: hidden; color: #eaf6fc; font-size: 10.5px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }\n  #ctw-tiferno-widget .ctw-location-copy small { color: #9fbdce; font-size: 9px; line-height: 1.2; }\n  #ctw-tiferno-widget .ctw-location-arrow { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 6px; color: #90bfd5; font-size: 17px; line-height: 1; opacity: .75; }\n  #ctw-tiferno-widget .ctw-no-results { padding: 20px 10px; color: #bbcfdb; font-size: 11px; text-align: center; }\n  #ctw-tiferno-widget .ctw-no-results[hidden] { display: none; }\n  #ctw-tiferno-widget .ctw-explorer-footnote { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 12px 2px 0; color: #9eb9ca; font-size: 9px; line-height: 1.4; }\n  #ctw-tiferno-widget .ctw-footnote-icon { color: #8edcf6; font-size: 15px; }\n  #ctw-tiferno-widget .ctw-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 22px 17px; color: #91afc1; font-size: 9px; }\n  #ctw-tiferno-widget .ctw-footer-spacer { flex: 1 1 auto; }\n  #ctw-tiferno-widget .ctw-footer-note { color: #829fb1; }\n  #ctw-tiferno-widget .ctw-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }\n\n  \/* Marker personalizzati e popup Leaflet, sempre circoscritti alla mappa CTW. *\/\n  #ctw-tiferno-widget .ctw-div-marker { border: 0; background: transparent; }\n  #ctw-tiferno-widget .ctw-marker-pin {\n    position: relative;\n    display: grid;\n    width: 34px;\n    height: 34px;\n    place-items: center;\n    border: 2px solid rgba(255,255,255,.95);\n    border-radius: 50% 50% 50% 10px;\n    color: #f7fdff;\n    background: linear-gradient(145deg, #237eaa, #145879);\n    box-shadow: 0 3px 10px rgba(5,42,65,.38), inset 0 1px 0 rgba(255,255,255,.26);\n    transform: rotate(-45deg);\n    transition: background .16s ease, box-shadow .16s ease;\n  }\n  #ctw-tiferno-widget .ctw-marker-pin::before { content: \"\"; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.26); border-radius: 50% 50% 50% 9px; }\n  #ctw-tiferno-widget .ctw-marker-pin svg { position: relative; z-index: 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; transform: rotate(45deg); }\n  #ctw-tiferno-widget .ctw-div-marker.ctw-marker-active .ctw-marker-pin { background: linear-gradient(145deg, #22a0c9, #08678f); box-shadow: 0 0 0 5px rgba(44,161,198,.19), 0 4px 15px rgba(3,44,69,.4); }\n  #ctw-tiferno-widget .leaflet-popup-content-wrapper { border: 1px solid rgba(25,76,105,.12); border-radius: 12px; color: #17394f; background: rgba(249,253,255,.97); box-shadow: 0 7px 22px rgba(8,37,55,.2); }\n  #ctw-tiferno-widget .leaflet-popup-content { margin: 11px 14px; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; font-size: 12px; line-height: 1.4; }\n  #ctw-tiferno-widget .leaflet-popup-content strong { display: block; color: #153d58; font-size: 12px; }\n  #ctw-tiferno-widget .ctw-popup-altitude { display: block; margin-top: 3px; color: #597487; font-size: 10px; }\n  #ctw-tiferno-widget .leaflet-popup-tip { background: #f9fdff; }\n  #ctw-tiferno-widget .leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(18,61,84,.18) !important; border-radius: 15px; box-shadow: 0 4px 14px rgba(7,38,56,.2); }\n  #ctw-tiferno-widget .leaflet-control-zoom a { display: block; width: 40px !important; height: 40px !important; line-height: 38px !important; color: #214c65; background: rgba(244,251,254,.91); font-size: 23px !important; font-weight: 650; }\n  #ctw-tiferno-widget .leaflet-control-zoom a:hover { color: #0b5578; background: #ffffff; }\n  #ctw-tiferno-widget .leaflet-control-zoom a:first-child { border-radius: 10px 10px 0 0; }\n  #ctw-tiferno-widget .leaflet-control-zoom a:last-child { border-radius: 0 0 10px 10px; }\n  #ctw-tiferno-widget .leaflet-control-attribution { font-size: 9px; }\n  #ctw-tiferno-widget .leaflet-control-scale-line { border-color: rgba(26,67,87,.75); color: #23495d; background: rgba(255,255,255,.72); }\n\n  \/* Schermo intero: si espande l'intero contenitore, cos\u00ec mappa ed elenco restano insieme. *\/\n  #ctw-tiferno-widget .ctw-shell:fullscreen,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback {\n    position: fixed;\n    inset: 0;\n    z-index: 999999;\n    display: flex;\n    width: 100vw;\n    max-width: 100vw;\n    height: 100vh;\n    height: 100dvh;\n    max-height: 100dvh;\n    min-height: 0;\n    flex-direction: column;\n    overflow: hidden;\n    padding: 0;\n    border: 0;\n    border-radius: 0;\n    background: #082d49;\n    box-shadow: none;\n  }\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback {\n    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header {\n    flex: 0 0 auto;\n    gap: 12px;\n    padding: 11px clamp(13px, 2vw, 25px) 10px;\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-title,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-title,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-title { font-size: clamp(20px, 2.3vw, 27px) !important; }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-title-emblem,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-title-emblem,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-title-emblem { width: 32px; height: 32px; flex-basis: 32px; border-radius: 11px; }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-subtitle,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-subtitle,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-subtitle { font-size: 11px !important; line-height: 1.35 !important; }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n    flex: 1 1 auto;\n    min-height: 0;\n    grid-template-columns: minmax(0, 1.72fr) minmax(270px, .86fr);\n    gap: 11px;\n    padding: 11px;\n    overflow: hidden;\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-panel,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-panel,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-panel {\n    display: flex;\n    min-height: 0;\n    flex-direction: column;\n    overflow: hidden;\n    padding: 12px;\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-frame,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-frame,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-frame {\n    flex: 1 1 120px;\n    min-height: 110px;\n    height: auto;\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer {\n    display: flex;\n    min-height: 0;\n    flex-direction: column;\n    overflow: hidden;\n    padding: 12px;\n  }\n  \/* In fullscreen i dettagli sono gi\u00e0 nell'elenco selezionato e nel popup: si libera spazio alla mappa. *\/\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-selected-place,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-selected-place,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-selected-place { display: none !important; }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list {\n    flex: 1 1 auto;\n    min-height: 0;\n    max-height: none !important;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n  }\n  #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-footer,\n  #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-footer,\n  #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-footer {\n    flex: 0 0 auto;\n    padding: 0 16px 9px;\n  }\n  @media (max-width: 840px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0, 1fr);\n      grid-template-rows: minmax(265px, 0.93fr) minmax(220px, 1fr);\n      gap: 8px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-toolbar { margin-bottom: 7px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-frame { min-height: 0; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-header,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-header,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-header { margin-bottom: 7px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-description,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-description,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-description { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list {\n      grid-template-columns: repeat(2, minmax(0, 1fr));\n      gap: 6px;\n      margin-top: 7px;\n      padding: 3px 4px 5px 2px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-location-card,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-location-card,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback button.ctw-location-card {\n      min-height: 46px;\n      padding: 6px 8px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-footnote { display: none; }\n  }\n  @media (max-width: 420px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-eyebrow,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-eyebrow,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-eyebrow { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-title,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-title,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-title { font-size: 19px !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header-badge,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header-badge,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header-badge { padding: 6px 9px; gap: 6px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header-badge .ctw-badge-icon,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header-badge .ctw-badge-icon,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header-badge .ctw-badge-icon { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-shell-placeholder,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-shell-placeholder,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-shell-placeholder { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-rows: minmax(245px, 0.9fr) minmax(220px, 1fr);\n      padding: 8px;\n      gap: 7px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header { padding: 7px 12px 6px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-footer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-footer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-footer { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-panel { padding: 9px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-panel-title,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-panel-title,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-panel-title { font-size: 14px !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-section-kicker,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-section-kicker,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-section-kicker { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-toolbar { gap: 5px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-control-button,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-control-button,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback button.ctw-control-button { min-height: 38px; padding: 6px 9px; font-size: 10px !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layer-switch,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layer-switch,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layer-switch { min-height: 38px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-layer-button,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-layer-button,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback button.ctw-layer-button { min-height: 32px; padding: 5px 8px; font-size: 10px !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-meta,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-meta,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-meta { padding-top: 5px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer { padding: 8px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list { grid-template-columns: minmax(0, 1fr); }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-location-card,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-location-card { min-height: 42px; }\n  }\n  @media (max-width: 360px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-rows: minmax(285px, .96fr) minmax(220px, .88fr);\n    }\n  }\n  @media (max-height: 560px) and (orientation: landscape) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header { padding: 5px 12px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-eyebrow,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-eyebrow,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-eyebrow,\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-footer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-footer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-footer { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0, 1.65fr) minmax(235px, .85fr);\n      grid-template-rows: minmax(0, 1fr);\n      padding: 7px;\n      gap: 7px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-panel { padding: 8px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-panel-heading,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-panel-heading,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-panel-heading { margin-bottom: 5px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-frame { min-height: 90px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-toolbar,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-toolbar { gap: 5px; margin-bottom: 5px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer { padding: 8px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-description,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-description,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-description { display: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list { grid-template-columns: minmax(0, 1fr); }\n  }\n\n  @media (hover: hover) and (pointer: fine) {\n    #ctw-tiferno-widget .ctw-icon-button:hover,\n    #ctw-tiferno-widget .ctw-control-button:hover { border-color: rgba(160,224,247,.48); background: rgba(177,225,246,.20); box-shadow: 0 4px 13px rgba(1,25,43,.12); }\n    #ctw-tiferno-widget .ctw-layer-button:not(.is-active):hover { color: #ffffff; background: rgba(177,225,246,.12); }\n    #ctw-tiferno-widget .ctw-location-card:hover { border-color: rgba(152,218,243,.42); background: rgba(170,217,239,.14); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(2,22,38,.12); }\n    #ctw-tiferno-widget .ctw-open-map-link:hover { color: #e1f8ff; text-decoration: underline; }\n  }\n  @media (hover: none) and (pointer: coarse) {\n    #ctw-tiferno-widget .ctw-control-button:active,\n    #ctw-tiferno-widget .ctw-layer-button:active,\n    #ctw-tiferno-widget .ctw-icon-button:active,\n    #ctw-tiferno-widget .ctw-location-card:active { transform: scale(.975); background-color: rgba(177,225,246,.22); }\n    #ctw-tiferno-widget .ctw-control-button,\n    #ctw-tiferno-widget .ctw-layer-button,\n    #ctw-tiferno-widget .ctw-icon-button { min-height: 44px; }\n  }\n  @media (max-width: 980px) {\n    #ctw-tiferno-widget .ctw-layout { grid-template-columns: minmax(0, 1.45fr) minmax(225px, .9fr); gap: 12px; padding: 14px; }\n    #ctw-tiferno-widget .ctw-map-panel { padding: 12px; }\n    #ctw-tiferno-widget .ctw-explorer { padding: 13px; }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(360px, 47vw, 475px); }\n  }\n  @media (max-width: 840px) {\n    #ctw-tiferno-widget .ctw-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(365px, 70vw, 470px); }\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; min-height: 0; }\n    #ctw-tiferno-widget .ctw-location-card { min-height: 53px; padding: 7px; gap: 7px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 10px; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 28px; height: 28px; flex-basis: 28px; }\n    #ctw-tiferno-widget .ctw-location-icon svg { width: 15px; height: 15px; }\n    #ctw-tiferno-widget .ctw-location-arrow { display: none; }\n    #ctw-tiferno-widget .ctw-explorer-footnote { margin-top: 10px; }\n  }\n  @media (max-width: 360px) {\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 10px; }\n  }\n  @media (max-width: 480px) {\n    #ctw-tiferno-widget { font-size: 14px; }\n    #ctw-tiferno-widget .ctw-shell { border-radius: 22px; }\n    #ctw-tiferno-widget .ctw-header { align-items: flex-start; padding: 17px 14px 15px; gap: 9px; }\n    #ctw-tiferno-widget .ctw-eyebrow { gap: 6px; font-size: 8px; letter-spacing: .105em; }\n    #ctw-tiferno-widget .ctw-title-row { gap: 8px; margin-top: 7px; }\n    #ctw-tiferno-widget .ctw-title-emblem { width: 32px; height: 32px; flex-basis: 32px; border-radius: 11px; }\n    #ctw-tiferno-widget .ctw-title-emblem svg { width: 21px; height: 21px; }\n    #ctw-tiferno-widget .ctw-title { font-size: clamp(20px, 5.8vw, 25px) !important; }\n    #ctw-tiferno-widget .ctw-subtitle { font-size: 11px !important; }\n    #ctw-tiferno-widget .ctw-header-badge { gap: 7px; padding: 7px 9px; border-radius: 11px; }\n    #ctw-tiferno-widget .ctw-badge-icon { width: 23px; height: 23px; }\n    #ctw-tiferno-widget .ctw-header-badge strong { font-size: 14px; }\n    #ctw-tiferno-widget .ctw-header-badge small { font-size: 9px; }\n    #ctw-tiferno-widget .ctw-layout { gap: 10px; padding: 10px; }\n    #ctw-tiferno-widget .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-explorer { border-radius: 14px; }\n    #ctw-tiferno-widget .ctw-map-panel { padding: 10px; }\n    #ctw-tiferno-widget .ctw-explorer { padding: 12px 10px; }\n    #ctw-tiferno-widget .ctw-panel-heading { margin-bottom: 9px; }\n    #ctw-tiferno-widget .ctw-panel-title { font-size: 15px !important; }\n    #ctw-tiferno-widget .ctw-icon-button { width: 44px; height: 44px; flex-basis: 44px; }\n    #ctw-tiferno-widget .ctw-map-toolbar { gap: 6px; margin-bottom: 8px; }\n    #ctw-tiferno-widget .ctw-control-button { min-height: 42px; flex: 1 1 auto; padding: 8px 12px; font-size: 10px; }\n    #ctw-tiferno-widget .ctw-control-button svg { width: 14px; height: 14px; }\n    #ctw-tiferno-widget .ctw-layer-switch { min-height: 42px; flex: 1 1 auto; justify-content: stretch; }\n    #ctw-tiferno-widget .ctw-layer-button { min-height: 34px; flex: 1 1 0; gap: 5px; padding: 7px 9px; font-size: 10px; }\n    #ctw-tiferno-widget .ctw-layer-button svg { width: 14px; height: 14px; flex-basis: 14px; }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(330px, 94vw, 410px); min-height: 320px; border-radius: 14px; }\n    #ctw-tiferno-widget .ctw-map-corner-tag { top: 8px; left: 8px; padding: 6px 7px; font-size: 7px; }\n    #ctw-tiferno-widget .ctw-map-meta { align-items: flex-start; }\n    #ctw-tiferno-widget .ctw-map-status,\n    #ctw-tiferno-widget .ctw-map-legend { font-size: 9px; }\n    #ctw-tiferno-widget .ctw-selected-place { flex-wrap: wrap; gap: 8px; padding: 9px; }\n    #ctw-tiferno-widget .ctw-selected-copy { flex-basis: calc(100% - 55px); }\n    #ctw-tiferno-widget .ctw-open-map-link { margin-left: 43px; }\n    #ctw-tiferno-widget .ctw-clear-selection { margin-left: auto; }\n    #ctw-tiferno-widget .ctw-explorer-header { margin-bottom: 10px; }\n    #ctw-tiferno-widget .ctw-count-pill { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-search-wrap { min-height: 38px; }\n    #ctw-tiferno-widget .ctw-location-list { gap: 6px; margin-top: 9px; }\n    #ctw-tiferno-widget .ctw-location-card { min-height: 54px; padding: 7px; gap: 6px; border-radius: 13px; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 9.5px; }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-footer { gap: 5px; padding: 0 13px 13px; font-size: 8px; }\n    #ctw-tiferno-widget .ctw-footer-note { flex-basis: 100%; }\n  }\n  @media (prefers-reduced-transparency: reduce) {\n    #ctw-tiferno-widget .ctw-shell { background: #103b59; }\n    #ctw-tiferno-widget .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-explorer { background: rgba(202,229,244,.12); }\n  }\n  @media (prefers-reduced-motion: reduce) {\n    #ctw-tiferno-widget *,\n    #ctw-tiferno-widget *::before,\n    #ctw-tiferno-widget *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }\n  }\n  @supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {\n    #ctw-tiferno-widget .ctw-shell { background: linear-gradient(143deg, #123e5c, #174e70); }\n    #ctw-tiferno-widget .ctw-map-corner-tag { background: rgba(245,250,251,.96); }\n  }\n\n  \/* CTW v3 \u2014 rifinitura visiva, contrasto e robustezza rispetto agli stili globali di Elementor. *\/\n  #ctw-tiferno-widget {\n    --ctw-text: #f5fbff;\n    --ctw-muted: #c2d8e7;\n    --ctw-accent: #8ce0ff;\n    --ctw-accent-strong: #c6f1ff;\n    font-size: 15.5px;\n  }\n  #ctw-tiferno-widget .ctw-shell {\n    background:\n      radial-gradient(ellipse at 3% 0%, rgba(61,151,194,.20), transparent 40%),\n      radial-gradient(ellipse at 100% 100%, rgba(33,120,165,.18), transparent 42%),\n      linear-gradient(145deg, rgba(5,27,47,.975), rgba(7,39,63,.97) 52%, rgba(8,48,72,.975));\n    border-color: rgba(156,211,239,.27);\n    box-shadow: 0 18px 42px rgba(1,18,33,.23), inset 0 1px 0 rgba(231,248,255,.13);\n  }\n  #ctw-tiferno-widget .ctw-header { border-bottom-color: rgba(187,224,243,.16); }\n  #ctw-tiferno-widget .ctw-map-panel,\n  #ctw-tiferno-widget .ctw-explorer {\n    border-color: rgba(163,211,236,.22);\n    border-radius: 25px;\n    background: linear-gradient(145deg, rgba(115,177,207,.115), rgba(70,135,169,.085));\n    box-shadow: inset 0 1px 0 rgba(237,249,255,.08), 0 8px 26px rgba(0,15,28,.12);\n  }\n  #ctw-tiferno-widget .ctw-map-panel { padding: 17px; }\n  #ctw-tiferno-widget .ctw-explorer { padding: 18px 17px 16px; }\n  #ctw-tiferno-widget .ctw-eyebrow { color: #c0e4f5; font-size: 10.5px; }\n  #ctw-tiferno-widget .ctw-section-kicker { color: #b8e3f7; font-size: 10px; letter-spacing: .12em; }\n  #ctw-tiferno-widget .ctw-title { color: #f7fcff !important; }\n  #ctw-tiferno-widget .ctw-subtitle { color: #d0e1eb !important; font-size: 14px !important; line-height: 1.55 !important; }\n  #ctw-tiferno-widget .ctw-header-badge {\n    border-color: rgba(166,220,244,.25);\n    border-radius: 18px;\n    background: linear-gradient(145deg, rgba(112,190,225,.18), rgba(58,126,164,.12));\n  }\n  #ctw-tiferno-widget .ctw-header-badge strong { font-size: 18px; }\n  #ctw-tiferno-widget .ctw-header-badge small { color: #c7dce8; font-size: 11px; }\n  #ctw-tiferno-widget .ctw-panel-title { font-size: 18px !important; }\n  #ctw-tiferno-widget .ctw-map-toolbar {\n    gap: 10px;\n    padding: 3px 4px 5px;\n    margin-bottom: 9px;\n  }\n\n  \/* Reset mirato: Elementor\/tema non deve poter squadrarli o ridimensionarli. *\/\n  #ctw-tiferno-widget button.ctw-control-button,\n  #ctw-tiferno-widget button.ctw-layer-button,\n  #ctw-tiferno-widget button.ctw-icon-button,\n  #ctw-tiferno-widget button.ctw-location-card,\n  #ctw-tiferno-widget button.ctw-clear-selection,\n  #ctw-tiferno-widget button.ctw-retry-button {\n    appearance: none !important;\n    -webkit-appearance: none !important;\n    font-family: inherit !important;\n    text-transform: none !important;\n    letter-spacing: normal !important;\n    word-spacing: normal !important;\n    text-indent: 0 !important;\n    text-shadow: none !important;\n    font-style: normal !important;\n    box-shadow: none;\n  }\n  #ctw-tiferno-widget button.ctw-control-button {\n    min-height: 46px;\n    padding: 10px 17px;\n    border: 1px solid rgba(183,224,244,.32) !important;\n    border-radius: 999px !important;\n    color: #edf8ff !important;\n    background: rgba(116,177,207,.15) !important;\n    font-size: 13px !important;\n    font-weight: 700 !important;\n    line-height: 1.2 !important;\n    cursor: pointer;\n    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;\n  }\n  #ctw-tiferno-widget button.ctw-control-button.is-active,\n  #ctw-tiferno-widget button.ctw-control-button[aria-pressed=\"true\"] {\n    border-color: rgba(179,239,255,.88) !important;\n    color: #ffffff !important;\n    background: linear-gradient(135deg, #167da7, #0c5c86 58%, #12486d) !important;\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 0 0 2px rgba(109,207,244,.16), 0 5px 15px rgba(0,24,43,.24) !important;\n  }\n  #ctw-tiferno-widget .ctw-overview-button:not(.is-active) {\n    color: #d4e7f1 !important;\n    background: rgba(94,145,174,.12) !important;\n  }\n  #ctw-tiferno-widget .ctw-layer-switch {\n    gap: 5px;\n    min-height: 48px;\n    padding: 4px;\n    border: 1px solid rgba(163,214,239,.28);\n    border-radius: 999px;\n    background: rgba(2,24,42,.62);\n    box-shadow: inset 0 1px 0 rgba(237,249,255,.10), 0 3px 12px rgba(0,18,33,.16);\n    -webkit-backdrop-filter: blur(8px) saturate(135%);\n    backdrop-filter: blur(8px) saturate(135%);\n  }\n  #ctw-tiferno-widget button.ctw-layer-button {\n    position: relative;\n    min-height: 40px;\n    padding: 8px 15px;\n    border: 1px solid transparent !important;\n    border-radius: 999px !important;\n    color: #d0e2ed !important;\n    background: transparent !important;\n    font-size: 12.5px !important;\n    font-weight: 700 !important;\n    line-height: 1.2 !important;\n    cursor: pointer;\n    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;\n  }\n  #ctw-tiferno-widget button.ctw-layer-button.is-active,\n  #ctw-tiferno-widget button.ctw-layer-button[aria-pressed=\"true\"] {\n    border-color: rgba(192,242,255,.94) !important;\n    color: #ffffff !important;\n    background: linear-gradient(135deg, #1687b2 0%, #0b648f 58%, #124c72 100%) !important;\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.27), 0 2px 9px rgba(0,20,37,.28), 0 0 0 1px rgba(125,215,248,.20) !important;\n  }\n  #ctw-tiferno-widget button.ctw-layer-button.is-active::after {\n    content: \"\";\n    display: inline-block;\n    width: 6px;\n    height: 6px;\n    flex: 0 0 6px;\n    margin-left: 1px;\n    border-radius: 50%;\n    background: #eaffff;\n    box-shadow: 0 0 0 3px rgba(220,250,255,.16);\n  }\n  #ctw-tiferno-widget .ctw-layer-button svg { width: 17px; height: 17px; }\n\n  \/* Lista pi\u00f9 ariosa: il padding interno impedisce il taglio dei primi\/ultimi pulsanti. *\/\n  #ctw-tiferno-widget .ctw-explorer-header { gap: 12px; margin-bottom: 15px; }\n  #ctw-tiferno-widget .ctw-explorer-description { color: #c9dce7 !important; font-size: 12.5px !important; line-height: 1.5 !important; }\n  #ctw-tiferno-widget .ctw-count-pill {\n    padding: 6px 10px;\n    border-color: rgba(150,220,247,.32);\n    border-radius: 999px;\n    color: #e0f5ff;\n    background: rgba(43,133,175,.22);\n    font-size: 11px;\n  }\n  #ctw-tiferno-widget .ctw-search-wrap {\n    min-height: 45px;\n    padding: 0 14px;\n    border-color: rgba(177,220,241,.23);\n    background: rgba(1,22,39,.48);\n  }\n  #ctw-tiferno-widget .ctw-search-wrap > svg { width: 18px; height: 18px; }\n  #ctw-tiferno-widget .ctw-search-wrap input {\n    padding: 10px 0;\n    color: #f5fbff;\n    font-size: 13px !important;\n    line-height: 1.35;\n    letter-spacing: normal !important;\n    text-transform: none !important;\n  }\n  #ctw-tiferno-widget .ctw-search-wrap input::placeholder { color: #b6cfde; }\n  #ctw-tiferno-widget .ctw-location-list {\n    gap: 8px;\n    max-height: 470px;\n    margin-top: 12px;\n    padding: 7px 10px 10px 7px;\n    overflow-x: hidden;\n    overflow-y: auto;\n    scroll-padding-block: 8px;\n    scrollbar-gutter: stable;\n  }\n  #ctw-tiferno-widget button.ctw-location-card {\n    position: relative;\n    min-height: 56px;\n    gap: 10px;\n    margin: 0;\n    padding: 8px 11px;\n    overflow: visible;\n    border: 1px solid rgba(174,216,238,.22) !important;\n    border-radius: 18px !important;\n    color: #f0f8fd !important;\n    background: linear-gradient(115deg, rgba(117,174,204,.145), rgba(77,137,171,.105)) !important;\n    text-align: left !important;\n    text-decoration: none !important;\n    line-height: 1.25 !important;\n    cursor: pointer;\n    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;\n  }\n  #ctw-tiferno-widget button.ctw-location-card[aria-pressed=\"true\"] {\n    border: 1px solid rgba(183,240,255,.98) !important;\n    color: #ffffff !important;\n    background: linear-gradient(112deg, rgba(24,130,174,.94), rgba(12,91,133,.94) 62%, rgba(17,72,111,.96)) !important;\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 2px rgba(97,202,241,.16), 0 5px 15px rgba(0,20,37,.20) !important;\n  }\n  #ctw-tiferno-widget .ctw-location-icon {\n    width: 34px;\n    height: 34px;\n    flex-basis: 34px;\n    border-color: rgba(166,222,245,.26);\n    border-radius: 12px;\n    color: #bdeeff;\n    background: rgba(82,167,204,.18);\n  }\n  #ctw-tiferno-widget .ctw-location-icon svg { width: 18px; height: 18px; }\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] .ctw-location-icon {\n    border-color: rgba(230,249,255,.45);\n    color: #ffffff;\n    background: rgba(220,248,255,.18);\n  }\n  #ctw-tiferno-widget .ctw-location-copy { gap: 3px; }\n  #ctw-tiferno-widget .ctw-location-copy strong {\n    color: #f0f8fd;\n    font-size: 13px;\n    font-weight: 700;\n    line-height: 1.3;\n  }\n  #ctw-tiferno-widget .ctw-location-copy small { color: #c1d6e3; font-size: 11px; line-height: 1.25; }\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] .ctw-location-copy strong,\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] .ctw-location-copy small { color: #ffffff; }\n  #ctw-tiferno-widget .ctw-location-arrow {\n    width: 24px;\n    height: 24px;\n    flex-basis: 24px;\n    border-radius: 50%;\n    color: #b3d6e7;\n    font-size: 19px;\n  }\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] .ctw-location-arrow {\n    color: #063752;\n    background: #c7f1ff;\n    font-size: 0;\n    opacity: 1;\n    box-shadow: 0 1px 5px rgba(0,20,35,.18);\n  }\n  #ctw-tiferno-widget .ctw-location-card[aria-pressed=\"true\"] .ctw-location-arrow::after {\n    content: \"\u2713\";\n    font-size: 14px;\n    font-weight: 900;\n    line-height: 1;\n  }\n  #ctw-tiferno-widget .ctw-no-results { color: #d3e5ef; font-size: 12.5px; }\n  #ctw-tiferno-widget .ctw-explorer-footnote { padding-top: 13px; color: #c1d7e4; font-size: 11.5px; }\n  #ctw-tiferno-widget .ctw-footer { padding-inline: 24px; color: #b4ccda; font-size: 10.5px; }\n  #ctw-tiferno-widget .ctw-footer-note { color: #a7c0cf; }\n\n  \/* Testi di servizio e controlli della mappa: pi\u00f9 leggibili e con forme coerenti. *\/\n  #ctw-tiferno-widget .ctw-map-corner-tag {\n    padding: 8px 11px;\n    border-color: rgba(255,255,255,.68);\n    border-radius: 999px;\n    font-size: 9.5px;\n    letter-spacing: .07em;\n  }\n  #ctw-tiferno-widget .ctw-map-status,\n  #ctw-tiferno-widget .ctw-map-legend { color: #c9dce8; font-size: 11.5px; }\n  #ctw-tiferno-widget .ctw-selected-place { border-radius: 18px; }\n  #ctw-tiferno-widget .ctw-selected-copy strong { font-size: 13.5px; }\n  #ctw-tiferno-widget .ctw-selected-copy > span:last-child { color: #c6dce8; font-size: 11.5px; }\n  #ctw-tiferno-widget .ctw-open-map-link { font-size: 11.5px; }\n  #ctw-tiferno-widget button.ctw-icon-button {\n    width: 44px;\n    height: 44px;\n    flex-basis: 44px;\n    border-radius: 50% !important;\n    border-color: rgba(188,225,243,.31) !important;\n    color: #ecf9ff !important;\n    background: rgba(95,160,194,.18) !important;\n    cursor: pointer;\n  }\n  #ctw-tiferno-widget .ctw-marker-pin { border-radius: 50% 50% 50% 13px; }\n  #ctw-tiferno-widget .leaflet-control-zoom {\n    display: flex;\n    flex-direction: column;\n    gap: 6px;\n    overflow: visible;\n    border: 0 !important;\n    border-radius: 0;\n    background: transparent;\n    box-shadow: none;\n  }\n  #ctw-tiferno-widget .leaflet-control-zoom a,\n  #ctw-tiferno-widget .leaflet-control-zoom a:first-child,\n  #ctw-tiferno-widget .leaflet-control-zoom a:last-child {\n    display: grid;\n    width: 44px !important;\n    height: 44px !important;\n    place-items: center;\n    margin: 0;\n    border: 1px solid rgba(17,76,107,.22) !important;\n    border-radius: 15px !important;\n    color: #104665 !important;\n    background: rgba(242,250,254,.94) !important;\n    box-shadow: 0 3px 11px rgba(5,36,55,.20), inset 0 1px 0 #ffffff;\n    font-size: 23px !important;\n    line-height: 1 !important;\n    text-decoration: none !important;\n  }\n  #ctw-tiferno-widget .leaflet-control-attribution { border-radius: 9px 0 0 0; font-size: 10px; }\n  #ctw-tiferno-widget .leaflet-control-scale-line { border-radius: 3px; font-size: 10px; }\n  #ctw-tiferno-widget .leaflet-popup-content { font-size: 13px; }\n  #ctw-tiferno-widget .leaflet-popup-content strong { font-size: 13px; }\n  #ctw-tiferno-widget .ctw-map-loading strong { font-size: 14px; }\n  #ctw-tiferno-widget .ctw-map-loading > span:last-child,\n  #ctw-tiferno-widget .ctw-map-error > span:not(.ctw-error-symbol) { font-size: 12px; }\n  #ctw-tiferno-widget .ctw-map-error strong { font-size: 14px; }\n  #ctw-tiferno-widget button.ctw-retry-button { min-height: 44px; border-radius: 999px !important; font-size: 12px !important; }\n\n  @media (hover: hover) and (pointer: fine) {\n    #ctw-tiferno-widget button.ctw-location-card:hover {\n      border-color: rgba(173,230,251,.58) !important;\n      background: linear-gradient(110deg, rgba(106,177,211,.22), rgba(75,142,180,.17)) !important;\n      transform: translateY(-1px);\n      box-shadow: 0 5px 14px rgba(0,18,33,.17) !important;\n    }\n    #ctw-tiferno-widget button.ctw-location-card[aria-pressed=\"true\"]:hover {\n      border-color: #d4f6ff !important;\n      background: linear-gradient(112deg, #208db9, #0d6793 62%, #16547c) !important;\n    }\n    #ctw-tiferno-widget button.ctw-control-button:hover,\n    #ctw-tiferno-widget button.ctw-layer-button:hover,\n    #ctw-tiferno-widget button.ctw-icon-button:hover { filter: brightness(1.12); }\n    #ctw-tiferno-widget .leaflet-control-zoom a:hover { color: #063d5c !important; background: #ffffff !important; transform: translateY(-1px); }\n  }\n  @media (hover: none) and (pointer: coarse) {\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget button.ctw-layer-button,\n    #ctw-tiferno-widget button.ctw-location-card,\n    #ctw-tiferno-widget button.ctw-icon-button { min-height: 44px; }\n    #ctw-tiferno-widget button.ctw-location-card:active,\n    #ctw-tiferno-widget button.ctw-control-button:active,\n    #ctw-tiferno-widget button.ctw-layer-button:active { transform: scale(.985); }\n  }\n  @media (max-width: 980px) {\n    #ctw-tiferno-widget .ctw-location-list { max-height: 500px; }\n  }\n  @media (max-width: 840px) {\n    #ctw-tiferno-widget .ctw-explorer { padding: 17px; }\n    #ctw-tiferno-widget .ctw-location-list {\n      max-height: none;\n      min-height: 0;\n      overflow: visible;\n      scrollbar-gutter: auto;\n      gap: 9px;\n      padding: 7px 9px 10px 7px;\n    }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 58px; padding: 8px 10px; border-radius: 17px !important; }\n    #ctw-tiferno-widget .ctw-location-copy strong {\n      font-size: 12.5px;\n      white-space: normal;\n      overflow: hidden;\n      text-overflow: clip;\n      display: -webkit-box;\n      -webkit-box-orient: vertical;\n      -webkit-line-clamp: 2;\n      line-height: 1.2;\n    }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 32px; height: 32px; flex-basis: 32px; }\n    #ctw-tiferno-widget .ctw-location-arrow { width: 22px; height: 22px; flex-basis: 22px; }\n  }\n  @media (max-width: 480px) {\n    #ctw-tiferno-widget { font-size: 15px; }\n    #ctw-tiferno-widget .ctw-shell { border-radius: 23px; }\n    #ctw-tiferno-widget .ctw-header { padding: 18px 15px 16px; }\n    #ctw-tiferno-widget .ctw-eyebrow { font-size: 9px; letter-spacing: .10em; }\n    #ctw-tiferno-widget .ctw-title { font-size: clamp(22px, 6vw, 27px) !important; }\n    #ctw-tiferno-widget .ctw-subtitle { font-size: 12.5px !important; }\n    #ctw-tiferno-widget .ctw-header-badge strong { font-size: 16px; }\n    #ctw-tiferno-widget .ctw-header-badge small { font-size: 10px; }\n    #ctw-tiferno-widget .ctw-layout { padding: 11px; gap: 11px; }\n    #ctw-tiferno-widget .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-explorer { border-radius: 19px; }\n    #ctw-tiferno-widget .ctw-map-panel { padding: 12px; }\n    #ctw-tiferno-widget .ctw-explorer { padding: 14px 12px; }\n    #ctw-tiferno-widget .ctw-panel-title { font-size: 16.5px !important; }\n    #ctw-tiferno-widget .ctw-map-toolbar { gap: 7px; padding: 2px 2px 5px; }\n    #ctw-tiferno-widget button.ctw-control-button { min-height: 44px; padding: 9px 12px; font-size: 12px !important; }\n    #ctw-tiferno-widget .ctw-layer-switch { min-height: 46px; }\n    #ctw-tiferno-widget button.ctw-layer-button { min-height: 38px; gap: 5px; padding: 8px 10px; font-size: 11.5px !important; }\n    #ctw-tiferno-widget .ctw-layer-button svg { width: 15px; height: 15px; flex-basis: 15px; }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(330px, 94vw, 420px); min-height: 320px; border-radius: 17px; }\n    #ctw-tiferno-widget .ctw-map-corner-tag { top: 9px; left: 9px; padding: 7px 9px; font-size: 8px; }\n    #ctw-tiferno-widget .ctw-map-status,\n    #ctw-tiferno-widget .ctw-map-legend { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-explorer-description { font-size: 12px !important; }\n    #ctw-tiferno-widget .ctw-search-wrap { min-height: 44px; }\n    #ctw-tiferno-widget .ctw-search-wrap input { font-size: 12.5px !important; }\n    #ctw-tiferno-widget .ctw-location-list { gap: 7px; margin-top: 10px; padding: 6px 7px 9px 6px; }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 56px; gap: 7px; padding: 7px 8px; border-radius: 16px !important; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 10px; }\n    #ctw-tiferno-widget .ctw-location-icon svg { width: 16px; height: 16px; }\n    #ctw-tiferno-widget .ctw-location-copy strong {\n      font-size: 12.2px;\n      white-space: normal;\n      overflow: hidden;\n      text-overflow: clip;\n      display: -webkit-box;\n      -webkit-box-orient: vertical;\n      -webkit-line-clamp: 2;\n      line-height: 1.2;\n    }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-explorer-footnote { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-footer { padding: 0 15px 14px; font-size: 9.5px; }\n  }\n  @media (max-width: 360px) {\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 54px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 12.5px; }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-map-toolbar { align-items: stretch; }\n    #ctw-tiferno-widget button.ctw-control-button { flex: 1 1 100%; }\n    #ctw-tiferno-widget .ctw-layer-switch { flex: 1 1 100%; }\n  }\n  @media (max-width: 280px) {\n    #ctw-tiferno-widget .ctw-header-badge { display: none; }\n    #ctw-tiferno-widget .ctw-map-toolbar {\n      display: grid;\n      grid-template-columns: minmax(0, 1fr);\n      align-items: stretch;\n    }\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget .ctw-layer-switch { width: 100%; min-width: 0; }\n    #ctw-tiferno-widget .ctw-layer-switch {\n      flex-direction: column;\n      align-items: stretch;\n      height: auto;\n      border-radius: 18px;\n    }\n    #ctw-tiferno-widget button.ctw-layer-button {\n      width: 100%;\n      min-height: 38px;\n      justify-content: center;\n      gap: 7px;\n      padding-inline: 8px;\n      font-size: 10.5px !important;\n    }\n    #ctw-tiferno-widget .ctw-layer-button svg { display: block; }\n    #ctw-tiferno-widget .ctw-layer-button.is-active::after { display: inline-block; }\n    #ctw-tiferno-widget .ctw-map-frame { min-height: 290px; }\n  }\n  @media (prefers-contrast: more) {\n    #ctw-tiferno-widget .ctw-shell,\n    #ctw-tiferno-widget .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-explorer { border-color: rgba(221,245,255,.62); }\n    #ctw-tiferno-widget button.ctw-location-card,\n    #ctw-tiferno-widget button.ctw-layer-button,\n    #ctw-tiferno-widget button.ctw-control-button { border-width: 2px !important; }\n    #ctw-tiferno-widget .ctw-muted,\n    #ctw-tiferno-widget .ctw-map-status,\n    #ctw-tiferno-widget .ctw-location-copy small { color: #e1f2fb !important; }\n  }\n  @media (prefers-reduced-transparency: reduce) {\n    #ctw-tiferno-widget .ctw-shell { background: #082d49; }\n    #ctw-tiferno-widget .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-explorer { background: #123f5e; }\n    #ctw-tiferno-widget .ctw-layer-switch { background: #05243b; -webkit-backdrop-filter: none; backdrop-filter: none; }\n  }\n\n  \/* Ultima regola intenzionale: i minimi touch target restano 44px anche dopo i breakpoint mobile. *\/\n  @media (hover: none) and (pointer: coarse) {\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget button.ctw-layer-button,\n    #ctw-tiferno-widget button.ctw-icon-button,\n    #ctw-tiferno-widget button.ctw-clear-selection,\n    #ctw-tiferno-widget .leaflet-control-zoom a { min-height: 44px !important; }\n    #ctw-tiferno-widget button.ctw-icon-button,\n    #ctw-tiferno-widget .leaflet-control-zoom a { height: 44px !important; }\n    #ctw-tiferno-widget button.ctw-icon-button { width: 44px !important; }\n  }\n\n\n  \/* V5 \u2014 layout adattivo: selettore compatto in verticale, pannello laterale in orizzontale. *\/\n  #ctw-tiferno-widget .ctw-mobile-location-toggle { display: none; }\n  #ctw-tiferno-widget .ctw-explorer-content {\n    display: flex;\n    min-width: 0;\n    min-height: 0;\n    flex: 1 1 auto;\n    flex-direction: column;\n  }\n  #ctw-tiferno-widget .ctw-explorer-content[hidden] { display: none !important; }\n  #ctw-tiferno-widget .ctw-mobile-location-toggle[hidden] { display: none !important; }\n  #ctw-tiferno-widget .ctw-mobile-toggle-icon,\n  #ctw-tiferno-widget .ctw-mobile-toggle-chevron { display: grid; place-items: center; flex: 0 0 auto; }\n  #ctw-tiferno-widget .ctw-mobile-toggle-icon {\n    width: 40px; height: 40px; border: 1px solid rgba(183,232,250,.30);\n    border-radius: 14px; color: #d5f5ff;\n    background: linear-gradient(145deg, rgba(102,190,225,.28), rgba(48,119,158,.22));\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-icon svg,\n  #ctw-tiferno-widget .ctw-mobile-toggle-chevron svg {\n    width: 20px; height: 20px; fill: none; stroke: currentColor;\n    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-copy {\n    display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column;\n    align-items: flex-start; gap: 3px; text-align: left;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-copy strong {\n    color: #f4fbff; font-size: 14px; font-weight: 750; line-height: 1.2;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-copy small {\n    display: block; max-width: 100%; overflow: hidden; color: #c4e0ed;\n    font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-count {\n    display: grid; min-width: 29px; height: 29px; padding: 0 7px; place-items: center;\n    border: 1px solid rgba(176,229,250,.27); border-radius: 999px;\n    color: #e9faff; background: rgba(111,190,222,.19); font-size: 11px; font-weight: 800;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-chevron {\n    width: 30px; height: 30px; border: 1px solid rgba(180,222,242,.20);\n    border-radius: 50%; color: #cceafa; background: rgba(183,222,240,.10);\n    transition: transform .2s ease, background .2s ease;\n  }\n  #ctw-tiferno-widget .ctw-mobile-toggle-chevron svg { width: 17px; height: 17px; }\n  #ctw-tiferno-widget .ctw-explorer.is-open .ctw-mobile-toggle-chevron { transform: rotate(180deg); background: rgba(104,189,224,.22); }\n  #ctw-tiferno-widget button.ctw-mobile-location-toggle {\n    appearance: none !important; -webkit-appearance: none !important;\n    width: 100%; min-width: 0; min-height: 66px; margin: 0; padding: 10px 12px;\n    display: flex; align-items: center; gap: 11px;\n    border: 1px solid rgba(176,225,246,.38) !important; border-radius: 22px !important;\n    color: #f4fbff !important;\n    background: linear-gradient(135deg, rgba(88,164,198,.24), rgba(33,98,138,.32)) !important;\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 5px 16px rgba(0,17,31,.15) !important;\n    text-align: left !important; text-transform: none !important; cursor: pointer;\n    touch-action: manipulation; -webkit-tap-highlight-color: transparent;\n    transition: background .18s ease, border-color .18s ease, transform .18s ease;\n  }\n  #ctw-tiferno-widget button.ctw-mobile-location-toggle:active { transform: scale(.99); }\n  #ctw-tiferno-widget .ctw-mobile-location-toggle:focus-visible { outline: 3px solid #b9edff; outline-offset: 3px; }\n  #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { animation: ctw-explorer-enter .18s ease-out both; }\n  @keyframes ctw-explorer-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }\n\n  \/* Smartphone verticale: lista nascosta dietro un selettore a capsula, mappa sempre prioritaria. *\/\n  @media (max-width: 840px) and (orientation: portrait), (max-width: 440px) {\n    #ctw-tiferno-widget .ctw-mobile-location-toggle { display: flex !important; }\n    #ctw-tiferno-widget .ctw-explorer { display: flex; min-width: 0; flex-direction: column; gap: 0; padding: 10px; }\n    #ctw-tiferno-widget .ctw-explorer-content { margin-top: 11px; }\n    #ctw-tiferno-widget .ctw-explorer-header { margin-bottom: 12px; }\n    #ctw-tiferno-widget .ctw-location-list {\n      grid-template-columns: repeat(2, minmax(0,1fr));\n      max-height: none; min-height: 0; overflow: visible; scrollbar-gutter: auto;\n      gap: 8px; padding: 7px 5px 9px;\n    }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 57px; padding: 8px 9px; border-radius: 17px !important; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.22; }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-explorer-footnote { margin-top: 8px; }\n  }\n  @media (max-width: 360px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(300px, 91vw, 360px); min-height: 290px; }\n  }\n\n  \/* Smartphone in orizzontale: mappa e localit\u00e0 affiancate, con lista laterale scorrevole. *\/\n  @media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {\n    #ctw-tiferno-widget .ctw-header { padding: 9px 15px 8px; gap: 10px; }\n    #ctw-tiferno-widget .ctw-title-row { margin-top: 4px; }\n    #ctw-tiferno-widget .ctw-title { font-size: clamp(19px, 2.6vw, 25px) !important; }\n    #ctw-tiferno-widget .ctw-subtitle { display: none; }\n    #ctw-tiferno-widget .ctw-header-badge { padding: 6px 10px; }\n    #ctw-tiferno-widget .ctw-layout {\n      grid-template-columns: minmax(0,1.58fr) minmax(205px,.82fr);\n      grid-template-rows: minmax(0,1fr); align-items: stretch; gap: 9px; padding: 10px;\n    }\n    #ctw-tiferno-widget .ctw-map-panel { display: flex; min-height: 0; flex-direction: column; padding: 10px; }\n    #ctw-tiferno-widget .ctw-panel-heading { margin-bottom: 6px; }\n    #ctw-tiferno-widget .ctw-map-toolbar { gap: 6px; margin-bottom: 6px; padding: 0 2px 3px; }\n    #ctw-tiferno-widget button.ctw-control-button { min-height: 40px; padding: 7px 10px; font-size: 11px !important; }\n    #ctw-tiferno-widget .ctw-layer-switch { min-height: 40px; padding: 3px; }\n    #ctw-tiferno-widget button.ctw-layer-button { min-height: 34px; padding: 6px 9px; font-size: 10.5px !important; }\n    #ctw-tiferno-widget .ctw-map-frame { flex: 1 1 auto; height: clamp(205px, 58svh, 330px); min-height: 205px; }\n    #ctw-tiferno-widget .ctw-explorer { display: flex; height: clamp(220px, calc(100svh - 105px), 360px); min-height: 0; max-height: none; flex-direction: column; overflow: hidden; padding: 10px; }\n    #ctw-tiferno-widget .ctw-explorer-content { display: flex; min-height: 0; overflow: hidden; }\n    #ctw-tiferno-widget .ctw-explorer-header { margin-bottom: 8px; }\n    #ctw-tiferno-widget .ctw-explorer-description { display: none; }\n    #ctw-tiferno-widget .ctw-search-wrap { min-height: 39px; }\n    #ctw-tiferno-widget .ctw-location-list {\n      grid-template-columns: minmax(0,1fr); flex: 1 1 auto; min-height: 0; max-height: none;\n      margin-top: 7px; padding: 5px 5px 7px 2px; gap: 6px; overflow-x: hidden; overflow-y: auto;\n    }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 43px; padding: 5px 7px; border-radius: 14px !important; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 28px; height: 28px; flex-basis: 28px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 11px; }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 9.5px; }\n    #ctw-tiferno-widget .ctw-explorer-footnote { display: none; }\n    #ctw-tiferno-widget .ctw-footer { padding: 0 15px 10px; }\n  }\n\n  \/* Fullscreen verticale: la selezione si apre come pannello flottante, senza rimpicciolire la mappa. *\/\n  @media (max-width: 840px) and (orientation: portrait), (max-width: 440px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto;\n      gap: 7px; overflow: hidden;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-panel { min-height: 0; padding: 9px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-frame { flex: 1 1 0; min-height: 0; height: auto; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer {\n      position: relative; display: flex; min-height: 0; flex: 0 0 auto;\n      overflow: visible; padding: 0 8px 8px; border: 0; background: transparent; box-shadow: none;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback button.ctw-mobile-location-toggle { min-height: 58px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content:not([hidden]),\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content:not([hidden]),\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content:not([hidden]) {\n      position: absolute; z-index: 1200; right: 8px; bottom: calc(100% + 8px); left: 8px;\n      display: flex; max-height: min(57dvh, 490px); min-height: 0; overflow: auto;\n      margin: 0; padding: 12px; border: 1px solid rgba(179,229,249,.42); border-radius: 23px;\n      background: rgba(5,31,51,.97); box-shadow: 0 15px 40px rgba(0,11,23,.42), inset 0 1px 0 rgba(255,255,255,.13);\n      -webkit-backdrop-filter: blur(15px) saturate(145%); backdrop-filter: blur(15px) saturate(145%);\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content[hidden],\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content[hidden],\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content[hidden] { display: none !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list {\n      grid-template-columns: repeat(2,minmax(0,1fr)); max-height: min(35dvh,310px); min-height: 90px; overflow-y: auto;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-footnote { display: none; }\n  }\n\n  @media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0,1.58fr) minmax(205px,.82fr); grid-template-rows: minmax(0,1fr);\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer { height: 100%; max-height: none; overflow: hidden; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer { height: 100%; max-height: none; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { animation: none !important; }\n  }\n  @media (hover: hover) and (pointer: fine) {\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle:hover {\n      border-color: rgba(197,239,255,.65) !important;\n      background: linear-gradient(135deg, rgba(105,188,222,.31), rgba(43,112,154,.39)) !important;\n    }\n  }\n\n\n\n  \/* V6 \u2014 menu localit\u00e0 a tendina vero: resta sovrapposto alla mappa e non allunga la pagina. *\/\n  @media (max-width: 840px) and (orientation: portrait), (max-width: 440px) {\n    #ctw-tiferno-widget .ctw-explorer {\n      position: relative;\n      z-index: 30;\n      display: flex;\n      min-width: 0;\n      flex-direction: column;\n      gap: 0;\n      overflow: visible;\n      padding: 0 10px 10px;\n      border: 0;\n      border-radius: 0;\n      background: transparent;\n      box-shadow: none;\n    }\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle {\n      min-height: 62px;\n      border-radius: 22px !important;\n      background: linear-gradient(135deg, rgba(42,125,164,.52), rgba(15,71,108,.72)) !important;\n      border-color: rgba(166,225,249,.50) !important;\n      -webkit-backdrop-filter: blur(13px) saturate(150%);\n      backdrop-filter: blur(13px) saturate(150%);\n      box-shadow: inset 0 1px 0 rgba(255,255,255,.19), 0 9px 24px rgba(0,17,31,.23) !important;\n    }\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) {\n      position: absolute;\n      z-index: 1500;\n      right: 10px;\n      bottom: calc(100% + 9px);\n      left: 10px;\n      display: flex;\n      min-width: 0;\n      min-height: 150px;\n      max-height: min(57dvh, 480px);\n      flex: 0 1 auto;\n      flex-direction: column;\n      overflow: hidden;\n      margin: 0;\n      padding: 12px;\n      border: 1px solid rgba(176,226,248,.48);\n      border-radius: 23px;\n      background: linear-gradient(145deg, rgba(6,39,63,.97), rgba(8,54,81,.965));\n      box-shadow: 0 16px 42px rgba(0,12,24,.43), inset 0 1px 0 rgba(240,250,255,.15);\n      -webkit-backdrop-filter: blur(16px) saturate(150%);\n      backdrop-filter: blur(16px) saturate(150%);\n      transform-origin: bottom center;\n    }\n    #ctw-tiferno-widget .ctw-explorer-content[hidden] { display: none !important; }\n    #ctw-tiferno-widget .ctw-explorer-header { flex: 0 0 auto; margin-bottom: 9px; }\n    #ctw-tiferno-widget .ctw-search-wrap { flex: 0 0 auto; }\n    #ctw-tiferno-widget .ctw-location-list {\n      display: grid;\n      grid-template-columns: repeat(2, minmax(0,1fr));\n      flex: 1 1 auto;\n      min-height: 0;\n      max-height: none;\n      overflow-x: hidden;\n      overflow-y: auto;\n      overscroll-behavior: contain;\n      -webkit-overflow-scrolling: touch;\n      scrollbar-width: thin;\n      padding-bottom: 5px;\n    }\n    #ctw-tiferno-widget .ctw-explorer-footnote { display: none; }\n    #ctw-tiferno-widget .ctw-location-card { min-height: 55px; }\n  }\n  @media (max-width: 360px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { max-height: min(60dvh, 440px); padding: 10px; }\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); gap: 6px; }\n    #ctw-tiferno-widget .ctw-location-card { min-height: 47px; }\n  }\n  @media (prefers-reduced-transparency: reduce) and (max-width: 840px) and (orientation: portrait),\n         (prefers-reduced-transparency: reduce) and (max-width: 440px) {\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { background: #082f4b; -webkit-backdrop-filter: none; backdrop-filter: none; }\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle { background: #145779 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }\n  }\n\n\n\n  \/* V7 \u2014 paesaggio molto stretto: lato mappa + elenco compatto da 450px; sotto, selettore flottante. *\/\n  @media (min-width: 450px) and (max-width: 559px) and (orientation: landscape) and (max-height: 560px) {\n    #ctw-tiferno-widget .ctw-header { padding: 7px 10px 6px; gap: 7px; }\n    #ctw-tiferno-widget .ctw-title-row { margin-top: 3px; gap: 7px; }\n    #ctw-tiferno-widget .ctw-title { font-size: 18px !important; }\n    #ctw-tiferno-widget .ctw-title-emblem { width: 29px; height: 29px; flex-basis: 29px; }\n    #ctw-tiferno-widget .ctw-subtitle { display: none; }\n    #ctw-tiferno-widget .ctw-header-badge { padding: 5px 7px; gap: 5px; }\n    #ctw-tiferno-widget .ctw-header-badge .ctw-badge-icon { display: none; }\n    #ctw-tiferno-widget .ctw-header-badge strong { font-size: 14px; }\n    #ctw-tiferno-widget .ctw-layout {\n      grid-template-columns: minmax(0,1.30fr) minmax(160px,.92fr);\n      grid-template-rows: minmax(0,1fr); gap: 6px; padding: 7px;\n    }\n    #ctw-tiferno-widget .ctw-map-panel { display: flex; min-height: 0; flex-direction: column; padding: 7px; }\n    #ctw-tiferno-widget .ctw-panel-heading { margin-bottom: 4px; }\n    #ctw-tiferno-widget .ctw-section-kicker { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-panel-title { font-size: 13px !important; }\n    #ctw-tiferno-widget .ctw-icon-button { width: 34px; height: 34px; flex-basis: 34px; }\n    #ctw-tiferno-widget .ctw-map-toolbar { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 4px; padding: 0; }\n    #ctw-tiferno-widget button.ctw-control-button { min-height: 34px; width: 100%; padding: 5px 7px; font-size: 9.5px !important; }\n    #ctw-tiferno-widget .ctw-layer-switch { width: 100%; min-height: 34px; padding: 2px; }\n    #ctw-tiferno-widget button.ctw-layer-button { min-height: 30px; padding: 4px 5px; gap: 3px; font-size: 9px !important; }\n    #ctw-tiferno-widget .ctw-layer-button svg { width: 12px; height: 12px; }\n    #ctw-tiferno-widget .ctw-map-frame { flex: 1 1 auto; height: clamp(145px, calc(100svh - 178px), 200px); min-height: 145px; }\n    #ctw-tiferno-widget .ctw-map-meta { padding-top: 4px; }\n    #ctw-tiferno-widget .ctw-map-status, #ctw-tiferno-widget .ctw-map-legend { font-size: 8px; }\n    #ctw-tiferno-widget .ctw-explorer { display: flex; height: clamp(205px, calc(100svh - 82px), 255px); min-height: 0; max-height: none; flex-direction: column; overflow: hidden; padding: 7px; }\n    #ctw-tiferno-widget .ctw-explorer-content { display: flex; min-height: 0; overflow: hidden; }\n    #ctw-tiferno-widget .ctw-explorer-header { margin-bottom: 6px; }\n    #ctw-tiferno-widget .ctw-panel-title { font-size: 13px !important; }\n    #ctw-tiferno-widget .ctw-explorer-description, #ctw-tiferno-widget .ctw-explorer-footnote { display: none; }\n    #ctw-tiferno-widget .ctw-count-pill { font-size: 8px; padding: 5px 7px; }\n    #ctw-tiferno-widget .ctw-search-wrap { min-height: 34px; }\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); flex: 1 1 auto; min-height: 0; max-height: none; margin-top: 5px; padding: 3px 3px 5px 0; gap: 4px; overflow-y: auto; }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 38px; padding: 4px 6px; border-radius: 12px !important; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 25px; height: 25px; flex-basis: 25px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 10px; }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 8.5px; }\n    #ctw-tiferno-widget .ctw-footer { display: none; }\n    #ctw-tiferno-widget .ctw-mobile-location-toggle { display: none !important; }\n  }\n  @media (min-width: 450px) and (max-width: 559px) and (orientation: landscape) and (max-height: 560px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0,1.30fr) minmax(160px,.92fr);\n      grid-template-rows: minmax(0,1fr); gap: 6px; padding: 7px;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer { height: 100%; max-height: none; overflow: hidden; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content { display: flex; min-height: 0; overflow: hidden; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }\n  }\n  @media (max-width: 440px) and (orientation: landscape) and (max-height: 480px) {\n    #ctw-tiferno-widget .ctw-header { padding: 7px 11px 6px; }\n    #ctw-tiferno-widget .ctw-title { font-size: 18px !important; }\n    #ctw-tiferno-widget .ctw-subtitle, #ctw-tiferno-widget .ctw-footer { display: none; }\n    #ctw-tiferno-widget .ctw-layout { padding: 8px; gap: 7px; }\n    #ctw-tiferno-widget .ctw-map-panel { padding: 9px; }\n    #ctw-tiferno-widget .ctw-map-frame { height: clamp(155px, calc(100svh - 188px), 205px); min-height: 150px; }\n    #ctw-tiferno-widget .ctw-explorer { padding: 0 8px 8px; }\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle { min-height: 52px; }\n  }\n  @media (max-width: 440px) and (orientation: landscape) and (max-height: 480px) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-header,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-header { padding: 5px 10px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-subtitle,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-subtitle { display: none; }\n  }\n\n\n\n  \/* V8 \u2014 tablet e iPad in verticale: selettore compatto, senza colonna laterale stretta. *\/\n  @media (max-width: 1024px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-layout {\n      grid-template-columns: minmax(0,1fr);\n      grid-template-rows: auto auto;\n      align-items: stretch;\n      gap: 11px;\n      padding: 14px;\n    }\n    #ctw-tiferno-widget .ctw-map-panel {\n      display: flex;\n      min-width: 0;\n      min-height: 0;\n      flex-direction: column;\n      padding: 14px;\n    }\n    #ctw-tiferno-widget .ctw-map-frame {\n      height: clamp(330px, 46svh, 510px);\n      min-height: 300px;\n    }\n    #ctw-tiferno-widget .ctw-explorer {\n      position: relative;\n      z-index: 30;\n      display: flex;\n      min-width: 0;\n      flex-direction: column;\n      gap: 0;\n      overflow: visible;\n      padding: 0 10px 10px;\n      border: 0;\n      border-radius: 0;\n      background: transparent;\n      box-shadow: none;\n    }\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle { display: flex !important; }\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) {\n      position: absolute;\n      z-index: 1500;\n      right: 10px;\n      bottom: calc(100% + 9px);\n      left: 10px;\n      display: flex;\n      min-width: 0;\n      min-height: 150px;\n      max-height: min(57dvh, 500px);\n      flex: 0 1 auto;\n      flex-direction: column;\n      overflow: hidden;\n      margin: 0;\n      padding: 13px;\n      border: 1px solid rgba(176,226,248,.48);\n      border-radius: 23px;\n      background: linear-gradient(145deg, rgba(6,39,63,.97), rgba(8,54,81,.965));\n      box-shadow: 0 16px 42px rgba(0,12,24,.43), inset 0 1px 0 rgba(240,250,255,.15);\n      -webkit-backdrop-filter: blur(16px) saturate(150%);\n      backdrop-filter: blur(16px) saturate(150%);\n      transform-origin: bottom center;\n    }\n    #ctw-tiferno-widget .ctw-explorer-content[hidden] { display: none !important; }\n    #ctw-tiferno-widget .ctw-location-list {\n      display: grid;\n      grid-template-columns: repeat(2,minmax(0,1fr));\n      flex: 1 1 auto;\n      min-height: 0;\n      max-height: none;\n      overflow-x: hidden;\n      overflow-y: auto;\n      overscroll-behavior: contain;\n      -webkit-overflow-scrolling: touch;\n      scrollbar-width: thin;\n      padding-bottom: 5px;\n    }\n    #ctw-tiferno-widget .ctw-explorer-footnote { display: none; }\n  }\n\n  \/* In fullscreen verticale, il pannello delle localit\u00e0 resta ancorato al selettore flottante. *\/\n  @media (max-width: 1024px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-layout,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-layout {\n      grid-template-columns: minmax(0,1fr);\n      grid-template-rows: minmax(0,1fr) auto;\n      gap: 7px;\n      overflow: hidden;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-panel,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-panel { min-height: 0; padding: 9px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-map-frame,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-map-frame { flex: 1 1 0; min-height: 0; height: auto; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer {\n      position: relative;\n      display: flex;\n      min-height: 0;\n      flex: 0 0 auto;\n      overflow: visible;\n      padding: 0 8px max(8px, env(safe-area-inset-bottom));\n      border: 0;\n      background: transparent;\n      box-shadow: none;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback button.ctw-mobile-location-toggle { min-height: 56px; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content:not([hidden]),\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content:not([hidden]),\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content:not([hidden]) {\n      position: absolute;\n      z-index: 1500;\n      right: 8px;\n      bottom: calc(100% + 8px);\n      left: 8px;\n      display: flex;\n      max-height: min(56dvh, 520px);\n      min-height: 0;\n      overflow: hidden;\n      margin: 0;\n      padding: 11px;\n      border: 1px solid rgba(179,229,249,.46);\n      border-radius: 22px;\n      background: rgba(5,31,51,.97);\n      box-shadow: 0 15px 40px rgba(0,11,23,.42), inset 0 1px 0 rgba(255,255,255,.13);\n      -webkit-backdrop-filter: blur(15px) saturate(145%);\n      backdrop-filter: blur(15px) saturate(145%);\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content[hidden],\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content[hidden],\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content[hidden] { display: none !important; }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list {\n      grid-template-columns: repeat(2,minmax(0,1fr));\n      max-height: min(35dvh, 330px);\n      min-height: 90px;\n      overflow-y: auto;\n    }\n    #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-footnote,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-footnote { display: none; }\n  }\n\n  \/* Vecchi telefoni molto stretti: schede a colonna unica per evitare testo compresso. *\/\n  @media (max-width: 360px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { padding: 9px; }\n    #ctw-tiferno-widget .ctw-location-list { grid-template-columns: minmax(0,1fr); gap: 6px; }\n    #ctw-tiferno-widget .ctw-location-card { min-height: 48px; }\n  }\n\n  \/* I target tattili restano comodi anche nei layout landscape molto compatti. *\/\n  @media (hover: none) and (pointer: coarse) {\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget button.ctw-layer-button,\n    #ctw-tiferno-widget button.ctw-location-card,\n    #ctw-tiferno-widget button.ctw-icon-button,\n    #ctw-tiferno-widget .leaflet-control-zoom a { min-height: 44px !important; }\n    #ctw-tiferno-widget button.ctw-icon-button,\n    #ctw-tiferno-widget .leaflet-control-zoom a { width: 44px !important; height: 44px !important; }\n  }\n\n  html.ctw-widget-scroll-locked,\n  body.ctw-widget-scroll-locked {\n    overflow: hidden !important;\n    overscroll-behavior: none !important;\n  }\n  @media (prefers-reduced-transparency: reduce) {\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback { background: #082d49; }\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content:not([hidden]) {\n      background: #082f4b;\n      -webkit-backdrop-filter: none;\n      backdrop-filter: none;\n    }\n  }\n\n  \/* Nomi completi nel menu mobile: niente ellissi sulle localit\u00e0 pi\u00f9 lunghe. *\/\n  @media (max-width: 1024px) and (orientation: portrait) {\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 66px; gap: 6px; padding: 7px 7px; }\n    #ctw-tiferno-widget .ctw-location-icon { width: 27px; height: 27px; flex-basis: 27px; }\n    #ctw-tiferno-widget .ctw-location-copy { min-width: 0; }\n    #ctw-tiferno-widget .ctw-location-copy strong {\n      display: -webkit-box; overflow: visible; white-space: normal; text-overflow: clip;\n      -webkit-box-orient: vertical; -webkit-line-clamp: 3;\n      font-size: 11px; line-height: 1.12;\n    }\n    #ctw-tiferno-widget .ctw-location-copy small { font-size: 9.5px; white-space: nowrap; }\n  }\n  @media (max-width: 360px) and (orientation: portrait) {\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 54px; padding: 7px 9px; }\n    #ctw-tiferno-widget .ctw-location-copy strong { font-size: 12px; -webkit-line-clamp: 2; }\n  }\n\n\n  \/* V9 \u2014 compattazione della testata, fullscreen sempre accessibile e menu mobile con fondale dim. *\/\n  #ctw-tiferno-widget .ctw-shell { position: relative; }\n  #ctw-tiferno-widget .ctw-header { align-items: center; gap: 12px; padding-top: 17px; padding-bottom: 16px; }\n  #ctw-tiferno-widget .ctw-heading-copy { flex: 1 1 auto; min-width: 0; }\n  #ctw-tiferno-widget .ctw-title-row { margin-top: 5px; }\n  #ctw-tiferno-widget .ctw-subtitle { display: none !important; }\n  #ctw-tiferno-widget .ctw-header-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; }\n  #ctw-tiferno-widget .ctw-header-badge { min-height: 43px; padding: 7px 12px; border-radius: 999px; }\n  #ctw-tiferno-widget .ctw-header-badge .ctw-badge-icon { border-radius: 50%; }\n  #ctw-tiferno-widget button.ctw-icon-button.ctw-expand-button {\n    width: 46px !important; height: 46px !important; min-width: 46px; min-height: 46px !important;\n    flex: 0 0 46px; border: 1px solid rgba(184,231,250,.42) !important;\n    border-radius: 50% !important; color: #effaff !important;\n    background: linear-gradient(145deg, rgba(84,164,202,.30), rgba(24,83,121,.42)) !important;\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 13px rgba(0,14,27,.20) !important;\n  }\n  #ctw-tiferno-widget button.ctw-icon-button.ctw-expand-button svg { width: 19px; height: 19px; }\n  #ctw-tiferno-widget .ctw-panel-heading { display: none !important; }\n  #ctw-tiferno-widget .ctw-map-toolbar { margin-top: 0; padding-top: 0; }\n\n  \/* Pi\u00f9 coerenza nelle forme: capsule per i comandi, card morbide per le localit\u00e0. *\/\n  #ctw-tiferno-widget button.ctw-control-button,\n  #ctw-tiferno-widget button.ctw-layer-button,\n  #ctw-tiferno-widget button.ctw-mobile-location-toggle,\n  #ctw-tiferno-widget button.ctw-retry-button,\n  #ctw-tiferno-widget .ctw-search-wrap { border-radius: 999px !important; }\n  #ctw-tiferno-widget .ctw-map-panel,\n  #ctw-tiferno-widget .ctw-explorer { border-radius: 27px; }\n  #ctw-tiferno-widget .ctw-map-frame { border-radius: 21px; }\n  #ctw-tiferno-widget button.ctw-location-card { border-radius: 20px !important; }\n  #ctw-tiferno-widget .ctw-location-icon { border-radius: 13px; }\n  #ctw-tiferno-widget .ctw-layer-switch { border-radius: 999px; }\n  #ctw-tiferno-widget .ctw-count-pill { border-radius: 999px; }\n\n  \/* Il fondale copre il contenuto del widget, non usa blur e intercetta il tocco fuori dal menu. *\/\n  #ctw-tiferno-widget .ctw-menu-scrim {\n    position: absolute; inset: 0; z-index: 60; display: block;\n    width: 100%; height: 100%; margin: 0; padding: 0;\n    border: 0; border-radius: inherit;\n    background: rgba(0, 8, 19, .46);\n    opacity: 0; visibility: hidden; pointer-events: none;\n    cursor: default; touch-action: manipulation;\n    transition: opacity .18s ease, visibility 0s linear .18s;\n  }\n  #ctw-tiferno-widget .ctw-menu-scrim[hidden] { display: none !important; }\n  #ctw-tiferno-widget .ctw-menu-scrim.is-visible {\n    opacity: 1; visibility: visible; pointer-events: auto;\n    transition: opacity .18s ease, visibility 0s;\n  }\n\n  \/* Verticals: il selettore \u00e8 il solo pannello in primo piano; il resto viene attenuato. *\/\n  @media (max-width: 1024px) and (orientation: portrait), (max-width: 440px) {\n    #ctw-tiferno-widget .ctw-header { padding: 13px 14px 12px; gap: 8px; }\n    #ctw-tiferno-widget .ctw-title-row { gap: 8px; margin-top: 4px; }\n    #ctw-tiferno-widget .ctw-title { font-size: clamp(20px, 5.6vw, 27px) !important; }\n    #ctw-tiferno-widget .ctw-title-emblem { width: 34px; height: 34px; flex-basis: 34px; border-radius: 12px; }\n    #ctw-tiferno-widget .ctw-header-actions { gap: 6px; }\n    #ctw-tiferno-widget .ctw-header-badge { min-height: 39px; padding: 6px 9px; gap: 6px; }\n    #ctw-tiferno-widget .ctw-header-badge .ctw-badge-icon { display: none; }\n    #ctw-tiferno-widget .ctw-header-badge strong { font-size: 14px; }\n    #ctw-tiferno-widget .ctw-header-badge small { font-size: 9px; }\n    #ctw-tiferno-widget button.ctw-icon-button.ctw-expand-button { width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px !important; flex-basis: 44px; }\n    #ctw-tiferno-widget .ctw-layout { gap: 8px; padding: 9px; }\n    #ctw-tiferno-widget .ctw-map-panel { padding: 10px; border-radius: 23px; }\n    #ctw-tiferno-widget .ctw-map-frame { border-radius: 18px; }\n    #ctw-tiferno-widget .ctw-explorer { position: relative; z-index: 80 !important; }\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle {\n      min-height: 58px; padding: 8px 11px; border-radius: 999px !important;\n      border-color: rgba(184,230,249,.58) !important;\n      background: linear-gradient(135deg, rgba(28,104,145,.93), rgba(8,55,88,.97)) !important;\n      box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 7px 19px rgba(0,13,27,.23) !important;\n    }\n    #ctw-tiferno-widget .ctw-mobile-toggle-icon { width: 37px; height: 37px; border-radius: 50%; }\n    #ctw-tiferno-widget .ctw-mobile-toggle-copy strong { font-size: 13px; }\n    #ctw-tiferno-widget .ctw-mobile-toggle-copy small { font-size: 10.5px; }\n    #ctw-tiferno-widget .ctw-mobile-toggle-chevron { width: 29px; height: 29px; }\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) {\n      z-index: 90 !important;\n      max-height: min(62dvh, 510px);\n      border-radius: 26px;\n      border-color: rgba(179,229,249,.56);\n      background: linear-gradient(145deg, rgba(5,36,60,.985), rgba(7,52,80,.985) 58%, rgba(9,61,91,.98));\n      box-shadow: 0 18px 46px rgba(0,8,20,.52), inset 0 1px 0 rgba(241,250,255,.17), 0 0 0 1px rgba(108,194,228,.10);\n      -webkit-backdrop-filter: none !important;\n      backdrop-filter: none !important;\n      animation: ctw-menu-pop .18s cubic-bezier(.2,.75,.25,1) both;\n      transform-origin: bottom center;\n    }\n    #ctw-tiferno-widget .ctw-explorer-header { margin-bottom: 10px; }\n    #ctw-tiferno-widget .ctw-explorer-header .ctw-section-kicker,\n    #ctw-tiferno-widget .ctw-explorer-description { display: none !important; }\n    #ctw-tiferno-widget .ctw-panel-title { font-size: 16px !important; }\n    #ctw-tiferno-widget .ctw-search-wrap { min-height: 44px; border-radius: 999px !important; }\n    #ctw-tiferno-widget .ctw-location-list { gap: 7px; }\n    #ctw-tiferno-widget button.ctw-location-card { min-height: 56px; border-radius: 18px !important; }\n    #ctw-tiferno-widget .ctw-menu-scrim { z-index: 60; }\n  }\n  @keyframes ctw-menu-pop {\n    from { opacity: 0; transform: translate3d(0, 7px, 0) scale(.985); }\n    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }\n  }\n\n  \/* Smartphone portrait: barra com panoramica e livelli compatti, senza far crescere la mappa. *\/\n  @media (max-width: 480px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-map-toolbar {\n      display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);\n      align-items: center; gap: 5px; padding: 0; margin-bottom: 8px;\n    }\n    #ctw-tiferno-widget button.ctw-control-button {\n      min-width: 0; min-height: 43px; justify-content: center; gap: 6px;\n      padding: 7px 8px; font-size: 10px !important; white-space: normal;\n    }\n    #ctw-tiferno-widget button.ctw-control-button svg { width: 14px; height: 14px; flex-basis: 14px; }\n    #ctw-tiferno-widget .ctw-layer-switch { min-width: 0; min-height: 43px; gap: 2px; padding: 3px; }\n    #ctw-tiferno-widget button.ctw-layer-button { min-width: 0; min-height: 35px; gap: 4px; padding: 6px 5px; font-size: 9.5px !important; }\n    #ctw-tiferno-widget .ctw-layer-button svg { width: 13px; height: 13px; flex-basis: 13px; }\n  }\n  @media (max-width: 360px) and (orientation: portrait) {\n    #ctw-tiferno-widget .ctw-map-toolbar { grid-template-columns: minmax(0,1fr); }\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget .ctw-layer-switch { width: 100%; }\n    #ctw-tiferno-widget button.ctw-control-button { min-height: 42px; }\n    #ctw-tiferno-widget .ctw-layer-switch { justify-content: center; }\n    #ctw-tiferno-widget button.ctw-layer-button { font-size: 10px !important; }\n  }\n\n  \/* iOS Safari e vecchi telefoni: vetro ottenuto con tinta\/contorno, niente blur sul pannello mobile. *\/\n  @media (hover: none) and (pointer: coarse) {\n    #ctw-tiferno-widget .ctw-layer-switch,\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) {\n      -webkit-backdrop-filter: none !important;\n      backdrop-filter: none !important;\n    }\n    #ctw-tiferno-widget button.ctw-control-button,\n    #ctw-tiferno-widget button.ctw-layer-button,\n    #ctw-tiferno-widget button.ctw-mobile-location-toggle,\n    #ctw-tiferno-widget button.ctw-icon-button,\n    #ctw-tiferno-widget button.ctw-location-card { touch-action: manipulation; }\n  }\n  @media (hover: hover) and (pointer: fine) {\n    #ctw-tiferno-widget button.ctw-icon-button.ctw-expand-button:hover {\n      border-color: rgba(210,245,255,.82) !important;\n      background: linear-gradient(145deg, rgba(91,187,226,.43), rgba(25,99,143,.56)) !important;\n      transform: translateY(-1px);\n    }\n  }\n  @media (prefers-reduced-motion: reduce) {\n    #ctw-tiferno-widget .ctw-menu-scrim,\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { animation: none !important; transition: none !important; }\n  }\n  @media (prefers-reduced-transparency: reduce) {\n    #ctw-tiferno-widget .ctw-menu-scrim { background: rgba(0,7,16,.72); }\n    #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { background: #082f4b; }\n  }\n  @media (max-height: 560px) and (orientation: landscape) {\n    #ctw-tiferno-widget .ctw-header { padding-top: 7px; padding-bottom: 7px; }\n    #ctw-tiferno-widget button.ctw-icon-button.ctw-expand-button { width: 40px !important; height: 40px !important; min-width: 40px; min-height: 40px !important; flex-basis: 40px; }\n  }\n\n  \/* Fallback per i browser meno recenti che non conoscono dvh\/svh. *\/\n  @supports not (height: 1svh) {\n    @media (max-width: 1024px) and (orientation: portrait) {\n      #ctw-tiferno-widget .ctw-map-frame { height: clamp(330px, 46vh, 510px) !important; }\n      #ctw-tiferno-widget .ctw-explorer-content:not([hidden]) { max-height: min(62vh, 510px) !important; }\n      #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-explorer-content:not([hidden]),\n      #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-explorer-content:not([hidden]),\n      #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-explorer-content:not([hidden]) { max-height: min(56vh, 520px) !important; }\n      #ctw-tiferno-widget .ctw-shell:fullscreen .ctw-location-list,\n      #ctw-tiferno-widget .ctw-shell:-webkit-full-screen .ctw-location-list,\n      #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback .ctw-location-list { max-height: min(35vh, 330px) !important; }\n    }\n    @media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {\n      #ctw-tiferno-widget .ctw-map-frame { height: clamp(205px, 58vh, 330px) !important; }\n      #ctw-tiferno-widget .ctw-explorer { height: clamp(220px, calc(100vh - 105px), 360px) !important; }\n    }\n    @media (min-width: 450px) and (max-width: 559px) and (orientation: landscape) and (max-height: 560px) {\n      #ctw-tiferno-widget .ctw-map-frame { height: clamp(145px, calc(100vh - 178px), 200px) !important; }\n      #ctw-tiferno-widget .ctw-explorer { height: clamp(205px, calc(100vh - 82px), 255px) !important; }\n    }\n    @media (max-width: 440px) and (orientation: landscape) and (max-height: 480px) {\n      #ctw-tiferno-widget .ctw-map-frame { height: clamp(155px, calc(100vh - 188px), 205px) !important; }\n    }\n  }\n  @supports not (height: 1dvh) {\n    #ctw-tiferno-widget .ctw-shell:fullscreen,\n    #ctw-tiferno-widget .ctw-shell:-webkit-full-screen,\n    #ctw-tiferno-widget .ctw-shell.ctw-expanded-fallback { max-height: 100vh; }\n  }\n\n<\/style>\n\n<script>\n(function () {\n  'use strict';\n\n  const ROOT_ID = 'ctw-tiferno-widget';\n  const root = document.getElementById(ROOT_ID);\n  if (!root || root.dataset.ctwInitialized === 'true') return;\n  root.dataset.ctwInitialized = 'true';\n\n  \/\/ Archivio unico: tutti i marker, l'elenco e le schede sono generati da questi dati.\n  const LOCATIONS = [\n    { id: 'monte-falcone', name: 'Monte Falcone', altitude: 859, lat: 43.540444, lng: 12.307680, type: 'mountain' },\n    { id: 'monte-valmeronte', name: 'Monte Valmeronte', altitude: 978, lat: 43.562135, lng: 12.323524, type: 'mountain' },\n    { id: 'bocca-serriola', name: 'Valico di Bocca Serriola', altitude: 730, lat: 43.515858, lng: 12.357209, type: 'pass' },\n    { id: 'fraccano', name: 'Fraccano', altitude: 542, lat: 43.503561, lng: 12.306320, type: 'village' },\n    { id: 'vallurbana', name: 'Vallurbana', altitude: 540, lat: 43.533411, lng: 12.279407, type: 'village' },\n    { id: 'monte-piancordino', name: 'Monte Piancordino', altitude: 855, lat: 43.552390, lng: 12.343294, type: 'mountain' },\n    { id: 'monte-ruperto', name: 'Enclave Monte Ruperto', altitude: 540, lat: 43.602386, lng: 12.422758, type: 'village' },\n    { id: 'catenaccio', name: 'Catenaccio', altitude: 971, lat: 43.565356, lng: 12.308372, type: 'mountain' },\n    { id: 'monte-moriccie', name: 'Monte Moriccie', altitude: 966, lat: 43.574919, lng: 12.306960, type: 'mountain' },\n    { id: 'colle-gagliardelli', name: 'Colle Gagliardelli', altitude: 806, lat: 43.587607, lng: 12.360728, type: 'mountain' },\n    { id: 'camagiuri', name: 'Camagiuri', altitude: 793, lat: 43.555157, lng: 12.291761, type: 'village' },\n    { id: 'monte-dieci', name: 'Monte Dieci', altitude: 905, lat: 43.565242, lng: 12.336775, type: 'mountain' },\n    { id: 'bocca-dei-coppi', name: 'Bocca dei Coppi', altitude: 893, lat: 43.561051, lng: 12.313056, type: 'pass' },\n    { id: 'la-villa', name: 'La Villa', altitude: 620, lat: 43.603993, lng: 12.356737, type: 'village' },\n    { id: 'monte-castel-leone', name: 'Monte Castel Leone', altitude: 819, lat: 43.516999, lng: 12.351724, type: 'mountain' }\n  ];\n\n  const shellElement = root.querySelector('.ctw-shell');\n  const mapElement = root.querySelector('[data-map]');\n  const mapPanel = root.querySelector('[data-map-panel]');\n  const explorerElement = root.querySelector('.ctw-explorer');\n  const mobileToggle = root.querySelector('[data-action=\"toggle-locations\"]');\n  const explorerContent = root.querySelector('[data-explorer-content]');\n  const mobileCurrentLabel = root.querySelector('[data-mobile-current]');\n  const menuScrim = root.querySelector('[data-action=\"close-locations\"]');\n  const statusElement = root.querySelector('[data-status]');\n  const loadingElement = root.querySelector('[data-loading]');\n  const errorElement = root.querySelector('[data-error]');\n  const listElement = root.querySelector('[data-location-list]');\n  const searchElement = root.querySelector('[data-search]');\n  const countElement = root.querySelector('[data-count]');\n  const noResultsElement = root.querySelector('[data-no-results]');\n  const selectedPanel = root.querySelector('[data-selected-panel]');\n  const selectedName = root.querySelector('[data-selected-name]');\n  const selectedAltitude = root.querySelector('[data-selected-altitude]');\n  const openOsmLink = root.querySelector('[data-open-osm]');\n  const layerButtons = Array.from(root.querySelectorAll('[data-layer]'));\n  const retryButton = root.querySelector('[data-action=\"retry\"]');\n  const reducedMotion = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n  let map = null;\n  let markerById = Object.create(null);\n  let activeId = null;\n  let initialized = false;\n  let loadingPromise = null;\n  let tileErrorShown = false;\n  let currentLayer = null;\n  let selectedLayerKey = 'topo';\n  let expandedFallback = false;\n  let compactExplorerMode = null;\n  let explorerIsOpen = false;\n  let scrimHideTimer = 0;\n  let fallbackScrollY = 0;\n  let fallbackScrollLocked = false;\n  const compactExplorerQuery = window.matchMedia ? window.matchMedia('(max-width: 1024px) and (orientation: portrait), (max-width: 440px)') : null;\n\n  const SVG_MOUNTAIN = '<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m3 19 6.2-10 3.1 4.5 2.1-3.1L21 19H3Z\"\/><path d=\"m8.1 10.8 1.1-1.8 1.3 1.9\"\/><\/svg>';\n  const SVG_PIN = '<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M19 10.2c0 5-7 10.3-7 10.3S5 15.2 5 10.2a7 7 0 1 1 14 0Z\"\/><circle cx=\"12\" cy=\"10\" r=\"2.2\"\/><\/svg>';\n  const SVG_ROAD = '<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M8 3 4 21M16 3l4 18M12 4v3m0 3v3m0 3v3\"\/><\/svg>';\n\n  function escapeHtml(value) {\n    return String(value).replace(\/[&<>\"']\/g, function (character) {\n      return ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' })[character];\n    });\n  }\n\n  function iconFor(type) {\n    if (type === 'pass') return SVG_ROAD;\n    if (type === 'village') return SVG_PIN;\n    return SVG_MOUNTAIN;\n  }\n\n  function setStatus(message) {\n    if (statusElement) statusElement.textContent = message;\n  }\n\n  function isWidgetFullscreen() {\n    return expandedFallback || document.fullscreenElement === shellElement || document.webkitFullscreenElement === shellElement;\n  }\n\n  function setExplorerOpen(open) {\n    explorerIsOpen = !!open;\n    if (compactExplorerMode) {\n      explorerContent.hidden = !explorerIsOpen;\n      mobileToggle.setAttribute('aria-expanded', explorerIsOpen ? 'true' : 'false');\n      explorerElement.classList.toggle('is-open', explorerIsOpen);\n    } else {\n      explorerContent.hidden = false;\n      mobileToggle.setAttribute('aria-expanded', 'false');\n      explorerElement.classList.remove('is-open');\n    }\n\n    \/\/ Overlay con sola opacit\u00e0: evita il blur full-screen, pi\u00f9 costoso sui browser mobile.\n    if (menuScrim) {\n      window.clearTimeout(scrimHideTimer);\n      if (compactExplorerMode && explorerIsOpen) {\n        menuScrim.hidden = false;\n        window.requestAnimationFrame(function () { menuScrim.classList.add('is-visible'); });\n      } else {\n        menuScrim.classList.remove('is-visible');\n        if (!menuScrim.hidden) {\n          scrimHideTimer = window.setTimeout(function () {\n            if (!explorerIsOpen || !compactExplorerMode) menuScrim.hidden = true;\n          }, 190);\n        }\n      }\n    }\n  }\n\n  function updateMobileCurrentLabel() {\n    if (!mobileCurrentLabel) return;\n    if (!activeId) {\n      mobileCurrentLabel.textContent = 'Tutte le ' + LOCATIONS.length + ' localit\u00e0';\n      return;\n    }\n    const location = LOCATIONS.find(function (item) { return item.id === activeId; });\n    mobileCurrentLabel.textContent = location ? location.name + ' \u00b7 ' + location.altitude + ' m' : 'Scegli una localit\u00e0';\n  }\n\n  function syncExplorerMode() {\n    const isCompact = compactExplorerQuery\n      ? compactExplorerQuery.matches\n      : (window.innerWidth <= 680 && window.innerHeight > window.innerWidth) || window.innerWidth <= 540;\n\n    if (compactExplorerMode === null || isCompact !== compactExplorerMode) {\n      compactExplorerMode = isCompact;\n      \/\/ In verticale si parte dalla mappa; ruotando in orizzontale torna visibile la colonna completa.\n      explorerIsOpen = !isCompact;\n    }\n\n    mobileToggle.hidden = !isCompact;\n    setExplorerOpen(isCompact ? explorerIsOpen : true);\n    updateMobileCurrentLabel();\n  }\n\n  function toggleExplorerMenu() {\n    if (!compactExplorerMode) return;\n    setExplorerOpen(!explorerIsOpen);\n    if (explorerIsOpen && !isWidgetFullscreen()) {\n      window.setTimeout(function () {\n        const rect = explorerElement.getBoundingClientRect();\n        if (rect.bottom > window.innerHeight) mobileToggle.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'nearest' });\n      }, 60);\n    }\n  }\n\n  function updateOverviewButton() {\n    const button = root.querySelector('.ctw-overview-button');\n    const isActive = activeId === null;\n    if (!button) return;\n    button.classList.toggle('is-active', isActive);\n    button.setAttribute('aria-pressed', isActive ? 'true' : 'false');\n  }\n\n  function setLoading(isLoading) {\n    if (loadingElement) loadingElement.hidden = !isLoading;\n    if (errorElement) errorElement.hidden = true;\n  }\n\n  function showError() {\n    if (loadingElement) loadingElement.hidden = true;\n    if (errorElement) errorElement.hidden = false;\n    setStatus('Cartografia non disponibile. Puoi comunque consultare le localit\u00e0.');\n  }\n\n  function ensureLeafletCss() {\n    if (document.getElementById('ctw-leaflet-css') || document.querySelector('link[href*=\"leaflet.css\"]')) return;\n    const link = document.createElement('link');\n    link.id = 'ctw-leaflet-css';\n    link.rel = 'stylesheet';\n    link.href = 'https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.css';\n    link.integrity = 'sha256-p4NxAoJBhIIN+hmNHrzRCf9tD\/miZyoHS5obTRR9BMY=';\n    link.crossOrigin = 'anonymous';\n    document.head.appendChild(link);\n  }\n\n  function ensureLeaflet() {\n    ensureLeafletCss();\n    if (window.L && typeof window.L.map === 'function') return Promise.resolve(window.L);\n    if (loadingPromise) return loadingPromise;\n\n    loadingPromise = new Promise(function (resolve, reject) {\n      let script = document.getElementById('ctw-leaflet-js');\n      if (script) {\n        if (window.L && typeof window.L.map === 'function') return resolve(window.L);\n        script.addEventListener('load', function () {\n          if (window.L && typeof window.L.map === 'function') resolve(window.L);\n          else reject(new Error('Leaflet non disponibile dopo il caricamento'));\n        }, { once: true });\n        script.addEventListener('error', function () { reject(new Error('Impossibile caricare Leaflet')); }, { once: true });\n        return;\n      }\n      script = document.createElement('script');\n      script.id = 'ctw-leaflet-js';\n      script.src = 'https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.js';\n      script.async = true;\n      script.integrity = 'sha256-20nQCchB9co0qIjJZRGuk2\/Z9VM+kNiyxNV1lvTlZBo=';\n      script.crossOrigin = 'anonymous';\n      script.onload = function () {\n        if (window.L && typeof window.L.map === 'function') resolve(window.L);\n        else reject(new Error('Leaflet non disponibile dopo il caricamento'));\n      };\n      script.onerror = function () { script.remove(); reject(new Error('Impossibile caricare Leaflet')); };\n      document.head.appendChild(script);\n    }).catch(function (error) {\n      loadingPromise = null;\n      throw error;\n    });\n    return loadingPromise;\n  }\n\n  function renderLocationCards(filter) {\n    const query = (filter || '').trim().toLocaleLowerCase('it');\n    const matches = LOCATIONS.filter(function (location) {\n      return location.name.toLocaleLowerCase('it').includes(query) || String(location.altitude).includes(query);\n    });\n\n    listElement.innerHTML = '';\n    const fragment = document.createDocumentFragment();\n    matches.forEach(function (location) {\n      const button = document.createElement('button');\n      button.type = 'button';\n      button.className = 'ctw-location-card';\n      button.dataset.locationId = location.id;\n      button.setAttribute('aria-pressed', location.id === activeId ? 'true' : 'false');\n      button.setAttribute('aria-label', location.name + ', ' + location.altitude + ' metri sul livello del mare. Mostra sulla mappa.');\n      button.innerHTML =\n        '<span class=\"ctw-location-icon\">' + iconFor(location.type) + '<\/span>' +\n        '<span class=\"ctw-location-copy\"><strong>' + escapeHtml(location.name) + '<\/strong><small>' + location.altitude + ' m s.l.m.<\/small><\/span>' +\n        '<span class=\"ctw-location-arrow\" aria-hidden=\"true\">\u203a<\/span>';\n      button.addEventListener('click', function () { selectLocation(location.id, true); });\n      fragment.appendChild(button);\n    });\n    listElement.appendChild(fragment);\n    countElement.textContent = matches.length + ' \/ ' + LOCATIONS.length;\n    noResultsElement.hidden = matches.length !== 0;\n  }\n\n  function updateActiveCard() {\n    const buttons = listElement.querySelectorAll('[data-location-id]');\n    buttons.forEach(function (button) {\n      const selected = button.dataset.locationId === activeId;\n      button.setAttribute('aria-pressed', selected ? 'true' : 'false');\n    });\n  }\n\n  function createMarkerIcon(L, active, type) {\n    const markerGlyph = type === 'pass' ? SVG_ROAD : (type === 'village' ? SVG_PIN : SVG_MOUNTAIN);\n    return L.divIcon({\n      className: 'ctw-div-marker' + (active ? ' ctw-marker-active' : ''),\n      html: '<span class=\"ctw-marker-pin\" aria-hidden=\"true\">' + markerGlyph + '<\/span>',\n      iconSize: [38, 44],\n      iconAnchor: [19, 40],\n      popupAnchor: [0, -37]\n    });\n  }\n\n  function setMarkerActive(id) {\n    if (!map) return;\n    LOCATIONS.forEach(function (location) {\n      const marker = markerById[location.id];\n      const element = marker && marker.getElement ? marker.getElement() : null;\n      if (element) element.classList.toggle('ctw-marker-active', location.id === id);\n    });\n  }\n\n  function openPopupFor(id) {\n    const marker = markerById[id];\n    if (!marker) return;\n    marker.openPopup();\n  }\n\n  function showSelectedDetails(location) {\n    selectedPanel.hidden = false;\n    selectedName.textContent = location.name;\n    selectedAltitude.textContent = location.altitude + ' m s.l.m. \u00b7 ' + location.lat.toFixed(6) + ', ' + location.lng.toFixed(6);\n    const lat = location.lat.toFixed(6);\n    const lng = location.lng.toFixed(6);\n    openOsmLink.href = 'https:\/\/www.openstreetmap.org\/?mlat=' + lat + '&mlon=' + lng + '#map=15\/' + lat + '\/' + lng;\n  }\n\n  function selectLocation(id, fromList) {\n    const location = LOCATIONS.find(function (item) { return item.id === id; });\n    if (!location) return;\n    activeId = id;\n    updateActiveCard();\n    updateMobileCurrentLabel();\n    if (fromList && compactExplorerMode) setExplorerOpen(false);\n    updateOverviewButton();\n    showSelectedDetails(location);\n    setMarkerActive(id);\n    setStatus(location.name + ' \u00b7 ' + location.altitude + ' m s.l.m.');\n\n    if (map) {\n      if (fromList) {\n        const zoom = Math.min(15, map.getMaxZoom ? map.getMaxZoom() : 17);\n        if (reducedMotion) map.setView([location.lat, location.lng], zoom);\n        else map.flyTo([location.lat, location.lng], zoom, { duration: 0.65 });\n        window.setTimeout(function () { openPopupFor(id); }, reducedMotion ? 0 : 420);\n      } else {\n        openPopupFor(id);\n      }\n    }\n\n    \/\/ Su telefono riporta la mappa in vista dopo la scelta nell'elenco, senza ricaricare la pagina.\n    if (fromList && !isWidgetFullscreen() && window.matchMedia && window.matchMedia('(max-width: 840px)').matches) {\n      const rect = mapPanel.getBoundingClientRect();\n      if (rect.top < 0 || rect.top > window.innerHeight * 0.42) {\n        window.setTimeout(function () {\n          mapPanel.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'start' });\n        }, 70);\n      }\n    }\n  }\n\n  function fitAll() {\n    activeId = null;\n    updateMobileCurrentLabel();\n    if (compactExplorerMode) setExplorerOpen(false);\n    selectedPanel.hidden = true;\n    updateActiveCard();\n    updateOverviewButton();\n    setMarkerActive(null);\n    if (map && markerById && Object.keys(markerById).length) {\n      const markers = LOCATIONS.map(function (location) { return markerById[location.id]; }).filter(Boolean);\n      const group = window.L.featureGroup(markers);\n      map.fitBounds(group.getBounds(), {\n        paddingTopLeft: [28, 34],\n        paddingBottomRight: [28, 32],\n        maxZoom: 12,\n        animate: !reducedMotion\n      });\n      setStatus('Panoramica \u00b7 tutte le ' + LOCATIONS.length + ' localit\u00e0 sono visibili.');\n    } else {\n      setStatus('Sono disponibili ' + LOCATIONS.length + ' localit\u00e0.');\n    }\n  }\n\n  function createLayers(L) {\n    const sharedTileOptions = {\n      updateWhenIdle: true,\n      updateWhenZooming: false,\n      keepBuffer: 2,\n      crossOrigin: false\n    };\n    return {\n      topo: L.tileLayer('https:\/\/{s}.tile.opentopomap.org\/{z}\/{x}\/{y}.png', Object.assign({}, sharedTileOptions, {\n        subdomains: 'abc', maxZoom: 17, maxNativeZoom: 17,\n        attribution: '&copy; <a href=\"https:\/\/www.opentopomap.org\/\" target=\"_blank\" rel=\"noopener\">OpenTopoMap<\/a> &copy; <a href=\"https:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\" rel=\"noopener\">OpenStreetMap<\/a> contributors'\n      })),\n      osm: L.tileLayer('https:\/\/tile.openstreetmap.org\/{z}\/{x}\/{y}.png', Object.assign({}, sharedTileOptions, {\n        maxZoom: 19, maxNativeZoom: 19,\n        attribution: '&copy; <a href=\"https:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\" rel=\"noopener\">OpenStreetMap<\/a> contributors'\n      }))\n    };\n  }\n\n  function initializeMap(L) {\n    if (initialized) return;\n    initialized = true;\n    setLoading(false);\n    if (errorElement) errorElement.hidden = true;\n\n    map = L.map(mapElement, {\n      center: [43.553, 12.337],\n      zoom: 11,\n      minZoom: 8,\n      maxZoom: 19,\n      zoomSnap: 1,\n      scrollWheelZoom: false,\n      zoomControl: false,\n      fadeAnimation: false,\n      markerZoomAnimation: false,\n      tap: true,\n      touchZoom: true,\n      keyboard: true\n    });\n\n    const layers = createLayers(L);\n    map._ctwLayers = layers;\n    currentLayer = layers[selectedLayerKey] || layers.topo;\n    currentLayer.addTo(map);\n\n    L.control.zoom({ position: 'topright' }).addTo(map);\n    L.control.scale({ metric: true, imperial: false, position: 'bottomleft', maxWidth: 110 }).addTo(map);\n\n    const markerList = [];\n    LOCATIONS.forEach(function (location) {\n      const popup = '<strong>' + escapeHtml(location.name) + '<\/strong><span class=\"ctw-popup-altitude\">' + location.altitude + ' m s.l.m.<\/span>';\n      const marker = L.marker([location.lat, location.lng], {\n        icon: createMarkerIcon(L, false, location.type),\n        title: location.name + ' \u00b7 ' + location.altitude + ' m',\n        alt: location.name,\n        keyboard: true,\n        riseOnHover: true\n      }).bindPopup(popup, { maxWidth: 220, closeButton: true, autoPanPadding: [20, 25] });\n      marker.on('click', function () { selectLocation(location.id, false); });\n      marker.addTo(map);\n      markerById[location.id] = marker;\n      markerList.push(marker);\n    });\n\n    map.on('tileerror', function () {\n      if (!tileErrorShown) {\n        tileErrorShown = true;\n        setStatus('Alcune immagini della cartografia non rispondono. Puoi cambiare livello dalla barra qui sopra.');\n      }\n    });\n    map.on('tileload', function () {\n      if (tileErrorShown) {\n        tileErrorShown = false;\n        setStatus(activeId ? statusForActive() : 'Panoramica \u00b7 tutte le ' + LOCATIONS.length + ' localit\u00e0 sono visibili.');\n      }\n    });\n    map.whenReady(function () {\n      const group = L.featureGroup(markerList);\n      map.fitBounds(group.getBounds(), { padding: [34, 34], maxZoom: 12, animate: false });\n      setStatus('Panoramica \u00b7 tutte le ' + LOCATIONS.length + ' localit\u00e0 sono visibili.');\n      window.setTimeout(function () { map.invalidateSize({ pan: false }); }, 100);\n    });\n\n    \/\/ Una sola invalidazione per frame durante i resize di Elementor e i cambi orientamento.\n    let resizeFrame = 0;\n    let lastMapWidth = 0;\n    let lastMapHeight = 0;\n    function scheduleMapResize() {\n      if (resizeFrame) return;\n      resizeFrame = window.requestAnimationFrame(function () {\n        resizeFrame = 0;\n        if (!map) return;\n        const rect = mapElement.getBoundingClientRect();\n        const width = Math.round(rect.width);\n        const height = Math.round(rect.height);\n        if (width === lastMapWidth && height === lastMapHeight) return;\n        lastMapWidth = width;\n        lastMapHeight = height;\n        map.invalidateSize({ pan: false, debounceMoveend: true });\n      });\n    }\n    if ('ResizeObserver' in window) {\n      const resizeObserver = new ResizeObserver(scheduleMapResize);\n      resizeObserver.observe(mapElement);\n    } else {\n      window.addEventListener('resize', scheduleMapResize, { passive: true });\n    }\n  }\n\n  function statusForActive() {\n    const location = LOCATIONS.find(function (item) { return item.id === activeId; });\n    return location ? location.name + ' \u00b7 ' + location.altitude + ' m s.l.m.' : 'Panoramica \u00b7 tutte le ' + LOCATIONS.length + ' localit\u00e0 sono visibili.';\n  }\n\n  async function startMap() {\n    if (initialized) {\n      if (map) map.invalidateSize({ pan: false });\n      return;\n    }\n    setLoading(true);\n    try {\n      const L = await ensureLeaflet();\n      initializeMap(L);\n    } catch (error) {\n      console.error('[CTW Mappe] Errore caricamento mappa:', error);\n      showError();\n    }\n  }\n\n  function changeLayer(layerKey) {\n    if (layerKey !== 'topo' && layerKey !== 'osm') return;\n    selectedLayerKey = layerKey;\n    layerButtons.forEach(function (button) {\n      const isActive = button.dataset.layer === layerKey;\n      button.classList.toggle('is-active', isActive);\n      button.setAttribute('aria-pressed', isActive ? 'true' : 'false');\n    });\n    if (!map) return;\n    const layers = map._ctwLayers || (map._ctwLayers = createLayers(window.L));\n    const nextLayer = layers[layerKey];\n    if (!nextLayer || nextLayer === currentLayer) return;\n    if (currentLayer && map.hasLayer(currentLayer)) map.removeLayer(currentLayer);\n    currentLayer = nextLayer;\n    currentLayer.addTo(map);\n    tileErrorShown = false;\n    setStatus(layerKey === 'topo' ? 'Cartografia topografica.' : 'Cartografia stradale.');\n  }\n\n  function lockPageForFallback() {\n    if (fallbackScrollLocked) return;\n    fallbackScrollY = window.scrollY || window.pageYOffset || 0;\n    document.documentElement.classList.add('ctw-widget-scroll-locked');\n    if (document.body) document.body.classList.add('ctw-widget-scroll-locked');\n    fallbackScrollLocked = true;\n  }\n\n  function unlockPageForFallback() {\n    if (!fallbackScrollLocked) return;\n    document.documentElement.classList.remove('ctw-widget-scroll-locked');\n    if (document.body) document.body.classList.remove('ctw-widget-scroll-locked');\n    fallbackScrollLocked = false;\n    window.requestAnimationFrame(function () {\n      window.scrollTo(0, fallbackScrollY);\n    });\n  }\n\n  function exitExpandedFallback(button) {\n    shellElement.classList.remove('ctw-expanded-fallback');\n    expandedFallback = false;\n    unlockPageForFallback();\n    if (button) button.setAttribute('aria-label', 'Apri il widget a schermo intero');\n    button.title = 'Schermo intero';\n    if (map) window.setTimeout(function () { map.invalidateSize({ pan: false }); }, 120);\n  }\n\n  function toggleExpanded() {\n    const button = root.querySelector('[data-action=\"expand\"]');\n    const fullscreenElement = document.fullscreenElement || document.webkitFullscreenElement;\n\n    if (fullscreenElement === shellElement) {\n      const exit = document.exitFullscreen || document.webkitExitFullscreen;\n      if (exit) {\n        try {\n          const result = exit.call(document);\n          if (result && typeof result.catch === 'function') result.catch(function () {});\n        } catch (error) { \/* L'uscita resta comunque possibile con Esc. *\/ }\n      }\n      return;\n    }\n\n    if (expandedFallback) {\n      exitExpandedFallback(button);\n      return;\n    }\n\n    \/\/ Si espande il contenitore completo, non il solo riquadro cartografico:\n    \/\/ cos\u00ec l'elenco delle localit\u00e0 rimane visibile anche a schermo intero.\n    const request = shellElement.requestFullscreen || shellElement.webkitRequestFullscreen;\n    if (request) {\n      try {\n        const result = request.call(shellElement);\n        if (result && typeof result.catch === 'function') {\n          result.catch(function () { useExpandedFallback(button); });\n        }\n      } catch (error) {\n        useExpandedFallback(button);\n      }\n    } else {\n      useExpandedFallback(button);\n    }\n  }\n\n  function useExpandedFallback(button) {\n    lockPageForFallback();\n    expandedFallback = true;\n    shellElement.classList.add('ctw-expanded-fallback');\n    button.setAttribute('aria-label', 'Esci dallo schermo intero');\n    button.title = 'Esci dallo schermo intero';\n    if (map) window.setTimeout(function () { map.invalidateSize({ pan: false }); }, 140);\n  }\n\n  function onFullscreenChange() {\n    const expanded = document.fullscreenElement === shellElement || document.webkitFullscreenElement === shellElement;\n    const button = root.querySelector('[data-action=\"expand\"]');\n    if (expanded) {\n      button.setAttribute('aria-label', 'Esci dallo schermo intero');\n    button.title = 'Esci dallo schermo intero';\n    } else if (!expandedFallback) {\n      button.setAttribute('aria-label', 'Apri il widget a schermo intero');\n    button.title = 'Schermo intero';\n    }\n    syncExplorerMode();\n    if (map) window.setTimeout(function () { map.invalidateSize({ pan: false }); }, 140);\n  }\n\n  \/\/ Costruisce subito l'elenco: resta consultabile anche se Leaflet o le tile non sono raggiungibili.\n  updateOverviewButton();\n  renderLocationCards('');\n  syncExplorerMode();\n  mobileToggle.addEventListener('click', toggleExplorerMenu);\n  if (menuScrim) menuScrim.addEventListener('click', function () { setExplorerOpen(false); });\n  document.addEventListener('click', function (event) {\n    if (compactExplorerMode && explorerIsOpen && !explorerElement.contains(event.target)) {\n      setExplorerOpen(false);\n    }\n  });\n\n  searchElement.addEventListener('input', function () { renderLocationCards(searchElement.value); });\n  layerButtons.forEach(function (button) { button.addEventListener('click', function () { changeLayer(button.dataset.layer); }); });\n  root.querySelectorAll('[data-action=\"overview\"]').forEach(function (button) { button.addEventListener('click', fitAll); });\n  root.querySelector('[data-action=\"expand\"]').addEventListener('click', toggleExpanded);\n  retryButton.addEventListener('click', function () {\n    loadingPromise = null;\n    initialized = false;\n    markerById = Object.create(null);\n    if (map && typeof map.remove === 'function') map.remove();\n    map = null;\n    currentLayer = null;\n    tileErrorShown = false;\n    \/\/ Conserva il nodo del loader: serve anche se il secondo tentativo impiega qualche istante.\n    Array.from(mapElement.children).forEach(function (child) {\n      if (child !== loadingElement) child.remove();\n    });\n    startMap();\n  });\n  document.addEventListener('fullscreenchange', onFullscreenChange);\n  document.addEventListener('webkitfullscreenchange', onFullscreenChange);\n  let responsiveSyncFrame = 0;\n  function scheduleExplorerSync() {\n    if (responsiveSyncFrame) return;\n    responsiveSyncFrame = window.requestAnimationFrame(function () {\n      responsiveSyncFrame = 0;\n      syncExplorerMode();\n      if (map && isWidgetFullscreen()) map.invalidateSize({ pan: false });\n    });\n  }\n  if (compactExplorerQuery && typeof compactExplorerQuery.addEventListener === 'function') {\n    compactExplorerQuery.addEventListener('change', scheduleExplorerSync);\n  } else if (compactExplorerQuery && typeof compactExplorerQuery.addListener === 'function') {\n    compactExplorerQuery.addListener(scheduleExplorerSync);\n  }\n  window.addEventListener('resize', scheduleExplorerSync, { passive: true });\n  window.addEventListener('orientationchange', function () {\n    scheduleExplorerSync();\n    if (map && isWidgetFullscreen()) window.setTimeout(function () { map.invalidateSize({ pan: false }); }, 220);\n  }, { passive: true });\n  document.addEventListener('keydown', function (event) {\n    if (event.key === 'Escape' && compactExplorerMode && explorerIsOpen) {\n      setExplorerOpen(false);\n      mobileToggle.focus();\n      return;\n    }\n    if (event.key === 'Escape' && expandedFallback) {\n      exitExpandedFallback(root.querySelector('[data-action=\"expand\"]'));\n    }\n  });\n\n  \/\/ Caricamento differito: scarica Leaflet solo quando il widget sta per entrare nello schermo.\n  if ('IntersectionObserver' in window) {\n    const observer = new IntersectionObserver(function (entries) {\n      if (entries.some(function (entry) { return entry.isIntersecting; })) {\n        observer.disconnect();\n        startMap();\n      }\n    }, { rootMargin: '220px 0px' });\n    observer.observe(root);\n  } else {\n    startMap();\n  }\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>WEBCAM LIVE \u00d7 Caricamento webcam&#8230; Impossibile caricare questa webcam. &#10094; &#10095; Citt\u00e0 di Castello Centro sud-est 1 \/ 7 \u00d7 Citt\u00e0 di Castello Centro sud-est 1 \/ 7 CITT\u00c0 DI CASTELLO WEBCAM \/ TERRITORIO Appennino Tifernate 15localit\u00e0 Tutte le localit\u00e0 Topografica Stradale Preparazione della mappa\u2026 Caricamento della cartografia ! Mappa momentaneamente non disponibile Controlla la [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"full-width-container","site-content-style":"unboxed","site-sidebar-style":"unboxed","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"enabled","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1318","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Home - Mappe - Citt\u00e0 di Castello Webcam<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Home - Mappe - Citt\u00e0 di Castello Webcam\" \/>\n<meta property=\"og:description\" content=\"WEBCAM LIVE \u00d7 Caricamento webcam&#8230; Impossibile caricare questa webcam. &#10094; &#10095; Citt\u00e0 di Castello Centro sud-est 1 \/ 7 \u00d7 Citt\u00e0 di Castello Centro sud-est 1 \/ 7 CITT\u00c0 DI CASTELLO WEBCAM \/ TERRITORIO Appennino Tifernate 15localit\u00e0 Tutte le localit\u00e0 Topografica Stradale Preparazione della mappa\u2026 Caricamento della cartografia ! Mappa momentaneamente non disponibile Controlla la [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/\" \/>\n<meta property=\"og:site_name\" content=\"Mappe - Citt\u00e0 di Castello Webcam\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-08T22:08:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\",\"url\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\",\"name\":\"Home - Mappe - Citt\u00e0 di Castello Webcam\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#website\"},\"datePublished\":\"2025-09-04T10:21:09+00:00\",\"dateModified\":\"2026-11-08T22:08:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#website\",\"url\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\",\"name\":\"Mappe - Citt\u00e0 di Castello Webcam\",\"description\":\"Mappe dell&#039;Appenino Tifernate\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#organization\",\"name\":\"Mappe - Citt\u00e0 di Castello Webcam\",\"url\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cdc2-1.png\",\"contentUrl\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cdc2-1.png\",\"width\":1013,\"height\":1013,\"caption\":\"Mappe - Citt\u00e0 di Castello Webcam\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cittadicastellowebcam.it\\\/mappetiferno\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Home - Mappe - Citt\u00e0 di Castello Webcam","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","og_locale":"it_IT","og_type":"article","og_title":"Home - Mappe - Citt\u00e0 di Castello Webcam","og_description":"WEBCAM LIVE \u00d7 Caricamento webcam&#8230; Impossibile caricare questa webcam. &#10094; &#10095; Citt\u00e0 di Castello Centro sud-est 1 \/ 7 \u00d7 Citt\u00e0 di Castello Centro sud-est 1 \/ 7 CITT\u00c0 DI CASTELLO WEBCAM \/ TERRITORIO Appennino Tifernate 15localit\u00e0 Tutte le localit\u00e0 Topografica Stradale Preparazione della mappa\u2026 Caricamento della cartografia ! Mappa momentaneamente non disponibile Controlla la [&hellip;]","og_url":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","og_site_name":"Mappe - Citt\u00e0 di Castello Webcam","article_modified_time":"2026-11-08T22:08:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tempo di lettura stimato":"3 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","url":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","name":"Home - Mappe - Citt\u00e0 di Castello Webcam","isPartOf":{"@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#website"},"datePublished":"2025-09-04T10:21:09+00:00","dateModified":"2026-11-08T22:08:22+00:00","breadcrumb":{"@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/"},{"@type":"ListItem","position":2,"name":"Home"}]},{"@type":"WebSite","@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#website","url":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","name":"Mappe - Citt\u00e0 di Castello Webcam","description":"Mappe dell&#039;Appenino Tifernate","publisher":{"@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#organization","name":"Mappe - Citt\u00e0 di Castello Webcam","url":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#\/schema\/logo\/image\/","url":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-content\/uploads\/2025\/09\/cdc2-1.png","contentUrl":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-content\/uploads\/2025\/09\/cdc2-1.png","width":1013,"height":1013,"caption":"Mappe - Citt\u00e0 di Castello Webcam"},"image":{"@id":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/pages\/1318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/comments?post=1318"}],"version-history":[{"count":304,"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/pages\/1318\/revisions"}],"predecessor-version":[{"id":2475,"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/pages\/1318\/revisions\/2475"}],"wp:attachment":[{"href":"https:\/\/www.cittadicastellowebcam.it\/mappetiferno\/wp-json\/wp\/v2\/media?parent=1318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}