/* =========================================================
   Dr. Marcelo Batista — Site institucional
   v3 — fluida + responsiva + cross-browser
   Testada para: Chrome, Edge, Firefox, Safari, Opera, Brave
   Telas: celular, tablet, notebook, desktop e ultrawide
   ========================================================= */

:root {
  --verde-escuro: #1c2b1f;
  --verde-escuro-2: #253a29;
  --verde-pill: #33502f;        /* verde um pouco mais claro (botões-pílula) */
  --verde-pill-hover: #3d6038;
  --bege: #efe8d8;
  --bege-claro: #f7f4ea;
  --mostarda: #c9a227;
  --mostarda-hover: #b38f1f;
  --texto-escuro: #1c2b1f;
  --cinza-texto: #4a4a42;

  --fonte-titulo: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fonte-corpo: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 8px;
  --radius-grande: 18px;
  --header-h: 82px;
  --transicao: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  /* respiro lateral que cresce junto com a tela */
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 80px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-corpo);
  color: var(--texto-escuro);
  background: var(--verde-escuro);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(201,162,39,0.2);
}

img, svg, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p { overflow-wrap: break-word; }

section { padding: clamp(64px, 9vw, 128px) 0; }

/* =========================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================= */

[data-reveal] {
  opacity: 0;
  -webkit-transform: translate3d(0, 42px, 0);
  transform: translate3d(0, 42px, 0);
  -webkit-transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), -webkit-transform 0.9s cubic-bezier(0.22,1,0.36,1);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; -webkit-transform: none; transform: none; }

[data-reveal="fade"]  { -webkit-transform: none; transform: none; }
[data-reveal="left"]  { -webkit-transform: translate3d(-42px,0,0); transform: translate3d(-42px,0,0); }
[data-reveal="right"] { -webkit-transform: translate3d(42px,0,0);  transform: translate3d(42px,0,0); }
[data-reveal="scale"] { -webkit-transform: scale(0.94); transform: scale(0.94); }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; -webkit-transform: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* título em linhas mascaradas */
.linha-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.linha-mask > span {
  display: block;
  -webkit-transform: translate3d(0,105%,0);
  transform: translate3d(0,105%,0);
  -webkit-transition: -webkit-transform 1.1s cubic-bezier(0.22,1,0.36,1);
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1);
}
body.carregado .linha-mask > span { -webkit-transform: none; transform: none; }
body.carregado .linha-mask:nth-child(2) > span { transition-delay: 0.12s; }
body.carregado .linha-mask:nth-child(3) > span { transition-delay: 0.24s; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  -webkit-transition: background var(--transicao), box-shadow var(--transicao);
  transition: background var(--transicao), box-shadow var(--transicao);
}

.site-header.solido,
.site-header.sempre-solido {
  background: rgba(28,43,31,0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
/* fallback: navegadores sem backdrop-filter recebem fundo sólido */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.solido, .site-header.sempre-solido { background: #1c2b1f; }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --- Logo (cresce em telas pequenas) --- */
.brand { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.brand-logo {
  height: 46px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 900px)  { .brand-logo { height: 50px; } }
@media (max-width: 560px)  { .brand-logo { height: 46px; } }
@media (max-width: 400px)  { .brand-logo { height: 40px; } }

.brand-fallback { display: flex; align-items: center; gap: 10px; color: var(--bege); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--mostarda);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fonte-titulo);
  font-weight: 700; color: var(--mostarda); font-size: 0.95rem;
  flex-shrink: 0;
}
.brand-text { font-family: var(--fonte-titulo); font-size: 1.1rem; line-height: 1.1; }
.brand-text small {
  display: block; font-family: var(--fonte-corpo); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 2px;
}

/* agrupa nav + idiomas + botão do menu */
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }

/* --- Seletor de idioma --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid rgba(239,232,216,0.25);
  border-radius: 999px;
}
.lang-switch a {
  display: block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(239,232,216,0.72);
  transition: background var(--transicao), color var(--transicao);
}
.lang-switch a:hover { color: var(--bege); background: rgba(239,232,216,0.12); }
.lang-switch a.ativo { background: var(--mostarda); color: var(--verde-escuro); }

@media (max-width: 420px) {
  .lang-switch a { padding: 5px 7px; font-size: 0.68rem; }
}

.main-nav a:not(.btn) {
  color: var(--bege);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color var(--transicao);
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--mostarda);
  transition: width var(--transicao);
}
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--mostarda); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px; flex-shrink: 0;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--bege); display: block;
  transition: var(--transicao);
}
.nav-toggle.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.aberto span:nth-child(2) { opacity: 0; }
.nav-toggle.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  transition: all var(--transicao);
}

.btn-primary { background: var(--mostarda); color: var(--verde-escuro); }
.btn-primary:hover { background: var(--bege); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: rgba(239,232,216,0.55); color: var(--bege); }
.btn-outline:hover { background: var(--bege); color: var(--verde-escuro); border-color: var(--bege); }

.btn-outline-dark { background: transparent; border-color: var(--verde-escuro); color: var(--verde-escuro); }
.btn-outline-dark:hover { background: var(--verde-escuro); color: var(--bege); }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.28);
  font-weight: 600; font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transicao), transform var(--transicao);
}
.whatsapp-float.visivel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 640px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 16px; bottom: 18px; right: 18px; }
}

/* =========================================================
   HERO FIXO
   ========================================================= */

.hero {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;         /* fallback */
  height: 100svh;        /* iOS/Safari moderno */
  min-height: 520px;
  z-index: 0;
  overflow: hidden;
  padding: 10px 10px 0;
  background: var(--verde-escuro);
}

.hero-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-grande);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: var(--bege);
}

.hero-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90,120,60,0.35) 0%, rgba(90,120,60,0) 55%),
    linear-gradient(140deg, #33461f 0%, #22331d 45%, #16201a 100%);
  background-size: cover;
  background-position: center;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}
.hero-media video, .hero-media img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(10,16,11,0.45) 0%, rgba(10,16,11,0.15) 42%, rgba(10,16,11,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 0 var(--gutter) clamp(120px, 16vh, 190px);
  will-change: transform, opacity;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(0.66rem, 1.5vw, 0.78rem);
  color: var(--mostarda);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--mostarda); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.92;
  margin: 0 auto;
  max-width: 56ch;
  font-weight: 300;
}

/* --- indicador de rolagem (bem visível) --- */
.scroll-cue {
  position: absolute;
  bottom: clamp(26px, 5vh, 44px);
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bege);
  cursor: pointer;
  transition: opacity var(--transicao);
}
.scroll-cue:hover { opacity: 0.75; }
.scroll-cue .texto {
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}
.scroll-cue .circulo {
  width: clamp(46px, 6vw, 58px);
  height: clamp(46px, 6vw, 58px);
  border-radius: 50%;
  border: 1.5px solid rgba(239,232,216,0.55);
  display: flex; align-items: center; justify-content: center;
  animation: pulsar 2.2s ease-in-out infinite;
}
.scroll-cue .circulo svg {
  width: 22px; height: 22px;
  animation: setaDesce 2.2s ease-in-out infinite;
}
@keyframes pulsar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,232,216,0.28); }
  50%      { box-shadow: 0 0 0 14px rgba(239,232,216,0); }
}
@keyframes setaDesce {
  0%, 100% { transform: translateY(-3px); opacity: 0.7; }
  50%      { transform: translateY(3px);  opacity: 1; }
}

/* =========================================================
   CONTEÚDO QUE PASSA POR CIMA DO HERO
   ========================================================= */

.site-content {
  position: relative;
  z-index: 2;
  background: var(--bege-claro);
  border-radius: var(--radius-grande) var(--radius-grande) 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.35);
}

/* =========================================================
   APRESENTAÇÃO — foto de corpo inteiro à esquerda
   ========================================================= */

.apresentacao {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.apresentacao-foto {
  width: 100%;
  aspect-ratio: 2 / 3;              /* retrato de corpo inteiro */
  border-radius: var(--radius-grande);
  background: linear-gradient(160deg, var(--verde-escuro-2), var(--verde-escuro));
  display: flex; align-items: center; justify-content: center;
  color: rgba(239,232,216,0.55);
  font-size: 0.82rem; text-align: center; padding: 20px;
  overflow: hidden;
  position: relative;
}
/* fallback p/ navegadores sem aspect-ratio */
@supports not (aspect-ratio: 2 / 3) {
  .apresentacao-foto { height: 0; padding-bottom: 150%; }
}
.apresentacao-foto img {
  width: 100%; height: 100%;
  -o-object-fit: cover; object-fit: cover;
  object-position: center top;
}

.kicker {
  color: var(--mostarda-hover);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.66rem, 1.4vw, 0.74rem);
  margin-bottom: 16px;
}

.apresentacao-texto h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.45rem);
  margin-bottom: 22px;
}
.apresentacao-texto p {
  color: var(--cinza-texto);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 60ch;
}

@media (max-width: 900px) {
  .apresentacao { grid-template-columns: 1fr; gap: 40px; }
  .apresentacao-foto { max-width: 340px; margin: 0 auto; }
  .apresentacao-texto { text-align: center; }
  .apresentacao-texto p { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   ESTATÍSTICAS — 5 na linha (telas grandes) / 3 + 2 centralizado
   ========================================================= */

.stats {
  background: var(--verde-escuro);
  color: var(--bege);
  padding: clamp(76px, 11vw, 148px) 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(34px, 5vw, 52px) clamp(20px, 3vw, 34px);
}
.stats-grid > div {
  flex: 0 1 calc(33.333% - 34px);   /* padrão: 3 por linha, sobra 2 centralizadas */
  min-width: 140px;
  max-width: 300px;
  text-align: center;
}
@media (min-width: 1150px) {
  .stats-grid > div { flex-basis: calc(20% - 34px); }  /* 5 numa linha só */
}
@media (max-width: 640px) {
  .stats-grid > div { flex-basis: calc(50% - 20px); }  /* 2 por linha */
}
@media (max-width: 380px) {
  .stats-grid > div { flex-basis: 100%; }
}

.stat-num {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--mostarda);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  opacity: 0.84;
  max-width: 20ch;
  margin: 0 auto;
}

/* =========================================================
   ACESSOS RÁPIDOS — botões-pílula centralizados
   ========================================================= */

.acessos { background: var(--bege); }

.acessos-head { text-align: center; max-width: 640px; margin: 0 auto clamp(38px, 5vw, 58px); }
.acessos-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.acessos-head p { color: var(--cinza-texto); }

.acessos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 18px);
}

.acesso-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-pill);
  color: var(--mostarda);
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  letter-spacing: 0.02em;
  padding: clamp(16px, 2.2vw, 21px) clamp(30px, 4.5vw, 52px);
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background var(--transicao), color var(--transicao),
              transform var(--transicao), box-shadow var(--transicao);
}
.acesso-pill:hover, .acesso-pill:focus-visible {
  background: var(--mostarda);
  color: var(--verde-escuro);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,43,31,0.22);
}

@media (max-width: 420px) {
  .acesso-pill { flex: 1 1 100%; }
}

/* =========================================================
   CTA / CONTATO RESUMIDO
   ========================================================= */

.contato-resumo { background: var(--verde-escuro-2); color: var(--bege); }

.contato-resumo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.contato-resumo h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.contato-resumo p { opacity: 0.88; margin-bottom: 30px; max-width: 48ch; }

.contato-info-list { display: flex; flex-direction: column; gap: 22px; }
.contato-info-list div { font-size: clamp(0.92rem, 1.5vw, 1rem); }
.contato-info-list strong {
  color: var(--mostarda);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .contato-resumo-grid { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .contato-resumo p { margin-left: auto; margin-right: auto; }
  .contato-info-list { align-items: center; }
}

/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */

.page-hero {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 58vh;
  min-height: 320px;
  max-height: 560px;
  z-index: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--bege);
  padding: var(--header-h) var(--gutter) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(90,120,60,0.28) 0%, rgba(90,120,60,0) 60%),
    linear-gradient(150deg, #2c3d24 0%, #1c2b1f 60%, #16201a 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 500; }
.page-hero p {
  margin: 16px auto 0;
  opacity: 0.85; max-width: 54ch; font-weight: 300;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
}
.page-hero .kicker { color: var(--mostarda); }

/* =========================================================
   SUB-NAV DO CURRÍCULO
   ========================================================= */

.subnav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-h);
  z-index: 400;
  background: rgba(247,244,234,0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,43,31,0.1);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .subnav { background: #f7f4ea; }
}

.subnav-inner {
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.subnav-inner::-webkit-scrollbar { display: none; }

/* centraliza quando cabe; rola a partir do início quando não cabe */
.subnav-lista {
  display: flex;
  gap: 8px;
  width: -webkit-max-content;
  width: max-content;
  margin: 0 auto;
}

.subnav a {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: clamp(0.8rem, 1.5vw, 0.88rem);
  font-weight: 600;
  color: var(--verde-escuro);
  border: 1.5px solid rgba(28,43,31,0.16);
  transition: all var(--transicao);
  flex-shrink: 0;
}
.subnav a:hover, .subnav a.active {
  background: var(--verde-escuro);
  color: var(--bege);
  border-color: var(--verde-escuro);
}

/* =========================================================
   SEÇÕES DO CURRÍCULO
   ========================================================= */

.curriculo-section { border-top: 1px solid rgba(28,43,31,0.08); padding: clamp(60px, 8vw, 104px) 0; }
.curriculo-section:first-of-type { border-top: none; }

.section-head { margin-bottom: clamp(30px, 4vw, 46px); }
.section-head .num {
  color: var(--mostarda-hover); font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
}
.section-head h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-top: 10px; }
.section-head p { color: var(--cinza-texto); margin-top: 12px; max-width: 64ch; }

.lista-artigos { display: flex; flex-direction: column; gap: 16px; }
.item-artigo {
  background: #fff;
  border: 1px solid rgba(28,43,31,0.07);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  align-items: flex-start;
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.item-artigo:hover { transform: translateX(6px); box-shadow: 0 10px 30px rgba(28,43,31,0.09); }
.item-artigo .ano {
  flex-shrink: 0; width: 62px;
  font-family: var(--fonte-titulo); font-weight: 700;
  color: var(--mostarda-hover); font-size: 1.12rem;
}
.item-artigo .titulo { font-weight: 600; margin-bottom: 5px; }
.item-artigo .meta { font-size: 0.85rem; color: var(--cinza-texto); }

.cv-cta { margin-top: clamp(26px, 4vw, 38px); text-align: center; }

.grid-2, .grid-3 {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* 3 colunas fixas — mantém 3 em cima e 3 embaixo (simétrico) */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .item-artigo { flex-direction: column; gap: 6px; }
  .item-artigo:hover { transform: none; }
}

.mini-card {
  background: var(--bege);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px) 26px;
  text-align: center;
}
.mini-card .stat-num { color: var(--mostarda-hover); }
.mini-card .stat-label { color: var(--cinza-texto); }

/* --- Orientações: uma embaixo da outra --- */
.orientacoes-lista { display: flex; flex-direction: column; gap: 14px; }

.orientacao-item {
  background: var(--bege);
  border-radius: var(--radius);
  padding: clamp(20px, 2.8vw, 28px) clamp(22px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.orientacao-item:hover { transform: translateX(6px); box-shadow: 0 10px 30px rgba(28,43,31,0.09); }
.orientacao-item .numero {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  font-weight: 600;
  color: var(--mostarda-hover);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.4ch;
  text-align: center;
}
.orientacao-item .descricao {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--cinza-texto);
  font-weight: 500;
}

@media (max-width: 480px) {
  .orientacao-item { flex-direction: column; text-align: center; gap: 8px; }
  .orientacao-item:hover { transform: none; }
}

/* subtítulo acima da lista de públicos */
.publico-titulo {
  margin-top: clamp(34px, 5vw, 50px);
  font-family: var(--fonte-titulo);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--verde-escuro);
}

.premio-card {
  background: #fff;
  border-left: 4px solid var(--mostarda);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}

.tema-card {
  background: #fff;
  border: 1px solid rgba(28,43,31,0.07);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.tema-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(28,43,31,0.1); }
.tema-card h3 { font-size: 1.04rem; margin-bottom: 10px; color: var(--verde-escuro); }
.tema-card p { font-size: 0.91rem; color: var(--cinza-texto); }

.publico-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.publico-lista span {
  background: var(--verde-escuro); color: var(--bege);
  padding: 9px 18px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}

/* =========================================================
   SOBRE
   ========================================================= */

.sobre-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(38px, 5.5vw, 76px);
  align-items: start;
}

.sobre-texto p {
  color: var(--cinza-texto);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.85;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  max-width: 68ch;
}
.sobre-texto p:last-child { margin-bottom: 0; }

/* primeiro parágrafo com mais presença */
.sobre-texto .lead {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.75;
  color: var(--texto-escuro);
  font-weight: 400;
}

/* destaques dentro do texto */
.sobre-texto strong {
  color: var(--verde-escuro);
  font-weight: 600;
}

@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 42px; }
  .sobre-grid .apresentacao-foto { max-width: 330px; margin: 0 auto; }
  .sobre-texto p { max-width: none; }
}

/* título de bloco dentro do Sobre */
.bloco-titulo {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--verde-escuro);
  margin-bottom: 6px;
}

.timeline { margin-top: 18px; border-top: 1px solid rgba(28,43,31,0.12); }
.timeline-wrap { margin-top: clamp(52px, 7vw, 84px); }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-bottom: 1px solid rgba(28,43,31,0.1);
  line-height: 1.7;
}
.timeline-item .periodo { font-weight: 700; color: var(--mostarda-hover); font-family: var(--fonte-titulo); }

@media (max-width: 600px) { .timeline-item { grid-template-columns: 1fr; gap: 4px; } }

/* =========================================================
   CONTATO (página)
   ========================================================= */

.contato-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.contato-card {
  background: #fff;
  border: 1px solid rgba(28,43,31,0.07);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.contato-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(28,43,31,0.1); }
.contato-card h3 { margin-bottom: 8px; font-size: clamp(1.05rem, 1.9vw, 1.2rem); }
.contato-card p { color: var(--cinza-texto); font-size: 0.95rem; }
/* links de texto (não afeta botões) */
.contato-card a:not(.btn):not(.rede-item) { color: var(--mostarda-hover); font-weight: 600; }

/* botão dentro do card: contraste reforçado */
.contato-card .btn-primary {
  background: var(--verde-escuro);
  color: var(--bege);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(28,43,31,0.18);
}
.contato-card .btn-primary:hover {
  background: var(--mostarda);
  color: var(--verde-escuro);
  transform: translateY(-2px);
}

/* --- Redes e perfis: ícones --- */
.redes-lista {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 22px);
  margin-top: 20px;
}
.rede-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.rede-icone {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--verde-escuro);
  color: var(--bege);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicao), color var(--transicao), transform var(--transicao);
}
.rede-icone svg { width: 26px; height: 26px; }
.rede-nome {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cinza-texto);
  transition: color var(--transicao);
}
.rede-item:hover .rede-icone,
.rede-item:focus-visible .rede-icone {
  background: var(--mostarda);
  color: var(--verde-escuro);
  transform: translateY(-4px);
}
.rede-item:hover .rede-nome { color: var(--verde-escuro); }

/* variação para fundo escuro (bloco de contato da home) */
.redes-claro { margin-top: 12px; gap: 16px; }
.redes-claro .rede-icone {
  background: rgba(239,232,216,0.1);
  border: 1px solid rgba(239,232,216,0.32);
  color: var(--bege);
  width: 50px; height: 50px;
}
.redes-claro .rede-nome { color: rgba(239,232,216,0.82); }
.redes-claro .rede-item:hover .rede-icone,
.redes-claro .rede-item:focus-visible .rede-icone {
  background: var(--mostarda);
  border-color: var(--mostarda);
  color: var(--verde-escuro);
}
.redes-claro .rede-item:hover .rede-nome { color: var(--mostarda); }

/* bloco discreto com os dados da empresa */
.dados-empresa {
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(28,43,31,0.12);
}
.dados-empresa h3 {
  font-family: var(--fonte-corpo);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mostarda-hover);
  margin-bottom: 10px;
}
.dados-empresa p {
  color: var(--cinza-texto);
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  line-height: 1.9;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--verde-escuro);
  color: var(--bege);
  padding: clamp(34px, 5vw, 54px) 0;
}
.footer-inner {
  text-align: center;
  font-size: clamp(0.78rem, 1.4vw, 0.86rem);
  opacity: 0.75;
}

/* =========================================================
   MENU MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #1c2b1f;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1);
  }
  .main-nav.open { max-height: 360px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
  .main-nav a:not(.btn) {
    padding: 18px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
  }
  .main-nav a.btn { margin: 18px 26px; }
}

/* telas muito largas: evita que o texto fique "perdido" */
@media (min-width: 1700px) {
  .container { max-width: 1320px; }
}

/* telas baixas na horizontal (celular deitado) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { height: auto; min-height: 460px; padding-top: var(--header-h); }
  .hero-content { padding-bottom: 110px; }
  .page-hero { height: auto; min-height: 260px; padding-top: calc(var(--header-h) + 24px); padding-bottom: 32px; }
}

/* impressão */
@media print {
  .site-header, .whatsapp-float, .scroll-cue, .subnav { display: none !important; }
  .hero, .page-hero { position: static; height: auto; }
  body { background: #fff; }
  .site-content { box-shadow: none; }
}
