/* STUDIO TOSSANI V16 — integrated changes approved in five groups */
:root{--site-header:86px}
/* Neuropolitical exclusively on wordmark and payoff; Avenir for all other headings. */
.manifesto-main h2,.services-section h2,.service-list h3,.slogan-section h2,.canvas-intro h2,.canvas-info h3,.canvas-outro h2{font-family:Avenir,Arial,sans-serif!important;letter-spacing:-.055em}
.wordmark,.hero-copy h1,.canvas-info__signature{font-family:Neuropolitical,sans-serif!important}
/* Header opaque in every context: light on ivory areas, navy on dark sections. */
.masthead.masthead--solid{height:var(--site-header);padding-block:15px;background:#183048;color:#f4f1e9;box-shadow:0 1px 0 #ffffff14;transition:background-color .32s,color .32s;isolation:isolate}
.masthead.masthead--solid.dark-text{color:inherit}
.masthead.masthead--solid.is-light{background:#f1efe7;color:#183048;box-shadow:0 1px 0 #1830481a}
.masthead.masthead--solid.is-dark{background:#183048;color:#f4f1e9}
.masthead.masthead--solid .wordmark{z-index:2}
.masthead.masthead--solid .menu-toggle{z-index:2}
body:has(.menu-panel.open) .masthead.masthead--solid{background:#ed3f13!important;color:#f5f1e8!important}
/* Hero: payoff centered, with independently animated words entirely leaving the viewport. */
.hero-copy{left:3%!important;right:3%!important;top:46%;bottom:12%;align-items:center;justify-content:center}
.hero-copy h1{align-items:center!important;justify-content:center;width:100%;max-width:100%;text-align:center;font-size:clamp(37px,7vw,132px)}
.hero-line,.hero-line:nth-child(2),.hero-line:nth-child(3),.hero-line:nth-child(4){margin-left:0!important;transform:translate3d(var(--hero-leave-x,0px),var(--hero-float-y,0px),0)!important;opacity:var(--hero-fade,1)!important;will-change:transform,opacity}
.hero-line.smaller{font-size:.73em}
/* Portfolio intro: no thin vertical grid; the title entirely ivory; big m in solid logo red. */
.canvas-intro::before{background:none!important}
.canvas-intro h2,.canvas-intro h2 span{color:#f5f1e8!important}
.canvas-intro__seal{opacity:1!important;mix-blend-mode:normal!important;filter:none!important;width:min(49vw,700px);right:-5%;top:18%;}
.canvas-intro__seal img{display:block;width:100%;height:auto;filter:none}
.canvas-intro__main{isolation:isolate}
.canvas-intro h2{z-index:4;text-shadow:0 7px 25px #10263833}
/* Services: entire hovered row white with dark arrows and copy. */
.service-list>div{cursor:default;outline-offset:-3px;transition:background-color .27s ease,padding .27s ease,color .27s ease}
.service-list>div:hover,.service-list>div:focus-visible,.service-list>div:active{background:#fff!important;color:#102d41!important;padding-inline:clamp(12px,2vw,28px)!important}
.service-list>div:hover h3,.service-list>div:hover b,.service-list>div:hover span,.service-list>div:focus-visible :is(h3,b,span){color:#102d41!important}
/* Integrated 3D: editorial copy followed by full-width pinned scroll scene. */
.editorial-section--v16{min-height:80svh;padding-top:calc(var(--site-header) + 50px)}
.editorial-layout--v16{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:7vw;align-items:center;margin-top:65px}
.editorial-layout--v16 h2{margin:20px 0 30px}
.editorial-scrolldown{font-size:12px!important;font-weight:700;letter-spacing:.12em;margin-top:35px!important}
.editorial-scrolldown span{color:#ed3f13;font-size:23px;margin-left:10px}
.editorial-preview{display:flex;flex-direction:column;align-items:center;gap:16px}
.editorial-preview img{width:min(100%,300px);height:auto;aspect-ratio:1595/2048;object-fit:contain;transform:rotate(-7deg);filter:drop-shadow(18px 20px 12px #142c3944)}
.editorial-preview span{font-size:10px;letter-spacing:.12em;font-weight:700;color:#6d7377}
.book-scroll-track{height:560svh;position:relative;background:#ece7dc;color:#183048;isolation:isolate}
.book-scroll-sticky{height:calc(100svh - var(--site-header));top:var(--site-header);position:sticky;overflow:hidden;background:radial-gradient(ellipse at 52% 44%,#faf5e9,#eae3d7 63%,#d7cfc1);}
.book-scroll-meta,.book-scroll-footer{position:absolute;left:clamp(18px,6vw,100px);right:clamp(18px,6vw,100px);z-index:5;display:flex;justify-content:space-between;gap:22px;font-size:10px;letter-spacing:.14em;font-weight:700;pointer-events:none}
.book-scroll-meta{top:26px}.book-scroll-footer{bottom:27px}.book-scroll-footer span:last-child{white-space:nowrap}
.book-scroll-annotation{position:absolute;z-index:5;left:6vw;top:15%;max-width:240px;font-size:11px;line-height:1.5;letter-spacing:.12em;font-weight:700;pointer-events:none}
.book-scroll-fallback{position:absolute;z-index:1;inset:12% 28%;display:grid;place-items:center;pointer-events:none;transition:opacity .5s}
.book-scroll-fallback img{height:min(65svh,530px);width:auto;max-width:75vw;object-fit:contain;transform:rotate(-7deg);filter:drop-shadow(16px 22px 19px #0004)}
#book-3d-frame{position:absolute;z-index:2;inset:0;width:100%;height:100%;border:0;display:block;opacity:0;transition:opacity .65s;pointer-events:none;background:transparent}
.book-scroll-track.is-3d-ready #book-3d-frame{opacity:1}
.book-scroll-track.is-3d-ready .book-scroll-fallback{opacity:0}
/* Make sure content of light section never hides behind fixed header. */
#studio,#servizi,#lavori,#contatti,.editorial-section{scroll-margin-top:var(--site-header)}
@media(max-width:960px){:root{--site-header:76px}.hero-copy{top:47%;bottom:12%}.hero-copy h1{font-size:clamp(35px,8vw,86px)}.editorial-layout--v16{grid-template-columns:1fr}.editorial-preview{display:none}}
@media(max-width:650px){:root{--site-header:70px}
 .masthead.masthead--solid{padding:10px 20px}
 .hero-copy{left:3%!important;right:3%!important;top:48%;bottom:13%}
 .hero-copy h1{font-size:clamp(26px,8.6vw,54px);line-height:1.16;letter-spacing:.055em}
 .hero-line.smaller{font-size:.78em}
 .canvas-intro__seal{width:78vw;right:-10vw;top:23%}
 .canvas-intro__main{position:relative;z-index:3}
 .canvas-intro h2{font-size:clamp(42px,10.4vw,76px)}
 .editorial-section--v16{padding-top:calc(var(--site-header) + 28px);min-height:65svh;padding-bottom:55px}
 .editorial-layout--v16{margin-top:40px}
 .editorial-layout--v16 h2{margin:20px 0}
 .editorial-layout--v16>div>p:not(.editorial-small){font-size:15px}
 .book-scroll-track{height:500svh}
 .book-scroll-sticky{height:calc(100svh - var(--site-header))}
 .book-scroll-meta,.book-scroll-footer{left:20px;right:20px;font-size:9px;line-height:1.4;letter-spacing:.075em}
 .book-scroll-meta span:last-child{text-align:right;max-width:52%}
 .book-scroll-annotation{left:20px;top:15%;max-width:140px;font-size:9px}
 .book-scroll-fallback{inset:15% 6%}
 .book-scroll-fallback img{height:min(48svh,380px);max-width:76vw}
 .service-list>div:hover,.service-list>div:focus-visible,.service-list>div:active{padding-inline:12px!important}
}
@media(prefers-reduced-motion:reduce){.hero-line{transform:none!important;opacity:1!important}.book-scroll-track{height:90svh}.book-scroll-fallback{opacity:1!important}.book-scroll-track #book-3d-frame{opacity:0!important}.canvas-intro__seal{transform:none!important}}

/* R36: fallback animato leggero finche' WebGL non e' pronto */
.book-scroll-fallback img{will-change:transform;transform-origin:50% 55%;}
@media(prefers-reduced-motion:reduce){.book-scroll-fallback img{will-change:auto;transform:rotate(-7deg)!important}}
