/* Home «Cartiglio» — sections of the Home only. Tokens, type, buttons and the shared shell are in site-x.css. */
/* Pass 8: no CSS smooth scrolling on the Home. ScrollTrigger saves and restores the scroll position on every refresh
   (fonts, load, resize); a smooth anchor jump still in flight was cut short — /#qualifiche landed 160 px early or not at all. */
html{scroll-behavior:auto}
/* Hero */
.hx-hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:var(--color-base);color:var(--hx-white);isolation:isolate}
.hx-hero__media{position:absolute;inset:0;z-index:-2}
.hx-hero__media img{object-position:62% 50%}
.hx-hero__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(15,15,15,.42) 0%,rgba(15,15,15,0) 24%,rgba(15,15,15,.18) 44%,rgba(15,15,15,.82) 100%),linear-gradient(90deg,rgba(15,15,15,.74) 0%,rgba(15,15,15,.6) 42%,rgba(15,15,15,.3) 64%,rgba(15,15,15,0) 82%)} /* measured: keeps the white title ≥3:1 on the light warehouse wall */
.hx-hero__body{padding-top:calc(var(--hx-header-h) + 48px);padding-bottom:clamp(40px,6vw,88px)}
.hx-hero h1{max-width:12ch}
.hx-hero__foot{display:grid;grid-template-columns:minmax(0,38rem) auto;align-items:end;justify-content:space-between;gap:1.5rem 3rem;margin-top:clamp(28px,3.5vw,56px);padding-top:clamp(20px,2vw,28px);border-top:1px solid var(--hx-hair-d)}
.hx-hero__lead{color:var(--hx-paper-2);font-size:clamp(1rem,1.15vw,1.1875rem);max-width:40ch}
.hx-hero__lead strong{color:var(--hx-white);font-weight:650;display:block}
@media (max-width:767px){
 .hx-hero__foot{grid-template-columns:1fr}
 .hx-hero__shade{background:linear-gradient(180deg,rgba(15,15,15,.5) 0%,rgba(15,15,15,.2) 20%,rgba(15,15,15,.5) 34%,rgba(15,15,15,.9) 70%)}
 .hx-hero__media img{object-position:50% 50%}
 .hx-hero h1{font-size:clamp(2.75rem,13vw,4.25rem)}
}

/* Manifesto */
.hx-statement{font-size:clamp(1.85rem,4.1vw,4rem);font-weight:620;font-stretch:104%;line-height:1.08;letter-spacing:-.025em;max-width:22ch;text-wrap:pretty}
.hx-statement em{font-style:normal;color:var(--hx-red)}
.hx-word{display:inline}

/* Impresa */
.hx-impresa{box-sizing:border-box;min-height:calc(100svh - var(--hx-header-h));display:flex;flex-direction:column;padding:clamp(32px,5vh,64px) 0 clamp(56px,17vh,190px)}
.hx-impresa>.hx-wrap{flex:1 1 auto}
.hx-impresa .hx-grid{grid-template-rows:auto 1fr;min-height:100%}
.hx-impresa__title{grid-column:1/10;align-self:start}
.hx .hx-impresa .hx-impresa__title:not(#_){font-size:clamp(2.5rem,min(6.5vw,11.5vh),6.75rem);line-height:.98;letter-spacing:-.03em;font-weight:720;font-stretch:110%}
.hx-impresa__title span{display:block}
.hx .hx-impresa__text{grid-column:8/13;grid-row:2;align-self:end;text-wrap:pretty;max-width:none;font-size:1.0625rem;line-height:1.55}
.hx-impresa__links{display:flex;flex-wrap:wrap;align-items:center;gap:0 .375rem;margin-top:1rem;color:var(--hx-red)}
.hx-impresa__links .hx-textlink{color:inherit;white-space:nowrap}
@media (min-width:768px){
 .hx-impresa__text p+p{margin-top:.6em}
 .hx-impresa__links{margin-top:.5rem}
}
.hx-figure{margin:0}
.hx-figure figcaption{margin-top:.9rem;color:var(--hx-ink-2)}
.hx-frame{position:relative;overflow:hidden;background:var(--hx-char)}
@media (max-width:767px){
 .hx-impresa{min-height:auto;padding:var(--hx-section) 0}
 .hx-impresa__title,.hx .hx-impresa__text{grid-column:1/-1}
 .hx .hx-impresa .hx-impresa__title:not(#_){font-size:clamp(1.5rem,8.4vw,2.5rem);line-height:1.1}
 .hx .hx-impresa__text{margin-top:48px;font-size:1rem;line-height:1.65}
}

/* Organizzazione — people and roles, then the two company pages */
.hx-org{padding:0 0 var(--hx-section)}
/* Section dividers aligned to the content width (not the padded wrapper): above «Persone, mezzi e metodo» and above «Lavori». */
.hx-org::before,.hx-lavori::before{content:'';display:block;width:calc(100% - 2 * var(--hx-margin));max-width:calc(var(--hx-max) - 2 * var(--hx-margin));margin:0 auto var(--hx-section);border-top:1px solid var(--hx-hair)}
.hx-org>.hx-wrap{align-items:start;row-gap:clamp(32px,4vw,56px)}
.hx-org__main{grid-column:1/-1;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--hx-gutter);align-items:start}
.hx-org__title{grid-column:1/7}
.hx-org__mission{grid-column:8/13;margin:0;color:var(--hx-ink-2)}
.hx-org__people{grid-column:1/-1;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--hx-gutter);align-items:start}
.hx-org__col{grid-column:span 6;min-width:0}
.hx-org__people .hx-h3{margin:0 0 .9rem}
.hx-org .hx-sheet dt{color:var(--hx-ink-2)}
.hx-org__card{margin:0}
.hx-org__card .hx-h3{margin:0}
.hx-org__card p{margin:.6rem 0 0;color:var(--hx-ink-2)}
.hx-org__card .hx-textlink{margin-top:.5rem}
.hx-org__card--fleet{grid-column:1/-1;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--hx-gutter);align-items:center;border-top:1px solid var(--hx-hair);padding-top:clamp(24px,3vw,40px)}
.hx-org__card--fleet .hx-figure{grid-column:1/7;margin:0}
.hx-org__fleet-body{grid-column:8/13}
.hx-ticks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--hx-gutter);border-top:1px solid var(--hx-hair)}
.hx-ticks li{position:relative;padding:.7rem 0 .7rem 1.25rem;border-bottom:1px solid var(--hx-hair);font-size:.9375rem;line-height:1.4}
.hx-ticks li::before{content:'';position:absolute;left:0;top:1.15em;width:.45rem;height:.45rem;background:var(--hx-red)}
.hx-ticks--wide{grid-template-columns:1fr;margin-top:1.5rem}
@media (max-width:1023px){
 .hx-org__main,.hx-org__people,.hx-org__card--fleet{grid-column:1/-1}
 .hx-org__main,.hx-org__people{display:block}
 .hx-org__mission{margin:clamp(20px,2vw,28px) 0 0;max-width:52ch}
 .hx-org__col+.hx-org__col{margin-top:clamp(28px,3vw,40px)}
 .hx-org__card--fleet{display:block}
 .hx-org__card--fleet .hx-figure{margin:0 0 1.1rem}
}

/* Cantieri */
.hx-cantieri{background:var(--hx-char);color:var(--hx-white);padding:var(--hx-section) 0}
.hx-head{align-items:end;margin-bottom:clamp(48px,7vw,104px)}
.hx-head .hx-h2{grid-column:1/8}
.hx-head__aside{grid-column:9/13;color:var(--hx-paper-2);max-width:36ch}
.hx-project{align-items:end;padding-bottom:clamp(72px,10vw,150px);border-bottom:1px solid var(--hx-hair-d)}
.hx-project__media{grid-column:1/8;margin:0}
.hx-project__media .hx-frame{max-width:678px;aspect-ratio:678/399}
.hx-project__text{grid-column:8/13}
.hx-project__text .hx-h3{font-size:clamp(1.75rem,2.6vw,2.6rem);font-weight:680;font-stretch:106%;letter-spacing:-.025em;line-height:1.02;margin-bottom:1.75rem}
.hx-sheet{margin:0;border-top:1px solid var(--hx-hair)}
.hx-sheet>div{display:grid;grid-template-columns:minmax(8rem,38%) 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--hx-hair)}
.hx-sheet dt{font-size:.75rem;font-weight:600;font-stretch:112%;letter-spacing:.12em;text-transform:uppercase;padding-top:.2em}
.hx-sheet dd{margin:0;font-weight:500}
.hx-sheet--dark{border-color:var(--hx-hair-d)}
.hx-sheet--dark>div{border-color:var(--hx-hair-d)}
.hx-sheet--dark dt{color:var(--hx-paper-3)}
.hx-shots{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--hx-gutter);row-gap:clamp(48px,6vw,96px);padding-top:clamp(72px,10vw,150px)}
.hx-shot{margin:0}
.hx-shot__link{display:block;color:inherit;text-decoration:none}
.hx-shot .hx-frame{aspect-ratio:3/4}
.hx-shot .hx-frame img{transition:transform 600ms var(--hx-ease)}
.hx-shot figcaption{display:grid;gap:.5rem;margin-top:1rem}
.hx-shot .hx-caption{color:var(--hx-paper-2)}
.hx-shot__service{display:inline-flex;align-items:center;gap:.6rem;font-size:1.25rem;font-weight:650;font-stretch:106%;letter-spacing:-.01em}
.hx-shot__service .hx-arrow{color:var(--hx-red);transition:transform 320ms var(--hx-ease)}
@media (hover:hover) and (pointer:fine){
 .hx-shot__link:hover .hx-frame img{transform:scale(1.04)}
 .hx-shot__link:hover .hx-arrow{transform:translateX(5px)}
}
.hx-shot--1{grid-column:1/6}
.hx-shot--2{grid-column:7/11;margin-top:clamp(80px,12vw,200px)}
.hx-shot--3{grid-column:2/6}
.hx-shot--4{grid-column:8/13;margin-top:clamp(80px,12vw,200px)}
.hx-more{margin-top:clamp(64px,8vw,120px)}
@media (max-width:1023px){
 .hx-head .hx-h2,.hx-head__aside{grid-column:1/-1}
 .hx-head__aside{margin-top:1.25rem}
 .hx-project__media,.hx-project__text{grid-column:1/-1}
 .hx-project__text{margin-top:2rem}
 .hx-shot--1{grid-column:1/7}.hx-shot--2{grid-column:7/13}.hx-shot--3{grid-column:1/7}.hx-shot--4{grid-column:7/13;margin-top:clamp(80px,12vw,200px)}
}
@media (max-width:767px){
 .hx-shots{row-gap:56px}
 .hx-shot--1,.hx-shot--3{grid-column:1/11;margin-top:0}
 .hx-shot--2,.hx-shot--4{grid-column:3/13;margin-top:0}
}

/* Servizi — one row of photo cards that scrolls sideways (pass 9). Native overflow scrolling with snap points, so touch,
   trackpad, Shift+wheel and keyboard focus all move it and nothing listens to the wheel. The row starts on the page margin
   and runs to the window's right edge, so the next card always shows in part. Without JS: the row and its own thin
   scrollbar; with JS (home-x.js): snapping and focus handling, scrollbar hidden. No buttons or position bar (pass 9b). */
.hx-servizi{padding:var(--hx-band) 0;background:var(--color-base);color:var(--hx-white);--hx-card-w:78vw}
.hx-servizi .sx-link,.hx-servizi .hx-card__more{color:var(--hx-red)}
.hx-servizi .sx-link:hover,.hx-servizi .sx-link:focus-visible{color:var(--hx-white)}
@media (min-width:768px){.hx-servizi{--hx-card-w:clamp(280px,24vw,400px)}}
.hx section[aria-label="Chi siamo in sintesi"]{background:var(--color-base)}
.hx-intro{position:relative;display:grid;align-content:center;justify-items:center;gap:24px;min-height:calc(100svh - var(--hx-header-h));padding:32px var(--sx-m);color:var(--hx-white);overflow:hidden;background:var(--color-base);isolation:isolate}
.hx-intro-shell.is-pinned .hx-intro{height:calc(100svh - var(--hx-header-h));padding:0}
.hx-intro__mosaic{position:absolute;inset:0;display:flex;justify-content:center}
.hx-intro__column{display:flex;flex:0 0 calc(100% / 3);flex-direction:column;height:175%}
.hx-intro__column picture{display:block;flex:1;min-height:0}
.hx-intro__column img{display:block;width:100%;height:100%;object-fit:cover}
.hx-intro__actions{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:12px;width:100%}
.hx-intro-shell.is-pinned .hx-intro__actions{position:absolute;inset:0;pointer-events:none}
.hx-intro__scrim{position:absolute;inset:0;background:rgba(15,15,15,.72);pointer-events:none}
.hx-intro .hx-statement{position:relative;margin:0;max-width:1000px;font-size:clamp(2.25rem,5vw,4.5rem);line-height:1;font-weight:700;letter-spacing:0;text-align:center}
.hx-intro .hx-statement em{color:inherit}
.hx-intro .hx-word{display:inline-block}
.hx-intro-shell.is-pinned .hx-statement{position:absolute;inset:max(12px,env(safe-area-inset-top)) max(var(--sx-m),env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(var(--sx-m),env(safe-area-inset-left));max-width:1000px;margin-inline:auto;align-content:center}
.hx-intro-shell.is-active :is(.hx-intro__mosaic,.hx-intro__scrim,.hx-statement){will-change:opacity}
.hx-intro-shell.is-active .hx-intro__column{will-change:transform}
.hx-intro-shell.is-active .hx-intro__actions{will-change:transform,opacity}
.hx-intro__actions:not([inert]) .hx-btn{pointer-events:auto}
.hx .hx-intro__actions .hx-btn:not(#_){color:var(--hx-white);transition:transform 180ms ease,opacity 180ms ease}
.hx .hx-intro__actions .hx-btn--red:not(#_){background:var(--hx-red)}
.hx .hx-intro__actions .hx-btn--ghost:not(#_){background:transparent;border:2px solid var(--hx-white);filter:drop-shadow(0 1px 3px var(--color-base))}
.hx-intro__actions .hx-btn:focus-visible{outline:3px solid var(--hx-white);outline-offset:4px}
@media (hover:hover) and (pointer:fine){
 .hx-intro__actions .hx-btn:hover{transform:scale(1.025);opacity:.94}
 .hx-intro__actions .hx-btn:hover .hx-arrow{transform:none}
}
@media (max-width:767px){
 .hx-intro-shell.is-pinned .hx-intro{height:calc(100vh - var(--hx-header-h))!important;max-height:none!important}
 .hx-intro__actions{flex-direction:column}
 .hx .hx-intro__actions .hx-btn:not(#_){width:80%;min-height:48px;padding-inline:12px;text-align:center}
 .hx-intro__column{flex-basis:80%;height:170%}
 .hx-intro .hx-statement{font-size:clamp(1rem,min(6.4vw,5.6svh),2rem);line-height:1.15}
}
.hx-track{overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:var(--sx-m);scrollbar-width:thin;scrollbar-color:var(--hx-char) transparent}
/* Snapping only with the script, which brings a focused card fully into view: without it, any snapping (even proximity)
   pulls back the browser's small focus scroll and leaves the focused card half outside the window. */
.hx-servizi.is-enhanced .hx-track{scroll-snap-type:x mandatory;scrollbar-width:none}
.hx-servizi.is-enhanced .hx-track::-webkit-scrollbar{display:none}
.hx-cards{display:flex;gap:var(--sx-gap);width:max-content;list-style:none;margin:0;padding:6px var(--sx-m) 12px}
.hx-card{position:relative;flex:0 0 var(--hx-card-w);scroll-snap-align:start;display:flex;flex-direction:column}
.hx-card__media{aspect-ratio:4/5;overflow:hidden}
.hx-card__media picture{display:block;height:100%}
.hx main .hx-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--hx-ease)}
.hx main .hx-card__name{margin:18px 0 0;font-size:clamp(1.25rem,1.7vw,1.625rem);font-weight:700;line-height:1.15;letter-spacing:-.01em}
.hx-card__name a{color:var(--hx-white);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color 160ms ease-out}
.hx-card__name a::after{content:'';position:absolute;inset:0}
.hx-card__name a:focus-visible{outline:none}
.hx-card__name a:focus-visible::after{outline:3px solid var(--hx-red);outline-offset:4px}
.hx main .hx-card__desc{margin:8px 0 0;font-size:15px;line-height:1.5;color:var(--hx-paper-2);max-width:34ch}
.hx-card__more{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:14px;font-size:15px;font-weight:700}
.hx-card__more .hx-arrow{width:18px;height:18px;color:var(--hx-red);transition:transform 220ms var(--hx-ease)}
@media (hover:hover) and (pointer:fine){
 .hx-card:hover .hx-card__name a{text-decoration-color:var(--hx-red)}
 .hx-card:hover .hx-card__more .hx-arrow{transform:translateX(4px)}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hx main .hx-card:hover .hx-card__media img{transform:scale(1.035)}}

/* Credenziali */
.hx-credenziali{background:var(--color-base);color:var(--hx-white);padding:var(--hx-band) 0}
.hx-credenziali .hx-grid{align-items:start}
.hx-credenziali__title{grid-column:1/-1;margin-bottom:clamp(24px,3vw,40px)}
.hx-cred__info{grid-column:1/7}
.hx-soa{list-style:none;margin:0;padding:0;border-top:1px solid var(--hx-hair-d)}
.hx-soa li{display:grid;grid-template-columns:minmax(9rem,42%) 1fr;align-items:baseline;gap:1.25rem;padding:1.1rem 0;border-bottom:1px solid var(--hx-hair-d)}
.hx-soa__code{font-size:clamp(2rem,3.6vw,3.5rem);font-weight:700;font-stretch:110%;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.hx-soa li:last-child .hx-soa__code{font-size:clamp(1.4rem,2.35vw,2.6rem);white-space:nowrap}
.hx-soa__class{font-size:.42em;font-weight:650;letter-spacing:0;color:var(--hx-red);vertical-align:.95em;margin-left:.1em}
.hx-soa__name{color:var(--hx-paper-2);font-size:.9375rem;line-height:1.4}
.hx-links{display:flex;flex-wrap:wrap;gap:.25rem 2rem;margin-top:1.25rem}
.hx-textlink--light{color:var(--hx-white)}
/* Sicurezza */
.hx-sicurezza{display:grid;--hx-sicurezza-red:color-mix(in srgb,var(--hx-red) 86%,var(--color-base));background:var(--hx-sicurezza-red);color:var(--hx-white)}
.hx-sicurezza__panel{display:grid;align-content:center;justify-items:start;gap:var(--sx-s2);padding:clamp(32px,5vw,88px)}
.hx-sicurezza__panel p{max-width:46ch}
.hx-sicurezza__rows{display:grid;gap:10px;margin:0;line-height:1.4}
.hx-sicurezza__rows dt{display:inline;font-weight:700}
.hx-sicurezza__rows dd{display:inline;margin:0 0 0 .5rem}
.hx .hx-sicurezza .hx-btn--outline-light:not(#_){min-height:48px;border:1.5px solid var(--hx-white);border-radius:var(--hx-pill);background:transparent;color:var(--hx-white)}
.hx .hx-sicurezza .hx-btn--outline-light:hover:not(#_){background:var(--hx-white);color:var(--hx-sicurezza-red)}
.hx-sicurezza .hx-btn--outline-light:focus-visible{outline:2px solid var(--hx-white);outline-offset:4px}
.hx-sicurezza__media{position:relative;overflow:hidden;margin:0}
.hx-sicurezza__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 50%}
@media (min-width:768px){
 .hx-sicurezza{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);min-height:clamp(520px,56vh,660px)}
 .hx-sicurezza__panel .hx-display{font-size:clamp(3rem,5vw,4.5rem)}
}
@media (max-width:767px){
 .hx-sicurezza__media{aspect-ratio:7/3}
 .hx-sicurezza__media img{object-position:50% 30%}
}

#clienti{background:var(--color-base);color:var(--hx-white);padding:var(--hx-section) 0}
#clienti .sx-section-head,.hx-clients__note{margin-inline:var(--sx-m)}
#clienti .sx-section-head{margin-bottom:1rem}
.hx-clients__note{font-size:.9375rem;color:rgba(255,255,255,.7);max-width:50ch}
.hx-clients__strip{overflow-x:hidden;margin-top:var(--sx-s4);--hx-client-gap:clamp(48px,8vw,120px)}
.hx-clients__track{display:flex;width:max-content;animation:hx-clients-scroll 120s linear infinite}
.hx-clients__list{display:flex;flex:none;gap:var(--hx-client-gap);list-style:none;margin:0;padding:0 var(--hx-client-gap) 0 0}
.hx-clients__list li{font-size:clamp(1.4rem,2.6vw,2.6rem);font-weight:620;line-height:1.2;white-space:nowrap}
@keyframes hx-clients-scroll{to{transform:translateX(-50%)}}
.hx-clients__strip.is-offscreen .hx-clients__track{animation-play-state:paused}
@media (hover:hover) and (pointer:fine){
 .hx-clients__strip:hover .hx-clients__track{animation-play-state:paused}
}
@media (prefers-reduced-motion:reduce){
 .hx-clients__track{width:auto;animation:none}
 .hx-clients__list{flex:1;flex-wrap:wrap;gap:1rem 2rem;padding-inline:var(--sx-m)}
 .hx-clients__list li{white-space:normal;overflow-wrap:anywhere}
 .hx-clients__list[aria-hidden="true"]{display:none}
}
@media (max-width:599px){.hx-soa li{grid-template-columns:1fr;gap:.35rem}}

/* Closing */
.hx-closing{position:relative;min-height:min(92vh,960px);display:flex;align-items:flex-end;overflow:hidden;background:var(--color-base);color:var(--hx-white);isolation:isolate}
.hx-closing__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(15,15,15,.25),rgba(15,15,15,.82) 78%)}
.hx-closing__body{padding-top:var(--hx-section);padding-bottom:clamp(48px,7vw,104px)}
.hx-display--closing{max-width:13ch}
.hx-closing__foot{display:grid;gap:1.5rem;margin-top:2.25rem;padding-top:1.5rem;border-top:1px solid var(--hx-hair-d)}
.hx-closing__foot p{color:var(--hx-paper-2);font-size:1.125rem}

/* Hero entrance in CSS, so it starts with the first paint and never waits for a script. The photograph is
   visible from the first frame and settles; the headline lines rise out of their masks with shrinking gaps. */
@media (prefers-reduced-motion:no-preference){
 .hx-hero .hx-line>span{animation:hx-rise 1.25s var(--hx-ease) .12s both}
 .hx-hero .hx-line:nth-child(2)>span{animation-delay:.23s}
 .hx-hero .hx-line:nth-child(3)>span{animation-delay:.32s}
 .hx-hero__media img{animation:hx-settle 2.2s var(--hx-ease) both}
 .hx-hero__foot{animation:hx-lift 1s var(--hx-ease) .5s both}
}
@keyframes hx-rise{from{transform:translateY(.32em)}} /* visible from the first frame: the title is never hidden while the page loads */
@keyframes hx-settle{from{transform:scale(1.08)}}
@keyframes hx-lift{from{transform:translateY(14px)}}
/* Narrow phones: title-block rows stack (declared after the base rows on purpose). */
@media (max-width:599px){.hx-ticks{grid-template-columns:1fr}.hx-sheet>div{grid-template-columns:1fr;gap:.2rem}}

/* Rules drawn by home-x.js: the class is added by script only, so without JS the hairline is a plain border. */
.hx-rule{position:relative;border-bottom-color:transparent!important;--hx-rule:0}
.hx-rule::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--hx-hair-d);transform:scaleX(var(--hx-rule));transform-origin:0 50%}
.hx-soa__pending{display:block;font-size:.8125rem;letter-spacing:0;font-weight:500;margin-top:.35rem;color:var(--hx-paper-2)}

/* Nov 2026 pass 4: section rhythm, works from the catalogue, certificates with the real documents on the right. */
:root{--hx-section:clamp(20px,3.2vw,48px);--hx-band:clamp(40px,3.4vw,48px);--hx-tight:clamp(20px,2.2vw,32px)}
.hx .hx-lavori{border-top:0;padding:0 0 var(--hx-section)}
/* The scaffold preview is cropped from the bottom on the Home only (authorised by the client); the work page and the
   enlargement keep the whole photograph. */
.hx-lavori .sx-card--crop-top .sx-card__media img{aspect-ratio:5/4;object-fit:cover;object-position:50% 0}
.hx-docs{grid-column:7/13;display:grid;margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px);align-content:start}
.hx-doc{margin:0;width:100%}
.hx-doc__open{display:block}
.hx-doc__sheet{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;background:#fff;padding:10px;box-sizing:border-box}
.hx-doc__sheet img{display:block;max-width:100%;max-height:100%;width:auto;height:auto}
.hx-doc__open:focus-visible{outline:3px solid var(--hx-red);outline-offset:3px}
.hx-doc figcaption{display:grid;gap:2px;margin-top:10px;font-size:14px;line-height:1.4;color:var(--hx-paper-2)}
.hx-doc figcaption strong{color:#fff;font-weight:700}
.hx-doc figcaption .hx-textlink{min-height:32px}
@media (min-width:1024px){.hx-soa li{padding-block:.55rem}}
@media (max-width:1023px){.hx-cred__info,.hx-docs{grid-column:1/-1}.hx-docs{margin-top:36px;gap:clamp(20px,2vw,28px);grid-template-columns:repeat(2,minmax(0,280px));justify-items:start;justify-content:start}.hx-doc{width:100%}}
@media (max-width:479px){.hx-docs{grid-template-columns:minmax(0,300px)}}

.hx .site-footer .sf-place iframe{display:block;width:100%;height:170px;margin-top:12px;border:0;border-radius:0}
.hx .site-footer .sf-place .sf-directions{display:inline-block;margin-top:8px;font-size:13px;text-decoration-color:var(--hx-red)}
