/* Materia: navigation, inner pages and accessible responsiveness */

/* Homepage: slider edge-to-edge, transparent navigation over photography */
body.home .sg-home{padding-top:0!important;margin-top:0!important;min-height:0!important;background:transparent!important}
body.home .sg-home>.hero{margin-top:0!important;min-height:100svh!important}
body.home .sg-head{position:absolute!important;top:0!important;left:0!important;right:0!important;height:104px!important;background:linear-gradient(180deg,rgba(12,11,10,.63),rgba(12,11,10,0))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-bottom-color:rgba(255,255,255,.16)!important}
body.home .sg-logo img{width:auto!important;height:76px!important;max-width:210px!important;max-height:76px!important;object-fit:contain!important}
body.home .hero h1{font-size:clamp(56px,6.35vw,110px)!important;line-height:1.01!important;letter-spacing:-.04em!important;max-width:980px!important}
body.home .hero-copy{padding-bottom:10vh!important}
@media(max-width:900px){body.home .sg-head{height:78px!important;background:rgba(17,16,14,.86)!important}body.home .sg-logo img{height:60px!important;max-height:60px!important;max-width:155px!important}body.home .hero h1{font-size:clamp(46px,11.2vw,75px)!important;line-height:1.05!important}body.home .hero-copy{padding-bottom:84px!important}}


/* Historical realizations landing — Materia draft only */
.sg-realizations-intro{max-width:850px;color:#655e54;font-size:clamp(17px,1.5vw,21px);line-height:1.65;margin:28px 0 0}
.sg-realization-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px;row-gap:80px;padding:20px 0 75px}
.sg-realization-card{min-width:0}
.sg-realization-card>a{text-decoration:none;display:block}
.sg-realization-photo{width:100%;height:clamp(270px,33vw,465px);background:#ddd5c9;overflow:hidden}
.sg-realization-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.sg-realization-card a:hover img{transform:scale(1.04)}
.sg-realization-placeholder{height:100%;display:grid;place-items:center;font-family:Georgia,serif;font-size:clamp(80px,10vw,160px);color:#a89a87}
.sg-realization-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c8c0b4;padding:25px 0 14px;gap:20px}
.sg-realization-title h2{font:400 clamp(27px,3vw,43px)/1.13 Georgia,serif;margin:0}
.sg-realization-title span{font-size:26px}
.sg-realization-card p{margin:18px 0 12px;color:#5b554c;font-size:15px;line-height:1.65}
.sg-realization-card small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#83786b}
@media(max-width:720px){.sg-realization-grid{grid-template-columns:1fr;gap:42px}.sg-realization-photo{height:300px}.sg-realization-title{padding-top:18px}}

body:not(.home) .sg-head{position:relative;background:#171614;border-bottom-color:#4b453d}
body:not(.home) .sg-inner-page{padding-top:75px}
.sg-menu-toggle{cursor:pointer;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.sg-menu-toggle:focus-visible,.sg-nav a:focus-visible,.sg-submenu a:focus-visible{outline:2px solid #e8cba0;outline-offset:4px}
.sg-nav a{transition:opacity .18s ease}.sg-nav a:hover{opacity:.72}
.sg-socials a{transition:transform .2s ease,background-color .2s ease,border-color .2s ease}
.sg-socials a:hover{transform:translateY(-3px);background:rgba(255,255,255,.12);border-color:#e0cfb6}
.sg-socials a:focus-visible{outline:2px solid #e0cfb6;outline-offset:3px}
/* Border belongs to the top-level contact link, never to submenu last items. */
.sg-nav .sg-submenu a{border:0!important;padding:7px 0!important}
.sg-menu-group:focus-within .sg-submenu{opacity:1;visibility:visible;transform:none}
.sg-page-content .wpb_gallery_slides ul{display:flex;flex-wrap:wrap;gap:14px;padding:0;list-style:none}
.sg-page-content .wpb_gallery_slides li{flex:0 1 180px;margin:0}
.sg-page-content .wpb_gallery_slides img{width:100%;height:auto;display:block}
.sg-page-content .vc_row .vc_row{width:100%}
.sg-page-content .wpb_wrapper{max-width:100%}
.sg-page-content .vc_empty_space{max-height:56px}
.sg-page-content .wpb_video_widget,.sg-page-content iframe{max-width:100%}
@media(max-width:900px){
.sg-head{position:relative!important}
.sg-menu-toggle{display:flex!important}
.sg-nav{max-height:calc(100dvh - 78px);overflow-y:auto;box-shadow:0 18px 36px rgba(0,0,0,.24)}
.sg-nav:not(.open){display:none!important}
.sg-nav.open{display:flex!important}
.sg-submenu{display:flex;flex-direction:column;gap:2px}
.sg-submenu a{padding:8px 0;min-height:38px}
.sg-shop-nav{display:inline-block}
body:not(.home) .sg-inner-page{padding-top:42px}
.sg-page-content .wpb_gallery_slides li{flex:1 1 calc(50% - 10px)}
.sg-page-content .vc_row,.sg-page-content .vc_column-inner{max-width:100%}
}
@media(max-width:480px){.sg-logo img{max-width:140px}.sg-page-content .wpb_gallery_slides li{flex:1 1 100%}}

/* WPBakery legacy Flexslider gallery: prevent blank panels on Materia. */
.sg-page-content .wpb_flexslider .slides{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none!important;margin:0!important;padding:0!important;transform:none!important;width:100%!important}
.sg-page-content .wpb_flexslider .slides>li{display:block!important;float:none!important;position:static!important;opacity:1!important;width:auto!important;margin:0!important}
.sg-page-content .wpb_flexslider .slides>li img{display:block!important;width:100%!important;height:auto!important;max-height:340px;object-fit:cover}
.sg-page-content .wpb_flexslider .flex-control-nav,.sg-page-content .wpb_flexslider .flex-direction-nav{display:none!important}
.sg-page-content .wpb_flexslider{background:transparent!important;box-shadow:none!important;border:0!important;max-width:100%!important}
.sg-legacy-button{display:inline-flex;align-items:center;justify-content:center;margin:20px 0;padding:13px 22px;border:1px solid #171614;text-decoration:none!important;text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:700;transition:background-color .2s,color .2s}
.sg-legacy-button:hover{background:#171614;color:#fff}
@media(max-width:550px){.sg-page-content .wpb_flexslider .slides{grid-template-columns:1fr}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.sg-nav a{transition:none}}



/* OKITE compact horizontal gallery — replaces tall image grid */
.sg-page-content .sg-okite-gallery{position:relative;width:100%!important;overflow:hidden!important;margin:0 0 30px}
.sg-page-content .sg-okite-gallery ul.slides{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:thin;scroll-padding-inline:0;padding:0 0 12px!important;margin:0!important;transform:none!important;grid-template-columns:none!important;overscroll-behavior-x:contain}
.sg-page-content .sg-okite-gallery ul.slides>li,.sg-page-content .sg-okite-gallery ul.slides>li:first-child{display:block!important;flex:0 0 88%!important;grid-column:auto!important;max-width:88%!important;width:88%!important;min-width:0!important;scroll-snap-align:start;overflow:hidden!important;float:none!important}
.sg-page-content .sg-okite-gallery ul.slides>li img,.sg-page-content .sg-okite-gallery ul.slides>li:first-child img{display:block!important;width:100%!important;height:clamp(250px,30vw,395px)!important;object-fit:contain!important;background:#e5dfd4!important;opacity:1!important}
.sg-page-content .sg-okite-gallery:after{content:"SCORRI LE FOTOGRAFIE  →";display:block;font-size:11px;letter-spacing:.14em;font-weight:700;color:#5f5548;margin-top:7px}
@media(max-width:600px){.sg-page-content .sg-okite-gallery ul.slides>li,.sg-page-content .sg-okite-gallery ul.slides>li:first-child{flex-basis:91%!important;width:91%!important;max-width:91%!important}.sg-page-content .sg-okite-gallery ul.slides>li img,.sg-page-content .sg-okite-gallery ul.slides>li:first-child img{height:260px!important}}

/* Large premium Materia photo selector replaces legacy WPBakery slider */
.sg-material-gallery{width:100%;max-width:100%;margin:0 auto 30px}
.sg-material-main{position:relative;width:100%;min-height:350px;aspect-ratio:4/3;overflow:hidden;background:#ded8cd;border-radius:3px}
.sg-material-main img{display:block;width:100%!important;height:100%!important;position:absolute;inset:0;object-fit:cover;object-position:center;box-shadow:none}
.sg-material-counter{position:absolute;bottom:14px;right:15px;z-index:2;background:rgba(23,22,20,.8);color:#fff;padding:6px 12px;font-size:12px;letter-spacing:.1em}
.sg-material-thumbs{display:flex;gap:10px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:12px 1px 15px;scrollbar-width:thin}
.sg-material-thumb{flex:0 0 88px;width:88px;height:76px;overflow:hidden;border:2px solid transparent;border-radius:2px;background:#ddd5c8;padding:0;cursor:pointer;opacity:.75}
.sg-material-thumb.is-selected{border-color:#211e19;opacity:1}
.sg-material-thumb img{width:100%!important;height:100%!important;object-fit:cover}
.sg-material-thumb:focus-visible{outline:3px solid #886c47;outline-offset:3px}
@media(min-width:1100px){.sg-material-main{min-height:430px}}
@media(max-width:650px){.sg-material-main{min-height:260px;aspect-ratio:4/3}.sg-material-thumb{flex-basis:75px;width:75px;height:65px}}

