/* Instituto Dois Pinheiros: protótipo HTML (gate visual). Tokens iguais aos que irão para o :root do tema. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Cores do arquivo oficial do logo (PDF). */
  --c-vermelho: #EE3123;
  --c-azul: #04B6DC;
  --c-verde: #8EA70D;
  --c-laranja: #FF8B02;
  --c-cinza: #636363;
  --c-preto: #231F20;
  /* Derivadas para texto e links com contraste AA (provisórias, sem manual). */
  --c-azul-texto: #036F87;
  --c-verde-texto: #5A6B06;
  --c-vermelho-texto: #C21E12;
  --c-fundo: #FFFFFF;
  --c-fundo-2: #F6F6F3;
  --c-linha: #E3E2DD;
  --c-texto: #231F20;
  --c-texto-2: #4F4F4F;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r1: 10px; --r2: 18px; --r3: 28px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--c-texto); background: var(--c-fundo); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-azul-texto); text-underline-offset: 3px; }
a:hover { color: var(--c-preto); }
:focus-visible { outline: 3px solid var(--c-azul); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-preto); color: #fff; padding: 10px 16px; border-radius: var(--r1); }
.pular:focus { top: 12px; }

/* Faixa de 4 cores (assinatura do símbolo) */
.faixa-cores { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.faixa-cores span:nth-child(1) { background: var(--c-vermelho); }
.faixa-cores span:nth-child(2) { background: var(--c-azul); }
.faixa-cores span:nth-child(3) { background: var(--c-verde); }
.faixa-cores span:nth-child(4) { background: var(--c-laranja); }

/* Sobretítulo */
.sobre { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-texto-2); margin-bottom: 14px; }
.sobre::before { content: ""; width: 22px; height: 22px; border-radius: 0 22px 0 0; background: var(--c-vermelho); flex: none; }
.sobre--azul::before { border-radius: 50%; background: var(--c-azul); }
.sobre--verde::before { border-radius: 0 0 0 22px; background: var(--c-verde); }
.sobre--laranja::before { border-radius: 0 0 22px 0; background: var(--c-laranja); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--c-texto-2); max-width: 62ch; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--c-preto); background: var(--c-preto); color: #fff; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s; }
.btn:hover { color: #fff; transform: translateY(-2px); background: #000; }
.btn--linha { background: transparent; color: var(--c-preto); }
.btn--linha:hover { background: var(--c-preto); color: #fff; }
.btn--branco { background: #fff; color: var(--c-preto); border-color: #fff; }
.btn--branco:hover { background: var(--c-fundo-2); color: var(--c-preto); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--c-linha); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.marca { display: inline-flex; align-items: center; flex: none; }
.marca img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--c-texto); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--c-fundo-2); color: var(--c-preto); }
.nav a[aria-current="page"], .nav a.is-ativo { background: var(--c-fundo-2); box-shadow: inset 0 -3px 0 var(--c-azul); }
.nav .tem-sub { position: relative; }
.nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 6px); min-width: 300px; background: #fff; border: 1px solid var(--c-linha); border-radius: var(--r2); box-shadow: 0 20px 40px -20px rgba(35,31,32,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.nav .tem-sub:hover .sub, .nav .tem-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: flex; width: 100%; border-radius: var(--r1); }
.nav a.btn, .nav a.btn:hover { color: #fff; background: var(--c-preto); }
.nav .cta-topo { margin-left: 10px; min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  :root { --header-h: 70px; }
  .marca img { height: 54px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--c-linha); border-radius: 999px; background: #fff; font: 600 .95rem var(--font); color: var(--c-preto); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .js .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 32px; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .js .nav.is-aberto { opacity: 1; transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a { min-height: 52px; font-size: 1.08rem; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav .cta-topo { margin: 12px 0 0; }
  /* Sem JS: o menu aparece inteiro abaixo do cabeçalho. */
  html:not(.js) .topo .wrap { height: auto; flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .menu-btn { display: none; }
}

/* Seções */
.secao { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.secao--cinza { background: var(--c-fundo-2); }
.secao--preta { background: var(--c-preto); color: #fff; }
.secao--preta .lead, .secao--preta p { color: #D9D7D3; }
.secao--preta .sobre { color: #CFCDC8; }
.cab-secao { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.cab-secao > div { max-width: 720px; }
.cab-secao .lead { margin: 0; }

/* Herói: foto de fundo em toda a largura, véu escuro de baixo para cima e texto por cima (ajuste 04192932). */
.heroi { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(560px, calc(100svh - var(--header-h) - 6px), 760px); padding: clamp(96px, 14vh, 160px) 0 clamp(48px, 7vw, 88px); color: #fff; background: var(--c-preto); }
.heroi__fundo, .heroi__fundo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.heroi__fundo { z-index: -2; }
.heroi__fundo img { object-fit: cover; object-position: 50% 0%; animation: heroi-zoom 1.6s var(--ease) both; }
.heroi__veu { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(35,31,32,.92) 0%, rgba(35,31,32,.82) 30%, rgba(35,31,32,.55) 52%, rgba(35,31,32,.12) 74%, rgba(35,31,32,0) 88%),
  linear-gradient(90deg, rgba(35,31,32,.45) 0%, rgba(35,31,32,.2) 38%, rgba(35,31,32,0) 60%); }
.heroi__txt { position: relative; }
.heroi__txt > * { max-width: 580px; }
.heroi .sobre { color: #fff; }
.heroi h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.heroi h1 span { display: block; color: #F2F1EE; font-weight: 500; font-size: .55em; letter-spacing: 0; margin-top: 12px; }
.heroi .lead { color: #fff; }
.heroi .heroi__sub { margin: 18px 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.heroi .btns { margin-top: 28px; }
.btn--vazado { background: transparent; color: #fff; border-color: #fff; }
.btn--vazado:hover { background: #fff; color: var(--c-preto); }
.heroi__faixa { position: absolute; left: 0; right: 0; bottom: 0; }
@keyframes heroi-zoom { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 620px) {
  /* Celular: recorte retrato (rosto inteiro no alto) na largura da tela, fundindo no escuro onde fica o texto. */
  .heroi { min-height: calc(100svh - var(--header-h) - 6px); padding-top: 120px; }
  .heroi__fundo { bottom: auto; height: auto; }
  .heroi__fundo img { position: relative; height: auto; aspect-ratio: 720 / 922; object-position: 50% 0%; }
  .heroi__veu { background: linear-gradient(180deg, rgba(35,31,32,0) 0%, rgba(35,31,32,0) 26%, rgba(35,31,32,.72) 38%, rgba(35,31,32,.92) 48%, #231F20 58%); }
  .heroi .btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .heroi__fundo img { animation: none; } }
/* Páginas internas */
.cab-pagina { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); background: var(--c-fundo-2); position: relative; overflow: hidden; }
.cab-pagina::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--c-azul); opacity: .9; }
.cab-pagina .wrap { position: relative; z-index: 1; }
/* Celular e tablet: círculo menor, só no canto, para nunca ficar atrás da trilha, do sobretítulo ou do título (ajuste de 19/11). */
@media (max-width: 768px) { .cab-pagina::after { width: 96px; height: 96px; right: -56px; top: -56px; } }
.cab-pagina h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; }
.cab-pagina .lead { margin: 0; }
.trilha { font-size: .9rem; margin-bottom: 18px; }
.trilha ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--c-texto-2); }
.trilha li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--c-cinza); }
.trilha a { color: var(--c-texto-2); }
.trilha [aria-current] { color: var(--c-preto); font-weight: 500; }

/* Grade e cartões */
.grade { display: grid; gap: clamp(16px, 2vw, 24px); }
.grade--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grade--3, .grade--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grade--2, .grade--3, .grade--4 { grid-template-columns: minmax(0, 1fr); } }
.cartao { background: #fff; border: 1px solid var(--c-linha); border-radius: var(--r2); padding: clamp(20px, 2.4vw, 28px); position: relative; }
.cartao h3 { margin-bottom: 8px; }
.cartao p:last-child { margin-bottom: 0; }
.cartao--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.cartao--link:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(35,31,32,.4); color: inherit; }
.cartao--link .mais { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--c-azul-texto); }
.cartao__num { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--c-cinza); }

/* Destaque do Ensino */
.destaque-ensino { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: var(--r3); overflow: hidden; background: var(--c-preto); color: #fff; }
.destaque-ensino__txt { padding: clamp(28px, 4vw, 56px); }
.destaque-ensino__txt p { color: #D9D7D3; }
.destaque-ensino__txt h2 { color: #fff; }
.destaque-ensino__lado { background: var(--c-azul); color: var(--c-preto); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; }
.destaque-ensino__lado::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.25); }
.destaque-ensino__lado strong { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; display: block; position: relative; }
.destaque-ensino__lado .btn { align-self: flex-start; position: relative; }
@media (max-width: 860px) { .destaque-ensino { grid-template-columns: 1fr; } }

/* Contadores */
.contadores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--c-linha); border: 1px solid var(--c-linha); border-radius: var(--r3); overflow: hidden; }
.contador { background: #fff; padding: clamp(24px, 3vw, 40px); position: relative; }
.contador::before { content: ""; position: absolute; left: clamp(24px, 3vw, 40px); top: 0; width: 44px; height: 5px; background: var(--cor, var(--c-vermelho)); }
.contador__num { display: block; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.contador__rot { display: block; font-weight: 600; }
.contador__fonte { display: block; color: var(--c-texto-2); font-size: .92rem; margin-top: 4px; }
@media (max-width: 860px) { .contadores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contadores { grid-template-columns: minmax(0, 1fr); } }

/* Projetos */
.projeto-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.projeto-card picture { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.projeto-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.projeto-card:hover img { transform: scale(1.04); }
.projeto-card .corpo { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.projeto-card .selo { align-self: flex-start; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--c-fundo-2); color: var(--c-texto-2); margin-bottom: 12px; }
.projeto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--c-linha); }
.projeto:nth-of-type(even) .projeto__fotos { order: 2; }
.projeto__fotos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.projeto__fotos picture { border-radius: var(--r2); overflow: hidden; }
.projeto__fotos picture:first-child { grid-row: span 2; }
.projeto__fotos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.projeto__fotos picture:first-child img { aspect-ratio: auto; height: 100%; }
.projeto__dados { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.projeto__dados li { padding: 8px 14px; border-radius: 999px; background: var(--c-fundo-2); font-weight: 600; font-size: .92rem; }
.projeto__semfoto { aspect-ratio: 4 / 3; border-radius: var(--r2); display: grid; place-items: center; background: var(--c-fundo-2); position: relative; overflow: hidden; }
.projeto__semfoto::before { content: ""; position: absolute; width: 55%; aspect-ratio: 1; border-radius: 0 0 50% 50%; background: var(--cor, var(--c-laranja)); bottom: 18%; }
.projeto__semfoto::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--c-azul); top: 16%; right: 24%; }
@media (max-width: 860px) { .projeto { grid-template-columns: 1fr; } .projeto:nth-of-type(even) .projeto__fotos { order: 0; } }

/* Linha do tempo (set piece) */
.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linha-tempo::before { content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 2px; background: var(--c-linha); }
.linha-tempo__progresso { position: absolute; left: 110px; top: 6px; width: 2px; height: 0; background: linear-gradient(var(--c-vermelho), var(--c-azul), var(--c-verde), var(--c-laranja)); }
.linha-tempo li { display: grid; grid-template-columns: 90px 1fr; gap: 42px; padding: 0 0 clamp(28px, 4vw, 44px); position: relative; }
.linha-tempo li::before { content: ""; position: absolute; left: 103px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cor, var(--c-vermelho)); }
.linha-tempo .ano { font-size: 1.6rem; font-weight: 700; line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; }
.linha-tempo .ano small { display: block; font-size: .75rem; font-weight: 500; color: var(--c-texto-2); }
.linha-tempo h3 { margin-bottom: 6px; }
.linha-tempo p { color: var(--c-texto-2); margin: 0; }
@media (max-width: 560px) {
  .linha-tempo::before, .linha-tempo__progresso { left: 8px; }
  .linha-tempo li { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .linha-tempo li::before { left: 1px; }
  .linha-tempo .ano { text-align: left; }
}

/* Revelação na rolagem (só com JS e sem movimento reduzido) */
.js .rev { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rev.is-visivel { opacity: 1; transform: none; }

/* Menu interno da Residência */
.menu-interno { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--c-linha); }
.menu-interno ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu-interno ul::-webkit-scrollbar { display: none; }
.menu-interno a { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; white-space: nowrap; color: var(--c-texto-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.menu-interno a:hover { color: var(--c-preto); }
.menu-interno a[aria-current="page"] { color: var(--c-preto); border-color: var(--c-azul); font-weight: 600; }
.menu-interno .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-fundo-2); font-size: .78rem; font-weight: 600; }
.menu-interno a[aria-current="page"] .n { background: var(--c-azul); color: var(--c-preto); }
.menu-interno details { display: none; }
@media (max-width: 760px) {
  .menu-interno ul.lista-desk { display: none; }
  .menu-interno details { display: block; }
  .menu-interno summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 600; cursor: pointer; }
  .menu-interno summary::-webkit-details-marker { display: none; }
  .menu-interno summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); margin-right: 6px; transition: transform .2s; }
  .menu-interno details[open] summary::after { transform: rotate(-135deg); }
  .menu-interno details ul { flex-direction: column; padding-bottom: 12px; }
  .menu-interno details a { min-height: 48px; border-bottom: 0; border-left: 3px solid transparent; }
  .menu-interno details a[aria-current="page"] { border-left-color: var(--c-azul); }
}

/* Blocos R1 a R3 (acordeão) */
.bloco-r { border: 1px solid var(--c-linha); border-radius: var(--r2); background: #fff; margin-bottom: 14px; overflow: hidden; }
.bloco-r summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; min-height: 72px; }
.bloco-r summary::-webkit-details-marker { display: none; }
.bloco-r .sigla { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cor, var(--c-vermelho)); color: #fff; font-weight: 700; font-size: 1.15rem; }
.bloco-r .titulo { font-weight: 600; font-size: 1.1rem; }
.bloco-r .titulo small { display: block; font-weight: 400; color: var(--c-texto-2); font-size: .9rem; }
.bloco-r .total { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.bloco-r summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .25s var(--ease); }
.bloco-r[open] summary::after { transform: rotate(-135deg); }
.bloco-r .conteudo { padding: 0 22px 22px; }
.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.tabela th, .tabela td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-linha); vertical-align: top; }
.tabela th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-texto-2); font-weight: 600; background: var(--c-fundo-2); }
.tabela tfoot td { font-weight: 600; border-bottom: 0; }
@media (max-width: 560px) { .bloco-r summary { grid-template-columns: auto 1fr auto; } .bloco-r .total { grid-column: 2; grid-row: 2; } }

/* Docentes */
.docente { display: flex; flex-direction: column; gap: 4px; }
.docente .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--cor, var(--c-azul-texto)); margin-bottom: 12px; font-size: 1.1rem; }
.docente .reg { font-size: .9rem; color: var(--c-texto-2); }
.docente .funcao { margin-top: 8px; font-size: .9rem; }

/* Documentos */
.docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-linha); border-radius: var(--r2); overflow: hidden; background: #fff; }
.docs li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--c-linha); }
.docs li:last-child { border-bottom: 0; }
.docs .ico { width: 44px; height: 52px; border-radius: 8px; background: var(--c-fundo-2); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--c-vermelho-texto); border: 1px solid var(--c-linha); }
.docs .nome { font-weight: 600; }
.docs .meta { display: block; font-size: .88rem; color: var(--c-texto-2); font-weight: 400; }
.docs .estado { font-size: .88rem; color: var(--c-texto-2); white-space: nowrap; }
@media (max-width: 560px) { .docs li { grid-template-columns: auto 1fr; } .docs .estado { grid-column: 2; } }

/* Etapas do processo seletivo */
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: etapa; }
.etapas li { counter-increment: etapa; background: #fff; border: 1px solid var(--c-linha); border-radius: var(--r2); padding: 22px; position: relative; }
.etapas li::before { content: counter(etapa); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cor, var(--c-preto)); color: #fff; font-weight: 700; margin-bottom: 14px; }
.etapas li:nth-child(4n+1) { --cor: var(--c-vermelho-texto); }
.etapas li:nth-child(4n+2) { --cor: var(--c-azul-texto); }
.etapas li:nth-child(4n+3) { --cor: var(--c-verde-texto); }
.etapas li:nth-child(4n+4) { --cor: #B35F00; }
.etapas h3 { font-size: 1.1rem; margin-bottom: 4px; }
.etapas p { margin: 0; color: var(--c-texto-2); font-size: .95rem; }
@media (max-width: 860px) { .etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .etapas { grid-template-columns: minmax(0, 1fr); } }

/* Grupos da Turma */
.grupos-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.grupos-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--c-linha); border-radius: 999px; text-decoration: none; color: var(--c-preto); font-weight: 500; background: #fff; }
.grupos-nav a:hover { border-color: var(--c-preto); }
.grupo { margin-bottom: 40px; }
.grupo h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); display: flex; align-items: center; gap: 12px; }
.grupo h2::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--cor, var(--c-azul)); }


/* Avisos */
.aviso { display: flex; flex-direction: column; gap: 8px; }
.aviso time { font-size: .85rem; color: var(--c-texto-2); font-weight: 500; }
.noticia .noticia__fonte { font-size: .85rem; color: var(--c-texto-2); margin: 0; }
.noticia .mais { margin-top: auto; padding-top: 6px; font-weight: 600; }

/* Contato */
.contato-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contato-grid { grid-template-columns: 1fr; } }
.canais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.canais li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--c-linha); border-radius: var(--r2); background: #fff; }
.canais .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c-fundo-2); color: var(--c-preto); }
.canais .ico svg { width: 24px; height: 24px; }
.canais b { display: block; }
.canais span { color: var(--c-texto-2); font-size: .95rem; }
.form { background: #fff; border: 1px solid var(--c-linha); border-radius: var(--r3); padding: clamp(22px, 3vw, 36px); }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 500; margin-bottom: 6px; }
.campo input, .campo textarea { width: 100%; min-height: 50px; border: 1px solid #CFCDC8; border-radius: var(--r1); padding: 12px 14px; font: 400 16px var(--font); color: var(--c-texto); background: #fff; }
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 3px solid var(--c-azul); outline-offset: 1px; border-color: var(--c-preto); }
.campo .erro { display: none; color: var(--c-vermelho-texto); font-size: .9rem; margin-top: 6px; }
.campo.tem-erro input, .campo.tem-erro textarea { border-color: var(--c-vermelho-texto); }
.campo.tem-erro .erro { display: block; }
.aceite { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .95rem; margin-bottom: 18px; }
.aceite input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-preto); }
.form__msg { margin-top: 14px; font-weight: 500; }
.form__msg:empty { display: none; }

/* Texto corrido */
.texto { max-width: 760px; }
.texto h2 { margin-top: 1.4em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Rodapé */
.rodape { background: var(--c-preto); color: #D9D7D3; padding: clamp(48px, 7vw, 80px) 0 28px; }
.rodape a { color: #fff; }
.rodape__grade { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; }
.rodape__marca img { width: 132px; height: auto; }
.rodape h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rodape ul a { text-decoration: none; }
.rodape ul a:hover { text-decoration: underline; }
.rodape__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.rodape__base { align-items: center; padding-right: 170px; }
.rodape__mrx { display: inline-flex; align-items: center; min-height: 44px; }
.rodape__mrx img { height: 30px; width: auto; }
@media (max-width: 620px) { .rodape__base { padding-right: 72px; } }
@media (max-width: 900px) { .rodape__grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rodape__grade { grid-template-columns: 1fr; } }

/* WhatsApp flutuante (único CTA de WhatsApp fixo) */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.wa:hover { color: #fff; background: #187A41; }
.wa svg { width: 24px; height: 24px; }
/* Inscrição: no celular o botão flutuante sai para não cobrir os campos; no desktop continua (decisão do Junior, 19/11). */
@media (max-width: 768px) { .pg-inscricao .wa { display: none; } }
@media (max-width: 620px) { .wa span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa { padding: 0; width: 56px; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rev { opacity: 1; transform: none; }
}

/* Ajustes 3 a 6 (18/11/2026) */
/* Valores: um item por linha, com marcador nas cores da marca. */
.valores-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.valores-lista li { display: flex; align-items: center; gap: 10px; }
.valores-lista li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-vermelho); }
.valores-lista li:nth-child(4n+2)::before { background: var(--c-azul); }
.valores-lista li:nth-child(4n+3)::before { background: var(--c-verde); }
.valores-lista li:nth-child(4n+4)::before { background: var(--c-laranja); }
/* Diretoria: foto em círculo no lugar das iniciais. */
.docente .avatar--foto { display: block; width: 96px; height: 96px; padding: 0; overflow: hidden; background: var(--c-fundo-2); }
.docente .avatar--foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 50%; }
/* Projeto com uma foto só: proporção natural, sem cortar (Dia do Bebê 4:3, Jornada 16:9). */
.projeto__fotos--uma { grid-template-columns: minmax(0, 1fr); }
.projeto__fotos--uma picture:first-child { grid-row: auto; }
.projeto__fotos--uma picture:first-child img { aspect-ratio: auto; height: auto; }
/* Inscrição (ec7f3bcd): formulário em 6 etapas, revisão, comprovante simulado e impressão. */
.insc-wrap { max-width: 900px; }
.insc__nojs { margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid var(--c-azul); background: var(--c-fundo-2); border-radius: var(--r1); font-size: .92rem; color: var(--c-texto-2); }
.insc__progresso { margin: 0 0 24px; }
.insc__passos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: passo; }
.insc__passos li { counter-increment: passo; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; line-height: 1.25; color: var(--c-texto-2); }
.insc__passos li::before { content: counter(passo); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-linha); background: #fff; font-weight: 700; color: var(--c-texto-2); }
.insc__passos li.is-feito::before { content: "\2713"; background: var(--c-verde-texto); border-color: var(--c-verde-texto); color: #fff; }
.insc__passos li.is-atual { color: var(--c-preto); font-weight: 600; }
.insc__passos li.is-atual::before { background: var(--c-preto); border-color: var(--c-preto); color: #fff; }
.insc__barra { height: 6px; border-radius: 999px; background: var(--c-linha); overflow: hidden; }
.insc__barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-vermelho), var(--c-azul), var(--c-verde), var(--c-laranja)); transition: width .4s var(--ease); }
.insc__passo-txt { margin: 10px 0 0; font-weight: 600; }
@media (max-width: 620px) { .insc__passos li span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .insc__passos li { align-items: center; } }
.insc__etapa { border: 1px solid var(--c-linha); border-radius: var(--r3); padding: clamp(20px, 3vw, 36px); margin: 0 0 20px; background: #fff; min-width: 0; }
.insc__etapa.is-entrando { animation: insc-entra .35s var(--ease) both; }
@keyframes insc-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.insc__etapa legend { float: left; width: 100%; padding: 0; margin: 0 0 20px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.insc__etapa legend:focus { outline: none; }
.insc__n { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-texto-2); margin-bottom: 6px; }
.insc__grade { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.insc__grade .campo--largo { grid-column: 1 / -1; }
@media (max-width: 620px) { .insc__grade { grid-template-columns: minmax(0, 1fr); } }
.insc .campo select { width: 100%; min-height: 50px; border: 1px solid #CFCDC8; border-radius: var(--r1); padding: 12px 14px; font: 400 16px var(--font); color: var(--c-texto); background: #fff; }
.insc .campo select:focus { outline: 3px solid var(--c-azul); outline-offset: 1px; border-color: var(--c-preto); }
.insc .campo.tem-erro select { border-color: var(--c-vermelho-texto); }
.insc .obrig { color: var(--c-vermelho-texto); margin-left: 3px; }
.insc .opc { color: var(--c-texto-2); font-weight: 400; font-size: .9rem; }
.insc .campo .dica { margin: 6px 0 0; font-size: .9rem; color: var(--c-texto-2); }
.insc__idade { margin: 6px 0 0; font-size: .92rem; font-weight: 600; color: var(--c-verde-texto); }
.insc__idade:empty, .insc__cep:empty { display: none; }
.insc__cep { margin: 6px 0 0; font-size: .92rem; color: var(--c-texto-2); }
.insc__cep.is-ok { color: var(--c-verde-texto); font-weight: 500; }
.insc__cep.is-aviso { color: #8A4B00; font-weight: 500; }
.insc .campo--check .aceite { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; min-height: 44px; padding-top: 10px; margin: 0; font-weight: 400; cursor: pointer; }
.insc .campo--check .aceite input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-preto); min-height: 0; }
.insc__aceites { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-linha); }
.insc__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.insc__nav [data-avancar], .insc__nav [data-enviar] { margin-left: auto; }
@media (max-width: 620px) { .insc__nav .btn { flex: 1 1 100%; margin: 0; } .insc__nav [data-voltar] { order: 2; } }
html:not(.insc-js) .insc__revisao { display: none; }
.insc-rev__intro { margin: 0 0 6px; color: var(--c-texto-2); }
.insc-rev__bloco { border-top: 1px solid var(--c-linha); padding: 16px 0; }
.insc-rev__cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.insc-rev__cab h3 { margin: 0; font-size: 1.1rem; }
.btn-editar { min-height: 44px; padding: 0 18px; border: 1px solid var(--c-linha); border-radius: 999px; background: #fff; color: var(--c-preto); font: 600 .95rem var(--font); cursor: pointer; }
.btn-editar:hover { border-color: var(--c-preto); }
.insc-rev__bloco dl { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; font-size: .95rem; }
.insc-rev__bloco dt { color: var(--c-texto-2); }
.insc-rev__bloco dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.insc__vazio { color: var(--c-texto-2); font-weight: 400; font-style: italic; }
@media (max-width: 620px) { .insc-rev__bloco dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .insc-rev__bloco dd { margin-bottom: 8px; } }
.insc-ok { background: #fff; border: 1px solid var(--c-linha); border-radius: var(--r3); padding: clamp(24px, 4vw, 44px); }
.insc-ok:focus { outline: none; }
.insc-ok h2 { margin-bottom: 10px; }
.insc-ok__num { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 700; margin: 0 0 18px; }
.insc-ok__dados { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 20px; }
.insc-ok__dados dt { color: var(--c-texto-2); }
.insc-ok__dados dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 620px) { .insc-ok__dados { grid-template-columns: minmax(0, 1fr); gap: 2px; } .insc-ok__dados dd { margin-bottom: 8px; } }
.insc-ok__sim { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #FFE7A3; color: #3D2C00; font-size: .88rem; font-weight: 600; }
.insc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--c-linha); border-radius: var(--r2); background: var(--c-fundo-2); }
.insc-cta__txt { margin: 0; font-weight: 600; }
@media print {
  body:has(.insc-ok) .topo, body:has(.insc-ok) .rodape, body:has(.insc-ok) .wa, body:has(.insc-ok) .pular, body:has(.insc-ok) .menu-interno,
  body:has(.insc-ok) .cab-pagina, body:has(.insc-ok) .insc, body:has(.insc-ok) .insc__progresso, body:has(.insc-ok) .insc__nojs, body:has(.insc-ok) [data-imprimir] { display: none !important; }
  body:has(.insc-ok) { background: #fff; color: #000; font-size: 12pt; }
  body:has(.insc-ok) .secao { padding: 0; }
  body:has(.insc-ok) .insc-ok { border: 1px solid #000; border-radius: 0; box-shadow: none; }
  body:has(.insc-ok) .insc-ok__sim { background: none; border: 1px solid #000; color: #000; }
}/* hidden vence o display dos botões (.btn é inline-flex). */
.insc [hidden], .insc-wrap [hidden] { display: none !important; }
/* Ao trocar de etapa, a rolagem para abaixo do cabeçalho fixo e do menu da Residência. */
.insc__progresso, .insc-ok { scroll-margin-top: 72px; }

