/* ==========================================================================
   Hospital São Francisco de Assis — folha de estilos do site
   --------------------------------------------------------------------------
   Identidade: azul (confiança, cuidado) + azul-claro de acento,
   usado em pequenas doses (indicadores, ícones e detalhes).
   Tipografia: Source Serif 4 nos títulos (sóbria, institucional) e
   Source Sans 3 no texto — família pensada para trabalhar em conjunto.

   Sumário
   01. Configuração      08. Página interna
   02. Base              09. Construtor de páginas (seções e elementos)
   03. Utilitários       10. Blog
   04. Botões e links    11. Formulários
   05. Cabeçalho e menu  12. Linha do tempo
   06. Hero da home      13. Rodapé, flutuantes e popup
   07. Seções da home    14. Movimento reduzido
   ========================================================================== */

/* 01. Configuração ==========================================================
   Site novo? Comece por aqui. Trocando as fontes e as cores principais, o
   resto acompanha: sombras, escurecimento sobre fotos e contornos de foco
   são calculados a partir delas (color-mix).
   ========================================================================== */
:root {
    /* Fontes (troque também o <link> do Google Fonts em index.php) */
    --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-title: "Source Serif 4", Georgia, "Times New Roman", serif;

    /* Cores principais */
    --brand-800: #0D2F5A;    /* marca: títulos, cabeçalho e fundos escuros */
    --primary-600: #1A5BB0;  /* botões, links e destaques */
    --accent: #8CCBFF;       /* acento: ícones, indicadores e detalhes */
    --mist: #EEF3F9;         /* fundo das seções claras */
    --ink: #0F1E33;          /* texto */

    /* Tons das cores principais (acompanham as de cima) */
    --brand-900: #0A2342;
    --brand-700: #143E74;
    --overlay: #06162C;      /* escurecimento sobre fotos */
    --primary-500: #2470CC;
    --primary-200: #C3D6EE;
    --primary-100: #DDE9F8;
    --accent-hover: #B3DDFF;
    --accent-light: #DCEEFF;

    /* Neutros: fundos, linhas e textos de apoio */
    --white: #FFFFFF;
    --mist-2: #E1E9F4;
    --stripe: #F5F8FC;       /* linhas alternadas das tabelas */
    --line: #D4DEEA;
    --line-strong: #B6C5D8;
    --line-hover: #9DB0C7;   /* borda dos campos com o mouse em cima */
    --ink-2: #33445C;
    --smooth: #56677D;
    --placeholder: #8796AA;

    /* Avisos */
    --error: #B3261E;
    --error-background: #FBEAE8;
    --success: #1E7F55;

    /* Cantos arredondados */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    /* Sombras */
    --shadow-floating: 0 24px 48px -24px color-mix(in srgb, var(--brand-900) 38%, transparent);
    --shadow-light: 0 10px 30px -18px color-mix(in srgb, var(--brand-900) 35%, transparent);

    /* Medidas */
    --margin: clamp(16px, 4vw, 32px);
    --width: 1240px;
    --section-y: clamp(64px, 8vw, 112px);
    --header-height: 80px;
}

/* 02. Base ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.lock-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.01em;
    font-optical-sizing: auto;
    color: var(--brand-800);
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-600); text-underline-offset: .18em; }
a:hover { color: var(--brand-800); }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

::selection { background: var(--accent-light); color: var(--ink); }

iconify-icon.ico {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -.2em;
}
/* Ícone sozinho dentro de um círculo: o desenho (1em) fica no canto da caixa de
   1,15em; com a caixa do tamanho do desenho, ele fica exatamente no centro. */
.floating--top .ico, .floating--whats .ico, .popup__close .ico, .button-icon .ico, .hero__arrow .ico,
.service__arrow .ico, .help__arrow .ico, .block__arrow .ico, .gallery__zoom .ico,
.viewer__button .ico, .social a .ico, .video__play .ico, .status-page__icon .ico {
    width: 1em;
    height: 1em;
}

main:focus { outline: none; }

/* 03. Utilitários ========================================================== */
.container {
    width: min(100% - 2 * var(--margin), var(--width));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Campo isca do anti-spam dos formulários: fora da tela para pessoas */
.field-honeypot {
    position: absolute !important;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.skip-content {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--brand-800);
    color: var(--white);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform .2s;
}
.skip-content:focus { transform: none; color: var(--white); }

.kicker {
    margin: 0 0 .75rem;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--primary-600);
}

.title-section {
    font-size: clamp(1.875rem, 1.35rem + 1.7vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -.015em;
    max-width: 22ch;
}

.lead {
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 62ch;
}

.grid {
    --cols: 3;
    --gap: clamp(16px, 2vw, 24px);
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--gap);
    padding: 0;
    list-style: none;
}
.grid--1 { --cols: 1; }
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }

@media (max-width: 960px) {
    .grid--3, .grid--4 { --cols: 2; }
}
@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { --cols: 1; }
}

.align-start { text-align: left; }
.align-center { text-align: center; }
.align-end { text-align: right; }

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 .5rem;
    font-size: .875rem;
    color: var(--smooth);
}
.meta__cat { font-weight: 700; color: var(--primary-600); }

/* 04. Botões e links ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn .ico { transition: transform .18s; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary-600); color: var(--white); }
.btn--primary:hover { background: var(--brand-800); color: var(--white); }

.btn--accent { background: var(--accent); color: var(--brand-900); }
.btn--accent:hover { background: var(--accent-hover); color: var(--brand-900); }

.btn--outline { border-color: var(--line-strong); color: var(--brand-800); background: transparent; }
.btn--outline:hover { border-color: var(--brand-800); color: var(--brand-800); background: var(--mist); }

.btn--light { border-color: rgba(255, 255, 255, .28); color: var(--white); background: transparent; }
.btn--light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }

.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-weight: 700;
    color: var(--primary-600);
    text-decoration: none;
}
.link-arrow .ico { transition: transform .18s; }
.link-arrow:hover { color: var(--brand-800); }
.link-arrow:hover .ico { transform: translateX(3px); }

.button-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--brand-800);
    font-size: 1.2rem;
    transition: background-color .18s, color .18s, border-color .18s;
}
.button-icon:hover { background: var(--mist); }
.button-icon--outline { border: 1.5px solid var(--line-strong); }
.button-icon--outline:hover { border-color: var(--brand-800); }
.button-icon[disabled] { opacity: .35; pointer-events: none; }

/* 05. Cabeçalho e menu ===================================================== */
.strip-top {
    background: var(--brand-900);
    color: rgba(255, 255, 255, .82);
    font-size: .875rem;
}
.strip-top__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
}
.strip-top__info { display: flex; align-items: center; gap: 8px; margin: 0; }
.strip-top__info .ico { color: var(--accent); }
.strip-top__links {
    display: flex;
    align-items: center;
    gap: 4px 22px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.strip-top a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}
.strip-top a:hover { color: var(--white); }
.strip-top__links li { display: flex; align-items: center; }
.strip-top__info, .strip-top a { white-space: nowrap; }
/* Ícones das redes: área quadrada, centralizada na altura da faixa */
.strip-top__network a { justify-content: center; width: 28px; height: 28px; border-radius: 6px; }
.strip-top__network a:hover { background: rgba(255, 255, 255, .08); }
.strip-top__network .ico { display: block; }
.strip-top__network + .strip-top__network { margin-left: -16px; }
.strip-top :focus-visible { outline-color: var(--accent); }

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(1px)) {
    .header { background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(14px); }
}
.header.is-rolado { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px color-mix(in srgb, var(--brand-900) 50%, transparent); }

.header__in {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--brand-800);
    text-decoration: none;
}
.brand:hover { color: var(--brand-800); }
.brand__badge { width: 44px; height: 44px; flex-shrink: 0; }
.brand__img { display: block; height: 56px; width: auto; }
.drawer__top .brand__img { height: 44px; }
.footer__brand .brand__img { height: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text small { font-size: .78rem; font-weight: 600; color: var(--smooth); letter-spacing: .01em; }
.brand__text strong { font-family: var(--font-title); font-size: 1.25rem; white-space: nowrap; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.brand--white, .brand--white:hover { color: var(--white); }
.brand--white .brand__text small { color: rgba(255, 255, 255, .7); }

.nav { margin-left: auto; }
.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.nav__link:hover, .has-panel.is-open > .nav__link { background: var(--mist); color: var(--brand-800); }
.nav__link.is-active { color: var(--primary-600); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}
.nav__arrow { font-size: .95em; transition: transform .2s; }
.has-panel.is-open .nav__arrow { transform: rotate(180deg); }

.nav__item { position: relative; }
.nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: max-content;
    min-width: 280px;
    max-width: min(620px, 90vw);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: 0 28px 48px -26px color-mix(in srgb, var(--brand-900) 45%, transparent);
    transform: translateX(-50%);
    animation: panel-enter .16s ease-out;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@keyframes panel-enter {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translateX(-50%); }
}
.nav__panel-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__panel--wide { width: min(620px, 90vw); }
.nav__panel--wide .nav__panel-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav__panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
a.nav__panel-link:hover { background: var(--mist); color: var(--brand-800); }
.nav__panel-link[aria-current] { color: var(--primary-600); background: var(--mist); }
.nav__panel-ico { color: var(--smooth); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
a.nav__panel-link:hover .nav__panel-ico, .nav__panel-link[aria-current] .nav__panel-ico { opacity: 1; transform: none; }
.nav__panel-children { margin: 0 0 6px 14px; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--mist-2); }
.nav__panel-children a { display: block; padding: 6px 8px; border-radius: 8px; font-size: .9375rem; color: var(--smooth); text-decoration: none; }
.nav__panel-children a:hover { color: var(--primary-600); background: var(--mist); }
.nav__panel-general {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 4px 2px;
    padding: 12px 10px 6px;
    border-top: 1px solid var(--line);
    color: var(--primary-600);
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
}
.nav__panel-general:hover { color: var(--brand-800); }
.nav__panel-general .ico { transition: transform .15s; }
.nav__panel-general:hover .ico { transform: translateX(3px); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.button-menu {
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    color: var(--brand-800);
}
.button-menu__bars { display: grid; gap: 5px; width: 18px; }
.button-menu__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.button-menu__bars span:last-child { width: 12px; }

/* Gaveta (menu mobile) */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__background {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--brand-900) 55%, transparent);
    animation: shows .2s ease-out;
}
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    background: var(--white);
    animation: drawer-enter .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes drawer-enter { from { transform: translateX(100%); } to { transform: none; } }
@keyframes shows { from { opacity: 0; } to { opacity: 1; } }

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--line);
}
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--brand-800);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}
.drawer__link::-webkit-details-marker { display: none; }
.drawer__link .ico { color: var(--smooth); transition: transform .2s; }
.drawer__group[open] > .drawer__link .ico { transform: rotate(180deg); }
.drawer__group ul { margin: 0; padding: 2px 0 10px; list-style: none; border-bottom: 1px solid var(--line); }
.drawer__group[open] > .drawer__link { border-bottom-color: transparent; }
.drawer__group li a, .drawer__group li span {
    display: block;
    padding: 7px 0 7px 4px;
    color: var(--ink-2);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}
.drawer__group li a[aria-current] { color: var(--primary-600); }
.drawer__child a { padding-left: 20px !important; font-weight: 500 !important; color: var(--smooth) !important; }
.drawer__footer { display: grid; gap: 10px; padding: 16px 20px 24px; border-top: 1px solid var(--line); background: var(--mist); }

@media (max-width: 1100px) {
    :root { --header-height: 68px; }
    .nav, .header__cta { display: none; }
    .button-menu { display: inline-flex; }
    .strip-top__text { display: none !important; } /* Notícias e Trabalhe conosco seguem no menu */
    .header__actions { margin-left: auto; }
    .brand__badge { width: 40px; height: 40px; }
    .brand__text strong { font-size: 1.0625rem; }
    .header .brand__img { height: 48px; }
}
@media (max-width: 720px) {
    .strip-top__in { min-height: 34px; }
    .strip-top__info { font-size: .8125rem; }
    /* Sem redes cadastradas, fica só o telefone; com redes, só os ícones delas */
    .strip-top__links li:not(:first-child) { display: none; }
    .strip-top__links--social li { display: none; }
    .strip-top__links--social li.strip-top__network { display: flex; }
    .strip-top__links--social { gap: 4px; }
    .strip-top__network a { width: 26px; height: 26px; }
    .strip-top__network .ico { font-size: .875rem; }
    .strip-top__network + .strip-top__network { margin-left: 0; }
}
@media (max-width: 480px) {
    .brand__text strong { font-size: clamp(.8125rem, 3.5vw, 1rem); }
    .brand { gap: 10px; }
    .brand__badge { width: 36px; height: 36px; }
    .header .brand__img { height: 42px; }
    .footer__brand .brand__img { height: 56px; }
}
@media (max-width: 340px) {
    .brand { flex-shrink: 1; min-width: 0; }
    .brand__text strong { white-space: normal; font-size: .8125rem; }
    .header .brand__img { height: 36px; }
}
@media (max-width: 420px) {
    .strip-top__info { display: none; }
}

/* 06. Hero da home ========================================================= */
.hero { position: relative; padding-top: clamp(8px, 1.2vw, 16px); }

.hero__frame {
    position: relative;
    margin-inline: clamp(8px, 1.4vw, 24px);
    height: clamp(480px, 74vh, 760px);
    border-radius: clamp(20px, 2.4vw, 34px);
    overflow: hidden;
    background: var(--brand-800);
    isolation: isolate;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__slide.is-active .hero__img { animation: hero-approach 9s ease-out both; }
@keyframes hero-approach { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__shadow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--overlay) 86%, transparent) 0%, color-mix(in srgb, var(--overlay) 45%, transparent) 42%, transparent 72%),
        linear-gradient(to right, color-mix(in srgb, var(--overlay) 55%, transparent) 0%, transparent 60%);
}

.hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: clamp(48px, 7vw, 88px);
    color: var(--white);
}
.hero--with-shortcuts .hero__content { padding-bottom: calc(72px + clamp(32px, 4vw, 56px)); }

.hero__title {
    max-width: 17ch;
    margin: 0 0 .35em;
    font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--white);
}
.hero__text {
    max-width: 46ch;
    margin: 0 0 1.6rem;
    font-size: clamp(1.0625rem, .98rem + .4vw, 1.3125rem);
    color: rgba(255, 255, 255, .88);
}
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .btn { animation: up .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero__slide.is-active .hero__text { animation-delay: .12s; }
.hero__slide.is-active .btn { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__link-total { position: absolute; inset: 0; z-index: 1; }
.hero__content .btn { position: relative; z-index: 2; }
.hero :focus-visible { outline-color: var(--accent); }

.hero__controls {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(20px, 3vw, 36px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-900) 45%, transparent);
    backdrop-filter: blur(8px);
}
.hero--with-shortcuts .hero__controls { bottom: calc(72px + 20px); }
.hero__arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .14); }
.hero .ico-play, .hero.is-paused .ico-pause { display: none; }
.hero.is-paused .ico-play { display: inline-block; }
.hero__dots { display: flex; gap: 6px; padding-inline: 4px; }
.hero__dot {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}
.hero__dot span {
    position: relative;
    display: block;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
}
.hero__dot span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}
.hero__dot.is-active span::after { transform: scaleX(1); }
.hero.is-playing .hero__dot.is-active span::after { animation: progress var(--hero-time, 7s) linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Atalhos rápidos, sobrepostos à base do hero */
.shortcuts {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: -72px;
    border-radius: var(--r-lg);
    background: var(--brand-800);
    box-shadow: var(--shadow-floating);
    overflow: hidden;
}
.shortcut {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 48px 26px 24px;
    color: var(--white);
    text-decoration: none;
    transition: background-color .18s;
}
.shortcut + .shortcut { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
.shortcut:hover { background: var(--brand-700); color: var(--white); }
.shortcut:focus-visible { outline-color: var(--accent); outline-offset: -4px; }
.shortcut__icon { font-size: 1.75rem; color: var(--accent); line-height: 1; }
.shortcut__text { display: grid; gap: 4px; }
.shortcut__text strong { font-size: 1.0625rem; line-height: 1.25; }
.shortcut__text small { font-size: .9rem; color: rgba(255, 255, 255, .72); line-height: 1.35; }
.shortcut__arrow {
    position: absolute;
    top: 22px;
    right: 18px;
    color: rgba(255, 255, 255, .5);
    transition: color .18s, transform .18s;
}
.shortcut:hover .shortcut__arrow { color: var(--accent); transform: translate(2px, -2px); }

@media (max-width: 900px) {
    .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -48px; }
    .shortcut { padding: 20px 36px 20px 18px; }
    .shortcut:nth-child(odd) { box-shadow: none; }
    .shortcut:nth-child(even) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
    .shortcut:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .hero--with-shortcuts .hero__content { padding-bottom: 88px; }
    .hero--with-shortcuts .hero__controls { bottom: 64px; }
}
@media (max-width: 767px) {
    .hero__frame { height: min(82vh, 640px); min-height: 520px; }
    .hero__controls .hero__arrow[data-hero-previous],
    .hero__controls .hero__arrow[data-hero-next] { display: none; }
    .hero__controls { left: 50%; right: auto; transform: translateX(-50%); }
    .hero--with-shortcuts .hero__content { padding-bottom: 120px; }
}
@media (max-width: 440px) {
    .shortcut { flex-direction: column; gap: 10px; padding: 18px 16px; }
    .shortcut__arrow { display: none; }
    .shortcut__text small { font-size: .84rem; }
}

/* 07. Seções da home ======================================================= */
.home-about, .home-services, .home-articles, .home-news, .home-help { padding-block: var(--section-y); }

.header-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.header-section__text { max-width: 760px; }
.header-section__text .lead { margin-bottom: 0; }
.header-section__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (max-width: 760px) {
    .header-section { flex-direction: column; align-items: flex-start; }
}

/* Institucional */
.home-about { padding-top: calc(var(--section-y) + 8px); }
.home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.home-about--no-image .home-about__grid { grid-template-columns: 1fr; }
.home-about__image { margin: 0; }
.home-about__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-xl);
}
.home-about__text .lead { margin-bottom: 0; }
.home-about__body > .btn { margin-top: 36px; }
.home-about--no-image .home-about__text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px clamp(40px, 6vw, 88px);
}
.home-about--no-image .numbers { margin-top: 32px; }
@media (max-width: 900px) { .home-about--no-image .home-about__text { grid-template-columns: 1fr; } }

.numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 40px 0 0;
}
.numbers__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 18px;
    border-top: 2px solid var(--line);
}
.numbers dd {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(2.125rem, 1.6rem + 1.8vw, 3.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--brand-800);
    font-variant-numeric: tabular-nums;
}
.numbers dd span { color: var(--primary-600); margin-left: 2px; }
.numbers dt { font-size: .9375rem; line-height: 1.4; color: var(--smooth); }

@media (max-width: 900px) {
    .home-about__grid { grid-template-columns: 1fr; }
    .home-about__image img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
    .numbers { grid-template-columns: 1fr; gap: 0; }
    .numbers__item { flex-direction: row-reverse; align-items: baseline; justify-content: space-between; padding-block: 14px; border-top-width: 1px; }
}

/* Serviços (tratamentos) */
.home-services { background: var(--mist); }
.services {
    --cols: 4;
    --gap: 20px;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.service {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--brand-800);
    isolation: isolate;
}
.service::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--overlay) 86%, transparent) 0%, color-mix(in srgb, var(--overlay) 10%, transparent) 55%, transparent 100%);
    z-index: 0;
}
.service__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service--link:hover .service__img { transform: scale(1.04); }
.service__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; color: var(--white); }
.service__text h3 { margin: 0; font-size: 1.375rem; color: var(--white); }
.service__text h3 a { color: inherit; text-decoration: none; }
.service__text h3 a::after { content: ""; position: absolute; inset: -400px -40px -40px; }
.service__text p { margin: 8px 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.service__arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--brand-900);
    transition: transform .2s;
}
.service--link:hover .service__arrow { transform: rotate(45deg); }
.service :focus-visible { outline-color: var(--accent); }
@media (max-width: 1100px) { .services { --cols: 3; } }
@media (max-width: 820px) { .services { --cols: 2.2; } }
@media (max-width: 520px) { .services { --cols: 1.25; } }

/* Depoimentos */
.home-testimonials { padding-block: var(--section-y); background: var(--brand-800); color: var(--white); }
.home-testimonials .title-section { color: var(--white); }
.home-testimonials .lead { color: rgba(255, 255, 255, .78); }
.home-testimonials :focus-visible { outline-color: var(--accent); }
.testimonials { display: grid; gap: 20px; }
.testimonials--2 { grid-template-columns: 1.3fr 1fr; }
.testimonials--3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
.testimonials--3 .testimonial--main { grid-row: span 2; }
.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.testimonial--main { background: var(--brand-700); border-color: transparent; }
.testimonial--main blockquote::before {
    content: "\201C";
    display: block;
    height: .55em;
    margin-bottom: 8px;
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
}
.testimonial--main blockquote p {
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -.01em;
    color: var(--white);
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: grid; }
.testimonial figcaption strong { font-size: 1.0625rem; }
.testimonial figcaption small { font-size: .9rem; color: rgba(255, 255, 255, .68); }
@media (max-width: 860px) {
    .testimonials--2, .testimonials--3 { grid-template-columns: 1fr; }
    .testimonials--3 .testimonial--main { grid-row: auto; }
}

/* Notícias */
.card-article { position: relative; }
.card-article__media { border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.card-article__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.card-article:hover .card-article__media img { transform: scale(1.03); }
.card-article__body { padding-top: 18px; }
.card-article h2, .card-article h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.card-article h2 a, .card-article h3 a { color: var(--brand-800); text-decoration: none; }
.card-article h2 a::after, .card-article h3 a::after { content: ""; position: absolute; inset: 0; }
.card-article:hover h2 a, .card-article:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* Acontece */
.home-news { padding-top: 30px; }
.news__item { position: relative; }
.news__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }
.news__legend { padding-top: 12px; }
.news__legend span { font-size: .875rem; font-weight: 700; color: var(--primary-600); }
.news__legend p { margin: 2px 0 0; font-weight: 600; line-height: 1.35; }
.news__legend a { color: var(--ink); text-decoration: none; }
.news__legend a::after { content: ""; position: absolute; inset: 0; }
.news__item:hover a { color: var(--primary-600); }

/* Como ajudar */
.home-help { background: var(--mist); }
.help { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.help--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help__item {
    position: relative;
    min-height: 360px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--brand-800);
    isolation: isolate;
}
.help__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.help__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--overlay) 85%, transparent), transparent 65%); }
.help__item:hover img { transform: scale(1.04); }
.help__text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 36px); color: var(--white); }
.help__text p { margin: 0 0 6px; color: rgba(255, 255, 255, .8); }
.help__text h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); color: var(--white); max-width: 20ch; }
.help__text a { color: inherit; text-decoration: none; }
.help__text a::after { content: ""; position: absolute; inset: 0; }
.help__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--brand-900);
    font-size: 1.2rem;
    transition: transform .2s;
}
.help__item:hover .help__arrow { transform: rotate(45deg); }
.help :focus-visible { outline-color: var(--accent); }
@media (max-width: 860px) { .help--2, .help--3 { grid-template-columns: 1fr; } .help__item { min-height: 300px; } }

/* Parceiros */
.home-partners { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.home-partners__in { display: flex; align-items: center; gap: 32px; }
.home-partners__title {
    flex-shrink: 0;
    max-width: 12ch;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--smooth);
    letter-spacing: 0;
}
.partners-fixed {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0 32px 0 0;
    list-style: none;
    border-right: 1px solid var(--line);
}
.partners-fixed img, .marquee img { max-height: 56px; width: auto; max-width: 150px; object-fit: contain; }
.marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.marquee__strip {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__strip { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
@media (max-width: 860px) {
    .home-partners__in { flex-direction: column; align-items: stretch; }
    .home-partners__title { max-width: none; }
    .partners-fixed { flex-wrap: wrap; justify-content: center; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* 08. Página interna ======================================================= */
.page-header--light { background: var(--mist); }
.page-header__in { padding-block: clamp(32px, 5vw, 56px) clamp(32px, 4.5vw, 52px); }
.page-header--min .page-header__in { padding-bottom: 8px; }
.page-header__title {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(2.125rem, 1.45rem + 2.6vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.08;
}
.page-header__desc {
    max-width: 60ch;
    margin: 16px 0 0;
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    color: var(--ink-2);
}

.page-header--banner { padding-top: clamp(8px, 1.2vw, 16px); }
.page-header__frame {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(260px, 34vw, 400px);
    margin-inline: clamp(8px, 1.4vw, 24px);
    border-radius: clamp(20px, 2.4vw, 34px);
    overflow: hidden;
    background: var(--brand-800);
    isolation: isolate;
}
.page-header__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Sem imagem: a cruz fina do emblema do HSFA, com as pontas sumindo (::before vertical, ::after horizontal) */
.page-header--banner:not(.page-header--with-image) .page-header__frame {
    --cross-x: clamp(72px, 18%, 260px);   /* distância do cruzamento até a borda direita */
    --cross-y: 36%;                       /* altura do cruzamento */
    --cross-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.page-header--banner:not(.page-header--with-image) .page-header__frame::before,
.page-header--banner:not(.page-header--with-image) .page-header__frame::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.page-header--banner:not(.page-header--with-image) .page-header__frame::before {
    top: 0;
    bottom: 0;
    right: var(--cross-x);
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--cross-color) var(--cross-y), transparent);
}
.page-header--banner:not(.page-header--with-image) .page-header__frame::after {
    top: var(--cross-y);
    right: calc(var(--cross-x) - 260px);
    width: 522px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--cross-color) 50%, transparent);
}
.page-header__shadow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, color-mix(in srgb, var(--overlay) 85%, transparent) 0%, color-mix(in srgb, var(--overlay) 25%, transparent) 60%, color-mix(in srgb, var(--overlay) 10%, transparent) 100%);
}
.page-header--banner .page-header__in { width: min(100% - 2 * var(--margin), var(--width)); }
.page-header--banner .page-header__title,
.page-header--banner .page-header__desc { color: var(--white); }
.page-header--banner .page-header__desc { color: rgba(255, 255, 255, .86); }
.page-header--banner .breadcrumb, .page-header--banner .breadcrumb a { color: rgba(255, 255, 255, .78); }
.page-header--banner :focus-visible { outline-color: var(--accent); }

.breadcrumb { margin-bottom: 16px; font-size: .9375rem; color: var(--smooth); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a { color: var(--smooth); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-600); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }
.page-header--banner .breadcrumb [aria-current] { color: var(--white); }

.section-nav { padding-bottom: 24px; }
.page-header--banner .section-nav, .page-header--min .section-nav { padding-top: 20px; }
.section-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.section-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-2);
    font-size: .9375rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s;
}
.section-nav__link:hover { border-color: var(--brand-800); color: var(--brand-800); }
.section-nav__link.is-current { background: var(--brand-800); border-color: var(--brand-800); color: var(--white); }

/* Celular: seletor "Nesta seção" no lugar das abas */
.section-nav__selector { display: none; }
@media (max-width: 720px) {
    .section-nav__list { display: none; }
    .section-nav__selector { display: block; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); }
    .section-nav__selector summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 56px;
        padding: 8px 14px 8px 16px;
        list-style: none;
        cursor: pointer;
    }
    .section-nav__selector summary::-webkit-details-marker { display: none; }
    .section-nav__selector-text { display: grid; min-width: 0; line-height: 1.25; }
    .section-nav__selector-text small { font-size: .75rem; color: var(--smooth); }
    .section-nav__selector-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1rem; color: var(--brand-800); }
    .section-nav__arrow { flex-shrink: 0; font-size: 1.2rem; color: var(--brand-800); transition: transform .2s; }
    .section-nav__selector[open] .section-nav__arrow { transform: rotate(180deg); }
    .section-nav__selector[open] summary { border-bottom: 1px solid var(--line); }
    .section-nav__selector ul { margin: 0; padding: 6px 0; list-style: none; }
    .section-nav__selector li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 46px;
        padding: 0 16px;
        color: var(--ink-2);
        font-weight: 600;
        text-decoration: none;
    }
    .section-nav__selector li a:hover, .section-nav__selector li a:focus-visible { background: var(--mist); }
    .section-nav__selector li a.is-current { color: var(--primary-600); }
    .section-nav__selector li a .ico { color: var(--primary-600); }
}

/* 09. Construtor de páginas ================================================ */
.section { padding-block: clamp(48px, 6.5vw, 96px); }
.section.l-solid, .section.l-box { background: var(--mist); }
.section.l-dark { background: var(--brand-800); color: rgba(255, 255, 255, .88); }

/* seções seguidas com o mesmo fundo não duplicam o respiro */
.section.l-default + .section.l-default,
.section.l-solid + .section.l-solid,
.section.l-dark + .section.l-dark { padding-top: 0; }
.page-header--light + .section.l-solid { padding-top: 8px; }
.page-header--min + .section { padding-top: 32px; }

.section.d-border > .container::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: clamp(40px, 5vw, 64px);
    background: var(--line);
}
.section.l-default + .section.d-border { padding-top: 0; }

.section--curve {
    border-bottom-left-radius: 50% clamp(24px, 4vw, 56px);
    border-bottom-right-radius: 50% clamp(24px, 4vw, 56px);
}

/* elemento oculto no site, à mostra só pelo link "Ver com ocultos" do console */
.section--site-hidden { position: relative; outline: 2px dashed var(--line-strong); outline-offset: -10px; }
.section-hidden-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .85;
    pointer-events: none;
}

.panel {
    padding: clamp(24px, 4vw, 56px);
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--line);
}

.section-header { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -.015em;
}
.section-sub { margin: 12px 0 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }

.section.l-dark .section-title, .section.l-dark h2, .section.l-dark h3, .section.l-dark h4 { color: var(--white); }
.section.l-dark .section-sub { color: rgba(255, 255, 255, .78); }
.section.l-dark a:not(.btn) { color: var(--accent); }
.section.l-dark :focus-visible { outline-color: var(--accent); }

/* Texto rico (conteúdo do editor) */
/* Ocupa a largura toda do bloco onde está. */
.text-rich { overflow-wrap: anywhere; }
.text-rich > :first-child { margin-top: 0; }
.text-rich h1, .text-rich h2 { margin: 1.6em 0 .5em; font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.text-rich h3 { margin: 1.4em 0 .5em; font-size: 1.375rem; }
.text-rich h4, .text-rich h5, .text-rich h6 { margin: 1.3em 0 .4em; font-size: 1.125rem; }
.text-rich ul, .text-rich ol { margin: 0 0 1em; padding-left: 1.4em; }
.text-rich li { margin-bottom: .4em; }
.text-rich li::marker { color: var(--primary-600); }
.text-rich img { height: auto !important; border-radius: var(--r-md); }
.text-rich p > img, .text-rich figure { margin-block: 1.2em; }
.text-rich iframe { border: 0; border-radius: var(--r-md); }
.text-rich iframe[src*="youtube"], .text-rich iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.text-rich blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--accent);
    font-size: 1.1875rem;
    color: var(--ink-2);
}
.text-rich hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.text-rich table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.4em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: .9375rem;
}
.text-rich th, .text-rich td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.text-rich th { background: var(--mist); color: var(--brand-800); font-weight: 700; }
.text-rich a { font-weight: 600; }
.text-rich--highlight { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--brand-800); }
.section.l-dark .text-rich, .section.l-dark .text-rich--highlight, .section.l-dark .text-rich blockquote { color: rgba(255, 255, 255, .88); }
@media (max-width: 720px) {
    .text-rich [style*="justify"] { text-align: left !important; }
}

/* Texto duplo */
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.two-columns > .text-rich + .text-rich { padding-left: clamp(32px, 5vw, 72px); margin-left: calc(-1 * clamp(32px, 5vw, 72px) / 2); border-left: 1px solid var(--line); }
@media (max-width: 760px) {
    .two-columns { grid-template-columns: 1fr; }
    .two-columns > .text-rich + .text-rich { padding: 32px 0 0; margin: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Perguntas frequentes */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px;
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    font-weight: 700;
    color: var(--brand-800);
    cursor: pointer;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--primary-600); }
.faq__sign {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mist);
    transition: background-color .2s, transform .25s;
}
.faq__sign::before, .faq__sign::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-800);
    transform: translate(-50%, -50%);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq__item[open] .faq__sign { background: var(--accent); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 4px 26px; color: var(--ink-2); }
.section.l-solid .faq__sign, .section.l-box .faq__sign { background: var(--white); }
.section.l-dark .faq, .section.l-dark .faq__item { border-color: rgba(255, 255, 255, .16); }
.section.l-dark .faq__question { color: var(--white); }
.section.l-dark .faq__sign { background: rgba(255, 255, 255, .1); }
.section.l-dark .faq__sign::before, .section.l-dark .faq__sign::after { background: var(--white); }
.section.l-dark .faq__item[open] .faq__sign::before, .section.l-dark .faq__item[open] .faq__sign::after { background: var(--brand-900); }
.section.l-dark .faq__answer { color: rgba(255, 255, 255, .82); }

/* Ícones descritivos */
.icons { row-gap: clamp(28px, 3vw, 40px); }
.icon-item__media { margin-bottom: 18px; }
.icon-item__media img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.align-center .icon-item__media img { margin-inline: auto; }
.align-end .icon-item__media img { margin-left: auto; }
.icon-item__title { margin: 0 0 8px; font-size: 1.1875rem; }
.icon-item__text { color: var(--ink-2); font-size: 1rem; }
.align-center .icon-item__text { margin-inline: auto; }
.icon-item--logo {
    display: grid;
    place-items: center;
    min-height: 136px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
}
.icon-item--logo .icon-item__media { margin: 0; }
.icon-item--logo .icon-item__media img { height: auto; max-height: 84px; max-width: min(180px, 100%); margin: 0 auto; }
@media (max-width: 600px) {
    .icons:has(.icon-item--logo) { --cols: 2; }
}
.section.l-dark .icon-item__text { color: rgba(255, 255, 255, .8); }

/* Ícones em "lista em cartões": um item por linha, logo num painel ao lado e
   faixa na cor do item (--icone-cor). O cartão é branco em qualquer fundo. */
.icons-list { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.icon-card {
    --icon-color: var(--primary-600);
    position: relative;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-light);
    transition: transform .25s ease, box-shadow .25s ease;
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-floating); }
.icon-card::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 6px; background: var(--icon-color); }
.icon-card__media {
    flex: 0 0 clamp(200px, 24%, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 28px;
    border-right: 1px solid var(--line);
    background: linear-gradient(160deg, var(--white) 0%, var(--mist) 100%);
}
.icon-card__media img { width: auto; height: auto; max-width: 100%; max-height: 140px; object-fit: contain; }
.icon-card__body { flex: 1 1 auto; min-width: 0; padding: clamp(24px, 3vw, 36px) clamp(22px, 3.2vw, 40px); }
.section .icon-card .icon-card__title { margin: 0 0 4px; font-size: clamp(1.3125rem, 1.2rem + .4vw, 1.5rem); font-weight: 700; color: var(--brand-800); }
.icon-card__tag { margin: 0 0 16px; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--icon-color); }
.icon-card .icon-card__text { color: var(--ink-2); }
.section.l-dark .icon-card a:not(.btn) { color: var(--primary-600); }
@media (max-width: 600px) {
    .icon-card { flex-direction: column; }
    .icon-card::before { right: 0; bottom: auto; width: auto; height: 5px; }
    .icon-card__media { flex: 0 0 auto; padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .icon-card__media img { max-height: 110px; }
}

/* Blocos */
.block { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; }
.block__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.block__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 30px); }
.block__title { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.25; }
.block__link { color: inherit; text-decoration: none; }
.block__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.block--link .block__body { padding-bottom: 76px; }
.block--with-image .block__link::after { top: -400px; }
.block__text { margin: 0; color: var(--ink-2); line-height: 1.55; }
.block__arrow {
    position: absolute;
    left: clamp(22px, 2.4vw, 30px);
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    color: var(--brand-800);
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.block--link:hover .block__arrow { background: var(--accent); border-color: var(--accent); color: var(--brand-900); transform: rotate(45deg); }
.align-center .block__arrow { left: 50%; margin-left: -20px; }
.align-end .block__arrow { left: auto; right: clamp(22px, 2.4vw, 30px); }

.block-l-default .block { border: 1px solid var(--line); background: var(--white); transition: border-color .2s; }
.block-l-default .block--link:hover { border-color: var(--primary-600); }
.block-l-solid .block { background: var(--mist); }
.l-solid .block-l-solid .block, .l-box .block-l-solid .block { background: var(--white); }
.block-l-dark .block { background: var(--brand-800); color: rgba(255, 255, 255, .86); }
.block-l-dark .block__title { color: var(--white); }
.block-l-dark .block__text { color: rgba(255, 255, 255, .8); }
.block-l-dark .block__arrow { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.block-l-dark .block :focus-visible { outline-color: var(--accent); }

.block-l-number .block { border-radius: 0; overflow: visible; border-top: 2px solid var(--line); }
.block-l-number .block__body { padding: 20px 0 0; }
.block-l-number .block--link .block__body { padding-bottom: 64px; }
.block-l-number .block__arrow { left: 0; bottom: 4px; }
.block-l-number .block__title {
    font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.block-l-number.align-center .block__arrow { left: 50%; }

.section.l-dark .block-l-default .block { background: transparent; border-color: rgba(255, 255, 255, .18); }
.section.l-dark .block-l-solid .block { background: rgba(255, 255, 255, .07); }
.section.l-dark .block-l-number .block { border-top-color: rgba(255, 255, 255, .2); }
.section.l-dark .block__text { color: rgba(255, 255, 255, .8); }
.section.l-dark .block__arrow { border-color: rgba(255, 255, 255, .3); color: var(--white); }

/* Imagem e texto destacado */
.highlight-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.highlight-media--no-image { grid-template-columns: 1fr; }
.highlight-media__img { margin: 0; }
.highlight-media__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); }
.highlight-media--right .highlight-media__img { order: 2; }
.highlight-media__text .section-title { margin-bottom: 0; }
.highlight-media__text .section-sub { margin-bottom: 0; }
.highlight-media__text .text-rich { margin-top: 20px; }
.highlight-media__text .btn { margin-top: 28px; }

.highlight-media--background {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 44vw, 560px);
    border-radius: var(--r-xl);
    overflow: hidden;
    isolation: isolate;
}
.highlight-media--background .highlight-media__img { position: absolute; inset: 0; z-index: -2; }
.highlight-media--background .highlight-media__img img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.highlight-media--background::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, color-mix(in srgb, var(--overlay) 88%, transparent) 0%, color-mix(in srgb, var(--overlay) 55%, transparent) 50%, color-mix(in srgb, var(--overlay) 10%, transparent) 100%); }
.highlight-media--background .highlight-media__text { max-width: 620px; padding: clamp(28px, 5vw, 64px); color: rgba(255, 255, 255, .88); }
.highlight-media--background .section-title { color: var(--white); }
.highlight-media--background .section-sub, .highlight-media--background .text-rich { color: rgba(255, 255, 255, .86); }
.highlight-media--background :focus-visible { outline-color: var(--accent); }
/* Logo ou ilustração: a imagem inteira, sem recorte, num cartão claro */
.highlight-media--logo .highlight-media__img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--white) 0%, var(--mist) 100%);
    box-shadow: var(--shadow-light);
}
.highlight-media--logo .highlight-media__img img { width: 100%; max-width: 300px; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
/* Imagem em cerca de um terço da largura (à esquerda ela vem antes do texto no HTML) */
.highlight-media--third { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.highlight-media--third.highlight-media--right { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
/* Subtítulo como chamada: em destaque, com uma barra ao lado (cor própria em --chamada-cor) */
.section-sub.section-sub--callout {
    --callout-default: var(--primary-600);
    padding-left: 18px;
    border-left: 4px solid var(--callout-color, var(--callout-default));
    color: var(--callout-color, var(--callout-default));
    font-weight: 600;
    line-height: 1.5;
}
.highlight-media__text .section-sub--callout { margin-top: 18px; }
.section.l-dark .section-sub--callout, .highlight-media--background .section-sub--callout { --callout-default: var(--accent); }
@media (max-width: 860px) {
    .highlight-media, .highlight-media--third, .highlight-media--third.highlight-media--right { grid-template-columns: 1fr; }
    .highlight-media--right .highlight-media__img { order: 0; }
    .highlight-media--logo .highlight-media__img { justify-self: center; width: 100%; max-width: 420px; }
    .highlight-media--logo .highlight-media__img img { max-width: 220px; }
    .highlight-media--background::before { background: linear-gradient(to top, color-mix(in srgb, var(--overlay) 90%, transparent) 0%, color-mix(in srgb, var(--overlay) 50%, transparent) 60%, color-mix(in srgb, var(--overlay) 20%, transparent) 100%); }
}

/* Números em destaque */
.numbers {
    --cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.numbers--c1 { --cols: 1; }
.numbers--c2 { --cols: 2; }
.numbers--c3 { --cols: 3; }
.number { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.numbers--center .number { align-items: center; text-align: center; }
.number__value {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.025em;
    color: var(--brand-800);
    font-variant-numeric: tabular-nums lining-nums;
    overflow-wrap: anywhere;
}
.number__label { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.number__text { margin: 0; max-width: 32ch; font-size: .9375rem; line-height: 1.5; color: var(--smooth); }

/* Estilo "linha": traço de destaque sobre uma linha fina */
.numbers--line .number { padding-top: 22px; border-top: 1px solid var(--line); }
.numbers--line .number::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-600);
}
.numbers--line.numbers--center .number::before { left: 50%; transform: translateX(-50%); }

/* Estilo "cartões" */
.numbers--cards .number { padding: clamp(24px, 2.8vw, 34px) clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--mist); }
.section.l-solid .numbers--cards .number, .section.l-box .numbers--cards .number { background: var(--white); }

.section.l-dark .number__value, .section.l-dark .number__label { color: var(--white); }
.section.l-dark .number__text { color: rgba(255, 255, 255, .72); }
.section.l-dark .numbers--line .number { border-top-color: rgba(255, 255, 255, .18); }
.section.l-dark .numbers--line .number::before { background: var(--accent); }
.section.l-dark .numbers--cards .number { background: rgba(255, 255, 255, .07); }

/* Estilo "cartões com borda colorida": cartão branco (em qualquer fundo) com a
   borda de cima e o número na cor de cada item (--numero-cor) */
.numbers--colored .number {
    --number-color: var(--primary-600);
    padding: clamp(24px, 2.8vw, 34px) clamp(20px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-top: 5px solid var(--number-color);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-light);
    transition: transform .25s ease, box-shadow .25s ease;
}
.numbers--colored .number:hover { transform: translateY(-4px); box-shadow: var(--shadow-floating); }
.numbers--colored .number__value,
.section.l-dark .numbers--colored .number__value { margin-bottom: 8px; font-family: var(--font); font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; color: var(--number-color); }
.numbers--colored .number__label,
.section.l-dark .numbers--colored .number__label { font-family: var(--font-title); font-size: 1.1875rem; color: var(--brand-800); }
.section.l-dark .numbers--colored .number { border-color: transparent; border-top-color: var(--number-color); }
.section.l-dark .numbers--colored .number__text { color: var(--smooth); }

@media (max-width: 900px) {
    .numbers { --cols: 2; }
    .numbers--c1 { --cols: 1; }
    /* número ímpar de itens: o último ocupa a linha toda (sem buraco ao lado) */
    .numbers .number:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .numbers--cards, .numbers--colored { --cols: 1; }
}
@media (max-width: 380px) {
    .number__value { font-size: 2.25rem; }
}

/* Documentos */
.documents__search, .table-block__search { position: relative; max-width: 420px; margin-bottom: 20px; }
.documents__search .ico, .table-block__search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--smooth); pointer-events: none; }
.documents__search input, .table-block__search input {
    width: 100%;
    min-height: 48px;
    padding: 10px 18px 10px 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.documents__search input:focus, .table-block__search input:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-600) 14%, transparent); }
.documents__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.documents__list > li { border-bottom: 1px solid var(--line); }
.doc-item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 20px);
    margin-inline: -12px;
    padding: 18px 12px;
    border-radius: var(--r-md);
    color: inherit;
    text-decoration: none;
    transition: background-color .2s;
}
.doc-item:hover { background: var(--mist); color: inherit; }
.doc-item__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-100);
    color: var(--primary-600);
    font-size: 1.375rem;
}
.doc-item__info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.doc-item__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--brand-800); overflow-wrap: anywhere; }
.doc-item__desc { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.doc-item__meta { display: flex; flex-wrap: wrap; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; color: var(--smooth); }
.doc-item__meta span + span::before { content: "·"; margin-inline: 7px; }
.doc-item__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--brand-800);
    transition: background-color .2s, border-color .2s, color .2s;
}
.doc-item:hover .doc-item__action { background: var(--brand-800); border-color: var(--brand-800); color: var(--white); }
.documents__empty { margin: 20px 0 0; color: var(--smooth); }

.section.l-solid .doc-item:hover { background: var(--white); }
.section.l-solid .doc-item__icon { background: var(--white); }
.section.l-dark .documents__list, .section.l-dark .documents__list > li { border-color: rgba(255, 255, 255, .16); }
.section.l-dark .doc-item:hover { background: rgba(255, 255, 255, .06); }
.section.l-dark .doc-item__icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.section.l-dark .doc-item__title { color: var(--white); }
.section.l-dark .doc-item__desc { color: rgba(255, 255, 255, .8); }
.section.l-dark .doc-item__meta, .section.l-dark .documents__empty { color: rgba(255, 255, 255, .62); }
.section.l-dark .doc-item__action { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.section.l-dark .doc-item:hover .doc-item__action { background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
.section.l-dark .documents__search input { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: var(--white); }
.section.l-dark .documents__search input::placeholder, .section.l-dark .documents__search .ico { color: rgba(255, 255, 255, .6); }

@media (max-width: 600px) {
    .doc-item { align-items: flex-start; gap: 14px; padding-block: 16px; }
    .doc-item__icon { width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; }
    /* no celular, a ação vira só o ícone (o texto segue para leitores de tela) */
    .doc-item__action { width: 40px; padding: 0; }
    .doc-item__action-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* Galeria de fotos */
.gallery {
    --cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: clamp(8px, 1.4vw, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gallery--c1 { --cols: 1; max-width: 880px; }
.gallery--c2 { --cols: 2; }
.gallery--c4 { --cols: 4; }
.gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--mist);
    isolation: isolate;
}
.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.gallery--square .gallery__item img { aspect-ratio: 1; }
.gallery--portrait .gallery__item img { aspect-ratio: 3 / 4; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--overlay) 35%, transparent), transparent 45%); opacity: 0; transition: opacity .25s; }
.gallery__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--brand-800);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after, .gallery__item:focus-visible::after,
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.section.l-dark .gallery__item { background: rgba(255, 255, 255, .06); }
@media (max-width: 860px) {
    .gallery--c3, .gallery--c4 { --cols: 2; }
}
@media (hover: none) {
    .gallery__zoom { opacity: 1; transform: none; width: 32px; height: 32px; right: 8px; bottom: 8px; font-size: .875rem; }
}

/* Visualizador da galeria (foto ampliada) */
.viewer {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 14, 28, .97);
    color: var(--white);
    overflow: hidden;
}
.viewer[open] { display: grid; place-items: center; animation: shows .2s ease-out; }
.viewer::backdrop { background: transparent; }
.viewer__figure { display: grid; justify-items: center; gap: 14px; max-width: calc(100% - 160px); margin: 0; padding: 72px 0 32px; }
.viewer__img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); border-radius: var(--r-sm); object-fit: contain; }
.viewer__legend { max-width: 72ch; margin: 0; font-size: 1rem; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, .86); }
.viewer__counter { position: absolute; top: 24px; left: 24px; margin: 0; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.viewer__button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color .2s;
}
.viewer__button:hover { background: rgba(255, 255, 255, .2); }
.viewer__close { top: 14px; right: 16px; }
.viewer__prev, .viewer__next { top: 50%; transform: translateY(-50%); }
.viewer__prev { left: 20px; }
.viewer__next { right: 20px; }
.viewer.is-single .viewer__prev, .viewer.is-single .viewer__next, .viewer.is-single .viewer__counter { display: none; }
.viewer :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
    .viewer__figure { max-width: 100%; padding: 64px 0 96px; }
    .viewer__img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); border-radius: 0; }
    .viewer__legend { padding-inline: 20px; font-size: .9375rem; }
    .viewer__counter { top: 26px; left: 20px; }
    /* setas embaixo, ao alcance do polegar */
    .viewer__prev, .viewer__next { top: auto; bottom: 24px; transform: none; }
    .viewer__prev { left: calc(50% - 64px); }
    .viewer__next { right: calc(50% - 64px); }
}

/* Abas */
.tabs__list {
    position: relative;
    display: flex;
    gap: 6px;
    margin-bottom: clamp(24px, 3vw, 36px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
/* centralizadas sem cortar a primeira aba quando a faixa rola */
.tabs--center:not(.tabs--lateral) .tabs__tab:first-child { margin-left: auto; }
.tabs--center:not(.tabs--lateral) .tabs__tab:last-child { margin-right: auto; }
.tabs__tab {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--smooth);
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, background-color .2s, box-shadow .2s;
}
.tabs__tab .ico { flex: none; font-size: 1.15em; }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { color: var(--brand-800); }
.tabs__tab:focus-visible { outline: 2px solid var(--primary-600); outline-offset: -2px; border-radius: 8px; }
.tabs__panel { animation: shows .3s ease-out; }
.tabs__panel:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 8px; border-radius: 4px; }

/* Estilo "linha embaixo" (e as abas do estilo lateral no celular) */
.tabs--line .tabs__list, .tabs--lateral .tabs__list { gap: clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.tabs--line .tabs__tab, .tabs--lateral .tabs__tab { padding-inline: 2px; }
.tabs--line .tabs__tab::after, .tabs--lateral .tabs__tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary-600);
    transform: scaleX(0);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.tabs--line .tabs__tab[aria-selected="true"]::after, .tabs--lateral .tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }

/* Estilo "pílulas" */
.tabs--pills .tabs__list { width: fit-content; max-width: 100%; padding: 5px; border-radius: 999px; background: var(--mist); gap: 4px; }
.tabs--pills.tabs--center .tabs__list { margin-inline: auto; }
.tabs--pills .tabs__tab { min-height: 44px; padding: 8px 20px; border-radius: 999px; }
.tabs--pills .tabs__tab[aria-selected="true"] { background: var(--white); box-shadow: 0 2px 10px -3px color-mix(in srgb, var(--brand-900) 25%, transparent), 0 0 0 1px color-mix(in srgb, var(--brand-900) 5%, transparent); }
.section.l-solid .tabs--pills .tabs__list, .section.l-box .tabs--pills .tabs__list { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.section.l-solid .tabs--pills .tabs__tab[aria-selected="true"], .section.l-box .tabs--pills .tabs__tab[aria-selected="true"] { background: var(--brand-800); color: var(--white); box-shadow: none; }

/* Estilo "lateral": lista à esquerda (no celular vira a faixa do estilo linha) */
@media (min-width: 861px) {
    .tabs--lateral { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
    .tabs--lateral .tabs__list {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        flex-direction: column;
        gap: 2px;
        margin: 0;
        overflow: visible;
        border-bottom: 0;
        border-left: 2px solid var(--line);
    }
    .tabs--lateral .tabs__tab {
        justify-content: flex-start;
        min-height: 46px;
        margin-left: -2px;
        padding: 10px 16px;
        border-left: 2px solid transparent;
        border-radius: 0 10px 10px 0;
        text-align: left;
        white-space: normal;
    }
    .tabs--lateral .tabs__tab::after { display: none; }
    .tabs--lateral .tabs__tab:hover { background: var(--mist); }
    .tabs--lateral .tabs__tab[aria-selected="true"] { border-left-color: var(--primary-600); background: var(--mist); }
    .section.l-solid .tabs--lateral .tabs__tab[aria-selected="true"], .section.l-solid .tabs--lateral .tabs__tab:hover { background: var(--white); }
}

/* Faixa de abas com mais conteúdo para os lados: esmaece a borda */
.tabs__list.has-dir { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.tabs__list.has-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.tabs__list.has-left.has-dir { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* Celular com lista de seleção no lugar das abas */
.tabs__selector { display: none; position: relative; margin-bottom: 24px; }
.tabs__selector select {
    width: 100%;
    min-height: 54px;
    padding: 12px 52px 12px 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    background: var(--white);
    font: inherit;
    font-weight: 700;
    color: var(--brand-800);
    appearance: none;
    cursor: pointer;
}
.tabs__selector select:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-600) 14%, transparent); }
.tabs__selector-arrow { position: absolute; top: 50%; right: 18px; font-size: 1.25rem; color: var(--primary-600); transform: translateY(-50%); pointer-events: none; }
@media (max-width: 700px) {
    .tabs--mobile-select .tabs__selector { display: block; }
    .tabs--mobile-select .tabs__list { display: none; }
    .tabs__tab { min-height: 44px; font-size: .9375rem; }
}

.section.l-dark .tabs__tab { color: rgba(255, 255, 255, .62); }
.section.l-dark .tabs__tab:hover, .section.l-dark .tabs__tab[aria-selected="true"] { color: var(--white); }
.section.l-dark .tabs__list { border-color: rgba(255, 255, 255, .16); }
.section.l-dark .tabs__tab::after { background: var(--accent); }
.section.l-dark .tabs--pills .tabs__list { background: rgba(255, 255, 255, .08); }
.section.l-dark .tabs--pills .tabs__tab[aria-selected="true"] { background: var(--white); color: var(--brand-900); }
.section.l-dark .tabs--lateral .tabs__tab[aria-selected="true"], .section.l-dark .tabs--lateral .tabs__tab:hover { background: rgba(255, 255, 255, .08); }
.section.l-dark .tabs--lateral .tabs__tab[aria-selected="true"] { border-left-color: var(--accent); }

/* Tabela: o elemento pode ter várias (1, 2 ou 3 por linha, em .media-grid); a largura vale com 1 por linha */
.tables-block { margin-inline: auto; }
.tables-block--narrow { max-width: 760px; }
.tables-block--medium { max-width: 980px; }
.table-frame { position: relative; border-radius: var(--r-md); }
.table-scroll { overflow-x: auto; border-radius: inherit; background: var(--white); }
.table-scroll:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 3px; }
/* sombras nas bordas indicando que dá para rolar para o lado */
.table-frame::before, .table-frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.table-frame::before { left: 0; border-radius: var(--r-md) 0 0 var(--r-md); background: linear-gradient(to right, color-mix(in srgb, var(--brand-900) 14%, transparent), transparent); }
.table-frame::after { right: 0; border-radius: 0 var(--r-md) var(--r-md) 0; background: linear-gradient(to left, color-mix(in srgb, var(--brand-900) 14%, transparent), transparent); }
.table-frame.has-left::before, .table-frame.has-dir::after { opacity: 1; }

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.table th, .table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .9375rem; font-weight: 700; vertical-align: bottom; }
.table tbody th { font-weight: 700; color: var(--brand-800); }
.table .align-c { text-align: center; }
.table .align-d { text-align: right; }
.table .valign-t { vertical-align: top; }
.table .valign-m { vertical-align: middle; }
.table .valign-b { vertical-align: bottom; }
/* célula mesclada para baixo repetida em cada cartão (modo responsivo); fora dele não aparece */
.table .table__repeat { display: none; }
.table a { font-weight: 600; overflow-wrap: anywhere; }
.table--compact th, .table--compact td { padding: 9px 12px; font-size: .9375rem; }

/* cabeçalho */
.table--header-dark thead th { background: var(--brand-800); color: var(--white); border-bottom-color: rgba(255, 255, 255, .14); }
.table--header-dark thead th + th { box-shadow: inset 1px 0 rgba(255, 255, 255, .08); }
.table--header-dark thead a { color: var(--accent); }
.table--header-smooth thead th { background: var(--primary-100); color: var(--brand-800); border-bottom-color: var(--primary-200); }
.table--header-simple thead th { color: var(--brand-800); }
.table--header-simple thead tr:last-child th { border-bottom: 2px solid var(--brand-800); }

/* estilos */
.table--stripes tbody tr:nth-child(even) > * { background: var(--mist); }
.table--stripes tbody > tr > * { border-bottom-color: transparent; }
.section.l-solid .table--stripes tbody tr:nth-child(even) > *, .section.l-box .table--stripes tbody tr:nth-child(even) > * { background: var(--stripe); }
.table--grid th, .table--grid td { border-right: 1px solid var(--line); }
.table--grid tr > :first-child { border-left: 1px solid var(--line); }
.table--grid thead tr:first-child > *, .table--grid caption + tbody > tr:first-child > * { border-top: 1px solid var(--line); }
.table--grid.table--header-dark thead th { border-color: rgba(255, 255, 255, .16); }
.table-block--card .table-frame { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-light); }
.table-block--card .table-frame::before { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.table-block--card .table-frame::after { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.table--card tbody tr:last-child > * { border-bottom: 0; }
.table--card tbody tr { transition: background-color .15s; }
.table--card tbody tr:hover > * { background: var(--mist); }

/* linha mesclada de ponta a ponta: título de grupo */
.table .table__group > * { background: var(--primary-100) !important; color: var(--brand-800); font-size: .9375rem; font-weight: 700; letter-spacing: .01em; border-bottom-color: var(--primary-200) !important; }

/* 1ª coluna fixa ao rolar para o lado */
.table--fixed > * > tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--white); }
.table--fixed thead tr > :first-child { z-index: 2; }
.table--fixed.table--header-dark thead tr > :first-child { background: var(--brand-800); }
.table--fixed.table--header-smooth thead tr > :first-child { background: var(--primary-100); }
.has-left .table--fixed > * > tr > :first-child { box-shadow: 8px 0 10px -8px color-mix(in srgb, var(--brand-900) 30%, transparent); }

/* ordenar pelo cabeçalho */
.table__sortable { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.table__sortable .ico { flex: none; font-size: .95em; opacity: .55; transition: opacity .15s; }
.table__sortable:hover .ico, [aria-sort] .table__sortable .ico { opacity: 1; }
.table__sortable:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.table tr.is-filtered, .table tr.is-beyond { display: none; }
.table-block__empty { margin: 16px 0 0; color: var(--smooth); }
.table-block__more { margin-top: 16px; }
.table-block__note { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; color: var(--smooth); }
.section.l-dark .table-frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.section.l-dark .table-block__note, .section.l-dark .table-block__empty { color: rgba(255, 255, 255, .7); }
.section.l-dark .table-block__more { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.section.l-dark .table-block__more:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }
.section.l-dark .table-block__search input { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: var(--white); }
.section.l-dark .table-block__search input::placeholder, .section.l-dark .table-block__search .ico { color: rgba(255, 255, 255, .6); }

@media (max-width: 700px) {
    .table th, .table td { padding: 11px 14px; font-size: .9375rem; }
    /* rolagem lateral: as colunas não ficam espremidas (a 1ª, se fixa, não cobre a tela) */
    .table--scroll th, .table--scroll td { min-width: 10rem; }
    .table--fixed > * > tr > :first-child { min-width: 8rem; max-width: 40vw; }

    /* responsiva: cada linha vira um cartão, com o nome da coluna ao lado do valor */
    .table-frame--cards::before, .table-frame--cards::after { display: none; }
    .table-block .table-frame--cards { border: 0; border-radius: 0; box-shadow: none; }
    .table-frame--cards .table-scroll { overflow: visible; background: none; }
    .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .table--cards, .table--cards tbody, .table--cards tbody tr, .table--cards tbody tr > * { display: block; width: 100%; }
    .table--cards tbody tr { margin-bottom: 12px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
    .table--cards tbody tr.is-filtered, .table--cards tbody tr.is-beyond { display: none; }
    .table--cards tbody tr > * {
        display: grid;
        grid-template-columns: minmax(84px, 38%) minmax(0, 1fr);
        gap: 4px 14px;
        padding: 11px 0;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        background: none !important;
        box-shadow: none !important;
        text-align: left !important;
    }
    .table--cards tbody tr > :last-child { border-bottom: 0 !important; }
    .table--cards tbody tr > .table__repeat { display: grid; }
    .table--cards tbody tr > *::before { content: attr(data-label); font-size: .8125rem; font-weight: 700; line-height: 1.5; color: var(--smooth); }
    .table--cards tbody tr > [data-label=""] { grid-template-columns: minmax(0, 1fr); }
    .table--cards tbody tr > [data-label=""]::before { display: none; }
    /* 1ª coluna destacada vira o título do cartão */
    .table--cards tbody th[scope="row"] { grid-template-columns: minmax(0, 1fr); font-size: 1.0625rem; }
    .table--cards tbody th[scope="row"]::before { display: none; }
    /* linha de grupo vira um título entre os cartões */
    .table--cards tbody .table__group { margin: 24px 0 10px; padding: 0; border: 0; background: none; }
    .table--cards tbody .table__group > * { display: block; padding: 0; color: var(--brand-800); font-family: var(--font-title); font-size: 1.125rem; font-weight: 600; border: 0 !important; background: none !important; }
    .section.l-dark .table--cards tbody .table__group > * { color: var(--white); }
}

/* Trilho (carrossel com rolagem) */
.track { position: relative; }
.track__lane {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - (var(--cols, 3) - 1) * var(--gap, 20px)) / var(--cols, 3));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.track__lane::-webkit-scrollbar { display: none; }
.track__lane > * { scroll-snap-align: start; }
.track__controls { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 16px; }
.header-section__actions .track__controls { margin: 0; }
.track.is-no-scroll .track__controls { display: none; }
.section.l-dark .button-icon { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.section.l-dark .button-icon:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 960px) { .track__lane.grid--3, .track__lane.grid--4 { --cols: 2.2; } }
@media (max-width: 600px) { .track__lane.grid { --cols: 1.2; } }

/* Páginas de código (St. Jude etc.) usam as cores do site */
.section--code .text-rich + * { margin-top: 32px; }

/* 10. Blog ================================================================= */
.blog { padding-block: clamp(40px, 5vw, 72px) var(--section-y); }
.blog__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.blog__search { position: relative; margin-bottom: 24px; }
.blog__search input {
    width: 100%;
    min-height: 56px;
    padding: 0 64px 0 52px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    font-size: 1.0625rem;
    transition: border-color .15s, box-shadow .15s;
}
.blog__search input:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-600) 15%, transparent); }
.blog__search > .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--smooth); font-size: 1.2rem; }
.blog__search button {
    position: absolute;
    top: 6px;
    right: 6px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-600);
    color: var(--white);
    font-weight: 700;
}
.blog__search button:hover { background: var(--brand-800); }
/* Versão compacta, na lateral da notícia */
.blog__search--compact { margin-bottom: 0; }
.blog__search--compact input { min-height: 46px; padding: 0 50px 0 40px; font-size: 1rem; }
.blog__search--compact > .ico { left: 14px; font-size: 1.05rem; }
.blog__search--compact button { top: 5px; right: 5px; display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; }
.blog__search--compact button .ico { font-size: 1.05rem; }
.blog__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -8px 0 24px; color: var(--smooth); font-size: .9375rem; }
.blog__list { --gap: 28px; row-gap: 44px; }
.blog__list .card-article p.summary { margin: 8px 0 0; color: var(--smooth); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog__empty { padding: 36px; border-radius: var(--r-lg); background: var(--mist); }
.blog__empty h2 { font-size: 1.375rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--brand-800); }
.pagination .is-current { background: var(--brand-800); border-color: var(--brand-800); color: var(--white); }

.blog__lateral { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 20px; }
.widget { padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.widget h2 { margin: 0 0 16px; font-size: 1.125rem; }
.widget__recent { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.widget__recent a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.widget__recent img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.widget__recent strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; line-height: 1.35; }
.widget__recent time { font-size: .8125rem; color: var(--smooth); }
.widget__recent a:hover strong { color: var(--primary-600); }
.widget__categories { margin: 0; padding: 0; list-style: none; }
.widget__categories a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.widget__categories li:last-child a { border-bottom: 0; }
.widget__categories a:hover, .widget__categories a.is-current { color: var(--primary-600); }
.widget__categories span { font-size: .875rem; font-weight: 700; color: var(--smooth); }

.article__back { margin-bottom: 24px; }
.article__title { margin: 0 0 16px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.article__summary { margin: 0 0 32px; font-size: 1.25rem; color: var(--ink-2); }
.article__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 36px; border-radius: var(--r-xl); }
.article .text-rich { font-size: 1.125rem; line-height: 1.75; } /* mesma largura da imagem da notícia */
.article__source { margin-top: 32px; }

@media (max-width: 960px) {
    .blog__grid { grid-template-columns: 1fr; }
    .blog__lateral { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* 11. Formulários ========================================================== */
.page-form { padding-block: clamp(32px, 4vw, 56px) var(--section-y); }
.page-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
/* minmax(0, 1fr): nada dentro do formulário alarga a coluna além da tela */
@media (max-width: 960px) { .page-form__grid { grid-template-columns: minmax(0, 1fr); } }

/* Formulários (Fale conosco e Trabalhe conosco): raios discretos, campos
   compactos e rótulos pequenos, para uma leitura limpa. */
.form {
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}
.form__group + .form__group { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.form__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.form__title h2 { margin: 0; font-size: 1.25rem; }
.form__title p { margin: 0; font-size: .875rem; color: var(--smooth); }

.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; }
.field { grid-column: span 12; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--2 { grid-column: span 2; } .field--3 { grid-column: span 3; } .field--4 { grid-column: span 4; }
.field--5 { grid-column: span 5; } .field--6 { grid-column: span 6; } .field--7 { grid-column: span 7; }
.field--8 { grid-column: span 8; }
@media (max-width: 720px) { .field[class*="field--"] { grid-column: span 12; } }

.field label, .field .label { font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); letter-spacing: .005em; }
.field label .req, .label .req { color: var(--error); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--white);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333445C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-hover); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-600) 14%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field__help { font-size: .8125rem; color: var(--smooth); }
.field__help.is-error { color: var(--error); font-weight: 600; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error) !important; }
.field-error { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--error); }

.file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--mist);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.file:hover, .file:focus-within { border-color: var(--primary-600); background: var(--primary-100); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--white); color: var(--primary-600); font-size: 1.25rem; flex-shrink: 0; }
.file__name { display: block; font-size: .9375rem; font-weight: 600; color: var(--brand-800); overflow-wrap: anywhere; }

.consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--mist); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-600); flex-shrink: 0; }
.field .consent label { font-size: .875rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form__actions p { margin: 0; max-width: 46ch; font-size: .875rem; color: var(--smooth); }
.form__actions div { display: flex; flex-wrap: wrap; gap: 10px; }
/* Celular: os botões ocupam a largura toda (e quebram de linha se não couberem) */
@media (max-width: 480px) {
    .form__actions div { width: 100%; }
    .form__actions .btn { flex: 1 1 auto; }
}

.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: 8px; font-size: .9375rem; font-weight: 600; }
.alert--error { background: var(--error-background); color: var(--error); }
.alert .ico { margin-top: 3px; }

.lateral-info { display: grid; gap: 14px; }
.card-info { padding: 20px 22px; border-radius: 12px; background: var(--mist); color: var(--ink-2); }
.card-info h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1.0625rem; }
.card-info p { margin: 0 0 10px; font-size: .9375rem; }
.card-info p:last-child { margin-bottom: 0; }
.card-info ul { margin: 0; padding-left: 1.2em; font-size: .9375rem; }
.card-info li { margin-bottom: 6px; }
.card-info a.card-info__value { font-weight: 700; color: var(--brand-800); text-decoration: none; overflow-wrap: anywhere; }
.card-info a.card-info__value:hover { color: var(--primary-600); text-decoration: underline; }
.card-info__line { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.card-info h2 + .card-info__line { padding-top: 0; border-top: 0; }
.card-info__line span { font-size: .8125rem; color: var(--smooth); }
.card-info__note { margin-top: 10px !important; font-size: .8125rem !important; color: var(--smooth); }
.card-info__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-info--dark { background: var(--brand-800); color: rgba(255, 255, 255, .86); }
.card-info--dark h2 { color: var(--white); }
.card-info--dark h2 .ico { color: var(--accent); }
.card-info--dark a.card-info__value { font-size: 1.125rem; color: var(--white); }
.card-info--dark a.card-info__value:hover { color: var(--accent); }

/* Páginas de status (sucesso, 404) */
.status-page { padding-block: clamp(64px, 10vw, 140px); }
.status-page__in { max-width: 640px; text-align: center; }
.status-page__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 24px; border-radius: 50%; background: var(--primary-100); color: var(--primary-600); font-size: 2.25rem; }
.status-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; letter-spacing: -.02em; }
.status-page p { font-size: 1.125rem; color: var(--ink-2); }
.status-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Política de privacidade e textos longos */
.document { padding-block: clamp(40px, 5vw, 72px) var(--section-y); }
.document__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.document__index { position: sticky; top: calc(var(--header-height) + 24px); }
.document__index p { margin-bottom: 12px; font-weight: 700; color: var(--brand-800); }
.document__index ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.document__index a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--smooth); text-decoration: none; font-size: .9375rem; }
.document__index a:hover { color: var(--primary-600); border-left-color: var(--primary-600); }
.document .text-rich h2 { scroll-margin-top: calc(var(--header-height) + 24px); }
@media (max-width: 860px) { .document__grid { grid-template-columns: 1fr; } .document__index { position: static; } }

/* 12. Linha do tempo ======================================================= */
/* Elemento "Linha do tempo" do construtor de páginas.
   Vertical (.lt--vertical): .lt--alternada (itens dos dois lados da linha) ou
   .lt--lado (linha à esquerda). Horizontal (.lt--horizontal): um item por vez,
   com setas e um ponto por item. Estilos: .lt--classico, .lt--cartoes,
   .lt--etapas e .lt--minimalista. */
.lt {
    --lt-background: var(--white);           /* cor do anel em volta dos marcadores (= fundo da seção) */
    --lt-line: var(--line);
    --lt-color: var(--primary-600);       /* trecho percorrido, ponto atual */
    --lt-marker: var(--accent);
    --lt-title: var(--brand-800);
    --lt-text: var(--ink-2);
    --lt-card: var(--white);
    --lt-card-border: var(--line);
    --lt-halo: var(--primary-100);
    --lt-ratio: 4 / 3;
}
.section.l-solid .lt { --lt-background: var(--mist); --lt-line: var(--line-strong); }
.section.l-dark .lt {
    --lt-background: var(--brand-800);
    --lt-line: rgba(255, 255, 255, .22);
    --lt-color: var(--accent);
    --lt-title: var(--white);
    --lt-text: rgba(255, 255, 255, .82);
    --lt-card: color-mix(in srgb, var(--brand-800) 94%, #FFFFFF); /* marca-800 com 6% de branco (sólido: a seta do cartão se sobrepõe à borda) */
    --lt-card-border: rgba(255, 255, 255, .16);
    --lt-halo: color-mix(in srgb, var(--accent) 22%, transparent);
}
.lt--img-16x9 { --lt-ratio: 16 / 9; }
.lt--img-1x1 { --lt-ratio: 1 / 1; }
.lt--img-3x4 { --lt-ratio: 3 / 4; }

/* Conteúdo de um item */
.lt__title { margin: 0 0 10px; color: var(--lt-title); }
.lt__subtitle { margin: 0 0 10px; font-family: var(--font-title); font-size: 1.375rem; font-weight: 600; line-height: 1.25; color: var(--lt-title); }
.lt__desc { color: var(--lt-text); }
.lt__img { margin: 0; }
.lt__img img { width: 100%; aspect-ratio: var(--lt-ratio); object-fit: cover; border-radius: var(--r-lg); }

/* Títulos dos itens, por estilo (na vertical e no topo da horizontal) */
.lt--classic .lt__title,
.lt--classic .lt-h__title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.lt--classic .lt__title--long,
.lt--classic .lt-h__title--long { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.1; }
.lt--cards .lt__title,
.lt--cards .lt-h__title {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--lt-halo);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}
.lt--cards .lt-h__title { padding: 8px 22px; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
.lt--steps .lt__title,
.lt--steps .lt-h__title { font-family: var(--font-title); font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); font-weight: 600; line-height: 1.15; }
.lt--steps .lt__title--long,
.lt--steps .lt-h__title--long { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); }
.lt--minimalist .lt__title,
.lt--minimalist .lt-h__title { font-family: var(--font); font-size: .9375rem; font-weight: 700; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.lt--minimalist .lt__title, .section.l-dark .lt--minimalist .lt__title { margin-bottom: 6px; color: var(--lt-color); }
.lt--minimalist .lt-h__title { color: var(--lt-color); }
.lt--minimalist .lt__subtitle { font-size: 1.1875rem; }
.lt--minimalist .lt__desc { font-size: 1rem; }

/* ---- Vertical ---- */
.lt--vertical { --lt-x: 50%; position: relative; margin: 0; padding: 0; list-style: none; }
.lt--vertical::before,
.lt--vertical::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: var(--lt-x); width: 2px; background: var(--lt-line); transform: translateX(-50%); }
/* trecho já percorrido, que acompanha a rolagem (só com a animação ligada) */
.lt--vertical::after { display: none; bottom: auto; height: calc((100% - 16px) * var(--lt-progress, 0)); background: var(--lt-color); }
.lt--vertical.is-animado::after { display: block; }
.lt--vertical .lt__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(48px, 7vw, 112px); padding-bottom: clamp(40px, 6vw, 80px); }
.lt--vertical .lt__item:last-child { padding-bottom: 0; }
.lt__marker {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: var(--lt-x);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lt-marker);
    box-shadow: 0 0 0 6px var(--lt-background), 0 0 0 7px var(--lt-line);
    transform: translateX(-50%);
}
.lt--alternating .lt__item:nth-child(odd) .lt__text { grid-column: 1; grid-row: 1; text-align: right; }
.lt--alternating .lt__item:nth-child(odd) .lt__img { grid-column: 2; grid-row: 1; }
.lt--alternating .lt__item:nth-child(even) .lt__img { grid-column: 1; grid-row: 1; }
.lt--alternating .lt__item:nth-child(even) .lt__text { grid-column: 2; grid-row: 1; }
.lt--side { --lt-x: 9px; }
.lt--side .lt__item { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 clamp(28px, 4vw, 56px); padding-left: 48px; }
.lt--side .lt__item--no-img .lt__text { grid-column: 1 / -1; max-width: 760px; }

/* Cartões: o texto vai num cartão com uma seta apontando para a linha */
.lt--cards .lt__marker { top: 22px; width: 14px; height: 14px; background: var(--lt-color); box-shadow: 0 0 0 5px var(--lt-background); }
.lt--cards.lt--vertical .lt__text { position: relative; align-self: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--lt-card-border); border-radius: var(--r-lg); background: var(--lt-card); box-shadow: var(--shadow-light); }
.lt--cards.lt--vertical .lt__text::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -8px;
    width: 14px;
    height: 14px;
    background: var(--lt-card);
    border-left: 1px solid var(--lt-card-border);
    border-bottom: 1px solid var(--lt-card-border);
    transform: rotate(45deg);
}
.lt--cards.lt--alternating .lt__item:nth-child(odd) .lt__text { text-align: left; }
.lt--cards.lt--alternating .lt__item:nth-child(odd) .lt__text::before { left: auto; right: -8px; border: 0; border-top: 1px solid var(--lt-card-border); border-right: 1px solid var(--lt-card-border); }
.lt--cards .lt__img img { box-shadow: var(--shadow-light); }
.section.l-dark .lt--cards .lt__text, .section.l-dark .lt--cards .lt__img img { box-shadow: none; }

/* Etapas numeradas: o marcador mostra o número do item */
.lt--steps .lt__marker {
    top: -2px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--lt-color);
    box-shadow: 0 0 0 6px var(--lt-background);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.section.l-dark .lt--steps .lt__marker { color: var(--brand-900); }
.lt--steps.lt--side { --lt-x: 20px; }
.lt--steps.lt--side .lt__item { padding-left: 68px; }

/* Minimalista: linha tracejada, pontos pequenos, imagens menores */
.lt--minimalist.lt--vertical::before { width: 0; background: none; border-left: 2px dashed var(--lt-line); }
.lt--minimalist .lt__marker { top: 6px; width: 10px; height: 10px; background: var(--lt-color); box-shadow: 0 0 0 4px var(--lt-background); }
.lt--minimalist.lt--vertical .lt__item { gap: 0 clamp(32px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); }
.lt--minimalist.lt--vertical .lt__img { width: 100%; max-width: 340px; }
.lt--minimalist.lt--alternating .lt__item:nth-child(even) .lt__img { justify-self: end; }
.lt--minimalist .lt__img img { border-radius: var(--r-md); }

/* Animação: cada item surge ao entrar na tela (o site.js liga com .is-animado) */
.lt.is-animado .lt__item { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.lt.is-animado .lt__item.is-visible { opacity: 1; transform: none; }
.lt.is-animado .lt__marker { scale: .3; transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) .15s; }
.lt.is-animado .lt__item.is-visible .lt__marker { scale: 1; }

@media (max-width: 760px) {
    .lt--vertical { --lt-x: 9px; }
    .lt--steps.lt--vertical { --lt-x: 20px; }
    .lt--vertical .lt__item { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-left: 40px; }
    .lt--steps.lt--vertical .lt__item { padding-left: 60px; }
    .lt--vertical .lt__item:nth-child(n) .lt__text,
    .lt--vertical .lt__item:nth-child(n) .lt__img { grid-column: 1; grid-row: auto; justify-self: stretch; text-align: left; }
    .lt--minimalist.lt--vertical .lt__item:nth-child(n) .lt__img { justify-self: start; }
    .lt--cards.lt--alternating .lt__item:nth-child(odd) .lt__text::before { right: auto; left: -8px; border: 0; border-left: 1px solid var(--lt-card-border); border-bottom: 1px solid var(--lt-card-border); }
}

/* ---- Horizontal: um item por vez ---- */
.lt--horizontal { max-width: 1040px; margin-inline: auto; }
.lt-h__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.lt-h__titles { display: grid; justify-items: center; text-align: center; }
/* todos os títulos na mesma célula: a altura é a do maior e nada pula ao trocar */
.lt-h__title { grid-area: 1 / 1; margin: 0; color: var(--lt-title); visibility: hidden; opacity: 0; }
.lt-h__title.is-active { visibility: visible; opacity: 1; }
.lt-h__counter { grid-area: 2 / 1; margin: 8px 0 0; font-size: .875rem; color: var(--lt-text); font-variant-numeric: tabular-nums; }

/* Pontos: no máximo --lt-visiveis de cada vez; a faixa desliza (site.js põe
   --lt-inicio) e a borda esmaece quando há pontos escondidos daquele lado. */
.lt-h__axis { --lt-visible: 5; position: relative; max-width: 600px; margin: clamp(14px, 2vw, 24px) auto clamp(24px, 3.5vw, 44px); overflow: hidden; }
.lt-h__axis.has-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%); mask-image: linear-gradient(to right, transparent, #000 5%); }
.lt-h__axis.has-dir { -webkit-mask-image: linear-gradient(to left, transparent, #000 5%); mask-image: linear-gradient(to left, transparent, #000 5%); }
.lt-h__axis.has-left.has-dir { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.lt-h__dots { display: flex; margin: 0; padding: 6px 0; list-style: none; transform: translateX(calc(var(--lt-start, 0) * -100% / var(--lt-visible))); transition: transform .35s ease; }
/* com menos pontos que o limite, eles dividem a largura toda */
.lt-h__step { position: relative; flex: 1 0 calc(100% / var(--lt-visible)); display: flex; justify-content: center; }
/* trecho da linha entre o ponto anterior e este */
.lt-h__step::before { content: ""; position: absolute; top: 50%; right: 50%; width: 100%; height: 2px; margin-top: -1px; background: var(--lt-line); transition: background-color .3s; }
.lt-h__step:first-child::before { display: none; }
.lt-h__step.is-past::before, .lt-h__step.is-active::before { background: var(--lt-color); }
.lt-h__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.lt-h__dot::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--lt-line); border-radius: 50%; background: var(--lt-background); transition: width .2s, height .2s, background-color .2s, border-color .2s, box-shadow .2s; }
.lt-h__dot:hover::before { border-color: var(--lt-color); }
.lt-h__step.is-past .lt-h__dot::before { border-color: var(--lt-color); background: var(--lt-color); }
.lt-h__step.is-active .lt-h__dot::before { width: 18px; height: 18px; border-color: var(--lt-color); background: var(--lt-color); box-shadow: 0 0 0 5px var(--lt-halo); }
.lt--steps .lt-h__dot { width: 36px; height: 36px; border: 2px solid var(--lt-line); background: var(--lt-background); color: var(--lt-text); font-size: .9375rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.lt--steps .lt-h__dot::before { display: none; }
.lt--steps .lt-h__dot:hover, .lt--steps .lt-h__step.is-past .lt-h__dot { border-color: var(--lt-color); color: var(--lt-color); }
.lt--steps .lt-h__step.is-active .lt-h__dot { border-color: var(--lt-color); background: var(--lt-color); color: var(--white); box-shadow: 0 0 0 5px var(--lt-halo); }
.section.l-dark .lt--steps .lt-h__step.is-active .lt-h__dot { color: var(--brand-900); }
.lt--minimalist .lt-h__step::before { height: 1px; margin-top: 0; }
.lt--minimalist .lt-h__dot::before { width: 8px; height: 8px; border: 0; background: var(--lt-line); }
.lt--minimalist .lt-h__step.is-past .lt-h__dot::before { background: var(--lt-color); }
.lt--minimalist .lt-h__step.is-active .lt-h__dot::before { width: 12px; height: 12px; background: var(--lt-color); box-shadow: none; }

/* painéis empilhados na mesma célula: só o atual aparece; a altura é a do maior */
.lt-h__panels { display: grid; overflow: hidden; margin: 0 -16px -24px; padding: 4px 16px 24px; }
.lt-h__panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; align-self: start; visibility: hidden; opacity: 0; }
.lt-h__panel.is-active { visibility: visible; opacity: 1; }
.lt-h__panel .lt__img { order: -1; }
.lt-h__panel.lt__item--no-img { grid-template-columns: minmax(0, 1fr); justify-self: center; max-width: 760px; text-align: center; }
/* o título do item já aparece grande no topo; no painel fica só para leitores de tela */
.lt--horizontal .lt-h__panel .lt__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lt--cards .lt-h__panel { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--lt-card-border); border-radius: var(--r-xl); background: var(--lt-card); box-shadow: var(--shadow-light); }
.section.l-dark .lt--cards .lt-h__panel { box-shadow: none; }
.lt--minimalist .lt-h__panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

/* troca animada: o novo entra pelo lado do movimento e o anterior sai pelo outro */
.lt--animate .lt-h__panel,
.lt--animate .lt-h__title { transform: translateX(calc(var(--lt-dir, 1) * 32px)); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.lt--animate .lt-h__panel.is-active,
.lt--animate .lt-h__title.is-active { transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.lt--animate .lt-h__panel.is-leaving,
.lt--animate .lt-h__title.is-leaving { transform: translateX(calc(var(--lt-dir, 1) * -32px)); }

@media (max-width: 760px) {
    .lt-h__top { gap: 8px; }
    .lt-h__axis { --lt-visible: 3; }
    .lt-h__panel, .lt--minimalist .lt-h__panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media print {
    .lt.is-animado .lt__item { opacity: 1; transform: none; }
    .lt.is-animado .lt__marker { scale: 1; }
    .lt-h__top, .lt-h__axis { display: none; }
    .lt-h__panels { display: block; overflow: visible; }
    .lt-h__panel { visibility: visible; opacity: 1; transform: none; margin-bottom: 32px; break-inside: avoid; }
    .lt--horizontal .lt-h__panel .lt__title { position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal; }
}

/* 13. Rodapé, flutuantes e popup =========================================== */
.footer__map { padding-block: clamp(48px, 6vw, 80px); background: var(--mist); border-top: 1px solid var(--line); }
.footer__map-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer__title { margin: 0 0 14px; font-family: var(--font-title); font-size: 1.125rem; font-weight: 600; color: var(--brand-800); }
.footer__title a { color: inherit; text-decoration: none; }
.footer__title a:hover { color: var(--primary-600); }
.footer__column ul { margin: 0; padding: 0; list-style: none; }
.footer__column li a { display: inline-block; padding: 5px 0; color: var(--ink-2); font-size: .9875rem; text-decoration: none; }
.footer__column li a:hover { color: var(--primary-600); text-decoration: underline; }

.footer__base { padding-top: clamp(48px, 6vw, 72px); background: var(--brand-900); color: rgba(255, 255, 255, .78); }
.footer__base a { color: inherit; }
.footer__base :focus-visible { outline-color: var(--accent); }
.footer__base-in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { max-width: 38ch; margin: 20px 0 0; font-size: .9875rem; }
.social { display: flex; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    transition: background-color .15s, border-color .15s, color .15s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
.footer__contact { display: grid; align-content: start; gap: 20px; }
.footer__phone { display: grid; gap: 2px; text-decoration: none; }
.footer__phone small { font-size: .875rem; color: rgba(255, 255, 255, .62); }
.footer__phone strong { font-size: 1.375rem; color: var(--white); letter-spacing: -.01em; }
.footer__phone:hover strong { color: var(--accent); }
.footer__address { display: grid; align-content: start; gap: 14px; }
.footer__line { display: flex; gap: 12px; margin: 0; font-size: .9875rem; }
.footer__line .ico { margin-top: 3px; color: var(--accent); }
.footer__line a { text-decoration: none; }
.footer__line a:hover { color: var(--white); text-decoration: underline; }
.footer__routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 22px 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .875rem;
    color: rgba(255, 255, 255, .6);
}
.footer__legal p { margin: 0; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 900px) { .footer__base-in { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__base-in { grid-template-columns: 1fr; } .footer__map-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* Botões flutuantes no canto: WhatsApp em cima e "voltar ao topo" embaixo. Escondido, o
   "voltar ao topo" continua ocupando o lugar, para o WhatsApp não pular ao rolar a página. */
.floating-actions { position: fixed; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; } /* só os botões recebem clique */
.floating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-floating);
    text-decoration: none;
    pointer-events: auto;
    transition: transform .18s, background-color .18s, opacity .2s, visibility .2s;
}
.floating--top[hidden] { visibility: hidden; opacity: 0; }
/* Selo da Central de Atendimento: maior que os outros botões para o texto e o número ficarem legíveis.
   Chama a atenção com um halo que "respira" em volta (::before) e um brilho que atravessa o selo (::after). */
.floating--whats {
    --halo-1: 16px;   /* alcance dos dois anéis do halo */
    --halo-2: 30px;
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--white);
    border: 2px solid var(--white);
    animation: clara-entrada .7s cubic-bezier(.2, .9, .3, 1.3) .4s backwards;
}
.floating--whats:hover { transform: translateY(-3px) scale(1.04); }
.floating--whats img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.floating--whats::before,
.floating--whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.floating--whats::before { animation: clara-halo 2.8s ease-out 1.2s infinite; }
.floating--whats::after {
    background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / .85) 50%, transparent 62%) 100% 0 / 250% 100% no-repeat;
    animation: clara-brilho 5s ease-in-out 1.6s infinite;
}
@keyframes clara-entrada { from { opacity: 0; transform: scale(.5) translateY(20px); } }
@keyframes clara-halo {
    0%        { box-shadow: 0 0 0 0 rgb(31 111 197 / .6), 0 0 0 0 rgb(31 111 197 / .35); }
    70%, 100% { box-shadow: 0 0 0 var(--halo-1) rgb(31 111 197 / 0), 0 0 0 var(--halo-2) rgb(31 111 197 / 0); }
}
@keyframes clara-brilho { 0%, 65% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@media (max-width: 560px) { .floating--whats { --halo-1: 8px; --halo-2: 14px; width: 96px; height: 96px; } }   /* no celular o selo fica a 14px da borda da tela */
.floating--top { width: 44px; height: 44px; background: var(--white); color: var(--brand-800); border: 1px solid var(--line); }
.floating--top .ico { font-size: 1.2rem; }
.floating--top:hover { background: var(--mist); }

.popup { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup__background { position: absolute; inset: 0; background: color-mix(in srgb, var(--brand-900) 72%, transparent); backdrop-filter: blur(4px); animation: shows .25s ease-out; }
.popup__box { position: relative; max-width: min(620px, 100%); animation: up .35s cubic-bezier(.2, .8, .2, 1); }
.popup__box img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r-lg); box-shadow: var(--shadow-floating); }
.popup__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--brand-800);
    font-size: 1.25rem;
    box-shadow: var(--shadow-light);
}
@media (max-width: 600px) { .popup__close { top: -54px; right: 0; } }

/* Vídeos e Gráficos: 1, 2 ou 3 itens por linha ============================= */
.section--width-narrow .section-header { max-width: 760px; margin-inline: auto; }
.section--width-medium .section-header { max-width: 980px; margin-inline: auto; }
/* flex (e não grid) para os itens que sobram na última linha ficarem no centro */
.media-grid {
    --columns: 1;
    --gap: clamp(20px, 3vw, 36px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(28px, 4vw, 48px) var(--gap);
}
.media-grid--2 { --columns: 2; }
.media-grid--3 { --columns: 3; }
.media-item { flex: 0 0 calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns)); min-width: 0; margin: 0; }
@media (max-width: 1000px) { .media-grid--3 { --columns: 2; } }
.media-item__title { margin: 0 0 14px; color: var(--brand-800); font-family: var(--font); font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); font-weight: 700; line-height: 1.3; }
.media-item__description { margin-top: 12px; color: var(--smooth); font-size: .9375rem; line-height: 1.55; }
.section.l-dark .media-item__title { color: var(--white); }
.section.l-dark .media-item__description { color: rgba(255, 255, 255, .72); }
@media (max-width: 760px) {
    .media-grid { --columns: 1; }
}

/* Elemento Vídeo ============================================================ */
.section--video { overflow-x: clip; }
.video-block { margin-inline: auto; }
.video-block--narrow { max-width: 760px; }
.video-block--medium { max-width: 980px; }
.media-item__description.text-rich > :last-child { margin-bottom: 0; }
/* Tela inteira: a grade sai das margens da página (dentro do painel, só ocupa o painel) */
.video-block--total .media-grid { width: 100vw; margin-inline: calc(50% - 50vw); }
.l-box .video-block--total .media-grid { width: auto; margin-inline: 0; }
.video-block--total .media-item__title, .video-block--total .media-item__description { padding-inline: var(--margin); }

.video__box {
    position: relative;
    aspect-ratio: var(--video-format, 16 / 9);
    overflow: hidden;
    background: #0b0d10;
    isolation: isolate;
}
.video__box iframe,
.video__box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video__box video { object-fit: contain; }
.video__box iframe { z-index: 2; opacity: 0; transition: opacity .35s ease; }
.video__box.is-open iframe { opacity: 1; }

/* Capa com o botão de play */
.video__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: linear-gradient(160deg, #2a2f36, #0b0d10);
    color: var(--white);
    cursor: pointer;
}
.video__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.video__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .35)); pointer-events: none; }
.video__cover--about { background: rgba(0, 0, 0, .12); transition: opacity .3s ease, visibility .3s; }
.video__play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(56px, 6vw, 76px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-800);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s;
}
/* o triângulo já vem com o centro de massa no meio do desenho */
.video__play svg { display: block; width: 42%; height: 42%; fill: currentColor; }
.video__cover:hover .video__play,
.video__cover:focus-visible .video__play { transform: scale(1.08); background: var(--primary-500); color: var(--white); }
.video__cover:hover img { transform: scale(1.03); }
.video__cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video__duration { position: absolute; right: 12px; bottom: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .62); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.video__duration[hidden] { display: none; }
.video__box.is-playing .video__cover--about { opacity: 0; visibility: hidden; }
.video__box.is-loading .video__play { animation: video-pulse 1s ease-in-out infinite; }
@keyframes video-pulse { 50% { transform: scale(.92); opacity: .75; } }
.video__link { position: absolute; inset: auto 0 16px; z-index: 3; text-align: center; color: var(--white); }

/* Estilos do player */
.video--card .video__box { border-radius: var(--r-lg); box-shadow: var(--shadow-floating); }
.video--frame { padding: clamp(6px, 1vw, 10px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-light); }
.video--frame .video__box { border-radius: var(--r-lg); }
.section.l-dark .video--frame { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); box-shadow: none; }
.video-block--total .video--card .video__box { border-radius: 0; box-shadow: none; }
.video-block--total .video--frame { border-radius: 0; border-inline: 0; }
.media-grid--2 .video--card .video__box, .media-grid--3 .video--card .video__box { border-radius: var(--r-md); }

/* Vertical (9:16): não fica gigante no computador */
.video--vertical .video__box { width: min(100%, 400px); margin-inline: auto; }
.video--vertical.video--frame { width: fit-content; max-width: 100%; margin-inline: auto; }
.video--vertical.video--frame .video__box { width: min(78vw, 400px); }

@media (max-width: 600px) {
    .video--frame { padding: 6px; border-radius: var(--r-lg); }
    .video--frame .video__box { border-radius: var(--r-sm); }
    .video--card .video__box { border-radius: var(--r-md); }
}

/* Elemento Gráfico ========================================================== */
.chart-block { margin-inline: auto; }
.chart-block--narrow { max-width: 760px; }
.chart-block--medium { max-width: 980px; }
.chart { --chart-height: 380px; color: var(--ink-2); }
.chart--height-low { --chart-height: 280px; }
.chart--height-high { --chart-height: 480px; }
.chart__area { position: relative; height: var(--chart-height); }
.chart__area canvas { display: block; }
.chart--card { padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-light); }
.section.l-dark .chart { color: rgba(255, 255, 255, .88); }
.section.l-dark .chart--card { color: var(--ink-2); }
.section.l-dark .chart--card .media-item__title { color: var(--brand-800); }
.section.l-dark .chart--card .media-item__description { color: var(--smooth); }

@media (max-width: 600px) {
    .chart__area { height: calc(var(--chart-height) * .8); min-height: 240px; }
    .chart--circular .chart__area { height: calc(var(--chart-height) * .95); min-height: 300px; }
    .chart--card { padding: 14px 12px; }
}

/* 14. Movimento reduzido =================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .marquee__strip { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee__strip li[aria-hidden="true"] { display: none; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
}
