
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root { --azul: #1a3a5c; --azul-medio: #1e5799; --azul-claro: #2d7fc1; --azul-link: #0d5fa6; --cinza-bg: #f4f5f7; --cinza-borda: #d0d5dd; --cinza-texto: #444; --cinza-leve: #e8eaed; --branco: #ffffff; --verde-destaque: #1a7a3c; --laranja: #d4500a; --fonte: 'Roboto', Arial, Helvetica, sans-serif; --sombra: 0 1px 3px rgba(0,0,0,0.12); }  html { font-size: 14px; scroll-behavior: smooth; overflow-x: hidden; }
  body { font-family: var(--fonte); background: var(--cinza-bg); color: #222; line-height: 1.55; min-height: 100vh; overflow-x: hidden; max-width: 100vw; }
  a { color: var(--azul-link); text-decoration: none; }
  a:hover { text-decoration: underline; color: var(--azul); }
  h1, h2, h3, h4 { font-weight: 700; color: var(--azul); line-height: 1.3; }
  h1 { font-size: 1.55rem; } h2 { font-size: 1.2rem; border-bottom: 2px solid var(--azul-medio); padding-bottom: 5px; margin-bottom: 12px; } h3 { font-size: 1.05rem; color: var(--azul-medio); }
  p { margin-bottom: 10px; color: var(--cinza-texto); }
  ul { padding-left: 18px; margin-bottom: 10px; } li { margin-bottom: 4px; }
  #topbar { background: var(--azul); color: #afc8e8; font-size: 0.78rem; padding: 4px 0; border-bottom: 1px solid #0f2540; }
  #topbar .tb-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
  #topbar a { color: #afc8e8; margin-left: 8px; } #topbar a:hover { color: #fff; }
  #header { background: var(--branco); border-bottom: 3px solid var(--azul-medio); box-shadow: var(--sombra); }
  #header .hd-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .logo-area { display: flex; align-items: center; gap: 12px; }
  .logo-box { width: 44px; height: 44px; background: var(--azul); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -2px; flex-shrink: 0; }
  .logo-text { line-height: 1.1; } .logo-text span.pt1 { display: block; font-size: 1.1rem; font-weight: 800; color: var(--azul); text-transform: uppercase; } .logo-text span.pt2 { display: block; font-size: 0.75rem; color: #777; }
  .header-search { flex: 1; max-width: 520px; display: flex; gap: 0; }
  .header-search input { flex: 1; padding: 8px 12px; border: 2px solid var(--azul-medio); border-right: none; border-radius: 3px 0 0 3px; font-size: 0.9rem; outline: none; }
  .header-search button { padding: 8px 18px; background: var(--azul-medio); color: #fff; border: none; cursor: pointer; border-radius: 0 3px 3px 0; font-size: 0.9rem; font-weight: 600; }
  #nav { background: var(--azul); border-bottom: 2px solid var(--azul-claro); }
  #nav .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; }
  #nav a { display: block; color: #d0e4f5; padding: 10px 14px; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,0.1); }
  #nav a:hover, #nav a.ativo { background: var(--azul-claro); color: #fff; text-decoration: none; }
  #wrapper { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; gap: 20px; align-items: flex-start; }
  #main { flex: 1; min-width: 0; } #sidebar { width: 290px; flex-shrink: 0; }
  .breadcrumb { font-size: 0.8rem; color: #666; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
  .card { background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 3px; padding: 18px; margin-bottom: 16px; box-shadow: var(--sombra); }
  .card-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--branco); background: var(--azul-medio); margin: -18px -18px 14px -18px; padding: 8px 14px; border-radius: 2px 2px 0 0; }
  .tabela-tecnica { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 16px; }
  .tabela-tecnica th { background: var(--azul); color: #fff; padding: 8px 12px; text-align: left; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }
  .tabela-tecnica td { padding: 7px 12px; border-bottom: 1px solid var(--cinza-leve); vertical-align: top; }
  .tabela-tecnica tr:nth-child(odd) td { background: #f9fafc; } .tabela-tecnica tr:hover td { background: #edf2f8; }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
  .badge-ncm { background: #e6f0fa; color: var(--azul-medio); border: 1px solid #b8d1ec; }
  .badge-cnae { background: #e6f4ec; color: var(--verde-destaque); border: 1px solid #9fd3b4; }
  .badge-cfop { background: #fef3e6; color: var(--laranja); border: 1px solid #f0c49a; }
  .badge-cest { background: #f3e6fa; color: #6a1b9a; border: 1px solid #d7b3f0; }
  .badge-cbo { background: #e6faf6; color: #0d6e5a; border: 1px solid #9fd3c7; }
  .badge-nbs { background: #fff3e0; color: #bf360c; border: 1px solid #ffab91; }
  .badge-cst { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
  .badge-nj { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }
  .badge-municipios { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
  /* NAV MOBILE — travado, o que cabe + hamburger canto direito */
  .hamburger-btn { display: none; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 0 14px; height: 100%; align-items: center; justify-content: center; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.15); }
  #nav-mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; }
  #nav-mobile-overlay.open { display: block; }
  #nav-mobile-menu { position: fixed; top: 0; right: 0; width: 270px; height: 100vh; background: var(--azul); z-index: 999; overflow-y: auto; box-shadow: -4px 0 16px rgba(0,0,0,0.35); transform: translateX(110%); transition: transform 0.25s ease; }
  .mob-header { background: var(--azul-medio); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
  .mob-header span { color: #fff; font-weight: 700; font-size: 0.9rem; }
  .mob-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
  #nav-mobile-menu a { display: block; color: #d0e4f5; padding: 13px 20px; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; }
  #nav-mobile-menu.open { transform: translateX(0); }
  .mob-sep { padding: 7px 16px 3px; font-size: 0.68rem; color: #7fa8c8; text-transform: uppercase; letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; }
  @media (max-width: 900px) {
    #nav { position: relative; overflow: hidden; max-width: 100vw; }
    #nav .nav-inner { overflow: hidden; flex-wrap: nowrap; max-width: calc(100vw - 50px); }
    #nav .nav-inner a { white-space: nowrap; flex-shrink: 0; font-size: 0.76rem; padding: 10px 10px; }
    .hamburger-btn { display: flex; position: absolute; right: 0; top: 0; height: 100%; }
  }
  .hero-busca { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%); padding: 32px 24px; border-radius: 4px; margin-bottom: 20px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
  .hero-busca h1 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; } .hero-busca p { color: #b8d4ee; font-size: 0.92rem; margin-bottom: 20px; }
  .hero-form { display: flex; max-width: 680px; margin: 0 auto; gap: 0; }
  .hero-form select { padding: 12px 10px; background: #fff; border: none; border-radius: 4px 0 0 4px; outline: none; min-width: 110px; }
  .hero-form input { flex: 1; padding: 12px 16px; border: none; outline: none; border-left: 1px solid #ddd; }
  .hero-form button { padding: 12px 28px; background: var(--laranja); color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 700; text-transform: uppercase; }
  .modulos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
  .modulo-card { background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 3px; padding: 16px; text-align: center; box-shadow: var(--sombra); border-top: 3px solid var(--azul-medio); display: block; color: inherit; }
  .modulo-card:hover { border-top-color: var(--azul-claro); transform: translateY(-2px); text-decoration: none; }
  .modulo-icon { font-size: 2rem; margin-bottom: 8px; display: block; } .modulo-card h3 { font-size: 1rem; color: var(--azul); } .modulo-card p { font-size: 0.8rem; color: #666; }
  .resultado-item { border-bottom: 1px solid var(--cinza-leve); padding: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
  .resultado-codigo { background: var(--azul); color: #fff; padding: 4px 10px; border-radius: 3px; font-weight: 700; white-space: nowrap; flex-shrink: 0; min-width: 80px; text-align: center; }
  .resultado-info strong { font-size: 0.95rem; color: #1a1a1a; display: block; }
  .detalhe-header { background: var(--branco); border: 1px solid var(--cinza-borda); border-top: 4px solid var(--azul-medio); border-radius: 3px; padding: 18px; margin-bottom: 16px; box-shadow: var(--sombra); }
  .detalhe-codigo-tag { display: inline-block; background: var(--azul); color: #fff; padding: 3px 14px; border-radius: 3px; font-size: 1.1rem; font-weight: 900; margin-bottom: 10px; }
  .detalhe-header h1 { margin-bottom: 8px; font-size: 1.45rem; }
  .faq-item { border-bottom: 1px solid var(--cinza-leve); padding: 10px 0; } .faq-pergunta { font-weight: 700; color: var(--azul-medio); font-size: 0.92rem; margin-bottom: 5px; } .faq-resposta { font-size: 0.88rem; }
  .sb-card { background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 3px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--sombra); }
  .sb-title { background: var(--azul); color: #fff; padding: 8px 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
  .sb-body { padding: 12px; } .sb-links a { display: block; padding: 6px 0; border-bottom: 1px solid var(--cinza-leve); font-size: 0.85rem; } .sb-links .sc { font-size: 0.75rem; color: #999; display: block; }
  .aviso { background: #fff8e1; border: 1px solid #ffe082; border-left: 4px solid #f0a500; padding: 10px 14px; border-radius: 3px; font-size: 0.85rem; color: #6d4c00; margin-bottom: 16px; }
  #footer { background: var(--azul); color: #9ab9d4; margin-top: 24px; padding: 20px 0 0 0; font-size: 0.82rem; }
  .footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 16px 18px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
  .footer-col h4 { color: #d0e6f5; font-size: 0.88rem; margin-bottom: 10px; text-transform: uppercase; } .footer-col a { display: block; color: #9ab9d4; margin-bottom: 5px; font-size: 0.8rem; }
  #footer .footer-bottom { border-top: 1px solid #0f2540; padding: 10px 16px; text-align: center; font-size: 0.77rem; color: #5a7d9a; }
  
  /* ESTILOS DO BANNER LGPD E GRID DE GAVETAS */
  #cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #1a3a5c; color: #fff; padding: 16px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 9999; display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
  #cookie-banner p { margin: 0; color: #d0e4f5; max-width: 900px; }
  #cookie-banner a { color: #fff; text-decoration: underline; }
  #cookie-btn { background: #d4500a; color: #fff; border: none; padding: 8px 24px; font-weight: 700; border-radius: 3px; cursor: pointer; text-transform: uppercase; white-space: nowrap; }
  
  .gavetas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
  .gaveta-item { background: #fff; border: 1px solid var(--cinza-borda); border-radius: 4px; padding: 15px; text-align: center; color: var(--azul); font-weight: 700; text-decoration: none; transition: 0.2s; }
  .gaveta-item:hover { background: var(--azul-medio); color: #fff; text-decoration: none; border-color: var(--azul-medio); }
  
  /* CSS DA TEIA DE ARANHA (LINKS DE SEO) */
  .teia-seo { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--cinza-leve); }
  .teia-seo h2 { font-size: 1.15rem; color: var(--azul); margin-bottom: 12px; border: none; font-weight: 800; }
  .teia-lista { display: flex; flex-direction: column; gap: 8px; }
  .teia-link { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--azul); font-weight: 600; text-decoration: none; padding: 10px 14px; background: #f9fafc; border: 1px solid var(--cinza-leve); border-radius: 4px; transition: 0.2s; }
  .teia-link:hover { background: var(--azul-claro); color: #fff; border-color: var(--azul-claro); text-decoration: none; box-shadow: var(--sombra); }
  .teia-link span { opacity: 0.7; font-size: 0.82rem; font-weight: normal; }
  
  /* Perfil ocupacional CBO e texto SEO NBS renderizados */
  .pag-btn { display: inline-block; padding: 6px 14px; background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 3px; font-size: 0.85rem; color: var(--azul-link); font-weight: 600; }
  .pag-btn:hover { background: var(--azul-medio); color: #fff; text-decoration: none; }
  .pag-ativa { background: var(--azul-medio) !important; color: #fff !important; border-color: var(--azul-medio) !important; }
  .html-content-block { font-size: 0.93rem; line-height: 1.65; color: var(--cinza-texto); margin-top: 12px; }
  .html-content-block b, .html-content-block strong { color: var(--azul); }
  .html-content-block br { display: block; margin: 4px 0; }
  
  @media (max-width: 900px) { #wrapper { flex-direction: column; } #sidebar { width: 100%; } .modulos-grid { grid-template-columns: 1fr 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } #header .hd-inner { flex-wrap: wrap; } .header-search { max-width: 100%; } }
  @media (max-width: 600px) { .modulos-grid, .footer-grid { grid-template-columns: 1fr; } .hero-form { flex-direction: column; } .hero-form input, .hero-form select, .hero-form button { width: 100%; border-radius: 3px; } #cookie-banner { flex-direction: column; text-align: center; padding: 12px; } #cookie-btn { width: 100%; } }
