/* Silti — layout mobile (≤ 820px). Só CSS + menu; o markup gerado pelo React não muda. */
.sm-burger,.sm-menu{display:none}
@media (max-width:820px){
:root{--header-h:64px;--gutter:20px;--section-y:64px;--fs-display:36px;--fs-h1:36px;--fs-h2:28px;--fs-h3:20px;--fs-lead:17px;--scrim-hero:linear-gradient(180deg,rgba(19,30,39,.5) 0%,rgba(19,30,39,0) 20%,rgba(19,30,39,.1) 36%,rgba(19,30,39,.72) 60%,rgba(19,30,39,.9) 100%)}
html{scroll-padding-top:calc(var(--header-h) + 12px);-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{min-width:0!important}
#root :is(div,p,h1,h2,h3,ul,ol,li,form,label,fieldset,figure,aside){min-width:0}
#root :is(h1,h2,h3,p,blockquote){overflow-wrap:break-word}
#root :is(h1,h2,h3,p){width:auto!important;height:auto!important}

/* base: tudo em uma coluna */
#root [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
#root [style*="sticky"]{position:static!important}
#root [style*="grid-row"]{grid-row:auto!important}
#root [style*="grid-column"]{grid-column:auto!important}
#root :is(:is([style*="gap:96px"],[style*="gap: 96px"]),:is([style*="gap:80px"],[style*="gap: 80px"])){gap:44px!important}
#root :is([style*="gap:56px"],[style*="gap: 56px"]){gap:32px!important}
#root :is(:is([style*="margin-bottom:56px"],[style*="margin-bottom: 56px"]),:is([style*="margin-bottom:64px"],[style*="margin-bottom: 64px"])){margin-bottom:32px!important}
#root :is(:is([style*="margin-bottom:56px"],[style*="margin-bottom: 56px"])):is(:is([style*="justify-content:space-between"],[style*="justify-content: space-between"])){flex-wrap:wrap!important;align-items:flex-start!important;gap:20px!important}

/* cabeçalho fixo + menu */
#root header{position:fixed!important;top:0;left:0;right:0;height:var(--header-h)!important;gap:12px!important;padding:0 calc(var(--gutter) + 56px) 0 var(--gutter)!important;z-index:60!important;transition:background-color .28s var(--ease-out),border-color .28s var(--ease-out),transform .32s var(--ease-out)!important}
#root header>a{flex:none;display:block}
#root header>a>img{height:44px!important;width:auto!important}
#root header>nav{display:none!important}
#root header>button{margin-left:auto;height:40px!important;padding:0 14px!important;font-size:11px!important}
html.sm-tight #root header>button{display:none!important}
html.sm-scrolled #root header{background:var(--navy-900)!important;border-bottom-color:var(--border-inverse)!important}
html.sm-hide #root header,html.sm-hide .sm-burger{transform:translateY(calc(-1 * var(--header-h) - 4px))}
#root :is([data-screen-label="obras"],[data-screen-label="contato"]){padding-top:var(--header-h)}
#root :is([data-screen-label="obras"],[data-screen-label="contato"])>section:first-of-type{padding-top:40px!important}

.sm-burger{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:fixed;z-index:70;top:calc((var(--header-h) - 44px) / 2);right:var(--gutter);width:44px;height:44px;margin:0;padding:0;color:var(--text-on-inverse);background:color-mix(in srgb,var(--text-on-inverse) 8%,transparent);border:1px solid color-mix(in srgb,var(--text-on-inverse) 50%,transparent);border-radius:var(--radius-sm);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .32s var(--ease-out),background-color .16s var(--ease-out)}
.sm-burger>span{display:block;width:18px;height:1.5px;background:currentColor;transition:transform .28s var(--ease-out)}
html.sm-open .sm-burger>span:first-child{transform:translateY(3.75px) rotate(45deg)}
html.sm-open .sm-burger>span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
.sm-menu{display:flex;flex-direction:column;position:fixed;inset:0;z-index:65;padding:calc(var(--header-h) + 12px) var(--gutter) calc(28px + env(safe-area-inset-bottom));background:var(--navy-950);color:var(--text-on-inverse);overflow-y:auto;overscroll-behavior:contain;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .28s var(--ease-out),transform .28s var(--ease-out),visibility 0s linear .28s}
html.sm-open .sm-menu{opacity:1;visibility:visible;transform:none;transition:opacity .28s var(--ease-out),transform .28s var(--ease-out),visibility 0s}
html.sm-open,html.sm-open body{overflow:hidden!important}
html.sm-open #root header{z-index:66!important;transform:none!important;background:transparent!important;border-bottom-color:var(--border-inverse)!important}
html.sm-open #root header>button{visibility:hidden}
html.sm-open #root a[aria-label="WhatsApp"]{opacity:0;pointer-events:none}
.sm-nav{display:flex;flex-direction:column}
.sm-nav a,.sm-nav a:hover{display:flex;align-items:center;min-height:60px;border-bottom:1px solid var(--border-inverse);color:var(--text-on-inverse);text-decoration:none;font:var(--weight-medium) 15px/1.2 var(--font-sans);letter-spacing:.1em;text-transform:uppercase}
.sm-nav a[aria-current="page"]{color:var(--copper-300)}
.sm-nav a[aria-current="page"]::before{content:"";width:24px;height:1px;margin-right:14px;background:var(--accent)}
.sm-cta{display:flex;flex-direction:column;gap:10px;margin-top:32px}
.sm-btn,.sm-btn:hover{display:flex;align-items:center;justify-content:center;gap:12px;height:54px;padding:0 20px;border-radius:var(--radius-sm);font:var(--weight-medium) 13px/1 var(--font-sans);letter-spacing:var(--tracking-button);text-transform:uppercase;text-decoration:none}
.sm-btn-p,.sm-btn-p:hover{background:var(--accent);border:1px solid var(--accent);color:var(--text-on-inverse)}
.sm-btn-wa,.sm-btn-wa:hover{background:var(--whatsapp);border:1px solid var(--whatsapp);color:var(--navy-950)}
.sm-btn:active{transform:translateY(1px)}
.sm-i{flex:none;width:18px;height:18px;background-color:currentColor}
.sm-i-arrow{-webkit-mask:url(assets/icons/lucide/arrow-right.svg) center/contain no-repeat;mask:url(assets/icons/lucide/arrow-right.svg) center/contain no-repeat}
.sm-i-wa{-webkit-mask:url(assets/icons/brand/whatsapp.svg) center/contain no-repeat;mask:url(assets/icons/brand/whatsapp.svg) center/contain no-repeat}
.sm-meta{margin:auto 0 0;padding-top:28px;font:var(--weight-regular) 14px/1.6 var(--font-sans);color:var(--text-on-inverse-muted)}
.sm-meta a,.sm-meta a:hover{color:var(--text-on-inverse)}

/* home: hero */
#root [data-screen-label="home"]>section:first-of-type{height:100vh!important;height:100svh!important;min-height:600px!important;max-height:none}
#root [data-screen-label="home"]>section:first-of-type>img,#root [data-screen-label="home"]>section:first-of-type>picture>img{inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:none!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2){padding:0 var(--gutter) 28px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div{flex-direction:column!important;align-items:stretch!important;gap:22px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:first-child{gap:16px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child{align-items:stretch!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child>div{gap:8px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child>div>span{margin-right:auto}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child button{width:40px!important;height:40px!important}
#root [data-screen-label="home"] h1+div{margin-top:4px!important;gap:10px!important}
#root [data-screen-label="home"] h1+div>button{flex:1 1 auto;height:52px!important;padding:0 10px!important;font-size:11px!important}

/* home: números abaixo do hero */
#root [style*="minmax(220px, 1fr)"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root [style*="minmax(220px, 1fr)"]>div{flex-direction:column!important;gap:6px!important;padding:20px 8px!important;border-left:0!important;text-align:center}
#root [style*="minmax(220px, 1fr)"]>div:nth-child(even){border-left:1px solid var(--border-inverse)!important}
#root [style*="minmax(220px, 1fr)"]>div:nth-child(n+3){border-top:1px solid var(--border-inverse)}
#root [style*="minmax(220px, 1fr)"]>div>span:first-child{font-size:30px!important}
#root [style*="minmax(220px, 1fr)"]>div>span:last-child{font-size:13px!important;max-width:150px!important}
#root img[alt="15 anos Silti Construtora"]{width:76%!important;max-width:300px!important}

/* lista de serviços */
#root a[style*="56px minmax"]{grid-template-columns:32px minmax(0,1fr) 20px!important;gap:14px!important;padding:22px 0!important}
#root a[style*="56px minmax"]>span:first-child>span{width:24px!important;height:24px!important}
#root a[style*="56px minmax"]>span[aria-hidden]{width:18px!important;height:18px!important}

/* home: obras em carrossel horizontal */
#root [style*="1.3fr 1fr 1fr"]{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:min(80%,340px);gap:12px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter);scroll-padding-inline:var(--gutter);scrollbar-width:none}
#root [style*="1.3fr 1fr 1fr"]::-webkit-scrollbar{display:none}
#root [style*="1.3fr 1fr 1fr"]>*{scroll-snap-align:start}
#root [style*="1.3fr 1fr 1fr"] figure>div{aspect-ratio:4/5!important}
#root [style*="1.3fr 1fr 1fr"] figure>div>div:last-child{left:18px!important;right:18px!important;bottom:18px!important}
#root [style*="1.3fr 1fr 1fr"] figure>div>div:last-child>span{display:none}

/* 5 passos: linha do tempo vertical */
#root ol[style*="repeat(5"]{grid-template-columns:minmax(0,1fr)!important;gap:0!important;margin-left:6px!important}
#root ol[style*="repeat(5"]>li{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:start;padding:0 0 28px 26px!important;border-top:0!important;border-left:1px solid var(--border-inverse)}
#root ol[style*="repeat(5"]>li:last-child{padding-bottom:0!important;border-left-color:transparent;background:linear-gradient(var(--border-inverse),var(--border-inverse)) 0 0/1px 14px no-repeat border-box}
#root ol[style*="repeat(5"]>li>span:first-child{display:none!important}
#root ol[style*="repeat(5"]>li>span:nth-child(2){top:7px!important;left:-7px!important}
#root ol[style*="repeat(5"]>li>div:nth-of-type(1){grid-row:1/span 2!important;margin:0!important;font-size:26px!important}
#root ol[style*="repeat(5"]>li>div:nth-of-type(2){margin-bottom:4px!important;padding-top:2px;font-size:18px!important}

/* depoimentos: um por vez, as setas trocam */
#root section:has(blockquote)>div>div:first-child:is(:is([style*="margin-bottom:56px"],[style*="margin-bottom: 56px"])){flex-wrap:nowrap!important;align-items:flex-end!important;gap:16px!important}
#root section:has(blockquote)>div>div:first-child>div:last-child{flex:none}
#root div:has(>figure>blockquote){grid-template-columns:minmax(0,1fr)!important}
#root div:has(>figure>blockquote)>figure:nth-child(n+2){display:none!important}
#root figure:has(>blockquote){padding:24px!important;gap:18px!important;height:auto!important}

/* missão, visão e valores · FAQ */
#root [style*="minmax(260px, 1fr)"]{gap:28px!important}
#root [style*="minmax(260px, 1fr)"]>div{padding-top:20px!important;gap:12px!important}
#root button[aria-expanded]{padding:20px 0!important;gap:16px!important;font-size:17px!important}
#root button[aria-expanded]+div p{padding:0 0 22px!important}

/* formulários e CTA */
#root form [style*="repeat(2, minmax(0"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root form>div:last-child{width:100%}
#root form button[type="submit"]{width:100%;height:56px!important}
#root section a[href^="https://wa.me"]{width:100%;height:54px!important}

/* rodapé e WhatsApp */
#root footer{padding:56px var(--gutter) calc(92px + env(safe-area-inset-bottom))!important}
#root footer>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:36px 20px!important}
#root footer>div:first-child>div:first-child,#root footer>div:first-child>div:last-child{grid-column:1/-1!important}
#root footer>div:first-child>div:first-child{gap:18px!important}
#root footer>div:first-child>div:first-child img{height:88px!important}
#root footer>div:first-child>div:nth-child(2){gap:0!important}
#root footer>div:first-child>div:nth-child(2)>div{margin-bottom:10px!important}
#root footer>div:first-child>div:nth-child(2)>a{padding:6px 0}
#root footer>div:last-child{flex-direction:column!important;gap:8px!important;margin-top:40px!important}
#root a[aria-label="WhatsApp"]{right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;height:52px!important;padding:0 14px!important}

/* sobre e serviços: banner */
#root :is([data-screen-label="sobre"],[data-screen-label="servicos"])>section:first-of-type{height:460px!important}
#root :is([data-screen-label="sobre"],[data-screen-label="servicos"])>section:first-of-type>div:last-child{bottom:32px!important;gap:14px!important}

/* sobre: história, equipe, números, eventos */
#root li[style*="120px 1fr"]{grid-template-columns:64px minmax(0,1fr)!important;gap:14px!important;padding:18px 0!important}
#root li[style*="120px 1fr"]>span:first-child{font-size:26px!important}
#root li[style*="120px 1fr"]>span:last-child{padding-top:2px!important}
#root div[style*="repeat(5"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 14px!important}
#root div[style*="repeat(5"]>figure{gap:12px!important}
#root div[style*="repeat(5"]>figure:first-child{grid-column:1/-1!important}
#root div[style*="repeat(5"]>figure:first-child>div{aspect-ratio:4/3!important}
#root div[style*="repeat(5"]>figure:first-child img{object-position:50% 24%!important}
#root div[style*="repeat(5"] figcaption>span:first-child{font-size:17px!important}
#root div[style*="repeat(5"] figcaption>span:nth-child(2){font-size:10px!important;letter-spacing:.14em!important}
#root div[style*="repeat(5"]+div{margin-top:32px!important;padding-top:24px!important;gap:6px 12px!important}
#root div[style*="repeat(5"]+div>span:first-child{font-size:44px!important}
#root div[style*="repeat(5"]+div>span:last-child{font-size:17px!important}
#root div[style*="repeat(4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root div[style*="repeat(4"]>div{padding:26px 8px!important;border-left:0!important}
#root div[style*="repeat(4"]>div:nth-child(even){border-left:1px solid var(--border-inverse)!important}
#root div[style*="repeat(4"]>div:nth-child(n+3){border-top:1px solid var(--border-inverse)}
#root div[style*="repeat(4"]>div>div{gap:10px!important}
#root div[style*="repeat(4"]>div>div>div:first-child{font-size:40px!important}
#root div[style*="repeat(4"]>div>div>div:last-child{font-size:14px!important}
#root [style*="container-type"]>div:first-child{display:none!important}
#root [style*="scroll-snap-type"]{gap:14px!important;margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter);scroll-padding-inline:var(--gutter);overscroll-behavior-x:contain}
#root [style*="scroll-snap-type"]>div{flex:0 0 min(86%,420px)!important;gap:14px!important}
#root [style*="scroll-snap-type"]>div>:first-child{aspect-ratio:4/3!important}

/* obras e projetos */
#root [data-screen-label="obras"]>section:first-of-type>div>div:nth-child(2){margin:28px 0 24px!important}
#root [data-screen-label="obras"]>section:first-of-type>div>div:nth-child(2)>button{flex:1 1 0;height:44px!important;padding:0 12px!important}
#root [data-screen-label="obras"]>section:first-of-type>div>div:nth-child(3){gap:32px!important}
#root [data-screen-label="obras"] figcaption{flex-direction:column-reverse!important;align-items:flex-start!important;gap:6px!important}
#root [data-screen-label="obras"]>section:nth-of-type(2){padding:56px 0!important}
#root [data-screen-label="obras"]>section:nth-of-type(2)>div{gap:24px!important}
}
@media (max-width:820px) and (prefers-reduced-motion:no-preference){
#root section:has(>[style*="minmax(220px, 1fr)"]){position:relative;overflow:hidden}
#root section:has(>[style*="minmax(220px, 1fr)"])::after{content:"";position:absolute;left:50%;top:18px;bottom:18px;width:1px;background:var(--border-inverse);pointer-events:none}
#root [style*="minmax(220px, 1fr)"]{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:50%;padding:0!important}
#root [style*="minmax(220px, 1fr)"]>div:nth-child(n){padding:24px 12px!important;border:0!important}
#root [style*="minmax(220px, 1fr)"]>div>span:first-child{font-size:34px!important}
html.sm-stat-go #root [style*="minmax(220px, 1fr)"]{transform:translateX(-50%);transition:transform .7s var(--ease-inout)}
}
@media (max-width:359px){#root header>button{display:none!important}}
@media (min-width:600px) and (max-width:820px){
#root div[style*="repeat(5"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#root div[style*="repeat(5"]>figure:first-child{grid-column:auto!important}
#root div[style*="repeat(5"]>figure:first-child>div{aspect-ratio:3/4!important}
#root div:has(>figure>blockquote){grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root div:has(>figure>blockquote)>figure:nth-child(2){display:flex!important}
#root [data-screen-label="obras"]>section:first-of-type>div>div:nth-child(3){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:32px 16px!important}
#root form>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:820px){
:root{--tracking-display:0;--tracking-heading:0;--tracking-eyebrow:0;--tracking-button:0}
#root h1+div>button{min-width:0;flex:1 1 140px!important;padding-inline:10px!important;font-size:11px!important;gap:8px!important}
#root :is(input,select,textarea){font-size:16px!important;max-width:100%}
#root ol[style*="repeat(5"]>li>div:last-child{grid-column:2!important}
#root footer>div:first-child>div:first-child p{max-width:none!important}
#root [style*="gap:64px"],#root [style*="gap: 64px"],#root [style*="gap:72px"],#root [style*="gap: 72px"]{gap:44px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child{align-items:flex-start!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child>div{gap:12px!important}
#root [data-screen-label="home"]>section:first-of-type>div:nth-of-type(2)>div>div:last-child>div>span{margin-right:0!important}
#root [style*="minmax(220px, 1fr)"]>div>span:first-child{font-family:var(--font-detail)!important}
.sm-menu,.sm-nav a,.sm-btn{letter-spacing:0}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){.sm-menu,.sm-burger,.sm-burger>span,#root header{transition:none!important}}
