/* Shared page boundaries: keep headers and floating controls inside the editorial canvas. */
body{--hs-canvas:1440px}body.home{--hs-canvas:1800px}
html body.finnish>.shell{position:relative}
html body.finnish .shell>.header{width:100%!important;max-width:100%!important;box-sizing:border-box}
html body.hs-ed .wrapper>.page{width:100%!important;max-width:1440px!important;margin:0 auto!important;box-sizing:border-box}
html body.hs-ed .hs-ed-header{width:100%;max-width:1440px;box-sizing:border-box;margin-inline:auto}
html body #hsa-tasto{right:max(12px,calc((100vw - var(--hs-canvas))/2 + 22px))!important;max-width:calc(100vw - 24px);box-sizing:border-box}
html body #hsa{right:max(8px,calc((100vw - var(--hs-canvas))/2 + 24px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box}
html body #vfcmp-w{left:max(12px,calc((100vw - var(--hs-canvas))/2 + 12px))!important;right:auto!important;box-sizing:border-box}
html body #vfcmp{max-width:min(900px,calc(100vw - 16px))!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;box-sizing:border-box}

/* Informational pages retain their approved staging width. */
body.hs-ed{--hs-canvas:1800px}html body.hs-ed .wrapper>.page,html body.hs-ed .hs-ed-header{max-width:1800px!important}

/* Approved fluid canvas: wide screens use their available width. */
html body.home,html body.product,html body.finnish,html body.hs-ed{--hs-canvas:100vw}
html body>.shell{width:100%!important;max-width:none!important;margin-inline:0!important;box-sizing:border-box}
html body>.shell>.header{width:100%!important;max-width:none!important;box-sizing:border-box}
html body.hs-ed .wrapper>.page,html body.hs-ed .hs-ed-header,html body #editorial-footer{width:100%!important;max-width:none!important;margin-inline:0!important;box-sizing:border-box}
@media(max-width:760px){html body #hsa-tasto,html body #vfcmp-w{bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;height:44px!important}html body #hsa-tasto{right:12px!important}html body #vfcmp-w{left:12px!important}}

/* Mobile assistant: equal side margins, independent of desktop canvas. */
@media(max-width:760px){html body #hsa{left:8px!important;right:8px!important;width:auto!important;max-width:none!important;margin-inline:0!important;transform:none!important}}
/* Product cover: retain the approved photographic proportions on wide displays. */
@media(min-width:1600px){html body.product section.product-top#acquisto{width:100%!important;max-width:1600px!important;margin-left:auto!important;margin-right:auto!important;aspect-ratio:2 / 1!important;min-height:800px!important}}

/* Approved maximum canvas 26 November: fluid up to 2560px. */
html body>.shell{max-width:2560px!important;margin-inline:auto!important}
html body.hs-ed .wrapper>.page,html body.hs-ed .hs-ed-header,html body #editorial-footer{max-width:2560px!important;margin-inline:auto!important}
html body{--hs-canvas:min(2560px,100vw)}
html body.product section.product-top#acquisto:before{max-width:2560px!important}

/* Approved maximum canvas 26 November: fluid up to 1920px. */
html body>.shell{max-width:1920px!important;margin-inline:auto!important}
html body.hs-ed .wrapper>.page,html body.hs-ed .hs-ed-header,html body #editorial-footer{max-width:1920px!important;margin-inline:auto!important}
html body{--hs-canvas:min(1920px,100vw)}
html body.product section.product-top#acquisto:before{max-width:1920px!important}

html body.home,html body.product,html body.finnish,html body.hs-ed{--hs-canvas:min(1920px,100vw)}
html body.hs-ed .wrapper>.page,html body.hs-ed .hs-ed-header,html body.hs-ed #editorial-footer{width:100%!important;max-width:1920px!important;margin-inline:auto!important;box-sizing:border-box}
html body #hsa-tasto{right:max(12px,calc((100vw - 1920px)/2 + 22px))!important}
html body #hsa{right:max(8px,calc((100vw - 1920px)/2 + 24px))!important}
html body #vfcmp-w{left:max(12px,calc((100vw - 1920px)/2 + 12px))!important;right:auto!important}



/* claude-capo 27/11/2026 (ordine capo): piede centrato su telefono */
@media (max-width:760px){#editorial-footer .hs-wrap>div:first-child{text-align:center!important}#editorial-footer .footer-logo{margin-left:auto!important;margin-right:auto!important}#editorial-footer .hs-info,#editorial-footer nav,#editorial-footer .hs-wrap div,#editorial-footer h2,#editorial-footer h3,#editorial-footer ul,#editorial-footer li,#editorial-footer p{text-align:center!important}#editorial-footer ul{padding-left:0!important}}
/* Align only the background photograph with the shell's existing 30px gutters. */
@media(min-width:1600px){html body.product section.product-top#acquisto::before{width:min(1920px,calc(100vw - 60px))!important}}

@media(min-width:761px){html body.product section.product-top#acquisto::before{width:var(--hs-photo-width,min(1920px,100vw))!important;left:var(--hs-photo-left,50%)!important}}

/* Floating controls follow the actual page edges, not the screen edges. */
html body #vfcmp-w{left:var(--hs-control-left,12px)!important;right:auto!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
html body #hsa-tasto{left:auto!important;right:var(--hs-control-right,12px)!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;transform:none!important}
html body #hsa{right:var(--hs-control-right,12px)!important}
