/* ===== Tokens ===== */
:root {
  --navy: #2E394B; --navy-deep: #222B3A;
  --terra: #A25B3C; --terra-text: #8F4B2E;
  --greige: #C4BCB9; --sand: #EDE9E6; --paper: #F7F5F3;
  --ink: #1F2632; --mut: #5C5B60; --err: #9B3B2E;
  --fonte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --raio: 3px; --container: 1280px; --zap: #1AA34F; --zap-escuro: #128C3E; /* verde WhatsApp escurecido: ícone branco ≥ 3:1 */
}
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-300.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-600.woff2') format('woff2'); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--sand); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn--primario:focus-visible, .flutuante:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 4px var(--paper); }
.btn--branco:focus-visible, .btn--vazado:focus-visible { outline-color: #fff; }
.bg-navy .btn--primario:focus-visible, .hero .btn--primario:focus-visible { outline-color: var(--paper); box-shadow: none; }
section[id], footer[id], #formulario { scroll-margin-top: 16px; }
[hidden] { display: none !important; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.secao { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-deep); color: var(--paper); }
.bg-navy h2 { color: #fff; }
.bg-navy p { color: var(--greige); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-text); margin-bottom: 16px; }
.bg-navy .eyebrow { color: var(--greige); }
.secao__cabeca { max-width: 62ch; margin-bottom: 32px; }
.secao__cabeca--centro { margin-inline: auto; text-align: center; }
.secao__cabeca p { margin-top: 12px; color: var(--mut); }
.bg-navy .secao__cabeca p { color: var(--greige); }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 13px/1.2 var(--fonte); letter-spacing: .08em; text-transform: uppercase; text-align: center; text-decoration: none; border-radius: var(--raio); border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primario { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn--primario:hover, .btn--primario:active { background: var(--terra-text); border-color: var(--terra-text); }
.btn--secundario { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secundario:hover { background: var(--navy); color: var(--paper); }
.bg-navy .btn--secundario { color: var(--paper); border-color: var(--paper); }
.bg-navy .btn--secundario:hover { background: var(--paper); color: var(--navy); }
.btn--texto { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
/* Toque: botão "afunda" ao ser pressionado (celular e desktop), sem o brilho azul do Android/iOS */
.btn, .opcao, .tile, .flutuante, .rodape__icone, .lightbox__fechar, .lightbox__nav { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(2px) scale(.97); }
.btn--primario:active { box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25); }
.btn--branco:active { background: var(--sand); border-color: var(--sand); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .12); }
.btn--vazado:active { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--secundario:active { background: var(--navy); color: var(--paper); }
.bg-navy .btn--secundario:active, .form-wrap--hero .btn--secundario:active { background: var(--paper); color: var(--navy); }
.opcao { transition: transform .12s ease, background-color .15s ease; }
.opcao:active { transform: scale(.98); }
.flutuante, .rodape__icone { transition: transform .12s ease, background-color .15s ease, border-color .15s ease; }
.flutuante:active, .rodape__icone:active { transform: scale(.92); }
.tile:active { transform: scale(.98); transition: transform .12s ease; }
@media (prefers-reduced-motion: reduce) { .btn, .opcao, .flutuante, .rodape__icone, .tile { transition: none; } .btn:active, .opcao:active, .flutuante:active, .rodape__icone:active, .tile:active { transform: none; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.seguranca { display: block; margin-top: 10px; font-size: 13px; color: var(--mut); }

/* ===== Header ===== */
.header { min-height: 64px; background: var(--sand); border-bottom: 1px solid var(--greige); }
.header .container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo img { height: 48px; width: auto; } /* PNG tem margem transparente; 48px deixa a marca legível */
.header__nav { display: flex; align-items: center; gap: 20px; }
.header .btn { padding: 0 16px; }

/* ===== Hero (primeira dobra: foto de fundo + caixa do formulário) ===== */
.hero { position: relative; background: var(--navy-deep); color: var(--paper); padding: 40px 0 56px; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity 1.2s ease; }
.hero__bg img.is-ativo { opacity: 1; }
.hero__bg .hero__slide--karin { object-position: 72% 50%; } /* 72%: o rosto cai no vão entre o texto e a caixa em 1440–1920 */
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 43, 58, .78) 0%, rgba(34, 43, 58, .62) 55%, rgba(34, 43, 58, .45) 100%); } /* mais leve: a foto aparece; o texto fica na faixa mais escura */
.pattern { position: absolute; inset: 0; pointer-events: none; background-color: var(--navy); opacity: .05; -webkit-mask-image: url('../assets/img/pattern.png'); mask-image: url('../assets/img/pattern.png'); -webkit-mask-size: 360px; mask-size: 360px; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.hero__grid { position: relative; display: grid; gap: 40px; }
/* Mobile: hero centralizado como na referência; desktop volta a alinhar à esquerda */
.hero__texto { text-align: center; }
.hero__logo { display: block; width: min(100%, 240px); height: auto; margin: 0 auto 36px; } /* logo aparado é largo e baixo: dimensiona pela largura */
.hero__traco { display: block; width: 64px; height: 2px; background: var(--paper); margin: 0 auto 24px; }
.hero h1 { color: #fff; }
.hero h1 strong { font-weight: 600; }
.hero__sub { color: var(--greige); max-width: 46ch; margin: 22px auto 24px; font-size: 17px; }
.hero__sub strong { color: #fff; font-weight: 600; }
/* CTA na primeira dobra do celular. No desktop a caixa do formulário já fica ao lado do texto. */
.hero__cta-mobile { max-width: 340px; margin: 0 auto 30px; } /* max-width não disputa com o width:100% de .btn--branco */
.hero__cta-apoio { display: block; font-size: 12px; color: var(--greige); margin: -18px auto 26px; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.hero__badges > div { flex: 0 1 calc(50% - 10px); } /* 2 colunas no mobile, como na referência */
.hero__badges b { display: block; font-size: 16px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero__badges span { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--greige); }
.hero__box { position: relative; background: rgba(28, 34, 46, .94); border: 1px solid rgba(255, 255, 255, .12); border-top: 4px solid var(--greige); padding: 28px 24px; color: var(--paper); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .hero__box { background: rgba(28, 34, 46, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }
.hero__box-cabeca { text-align: center; margin-bottom: 24px; }
.hero__box-cabeca h2 { font-size: 22px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hero__box-cabeca p { color: var(--greige); font-size: 14px; margin-top: 8px; }
.gate { display: grid; gap: 12px; }
.gate__rotulo { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 4px; }
.btn--branco { background: #fff; color: var(--navy); border-color: #fff; width: 100%; }
.btn--branco:hover { background: var(--sand); border-color: var(--sand); }
.btn--vazado { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); width: 100%; }
.btn--vazado:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Form dentro da caixa escura */
.hero__box .form-wrap--hero { background: transparent; border: 0; padding: 0; max-width: none; } /* (0,2,0) vence .form-wrap declarado depois */
.form-wrap--hero .tela legend, .form-wrap--hero .campo label, .form-wrap--hero .form-final h3, .form-wrap--hero .btn--texto { color: #fff; }
.form-wrap--hero .tela__apoio, .form-wrap--hero .progresso, .form-wrap--hero .campo__ajuda, .form-wrap--hero .form-final p, .form-wrap--hero .seguranca { color: var(--greige); }
.form-wrap--hero .seguranca a { color: #fff; }
.form-wrap--hero .progresso__barra { background: rgba(255, 255, 255, .2); margin-bottom: 20px; }
.form-wrap--hero .opcoes { gap: 8px; }
.form-wrap--hero .tela__rotulo { color: #D9B39C; }
.form-wrap--hero .opcao { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); color: var(--paper); }
.form-wrap--hero .opcao:has(input:checked) { background: var(--paper); color: var(--navy); }
.form-wrap--hero .opcao:has(input:checked) input { accent-color: var(--terra); }
.form-wrap--hero .opcao input { color-scheme: dark; }
.form-wrap--hero .opcao:has(input:focus-visible) { outline-color: #fff; }
.form-wrap--hero .campo input, .form-wrap--hero .campo select, .form-wrap--hero .campo textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); color: #fff; }
.form-wrap--hero .campo input::placeholder, .form-wrap--hero .campo textarea::placeholder { color: rgba(255, 255, 255, .6); opacity: 1; }
.form-wrap--hero .campo select option { color: var(--ink); background: #fff; }
.form-wrap--hero .campo__erro, .form-wrap--hero .tela__erro { color: #F0B4A4; }
.form-wrap--hero .campo input[aria-invalid="true"], .form-wrap--hero .campo select[aria-invalid="true"], .form-wrap--hero .campo textarea[aria-invalid="true"] { border-color: #F0B4A4; }
.form-wrap--hero .form-erro { border-color: #F0B4A4; color: #F0B4A4; }
.form-wrap--hero .btn--secundario { color: #fff; border-color: rgba(255, 255, 255, .6); }
.form-wrap--hero .btn--secundario:hover { background: #fff; color: var(--navy); }
.hero__box .noscript { border-color: rgba(255, 255, 255, .4); }

/* ===== Galeria de projetos ===== */
.galeria__grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 959.98px) { .tile--desktop:not(.is-revelado) { display: none; } } /* celular abre com 4 linhas de 2; desktop com 4 linhas de 4 */
.tile { display: block; width: 100%; margin: 0; padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border-radius: var(--raio); cursor: pointer; }
button.tile:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tile:hover img { transform: scale(1.03); }
.tile--placeholder { display: grid; place-items: center; background-color: var(--navy-deep); position: relative; }
.tile--placeholder:nth-child(4n+2), .tile--placeholder:nth-child(4n+3) { background-color: var(--navy); }
.tile--placeholder::before { content: ''; position: absolute; inset: 0; background-color: var(--greige); opacity: .09; -webkit-mask-image: url('../assets/img/pattern.png'); mask-image: url('../assets/img/pattern.png'); -webkit-mask-size: 110px; mask-size: 110px; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.tile--placeholder:nth-child(even)::before { -webkit-mask-position: 55px 55px; mask-position: 55px 55px; }
.tile--placeholder img { position: relative; width: 56px; height: 56px; object-fit: contain; opacity: .6; }
.tile--placeholder:hover img { transform: none; }
.galeria__acoes { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tile[tabindex] { outline-offset: 2px; }

/* ===== Como eu trabalho (cards com foto) ===== */
.cards2 { display: grid; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--greige); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(34, 43, 58, .1); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.04); }
.card__texto { padding: 28px; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--mut); }

/* ===== Método (linha do tempo numerada) ===== */
.titulo-sublinhado { padding-bottom: 18px; position: relative; }
.titulo-sublinhado::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 120px; height: 2px; background: var(--navy); }
.metodo { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.metodo li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
.metodo li:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 56px; bottom: -28px; width: 2px; background: var(--greige); }
.metodo__num { grid-row: 1 / 3; width: 56px; height: 56px; border: 2px solid var(--navy); border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 18px; font-weight: 600; display: grid; place-items: center; position: relative; z-index: 1; }
.metodo h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 16px 0 6px; }
.metodo p { color: var(--mut); font-size: 15px; line-height: 1.5; }
@media (min-width: 960px) {
  .metodo { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; padding-top: 8px; }
  .metodo::before { content: ''; position: absolute; top: 40px; left: calc(100% / 16); right: calc(100% / 16); height: 2px; background: var(--greige); }
  .metodo li { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .metodo li:not(:last-child)::after { display: none; }
  .metodo__num { width: 64px; height: 64px; font-size: 20px; }
  .metodo h3 { margin: 40px 0 10px; hyphens: auto; overflow-wrap: anywhere; }
  .metodo p { font-size: 14px; hyphens: auto; overflow-wrap: anywhere; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .metodo h3 { font-size: 12px; letter-spacing: .06em; }
}

/* ===== Sobre (escuro) ===== */
.sobre { position: relative; overflow: hidden; }
.sobre .pattern { background-color: var(--paper); opacity: .04; }
.sobre .container { position: relative; display: grid; gap: 32px; align-items: start; } /* texto longo: foto fica no topo, não flutua no meio */
.sobre__foto { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; margin-inline: auto; }
.sobre__foto::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.sobre__foto img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: var(--raio); }
.sobre__texto h2 + p { margin-top: 16px; }
.sobre__texto p + p { margin-top: 14px; }
.sobre__texto strong { color: #fff; font-weight: 600; } /* destaques do texto sobre o navy */
.sobre .btn { margin-top: 28px; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--greige); max-width: 900px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--greige); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.faq summary::after { content: '+'; content: '+' / ''; font-size: 22px; font-weight: 300; color: var(--terra-text); transition: transform .15s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__resposta { padding: 0 32px 22px 0; color: var(--mut); }

/* ===== CTA final (foto de fundo) ===== */
.cta-final { position: relative; overflow: hidden; min-height: 60vh; min-height: 60svh; display: flex; align-items: center; }
.cta-final__bg { position: absolute; inset: 0; }
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta-final__bg::after { content: ''; position: absolute; inset: 0; background: rgba(34, 43, 58, .72); }
.cta-final .container { position: relative; }
.cta-final .secao__cabeca { margin-bottom: 0; }
.cta-final .eyebrow, .cta-final .secao__cabeca p, .cta-final .seguranca { color: var(--paper); } /* sobre foto clara, greige cai abaixo de 4,5:1 */
.cta-final .btn { margin-top: 20px; }
.bg-navy .seguranca { color: var(--greige); }
.cta-final .btn--primario:focus-visible { outline-color: var(--paper); box-shadow: none; }

/* ===== Formulário ===== */
.form-wrap { background: var(--paper); border: 1px solid var(--greige); border-radius: var(--raio); padding: 28px 22px; max-width: 720px; margin-inline: auto; position: relative; }
.progresso { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.progresso__barra { height: 3px; background: var(--greige); margin-bottom: 28px; }
.progresso__barra span { display: block; height: 100%; background: var(--terra); transition: width .2s; }
.tela { border: 0; margin: 0; padding: 0; min-width: 0; }
.tela legend { font-size: 22px; font-weight: 400; color: var(--navy); margin-bottom: 8px; padding: 0; line-height: 1.25; }
.tela legend:focus { outline: none; }
.tela legend, .form-final h3, .campo input, .campo select, .campo textarea { scroll-margin-top: 16px; }
.tela__apoio { font-size: 14px; color: var(--mut); margin-bottom: 12px; }
.tela__rotulo { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-text); margin-bottom: 8px; }
.tela legend .tela__rotulo { display: block; margin-bottom: 6px; }
.tela legend.tela__rotulo { font-size: 12px; font-weight: 600; color: var(--terra-text); line-height: 1.4; }
.opcoes { display: grid; gap: 10px; margin-top: 12px; }
.opcao { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--navy); border-radius: var(--raio); cursor: pointer; background: #fff; min-height: 48px; }
.opcao:has(input:checked) { background: var(--navy); color: var(--paper); }
.opcao:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 2px; }
.opcao input { width: 18px; height: 18px; margin: 0; accent-color: var(--terra); flex: none; }
.opcao input:focus-visible { outline: none; } /* o anel fica no label */
.opcao:has(input:checked) input { accent-color: var(--paper); }
.campo { display: grid; gap: 6px; margin-top: 14px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--navy); }
.campo input, .campo select, .campo textarea { font: 400 16px/1.4 var(--fonte); color: var(--ink); background: #fff; border: 1px solid var(--navy); border-radius: var(--raio); min-height: 48px; padding: 10px 14px; width: 100%; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input[aria-invalid="true"], .campo select[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--err); }
.campo__erro, .tela__erro { font-size: 13px; color: var(--err); min-height: 1.2em; margin: 0; }
.campo__ajuda { font-size: 13px; color: var(--mut); }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.form__acoes .btn--primario { margin-left: auto; }
.form-final { text-align: center; padding: 16px 0; }
.form-final h2, .form-final h3 { font-size: 26px; font-weight: 300; color: var(--navy); margin-bottom: 12px; }
.form-final h2:focus, .form-final h3:focus { outline: none; }
.form-final p { color: var(--mut); max-width: 48ch; margin: 0 auto 20px; }
.form-erro { margin-top: 16px; padding: 16px; border: 1px solid var(--err); color: var(--err); font-size: 14px; }
.form-erro .ctas { margin-top: 12px; }
.noscript { padding: 20px; border: 1px solid var(--navy); text-align: center; }

/* ===== Página de texto (política) ===== */
.prosa { max-width: 72ch; }
.prosa h1 { margin-bottom: 24px; }
.prosa h2 { margin: 32px 0 12px; font-size: 22px; }
.prosa__nota { margin-top: 32px; color: var(--mut); font-size: 14px; }
.form-wrap--pagina { margin: 32px 0 0; }
.form-wrap--pagina button[type="submit"] { margin-top: 20px; }
.form-wrap--pagina .seguranca { margin-top: 12px; }

/* ===== Rodapé (3 colunas como na referência) ===== */
.rodape { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .1); color: var(--greige); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.rodape__grade { display: grid; gap: 28px; justify-items: center; text-align: center; }
.rodape__logo img { width: 140px; height: auto; }
.rodape__creditos p { color: var(--greige); line-height: 1.6; }
.rodape__creditos p + p { margin-top: 10px; }
.rodape__local { font-size: 13px; }
.rodape__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.rodape__links a { color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .04em; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.rodape__links a:hover { border-bottom-color: #fff; }
.rodape__social { display: flex; gap: 14px; }
.rodape__icone { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; padding: 0; }
.rodape__icone:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.rodape__icone svg { width: 22px; height: 22px; fill: currentColor; }

/* ===== Fixos ===== */
.flutuante { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--zap); color: #fff; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.flutuante:hover { background: var(--zap-escuro); }
.flutuante svg { width: 34px; height: 34px; flex: none; fill: currentColor; }
.flutuante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.form-visivel .flutuante, body.enviado .flutuante { display: none; }
/* :has separado: em browser sem suporte a regra acima continua válida */
body:has(#form-lead :focus-within) .flutuante { display: none; }

/* ===== Lightbox da galeria ===== */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--paper); }
.lightbox::backdrop { background: rgba(20, 24, 32, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figura { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; }
.lightbox__figura img { max-width: 92vw; max-height: 78vh; max-height: 78dvh; width: auto; height: auto; object-fit: contain; border-radius: var(--raio); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__figura figcaption { font-size: 14px; color: var(--greige); text-align: center; padding: 0 16px; }
.lightbox__contador { color: rgba(255, 255, 255, .55); margin-left: 8px; font-variant-numeric: tabular-nums; }
.lightbox__fechar, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(20, 24, 32, .6); color: #fff; font: 300 30px/1 var(--fonte); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lightbox__fechar:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.lightbox__fechar { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--ant { left: 12px; }
.lightbox__nav--prox { right: 12px; }
.lightbox__fechar:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 960px) {
  .lightbox__fechar { top: 24px; right: 24px; width: 56px; height: 56px; }
  .lightbox__nav { width: 56px; height: 56px; }
  .lightbox__nav--ant { left: 32px; }
  .lightbox__nav--prox { right: 32px; }
}

/* ===== Dialog ===== */
dialog:not([open]) { display: none; } /* browsers sem <dialog> (iOS < 15.4) */
.dialog { border: 0; border-radius: var(--raio); padding: 0; width: min(100% - 32px, 440px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(34, 43, 58, .6); }
.dialog form { padding: 24px; display: grid; gap: 8px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; } /* o form rola, o × fica fixo */
.dialog h2 { font-size: 22px; font-weight: 400; color: var(--navy); padding-right: 36px; }
.dialog__fechar { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mut); cursor: pointer; }
.dialog .opcoes { gap: 8px; }
.dialog .opcao { padding: 10px 14px; font-size: 15px; }
.dialog .campo { margin-top: 4px; }
.dialog form .btn--primario { margin-top: 8px; }

/* ===== < 640px ===== */
@media (max-width: 639.98px) {
}
/* ===== ≥ 640px ===== */
@media (min-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .secao { padding: 72px 0; }
  .cards2 { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 40px; }
  .rodape__grade { grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: start; text-align: left; }
  .rodape__creditos { text-align: center; }
  .rodape__social { justify-self: end; }
  .rodape__logo img { width: 160px; }
  .rodape { padding-top: 64px; }
}
/* ===== ≥ 960px ===== */
@media (min-width: 960px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 72px 0 64px; }
  .hero__texto { text-align: left; }
  .hero__logo { width: 320px; margin: 0 0 40px; }
  .hero__traco { margin: 0 0 24px; }
  .hero__sub { margin: 22px 0 32px; }
  .hero__cta-mobile, .hero__cta-apoio { display: none; }
  .hero__badges { justify-content: flex-start; gap: 20px 40px; }
  .hero__badges > div { flex: none; }
  .hero__badges b { font-size: 22px; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(34, 43, 58, .82) 0%, rgba(34, 43, 58, .7) 40%, rgba(34, 43, 58, .3) 62%, rgba(34, 43, 58, .35) 100%); }
  .hero__grid { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; width: min(100% - 80px, var(--container)); }
  .hero__texto { max-width: 560px; }
  .hero h1 { font-size: clamp(38px, 3.6vw, 50px); } /* 38px em 960, 50px a partir de ~1390 */
  .hero__box { padding: 36px 32px; }
  .secao { padding: 96px 0; }
  .secao__cabeca { margin-bottom: 48px; }
  .galeria__acoes { margin-top: 40px; }
  .galeria__grade { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sobre .container { grid-template-columns: 440px 1fr; gap: 64px; }
}
/* ===== ≥ 1200px ===== */
@media (min-width: 1200px) {
  .hero__logo { width: 400px; }
}
