/* FerroviaZ V13 — melhorias pontuais, mantendo o layout aprovado V12. */
:root{--scroll-progress:0%;--fz-hero-img:url('assets/forge_worker.webp');--fz-base-size:100%;--fz-radius:22px;--fz-motion-time:.72s}
body{font-size:calc(15px * var(--fz-scale,1))}
body[data-motion-speed="slow"]{--fz-motion-time:1s}
body[data-motion-speed="fast"]{--fz-motion-time:.4s}
body:not(.fz-motion) .reveal{opacity:1!important;transform:none!important;transition:none!important}
body:not(.fz-motion) * {scroll-behavior:auto!important}
.header::after{content:"";position:absolute;bottom:-1px;left:0;height:2px;width:var(--scroll-progress);background:var(--lime);pointer-events:none;transition:width .14s linear}
.hero:before{background-image:linear-gradient(90deg,rgba(5,13,10,.88) 0%,rgba(5,13,10,.72) 45%,rgba(5,13,10,.35) 100%),var(--fz-hero-img)!important;background-position:center,right center;background-size:cover,cover;}
body.fz-motion .hero:before{animation:fz-hero-zoom 24s ease-in-out infinite alternate}
@keyframes fz-hero-zoom{from{transform:scale(1)}to{transform:scale(1.055)}}
body.fz-motion .product{transition:transform .42s cubic-bezier(.2,.8,.2,1),box-shadow .42s!important}
body.fz-motion .product:hover{transform:translateY(-8px)}
body.fz-motion .product-top img{transition:transform .52s cubic-bezier(.2,.8,.2,1)}
body.fz-motion .product:hover .product-top img{transform:scale(1.035)}
body.fz-motion .forge-gallery img{transition:transform .6s ease,filter .5s;object-position:center}
body.fz-motion .forge-gallery img:hover{filter:saturate(1.12) brightness(1.04)}
body.fz-motion .btn:hover{box-shadow:0 8px 25px rgba(16,100,57,.22)}
body.fz-motion .reveal{transition:opacity var(--fz-motion-time) ease,transform var(--fz-motion-time) cubic-bezier(.2,.8,.2,1)}
body.fz-motion .stats-grid .stat{transition:background-color .3s ease}
body.fz-motion .stats-grid .stat:hover{background:#f6faf7}
.product,.panel,.ibox,.contact-card,.sidebar{border-radius:var(--fz-radius)!important}
/* overrides only when theme is explicitly changed */
body[data-fz-theme="custom"] .header.scrolled{background:var(--deep)!important}
body[data-fz-theme="custom"] .catalog-band,body[data-fz-theme="custom"] .contact{background:var(--deep)!important}
body[data-fz-theme="custom"] .soft{background:var(--bg)!important}
body[data-fz-theme="custom"] .fbtn.active,body[data-fz-theme="custom"] .fbtn:hover{background:var(--deep)!important}
body[data-fz-theme="custom"] .btn:not(.ghost):not(.outline){background:var(--green)!important;color:#fff!important}
body[data-fz-theme="custom"] .product-top .badge{background:var(--deep)!important}
body[data-fz-theme="custom"] .product-body .textlink{color:var(--green)!important}
.fz-custom-section{overflow:hidden}
.fz-custom-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.fz-custom-copy{max-width:730px}
.fz-custom-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.fz-custom-gallery img{background:#fff;border-radius:18px;width:100%;height:250px;object-fit:cover;border:1px solid var(--line)}
.fz-custom-gallery img:first-child:nth-last-child(odd){grid-column:span 2}
.fz-custom-dark{background:var(--deep);color:#fff}
.fz-custom-dark .upper{color:#fff}
.fz-custom-dark .eyebrow{color:#b3e8c9}
.fz-custom-dark .lead{color:#c5d7cb}
.fz-faq-grid{display:grid;gap:12px;margin-top:20px}
.fz-faq-grid details{border:1px solid #d8e6dc;background:#fff;border-radius:12px;padding:16px;color:#173124}
.fz-faq-grid summary{cursor:pointer;font-weight:800}
.fz-faq-grid p{color:#516657}
[hidden]{display:none!important}
@media(max-width:900px){.fz-custom-inner{grid-template-columns:1fr}.fz-custom-gallery img{height:220px}}
@media(prefers-reduced-motion:reduce){body.fz-motion *,body.fz-motion *::before,body.fz-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal{opacity:1!important;transform:none!important}}

/* Home — Nossa Forjaria */
.forge-home-section{background:linear-gradient(180deg,#f2f6f3 0%,#eef4f0 100%)}
.forge-home-section>.wrap{width:min(1450px,calc(100% - 26px))}
.forge-home-shell{position:relative;overflow:hidden;border-radius:32px;min-height:760px;background:#07110d;border:1px solid rgba(20,84,51,.14);box-shadow:0 28px 70px rgba(4,18,12,.18)}
.forge-home-media,.forge-home-video,.forge-home-video-overlay{position:absolute;inset:0}
.forge-home-video{width:100%;height:100%;object-fit:cover;object-position:center center;background:#06100c}
.forge-home-video-overlay{background:linear-gradient(90deg,rgba(5,15,10,.86) 0%,rgba(5,15,10,.78) 38%,rgba(5,15,10,.55) 62%,rgba(5,15,10,.62) 100%),linear-gradient(180deg,rgba(7,17,13,.26) 0%,rgba(7,17,13,.66) 100%)}
.forge-home-content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:16px;max-width:760px;padding:72px 64px 72px 64px;color:#fff;min-height:760px}
.forge-home-content .eyebrow{color:#9be1bb}
.forge-home-content .upper,.forge-home-content .upper em{color:#fff}
.forge-home-content .upper em{color:#7be0a5;font-style:normal}
.forge-home-content .lead{color:#d8e4dd;font-size:1.03rem;max-width:670px}
.forge-home-content .lead strong{color:#fff}
.forge-home-chips{margin-top:6px}
.forge-home-chips .chip{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.14);backdrop-filter:blur(6px)}
.forge-home-mark{position:absolute;right:32px;bottom:24px;z-index:2;width:min(26vw,370px);max-width:370px;opacity:.94;filter:drop-shadow(0 10px 26px rgba(0,0,0,.28))}
.forge-home-section .hero-actions{margin-top:10px}
.forge-home-section .btn.ghost{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.25);color:#fff}
.forge-home-section .btn.ghost:hover{background:rgba(255,255,255,.1)}
@media (max-width:1150px){.forge-home-section>.wrap{width:min(100%,calc(100% - 24px))}.forge-home-shell{min-height:720px}.forge-home-content{max-width:680px;padding:56px 42px;min-height:720px}.forge-home-mark{width:min(30vw,300px);max-width:300px}}
@media (max-width:920px){.forge-home-section>.wrap{width:calc(100% - 20px)}.forge-home-shell,.forge-home-content{min-height:auto}.forge-home-content{padding:34px 22px 240px 22px;max-width:none}.forge-home-content .lead{font-size:.98rem}.forge-home-mark{right:18px;left:auto;bottom:16px;width:min(42vw,250px);max-width:250px;opacity:.9}}
@media (max-width:640px){.forge-home-section>.wrap{width:calc(100% - 16px)}.forge-home-shell{border-radius:24px}.forge-home-content{padding:28px 18px 180px 18px}.forge-home-content .hero-actions{flex-direction:column;align-items:stretch}.forge-home-content .hero-actions .btn{width:100%;justify-content:center}.forge-home-mark{max-width:190px;width:min(46vw,190px);left:auto;right:12px;bottom:12px}.forge-home-content .lead{font-size:.95rem;line-height:1.62}}
