:root{
  --white:#FFFFFF;
  --black:#000000;
  --red:#EE1C25;
  --gray:#8B8092;
  --bg:#000000;
  --panel:#0D0D0D;
  --panel-soft:#111111;
  --text:#FFFFFF;
  --muted:#BDB6C6;
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.16);
  --max:1240px;
  --radius:24px;
  --shadow:0 18px 48px rgba(0,0,0,.24);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,.04), transparent 18%),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.03), transparent 20%),
    linear-gradient(180deg,#090909 0%, #000000 32%, #050505 100%);
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,textarea,select{font:inherit}
:focus-visible{
  outline:2px solid var(--red);
  outline-offset:3px;
}
.skip-link{
  position:absolute;
  left:16px;
  top:-48px;
  background:#fff;
  color:#000;
  padding:10px 14px;
  border-radius:12px;
  z-index:200;
  font-weight:700;
}
.skip-link:focus{top:16px}
.container{width:min(var(--max), calc(100% - 44px));margin:0 auto}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:84px;
}
.brandmark{display:flex;align-items:center;gap:14px;min-width:0}
.brandmark img{height:40px;width:auto}
.brandtext{
  font-size:.92rem;
  color:var(--muted);
  white-space:nowrap;
}
.menu{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.menu a{
  color:#ddd;
  font-size:.95rem;
  position:relative;
}
.menu a:hover{color:#fff}
.menu a[aria-current="page"]{
  color:#fff;
}
.menu a:not(.btn)[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  border-radius:999px;
  background:var(--red);
}
.menu-toggle{
  display:none;
  background:none;
  border:1px solid var(--line);
  color:#fff;
  border-radius:10px;
  padding:8px 11px;
  font-size:1.1rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 12px 30px rgba(238,28,37,.20);
}
.btn-primary:hover{box-shadow:0 16px 34px rgba(238,28,37,.28)}
.btn-secondary{
  background:transparent;
  border-color:var(--line-strong);
}
.btn-secondary:hover{border-color:rgba(255,255,255,.28)}
.btn-nav{min-height:42px}
.hero{padding:94px 0 78px;border-bottom:1px solid var(--line)}
.page-hero{padding:90px 0 34px;border-bottom:1px solid var(--line)}
.hero-grid,.split,.asset-layout{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:28px;
  align-items:center;
}
.asset-layout.reverse{grid-template-columns:1fr 1.05fr}
.kicker{
  display:inline-block;
  margin-bottom:18px;
  padding-bottom:8px;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  border-bottom:3px solid var(--red);
}
h1,h2,h3{
  line-height:1.04;
  margin:0 0 14px;
  letter-spacing:-.02em;
}
h1{font-size:clamp(2.65rem,5vw,5rem);max-width:14ch}
h2{font-size:clamp(1.9rem,3vw,3rem)}
h3{font-size:1.12rem}
.lead{
  font-size:clamp(1rem,1.8vw,1.14rem);
  color:var(--muted);
  max-width:760px;
  line-height:1.56;
}
p{
  color:var(--muted);
  line-height:1.62;
  margin:0 0 14px;
}
.actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.badge{
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
}
.metrics-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}
.metric-card{
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}
.metric-card strong{
  display:block;
  font-size:1.6rem;
  line-height:1;
  margin-bottom:8px;
}
.metric-card span{
  display:block;
  color:var(--muted);
  font-size:.92rem;
}
.section{padding:80px 0;border-bottom:1px solid var(--line)}
.section-contrast{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}
.section-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:end;
  margin-bottom:26px;
}
.grid-2,.grid-3{
  display:grid;
  gap:22px;
}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.align-start{align-items:start}
.card,.panel,.media-card,.process-card,.arm-card,.info-card{
  background:linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.card,.panel,.process-card,.arm-card,.info-card{padding:24px}
.panel img,.visual-panel img,.media-card img,.gallery-item img{
  width:100%;
  height:auto;
}
.seal-panel{
  border:1px solid rgba(238,28,37,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius:28px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:center;
  box-shadow:var(--shadow);
}
.seal-panel img{width:min(100%,430px);height:auto}
.seal-note{text-align:center}
.media-showcase{align-items:stretch}
.media-card img{
  width:100%;
  object-fit:cover;
  background:#050505;
  aspect-ratio:4/3;
}
.media-card-body{padding:18px 20px}
.list{padding-left:18px;margin:14px 0 0}
.list li{margin-bottom:10px;color:var(--muted)}
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.process-card{
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
}
.process-card span{
  display:block;
  color:var(--red);
  font-size:1.7rem;
  font-weight:900;
  margin-bottom:18px;
}
.process-card strong{
  font-size:1.2rem;
  margin-bottom:10px;
}
.process-card p{
  margin:0;
  font-size:.98rem;
}
.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
th,td{
  padding:15px 14px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
thead th{
  background:#0a0a0a;
  color:#fff;
}
tbody tr:hover{background:rgba(255,255,255,.02)}
td{color:var(--muted)}
.caption,.small{
  font-size:.93rem;
  color:var(--muted);
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.gallery-item{
  margin:0;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#0b0b0b;
  box-shadow:var(--shadow);
}
.gallery-item img{
  object-fit:contain;
  background:#050505;
  aspect-ratio:4/3;
}
.gallery-item figcaption{
  padding:14px 16px;
  color:var(--muted);
}
.arm-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:30px;
}
.arm-card{
  min-height:220px;
}
.arm-card h3{
  font-size:1.06rem;
  margin-bottom:10px;
}
.arm-wordmark{
  color:#fff;
  font-weight:700;
  margin-bottom:12px;
}
.arm-card-accent{
  border-color:rgba(238,28,37,.18);
  box-shadow:inset 0 0 0 1px rgba(238,28,37,.16), var(--shadow);
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.info-grid .info-card:nth-child(3n+1){
  background:linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.018));
}
.note-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  padding:18px 22px;
  border-radius:18px;
  border:1px solid rgba(238,28,37,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  box-shadow:var(--shadow);
}
.note-strip strong{color:#fff}
.quote-panel{
  position:relative;
}
.quote-panel::before{
  content:"";
  position:absolute;
  top:24px;
  left:24px;
  width:56px;
  height:4px;
  border-radius:999px;
  background:var(--red);
}
.quote-panel .kicker{margin-top:18px}
.autism-hero{padding-top:44px}
.footer{
  padding:36px 0 50px;
  border-top:1px solid var(--line);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:22px;
}
.footer img{height:40px;width:auto;margin-bottom:10px}
.footer a{
  color:#ddd;
}
.footer a:hover{color:#fff}
.panel-cta{text-align:center;padding:38px}
.panel-cta .actions{justify-content:center}
.contact-card .lead{font-size:1.1rem}
.selo-panel-large{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012));
}
.selo-panel-large img{
  width:min(100%,420px);
  height:auto;
  object-fit:contain;
  border-radius:20px;
}
.asset-layout .panel img{
  width:100%;
  height:auto;
  object-fit:contain;
  background:#050505;
}
@media (max-width: 1100px){
  .metrics-grid{grid-template-columns:repeat(2,1fr)}
  .arm-grid{grid-template-columns:repeat(2,1fr)}
  .info-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 980px){
  .hero-grid,.split,.asset-layout,.asset-layout.reverse,.grid-3,.grid-2,.footer-grid,.gallery-grid,.process-grid,.arm-grid,.info-grid{
    grid-template-columns:1fr;
  }
  .section-head{display:block}
  .container{width:min(var(--max), calc(100% - 30px))}
  .media-card img,.gallery-item img{height:auto}
  .menu a:not(.btn)[aria-current="page"]::after{display:none}
}
@media (max-width: 860px){
  .nav{padding:14px 0}
  .menu-toggle{display:inline-flex}
  .menu{
    position:absolute;
    left:0;
    right:0;
    top:84px;
    background:rgba(0,0,0,.97);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
    padding:14px 22px 22px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
  }
  .menu.is-open{display:flex}
  .menu a{width:100%}
  .btn-nav{width:100%}
  .brandmark img{height:36px}
  .brandtext{
    max-width:120px;
    white-space:normal;
    line-height:1.2;
  }
  .hero,.page-hero,.section{padding-top:64px;padding-bottom:56px}
  h1{max-width:none}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
}


body.menu-open{
  overflow:hidden;
}

.footer-signature{
  opacity:.82;
}

.footer a,
.contact-card .lead a,
.contact-card p a,
.small,
.badge,
td{
  overflow-wrap:anywhere;
}

@media (max-width: 860px){
  .menu{
    position:fixed;
    left:0;
    right:0;
    top:var(--menu-offset, 84px);
    bottom:0;
    min-height:calc(100dvh - var(--menu-offset, 84px));
    background:#000000;
    backdrop-filter:blur(16px);
    border-top:1px solid var(--line);
    border-bottom:none;
    padding:22px 22px calc(28px + env(safe-area-inset-bottom));
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    overflow-y:auto;
    overscroll-behavior:contain;
    box-shadow:0 32px 80px rgba(0,0,0,.45);
    z-index:70;
  }
  .menu.is-open{display:flex}
  .menu a{
    width:100%;
    font-size:1.32rem;
    line-height:1.2;
    color:#fff;
  }
  .menu .btn-nav{
    margin-top:8px;
    min-height:52px;
    width:100%;
  }
  .menu-toggle{
    position:relative;
    z-index:80;
  }
}

@media (max-width: 640px){
  .hero,
  .page-hero,
  .section{
    padding-top:56px;
    padding-bottom:52px;
  }
  .container{
    width:min(var(--max), calc(100% - 24px));
  }
  h1{
    font-size:clamp(2.2rem, 12vw, 3.6rem);
    line-height:.98;
  }
  h2{
    font-size:clamp(1.85rem, 8vw, 2.6rem);
  }
  .lead{
    font-size:1rem;
  }
  .nav{
    min-height:76px;
  }
  .brandmark{
    gap:12px;
  }
  .brandmark img{
    height:34px;
  }
  .brandtext{
    font-size:.82rem;
    max-width:112px;
    line-height:1.14;
  }
  .menu-toggle{
    padding:8px 10px;
  }
  .actions{
    flex-direction:column;
    align-items:stretch;
  }
  .actions .btn{
    width:100%;
  }
  .panel-cta{
    padding:28px 22px;
  }
  .card,
  .panel,
  .process-card,
  .arm-card,
  .info-card{
    padding:20px;
  }
  .metric-card{
    padding:14px 16px;
  }
  .section-head{
    margin-bottom:20px;
  }
}

@media (max-width: 480px){
  .brandtext{
    max-width:98px;
    font-size:.78rem;
  }
  .badge{
    font-size:.86rem;
    padding:8px 12px;
  }
  .kicker{
    font-size:.78rem;
    letter-spacing:.10em;
  }
  .menu a{
    font-size:1.2rem;
  }
}

@media (max-width: 760px){
  .table-wrap{
    overflow:visible;
    border:none;
    box-shadow:none;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr{
    display:block;
    width:100%;
  }
  table{
    min-width:0;
  }
  thead{
    display:none;
  }
  tbody{
    display:grid;
    gap:14px;
  }
  tbody tr{
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.015));
    box-shadow:var(--shadow);
  }
  tbody td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:12px 16px;
    text-align:right;
    border-bottom:1px solid var(--line);
  }
  tbody td:last-child{
    border-bottom:none;
  }
  tbody td::before{
    content:attr(data-label);
    color:#fff;
    font-weight:700;
    text-align:left;
    flex:0 0 42%;
  }
  tbody td:nth-child(4){
    font-size:.95rem;
    line-height:1.5;
  }
}


@media (max-width: 380px){
  .brandtext{display:none}
  .nav{gap:12px}
  .brandmark img{height:32px}
}


/* ==== Refinamento tipográfico e mobile v3 ==== */
main h1,
main h2,
main h3{
  text-wrap:balance;
}

main .hero-copy .lead,
main .page-hero .lead,
main .section-head .lead,
main .split > div > p:not(.small):not(.arm-wordmark),
main .asset-layout > .panel > p:not(.small):not(.arm-wordmark),
main .grid-2 > .panel > p:not(.small):not(.arm-wordmark),
main .panel-cta .lead,
main .note-strip span{
  text-align:justify;
  text-align-last:left;
  text-justify:inter-word;
  -webkit-hyphens:auto;
  -ms-hyphens:auto;
  hyphens:auto;
  overflow-wrap:break-word;
  text-wrap:pretty;
  max-width:none;
}

main .list li,
main .media-card-body p,
main .arm-card p:not(.arm-wordmark),
main .info-card p,
main .process-card p,
main .caption,
main .contact-card p,
main .contact-card .lead{
  text-wrap:pretty;
}

@media (max-width: 860px){
  main .hero-copy .lead,
  main .page-hero .lead,
  main .section-head .lead,
  main .split > div > p:not(.small):not(.arm-wordmark),
  main .asset-layout > .panel > p:not(.small):not(.arm-wordmark),
  main .grid-2 > .panel > p:not(.small):not(.arm-wordmark),
  main .panel-cta .lead,
  main .note-strip span{
    line-height:1.68;
  }

  .section-head{
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .panel-cta{
    text-align:left;
    padding:26px 20px;
  }

  .panel-cta .actions{
    justify-content:stretch;
  }

  .panel-cta h2,
  .panel-cta .lead{
    max-width:none;
  }

  .metric-card strong{
    font-size:1.5rem;
  }

  .media-card-body,
  .gallery-item figcaption{
    padding-left:18px;
    padding-right:18px;
  }
}


/* ==== Reancoragem institucional autismo v4 ==== */
body[data-page="autismo"] .editorial-copy p,
body[data-page="autismo"] .institutional-cta .lead,
body[data-page="autismo"] .note-strip span,
body[data-page="index"] .institutional-autism p,
body[data-page="index"] .institutional-autism .lead,
body[data-page="sobre"] .arm-card-accent p:last-child{
  text-align:justify !important;
  text-align-last:left;
  text-justify:inter-word;
  -webkit-hyphens:auto;
  -ms-hyphens:auto;
  hyphens:auto;
  overflow-wrap:break-word;
  text-wrap:pretty;
}

body[data-page="autismo"] .page-hero .actions{
  margin-top:26px;
}

.autism-info-grid .info-card{
  min-height:0;
}

.autism-info-grid .info-card p{
  margin-bottom:0;
}

.institutional-cta{
  border-color:rgba(238,28,37,.18);
  box-shadow:inset 0 0 0 1px rgba(238,28,37,.12), var(--shadow);
}

.institutional-cta .actions{
  justify-content:center;
}

@media (max-width: 860px){
  body[data-page="autismo"] .page-hero,
  body[data-page="autismo"] .section{
    padding-top:58px;
    padding-bottom:52px;
  }

  body[data-page="autismo"] .panel,
  body[data-page="autismo"] .info-card,
  body[data-page="autismo"] .panel-cta{
    padding:22px;
  }

  body[data-page="autismo"] .editorial-copy p,
  body[data-page="autismo"] .institutional-cta .lead,
  body[data-page="autismo"] .note-strip span{
    line-height:1.7;
    font-size:1.02rem;
  }
}

@media (max-width: 640px){
  body[data-page="autismo"] h1{
    font-size:clamp(2.25rem, 11.8vw, 3.3rem);
  }

  body[data-page="autismo"] h2{
    font-size:clamp(1.95rem, 8vw, 2.45rem);
  }

  body[data-page="autismo"] .section-head .lead{
    margin-top:4px;
  }

  body[data-page="autismo"] .note-strip{
    align-items:flex-start;
  }
}
