:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --border: #d0d7de;
  --text: #0f172a;
  --muted: #475569;
  --brand: #FF9B00; /* laranja */
  --brand-2: #FFD900; /* amarelo */
  --accent: #FFF800; /* amarelo vivo */
  --danger: #ef4444;
  --cyan: #FFD900;  /* mapeado para paleta */
  --yellow: #FFBA00; /* mapeado para paleta */
  --purple: #FF9B00; /* mapeado para paleta */
  --red: #FFF800;    /* mapeado para paleta */
  --green: #AEFF00;  /* mapeado para paleta */
  --maxw: 1140px;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
  --radius-lg: 16px;
  --shadow-md: 0 10px 28px rgba(15,23,42,.12);
  --shadow-lg: 0 16px 42px rgba(15,23,42,.16);
  --accent-grad: linear-gradient(135deg, var(--brand), var(--accent));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Tipografia ajustada ao lettering do logo (Poppins para títulos/CTAs) */
h1, h2, h3, .button, .logo, .site-nav a, .circle-label, .circle-num { font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.button { font-weight: 700; }
.site-nav a { font-weight: 600; }

.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background:#000; color:#fff; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255,255,255,.6);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; min-height:64px; }
.logo { display:flex; gap:8px; align-items:center; text-decoration:none; color:var(--text); font-weight:800; letter-spacing:.5px; }
.logo img { display:block; height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.logo-mark { background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; padding:6px 8px; border-radius:8px; font-weight:900; }
.logo-text { opacity:.9; }

.site-nav ul { list-style:none; display:flex; gap:22px; padding:0; margin:0; }
.site-nav a { color: var(--text); text-decoration:none; opacity:.9; padding: 8px 10px; border-radius: 8px; text-transform: uppercase; }
.site-nav a:hover { background: var(--surface); }
.site-nav a.is-active { background: var(--surface); border:1px solid var(--border); }

/* Header full-bleed container and menu spacing */
.site-header .container { max-width: none; }
.site-header .site-nav ul { gap: 28px; }

.nav-toggle { display:none; background:transparent; border:0; cursor:pointer; }
.nav-toggle .nav-toggle-bar { display:block; width:24px; height:2px; background:var(--text); margin:5px 0; border-radius:2px; }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(24px, 2.5vw, 36px); margin: 0 0 16px; }
.section .lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); }

.hero { padding-top: 96px; }
.hero .hero-cta { display:flex; gap:12px; margin-top: 18px; }
.hero-card { position: relative; background: #FFD900; border-radius: 18px; padding: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255,217,0,.55); }
.hero-bg img { position:absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.1) grayscale(10%) drop-shadow(0 12px 40px rgba(15,23,42,.25)); opacity: 0; transform: scale(1.05); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 28px; align-items: start; }
.hero-left h1 { color: var(--text); margin: 0; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; letter-spacing: .3px; }
.hero-right { color: var(--text); font-size: 18px; }
.hero-right .lead { color: var(--text); font-weight: 600; }
.hero .button.ghost { background: rgba(255,255,255,.9); color: var(--text); }

/* Hero full-bleed (imagem a toda a largura) */
.hero > .container { padding: 0; }
.hero .hero-card { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }

/* Hero animations */
.hero-card .hero-left h1,
.hero-card .hero-right .lead,
.hero-card .hero-right p:not(.lead),
.hero-card .hero-cta { opacity: 0; transform: translateY(8px); }

.hero-card.animate-in .hero-bg img { animation: heroImageIn 900ms ease-out forwards; }
.hero-card.animate-in .hero-left h1 { animation: heroFadeUp 520ms ease-out 360ms forwards; }
.hero-card.animate-in .hero-right .lead { animation: heroFadeUp 520ms ease-out 620ms forwards; }
.hero-card.animate-in .hero-right p:not(.lead) { animation: heroFadeUp 520ms ease-out 820ms forwards; }
.hero-card.animate-in .hero-cta { animation: heroFadeUp 520ms ease-out 1040ms forwards; }

@keyframes heroImageIn { from { opacity: 0; transform: scale(1.1); } to { opacity: .9; transform: scale(1); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.button { display:inline-block; padding:12px 16px; border-radius:10px; text-decoration:none; font-weight:600; border:1px solid var(--border); background:#fff; color:var(--text); box-shadow: var(--shadow); }
.button.primary { background: #FFD900; color: var(--text); border: 1px solid var(--border); }
.button.primary:hover { filter: brightness(0.98); }
.button.primary:active { filter: brightness(0.96); }
.button.ghost { background: #fff; }

/* Ecosystems */
.card-grid { list-style:none; padding:0; margin:24px 0 0; display:grid; grid-template-columns: repeat(5,1fr); gap:16px; }
.card { background: #fff; border:1px solid var(--border); border-radius: var(--radius); padding:16px; text-align:center; box-shadow: var(--shadow); }
.card img { width:64px; height:64px; object-fit:contain; margin:8px auto 10px; }
.card h3 { margin:8px 0 0; font-size:16px; }
.note { color: var(--muted); margin-top: 8px; }

/* Circular highlights inspired by reference */
.circle-grid { list-style:none; padding:0; margin:24px 0 0; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:40px; align-items:start; justify-items:center; }
.ecosystems > .container { max-width: 1320px; }
.circle-item { text-align:center; }
.circle { position: relative; display:grid; place-items:center; width: clamp(220px, 24vw, 300px); height: clamp(220px, 24vw, 300px); border-radius: 50%; overflow:hidden; margin: 0 auto; background:#fff; border: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(10px) scale(.96); opacity: 0; }
.circle { display:flex; flex-direction:column; justify-content:center; align-items:center; padding: 22px 18px; text-align:center; }
.circle img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; mix-blend-mode: multiply; opacity: .95; filter: brightness(.85) contrast(1.1) saturate(1.05); z-index: 0; }
.circle .circle-num { position: relative; z-index: 2; font-size: clamp(20px, 2vw, 36px); font-weight: 900; color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.25); -webkit-text-stroke: 2px rgba(0,0,0,.25); text-stroke: 2px rgba(0,0,0,.25); line-height: .95; }
.circle .circle-label { position: relative; inset: auto; z-index: 2; margin-top: 6px; width: 92%; max-width: 92%; font-size: clamp(14px, 1.8vw, 22px); line-height: 1.06; font-weight: 900; color: #ffffff; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 10px 24px rgba(0,0,0,.35); word-break: break-word; text-wrap: balance; }
.circle:hover { transform: translateY(0) scale(1); box-shadow: 0 12px 30px rgba(15,23,42,.18); }
.circle::before { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%), radial-gradient(120% 120% at 100% 0, rgba(255,255,255,.12), transparent 60%); }
.circle--cyan { background: var(--cyan); }
.circle--yellow { background: var(--yellow); }
.circle--purple { background: var(--purple); }
.circle--red { background: var(--red); }
.circle--green { background: var(--green); }

/* About / Team */
.team-grid { list-style:none; padding:0; margin:16px 0 0; display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.team-card { display:grid; grid-template-columns: 84px 1fr; gap:12px; align-items:center; background: #fff; border:1px solid var(--border); border-radius: var(--radius); padding:14px; box-shadow: var(--shadow); }
.team-media { position: relative; width: 84px; height: 84px; }
.team-photo { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; border-radius: 12px; border:1px solid var(--border); display: block; opacity: 0; transition: opacity .25s ease, transform .35s ease, filter .35s ease; z-index: 1; }
.team-media .avatar { position:absolute; inset:0; width:100%; height:100%; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; font-weight:800; }
.team-media .team-photo.is-loaded { opacity: 1; }
/* Esconde o avatar quando a foto carregar para não bloquear */
.team-media .team-photo.is-loaded + .avatar { display: none; }
/* Hover/focus effects for team cards */
.team-card { transition: box-shadow .25s ease, transform .25s ease; }
.team-card:hover, .team-card:focus-within { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,23,42,.18); }
.team-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.team-card:hover .team-photo, .team-card:focus-within .team-photo { transform: scale(1.06); filter: brightness(1) contrast(1.08) saturate(1.08); }
.muted { color: var(--muted); }
.bio { margin:6px 0 0; color: #cdd6df; }

/* Team cards sem media */
.team-card.no-media { grid-template-columns: 1fr; }

/* Services Accordion */
.accordion details { background: #fff; border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-top:12px; box-shadow: var(--shadow); }
.accordion summary { cursor:pointer; font-weight:600; }
.accordion summary::-webkit-details-marker { display:none; }
.accordion details[open] { border-color: var(--brand); }

/* Services Path layout */
.path { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 56px; }
.path-item { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 24px; opacity: 0; transform: translateY(10px); }
.path-item.right { grid-template-columns: 1fr 300px; }
.path-item.right .path-circle { order: 2; }
.path-item.right .path-text { order: 1; text-align: left; }
.path-circle { position: relative; width: clamp(200px, 28vw, 320px); height: clamp(200px, 28vw, 320px); border-radius: 50%; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; }
.path-circle { transition: transform .28s ease, box-shadow .28s ease; }
.path-circle img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; mix-blend-mode: multiply; filter: brightness(.85) contrast(1.05); transition: transform .4s ease, filter .28s ease; }
.path-num { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.path-num { transition: transform .28s ease, text-shadow .28s ease; }
.path-text h3 { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 24px); }
.path-text p { margin: 0; color: var(--muted); }
.path-link { display: contents; color: inherit; text-decoration: none; }
.path-link:focus-visible .path-circle { outline: 3px solid var(--brand); outline-offset: 4px; }

/* Path animations */
.path.animate .path-item { animation: pathIn .6s ease-out forwards; }
.path.animate .path-item:nth-child(1) { animation-delay: .06s; }
.path.animate .path-item:nth-child(2) { animation-delay: .16s; }
.path.animate .path-item:nth-child(3) { animation-delay: .26s; }
.path.animate .path-item:nth-child(4) { animation-delay: .36s; }
.path.animate .path-item:nth-child(5) { animation-delay: .46s; }

@keyframes pathIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* Hover animation for service circles */
.path-link:hover .path-circle,
.path-link:focus-visible .path-circle { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 36px rgba(15,23,42,.22); }
.path-link:hover .path-circle img,
.path-link:focus-visible .path-circle img { transform: scale(1.08) rotate(-1.5deg); filter: brightness(.9) contrast(1.1) saturate(1.1); }
.path-link:hover .path-num,
.path-link:focus-visible .path-num { transform: translateY(-2px); text-shadow: 0 4px 10px rgba(0,0,0,.55); }

/* Services page: Path como barras horizontais (imagem 20% + texto 80%) */
.services .path { gap: 16px; width: 100vw; margin-left: calc(50% - 50vw); }
.services .path-item { position: relative; overflow: hidden; grid-template-columns: 20% 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow); opacity: 1; transform: translateY(0); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; align-items: stretch; }
.services .path-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent-grad); opacity: .95; transition: width .22s ease; }
.services .path-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,.06); }
.services .path-item:hover::before { width: 6px; }
.services .path-item.right { grid-template-columns: 20% 1fr; }
.services .path-item.right .path-circle { order: 1; }
.services .path-item.right .path-text { order: 2; }
.services .path-circle { position: relative; width: 100%; height: 100%; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; border: 0; box-shadow: none; display: block; }
.services .path-circle { transition: none; }
.services .path-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: brightness(.98) contrast(1.05) saturate(1.05) hue-rotate(var(--hue, 0deg)); transition: filter .35s ease; }
.services .path-circle { --tint: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent)); --hue: 0deg; }
.services .path-circle::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(120deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.22) 100%),
  linear-gradient(0deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.18) 100%),
  var(--tint, transparent);
  mix-blend-mode: multiply; opacity: .16; transition: opacity .35s ease; pointer-events: none; }
.services .path-item:hover .path-circle::after,
.services .path-link:focus-visible .path-circle::after { opacity: .28; }
.services .path-item:hover .path-circle img,
.services .path-link:focus-visible .path-circle img { filter: brightness(1) contrast(1.12) saturate(1.18) hue-rotate(var(--hue, 0deg)); }

/* Tinta baseada nas cores do logo (brand → brand-2 → accent) */
.services .path-circle.circle--yellow,
.services .path-circle.circle--cyan,
.services .path-circle.circle--purple,
.services .path-circle.circle--red,
.services .path-circle.circle--green { --tint: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent)); --hue: 0deg; }
.services .path-num { display: none; }
.services .path-text { padding: 16px 18px; }
.services .path-text h3 { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: .2px; }
.services .path-text p { color: var(--muted); }
.services .path-link:hover .path-circle,
.services .path-link:focus-visible .path-circle { transform: none; box-shadow: none; }
.services .path-link:hover .path-circle img,
.services .path-link:focus-visible .path-circle img { transform: none; filter: brightness(.98) contrast(1.05) saturate(1.05); }

@media (min-width: 961px) {
}
@media (max-width: 640px) {
  .services .path-item { grid-template-columns: 1fr; }
  .services .path-circle { height: 140px; border-radius: var(--radius) var(--radius) 0 0; }
  .services .path-text { padding: 12px 14px 14px; }
}

/* Services Gallery - cartões modernos com acento lateral */
.services-gallery .media-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.services-gallery .media-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.services-gallery .media-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent-grad); opacity: .95; transition: width .22s ease; }
.services-gallery .media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,.06); }
.services-gallery .media-card:hover::before { width: 6px; }
.services-gallery .media-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 200px;
  overflow: hidden;
  background: #fff;
}
.services-gallery .media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  box-sizing: border-box;
  filter: brightness(.98) contrast(1.05) saturate(1.05);
  transition: transform .35s ease, filter .25s ease;
}
.services-gallery .media-card:hover .media-thumb img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.08) saturate(1.08);
}
.services-gallery .media-thumb .overlay { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); color: #fff; font-weight: 700; font-size: 14px; }
.services-gallery .media-body { padding: 14px 16px 16px; }
.services-gallery .media-body h3 { margin: 0 0 6px; font-size: clamp(16px, 2vw, 20px); letter-spacing: .2px; }
.services-gallery .media-body p { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; line-height: 1.5; }
.services-gallery .media-card details {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
  background: #fff;
}
.services-gallery .media-card summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.services-gallery .media-card summary::-webkit-details-marker { display: none; }
.services-gallery .media-card summary::before {
  content: "▸ ";
  color: var(--muted);
  font-weight: 700;
}
.services-gallery .media-card details[open] summary::before { content: "▾ "; }
.services-gallery .media-card details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
.services-gallery .media-card details b,
.services-gallery .media-card details strong { color: var(--text); }

@media (max-width: 640px) {
  .services-gallery .media-thumb { height: 180px; }
  .services-gallery .media-thumb img { padding: 12px; }
  .services-gallery .media-card summary { font-size: 16px; }
  .services-gallery .media-card details p { font-size: 14px; }
}

/* About summary section (home) */
.about-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.about-summary-card h2 { margin: 0 0 12px; }
.about-summary-card .about-diagram {
  margin: 16px 0;
  max-width: 100%;
}
.about-summary-card .about-diagram img {
  display: block;
  width: 100%;
  max-width: 1140px;
  height: auto;
  margin-inline: auto;
}
.about-summary-card .about-collaborative {
  margin: 20px 0 12px;
}
.about-summary-card .about-collaborative img {
  width: min(100%, 720px);
  max-width: 720px;
  height: auto;
  margin-inline: 0;
}
.about-summary-card .about-areas-diagram {
  margin-top: 8px;
  margin-bottom: 0;
}
.about-summary-card .about-areas-diagram img {
  width: 100%;
  max-width: 1140px;
}
.about-summary-card p { margin: 0 0 12px; color: var(--muted); }
.about-summary-card .button { margin-top: 8px; }

/* "Sobre Nós" bar similar to services bar */
.about-hero {
  padding-top: 24px;
  padding-bottom: 24px;
}
.about-hero .hero-grid {
  grid-template-columns: 1fr;
}
.about-hero .hero-left h1 {
  font-size: clamp(30px, 4vw, 52px);
}

/* Contacts */
.contact-grid { display:grid; grid-template-columns: 1.1fr 1.4fr; gap:16px; }
.contact-info { background: #fff; border:1px solid var(--border); border-radius: var(--radius); padding:16px; box-shadow: var(--shadow); }
.map-wrap { border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { display:block; width:100%; height:360px; border:0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: #fff;
}
.site-footer .container {
  max-width: none;
  width: 100%;
  padding-inline: clamp(20px, 4vw, 64px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.to-top {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

/* Black footer (home, gestão) */
.footer-black {
  background-color: #000 !important;
  color: #fff !important;
  border-top: 0;
  padding: 24px 0;
}
.footer-black .container {
  background: transparent !important;
  max-width: none;
  width: 100%;
  padding-inline: clamp(20px, 4vw, 64px);
}
.footer-black-inner {
  display: grid;
  width: 100%;
  gap: 16px 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-black h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.footer-black p {
  margin: 0;
  color: rgba(255,255,255,.9);
}
.footer-black a {
  color: #fff;
}
.footer-black a:hover {
  text-decoration: underline;
}
.footer-docs {
  text-align: left;
  justify-self: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  line-height: 0;
}
.footer-brand img {
  display: block;
  width: auto;
  height: clamp(40px, 5vw, 56px);
  max-width: min(220px, 100%);
  object-fit: contain;
}
.footer-seal {
  margin: 0;
  padding: 0;
  line-height: 0;
  text-align: center;
}
.footer-seal img {
  display: block;
  width: clamp(88px, 11vw, 108px);
  height: auto;
  max-height: 108px;
  object-fit: contain;
}
.footer-docs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.footer-docs li::before {
  content: "•";
  margin-right: 6px;
  color: #fff;
  font-weight: 700;
}
.footer-docs li {
  display: flex;
  align-items: baseline;
}
.footer-docs a {
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}
.footer-docs a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}
.footer-contacts {
  text-align: left;
  justify-self: start;
}
.footer-copy {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-black-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "docs center contacts";
    column-gap: clamp(24px, 5vw, 80px);
    row-gap: 0;
    align-items: center;
  }
  .footer-docs,
  .footer-brand {
    grid-area: docs;
    justify-self: start;
    text-align: left;
  }
  .footer-center {
    grid-area: center;
    justify-self: center;
  }
  .footer-contacts {
    grid-area: contacts;
    justify-self: end;
    text-align: right;
  }
}

/* Sticky footer (gestão) */
body.page-sticky-footer {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.page-sticky-footer > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.page-sticky-footer > .footer-black {
  margin-top: auto;
  flex-shrink: 0;
}

/* Documentation pages (gestão) */
.docs-page {
  padding-top: 0;
  padding-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.docs-page > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  padding: 0;
}
.docs-page .docs-card {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 64px);
  box-shadow: var(--shadow);
}
.docs-page .docs-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 40px);
}
.docs-page .docs-card .lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
}
.docs-page .docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 720px) {
  .docs-page .docs-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.docs-page .docs-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.35;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.docs-page .docs-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.08);
  background: #fff;
}
.docs-page .docs-ext {
  flex-shrink: 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(3,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .circle-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .circle { width: clamp(220px, 30vw, 280px); height: clamp(220px, 30vw, 280px); padding: 18px 14px; }
}
@media (max-width: 640px) {
  .nav-toggle { display:block; }
  .site-nav { position: fixed; inset: 64px 12px auto 12px; background: rgba(255,255,255,.98); border:1px solid var(--border); border-radius:12px; padding:12px; transform: translateY(-16px); opacity:0; pointer-events:none; transition:.2s ease; }
  .site-nav.open { transform: translateY(0); opacity:1; pointer-events:auto; }
  .site-nav ul { flex-direction:column; gap:6px; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .circle-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .circle { width: clamp(180px, 42vw, 220px); height: clamp(180px, 42vw, 220px); padding: 14px 12px; }
  .logo img { height: 40px; }
}

/* Desktop layout: 3 colunas (3 + 2 alinhadas) */
@media (min-width: 961px) {
  .circle-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
  .circle-item:nth-child(4) { grid-column: 2; }
  .circle-item:nth-child(5) { grid-column: 3; }
}

/* Circle entrance animation */
.circle-grid.animate .circle { animation: circleIn .6s ease-out forwards; }
.circle-grid.animate .circle-item:nth-child(1) .circle { animation-delay: .08s; }
.circle-grid.animate .circle-item:nth-child(2) .circle { animation-delay: .18s; }
.circle-grid.animate .circle-item:nth-child(3) .circle { animation-delay: .28s; }
.circle-grid.animate .circle-item:nth-child(4) .circle { animation-delay: .38s; }
.circle-grid.animate .circle-item:nth-child(5) .circle { animation-delay: .48s; }

@keyframes circleIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* Ecosystems (barras horizontais): imagem de fundo, texto sobreposto à esquerda */
.ecosystems .circle-grid { grid-template-columns: 1fr; gap: 16px; align-items: stretch; justify-items: stretch; }
.ecosystems .circle { position: relative; width: 100%; height: 210px; min-height: 210px; border-radius: var(--radius-lg); padding: 0; background: #fff; display: grid; grid-template-columns: 20% 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 0; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); opacity: 1; transform: translateY(0); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ecosystems .circle-toggle { appearance: none; -webkit-appearance: none; text-align: inherit; cursor: pointer; font: inherit; color: inherit; }
.ecosystems .circle::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent-grad); opacity: .95; transition: width .22s ease; }
.ecosystems .circle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,.06); }
.ecosystems .circle:hover::after { width: 6px; }
.ecosystems .circle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ecosystems .circle::before { display: none; }
.ecosystems .circle img { position: static; grid-column: 1; grid-row: 1 / span 2; width: 100%; height: 100%; min-height: 0; align-self: stretch; object-fit: cover; mix-blend-mode: normal; opacity: 1; filter: brightness(.98) contrast(1.05) saturate(1.05); }
.ecosystems .circle .circle-label { position: static; grid-column: 2; grid-row: 1; color: var(--text); text-shadow: none; width: 100%; max-width: 100%; margin: 0; font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); text-align: left; padding: 18px 88px 6px 16px; align-self: start; }
.ecosystems .circle .circle-desc { position: static; grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; width: 100%; max-width: 100%; text-align: left; padding: 0 88px 18px 16px; align-self: start; }
.ecosystems .circle .circle-open-tag { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text); background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.ecosystems .circle .circle-num { display: none; }
.ecosystems .circle:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,23,42,.22); }
.ecosystems .circle-cascade { background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); margin-top: -4px; padding: 14px 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: left; }
.ecosystems .circle-cascade p { position: relative; margin: 0 0 10px; padding-left: 14px; }
.ecosystems .circle-cascade p::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--text); font-weight: 700; }
.ecosystems .circle-cascade p:last-child { margin-bottom: 0; }
.ecosystems .circle-cascade-lead { color: var(--text); font-weight: 600; }
.ecosystems .circle-item.is-open .circle { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom-color: transparent; box-shadow: var(--shadow-md); }

@media (min-width: 961px) {
  .ecosystems .circle { height: 210px; min-height: 210px; }
}
@media (max-width: 640px) {
  .ecosystems .circle { height: 240px; min-height: 240px; }
  .ecosystems .circle .circle-label { padding: 16px 16px 6px; font-size: clamp(16px, 4.5vw, 18px); }
  .ecosystems .circle .circle-desc { padding: 0 16px 44px; }
}

/* Ecosystems card meta (Pessoa, Estado, Data) */
.ecosystems .card-meta { list-style: none; padding: 12px 16px 16px; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.ecosystems .card-meta li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.ecosystems .card-meta .meta-label { color: var(--muted); font-size: 14px; }
.ecosystems .card-meta .meta-value { font-size: 14px; }
.ecosystems .card-meta .avatar { display: inline-flex; align-items: center; gap: 8px; }
.ecosystems .card-meta .avatar-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.ecosystems .badge { display: inline-block; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.ecosystems .badge--progress { background: #e8f0ff; color: #1e3a8a; }
.ecosystems .badge--done { background: #e8f9ee; color: #065f46; }
.ecosystems .badge--waiting { background: #fff1f2; color: #9f1239; }
