/* Enhancements are opt-in; the original document remains the fallback. */
.story-progress{position:fixed;top:83px;left:0;right:0;height:2px;background:#162a3924;z-index:11;pointer-events:none;opacity:0;transition:opacity .4s}
.story-progress>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#2575a3,#42c8ff 78%,#b1efff);box-shadow:0 0 10px #42c8ff44;transform:scaleX(0);transform-origin:left}
.story-enabled .story-progress{opacity:.85}
.story-chapter{--chapter-presence:1;--chapter-travel:.5}
.story-enabled #servizi.story-chapter{background-image:radial-gradient(ellipse at calc(24% + var(--chapter-travel)*50%) 46%,rgba(25,76,103,calc(var(--chapter-presence)*.14)),transparent 66%)}
.story-enabled .story-heading,.story-enabled .story-copy,.story-enabled .story-card,.story-enabled .story-kicker,.story-enabled .story-portrait,.story-enabled .story-stage{--story-enter:1;--story-exit:0;transition:translate .17s linear,opacity .22s linear;opacity:calc(.76 + var(--story-enter)*.24 - var(--story-exit)*.06)}
.story-enabled .story-heading{translate:0 calc((1 - var(--story-enter))*17px - var(--story-exit)*7px)}
.story-enabled .story-copy{translate:0 calc((1 - var(--story-enter))*13px - var(--story-exit)*5px)}
.story-enabled .story-kicker{translate:calc((1 - var(--story-enter))*-8px) 0;color:color-mix(in srgb,var(--blue) calc(65% + var(--story-enter)*35%),#60859d)}
.story-enabled .story-card{translate:0 calc((1 - var(--story-enter))*24px - var(--story-exit)*6px)}
.story-enabled .story-card:focus-within{translate:0 0;opacity:1}
.story-enabled .path.story-card .path-top img{translate:0 calc((1 - var(--story-enter))*7px);transition:translate .24s ease-out}
.story-enabled .story-portrait{translate:0 calc((1 - var(--story-enter))*12px - var(--story-exit)*5px);filter:saturate(.1);transition:translate .2s linear,opacity .25s linear}
.story-enabled .story-stage{translate:0 calc((1 - var(--story-enter))*18px - var(--story-exit)*5px)}
.story-enabled .story-stage .stage-visual{background:radial-gradient(ellipse at 50% 60%,rgba(24,59,76,calc(.17 + var(--story-enter)*.18)),transparent 65%)}
.story-enabled .story-stage .story-draw{stroke-dasharray:1;stroke-dashoffset:calc((1 - var(--story-enter))*.74);transition:stroke-dashoffset .23s linear}
.story-enabled .story-stage .surface{fill-opacity:calc(.35 + var(--story-enter)*.65)}
.story-enabled .story-stage .stage-note{opacity:calc(.78 + var(--story-enter)*.22);transition:opacity .25s}
.story-enabled .contact.story-current,.story-enabled .story-current .contact{border-color:#356982}
.story-enabled .contact{transition:border-color .6s ease,box-shadow .6s ease;box-shadow:0 0 45px rgba(18,73,103,calc(var(--chapter-presence)*.05))}
@media(max-width:900px){.story-progress{top:71px}.story-enabled .story-heading,.story-enabled .story-card,.story-enabled .story-stage{translate:0 calc((1 - var(--story-enter))*12px - var(--story-exit)*3px)}}
@media(prefers-reduced-motion:reduce){.story-progress{display:none}.story-enabled .story-heading,.story-enabled .story-copy,.story-enabled .story-card,.story-enabled .story-kicker,.story-enabled .story-portrait,.story-enabled .story-stage{translate:none!important;transform:none!important;opacity:1!important;transition:none!important}.story-enabled .story-draw{stroke-dasharray:none!important;stroke-dashoffset:0!important;transition:none!important}.story-enabled .story-stage .surface{fill-opacity:1!important}}
