/* Licensed lifestyle photography, isolated from product imagery. */
.cr-stage.ec-authorized-hero{display:block;grid-template:none;background:transparent;align-self:center;min-width:0;padding:0;overflow:hidden;border-radius:4px 32px 4px 4px}
.ec-authorized-hero figure{margin:0;position:relative;aspect-ratio:5/6;background:#e8e5df;overflow:hidden}
.cr-stage.ec-authorized-hero figure img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 60%;padding:0}
.cr-stage.ec-authorized-hero figcaption{left:12px;right:12px;bottom:12px;max-width:none;width:fit-content;background:#ffffffed;color:#093e66;font-size:10px;line-height:1.4;padding:7px 10px}
@media(max-width:1024px){.ec-authorized-hero figure{aspect-ratio:1/1}}
@media(max-width:768px){.ec-authorized-hero figure{aspect-ratio:16/10}.cr-stage.ec-authorized-hero{width:100%;border-radius:4px 24px 4px 4px}.cr-stage.ec-authorized-hero figure img{object-position:50% 60%}}

/* Product photography: show the complete appliance without distortions. */
.ec-product-photo{background:#f8f9f9;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;overflow:hidden}
.ec-product-photo img,.offer-visual.ec-product-photo img,.cx-hybrid-visual.ec-product-photo img{object-fit:contain!important;object-position:center!important;width:100%;height:100%;max-height:520px;padding:24px;display:block}
.offer-visual.ec-product-photo{min-height:240px}.ec-photo-note{font-size:11px;line-height:1.5;color:#526574;padding:8px 18px;text-align:center;display:block;background:#fff;width:100%}
.dp-product figure.ec-product-photo{aspect-ratio:1}.dp-product figure.ec-product-photo img{min-height:0;flex:1;max-height:440px}
.ec-service-photo{margin:28px auto 0!important;max-width:550px;width:100%;height:300px}.ec-copy-panel{grid-template-columns:1fr!important}.ec-copy-panel .cx-panel-copy{max-width:800px}
@media(max-width:768px){.ec-product-photo img{padding:18px;max-height:330px}.offer-visual.ec-product-photo{min-height:210px}.ec-service-photo{height:230px}.dp-product figure.ec-product-photo img{max-height:330px}}


.ec-client-photo img{object-fit:contain!important;object-position:center!important;display:block;width:100%;height:100%;min-height:0}
.cx-panel-visual.ec-client-photo{display:flex;flex-direction:column;background:#f3f5f6;overflow:hidden}.cx-panel-visual.ec-client-photo img{flex:1;padding:0;max-height:450px}
.ec-client-photo[data-client-photo="maintenance"] img{object-fit:cover!important;object-position:65% center!important}
.ec-work-cover{object-position:center 30%!important}.np-caption h3{margin:0;font-size:18px;line-height:1.4}.ec-work-location{font-size:13px;color:#526574;margin-top:8px}
@media(max-width:768px){.cx-panel-visual.ec-client-photo{min-height:230px}.cx-panel-visual.ec-client-photo img{max-height:300px}.ec-client-photo[data-client-photo="maintenance"] img{object-position:70% center!important}}

/* Località confermate dal committente */
.work-locality{font-weight:700;color:var(--blue,#093E66);margin:.4rem 0}.work-description{margin:.35rem 0 0;font-size:.95rem;line-height:1.5}.portfolio-lightbox-caption{color:inherit;text-align:center}

/* Final product framing: original raster pixels, reduced blank surround. */
.ec-product-photo{isolation:isolate}
.ec-product-photo img{box-sizing:border-box;mix-blend-mode:multiply;transform:none!important}
.offer-visual.ec-product-photo img{position:absolute;inset:0;width:100%;height:100%!important;max-width:100%;max-height:100%;min-height:0;padding:10px;object-fit:contain!important;object-position:center!important;margin:auto}
.cx-panel-visual.ec-product-photo img{width:100%;height:100%;max-height:100%;padding:10px;object-fit:contain!important}
.ec-product-photo[data-client-photo="hybrid-system"] img{width:100%;height:100%;min-height:0;max-height:600px;padding:10px;flex:1 1 0;object-fit:contain!important}
.ec-product-photo[data-client-photo="hybrid-system"] .ec-photo-note{flex:0 0 auto}
.offer-visual.ec-product-photo[data-client-photo="hybrid-system"] img{position:static;flex:1 1 0;height:0!important;max-height:100%;min-height:0}
.ec-service-photo.ec-product-photo img{padding:8px;max-height:100%;object-fit:contain!important}
.cx-panel-visual.ec-client-photo[data-client-photo="solar"],.cx-panel-visual.ec-client-photo[data-client-photo="maintenance"]{position:relative}
.cx-panel-visual.ec-client-photo[data-client-photo="solar"] img,.cx-panel-visual.ec-client-photo[data-client-photo="maintenance"] img{width:100%;height:100%;max-height:none;object-fit:cover!important;flex:1 1 0;min-height:0}
@media(max-width:768px){.offer-visual.ec-product-photo img,.cx-panel-visual.ec-product-photo img,.ec-product-photo[data-client-photo="hybrid-system"] img{padding:8px}.ec-product-photo[data-client-photo="hybrid-system"] img{max-height:400px}.offer-visual.ec-product-photo[data-client-photo="hybrid-system"] img{max-height:100%}}
.ec-product-photo[data-client-photo="hybrid-system"]:not(.offer-visual) img{height:auto!important;flex:0 1 auto;max-width:650px;max-height:520px}
.offer-visual.ec-product-photo[data-client-photo="hybrid-system"] img{position:absolute;inset:0;height:100%!important;max-height:100%;padding-bottom:58px;flex:none}
.offer-visual.ec-product-photo[data-client-photo="hybrid-system"] .ec-photo-note{position:absolute;left:0;right:0;bottom:0;margin:0;z-index:1}
@media(max-width:768px){.ec-product-photo[data-client-photo="hybrid-system"]:not(.offer-visual) img{max-height:400px}}
