/*
Theme Name: Comart Digital 3D
Theme URI: https://comartdigital.com/
Author: Comart Digital
Description: Tema institucional editável no Elementor gratuito, com cabeçalho e rodapé globais editáveis.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: comart-3d
*/
:root{--cyan:#19b6b2;--cyan2:#7ce1dd;--night:#071110;--ink:#13201f;--fog:#edf2ef;--cream:#f7f7f2;--line:#b9c5c1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Manrope,Arial,sans-serif}.comart-site-header,.comart-site-footer{position:relative;z-index:30}.comart-header-fallback{height:86px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;background:#f7f7f2;border-bottom:1px solid var(--ink)}.comart-header-fallback img{width:160px}.comart-header-fallback nav{display:flex;gap:24px;font:500 11px 'Roboto Mono',monospace}.comart-header-fallback a{text-decoration:none;color:inherit}.comart-footer-fallback{padding:60px 5vw;background:#e7efec;border-top:1px solid var(--ink);display:flex;justify-content:space-between;gap:30px}.comart-footer-fallback img{width:180px}.elementor-widget-heading h1,.elementor-widget-heading h2,.elementor-widget-heading h3{letter-spacing:-.055em}.comart-hero{min-height:calc(100vh - 86px);background:var(--night);color:#fff}.comart-label{font-family:'Roboto Mono',monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.comart-grid-bg{background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px);background-size:68px 68px}.comart-card{border:1px solid var(--ink);transition:.3s}.comart-card:hover{transform:translateY(-6px)}.comart-logo-3d{filter:none;animation:none}.comart-logo-parts{position:relative;min-height:520px;overflow:hidden}.comart-logo-parts img{position:absolute;width:78%;left:11%;top:12%;animation:comart-assemble 1.8s cubic-bezier(.2,.8,.2,1) both}.comart-logo-parts .part-2{clip-path:inset(43% 0 18%);animation-delay:.18s}.comart-logo-parts .part-3{clip-path:inset(80% 0 0);animation-delay:.36s}.comart-logo-parts .part-1{clip-path:inset(0 0 58%)}@keyframes comart-assemble{0%{opacity:0;transform:translate3d(var(--from-x,-120px),var(--from-y,-80px),0) rotate(-8deg)}100%{opacity:1;transform:none}}@media(max-width:767px){.comart-header-fallback nav{display:none}.comart-footer-fallback{flex-direction:column}.comart-logo-parts{min-height:340px}}

/* Força o sistema tipográfico mesmo quando o Elementor injeta CSS por widget. */
body :where(.elementor,.elementor-section,.elementor-container,.elementor-column,.elementor-widget,.elementor-widget-container,p,li,a,span,input,textarea,select,button,nav,nav *){font-family:"Manrope",Arial,sans-serif!important}
body :where(h1,h2,h3,h4,h5,h6,.elementor-heading-title){font-family:"Manrope",Arial,sans-serif!important;font-style:normal;font-weight:700}
body :where(.comart-label,.elementor-button,.elementor-button-text,.elementor-nav-menu,.elementor-nav-menu *,label,small){font-family:"Manrope",Arial,sans-serif!important}
.comart-serif-accent{font-family:"Times New Roman",Times,serif!important;font-style:normal;font-weight:400}

/* Experiência editorial industrial inspirada na referência, com identidade Comart. */
body{background:#f7f7f3;color:#050505}.comart-site-header{position:sticky;top:0;z-index:99;background:#fff}.comart-site-header .elementor{border-bottom:0}.comart-site-header a{font-weight:600}.comart-site-footer{background:#050505;color:#fff}.comart-site-footer a{color:#b9b9b9}.elementor-button{border-radius:999px!important;padding:14px 23px!important}.elementor-heading-title{line-height:.98!important;letter-spacing:-.055em!important}.comart-hero{background:#050505!important}.comart-card{border-color:#252525!important;border-radius:0!important}.comart-card:hover{transform:translateY(-8px)}.comart-media-archive{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #171717;border-left:1px solid #171717}.comart-media-card{margin:0;padding:18px;border-right:1px solid #171717;border-bottom:1px solid #171717;min-height:320px}.comart-media-card img,.comart-media-card video{display:block;width:100%;height:260px;object-fit:cover}.comart-media-card h3{font-size:15px;line-height:1.25;margin:18px 0 0}.comart-file{height:260px;display:grid;place-items:center;background:#050505;color:#fff!important;font-size:12px;font-weight:700;letter-spacing:.12em}.page .entry-content>*,main#conteudo>*{max-width:none}.page .entry-content{margin:0}@media(max-width:900px){.comart-media-archive{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.comart-media-archive{grid-template-columns:1fr}.elementor-heading-title{letter-spacing:-.04em!important}}

/* Logomarca 3D real do cabeçalho: WebGL com fallback estático. */
.comart-logo-3d-stage{
 display:inline-grid;
 grid-template:1fr/1fr;
 max-width:100%;
 vertical-align:middle;
 isolation:isolate;
 cursor:pointer;
 touch-action:manipulation;
 filter:drop-shadow(0 10px 12px rgba(0,0,0,.18));
}
.comart-logo-3d-stage>img,
.comart-logo-3d-stage>.comart-logo-3d-canvas{
 grid-area:1/1;
 display:block;
 width:100%!important;
 height:100%!important;
 object-fit:contain;
}
.comart-logo-3d-stage>img{opacity:1}
.comart-logo-3d-stage>.comart-logo-3d-static-text{opacity:0}
.comart-logo-3d-stage>.comart-logo-3d-canvas{pointer-events:none;background:transparent}
.comart-logo-3d-stage.is-webgl-ready>img:not(.comart-logo-3d-static-text){opacity:0}
.comart-logo-3d-stage.is-webgl-ready>.comart-logo-3d-static-text{opacity:1}
.comart-logo-3d-stage:focus-visible{outline:2px solid var(--cyan);outline-offset:5px;border-radius:3px}
