/* =========================================================================
   CSE BRASIL — Centro de Sobrevivência de Espécies
   Réplica estática do site (csebrasil.org.br) — código próprio, sem Elementor.
   Fonte da marca: Neurial Grotesk.
   ========================================================================= */

/* ---------- Fonte da marca ---------- */
@font-face {
  font-family: 'Neurial';
  src: url('../fonts/neurial-grotesk-light.woff') format('woff'),
       url('../fonts/neurial-grotesk-light.ttf') format('truetype');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neurial';
  src: url('../fonts/neurial-grotesk-bold.woff') format('woff'),
       url('../fonts/neurial-grotesk-bold.ttf') format('truetype');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variáveis ---------- */
:root {
  --green:  #204626;   /* Quem somos / marca / footer */
  --red:    #b2282d;   /* Como trabalhamos */
  --blue:   #003566;   /* Biblioteca */
  --black:  #111111;   /* Agenda */
  --green-dark: #1a3a20;
  --partners-bg: #ece7d7;
  --ink: #333333;
  --ink-soft: #5d6660;
  --white: #ffffff;
  --font: 'Neurial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* =========================================================================
   TOPBAR
   ========================================================================= */
.topbar { background: var(--white); border-bottom: 1px solid #eee; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo { height: 78px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--green); }
.brand-text em { font-style: normal; font-size: clamp(0.78rem, 1.3vw, 0.98rem); color: var(--green); opacity: 0.85; }

.lang-switch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang { display: inline-flex; opacity: 0.55; transition: opacity 0.25s, transform 0.25s; }
.lang.is-active, .lang:hover { opacity: 1; transform: translateY(-1px); }
.lang img { height: 22px; width: auto; }

/* =========================================================================
   MENU PRINCIPAL (barra colorida)
   ========================================================================= */
.mainmenu { position: relative; z-index: 40; }
.menu { display: flex; flex-wrap: nowrap; width: 100%; }
.menu > .menu-item { flex: 1 1 0; }
.menu-item { position: relative; }
.menu-item > a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%;
  padding: 17px 18px; color: var(--white);
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; text-align: center; transition: filter 0.2s;
}
.menu-item > a:hover { filter: brightness(1.12); }
.item-green > a { background: var(--green); }
.item-red   > a { background: var(--red); }
.item-blue  > a { background: var(--blue); }
.item-black > a { background: var(--black); }
.arrow { font-size: 0.7rem; transition: transform 0.3s var(--ease); }
.has-sub:hover .arrow { transform: rotate(180deg); }

/* Submenus (na cor do item) */
.submenu, .submenu2 {
  position: absolute; min-width: 300px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.30);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 60; padding: 2px 0;
}
.submenu { top: 100%; left: 0; transform: translateY(8px); }
.item-green .submenu, .item-green .submenu2 { background: var(--green); }
.item-red   .submenu, .item-red   .submenu2 { background: var(--red); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a, .submenu2 a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 22px; color: var(--white); font-size: 0.9rem; line-height: 1.35;
  border-bottom: 1px solid rgba(255,255,255,0.12); transition: background 0.2s, padding-left 0.2s;
}
.submenu li:last-child > a, .submenu2 li:last-child > a { border-bottom: none; }
.submenu a:hover, .submenu2 a:hover { background: rgba(0,0,0,0.22); padding-left: 27px; }
.arrow2 { font-size: 1.05rem; opacity: 0.85; flex-shrink: 0; }

/* Submenu nível 2 — flyout à direita */
.has-sub2 { position: relative; }
.submenu2 { top: -2px; left: 100%; transform: translateX(10px); }
.has-sub2:hover > .submenu2, .has-sub2:focus-within > .submenu2 { opacity: 1; visibility: visible; transform: translateX(0); }

/* Botão hambúrguer (mobile) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 16px 24px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--green); transition: transform 0.3s, opacity 0.2s; }

/* =========================================================================
   CARROSSEL
   ========================================================================= */
.carousel { position: relative; height: clamp(560px, 78vh, 820px); margin-top: -58px; overflow: hidden; background: #1b1b1b; }
/* Carrossel de galeria no meio da página (ex.: Parque das Aves) — sem sobrepor menu */
.carousel.carousel--inline { margin-top: 0; height: clamp(360px, 56vw, 760px); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s;
  display: flex; align-items: flex-end;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 35%, rgba(0,0,0,0.55) 100%);
}
.slide-inner { position: relative; width: 100%; text-align: center; padding-bottom: clamp(54px, 10vh, 120px); }
.slide-heading {
  color: var(--white); font-weight: 700; font-size: clamp(1.35rem, 3vw, 2.6rem);
  line-height: 1.3; max-width: 1000px; margin: 0 auto; text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
.slide-credit { color: rgba(255,255,255,0.95); font-size: 0.92rem; margin-top: 18px; letter-spacing: 0.02em; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.slide-credit em { font-style: italic; }
.endemic-badge { position: absolute; right: 28px; bottom: 26px; width: clamp(60px, 6.5vw, 88px); height: auto; z-index: 3; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }

/* Setas */
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; color: var(--white); font-size: 1.35rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28); border-radius: 50%; transition: background 0.25s, transform 0.2s;
}
.car-arrow:hover { background: rgba(0,0,0,0.55); }
.car-prev:hover { transform: translateY(-50%) scale(1.08); }
.car-next:hover { transform: translateY(-50%) scale(1.08); }
.car-prev { left: 20px; }
.car-next { right: 20px; }

/* Dots */
.car-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.car-dots button {
  width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.45);
  transition: background 0.25s, transform 0.25s;
}
.car-dots button.is-active { background: var(--white); transform: scale(1.15); }

/* =========================================================================
   VÍDEO + LIVRETO
   ========================================================================= */
.video-section { background: var(--white); padding-block: clamp(42px, 6vw, 76px) 0; text-align: center; }
.video-embed { position: relative; width: 85%; max-width: 1680px; margin-inline: auto; aspect-ratio: 16 / 9; max-height: 80vh; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; display: block; background: #000; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 62px; border-radius: 14px; background: rgba(20,20,20,0.72); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.7rem; padding-left: 5px; transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.video-facade:hover .video-play { background: #c00; transform: translate(-50%, -50%) scale(1.06); }
.booklet { padding-block: clamp(30px, 5vw, 56px); margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.booklet a { color: var(--green); transition: color 0.25s; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.booklet a:hover { color: var(--red); border-color: var(--red); }

/* =========================================================================
   PARCEIROS
   ========================================================================= */
.partners { background: var(--partners-bg); padding-block: clamp(36px, 5vw, 60px); }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 80px); }
.partners-row img { height: clamp(54px, 7vw, 78px); width: auto; object-fit: contain; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--green); color: rgba(255,255,255,0.88); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(44px, 6vw, 64px); }
.footer-col h3 { color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.2); display: inline-block; }
.footer-logo { height: 72px; width: auto; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; margin-bottom: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); color: var(--white); font-size: 1rem; transition: background 0.25s, color 0.25s, transform 0.25s; }
.footer-social a:hover { background: var(--white); color: var(--green); transform: translateY(-2px); }
.footer-contatos address { font-style: normal; line-height: 1.8; font-size: 0.95rem; }
.footer-email { display: inline-block; margin-top: 12px; color: var(--white); font-weight: 700; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.footer-email:hover { border-color: var(--white); }

.footer-newsletter p { font-size: 0.95rem; margin-bottom: 18px; }
.footer-newsletter form { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-newsletter input { padding: 12px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; background: rgba(255,255,255,0.95); color: #222; }
.footer-newsletter input:focus { outline: 2px solid rgba(255,255,255,0.6); }
.footer-newsletter button { padding: 13px 16px; background: var(--white); color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 3px; transition: background 0.25s, color 0.25s, transform 0.2s; }
.footer-newsletter button:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.form-message { font-size: 0.85rem; min-height: 1em; color: #ffe; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.footer-bottom { background: var(--green-dark); padding-block: 14px; font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-bottom-inner > p { margin: 0; }
.tech-credit { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.75); font-size: 0.82rem; transition: opacity 0.2s; }
.tech-credit:hover { opacity: 0.82; }
.tech-credit span { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; opacity: 0.8; }
.tech-credit img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.tech-credit strong { color: #fff; font-weight: 700; letter-spacing: 0.06em; font-size: 0.95rem; }

/* =========================================================================
   PÁGINAS INTERNAS
   ========================================================================= */
/* Hero de FOTO (réplica do site real): banner full-width; o menu colorido
   fica levemente SOBRE o topo da foto (margin-top negativo, como no carrossel).
   Foto definida por página via inline style. Legenda (heading + crédito) sobreposta. */
.page-hero {
  position: relative; width: 100%;
  height: clamp(320px, 62.5vw, 800px);
  margin-top: -58px;
  background: #1b1b1b center/cover no-repeat;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.5) 100%);
}
.hero-cap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(24px, 4vw, 54px); }
.hero-heading {
  color: #fff; font-weight: 600; line-height: 1.3;
  font-size: clamp(1.35rem, 3.1vw, 40px); text-align: right;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-credit {
  color: #fff; font-weight: 700; font-size: 12px; text-align: center;
  margin-top: clamp(14px, 2.5vw, 30px); text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.hero-credit em { font-style: italic; }

/* Página "A espécie da nossa logo": faixas (banners) full-width + mapa + destaque */
.logo-hero { position: relative; z-index: 1; width: 100%; margin-top: -58px; }
.logo-hero img, .logo-band img { display: block; width: 100%; height: auto; }
.logo-band { width: 100%; }
.page-content figure.logo-map { max-width: 460px; margin: 2.2rem auto 1.6rem; }
.page-content figure.logo-map img { width: 100%; height: auto; box-shadow: none; border-radius: 0; }
.logo-statement { padding-block: clamp(28px, 4.5vw, 52px); }
.logo-statement p { margin: 0; color: var(--green); font-weight: 700; text-align: center; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5; }

.page-content { padding-block: clamp(40px, 6vw, 76px); }
.page-content .wrap { max-width: 840px; margin-inline: auto; }
.page-content p { margin-bottom: 1.35rem; font-size: 1.06rem; color: #313b33; line-height: 1.75; text-align: justify; }
.page-content h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--green); margin: 2.6rem 0 1.1rem; }
.page-content h3 { font-size: 1.25rem; color: var(--green); margin: 2rem 0 0.8rem; }
.page-content ul.bullets { margin: 0 0 1.35rem; padding-left: 1.2rem; list-style: disc; }
.page-content ul.bullets li { margin-bottom: 0.5rem; color: #313b33; }
.page-content ul.dashlist { margin: 0 0 1.35rem; padding-left: 0; list-style: none; }
.page-content ul.dashlist li { margin-bottom: 0.5rem; color: #313b33; font-size: 1.06rem; line-height: 1.7; }

/* "Como podemos trabalhar juntos" — pilares empilhados (um abaixo do outro) */
.work-list { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); }
.work-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 2.5vw, 30px); align-items: start; background: #fff; border: 1px solid #e7ede7; border-left: 4px solid var(--green); border-radius: 12px; padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px); box-shadow: 0 6px 22px rgba(20,50,30,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.work-row:hover { transform: translateX(4px); box-shadow: 0 10px 28px rgba(20,50,30,0.11); }
.work-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.4rem; flex: none; }
.work-row h3 { color: var(--green); font-size: 1.2rem; margin: 3px 0 12px; }
.work-row ul { list-style: none; margin: 0; padding: 0; }
.work-row li { position: relative; padding-left: 20px; margin-bottom: 9px; color: #36433a; font-size: 1.02rem; line-height: 1.6; text-align: left; }
.work-row li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: 0.5; }
.work-row li:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .work-row { grid-template-columns: 1fr; } }
.page-content figure { margin: 2.2rem 0; text-align: center; }
.page-content figure img { margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow-sm, 0 6px 20px rgba(0,0,0,0.08)); }
.page-content figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.page-content a.inline { color: var(--green); border-bottom: 1px solid currentColor; }
.page-content a.inline:hover { color: var(--red); }
.page-content .wrap.narrow { max-width: 720px; }
.page-content h2.center, .page-content h3.center, .pc h2.center, .pc h3.center, h2.center, h3.center { text-align: center; }

/* ---- Componentes das páginas internas (réplica do site real) ---- */
.pc { padding-block: clamp(34px, 5vw, 64px); }
.pc--tight { padding-block: clamp(24px, 3.5vw, 44px); }

/* Linha: logo/identidade + texto (2 colunas) */
.pc-id .container { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.pc-id .pc-id-logo { display: flex; justify-content: center; }
.pc-id .pc-id-logo img { max-height: 150px; width: auto; }
.pc-id .pc-id-text p { margin-bottom: 1.1rem; font-size: 1.06rem; color: #313b33; line-height: 1.7; }
.pc-id .pc-id-text p:last-child { margin-bottom: 0; }

/* Bloco de texto centralizado/estreito */
.pc-text .container { max-width: 880px; }
.pc-text p { margin-bottom: 1.2rem; font-size: 1.06rem; color: #313b33; line-height: 1.75; text-align: justify; }
.pc-text p:last-child { margin-bottom: 0; }

/* Citação / visão (faixa colorida full-width) */
.pc-quote { color: #fff; text-align: center; padding-block: clamp(54px, 8vw, 110px); background: var(--green) center/cover no-repeat; position: relative; }
.pc-quote::before { content: ""; position: absolute; inset: 0; background: rgba(20,40,24,0.45); }
.pc-quote .container { position: relative; z-index: 1; }
.pc-quote p.q { font-size: clamp(1.3rem, 2.7vw, 2.05rem); font-weight: 600; line-height: 1.35; max-width: 1000px; margin: 0 auto; }
.pc-quote p.src { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 1.8rem; opacity: 0.9; }
.pc-quote--red { background: var(--red); }
.pc-quote--blue { background: var(--blue); }

/* Imagem full-width / banner dentro do conteúdo */
.pc-img { text-align: center; padding-block: clamp(20px, 3vw, 40px); }
.pc-img img { margin-inline: auto; }
.pc-img--full { padding: 0; }
.pc-img--full img { width: 100%; }
.pc-img figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* Estatísticas (grade de caixas — ex.: IUCN) */
.pc-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.pc-stats > * { min-height: clamp(190px, 21vw, 290px); }
.pc-stat { background: var(--teal, #1f8a8a); color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; padding: clamp(30px, 4vw, 56px); }
.pc-stat .num { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
.pc-stat .lbl { font-size: clamp(0.85rem, 1.1vw, 1rem); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; opacity: 0.95; }
.pc-stat--phrase { justify-content: center; }
.pc-stat--phrase span { font-size: clamp(1.5rem, 2.9vw, 2.2rem); font-weight: 700; line-height: 1.25; }
.pc-stat--alt { background: #176f6f; }
.pc-stat-img { background-size: cover; background-position: center; }
/* Faixa de imagem full-width (foto de fechamento, ex.: IUCN-3) */
.media-band { position: relative; width: 100%; height: clamp(340px, 46vw, 600px); background: #1b1b1b center/cover no-repeat; }
.media-band .band-badge, .mission-band .band-badge { position: absolute; top: clamp(10px,2vw,24px); right: clamp(10px,2vw,24px); width: clamp(56px,7vw,104px); height: auto; z-index: 3; }
/* Bloco de missão — texto abaixo da imagem das aves (ex.: Instituto Claravis) */
.pc-mission .container { max-width: 1040px; }
.pc-mission .q { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.28; color: #1b1b1b; margin: 0; }
.pc-mission .src { font-size: clamp(1.05rem, 1.6vw, 1.375rem); font-weight: 400; line-height: 1.4; color: #1b1b1b; margin: 0.7rem 0 0; }

/* Banda de "missão" — foto full-width com texto sobreposto (ex.: IUCN) */
.mission-band { position: relative; width: 100%; height: clamp(360px, 58vw, 760px); background: #1b1b1b center/cover no-repeat; display: flex; align-items: flex-end; overflow: hidden; }
.mission-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.58) 100%); }
.mission-band .hero-cap { position: relative; z-index: 2; }
.mission-band .hero-heading { text-align: center; }
.mission-band .mission-label { color: #fff; text-align: center; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; margin-top: 12px; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.mission-band--left { background-position: left center; }

/* Diagrama/infográfico de conteúdo (centralizado, largura controlada) */
.content-figure, .page-content .content-figure { margin: 2.4rem auto; text-align: center; max-width: 980px; }
.content-figure img, .page-content .content-figure img { width: 100%; height: auto; display: block; margin-inline: auto; box-shadow: none; border-radius: 0; }
.content-figure.narrow { max-width: 620px; }
/* Faixa full-bleed (atravessa toda a largura mesmo dentro da coluna de texto) */
.page-content .fullbleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-block: clamp(28px, 4vw, 52px); }
.page-content .fullbleed img { display: block; width: 100%; height: auto; }
/* Banda de seção com TÍTULO sobreposto (ex.: CPSG approach) */
.page-content .section-band { position: relative; min-height: clamp(210px, 23vw, 330px); background: #3a3a3a center/cover no-repeat; display: flex; align-items: center; overflow: hidden; }
.section-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.32); }
.section-band .band-inner { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin-inline: auto; padding: 0 clamp(20px, 5vw, 64px); text-align: center; }
.section-band .band-title { color: #fff; text-transform: uppercase; font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.section-band .band-credit { text-align: center; color: #fff; font-size: 12px; font-weight: 700; margin: 10px 0 0; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.page-content .section-band--tall { min-height: clamp(360px, 42vw, 600px); }
.section-band .band-statement { color: #fff; font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.9rem); line-height: 1.3; margin: 0; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }

/* Banda "Junte-se a nós" — foto full-width com chamada sobreposta (como podemos trabalhar juntos) */
.page-content .join-band { position: relative; text-align: left; }
.page-content .join-band img { display: block; width: 100%; height: auto; box-shadow: none; border-radius: 0; margin-inline: 0; }
.join-band .join-title { position: absolute; right: 6%; bottom: 17%; margin: 0; color: #fff; font-weight: 700; font-size: clamp(1.4rem, 3.6vw, 2.9rem); line-height: 1.1; text-shadow: 0 2px 16px rgba(0,0,0,0.85); }

/* ===== Lightbox (popup) para imagens soltas de conteúdo ===== */
img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 52px); background: rgba(0,0,0,0.88); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; box-shadow: 0 12px 50px rgba(0,0,0,0.55); transform: scale(0.96); transition: transform .25s ease; }
.lightbox.is-open img { transform: scale(1); }
.lightbox-close { position: absolute; top: clamp(8px, 2vw, 22px); right: clamp(8px, 2vw, 26px); width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: clamp(8px, 2vw, 18px); margin: 0; text-align: center; color: rgba(255,255,255,0.82); font-size: 0.82rem; padding: 0 18px; }
body.lightbox-open { overflow: hidden; }

/* "Para mais informações" + redes + logos de parceiros */
.pc-more { text-align: center; padding-block: clamp(34px, 5vw, 60px); }
.pc-more h2, .pc-more p.lead { font-size: 1.15rem; color: var(--green); font-weight: 700; margin-bottom: 22px; }
.pc-more .pc-social { display: inline-flex; gap: 12px; justify-content: center; margin-bottom: 26px; }
.pc-more .pc-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: transform .2s, background .2s; }
.pc-more .pc-social a:hover { transform: translateY(-2px); background: var(--green-dark); }
.pc-more .pc-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(26px, 5vw, 60px); }
.pc-more .pc-logos a img, .pc-more .pc-logos img { height: clamp(52px, 7vw, 84px); width: auto; object-fit: contain; }
.pc-more .pc-link { display: inline-block; margin-top: 8px; color: var(--green); font-weight: 700; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.pc-more .pc-link:hover { color: var(--red); border-color: var(--red); }

/* Acordeão (ex.: IUCN — Como a UICN opera) */
.pc-acc { max-width: 880px; margin: 1.6rem auto 0; }
.pc-acc details { border-bottom: 1px solid #dfe3df; }
.pc-acc summary { list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 700; color: var(--green); font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between; }
.pc-acc summary::-webkit-details-marker { display: none; }
.pc-acc summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--ink-soft); transition: transform .25s; }
.pc-acc details[open] summary::after { content: "–"; }
.pc-acc .acc-body { padding: 0 4px 18px; }
.pc-acc .acc-body p { color: #313b33; line-height: 1.7; margin-bottom: 10px; }
.pc-acc .acc-body a { color: var(--green); border-bottom: 1px solid currentColor; }
.pc-acc .acc-body a:hover { color: var(--red); }

/* CTA tipo botão (ex.: Junte-se a nós) */
.booklet-cta { display: inline-block; background: var(--green); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 34px; border-radius: 3px; transition: background .25s, transform .2s; }
.booklet-cta:hover { background: var(--red); transform: translateY(-2px); }

/* Projeto CEPF — itens de ação */
.page-content .wrap { counter-reset: cepf; }
.cepf-item { counter-increment: cepf; position: relative; padding-left: clamp(56px, 7vw, 104px); margin-bottom: clamp(26px, 3.6vw, 46px); }
.cepf-item::before { content: counter(cepf); position: absolute; left: 0; top: -0.12em; font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; line-height: 0.85; color: var(--green); }
.cepf-item h3 { color: var(--green); font-size: 1.12rem; margin-bottom: 10px; }
.cepf-item p { font-size: 1rem; margin-bottom: 8px; color: #313b33; text-align: left; }
.cepf-item p:last-child { margin-bottom: 0; }
.cepf-item .rotulo { font-weight: 700; color: var(--green-dark); }
/* Faixa verde "Objetivo geral" */
.page-content .cepf-goal { background: var(--green); color: #fff; padding-block: clamp(34px, 5vw, 58px); margin-block: clamp(28px, 4vw, 48px); }
.cepf-goal-inner { max-width: 1100px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.cepf-goal h2 { color: #fff; text-align: left; margin: 0 0 1rem; }
.cepf-goal p { color: #fff; margin: 0; line-height: 1.75; text-align: left; }

/* Biblioteca — seções foto + lista de links */
.bib-sec { padding-block: clamp(26px, 4vw, 48px); }
.bib-sec .container { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bib-sec img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.bib-sec h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; border-left: 3px solid currentColor; padding: 3px 0 3px 18px; line-height: 1.12; }
.bib-sec .bib-links p { margin-bottom: 12px; font-size: 1.06rem; color: #313b33; }
.bib-sec .bib-links a { color: var(--red); font-weight: 700; border-bottom: 1px solid currentColor; }
.bib-sec .bib-links a:hover { color: var(--green); }
.bib-sec--alt .container { direction: rtl; }
.bib-sec--alt .container > * { direction: ltr; }
.bib-h-blue { color: var(--blue); }
.bib-h-green { color: var(--green); }
.bib-h-red { color: var(--red); }
@media (max-width: 760px) { .bib-sec .container { grid-template-columns: 1fr; } .bib-sec--alt .container { direction: ltr; } }

/* Eyebrow do hero (ex.: MISSÃO DA UICN) */
.hero-eyebrow { color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-align: right; margin-bottom: 10px; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

@media (max-width: 760px) {
  .pc-id .container { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .pc-stats { grid-template-columns: 1fr; }
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 60px; }

  /* Sem sobreposição do menu no mobile */
  .mainmenu { background: var(--white); }
  .carousel { margin-top: 0; }
  .page-hero { margin-top: 0; }
  .logo-hero { margin-top: 0; }

  /* Menu vira sanduíche — SOBREPÕE o conteúdo (não empurra para baixo) */
  .menu-toggle { display: flex; margin-left: auto; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    flex-direction: column; flex-wrap: nowrap;
    background: var(--white);
    box-shadow: 0 18px 34px rgba(0,0,0,0.28);
    max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
    z-index: 50;
  }
  .menu.is-open { max-height: 80vh; overflow-y: auto; }
  .menu > .menu-item { flex: none; }
  .menu-item { width: 100%; }
  .menu-item > a { padding: 14px 24px; justify-content: space-between; width: 100%; }

  /* Submenus viram acordeão (níveis 1 e 2) */
  .submenu, .submenu2 {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    min-width: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); padding: 0;
  }
  .menu-item.open-sub > .submenu { max-height: 1800px; }
  .has-sub2.open-sub2 > .submenu2 { max-height: 600px; }
  .submenu a { padding-left: 40px; }
  .submenu2 a { padding-left: 58px; background: rgba(0,0,0,0.16); }
}

@media (max-width: 560px) {
  .topbar-inner { flex-wrap: wrap; }
  .brand { gap: 12px; }
  .brand-logo { height: 52px; }
  .slide-heading { font-size: 1.15rem; }
  .car-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
  .endemic-badge { width: 70px; right: 16px; bottom: 16px; }
  .video-embed { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
