/* ============================================================
   Wendepunkt — Stylesheet
   Farben: Basalt #1C2B33 · Kalkstein #F5F6F3 · Petrol #0F4C5C
           Seegrün #5FA39A · Gischt #E3EEEC
   Schrift: Literata (Überschriften) · Atkinson Hyperlegible (Text)
   ============================================================ */

@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bas: #1C2B33;
  --cal: #F5F6F3;
  --atl: #0F4C5C;
  --atl-d: #0A3845;
  --mar: #5FA39A;
  --mar-l: #9CD1C8;
  --esp: #E3EEEC;
  --white: #FFFFFF;
  --muted: #4A5A62;
  --line: #D3DCDA;
  --field: #7A8B91;
  --err: #A63A26;
  --ok: #1F6B4F;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 8vw, 112px);
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cal); color: var(--bas); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--atl); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--atl-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--atl); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
.show-sm { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.meta { font-size: var(--step--1); color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bas); color: var(--white); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 2px solid transparent; font: 700 var(--step-0)/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 56px; padding: 14px 26px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn--primary { background: var(--atl); color: var(--white); }
.btn--primary:hover { background: var(--atl-d); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--atl); border-color: var(--atl); }
.btn--ghost:hover { background: var(--esp); color: var(--atl-d); text-decoration: none; }
.btn--light { background: var(--cal); color: var(--bas); }
.btn--light:hover { background: var(--white); color: var(--bas); text-decoration: none; }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.btn--danger { background: var(--err); color: var(--white); }
.btn--danger:hover { background: #862e1e; color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-strong { font-weight: 700; }

/* ---------- Topo ---------- */
.topbar { background: var(--atl); color: var(--esp); font-size: var(--step--1); }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: var(--cal); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bas); }
.brand:hover { color: var(--bas); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__txt small { font-size: 0.78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 22px; }
.nav ul a { white-space: nowrap; color: var(--bas); text-decoration: none; font-weight: 700; font-size: var(--step--1); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav ul a:hover { color: var(--atl); border-bottom-color: var(--mar); }
.nav ul a[aria-current="page"] { color: var(--atl); border-bottom-color: var(--atl); }
.nav__cta { white-space: nowrap; min-height: 44px; padding: 10px 18px; font-size: var(--step--1); }
.nav-toggle { display: none; }

/* ---------- Calçada portuguesa (motivo principal) ---------- */
.wave {
  height: 42px; background: var(--bas);
  -webkit-mask: url("../img/wave.svg") 0 0 / 180px 24px repeat;
          mask: url("../img/wave.svg") 0 0 / 180px 24px repeat;
}
.p-start .hero + .wave { height: 60px; animation: mare 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mare { from { -webkit-mask-position: -360px 0; mask-position: -360px 0; opacity: 0; } 25% { opacity: 1; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.wave--footer { background: var(--cal); height: 36px; }

/* ---------- Imagens com recurso ---------- */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--esp) 0%, #C9DEDA 100%); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--dark { background: linear-gradient(160deg, #17606F 0%, var(--atl-d) 100%); }
.ph--empty::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: var(--atl); opacity: .12; -webkit-mask: url("../img/wave.svg") 0 0 / 180px 24px repeat; mask: url("../img/wave.svg") 0 0 / 180px 24px repeat; }

/* ---------- Secções ---------- */
.section { padding-block: var(--sec); }
.section--tint { background: var(--esp); }
.section--dark { background: var(--atl); color: var(--esp); }
.section--dark h2 { color: var(--white); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head--row p { margin-bottom: 0; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 32px 20px; }
.hero__call { color: var(--muted); font-size: var(--step--1); }
.hero__call a { font-weight: 700; }
.hero__img { aspect-ratio: 4 / 5; border-radius: 180px 180px var(--r-sm) var(--r-sm); }
.hero__trust { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(40px, 5vw, 64px); padding-bottom: 36px; }
.hero__trust li { border-top: 2px solid var(--bas); padding-top: 14px; color: var(--muted); font-size: var(--step--1); }
.hero__trust strong { display: block; font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: var(--bas); margin-bottom: 2px; }

.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 20ch; }

/* Sinais */
.signs__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.signs__intro p { color: var(--muted); }
.signs__list { list-style: none; border-top: 1px solid var(--line); }
.signs__list li { font-family: var(--serif); font-style: italic; font-size: var(--step-1); line-height: 1.4; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.signs__list li::before { content: "\201C"; position: absolute; left: 0; top: 8px; font-size: 2.4rem; line-height: 1; color: var(--mar); font-style: normal; }

/* Passos (sequência real) */
.steps__list { list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps__list li { counter-increment: passo; border-top: 2px solid var(--atl); padding-top: 20px; }
.steps__list li::before { content: counter(passo); display: block; font-family: var(--serif); font-size: 3rem; font-weight: 400; line-height: 1; color: var(--atl); margin-bottom: 16px; }
.steps__list p { color: var(--muted); margin: 0; }

/* Programas */
.programs__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.programs__img { aspect-ratio: 4 / 5; }
.program-list { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.program-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.program-list dt a { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; text-decoration: none; color: var(--bas); }
.program-list dt a:hover { color: var(--atl); text-decoration: underline; }
.program-list dd { margin: 0; color: var(--muted); }

/* Jogo online */
.online__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.online__img { aspect-ratio: 1 / 1; }
.check-list { list-style: none; margin-top: 24px; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid rgba(227,238,236,.2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 16px; height: 9px; border-left: 2.5px solid var(--mar-l); border-bottom: 2.5px solid var(--mar-l); transform: rotate(-45deg); }
.check-list--sm li { padding: 6px 0 6px 28px; border: 0; }
.check-list--sm li::before { top: 13px; width: 13px; height: 7px; border-color: var(--mar); }

/* Testemunho */
.quote blockquote { margin: 0; max-width: 920px; }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; max-width: none; }
.quote footer { color: var(--muted); font-weight: 700; }

/* Equipa */
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.person__img { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.person h2, .person h3 { font-size: var(--step-1); margin-bottom: 4px; }
.person__role { color: var(--atl); font-weight: 700; font-size: var(--step--1); margin-bottom: 12px; }
.person--full p { font-size: var(--step--1); }
.person__id { color: var(--muted); font-size: 0.8rem !important; margin-top: 12px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; background: var(--white); }

/* FAQ */
.faq__in { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 88px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--atl), var(--atl)) center / 100% 2px no-repeat, linear-gradient(var(--atl), var(--atl)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Faixa CTA */
.cta-band { background: var(--bas); color: var(--esp); padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Serviços */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; background: var(--atl); color: var(--white); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare--plain { min-width: 520px; }
.compare--plain thead th { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; background: var(--esp); color: var(--bas); }

.services-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.services-index { position: sticky; top: 104px; }
.services-index__t { font-weight: 700; margin-bottom: 12px; }
.services-index ul, .legal__toc ol { list-style: none; border-left: 2px solid var(--line); }
.services-index a, .legal__toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: var(--step--1); }
.services-index a:hover, .legal__toc a:hover { color: var(--atl); border-left-color: var(--atl); }
.service { padding-block: 44px; border-top: 1px solid rgba(15,76,92,.18); scroll-margin-top: 100px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service--img { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.service--img .service__img { order: 2; aspect-ratio: 4 / 5; }
.service__dur { display: inline-block; color: var(--atl); font-weight: 700; font-size: var(--step--1); margin-top: -8px; }
.service__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(15,76,92,.25); }
.service__cols h3 { font-family: var(--sans); font-weight: 700; font-size: var(--step--1); margin-bottom: 6px; }
.service__cols p, .service__cols li { font-size: var(--step--1); color: var(--muted); }

/* Sobre */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--img { align-items: center; }
.split__img { aspect-ratio: 5 / 6; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; max-width: 68ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin: 0; }
.values dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; margin-bottom: 8px; padding-top: 14px; border-top: 2px solid var(--atl); }
.values dd { margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.gallery figure { aspect-ratio: 3 / 4; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--cal); padding: 4px 12px; border-radius: var(--r-sm); font-size: var(--step--1); font-weight: 700; }

/* Contactos */
.contact { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__form { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); scroll-margin-top: 100px; }
.info-block { border-top: 2px solid var(--bas); padding: 16px 0 24px; }
.info-block h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; margin-bottom: 8px; }
.info-block p, .info-block address { color: var(--muted); }
.info-big { font-family: var(--serif); font-size: var(--step-2); margin-bottom: 6px; }
.info-big a { text-decoration: none; color: var(--bas); }
.hours { margin: 0; }
.hours div, .footer-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.hours dt { color: var(--bas); } .hours dd { margin: 0; color: var(--muted); }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.02); }
.map-link { padding-block: 12px 0; font-size: var(--step--1); }

/* Formulários */
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input:not([type]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: var(--r); background: var(--white); color: var(--bas); font: inherit;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bas) 50%), linear-gradient(135deg, var(--bas) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(15,76,92,.35); outline-offset: 0; border-color: var(--atl); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__hint { font-size: var(--step--1); color: var(--muted); margin: 6px 0 0; }
.field__err { font-size: var(--step--1); color: var(--err); font-weight: 700; margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.opt { font-weight: 400; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--atl); flex: none; }
.choice--consent { align-items: flex-start; font-size: var(--step--1); line-height: 1.5; }
.choice--consent input { margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r); padding: 16px 20px; margin-bottom: 24px; border-left: 4px solid; }
.notice p:last-child { margin-bottom: 0; }
.notice--ok { background: #E4F2EC; border-color: var(--ok); }
.notice--err { background: #F8E7E3; border-color: var(--err); }
.notice h2 { font-size: var(--step-2); }

/* Teste */
.quiz, .result { max-width: 860px; scroll-margin-top: 110px; }
.quiz__list { list-style: none; counter-reset: q; }
.quiz__q { counter-increment: q; padding: 28px 0; border-top: 1px solid var(--line); }
.quiz__q fieldset { border: 0; margin: 0; padding: 0; }
.quiz__q legend { padding: 0; margin-bottom: 16px; font-size: var(--step-0); color: var(--muted); }
.quiz__q legend::before { content: counter(q) " / 9"; display: block; font-size: var(--step--1); font-weight: 700; color: var(--atl); margin-bottom: 4px; }
.quiz__q legend strong { display: block; font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.35; color: var(--bas); margin-top: 2px; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scale__opt { position: relative; }
.scale__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale__opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border: 1.5px solid var(--field); border-radius: var(--r); background: var(--white); font-weight: 700; font-size: var(--step--1); transition: background-color .15s, color .15s; }
.scale__opt input:hover + span { border-color: var(--atl); }
.scale__opt input:focus-visible + span { outline: 3px solid var(--atl); outline-offset: 2px; }
.scale__opt input:checked + span { background: var(--atl); border-color: var(--atl); color: var(--white); }
.quiz__q.is-missing .scale__opt span { border-color: var(--err); }
.quiz__err { color: var(--err); font-weight: 700; }
.result { margin-top: 24px; padding: clamp(24px, 4vw, 48px); background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.result:focus { outline: none; }
.result__score { font-family: var(--serif); font-size: var(--step-3); margin-bottom: 12px; }
.result__meter { height: 12px; border-radius: 999px; background: var(--esp); overflow: hidden; margin-bottom: 28px; }
.result__meter span { display: block; height: 100%; width: 0; background: var(--atl); border-radius: inherit; transition: width .6s ease-out; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.result__note { font-size: var(--step--1); color: var(--muted); margin-top: 20px; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: 104px; }
.legal__toc ol { counter-reset: t; }
.legal__body h2 { font-size: var(--step-2); scroll-margin-top: 100px; }
.legal__body table { margin-bottom: 1em; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bas); color: #C5D2D0; font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand__name { font-family: var(--serif); font-size: var(--step-2); color: var(--white); margin-bottom: 8px; }
.footer-h { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-list { list-style: none; line-height: 1.9; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-social { list-style: none; display: flex; gap: 16px; margin-top: 16px; }
.footer-hours { margin: 0; }
.footer-hours div { display: block; padding: 0 0 8px; }
.footer-hours dd { margin: 0; color: var(--white); }
.footer-crisis, .footer-legal { position: relative; }
.footer-crisis::before, .footer-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.14); }
.footer-crisis { padding-block: 20px; }
.footer-crisis p { margin: 0; max-width: none; }
.footer-crisis a { font-weight: 700; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; font-size: 0.8rem; }
.footer-legal p { margin: 0; max-width: none; }
.footer-legal__links { display: flex; gap: 20px; }

/* Aviso de cookies */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--bas); color: var(--esp); padding: 18px 20px; border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(28,43,51,.35); display: flex; gap: 16px; align-items: flex-end; font-size: var(--step--1); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--white); }

/* ---------- Painel de administração ---------- */
.admin { background: var(--esp); }
.admin-bar { background: var(--bas); color: var(--white); }
.admin-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.admin-bar a { color: var(--white); text-decoration: none; font-size: var(--step--1); }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.admin-bar__brand { font-family: var(--serif); font-size: var(--step-1) !important; }
.admin-main { padding-block: 40px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-card { background: var(--white); border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line); width: 100%; }
.admin-login .admin-card { max-width: 440px; }
.admin-narrow { max-width: 520px; }
.admin-card h1 { font-size: var(--step-2); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: var(--step-3); }
.admin-filter { display: flex; gap: 6px; }
.admin-filter a, .admin-pages a { padding: 6px 14px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-size: var(--step--1); color: var(--atl); }
.admin-filter a[aria-current], .admin-pages a[aria-current] { background: var(--atl); color: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; font-size: var(--step--1); min-width: 640px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--cal); }
.admin-table tr.is-new td { font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--atl); margin-right: 8px; vertical-align: middle; }
.admin-pages { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.admin-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 24px; }
.admin-dl dt { font-size: 0.8rem; color: var(--muted); }
.admin-dl dd { margin: 0; font-weight: 700; }
.admin-msg { white-space: normal; background: var(--cal); padding: 16px; border-radius: var(--r); max-width: none; }
.admin-meta { font-size: 0.8rem; color: var(--muted); }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.admin-actions form { margin: 0; }
.admin-clean { margin-top: 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .brand__txt small { display: none; }
}

@media (max-width: 1080px) {
  .nav ul { gap: 16px; }
  .nav { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1.5px solid var(--bas); border-radius: var(--r); font: 700 var(--step--1) var(--sans); color: var(--bas); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cal); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px; gap: 16px; box-shadow: 0 16px 24px rgba(28,43,51,.12); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-header__in { position: relative; }

  .hero__in, .signs__in, .programs__in, .online__in, .faq__in, .split, .contact, .services-layout, .legal { grid-template-columns: 1fr; }
  .hero__img { max-width: 520px; aspect-ratio: 5 / 4; border-radius: 160px 160px var(--r-sm) var(--r-sm); }
  .programs__img { aspect-ratio: 16 / 10; }
  .online__img { aspect-ratio: 16 / 10; max-width: 560px; }
  .services-index, .legal__toc { position: static; }
  .services-index ul { columns: 2; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .cta-band__in { flex-direction: column; align-items: flex-start; }
  .service--img { grid-template-columns: 1fr; }
  .service--img .service__img { order: 0; aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  html { font-size: 106.25%; }
  .topbar__sec, .hide-sm { display: none; }
  .show-sm { display: inline; }
  .brand__txt small { display: none; }
  .site-header__in { min-height: 68px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { grid-template-columns: 1fr; gap: 20px; }
  .steps__list, .team-grid, .values, .service__cols, .field-row { grid-template-columns: 1fr; }
  .program-list > div { grid-template-columns: 1fr; gap: 4px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .scale { grid-template-columns: 1fr 1fr; }
  .services-index ul { columns: 1; }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; flex-direction: column; align-items: stretch; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .site-header, .wave, .cta-band, .cookie, .map-section, .site-footer { display: none !important; }
  body { background: #fff; }
}

/* ---------- Sprachauswahl ---------- */
.topbar__right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 2px 8px; border-radius: var(--r-sm); color: var(--esp) !important; font-weight: 700; text-decoration: none; }
.lang-switch a:hover { background: rgba(255,255,255,.12); text-decoration: none !important; }
.lang-switch a[aria-current] { background: var(--cal); color: var(--atl) !important; }
.lang-switch abbr { text-decoration: none; cursor: inherit; }
.topbar__in { align-items: center; padding-block: 5px; }
.cookie .btn { white-space: nowrap; flex: none; }
