.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- topo ---------- */
.topo { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.05rem; }
.marca-prot { display: inline-grid; place-items: center; width: 38px; height: 38px; color: #fff;
  background: linear-gradient(135deg, var(--laranja-2), var(--laranja)); border-radius: 46% 54% 52% 48% / 58% 44% 56% 42%; }
.marca-prot svg { width: 24px; height: 24px; }
.marca b { font-weight: 500; color: var(--ink-2); }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.menu a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 640px) { .marca b { display: none; } .menu { gap: 0; } .menu a { padding: 8px 7px; font-size: .84rem; } .hero-fig figcaption { position: static; text-align: right; margin-top: 4px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 24px;
  background: radial-gradient(900px 500px at 85% 10%, var(--warm-soft), transparent 65%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.sobretitulo { color: var(--warm); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1em; }
.hero h1 { display: grid; margin-bottom: .5em; }
.h-bio { font-size: clamp(3rem, 8vw, 5.4rem); letter-spacing: -.03em; line-height: .95; color: var(--marinho); }
.h-sub { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; color: var(--laranja); letter-spacing: -.01em; margin-top: .1em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h-bio { color: #eaf2fb; } }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ia-nota { margin: 16px 0 0; font-size: .9rem; color: var(--ink-2); }
.ia-nota a { font-weight: 600; }
.hero-anos { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 0; flex-wrap: wrap; }
.hero-anos li { position: relative; padding: 8px 18px 8px 0; margin-right: 18px; font-size: .85rem; color: var(--ink-3); }
.hero-anos li b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.hero-anos li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--laranja); transform: translateY(-50%); }
.hero-anos li:last-child b { color: var(--laranja); }
.hero-fig { margin: 0; position: relative; }
.hero-fig img { display: block; width: 112%; max-width: none; margin-left: -4%; filter: drop-shadow(0 18px 24px rgba(60, 30, 0, .18)); animation: flutua 9s ease-in-out infinite; }
.hero-fig figcaption { position: absolute; right: 8px; bottom: -4px; font-size: .72rem; color: var(--ink-3); }
@keyframes flutua { 50% { transform: translateY(-8px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .hero-fig img { animation: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
  .hero-fig img { width: 100%; margin: 0; }
}

/* ---------- seções ---------- */
.secao { padding: 48px 20px; }
.secao-cheia { padding: 48px 0; background: var(--bg-2); position: relative; }
.secao-head { margin-bottom: 22px; }
.secao-head h2 { font-size: 2rem; margin-bottom: .3em; color: var(--marinho); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .secao-head h2 { color: #eaf2fb; } }
.secao-head p { max-width: 50em; margin: 0; }

/* ---------- grade de programas ---------- */
.fase { grid-column: 1 / -1; margin-top: 10px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.fase:first-child { margin-top: 0; }
.fase h3 { font-size: 1.25rem; margin: 0; color: var(--marinho); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fase h3 { color: #eaf2fb; } }
.fase p { margin: 0; font-size: .9rem; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.prog { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.prog:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prog::before { content: ""; position: absolute; inset: -40px -40px auto auto; width: 150px; height: 150px; border-radius: 46% 54% 52% 48% / 58% 44% 56% 42%;
  background: var(--prog); opacity: .13; transition: opacity .18s; }
.prog:hover::before { opacity: .22; }
.prog-corpo { padding: 20px 20px 10px; flex: 1; position: relative; }
.prog-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prog-topo .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.prog h3 { font-size: 1.18rem; margin-bottom: .15em; }
.prog .tema { color: var(--prog); font-weight: 600; font-size: .88rem; margin-bottom: .6em; filter: saturate(1.1) brightness(.8); }
.prog .resumo { font-size: .93rem; color: var(--ink-2); }
.prog .meta { font-size: .78rem; margin: 0; }
.prog-acoes { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 20px 18px; }
.prog .aviso { font-size: .85rem; }
.app-mini { width: 48px; height: 48px; border-radius: 22%; box-shadow: var(--shadow); flex: none; }
.fase p a { font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prog .tema { filter: none; } }

/* ---------- blocos ---------- */
.colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bloco { padding: 22px; }
.bloco .prot { margin-bottom: 12px; }
.bloco h3 { font-size: 1.1rem; }
.bloco p:last-child { margin-bottom: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }

/* ---------- história ---------- */
.historia { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.cds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cds figure { margin: 0; text-align: center; }
.cds img { width: 100%; height: auto; border-radius: 50%; box-shadow: var(--shadow-lg); transition: transform .3s; }
.cds figure:hover img { transform: rotate(-8deg) scale(1.03); }
.cds figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
.historia-txt .equipe { margin-top: 10px; }
@media (max-width: 820px) { .historia { grid-template-columns: 1fr; } .cds { max-width: 460px; margin: 0 auto; } }

.rodape { margin-top: 24px; }
.rodape-in { padding: 20px 0 32px; font-size: .9rem; }
.rodape p { margin: 0 0 .3em; }

/* ---------- janela do programa ---------- */
.janela { width: min(1280px, calc(100vw - 24px)); height: min(860px, calc(100vh - 24px)); max-width: none; max-height: none;
  display: none; flex-direction: column; overflow: hidden; }
.janela[open] { display: flex; }
.janela-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); }
.janela-head .prot { width: 32px; height: 32px; }
.janela-head h2 { font-size: 1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.janela-acoes { display: flex; gap: 2px; flex: none; }
.janela iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
.janela:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
@media (max-width: 640px) {
  .janela { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .janela-acoes .label { display: none; }
}

/* +30 no título e na marca; seletor de idioma no topo */
.mais30 { font-family: var(--display); color: var(--laranja); font-weight: 800; margin-right: .15em; }
.h-mais { color: var(--laranja); font-size: .62em; vertical-align: .32em; margin-right: .08em; letter-spacing: -.02em; }
.menu a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.idiomas.no-topo { margin-left: 6px; }
@media (max-width: 760px) {
  .topo-in { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  .menu { order: 3; width: 100%; flex-wrap: wrap; row-gap: 2px; padding-bottom: 6px; }
  .menu a { white-space: nowrap; }
}
.hero .h-bio { white-space: nowrap; font-size: clamp(2.4rem, 6.2vw, 4.7rem); }

/* "30 anos" manuscrito, inclinado como assinatura, à direita de Bioquímica */
.h-bio { position: relative; display: inline-block; }
.assin { display: inline-block; width: .9em; height: auto; width: auto; height: .62em; margin-left: .12em; vertical-align: .55em;
  transform: rotate(-9deg); transform-origin: left bottom; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.marca-txt { display: inline-flex; align-items: baseline; gap: .3em; flex-wrap: wrap; }
.assin-mini { width: auto; height: 1.15em; transform: rotate(-9deg) translateY(.15em); margin-left: -.1em; margin-right: .1em; }
@media (max-width: 640px) { .assin-mini { height: 1em; } }
.hero h1 { padding-top: .3em; }

/* chamada para a página de professores (index) */
.prof-chamada { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.prof-chamada h2 { font-size: 2rem; margin: 0 0 .3em; color: var(--marinho); }
.prof-chamada p { max-width: 46em; margin: 0; }

.prog .tese { list-style: none; padding: 0; margin: 8px 0 0; font-size: .8rem; line-height: 1.4; }
.prog .tese li { margin: 0 0 4px; }
.prog .tese a { color: inherit; }
