/* Montanarini Advocacia, site institucional.
   Linguagem visual e componentes dinâmicos do Asimov Design System (Aura, Cadence Rain,
   botão com borda giratória, entrada com desfoque, cartões com brilho, acordeão do FAQ,
   header de vidro), com o acento verde trocado pelo azul. Tema único escuro, como o Asimov.
   A marca Montanarini entra só pelo logotipo oficial. */

:root {
  /* Acento azul, variante "AI Designer" do themes.js do Asimov */
  --ui-accent: #2563eb;
  --ui-accent-dark: #1d4ed8;
  --ui-accent-light: #60a5fa;
  --ui-accent-glow: #93c5fd;
  --ui-accent-rgb-space: 37 99 235;

  --fundo: #050505;
  --cartao-de: #0a0a0c;
  --cartao-ate: #12121a;
  --borda: rgb(255 255 255 / .08);
  --borda-forte: rgb(255 255 255 / .16);
  --titulo: #fafafa;
  --texto: #b4b4b4;
  --apagado: #8b8b95;
  --erro: #fca5a5;
  --sucesso: #93c5fd;
  --atencao: #fcd34d;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-faq: cubic-bezier(.23, 1, .32, 1);
  --largura: 1200px;
  --altura-header: 76px;
  color-scheme: dark;
}

/* 1. Base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--altura-header) + 24px); }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 950;
  background: #060610;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--titulo); font-weight: 500; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ui-accent-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--titulo); color: var(--fundo); padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.pular:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.contem {
  position: relative;
  max-width: var(--largura);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .contem { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* Fundo Aura fixo da página (aurora.css do Asimov). O ::before já pinta o fallback em azul. */
.aura-background { z-index: 0; }
.pagina { position: relative; z-index: 10; }

.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.prata {
  --grad: linear-gradient(to bottom, #fff, #e5e5e5 50%, #a3a3a3);
  background-image: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.azul-claro {
  --grad: linear-gradient(to bottom, #dbeafe, var(--ui-accent-glow) 45%, var(--ui-accent-light));
  background-image: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--ui-accent-light) 35%, transparent));
}
.azul {
  background-image: linear-gradient(to bottom, var(--ui-accent-glow), var(--ui-accent-light) 55%, var(--ui-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 2. Header de vidro (cadence-header) */
.header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 900;
  background: rgb(6 6 16 / .75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--ui-accent) 10%, transparent);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.header.rolou { background: rgb(6 6 16 / .9); border-bottom-color: color-mix(in srgb, var(--ui-accent) 22%, transparent); }
.header__barra { display: flex; align-items: center; gap: 24px; height: var(--altura-header); }
.header__logo { flex: none; display: block; }
.header__logo img { width: 480px; height: auto; }
@media (max-width: 1240px) { .header__logo img { width: 400px; } }
@media (max-width: 1100px) { .header__logo img { width: min(calc(100vw - 88px), 420px); } }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a {
  font-size: calc(.875rem + 1px); font-weight: 500; text-decoration: none;
  color: rgb(255 255 255 / .72); transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--ui-accent-light); text-underline-offset: 8px; text-decoration-thickness: 1px; }
.header__acoes { display: flex; align-items: center; gap: 10px; }
.icone-botao {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: rgb(255 255 255 / .04); color: #fff;
  border: 1px solid var(--borda-forte); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icone-botao:hover { border-color: color-mix(in srgb, var(--ui-accent-light) 60%, transparent); background: rgb(255 255 255 / .08); }
.icone-botao svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }
  .botao-glow.header__cta { display: none; }
  .header__acoes { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgb(6 6 16 / .97); border-bottom: 1px solid var(--borda);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav[data-aberto="false"] { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--borda); }
}
@media (min-width: 1101px) { .nav[data-aberto] { display: block; } }

/* 3. Botão glow (borda cônica giratória) */
.botao-glow {
  position: relative; isolation: isolate; display: inline-flex; overflow: hidden;
  border-radius: 999px; text-decoration: none; cursor: pointer; border: 0; padding: 0; font: inherit;
  background: linear-gradient(to bottom, rgb(255 255 255 / .2), rgb(255 255 255 / 0) 50%, rgb(255 255 255 / .05));
  transition: transform .3s var(--ease);
}
.botao-glow:hover { transform: scale(1.04); }
.botao-glow__borda { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.botao-glow__giro {
  position: absolute; width: 300%; height: 300%; inset: -100%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 80deg, color-mix(in srgb, var(--ui-accent-glow) 80%, transparent) 180deg, transparent 280deg, transparent 360deg);
  animation: giro 3s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }
.botao-glow__miolo { position: absolute; inset: 1px; border-radius: inherit; background: rgb(10 10 10 / .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); z-index: 0; }
.botao-glow__linha { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.botao-glow__icone {
  width: 28px; height: 28px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(to bottom, var(--ui-accent-light), var(--ui-accent-dark));
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--ui-accent-glow) 30%, transparent);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--ui-accent-glow) 30%, transparent), inset 0 0 0 1px rgb(255 255 255 / .2);
  transition: transform .3s var(--ease);
}
.botao-glow:hover .botao-glow__icone { transform: scale(1.1); }
.botao-glow__icone svg { width: 15px; height: 15px; }
.botao-glow__seta { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: rgb(255 255 255 / .1); transition: transform .3s var(--ease); }
.botao-glow:hover .botao-glow__seta { transform: translateX(2px); }
.botao-glow__seta svg { width: 14px; height: 14px; }
.botao-glow--sm .botao-glow__linha { padding: 6px 14px 6px 8px; font-size: 14px; gap: 8px; }
.botao-glow--sm .botao-glow__icone { width: 24px; height: 24px; }

.botao-fantasma {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--borda-forte); background: rgb(255 255 255 / .03);
  color: #fff; text-decoration: none; font-weight: 500; letter-spacing: -.01em;
  transition: border-color .2s, background-color .2s;
}
.botao-fantasma:hover { border-color: color-mix(in srgb, var(--ui-accent-light) 55%, transparent); background: rgb(255 255 255 / .07); }

/* 4. Hero */
.hero { padding-block: calc(var(--altura-header) + clamp(72px, 12vw, 148px)) clamp(64px, 9vw, 112px); text-align: center; }
.hero__copia { display: grid; justify-items: center; gap: 22px; }
.selo {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ui-accent) 30%, transparent);
  background: color-mix(in srgb, var(--ui-accent) 10%, transparent);
  color: var(--ui-accent-glow); font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.selo i { width: 8px; height: 8px; border-radius: 999px; background: var(--ui-accent-light); box-shadow: 0 0 12px var(--ui-accent-light); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: .98; letter-spacing: -.045em; max-width: 16ch; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; }
.hero__sub { max-width: 38rem; font-size: 1.125rem; line-height: 1.6; color: var(--texto); }
.hero__acoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
/* 5. Seções */
.secao { padding-block: clamp(72px, 10vw, 120px); }
.secao__topo { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.secao__topo--centro { justify-items: center; text-align: center; }
.titulo-secao { font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.06; letter-spacing: -.035em; }
/* Mesmo tratamento da palavra Multidisciplinar. O padding evita cortar acento e cedilha no recorte do degradê. */
.titulo-secao--serif { font-size: clamp(2.6rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; padding-block: .1em; padding-right: .1em; justify-self: start; }
.rotulo { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ui-accent-light); }

/* Cartões com brilho (formation-card) */
.cartoes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.cartao {
  --card-accent: var(--ui-accent);
  position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start;
  padding: 32px 28px 26px; border-radius: 24px;
  border: 1px solid var(--borda);
  background: linear-gradient(135deg, var(--cartao-de) 0%, var(--cartao-ate) 100%);
  box-shadow: 0 20px 40px rgb(0 0 0 / .55), inset 0 1px rgb(255 255 255 / .04);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.cartao:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--card-accent) 34%, transparent);
  box-shadow: 0 24px 50px rgb(0 0 0 / .6), 0 0 34px -16px color-mix(in srgb, var(--ui-accent-glow) 60%, transparent);
}
/* Três cartões das áreas com a mesma altura e as linhas internas alinhadas */
.cartoes--areas { align-items: stretch; }
.cartoes--areas .cartao { align-content: stretch; }
@media (min-width: 1000px) {
  .cartoes--areas { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  .cartoes--areas .cartao { grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; }
}
.cartoes--areas .faq-trigger { align-self: end; }
.cartao__icone { justify-self: start; }
.cartao__foto { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--borda); }
.cartao__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cartao:hover .cartao__foto img { transform: scale(1.05); }
.cartao__brilho { position: absolute; top: 0; left: 0; width: 100%; height: 260px; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--card-accent) 26%, transparent), transparent 70%); pointer-events: none; }
.cartao > *:not(.cartao__brilho) { position: relative; }
.cartao__icone {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--ui-accent-light) 30%, transparent);
  background: color-mix(in srgb, var(--ui-accent) 14%, transparent); color: var(--ui-accent-glow);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.cartao:hover .cartao__icone { background: var(--ui-accent); color: #050505; border-color: transparent; box-shadow: 0 0 22px color-mix(in srgb, var(--ui-accent-glow) 55%, transparent); }
.cartao__icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cartao h3 { font-size: 1.5rem; line-height: 1.2; transition: color .45s var(--ease); }
.cartao:hover h3 { color: var(--ui-accent-glow); }
.cartao p { color: var(--texto); font-size: 15.5px; line-height: 1.6; }

/* Acordeão (faq-item) dentro do cartão */
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; margin-top: 6px; padding: 14px 0 2px; border: 0; border-top: 1px solid var(--borda);
  background: none; color: var(--titulo); font: 500 15px/1.4 var(--font-sans); cursor: pointer; text-align: left;
}
.faq-icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .1);
  transition: transform .35s var(--ease-faq), background-color .35s, border-color .35s;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: color-mix(in srgb, var(--ui-accent) 18%, transparent); border-color: color-mix(in srgb, var(--ui-accent) 40%, transparent); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-faq); }
.faq-body[data-aberto="true"] { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.escopo__intro { padding-top: 12px; }
.escopo { display: grid; padding-top: 10px; }
.escopo li { position: relative; padding: 8px 0 8px 20px; font-size: 14.5px; line-height: 1.5; color: var(--texto); border-bottom: 1px solid rgb(255 255 255 / .05); }
.escopo li:last-child { border-bottom: 0; }
.escopo li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 999px; background: var(--ui-accent-light); box-shadow: 0 0 8px var(--ui-accent); }

/* Formação */
.formacao { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.formacao .cartao { padding: 28px; }
.formacao h3 { font-size: 1.3rem; }
.pilula { justify-self: start; display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ui-accent-glow); border: 1px solid color-mix(in srgb, var(--ui-accent) 35%, transparent); background: color-mix(in srgb, var(--ui-accent) 12%, transparent); }

/* Comissões */
.cartoes.comissoes { align-items: stretch; }
@media (min-width: 1000px) { .cartoes.comissoes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.comissoes .cartao { padding: 28px; }
.comissoes h3 { font-size: 1.25rem; line-height: 1.3; }

/* 6. Contato, com o fundo Cadence Rain do Asimov */
.secao--contato {
  position: relative; overflow: hidden; border-top: 1px solid var(--borda);
  --cadence-rain-accent-glow: .32;
  --cadence-rain-star-opacity: .95;
  --cadence-rain-shader-intensity: 1.35;
  --cadence-rain-orb-1-opacity: .22;
  --cadence-rain-orb-2-opacity: .18;
  --cadence-rain-orb-3-opacity: .2;
}
.secao--contato .cadence-rain-bg { position: absolute; z-index: 0; }
/* Grade de pontos e feixe de luz, por cima da chuva */
.secao--contato::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.secao--contato::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -30%; left: 50%; width: 140%; height: 70%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 150deg, color-mix(in srgb, var(--ui-accent) 22%, transparent) 180deg, transparent 210deg);
  filter: blur(30px);
  animation: feixe 9s ease-in-out infinite alternate;
}
@keyframes feixe { from { transform: translateX(-54%) rotate(-4deg); } to { transform: translateX(-46%) rotate(4deg); } }
.secao--contato > .contem { z-index: 2; }
.secao--contato .secao__topo { gap: 18px; }

.botao-zap {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px 0 18px;
  border-radius: 999px; background: #25d366; color: #052e16; text-decoration: none;
  font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 10px 30px -8px rgb(37 211 102 / .55), inset 0 1px rgb(255 255 255 / .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.botao-zap:hover { transform: translateY(-2px) scale(1.03); background: #2ee374; box-shadow: 0 16px 40px -8px rgb(37 211 102 / .7), inset 0 1px rgb(255 255 255 / .35); }
.botao-zap svg { width: 22px; height: 22px; fill: currentColor; }

.contato {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "foto form" "dados dados";
  align-items: stretch;
}
.retrato { grid-area: foto; }
.contato .form { grid-area: form; }
.contato .dados { grid-area: dados; }
@media (min-width: 901px) {
  .contato .dados { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
}
@media (max-width: 900px) {
  .contato { grid-template-columns: 1fr; grid-template-areas: "foto" "form" "dados"; }
  .retrato { max-width: 420px; width: 100%; justify-self: center; }
}

/* Retrato com moldura de borda giratória, reflexo e inclinação ao mover o mouse */
.retrato { margin: 0; perspective: 1000px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.retrato__foto img { pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
@media print { .retrato__foto img { visibility: hidden; } }
.retrato__moldura {
  position: relative; height: 100%; min-height: 420px; border-radius: 28px; overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  box-shadow: 0 30px 60px rgb(0 0 0 / .6), 0 0 60px -20px color-mix(in srgb, var(--ui-accent) 70%, transparent);
}
.retrato__giro {
  position: absolute; width: 300%; height: 300%; inset: -100%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 70deg, var(--ui-accent-glow) 160deg, var(--ui-accent) 200deg, transparent 290deg);
  animation: giro 5s linear infinite;
}
.retrato__foto { position: absolute; inset: 2px; z-index: 1; border-radius: 26px; overflow: hidden; background: #0a0a0c; }
.retrato__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); filter: brightness(.74) contrast(1.06) saturate(.92); transition: opacity 1.4s ease-in-out, transform 1.2s var(--ease); }
.retrato__foto img.ativa { opacity: 1; }
.retrato__slide--1 { object-position: 50% 18%; }
.retrato__slide--2 { object-position: 50% 0%; }
.retrato__slide--3 { object-position: 50% 10%; }
.retrato:hover .retrato__foto img { transform: scale(1.06); }
.retrato__foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(5 5 5 / .95) 0%, rgb(5 5 5 / .5) 30%, rgb(5 5 5 / .12) 60%, rgb(5 5 5 / .3) 100%),
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 40%, rgb(5 5 5 / .45) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--ui-accent) 22%, transparent), transparent 45%);
}
.retrato__reflexo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 30%) var(--my, 20%), rgb(255 255 255 / .14), transparent 45%);
  mix-blend-mode: soft-light;
}
.retrato__legenda {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px;
  background: rgb(10 10 14 / .55); border: 1px solid rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.retrato__legenda strong { color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.retrato__legenda span { color: var(--ui-accent-glow); font-size: 13.5px; }

@media (max-width: 900px) {
  .retrato__moldura { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* Luz que acompanha o cursor nos painéis */
.efeito-luz { position: relative; overflow: hidden; }
.efeito-luz::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ui-accent) 16%, transparent), transparent 42%);
  transition: opacity .4s;
}
.efeito-luz:hover::before { opacity: 1; }
.efeito-luz > * { position: relative; z-index: 1; }

/* Formulário com a borda giratória do botão glow */
.painel--giro { border-color: transparent; background-clip: padding-box; }
.painel--giro > .painel__giro {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.painel--giro > .painel__giro::before {
  content: ""; position: absolute; width: 300%; height: 300%; left: -100%; top: -100%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 90deg, color-mix(in srgb, var(--ui-accent-glow) 85%, transparent) 180deg, transparent 270deg);
  animation: giro 6s linear infinite;
}
.painel {
  border: 1px solid var(--borda); border-radius: 24px;
  background: linear-gradient(135deg, rgb(1 16 40 / .45) 0%, rgb(0 0 0 / .6) 50%, rgb(0 6 31 / .45) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 32px;
}
@media (max-width: 480px) { .painel { padding: 24px 18px; } }
.dados { display: grid; gap: 26px; }
.dado { display: grid; gap: 6px; min-width: 0; }
.dado address { font-style: normal; color: var(--titulo); line-height: 1.55; }
/* Rótulo em cima, número ou e-mail embaixo, Copiar ao lado. Nada passa da coluna. */
.dado__linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; color: var(--texto); }
.dado__linha + .dado__linha { margin-top: 8px; }
.dado__linha > span:first-child { grid-column: 1 / -1; font-size: 13px; color: var(--apagado); }
.dado__linha a { min-width: 0; color: var(--titulo); font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dado__linha a:hover { color: var(--ui-accent-glow); }
.copiar { background: none; border: 0; padding: 2px 0; cursor: pointer; font: 500 13px/1.4 var(--font-sans); color: var(--apagado); text-decoration: underline; text-underline-offset: 3px; }
.copiar:hover { color: var(--ui-accent-glow); }
.link-mapa { color: var(--ui-accent-light); font-size: 14.5px; text-underline-offset: 4px; }
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.redes a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--borda-forte); background: rgb(255 255 255 / .03);
  color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.redes a:hover { border-color: color-mix(in srgb, var(--ui-accent-light) 60%, transparent); background: color-mix(in srgb, var(--ui-accent) 14%, transparent); box-shadow: 0 0 20px -6px color-mix(in srgb, var(--ui-accent) 60%, transparent); }
.redes a { padding: 0 16px 0 6px; }
.rede__icone { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px; }
.rede__icone svg { width: 17px; height: 17px; }
.rede--instagram .rede__icone { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rede--tiktok .rede__icone { background: #010101; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.rede--linkedin .rede__icone { background: #0a66c2; }
.rede--linkedin .rede__icone svg { width: 18px; height: 18px; }
.rede--github .rede__icone { background: #24292f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.rede--instagram:hover { border-color: #d6249f; box-shadow: 0 0 22px -6px #d6249f; background: rgb(214 36 159 / .12); }
.rede--tiktok:hover { border-color: #25f4ee; box-shadow: 0 0 22px -6px #fe2c55; background: rgb(37 244 238 / .08); }
.rede--linkedin:hover { border-color: #0a66c2; box-shadow: 0 0 22px -6px #0a66c2; background: rgb(10 102 194 / .16); }
.rede--github:hover { border-color: #8b949e; box-shadow: 0 0 22px -6px #8b949e; background: rgb(139 148 158 / .12); }

.form { display: grid; gap: 20px; }
.form__dupla { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label { color: var(--titulo); font-weight: 500; font-size: 14.5px; }
.campo input, .campo textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px;
  font: 400 16px/1.5 var(--font-sans); color: #fff;
  background: rgb(255 255 255 / .04); border: 1px solid var(--borda-forte); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.campo input::placeholder { color: #6b6b75; }
.campo textarea { min-height: 128px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--ui-accent-light); background: rgb(255 255 255 / .06); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 30%, transparent); }
.campo[data-erro="true"] input, .campo[data-erro="true"] textarea { border-color: var(--erro); }
.campo__ajuda { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--apagado); }
.campo__erro { font-size: 13.5px; line-height: 1.4; color: var(--erro); }
.ciencia { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.55; color: var(--texto); }
.ciencia input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ui-accent); }
.ciencia a { color: var(--ui-accent-glow); font-weight: 500; text-underline-offset: 3px; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__rodape p { font-size: 13.5px; color: var(--apagado); }
.alerta { padding: 12px 16px; border-radius: 12px; border: 1px solid currentColor; font-size: 14.5px; line-height: 1.5; background: rgb(255 255 255 / .03); }
.alerta--sucesso { color: var(--sucesso); }
.alerta--atencao { color: var(--atencao); }
.alerta--erro { color: var(--erro); }
.alerta strong { font-weight: 600; }
.botao-glow[aria-busy="true"] { opacity: .7; cursor: progress; }

/* 7. Rodapé (site-footer) */
.rodape {
  position: relative; z-index: 10; overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / .06);
  background: linear-gradient(rgb(5 5 5 / .92), rgb(3 3 3 / .98));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-block: 56px 32px; color: #a1a1aa;
}
.rodape__grade { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.25fr) auto; }
@media (max-width: 1024px) { .rodape__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rodape__grade { grid-template-columns: 1fr; } }
.rodape__marca { display: grid; gap: 16px; align-content: start; }
.rodape__marca img { width: 266px; max-width: 100%; height: auto; }
.rodape__qr a { display: inline-block; border-radius: 10px; transition: box-shadow .2s; }
.rodape__qr a:hover { box-shadow: 0 0 0 2px var(--ui-accent-glow); }
.rodape__qr img { display: block; width: 132px; height: 132px; border-radius: 10px; }
.rodape__marca p { font-size: 14px; line-height: 1.6; max-width: 32ch; }
.rodape h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #f3f4f6; margin-bottom: 14px; }
.rodape ul { display: grid; gap: 9px; }
.rodape a { text-decoration: none; transition: color .2s; }
.rodape a:hover { color: var(--ui-accent-glow); }
.rodape address { font-style: normal; line-height: 1.6; }
.rodape__col { font-size: 14px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.aviso-golpe {
  margin-top: 44px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 24px;
  border: 1px solid rgb(252 211 77 / .32); border-radius: 18px; background: rgb(252 211 77 / .06);
}
.aviso-golpe__icone { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--atencao); background: rgb(252 211 77 / .12); }
.aviso-golpe__icone svg { width: 24px; height: 24px; }
.aviso-golpe__texto { display: grid; gap: 8px; min-width: 0; font-size: 14.5px; line-height: 1.6; color: #d4d4d8; }
.rodape .aviso-golpe h2 { margin: 0; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; color: var(--atencao); }
.aviso-golpe a { color: #fff; font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.aviso-golpe a:hover { color: var(--atencao); }
@media (max-width: 480px) {
  .aviso-golpe { grid-template-columns: 1fr; padding: 18px; }
  .aviso-golpe a { white-space: normal; overflow-wrap: anywhere; }
}
.rodape__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .06); display: grid; gap: 6px; font-size: 12.5px; line-height: 1.6; color: #71717a; }
.rodape__legal button { background: none; border: 0; padding: 0; font: inherit; color: #a1a1aa; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rodape__legal button:hover { color: var(--ui-accent-glow); }

/* 8. Botão fixo de WhatsApp, verde padrão, com pulso */
.whatsapp {
  position: fixed; z-index: 920;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; border-radius: 999px; text-decoration: none;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 34px -6px rgb(37 211 102 / .6), 0 6px 16px rgb(0 0 0 / .45), inset 0 1px rgb(255 255 255 / .35);
  transition: transform .3s var(--ease), background-color .2s;
}
.whatsapp:hover { transform: translateY(-3px) scale(1.04); background: #2ee374; }
.whatsapp:focus-visible { outline-color: #25d366; }
.whatsapp__linha { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 22px 10px 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.whatsapp__icone { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgb(255 255 255 / .18); }
.whatsapp__icone svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp__pulso {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  border: 2px solid #25d366; animation: pulso 2.4s var(--ease) infinite;
}
.whatsapp__pulso--2 { animation-delay: 1.2s; }
@keyframes pulso { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35, 1.6); opacity: 0; } }
@media (max-width: 600px) {
  .whatsapp__linha { padding: 8px; }
  .whatsapp__icone { width: 48px; height: 48px; background: none; }
  .whatsapp__icone svg { width: 32px; height: 32px; }
  .whatsapp__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @keyframes pulso { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
}

/* 9. Política de privacidade (diálogo, mesma entrada do modal do Asimov) */
.politica {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 1px solid var(--borda-forte); border-radius: 24px;
  background: linear-gradient(135deg, #0a0a0c, #12121a); color: var(--texto);
  box-shadow: 0 30px 80px rgb(0 0 0 / .7);
}
.politica[open] { animation: entra .35s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.politica::backdrop { background: rgb(0 0 0 / .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.politica__topo { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; background: #0c0c10; border-bottom: 1px solid var(--borda); }
.politica__topo h2 { font-size: 1.25rem; }
.politica__corpo { padding: 24px; display: grid; gap: 14px; font-size: 15.5px; line-height: 1.65; }
.politica__corpo h3 { font-size: 1.05rem; margin-top: 8px; }
.politica__corpo .nota { font-size: 13px; color: var(--apagado); }

/* 10. Animações de entrada (fadeSlideIn e animate-on-scroll do Asimov) */
@keyframes fadeSlideIn {
  0% { opacity: 0; filter: blur(8px); transform: translateY(30px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.entra { animation: fadeSlideIn 1s cubic-bezier(.2, .8, .2, 1) both; }
.atraso-1 { animation-delay: .2s; }
.atraso-2 { animation-delay: .35s; }
.atraso-3 { animation-delay: .42s; }
.atraso-4 { animation-delay: .55s; }
.revelar.aguarda { opacity: 0; }

/* 10.1. Título da abertura em chuva (js/site.js, 1.3). Cada letra entra vinda do alto à
   esquerda, na diagonal de cerca de 25 graus dos riscos azuis da Aura, esticada no sentido
   do movimento e com brilho azul que se apaga ao pousar. A folga em volta da letra evita
   cortar a inclinação do itálico e as hastes. */
/* Ajuste fino: --chuva-duracao é o tempo de queda de cada letra, --chuva-passo é o
   intervalo entre uma letra e a seguinte, --chuva-distancia é o comprimento do percurso. */
.titulo-chuva { --chuva-duracao: 3.2s; --chuva-passo: .14s; --chuva-distancia: 3em; }
.titulo-chuva .prata, .titulo-chuva .azul-claro { background-image: none; white-space: nowrap; }
.titulo-chuva .letra {
  display: inline-block; padding: .18em .14em; margin: -.18em -.14em;
  background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chuva var(--chuva-duracao) cubic-bezier(.3, .55, .35, 1) both;
  animation-delay: calc(.3s + var(--i) * var(--chuva-passo));
}
/* A diagonal de 25 graus: o recuo vertical é 0,466 do horizontal (tangente de 25 graus). */
@keyframes chuva {
  0% { opacity: 0; transform: translate(calc(var(--chuva-distancia) * -1), calc(var(--chuva-distancia) * -.466)) rotate(25deg) scaleX(2.4) rotate(-25deg); filter: blur(5px) drop-shadow(0 0 10px var(--ui-accent-light)); }
  20% { opacity: .9; }
  70% { opacity: 1; filter: blur(0) drop-shadow(0 0 14px var(--ui-accent-light)); }
  100% { opacity: 1; transform: translate(0, 0) rotate(25deg) scaleX(1) rotate(-25deg); filter: blur(0) drop-shadow(0 0 0 transparent); }
}
.titulo-chuva ~ .hero__sub { animation-delay: 1.4s; }
.titulo-chuva ~ .hero__acoes { animation-delay: 1.6s; }
.revelar.visto { animation: fadeSlideIn 1s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entra, .revelar.visto, .politica[open], .titulo-chuva .letra { animation: none; }
  .revelar.aguarda { opacity: 1; }
  .botao-glow__giro, .retrato__giro, .painel--giro > .painel__giro::before, .whatsapp__pulso, .secao--contato::after { animation: none; }
  .retrato__moldura { transform: none; }
  .cartao, .cartao:hover { transition: none; transform: none; }
}
