/* Shared direct-contact affordances. Never open a popup or transmit on load. */
.zh-direct-contacts{position:fixed;right:18px;bottom:18px;z-index:34;display:flex;gap:10px;align-items:center}
.zh-direct-contacts[data-r3-dock-conflict=true]{visibility:hidden;opacity:0;pointer-events:none}
.zh-direct-contacts a{width:72px;height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:18px;text-decoration:none;background:#fff;color:#073e29;border:1px solid #ccd7d1;box-shadow:0 4px 18px #001e3026}
.zh-direct-contacts a:hover{transform:translateY(-3px)}
.zh-direct-contacts .zh-brand-svg{width:30px;height:30px;fill:currentColor}
.zh-direct-contacts span{font:750 9px/1.3 Manrope,sans-serif;letter-spacing:.03em}
.zh-direct-contacts .zh-contact-wa{background:#087b4f;color:white;border-color:#087b4f}
.zh-direct-contacts .zh-contact-mail{color:#ad2318}
body[data-v2-shell] .sherlock-dock{bottom:104px;right:24px;width:90px}
body[data-v2-shell] .sherlock-dock .sherlock-launch{border:0;background:transparent;overflow:visible;min-height:0}
body[data-v2-shell] .sherlock-dock .sherlock-launch>img{display:block;width:76px;height:95px;object-fit:contain;margin:auto;filter:drop-shadow(0 3px 5px #0a234538)}
body[data-v2-shell] .sherlock-dock .zh-chat-label{padding:6px;border-radius:10px;font-size:9px;background:#072940;min-height:30px}
body[data-v2-shell] .sherlock-dock .zh-chat-label strong,body[data-v2-shell] .sherlock-dock .status-dot{display:none}
.zh-footer-person{text-align:center;margin:0 auto 60px;padding:50px 15px 0;color:#fff}
.zh-footer-person>img{display:block;margin:0 auto 28px;width:220px;height:220px;border-radius:50%;object-fit:cover;object-position:center 37%;border:1px solid #8bb4fa}
.zh-footer-person>p{font:650 15px/1.5 Manrope,sans-serif;letter-spacing:.12em;color:#fff}
.r3-footer .zh-footer-person>h2{font:550 clamp(40px,6vw,85px)/1.1 Manrope,sans-serif;color:#fff;text-align:center;margin:20px auto 35px;max-width:none;letter-spacing:-.03em}
.zh-footer-person>h2 em{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:400}
.zh-footer-profiles{display:flex;align-items:center;justify-content:center;gap:35px;flex-wrap:wrap}
.zh-footer-profiles>a,.zh-footer-profiles>.zh-social-pending{display:flex;align-items:center;flex-direction:column;gap:12px;color:#fff;text-decoration:none;min-width:62px}
.zh-footer-profiles .zh-brand-svg{display:block;width:36px;height:36px;fill:currentColor}
.zh-footer-profiles .zh-brand-svg path{fill:currentColor}
.zh-footer-profiles .zh-thread-mark{display:grid;place-items:center;width:36px;height:36px;border:2px solid currentColor;border-radius:50%;font:700 25px/1 Manrope,Arial,sans-serif}
.zh-footer-profiles span span,.zh-footer-profiles a span{font:600 12px/1.5 Manrope,sans-serif;text-transform:uppercase}
.r3-footer .footer-grid a{font-size:14px;min-height:35px}.r3-footer .footer-grid summary{font-size:17px}
:is(.zh-direct-contacts a,.zh-footer-profiles a):focus-visible{outline:3px solid #5984ff;outline-offset:5px}
@media(max-width:1199px){
 .zh-direct-contacts{right:0;left:0;bottom:0;gap:12px;padding:8px 12px;background:#fffffffa;border-top:1px solid #bacbdd;box-shadow:0 -4px 15px #0729400a}.zh-direct-contacts a{width:60px;height:54px;border-radius:12px;box-shadow:none}.zh-direct-contacts .zh-brand-svg{width:25px;height:25px}.zh-direct-contacts span{font-size:8px}
 body[data-v2-shell] .sherlock-dock{right:15px;bottom:8px;width:125px;z-index:35}
 body[data-v2-shell] .sherlock-dock .sherlock-launch{display:flex;align-items:center;justify-content:center;gap:5px}
 body[data-v2-shell] .sherlock-dock .sherlock-launch>img{width:36px;height:52px;flex:none;object-fit:contain}
 body[data-v2-shell] .sherlock-dock .zh-chat-label{font-size:9px;padding:7px;line-height:1.25;max-width:80px}
 body[data-v2-shell] .r3-footer{padding-bottom:95px}
 .zh-footer-profiles{gap:25px 20px}.zh-footer-profiles .zh-brand-svg,.zh-footer-profiles .zh-thread-mark{width:30px;height:30px}.zh-footer-profiles .zh-thread-mark{font-size:20px}.zh-footer-person>img{width:180px;height:180px}
}
@media(max-width:599px){
 .zh-direct-contacts{left:12px;right:auto;bottom:max(10px,env(safe-area-inset-bottom));gap:8px;padding:0;background:transparent;border:0;box-shadow:none}
 .zh-direct-contacts a{width:50px;height:50px;border-radius:13px;box-shadow:0 4px 18px #001e3040}
 body[data-v2-shell] .sherlock-dock{bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(min-width:600px) and (max-width:1199px){
 .zh-direct-contacts{left:18px;right:auto;bottom:18px;gap:10px;padding:0;background:transparent;border:0;box-shadow:none}
 .zh-direct-contacts a{box-shadow:0 4px 18px #001e3040}
}
@media(prefers-reduced-motion:reduce){.zh-direct-contacts a:hover{transform:none}}
/* Sherlock's comic remains connected to his character and can be tucked away. */
.zh-sherlock-speech{position:absolute;right:0;bottom:calc(100% + 18px);width:280px;max-width:calc(100vw - 36px);padding:20px 32px 21px 21px;background:#fff;color:#092b43;border:2px solid #174feb;border-radius:24px 24px 8px 24px;box-shadow:0 9px 24px #08294d24;text-align:left}
.zh-sherlock-speech:after{content:"";position:absolute;right:32px;bottom:-12px;width:20px;height:20px;background:#fff;border-right:2px solid #174feb;border-bottom:2px solid #174feb;transform:rotate(45deg);clip-path:polygon(100% 0,100% 100%,0 100%)}
.zh-sherlock-speech>span{display:block;color:#174feb;font:800 11px/1.3 Manrope,sans-serif;letter-spacing:.12em;margin-bottom:9px}
.zh-sherlock-speech>p{margin:0;font:600 16px/1.5 Manrope,sans-serif;text-transform:uppercase;max-width:none}
.zh-speech-toggle{position:absolute;z-index:2;right:6px;bottom:calc(100% + 16px);width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#174feb;font:500 26px/1 Manrope,sans-serif;cursor:pointer}
.zh-speech-toggle[aria-expanded=false]{bottom:calc(100% + 5px);border:1px solid #174feb}
@media(max-width:1199px){.zh-sherlock-speech{width:250px;bottom:calc(100% + 18px);padding:16px 32px 16px 17px;border-radius:20px 20px 6px 20px}.zh-sherlock-speech>p{font-size:13px;line-height:1.45}.zh-sherlock-speech>span{font-size:10px;margin-bottom:7px}.zh-sherlock-speech:after{right:65px}.zh-speech-toggle{bottom:calc(100% + 15px)}}
@media print{.zh-sherlock-speech,.zh-speech-toggle,.zh-direct-contacts{display:none}}

/* Sherlock is a service guide: an editorial selection panel. */
dialog.sherlock-guide{text-transform:uppercase;position:fixed;inset:0;margin:auto;width:min(920px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #234ee9;border-radius:18px;background:#fff;color:#082940;overflow:auto;box-shadow:0 30px 120px #00102770}
dialog.sherlock-guide::backdrop{background:#031225cc;backdrop-filter:blur(8px)}
.sherlock-guide:not([open]){display:none}
.sg-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:18px;background:#082940;color:white;padding:18px 28px}
.sg-header img{width:42px;height:60px;object-fit:contain}.sg-header p{font:600 10px/1.4 Manrope,sans-serif;letter-spacing:.15em;margin:0 0 7px}.sg-header h2{font:600 16px/1.3 Manrope,sans-serif;margin:0;color:#fff}.sg-header button{margin-left:auto;width:46px;height:46px;flex:none;font-size:28px;color:#fff;background:none;border:1px solid #7996b1;cursor:pointer}
.sg-screen{padding:36px 44px;text-align:center}.sg-folio{font:700 11px/1.5 Manrope,sans-serif;color:#234ee9;letter-spacing:.16em;margin:0 0 14px}
.sherlock-guide .sg-question{font:500 clamp(32px,4.4vw,54px)/1.02 'Cormorant Garamond',Georgia,serif;letter-spacing:-.035em;max-width:22ch;margin:0 auto 20px;color:#082940;text-wrap:balance}
.sg-explanation{font:500 17px/1.55 Manrope,sans-serif;max-width:48ch;margin:0 auto 24px}.sg-trail{font:650 10px/1.6 Manrope,sans-serif;color:#234ee9;margin:0 auto 24px;text-transform:uppercase}
.sg-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sg-choice{display:flex;align-items:center;gap:15px;text-align:left;min-height:100px;padding:20px 18px;border:1px solid #b4c4d0;background:#fff;color:#082940;border-radius:0;cursor:pointer}
.sg-choice:hover{border-color:#214ee7;background:#eef3ff}.sg-choice:focus-visible,.sherlock-guide a:focus-visible,.sg-controls button:focus-visible{outline:3px solid #214ee7;outline-offset:3px}
.sg-number{font:500 34px/1 'Cormorant Garamond',Georgia,serif;color:#214ee7}.sg-option-copy{display:grid;gap:8px;text-align:center;flex:1}.sg-option-copy strong{font:750 14px/1.3 Manrope,sans-serif}.sg-option-copy>span{font:500 13px/1.5 Manrope,sans-serif}
.sg-actions{display:flex;flex-direction:column;gap:16px;align-items:center;margin:32px 0 20px}.sg-primary{display:inline-flex;justify-content:center;padding:18px 24px;min-height:58px;background:#214ee7;color:#fff;font:750 14px/1.5 Manrope,sans-serif;text-decoration:none;border:1px solid #214ee7}.sg-secondary{font:700 13px/1.6 Manrope,sans-serif;color:#082940;padding:12px;text-underline-offset:5px}.sg-price{font:650 25px/1.4 Manrope,sans-serif;color:#214ee7}.sg-note{font:500 13px/1.65 Manrope,sans-serif;max-width:52ch;margin:16px auto}.sg-controls{display:flex;justify-content:center;gap:30px;margin-top:28px}.sg-controls button{min-height:44px;font:700 11px/1.4 Manrope,sans-serif;letter-spacing:.1em;padding:12px;background:none;border:0;border-bottom:1px solid #082940;color:#082940;cursor:pointer}
.sg-persist-status:not(:empty){font:650 13px/1.5 Manrope,sans-serif;color:#a12a27;max-width:52ch;margin:18px auto 0}
@media(max-width:599px){dialog.sherlock-guide{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.sg-header{padding:12px 16px;gap:12px}.sg-header h2{font-size:12px}.sg-header p{font-size:8px}.sg-header img{width:32px;height:48px}.sg-screen{padding:26px 18px}.sg-options{grid-template-columns:1fr}.sg-choice{min-height:84px;padding:16px}.sg-explanation{font-size:15px}.sg-number{font-size:30px}.sg-primary{font-size:12px;max-width:100%}}

/* The local world guide owns this stop; avoid a duplicate figure over its copy. */
body[data-page=home]:has(.zh-world:is([data-world-phase="approach"],[data-world-phase="focus"],[data-world-phase="hold"],[data-world-phase="depart"])) .sherlock-dock{visibility:hidden}

/* Shared footer and guide: the approved Home composition on every site route. */
body[data-v2-shell] #arrivo.zv2-home-footer{background:#041529;color:#f4f1e8;padding:68px 0 100px;font-family:Manrope,Arial,sans-serif}
body[data-v2-shell] #arrivo.zv2-home-footer>.shell{width:calc(100% - 48px);max-width:1180px;margin-inline:auto;padding:0}
body[data-v2-shell] #arrivo.zv2-home-footer .zh-footer-person>h2{font-family:'Cormorant Garamond',Georgia,serif}
body[data-v2-shell] #arrivo.zv2-home-footer .r3-footer-signature{margin:0 0 64px;background:#0a1714;border-block:1px solid #a9bad233}
body[data-v2-shell] #arrivo.zv2-home-footer .footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 0 56px}
body[data-v2-shell] #arrivo.zv2-home-footer details>summary{list-style:none;font:500 12px/1.5 Manrope,Arial,sans-serif;text-transform:uppercase;letter-spacing:.07em;color:#f4f1e8;padding:12px 0;margin-bottom:10px}
body[data-v2-shell] #arrivo.zv2-home-footer details>summary::-webkit-details-marker{display:none}
body[data-v2-shell] #arrivo.zv2-home-footer details a{display:block;font:400 13px/1.5 Manrope,Arial,sans-serif;color:#f4f1e8;margin:10px 0}
body[data-v2-shell] .sherlock-dock{position:fixed;z-index:35;display:block;max-width:none;transform:none}
body[data-v2-shell] .sherlock-dock :is(.sherlock-minimize,.sherlock-compact-icon){display:none!important}
body[data-v2-shell] .sherlock-dock .sherlock-launch{width:100%;padding:0;display:block}
body[data-v2-shell] .sherlock-dock .sherlock-launch>img{display:block!important;transform:none}
body[data-v2-shell] .sherlock-dock .zh-chat-label{display:flex;align-items:center;justify-content:center;font:700 9px/1.3 Manrope,Arial,sans-serif;color:#fff;letter-spacing:.02em}
@media(max-width:1199px){body[data-v2-shell] .sherlock-dock .sherlock-launch{display:flex}body[data-v2-shell] #arrivo.zv2-home-footer{padding-bottom:100px}}
@media(max-width:719px){body[data-v2-shell] #arrivo.zv2-home-footer .footer-grid{grid-template-columns:1fr;gap:0}body[data-v2-shell] #arrivo.zv2-home-footer details{border-bottom:1px solid #a9bad233}body[data-v2-shell] #arrivo.zv2-home-footer details>summary{padding:18px 0}}

body[data-v2-shell] #arrivo.zv2-home-footer .r3-footer-brand{display:block;position:relative;width:min(96%,1080px);margin-inline:auto;padding:24px 0 12px}
body[data-v2-shell] #arrivo.zv2-home-footer .r3-footer-brand img{width:100%;height:auto;max-width:none}

body[data-v2-shell] .sherlock-dock .zh-chat-label{text-transform:uppercase}

/* The Software hero uses the right column for its main action. Keep the guide in its left rail. */
@media(min-width:1200px){
 body[data-route=applicazioni-software-su-misura][data-v2-shell] .sherlock-dock{left:24px;right:auto}
 body[data-route=applicazioni-software-su-misura][data-v2-shell] .zh-sherlock-speech{left:0;right:auto}
 body[data-route=applicazioni-software-su-misura][data-v2-shell] .zh-sherlock-speech:after{left:32px;right:auto}
}
