/* ============================================================
   CLIENTE TGA - Portal do Cliente
   Linguagem visual: corporativa premium / editorial.
   Regua de espacamento generosa, linhas-guia visiveis,
   azul da marca estrutural, indice lateral fixo, numeracao
   de secoes, cards em sistema unico.

   1.  Tokens
   2.  Reset e base
   3.  Tipografia + escala
   4.  Top-bar fixa
   5.  Indice lateral (.nav)
   6.  Botoes flutuantes (FAB)
   7.  Hero
   8.  Botoes (.btn)
   9.  Secoes de conteudo (section[data-title]) + numeracao
   10. Cards (grade de recursos)
   11. Contatos por setor
   12. Secoes de marketing (#sectionNNnew) - sobriedade
   13. Busca / filtro
   14. Faixa de CTA e agradecimento
   15. Rodape
   16. Consentimento de cookies
   17. Utilitarios
   18. Responsividade
   19. Movimento reduzido
   ============================================================ */

/* ============ 1. TOKENS ============ */
:root {
    color-scheme: light;

    --brand:        #0a5bd0;
    --brand-600:    #0847a6;
    --brand-050:    #eef4fd;

    --ink:          #10151d;
    --muted:        #55606f;
    --faint:        #8a93a0;

    --bg:           #f5f6f8;
    --surface:      #ffffff;
    --surface-2:    #f7f8fa;
    --rule:         #e4e7ec;
    --rule-strong:  #d3d8df;

    --r:            10px;
    --r-sm:         8px;

    --sh:           0 1px 2px rgba(16, 24, 40, .04), 0 14px 30px -16px rgba(16, 24, 40, .18);
    --sh-pop:       0 10px 40px -8px rgba(16, 24, 40, .22);

    --ease:         cubic-bezier(.4, 0, .2, 1);
    --maxw:         1120px;
    --rail:         244px;
    --topbar:       56px;

    --fs-kicker:    .76rem;
}

body.dark-mode {
    color-scheme: dark;

    --brand:        #3d8bff;
    --brand-600:    #59a0ff;
    --brand-050:    #16243c;

    --ink:          #eceef2;
    --muted:        #a1a9b4;
    --faint:        #79828d;

    --bg:           #0d0f13;
    --surface:      #15181e;
    --surface-2:    #1b1f27;
    --rule:         #262b34;
    --rule-strong:  #333a45;

    --sh:           0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -16px rgba(0, 0, 0, .6);
    --sh-pop:       0 12px 44px -8px rgba(0, 0, 0, .65);
}

/* ============ 2. RESET E BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

/* atributo hidden vence os display: flex/grid dos componentes (usado pela busca) */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: var(--topbar);
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: rgba(10, 91, 208, .16); }

* { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 8px; }

:where(h2, h3)[id] { scroll-margin-top: calc(var(--topbar) + 20px); }
#topo { scroll-margin-top: 0; }

/* ============ 3. TIPOGRAFIA ============ */
h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.kicker,
.hero__kicker,
.sector-title {
    font-size: var(--fs-kicker);
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
}

/* ============ 4. TOP-BAR ============ */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    height: var(--topbar);
    background: var(--brand);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.topbar__inner {
    max-width: calc(var(--maxw) + 48px);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
    font-size: .98rem;
    white-space: nowrap;
}
.topbar__brand:hover { text-decoration: none; }
.topbar__brand img { border-radius: 5px; }
.topbar__brand em {
    font-style: normal;
    font-weight: 500;
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.topbar__links {
    display: flex;
    gap: 22px;
    margin-left: 8px;
}
.topbar__links a {
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    font-weight: 500;
}
.topbar__links a:hover { color: #fff; text-decoration: none; }

.topbar__cta {
    margin-left: auto;
    padding: 8px 16px;
    background: #fff;
    color: var(--brand-600);
    border-radius: var(--r-sm);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}
.topbar__cta:hover { background: rgba(255, 255, 255, .9); text-decoration: none; }

@media (max-width: 860px) {
    .topbar__links { display: none; }
}
@media (max-width: 560px) {
    .topbar__inner { gap: 12px; padding: 0 14px; }
    .topbar__brand em { display: none; }
    .topbar__brand span { font-size: .9rem; }
}
@media (max-width: 480px) {
    .topbar__cta { display: none; }
}

/* ============ 5. INDICE LATERAL (.nav) ============ */
.nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 1250;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 16px;
    background: var(--surface);
    border-left: 1px solid var(--rule-strong);
    box-shadow: var(--sh-pop);
}
.nav.hidden { display: none; }

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: navidx;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav li { border-radius: 6px; }
.nav li:hover { background: var(--surface-2); }
.nav li.dragging { opacity: .5; background: var(--brand-050); }

.nav a {
    display: flex;
    align-items: baseline;
    gap: 11px;
    padding: 9px 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: .87rem;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a::before {
    counter-increment: navidx;
    content: counter(navidx, decimal-leading-zero);
    font-size: .72rem;
    font-weight: 700;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* desktop: vira coluna fixa a esquerda, sempre visivel */
@media (min-width: 1200px) {
    body { padding-left: var(--rail); }

    .nav,
    .nav.hidden { display: block !important; }
    .nav {
        left: 0; right: auto;
        top: var(--topbar);
        width: var(--rail);
        height: calc(100vh - var(--topbar));
        padding: 30px 20px;
        border-left: 0;
        border-right: 1px solid var(--rule);
        box-shadow: none;
        background: var(--surface);
    }
    .nav::before {
        content: "Indice";
        display: block;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--faint);
        margin-bottom: 14px;
    }
}

/* ============ 6. BOTOES FLUTUANTES ============ */
.fab-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.fab {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: var(--sh);
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.fab:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.scroll-to-top-button, #scrollToTopBtn { display: none; }

@media (min-width: 1200px) {
    .fab-menu { display: none; }
}

/* ============ 7. HERO ============ */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(52px, 9vw, 104px) 24px clamp(44px, 6vw, 76px);
    border-bottom: 1px solid var(--rule);
}
.hero__kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
}
.hero__kicker::after {
    content: "";
    width: 64px;
    height: 1px;
    background: var(--rule-strong);
}
.hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.025em;
    margin: 0 0 20px;
    max-width: 20ch;
}
.hero__lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 58ch;
    margin: 0 0 30px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============ 8. BOTOES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ============ 8b. BUSCA + ACESSOS RAPIDOS ============ */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.portal-tools {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 24px 4px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box__icon {
    position: absolute;
    left: 16px;
    color: var(--faint);
    font-size: .95rem;
    pointer-events: none;
}
#siteSearch {
    width: 100%;
    padding: 13px 44px 13px 42px;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-sm);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
#siteSearch::placeholder { color: var(--faint); }
#siteSearch:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-050);
}
#siteSearch::-webkit-search-cancel-button { display: none; }
.search-box__clear {
    position: absolute;
    right: 8px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--faint);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.search-box__clear:hover { color: var(--ink); background: var(--surface-2); }

.search-status {
    margin: 10px 2px 0;
    font-size: .85rem;
    color: var(--muted);
}

.quick-access {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.quick-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 999px;
    transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.quick-item:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-050);
    text-decoration: none;
}
.quick-item i { font-size: .9rem; color: var(--brand); }
.quick-item:hover i { color: var(--brand); }

/* ============ 9. SECOES DE CONTEUDO ============ */
body { counter-reset: sec; }

section[data-title] {
    counter-increment: sec;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(40px, 5.5vw, 68px) 24px;
    border-bottom: 1px solid var(--rule);
}

section[data-title] > h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin: 0 0 30px;
    padding-bottom: 18px;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -.02em;
    text-transform: none;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}
section[data-title] > h2::before {
    content: counter(sec, decimal-leading-zero);
    flex: none;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    transform: translateY(-.15em);
}
section[data-title] > h2 i {
    color: var(--faint);
    font-size: .78em;
    margin-left: 2px;
}

/* Central de Suporte aninhada (Horario e endereco) */
section[data-title] > section.section9new {
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
}
.section9new h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

/* ============ 10. CARDS - GRADE DE RECURSOS ============ */
.carousel-container { width: 100%; }

.carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 184px));
    grid-auto-rows: 1fr;
    justify-content: start;
    gap: 12px;
}

.Downloads-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    color: var(--ink);
    overflow: hidden;
    overflow-wrap: anywhere;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}

.Downloads-item * { min-width: 0; max-width: 100%; }
.Downloads-item:hover {
    border-color: var(--brand);
    box-shadow: var(--sh);
}
.Downloads-item:focus-within { border-color: var(--brand); }

.Downloads-item > .download-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    width: 100%;
    color: inherit;
    font-weight: 600;
}
.Downloads-item > .download-link:hover { text-decoration: none; }

.responsive-image-Downloads {
    width: 100%;
    max-width: 104px;
    height: 60px;
    object-fit: contain;
}
.app-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}
.app-badge .ico { width: 34px; height: 34px; }

.video-title {
    margin-top: auto;
    padding-top: 8px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.download-cta,
.video-title a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand);
}
.download-link i, .download-cta i { font-size: .85rem; }

.responsive-image { width: 100%; height: auto; object-fit: contain; }

/* ============ 11. CONTATOS POR SETOR ============ */
.contact-groups {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-top: 22px;
}

.sector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.sector-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 13px;
    background: var(--brand-050);
    color: var(--brand-600);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .12em;
}
.sector-title i { font-size: .9rem; }

/* Subgrupos dentro de uma secao (ex.: SEFAZ) */
.subgroup + .subgroup { margin-top: 30px; }
.subgroup .sector-title { margin: 0 0 14px; }

/* --- Botoes de copiar --- */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.copy-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
}
.copy-btn.is-done {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-050);
}
.copy-btn i { font-size: .85em; }

.contacts-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 0;
}
.copy-btn--all {
    color: var(--brand-600);
    background: var(--brand-050);
    border-color: transparent;
}
.copy-btn--all:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* --- Feedback de copia --- */
.mini-toast {
    position: fixed;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%) translateY(8px);
    z-index: 1400;
    padding: 9px 18px;
    background: var(--ink);
    color: var(--surface);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 650;
    box-shadow: var(--sh-pop);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.mini-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ 12. SECOES INSTITUCIONAIS / MARKETING ============ */
/* Reescritas no design system (o <style> embutido foi removido).
   Sem degrade, 1 azul, borda 1px, sombra hairline, sem animacao,
   alinhado a esquerda. */

.section2new,
.section10new,
.section11new,
.section17new,
.section19new,
.section8new {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(40px, 5.5vw, 64px) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    text-align: left;
    color: var(--ink);
}

.section2new h2,
.section10new h2,
.section19new .title-text,
.reforma-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: none;
    color: var(--ink);
    margin: 0 0 6px;
}
.section2new h2 .ico,
.section10new h2 .ico,
.reforma-header img,
.title-icon { display: none; }

/* --- section2new: Portal do Cliente --- */
.new-sections-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.new-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    padding: 20px;
}
.new-card h3 { font-size: 1rem; font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.new-card p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.new-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-sm);
    transition: border-color .15s var(--ease);
}
.new-btn:hover { border-color: var(--brand); text-decoration: none; }

/* --- section11new: mockup --- */
.mockup-container {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
    max-width: var(--maxw);
    margin: 0 auto;
}
.mockup-image,
.sabia-image img {
    border: 1px solid var(--rule);
    border-radius: var(--r);
    box-shadow: var(--sh);
    max-width: 460px;
    width: 100%;
    height: auto;
}

/* --- section10new: Segmentos --- */
.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.segment-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    transition: border-color .15s var(--ease);
}
.segment-card:hover { border-color: var(--brand); }
.segment-card img { width: 60px; height: auto; }
.segment-card h3 { font-size: .95rem; font-weight: 650; color: var(--ink); margin: 0; min-height: 2.6em; }
.segment-btn { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--brand); }
.segment-btn:hover { text-decoration: underline; }

/* --- section19new: Modulos --- */
.section19new .container { max-width: var(--maxw); margin: 0 auto; }
.section19new::before { display: none; }
.section-header { text-align: left; margin-bottom: 26px; }
.title-text { display: block; }
.title-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--muted);
    max-width: 60ch;
    margin: 4px 0 0;
}
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.section19new .card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    padding: 22px;
}
.section19new .card::before { display: none; }
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.card-icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-050);
    color: var(--brand);
    border-radius: var(--r-sm);
    font-size: 1rem;
}
.section19new .card h3 { font-size: 1rem; font-weight: 650; color: var(--ink); margin: 0; }
.section19new .card ul { margin: 0; padding: 0; list-style: none; }
.section19new .card ul li {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
    padding: 4px 0;
}
.section19new .card ul li i { color: var(--brand); font-size: .7rem; margin-top: .45em; }

/* --- section17new: Reforma Tributaria --- */
.reforma-container { max-width: var(--maxw); margin: 0 auto; }
.reforma-header { text-align: left; margin-bottom: 22px; }
.reforma-header span { color: var(--brand); }
.reforma-content { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.reforma-text { flex: 1 1 440px; }
.reforma-text h3 { font-size: 1rem; color: var(--ink); margin: 18px 0 4px; }
.reforma-text p,
.reforma-text li { color: var(--muted); font-size: .95rem; }
.reforma-text ul { margin: 6px 0 0 18px; }
.reforma-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: background-color .15s var(--ease);
}
.reforma-btn:hover { background: var(--brand-600); text-decoration: none; }
.reforma-video { flex: 1 1 420px; }
.reforma-video iframe {
    width: 100%;
    height: 300px;
    border: 1px solid var(--rule);
    border-radius: var(--r);
}

/* --- section13new: CTA "nao e cliente" (unica faixa de destaque) --- */
.section13new {
    max-width: var(--maxw);
    margin: 24px auto;
    padding: clamp(40px, 6vw, 64px) 24px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--r);
    border-bottom: 0;
}
.section13new .content { max-width: 640px; }
.section13new h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: #fff; margin: 0 0 8px; }
.section13new p { color: rgba(255, 255, 255, .88); margin: 0 0 22px; }
.section13new .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.section13new .btn {
    padding: 11px 22px;
    border-radius: var(--r-sm);
    font-weight: 650;
    background: #fff;
    color: var(--brand-600);
    border: 1px solid #fff;
    transition: background-color .15s var(--ease);
}
.section13new .btn:hover { background: rgba(255, 255, 255, .9); text-decoration: none; }
.section13new .btn.demo { background: transparent; color: #fff; }
.section13new .btn.demo:hover { background: rgba(255, 255, 255, .12); }

/* --- section8new: fecho compacto --- */
.section8new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    padding: 28px 24px;
}
.thanks-image { display: none; }
.thanks-container { flex: 1 1 320px; }
.thanks-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
    background: none;
    padding: 0;
    box-shadow: none;
}
.thanks-container p { color: var(--muted); font-size: .95rem; margin: 0; }
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-sm);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s var(--ease);
}
.back-to-top-btn:hover { border-color: var(--brand); }

body.dark-mode .section13new { background: #1256a8; }

/* ============ 13. BUSCA (estado durante filtro) ============ */
section.search-filtering .carousel-track { justify-content: start; }

/* ============ 14. INFO-CARDS (Horario e endereco) ============ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    align-items: start;
    margin-top: 4px;
}
.info-card {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
}
.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    margin-bottom: 6px;
}
.info-header .ico { width: 1.1em; height: 1.1em; }
.info-header h3 { font-size: .95rem; font-weight: 650; color: var(--ink); margin: 0; }
.info-card ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.info-card ul li { font-size: .9rem; margin-bottom: 4px; }
.info-card p { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-sm);
}
.info-btn:hover { border-color: var(--brand); text-decoration: none; }
.support-intro { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }

/* ============ 15. RODAPE ============ */
footer { margin-top: 0; }
#footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .68);
    padding: 56px 0 0;
    font-size: .9rem;
    border-top: 2px solid var(--brand);
}
body.dark-mode #footer { background: #090b0e; }
#footer .container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
#footer h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
#footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    justify-content: space-between;
}
#footer .footer-block { flex: 1 1 200px; }
#footer .footer-block h6 {
    margin: 0 0 12px;
    color: #fff;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
#footer .footer-block p { margin: 5px 0; line-height: 1.6; }
#footer .logo-block img { max-width: 116px; margin: 0 0 14px; }
#footer .social-icons {
    list-style: none; margin: 14px 0 0; padding: 0;
    display: flex; gap: 16px;
}
#footer .social-icons a { color: #fff; font-size: 1.15rem; }
#footer .social-icons a:hover { color: var(--brand-600); text-decoration: none; }
#footer .footer-links { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
#footer .footer-links a { color: rgba(255, 255, 255, .78); margin: 0 8px 0 0; }
#footer .footer-links a:hover { color: #fff; }
#footer hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 14px 0; }
#page-version {
    display: inline-block;
    padding: 1px 9px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
#ajudaprojeto { font-weight: 700; color: #fff; }
#rodape { background: #0b0d10 !important; color: rgba(255, 255, 255, .5) !important; }
#rodape a { color: rgba(255, 255, 255, .8) !important; }

/* ============ 16. CONSENTIMENTO DE COOKIES ============ */
.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1300;
    width: min(640px, calc(100% - 24px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 18px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r);
    box-shadow: var(--sh-pop);
}
.cookie-consent p { flex: 1 1 240px; margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.cookie-consent a { color: var(--brand); }
.cookie-consent__actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-btn {
    padding: 8px 16px;
    border: 1px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 650;
    font-size: .82rem;
    cursor: pointer;
}
.cookie-btn:hover { background: var(--brand-600); }
.cookie-btn--ghost { background: transparent; color: var(--muted); border-color: var(--rule-strong); }
.cookie-btn--ghost:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 520px) {
    .cookie-consent__actions { width: 100%; margin-left: 0; }
    .cookie-btn { flex: 1; }
}

/* ============ 17. UTILITARIOS ============ */
.hidden { display: none !important; }
.white-bg { background: var(--surface); }
.pad-min-top-half { padding-top: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.rounded-xl { border-radius: var(--r); }
.shadow-md { box-shadow: var(--sh); }
@media (min-width: 1024px) { .lg\:flex-row { flex-direction: row; } }

/* ============ 18. RESPONSIVIDADE ============ */
@media (max-width: 900px) {
    .hero, section[data-title], section[id^="section"]:not(#footer) {
        padding-left: 16px;
        padding-right: 16px;
    }
    #footer .row { gap: 24px; }
}
@media (max-width: 620px) {
    body { font-size: 15.5px; }
    .hero h1 { font-size: 2rem; }
    .hero__lead { font-size: 1.05rem; }
    section[data-title] > h2 { font-size: 1.3rem; gap: 10px; }
    .carousel-track { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
    .fab { width: 40px; height: 40px; }
}

/* ============ 19. REFINAMENTOS ============ */

/* Coluna de conteudo como "folha" branca continua sobre o fundo */
.hero,
section[data-title] { background: var(--surface); }

/* Titulos: quebra equilibrada, texto de apoio agradavel */
.hero h1, section[data-title] > h2 { text-wrap: balance; }
.hero__lead, .section-lead { text-wrap: pretty; }

/* Sem icones decorativos nos titulos de secao (fica editorial) */
section[data-title] > h2 i { display: none; }
section[data-title] > h2 {
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
}
section[data-title] > h2::before {
    transform: none;
    padding: 3px 7px;
    background: var(--brand-050);
    color: var(--brand-600);
    border-radius: 5px;
    line-height: 1;
}

/* Linha de apoio de cada secao */
.section-lead {
    margin: 0 0 34px;
    max-width: 64ch;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

/* Faixa de horarios no hero */
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 30px;
    list-style: none;
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--rule);
    font-size: .9rem;
    color: var(--muted);
}
.hero__meta strong {
    color: var(--ink);
    font-weight: 650;
    margin-right: 7px;
}

/* Botao primario com um leve realce */
.btn--primary {
    box-shadow: 0 1px 2px rgba(10, 91, 208, .28), 0 6px 16px -8px rgba(10, 91, 208, .5);
}

/* Card: micro-interacao + seta de "abrir" no canto */
.Downloads-item { position: relative; }
.Downloads-item::after {
    content: "\2197";
    position: absolute;
    top: 9px;
    right: 11px;
    font-size: .78rem;
    line-height: 1;
    color: var(--faint);
    opacity: 0;
    transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.Downloads-item:hover {
    transform: translateY(-2px);
}
.Downloads-item:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}
.Downloads-item:hover .video-title { color: var(--ink); }

/* Scroll-spy: item do indice correspondente a secao visivel */
.nav a.is-active {
    color: var(--ink);
    background: var(--brand-050);
}
.nav a.is-active::before { color: var(--brand); }

/* ============ 20. MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .Downloads-item:hover { transform: none; }
}

/* ============================================================
   PATCH — reaplicado apos incidente de edicao (2026-09-07)
   Consolida: contraste, de-pill dos rotulos, icones SVG,
   CLS de imagem, folha de impressao, skip link e responsivo.
   ============================================================ */

:root       { --faint: #6b7480; }
body.dark-mode { --faint: #79828d; }

/* ---- Icones: sprite SVG inline (substituiu o Font Awesome) ---- */
.ico {
    width: 1em;
    height: 1em;
    flex: none;
    display: inline-block;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    overflow: visible;
}
.topbar__brand .ico,
.btn .ico,
.fab .ico          { width: 1.05em; height: 1.05em; }
.fab .ico          { width: 18px; height: 18px; }
.quick-item .ico   { color: var(--brand); }
.sector-title .ico { color: var(--brand); width: .95em; height: .95em; }
.info-header .ico  { width: 1.1em; height: 1.1em; }
.card-icon .ico    { width: 1.15em; height: 1.15em; }
.section19new .card ul li .ico { color: var(--brand); width: .8em; height: .8em; margin-top: .35em; }
section[data-title] > h2 .ico { display: none; }
.copy-btn .ico     { width: .95em; height: .95em; }

/* ---- Rotulos de setor: sem pilula, com filete ---- */
.sector-head {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.sector-title {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--brand-600);
    letter-spacing: .1em;
}
.subgroup .sector-title {
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.copy-btn,
.quick-item { border-radius: var(--r-sm); }
.count-badge { display: none; }

/* ---- Microcopy dos cards ---- */
.item-hint { font-size: .72rem; font-weight: 500; color: var(--faint); }

/* ---- Hover mais sutil ---- */
.Downloads-item:hover { transform: translateY(-1px); }

/* ---- Bloco "Horario e endereco" (agora <h3>) ---- */
.section9new h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

/* ---- CLS: reserva de espaco para imagens sem dimensao ---- */
.mockup-image,
.sabia-image img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--surface-2);
}
.reforma-video iframe { aspect-ratio: 16 / 9; height: auto; }

/* ---- Imagem que nao carrega -> placeholder neutro ---- */
img.img-failed {
    position: relative;
    min-height: 56px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
}
img.img-failed::after {
    content: "\1F5BC";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--faint);
    background: var(--surface-2);
    border-radius: inherit;
}

/* ---- Pular para o conteudo ---- */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: .9rem;
    transform: translateY(-150%);
    transition: transform .15s var(--ease);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---- Responsivo: travas e ajustes finos ---- */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 900px) {
    .portal-tools, #footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 620px) {
    .hero h1 { max-width: 100%; text-wrap: initial; }
    .hero__lead { max-width: 100%; }
    .hero__kicker::after { display: none; }
}
@media (max-width: 380px) {
    .carousel-track { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-access { gap: 6px; }
    .quick-item { padding: 7px 11px; font-size: .8rem; }
}

/* ---- Impressao: so o essencial (lista de contatos) ---- */
@media print {
    .topbar, .nav, .fab-stack, .portal-tools, .cookie-consent,
    .hero__actions, .hero__meta, #searchStatus, .skip-link,
    .section2new, .section10new, .section11new, .section13new,
    .section17new, .section19new, .section8new,
    .copy-btn, .contacts-toolbar, .responsive-image-Downloads,
    .Downloads-item::after {
        display: none !important;
    }
    body { padding: 0; background: #fff; color: #000; font-size: 12pt; }
    #conteudo, .hero, section[data-title] {
        max-width: none; margin: 0; padding: 0 0 12pt; border: 0; box-shadow: none;
    }
    .hero h1 { font-size: 20pt; }
    section[data-title] > h2 { font-size: 14pt; border-bottom: 1px solid #000; }
    section[data-title] > h2::before { display: none; }
    .sector-title { color: #000; }
    .sector-head { border-color: #000; }
    .carousel-track { display: block; }
    .Downloads-item { display: inline-block; width: auto; border: 0; padding: 2pt 12pt 2pt 0; vertical-align: top; }
    .video-title { color: #000; align-items: flex-start; }
    a[href^="http"]::after,
    a[href^="tel"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
}

/* ---- Endurecimento mobile das secoes institucionais ---- */
.reforma-text, .reforma-video { min-width: 0; }
@media (max-width: 700px) {
    .mockup-container { gap: 16px; }
    .reforma-content { gap: 20px; }
    body .section2new, body .section10new, body .section11new,
    body .section17new, body .section19new {
        padding-left: 16px; padding-right: 16px;
    }
    .section13new { margin-left: 12px; margin-right: 12px; padding-left: 20px; padding-right: 20px; }
    .new-sections-container, .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .hero__meta { gap: 4px 18px; font-size: .85rem; }
    .topbar__brand span { font-size: .85rem; }
}
