/* Sergio Grasso — restyling pagine interne, homepage esclusa */
/* Correzione spazi superiori: il vecchio main generico aggiungeva 130px sopra le copertine. */
body:not(.home)>main.sg-company,
body:not(.home)>main.sg-contact-page{padding-top:0!important}
body:not(.home)>main.sg-company{background:#f5f1e9!important}
body:not(.home)>main.sg-contact-page{background:#f4f1eb!important}
body.page-id-413>main.sg-brand-page,
body.page-id-444>main.sg-machinery-page,
body.page-id-391>main.sg-fiere{padding-top:58px!important}
body.page-id-374>main.sg-realizations-photos{padding-top:70px!important}
@media(max-width:900px){
 body.page-id-413>main.sg-brand-page,
 body.page-id-444>main.sg-machinery-page,
 body.page-id-391>main.sg-fiere{padding-top:35px!important}
 body.page-id-374>main.sg-realizations-photos{padding-top:45px!important}
}
body:not(.home){--sg-warm:#f2eee7;--sg-ink:#211e1b;--sg-bronze:#c2ab90;background:var(--sg-warm)}
body:not(.home) .sg-head{box-shadow:0 8px 25px rgba(0,0,0,.08)}
/* Header editoriali a tutta larghezza per contenuti legacy */
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-inner-page{padding-top:0!important;overflow:hidden}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-wrap{width:min(1380px,calc(100% - 8vw));max-width:1380px}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header{position:relative;isolation:isolate;margin-left:calc(50% - 50vw)!important;width:100vw;min-height:clamp(420px,50vw,630px);padding:clamp(105px,11vw,150px) max(4vw,calc((100vw - 1380px)/2)) 100px!important;margin-bottom:clamp(55px,6vw,95px)!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:#25211d;border:none!important;color:#fff;overflow:hidden}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header::before{content:"";position:absolute;inset:-4%;z-index:-2;background:linear-gradient(90deg,rgba(14,12,11,.88),rgba(14,12,11,.25)),url('https://www.sergiograssosrl.it/wp-content/uploads/2026/11/SGMateriaFeature-01-%E2%80%94-Scultura-e-lavorazione-della-pietra-scaled.jpg') center/cover;transition:transform 1.5s ease}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header:hover::before{transform:scale(1.04)}
body.page-id-118 .sg-page-header::before{background-image:linear-gradient(90deg,rgba(10,10,9,.87),rgba(10,10,9,.26)),url('https://www.sergiograssosrl.it/wp-content/uploads/2026/11/SGMateriaFeature-03-%E2%80%94-Precisione-nella-lavorazione-del-marmo-scaled.jpg')}
body.page-id-196 .sg-page-header::before{background-image:linear-gradient(90deg,rgba(10,10,9,.87),rgba(10,10,9,.26)),url('https://www.sergiograssosrl.it/wp-content/uploads/2026/11/SGMateriaFeature-02-%E2%80%94-Dettaglio-della-lavorazione-artigiana-scaled.jpg')}
body.page-id-283 .sg-page-header::before{background-image:linear-gradient(90deg,rgba(10,10,9,.87),rgba(10,10,9,.26)),url('https://www.sergiograssosrl.it/wp-content/uploads/2026/11/SGMateriaFeature-04-%E2%80%94-Maestria-e-precisione-nella-pietra-scaled.jpg')}
body.page-id-389 .sg-page-header::before{background-image:linear-gradient(90deg,rgba(10,10,9,.87),rgba(10,10,9,.26)),url('https://www.sergiograssosrl.it/wp-content/uploads/2024/04/DSC3708.jpg')}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header::after{content:"";height:1px;position:absolute;left:4.5vw;right:4.5vw;bottom:35px;background:rgba(255,255,255,.34)}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-kicker{color:#e4d3bc!important;font:700 11px Arial,sans-serif!important;letter-spacing:.19em!important;margin-bottom:22px!important}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header h1{font:400 clamp(50px,6.3vw,94px)/1.03 Georgia,serif!important;letter-spacing:-.055em;max-width:990px;color:#fff!important;margin:0 0 16px!important}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header h1 em{color:#e8d8c4!important;font-weight:400}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-seo-intro{max-width:740px;color:#eee8e1;font-size:clamp(16px,1.4vw,20px);line-height:1.72;margin:12px 0 0}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-content{max-width:1380px;margin:0 auto;padding-bottom:100px;color:#514b45}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-content h1,
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-content h2{font:400 clamp(30px,3.5vw,55px)/1.15 Georgia,serif;letter-spacing:-.04em;margin:45px 0 28px;color:#211f1b}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-content .vc_empty_space{max-height:30px!important}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(12px,1.7vw,25px)!important;height:auto!important;width:100%!important;max-width:100%!important;list-style:none!important;padding:0!important;margin:0!important}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul>li{position:relative!important;width:100%!important;max-width:none!important;height:auto!important;left:auto!important;top:auto!important;float:none!important;transform:none!important;margin:0!important;padding:0!important;overflow:hidden!important;aspect-ratio:4/3;background:#e4ded5}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul li a{display:block!important;width:100%!important;height:100%!important}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul li img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;background:#e4ded5;transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .8s ease}
body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul li:hover img{transform:scale(1.035);filter:brightness(1.03)}
body.page-id-70 .sg-okite-gallery{box-shadow:0 18px 50px rgba(34,26,18,.12)}
body.page-id-429 .sg-page-content iframe{width:100%;max-width:100%;aspect-ratio:16/9;height:auto;border:0}
body:not(.home) .sg-premium-related{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding:clamp(35px,5vw,70px);margin:55px 0 75px;background:#e9e0d3}
body:not(.home) .sg-premium-related h2{font:400 clamp(32px,3.5vw,53px)/1.06 Georgia,serif!important;margin:18px 0 0!important}
body:not(.home) .sg-premium-related .eyebrow{font-size:11px;letter-spacing:.15em;color:#766652}
body:not(.home) .sg-premium-related-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;max-width:560px}
body:not(.home) .sg-premium-related-links a{display:inline-flex;align-items:center;gap:20px;border:1px solid #8e8174;padding:13px 16px;text-decoration:none;font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.07em;transition:background .2s,color .2s}
body:not(.home) .sg-premium-related-links a:hover{background:#24201b;color:#fff}
body:not(.home) .sg-inner-is-animated{opacity:0;transform:translate3d(0,25px,0);transition:opacity .75s ease,transform .75s ease}
body:not(.home) .sg-inner-is-animated.sg-inner-visible{opacity:1;transform:none}
body:not(.home) .sg-brand-card,body:not(.home) .sg-machinery-card,body:not(.home) .sg-fiere-card{transition:transform .4s ease,box-shadow .4s ease}
body:not(.home) .sg-brand-card:hover,body:not(.home) .sg-machinery-card:hover,body:not(.home) .sg-fiere-card:hover{transform:translateY(-4px);box-shadow:0 14px 35px rgba(0,0,0,.12)}
@media(max-width:920px){
 body:not(.home) .sg-premium-related{flex-direction:column;align-items:flex-start}
 body:not(.home) .sg-premium-related-links{justify-content:flex-start}
 body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
 body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-wrap{width:calc(100% - 38px)}
 body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header{min-height:420px;padding:105px 19px 70px!important}
 body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-70,.page-id-351,.page-id-436,.page-id-429,.page-id-389) .sg-page-header h1{font-size:clamp(39px,10.5vw,63px)!important}
 body:is(.page-id-118,.page-id-196,.page-id-283,.page-id-351,.page-id-389) .sg-page-content .wpb_image_grid_ul{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body:not(.home) .sg-premium-related{padding:34px 20px}
}
@media(prefers-reduced-motion:reduce){
 body:not(.home) .sg-inner-is-animated{opacity:1!important;transform:none!important;transition:none!important}
 body:not(.home) .sg-page-header:before{transition:none!important;transform:none!important}
}