/* =====================================================================
   SONHO VIVO — direção de arte "one-motif" (círculo)
   ---------------------------------------------------------------------
   O motivo é o círculo: o círculo central da quadra (no meio da foto do
   hero), o "Jardim Ciranda" da sede, a roda de crianças, a medalha.
   Ele aparece em três escalas: o círculo gigante do hero, o recorte
   circular das fotos e o botão redondo.
   Paleta: grafite + laranja de segurança (a cor da quadra).
   Tipo: Schibsted Grotesk (800 display, 600 small, 400 texto).
   ===================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --v3-bg: #f2f3f5;
  --v3-surface: #ffffff;
  --v3-surface-2: #e8eaed;
  --v3-ink: #0a1a2f;
  --v3-muted: #5c6b7d;
  --v3-accent: #ff5a1f;
  --v3-accent-ink: #ffffff;
  --v3-field: #0a1a2f;
  --v3-field-ink: #ffffff;

  --v3-font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --v3-step-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --v3-step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --v3-step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --v3-step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --v3-step-hero: clamp(2.25rem, 5.8vw, 5.5rem);
  --v3-step-mark: clamp(2.5rem, 8.5vw, 8rem);

  --v3-radius: 16px;
  --v3-circle: 50%;
  --v3-btn-radius: 999px;
  --v3-margin: clamp(16px, 4vw, 48px);
  --v3-gap-section: clamp(88px, 11vw, 180px);
  --v3-ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --v3-bg: #18191b;
  --v3-surface: #222427;
  --v3-surface-2: #2a2c30;
  --v3-ink: #eff0f1;
  --v3-muted: #b0b3b8;
  --v3-accent: #ff4a1f;
  --v3-accent-ink: #18191b;
  --v3-field: #eff0f1;
  --v3-field-ink: #18191b;
}

/* ---------------------------------------------------------------- base */
:root {
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-primary: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- base */
/* o reset vivia no css/style.css (deletado na fase 2) */
body.v3 *,
body.v3 *::before,
body.v3 *::after { box-sizing: border-box; }
body.v3 h1, body.v3 h2, body.v3 h3, body.v3 h4, body.v3 p, body.v3 figure,
body.v3 blockquote, body.v3 dl, body.v3 dd { margin: 0; }
body.v3 img { max-width: 100%; height: auto; display: block; }
body.v3 ul, body.v3 ol { list-style: none; margin: 0; padding: 0; }
body.v3 button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
body.v3 table { border-collapse: collapse; }
/* o atributo hidden precisa vencer qualquer regra display do autor:
   sem isso, .v3-top__mais-menu { display: grid } mantinha o menu "Mais"
   aberto para sempre (o cascade do autor sobrescreve o [hidden] do browser) */
[hidden] { display: none !important; }

body.v3 {
  /* o layout antigo empurrava 260px para a sidebar que nao existe mais */
  padding-inline-start: 0 !important;
  background: var(--v3-bg);
  color: var(--v3-ink);
  font-family: var(--v3-font);
  font-size: var(--v3-step-body);
  line-height: 1.55;
  letter-spacing: 0;
}

body.v3 h1, body.v3 h2, body.v3 h3 {
  font-family: var(--v3-font);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--v3-ink);
  text-transform: none;
}

/* o skip-link antigo vinha com fundo creme (tema claro) e no tema escuro
   o texto sumia: fundo e tinta passam a vir dos tokens */
body.v3 .skip-link {
  background: var(--v3-ink);
  color: var(--v3-bg);
}

/* utilitario: texto que so o leitor de tela precisa ler.
   (o site antigo usava .sr-only/.u-sr-only sem nenhuma regra — o
   anunciador de rota e os rotulos dos posts apareciam na tela) */
.sr-only,
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v3-wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--v3-margin);
}

.v3-section { padding-block: var(--v3-gap-section); }
.v3-section--field { background: var(--v3-field); color: var(--v3-field-ink); }
.v3-section--field h2, .v3-section--field h3 { color: var(--v3-field-ink); }

.v3-eyebrow-none { display: none; }

/* ------------------------------------------------------------- botões */
body.v3 .v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--v3-btn-radius);
  background: var(--v3-accent);
  color: var(--v3-accent-ink);
  font-family: var(--v3-font);
  font-size: var(--v3-step-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--v3-ease), background .18s var(--v3-ease);
}
body.v3 .v3-btn:hover { transform: translateY(-2px); background: var(--v3-accent); filter: brightness(1.06); }
body.v3 .v3-btn:focus-visible { outline: 3px solid var(--v3-ink); outline-offset: 3px; }
.v3-btn--contorno {
  background: var(--v3-surface);
  color: var(--v3-ink);
}
.v3-btn--contorno:hover { background: var(--v3-ink); color: var(--v3-bg); filter: none; }

/* ======================================================= barra superior */
.v3-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--v3-bg);
  border: 0;
}
/* a navegacao mora no topo da pagina (a folha de arte assim que e
   desenhada): sem a barra grudada por cima do texto grande */
body.v3 .v3-top { position: static; }
.v3-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 76px;
  padding-inline: var(--v3-margin);
  max-width: 1320px;
  margin-inline: auto;
}
.v3-top__mark { display: flex; align-items: center; text-decoration: none; flex: none; }
.v3-top__mark img { height: 30px; width: auto; display: block; }
.v3-top__nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); margin-left: auto; }
.v3-top__nav a {
  font-size: var(--v3-step-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--v3-ink);
  padding-block: 6px;
  white-space: nowrap;
}
.v3-top__nav a:hover { color: var(--v3-accent); }
.v3-top__nav a[aria-current="page"] { color: var(--v3-accent); }
.v3-top__theme {
  border: 0;
  background: none;
  color: var(--v3-ink);
  cursor: pointer;
  padding: 8px;
  line-height: 0;
}
.v3-top__menu-btn {
  display: none;
  border: 0;
  background: none;
  color: var(--v3-ink);
  cursor: pointer;
  padding: 8px;
  line-height: 0;
}
.v3-top__menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--v3-margin) 24px;
  background: var(--v3-bg);
}
.v3-top__menu--open { display: flex; }
.v3-top__menu a {
  font-size: var(--v3-step-lead);
  font-weight: 600;
  text-decoration: none;
  color: var(--v3-ink);
  padding-block: 10px;
}
/* o grupo institucional (transparencia adiante) separa por espaco, nao por
   linha: comeca com um respiro maior e tinta mais suave */
.v3-top__menu a[href="/transparencia"] { margin-top: 14px; }
.v3-top__menu a[href="/transparencia"],
.v3-top__menu a[href="/privacidade"],
.v3-top__menu a[href="/admin"],
.v3-top__menu a[href^="/sistema"] {
  color: var(--v3-muted);
  font-weight: 500;
}

/* ==================================================================== HERO */
.v3-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 90px);
}
.v3-hero__circulo {
  position: absolute;
  width: min(110vh, 96vw);
  height: min(110vh, 96vw);
  left: 52%;
  right: auto;
  top: 55%;
  transform: translateY(-50%);
  border-radius: var(--v3-circle);
  background: var(--v3-accent);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-hero__foto {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--v3-circle);
  overflow: hidden;
  z-index: 1;
  background: var(--v3-surface-2);
}
body.v3 .v3-hero__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-hero__conteudo {
  position: relative;
  z-index: 2;
  max-width: min(660px, 48%);
}
.v3-hero__marca {
  display: block;
  font-size: var(--v3-step-lead);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.v3-hero__titulo {
  font-size: var(--v3-step-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0 0 clamp(18px, 2vw, 28px);
  text-wrap: balance;
}
.v3-hero__titulo span { display: block; }
.v3-hero__frase {
  font-size: var(--v3-step-lead);
  color: var(--v3-muted);
  max-width: 38ch;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.v3-hero__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.v3-hero__link { font-size: var(--v3-step-body); font-weight: 500; color: var(--v3-ink); text-decoration: none; }
.v3-hero__link:hover { color: var(--v3-accent); }

/* ================================================ 1. statement + thumbs */
.v3-intro { text-align: center; }
.v3-intro__texto {
  font-size: var(--v3-step-lead);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: min(860px, 92%);
  margin: 0 auto;
  text-wrap: balance;
}
.v3-intro__texto .v3-thumb {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  border-radius: var(--v3-circle);
  overflow: hidden;
  vertical-align: -0.12em;
  margin-inline: 0.12em;
}
.v3-intro__texto .v3-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ======================================================== 2. prova (tiles) */
.v3-proof__grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v3-tile {
  background: var(--v3-surface);
  border-radius: var(--v3-radius);
  padding: clamp(18px, 2vw, 30px);
  min-height: clamp(150px, 13vw, 196px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.v3-tile--destaque {
  grid-column: span 2;
  background: var(--v3-accent);
  color: var(--v3-accent-ink);
  justify-content: center;
}
body.v3 .v3-tile--destaque h2,
body.v3 .v3-section--field h2,
body.v3 .v3-section--field h3 {
  font-size: var(--v3-step-head);
  margin: 0;
  color: inherit;
}
.v3-tile__numero {
  font-size: var(--v3-step-head);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.v3-tile__nome {
  font-size: var(--v3-step-small);
  color: var(--v3-muted);
  margin-top: 6px;
  line-height: 1.35;
}
.v3-tile--destaque .v3-tile__nome { color: inherit; opacity: .85; }

/* =========================================== 3. lista (menu com fotos) */
.v3-list__cabecalho {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.v3-list__cabecalho h2 { font-size: var(--v3-step-head); margin: 0; }
.v3-list__contagem { font-size: var(--v3-step-small); color: var(--v3-muted); }
.v3-list__grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 64px; }
.v3-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}
.v3-item__corpo { display: block; }
.v3-item__linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v3-item__preco { font-size: var(--v3-step-small); font-weight: 600; color: var(--v3-accent); white-space: nowrap; }
.v3-item__foto {
  width: 64px;
  height: 64px;
  border-radius: var(--v3-circle);
  overflow: hidden;
  background: var(--v3-surface-2);
}
body.v3 .v3-item__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-item__nome { font-size: var(--v3-step-body); font-weight: 600; letter-spacing: -0.01em; }
.v3-item__meta { font-size: var(--v3-step-small); color: var(--v3-muted); margin-top: 2px; }
.v3-item__desc { font-size: var(--v3-step-body); color: var(--v3-muted); max-width: 40ch; margin-top: 6px; line-height: 1.5; }
.v3-item:hover .v3-item__nome { color: var(--v3-accent); }

/* ================================== 3b. live thing: a aula do seu bairro */
.v3-live {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(24px, 3vw, 44px);
  background: var(--v3-surface);
  border-radius: var(--v3-radius);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.v3-live h3 { font-size: var(--v3-step-lead); margin: 0 0 8px; }
.v3-live__p { font-size: var(--v3-step-body); color: var(--v3-muted); margin: 0 0 20px; max-width: 46ch; }
.v3-live__campo { display: flex; flex-direction: column; gap: 8px; }
.v3-live__campo label { font-size: var(--v3-step-small); color: var(--v3-muted); }
.v3-live select {
  font-family: var(--v3-font);
  font-size: var(--v3-step-body);
  color: var(--v3-ink);
  background: var(--v3-bg);
  border: 0;
  border-radius: var(--v3-btn-radius);
  padding: 14px 18px;
  width: 100%;
}
.v3-live select:focus-visible { outline: 3px solid var(--v3-accent); outline-offset: 2px; }
.v3-live__resultado { display: grid; gap: 12px; }
.v3-live__vazio { font-size: var(--v3-step-body); color: var(--v3-muted); }
.v3-turma {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 12px;
}
.v3-turma__modalidade { font-size: var(--v3-step-body); font-weight: 600; }
.v3-turma__dias { font-size: var(--v3-step-small); color: var(--v3-muted); }
.v3-turma__hora { font-size: var(--v3-step-body); font-weight: 600; color: var(--v3-accent); white-space: nowrap; }
.v3-turma__local { grid-column: 1 / -1; font-size: var(--v3-step-small); color: var(--v3-muted); }

/* ============================================= 4. galeria (um quadro) */
.v3-gal {
  display: grid;
  grid-template-columns: 1fr minmax(0, 40vw);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.v3-gal__quadro {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--v3-circle);
  overflow: hidden;
  background: var(--v3-surface-2);
}
body.v3 .v3-gal__quadro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: v3-crossfade 14.4s infinite;
}
body.v3 .v3-gal__quadro img:nth-child(1) { animation-delay: 0s; }
body.v3 .v3-gal__quadro img:nth-child(2) { animation-delay: 2.4s; }
body.v3 .v3-gal__quadro img:nth-child(3) { animation-delay: 4.8s; }
body.v3 .v3-gal__quadro img:nth-child(4) { animation-delay: 7.2s; }
body.v3 .v3-gal__quadro img:nth-child(5) { animation-delay: 9.6s; }
body.v3 .v3-gal__quadro img:nth-child(6) { animation-delay: 12s; }
/* 6 fotos x 2,4s = ciclo de 14,4s. Cada foto entra por cima da anterior
   (a seguinte no DOM empilha acima) e so desvanece DEPOIS de a proxima
   estar 100% visivel: a moldura nunca fica branca na troca. */
@keyframes v3-crossfade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  20% { opacity: 1; }
  21%, 100% { opacity: 0; }
}
.v3-gal__texto h2 { font-size: var(--v3-step-head); margin: 0 0 16px; }
.v3-gal__texto p { font-size: var(--v3-step-body); color: var(--v3-muted); max-width: 60ch; margin: 0 0 20px; }
.v3-gal__legenda { font-size: var(--v3-step-small); color: var(--v3-muted); }

/* ============================================== 5. projetos (tiles) */
.v3-work__grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  grid-auto-rows: clamp(140px, 13vw, 190px);
}
.v3-work__tile {
  position: relative;
  border-radius: var(--v3-radius);
  overflow: hidden;
  background: var(--v3-surface);
  color: inherit;
  text-decoration: none;
}
body.v3 .v3-work__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-work__tile--larga { grid-column: span 2; }
.v3-work__tile--final { grid-column: span 2; }
.v3-work__tile--alta { grid-row: span 2; }
.v3-work__legenda {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: var(--v3-step-small);
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); /* taste-skill-ignore: scrim neutro sobre foto real */
}
.v3-work__titulo {
  grid-column: span 1;
  grid-row: span 2;
  align-self: center;
  font-size: var(--v3-step-head);
  margin: 0;
}
/* projeto sem foto real: um bloco na cor do papel, com o nome em destaque */
.v3-work__tile--texto {
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 1.6vw, 24px);
  background: var(--v3-surface);
  color: var(--v3-ink);
}
.v3-work__tile--texto .v3-work__legenda {
  position: static;
  background: none;
  color: inherit;
  font-size: var(--v3-step-body);
  font-weight: 600;
  padding: 0;
}

/* ================================================ 6. CTA (o convite) */
/* o encerramento da home e o circulo do convite: o mesmo motivo do hero,
   agora chamando para a inscricao. Fica quieto - o espaco respira e a
   cor fala so no circulo. */
.v3-inscricao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  text-align: center;
  padding-block: clamp(24px, 4vw, 48px);
}
.v3-inscricao__frase {
  max-width: 44ch;
  font-size: var(--v3-step-body);
  color: var(--v3-muted);
  margin: 0;
}
.v3-inscricao__circulo {
  width: min(68vw, 290px);
  aspect-ratio: 1;
  border-radius: var(--v3-circle);
  background: var(--v3-accent);
  color: var(--v3-accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .2s var(--v3-ease), background .2s var(--v3-ease), color .2s var(--v3-ease);
}
.v3-inscricao__palavra {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.v3-inscricao__circulo:hover {
  background: var(--v3-ink);
  color: var(--v3-bg);
  transform: translateY(-4px);
}

/* ============================================= 7. rodape (blocos) */
.v3-foot { background: var(--v3-field); color: var(--v3-field-ink); padding-block: clamp(48px, 6vw, 96px) 32px; }
.v3-foot__marca {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  margin-bottom: 56px;
}
.v3-foot__letra {
  display: block;
  background: var(--v3-field-ink);
  color: var(--v3-field);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: var(--v3-step-mark);
  line-height: .78;
  padding: .06em .12em .1em;
  border-radius: 4px;
}
.v3-foot__letra--c { height: .78em; }
.v3-foot__letra--d { height: .9em; }
.v3-foot__letra--e { height: 1em; }
.v3-foot__colunas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-bottom: 48px;
}
.v3-foot__colunas h3 { font-size: var(--v3-step-small); font-weight: 600; opacity: .7; margin: 0 0 12px; text-transform: none; letter-spacing: 0; color: inherit; }
.v3-foot__colunas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v3-foot__colunas a { font-size: var(--v3-step-small); text-decoration: none; color: inherit; }
.v3-foot__colunas a:hover { color: var(--v3-accent); }
.v3-foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: var(--v3-step-small);
  opacity: .75;
}
.v3-foot__base a { color: inherit; }

/* ==================================================== 8. movimento */
.v3-reveal { opacity: 1; transform: translateY(24px); }
.v3-reveal.v3-in { transform: none; transition: transform .7s var(--v3-ease); }

@media (prefers-reduced-motion: reduce) {
  .v3-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.v3 .v3-gal__quadro img { animation: none !important; opacity: 0; }
  body.v3 .v3-gal__quadro img:first-child { opacity: 1; }
  .v3-inscricao__circulo:hover, .v3-btn:hover { transform: none !important; }
}

/* ==================================================== 9. responsivo */
@media (max-width: 900px) {
  .v3-section { padding-block: clamp(64px, 9vw, 104px); }
  .v3-top__nav { display: none; }
  .v3-top__menu-btn { display: block; }
  .v3-hero { min-height: auto; padding-top: 32px; }
  .v3-hero__conteudo { max-width: 100%; }
  .v3-hero__titulo { font-size: clamp(2.5rem, 11.5vw, 4rem); }
  .v3-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .v3-hero__conteudo { order: 1; }
  .v3-hero__circulo {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 84vw;
    height: 84vw;
    margin: -4vw 0 -12vw auto;
    align-self: flex-end;
  }
  .v3-hero__foto { width: 46%; }
  .v3-hero__frase { font-size: var(--v3-step-body); max-width: 30ch; }
  .v3-intro__texto { max-width: 100%; font-size: 1.5rem; }
  .v3-proof__grade { grid-template-columns: repeat(2, 1fr); }
  .v3-tile--destaque { grid-column: span 2; min-height: 128px; }
  .v3-list__grade { grid-template-columns: 1fr; gap: 28px; }
  .v3-live { grid-template-columns: 1fr; }
  .v3-gal { grid-template-columns: 1fr; }
  .v3-gal__quadro { width: 72vw; margin-inline: auto; }
  .v3-work__grade { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .v3-work__titulo { grid-column: span 2; grid-row: span 1; font-size: var(--v3-step-lead); }
  .v3-foot__colunas { grid-template-columns: repeat(2, 1fr); }
  .v3-inscricao__circulo { width: min(72vw, 260px); }
}

/* ------------------------------------------------------ logo da barra */
/* o reset global (body.v3 img) tem especificidade maior: a logo e a
   variante do tema precisam de um seletor proprio para nao herdar
   height:auto nem aparecerem as duas ao mesmo tempo */
body.v3 .v3-top__logo { height: 38px; width: auto; display: block; flex: none; }
body.v3 .v3-top__logo--alt { display: none; }
[data-theme="dark"] body.v3 .v3-top__logo { display: none; }
[data-theme="dark"] body.v3 .v3-top__logo--alt { display: block; }
.v3-top__theme { display: inline-flex; align-items: center; }
[data-theme="dark"] .v3-top__theme .icon-sun { display: none; }
.v3-top__theme .icon-moon { display: none; }
[data-theme="dark"] .v3-top__theme .icon-moon { display: block; }

/* bullet da lista: foto real ou icone da modalidade */
.v3-item__foto--icone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--v3-accent);
  background: var(--v3-surface-2);
}
.v3-item__foto--icone svg { width: 100%; height: 100%; }

/* ---------------------------------------------------- banner de cookies */
/* era uma barra fixa no rodape e cobria o texto da pagina; agora e uma
   faixa no topo, no fluxo, com a mesma linguagem do resto */
body.v3 .lgpd-banner {
  position: static;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px max(var(--v3-margin), calc((100% - 1320px) / 2 + var(--v3-margin)));
  background: var(--v3-field);
  color: var(--v3-field-ink);
  font-size: var(--v3-step-small);
  line-height: 1.4;
}
body.v3 .lgpd-banner--visible { display: flex; flex-wrap: wrap; }
body.v3 .lgpd-banner p { flex: 1 1 320px; min-width: 0; margin: 0; }
body.v3 .lgpd-banner a { color: inherit; text-decoration: underline; }
body.v3 .lgpd-banner .lgpd-btn {
  font-family: var(--v3-font);
  font-size: var(--v3-step-small);
  font-weight: 600;
  border-radius: var(--v3-btn-radius);
  padding: 8px 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
body.v3 .lgpd-banner .lgpd-btn:hover { background: var(--v3-ink); color: var(--v3-bg); }
body.v3 .lgpd-banner .lgpd-btn--primary {
  background: var(--v3-field-ink);
  color: var(--v3-field);
  border-color: transparent;
}
body.v3 .lgpd-banner .lgpd-btn--primary:hover { background: var(--v3-accent); color: var(--v3-accent-ink); }
body.v3 .lgpd-banner .lgpd-btn--dismiss { border: 0; color: inherit; }

/* ------------------------------------------------------- skip link */
/* (a regra vivia no css/style.css deletado: sem ela o link aparecia
   fixo no topo de todas as paginas) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--v3-ink);
  color: var(--v3-bg);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* -------------------------------------- tinta nos blocos de campo claro */
/* o campo (--v3-field) e claro no tema escuro: dentro dele, titulo e
   texto precisam herdar a tinta do campo, nao a tinta da pagina */
body.v3 .v3-sec--field .v3-card__title,
body.v3 .v3-sec--field .v3-card__text,
body.v3 .v3-sec--field .v3-card__eyebrow,
body.v3 .v3-sec--field .v3-sec__title,
body.v3 .v3-sec--field .v3-faixa__titulo,
body.v3 .v3-foot__colunas h3 { color: inherit; }
body.v3 .v3-sec--field .v3-card__eyebrow { color: var(--v3-accent); }
/* dentro do campo claro, a tinta suave tambem precisa ser suave sobre o campo */
body.v3 .v3-sec--field .v3-list__item span,
body.v3 .v3-sec--field .v3-card__meta { color: inherit; opacity: .72; }

/* ------------------------------------------------------ menu "Mais" */
/* a barra mostra 5 links + uma acao; o resto vive aqui */
.v3-top__mais { position: relative; }
body.v3 .v3-top__mais-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v3-font);
  font-size: var(--v3-step-small);
  font-weight: 500;
  color: var(--v3-ink);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
}
body.v3 .v3-top__mais-btn:hover { color: var(--v3-accent); }
body.v3 .v3-top__mais-btn svg { transition: transform .2s var(--v3-ease); }
body.v3 .v3-top__mais-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.v3-top__mais-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--v3-surface);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 95;
}
body.v3 .v3-top__mais-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: var(--v3-step-small);
  color: var(--v3-ink);
  text-decoration: none;
}
body.v3 .v3-top__mais-menu a:hover { background: var(--v3-surface-2); color: var(--v3-accent); }
@media (max-width: 900px) {
  .v3-top__mais { display: none; }
}
