/* Cellavita - Clone fiel ao original */
:root {
  --header-bg: #0E2E47;
  --cor-primaria: #0E2E47;
  --cor-secundaria: #2d5a7b;
  --cor-destaque: #4a90a4;
  --cor-texto: #333;
  --cor-texto-claro: #555;
  --cor-fundo: #f5f5f5;
  --cor-branco: #fff;
  --fonte: 'Futura Lt', 'Futura', 'Segoe UI', Arial, Helvetica, sans-serif;
}

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

body {
  font-family: var(--fonte);
  color: var(--cor-texto);
  line-height: 1.6;
  background: var(--cor-fundo);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
}

/* Barra superior: só idiomas à direita (sem copyright no topo) */
.topbar {
  background: #1a2530;
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.85rem;
}
.topbar-copyright { display: none; }
.topbar-idiomas { display: flex; gap: 1rem; }
.topbar-idiomas a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.topbar-idiomas a.ativo,
.topbar-idiomas a:hover {
  color: #fff;
}

/* Header: estrutura igual ao original — logo grande à esquerda, base ultrapassando a linha cinza */
header {
  background: var(--header-bg);
  color: var(--cor-branco);
  z-index: 100;
  overflow: visible;
  border-bottom: 2px solid rgba(125, 140, 159, 0.6);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
  overflow: visible;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: block;
  line-height: 0;
}

.logo img {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  vertical-align: bottom;
}

nav {
  display: flex;
  justify-content: flex-end;
}

.logo-texto {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-texto a {
  color: var(--cor-branco);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--cor-branco);
}

.idiomas {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.idiomas a {
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.idiomas a:hover,
.idiomas a.ativo {
  opacity: 1;
}

.idiomas img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* Home: fundo branco com imagem/padrão claro (como no original) */
body.page-home {
  background-color: #ffffff;
  /* Padrão claro: use images/fundo-branco.png (vinheta/floral claro) se tiver */
  background-image: 
    url('../images/fundo-branco.png'),
    radial-gradient(ellipse 140% 70% at 50% 90%, rgba(0, 0, 0, 0.018) 0%, transparent 50%);
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
}
body.page-home main {
  background: #ffffff url('../images/home.png') center top no-repeat;
  background-size: cover;
  padding: 2.5rem 2rem;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
body.page-home .secao-parceiros {
  margin-top: 2rem;
}

/* Hero com imagem de fundo igual ao site original */
.hero {
  position: relative;
  background: var(--header-bg);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cor-branco);
  overflow: hidden;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 46, 71, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero p {
  position: relative;
}

.hero h1 {
  color: var(--cor-branco);
  border: none;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero p {
  color: rgba(255,255,255,0.95);
  margin: 0;
  max-width: 620px;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Main */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-height: 50vh;
}

h1 {
  color: var(--cor-primaria);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--cor-destaque);
  padding-bottom: 0.5rem;
  display: inline-block;
  font-weight: bold;
}

h2 {
  color: var(--cor-primaria);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: bold;
}

p {
  margin-bottom: 1rem;
  color: var(--cor-texto-claro);
  font-size: 1rem;
}

blockquote {
  border-left: 4px solid var(--cor-destaque);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--cor-secundaria);
  font-size: 1.1rem;
}

ul.conteudo {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--cor-texto-claro);
}

ul.conteudo li {
  margin-bottom: 0.5rem;
}

a.externo {
  color: var(--cor-destaque);
  text-decoration: none;
  word-break: break-all;
}

a.externo:hover {
  text-decoration: underline;
}

/* Seção Parcerias - imagem dos parceiros como no original */
.secao-parceiros {
  margin: 2rem 0;
  text-align: center;
}

.secao-parceiros h2 {
  margin-bottom: 1rem;
}

.secao-parceiros .img-parceiros {
  max-width: 789px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Contato (página padrão: fundo claro) */
.contato-info {
  background: var(--cor-branco);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 1rem;
}

.contato-info p {
  margin-bottom: 0.5rem;
}

/* Página Contato: fundo teal com formas suaves, endereço em cima e mapa embaixo */
body.page-contato {
  background: #0b2329;
  background-image: linear-gradient(rgba(11, 35, 41, 0.88), rgba(11, 35, 41, 0.88)), url("../images/pesquisa/fundo-pesquisa.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
body.page-contato main {
  max-width: 1200px;
  color: #fff;
}
body.page-contato h1 {
  color: #fff;
  text-align: center;
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-size: 2rem;
}
body.page-contato .contato-info {
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0;
  margin-top: 0;
  text-align: center;
}
body.page-contato .contato-info p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.5rem;
}
body.page-contato .contato-mapa {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 100%;
}
body.page-contato .contato-mapa iframe {
  display: block;
  vertical-align: top;
}

/* Footer - travado na parte de baixo da página */
footer {
  background: #0E2E47;
  color: rgba(255,255,255,0.9);
  padding: 0.6rem 2rem;
  margin-top: auto;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-copyright { color: rgba(255,255,255,0.9); }

/* ========== PÁGINA PESQUISA - fundo igual ao original: azul escuro + padrão discreto ========== */
body.page-pesquisa {
  background: #0f1c2e;
  background-image: linear-gradient(rgba(15, 28, 46, 0.82), rgba(15, 28, 46, 0.82)), url("../images/pesquisa/fundo-pesquisa.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
body.page-pesquisa main {
  color: #fff;
  max-width: 1200px;
}
body.page-pesquisa .img-pesquisa {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
  display: block;
}
body.page-pesquisa h1 {
  color: #fff;
  text-align: center;
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  letter-spacing: 0.05em;
}
body.page-pesquisa h2 {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
body.page-pesquisa p,
body.page-pesquisa li {
  color: rgba(255,255,255,0.95);
}
body.page-pesquisa a.externo {
  color: #6eb5e0;
  text-decoration: underline;
}
body.page-pesquisa a.externo:hover {
  color: #8fc9f0;
}
body.page-pesquisa .secao-pesquisa {
  margin-bottom: 2.5rem;
}
/* Título da seção em barra cinza-azulada (como no original) */
body.page-pesquisa .titulo-secao {
  background: rgba(26, 37, 48, 0.95);
  padding: 0.6rem 1.25rem;
  margin: 2.5rem 0 1rem 0;
  border-left: 4px solid var(--cor-destaque);
}
body.page-pesquisa .titulo-secao:first-child {
  margin-top: 0;
}
body.page-pesquisa .titulo-secao h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
/* Texto à esquerda, imagem à direita (seção INÍCIO DA PESQUISA) */
body.page-pesquisa .layout-texto-imagem {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  margin: 0.8rem 0 1rem 0;
}
body.page-pesquisa .layout-texto-imagem .col-texto {
  flex: 1 1 50%;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
body.page-pesquisa .layout-texto-imagem .col-imagem {
  flex: 1 1 50%;
  min-width: 0;
}
body.page-pesquisa .img-irina {
  width: 280px;
  height: auto;
  display: block;
  border-radius: 4px;
}
@media (max-width: 600px) {
  body.page-pesquisa .layout-texto-imagem {
    flex-direction: column;
  }
  body.page-pesquisa .layout-texto-imagem .col-imagem {
    flex: 0 0 auto;
  }
}
body.page-pesquisa figure {
  margin: 1rem 0;
}
body.page-pesquisa figcaption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.35rem;
}
/* Irina: tamanho original 433x243 */
body.page-pesquisa .img-pesquisa-destaque {
  margin: 1.5rem 0;
}
body.page-pesquisa .img-pesquisa-destaque .img-pesquisa {
  width: 433px;
  max-width: 100%;
  height: auto;
}
/* Pré-clínica: 1 imagem por linha (como no original), em tamanho grande */
body.page-pesquisa .grid-imagens-pesquisa {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}
body.page-pesquisa .grid-imagens-pesquisa figure {
  margin: 0;
}
body.page-pesquisa .grid-imagens-pesquisa .img-pesquisa {
  width: 100%;
  max-width: 869px;
  height: auto;
  margin: 0 0 0.5rem 0;
  display: block;
}
body.page-pesquisa .grid-imagens-pesquisa figcaption {
  margin-top: 0.35rem;
}
/* Imagens Huntington e Einstein: tamanho original, sem limitar */
body.page-pesquisa .bloco-resultados .img-pesquisa,
body.page-pesquisa .bloco-einstein .img-pesquisa {
  width: 100%;
  max-width: 668px;
  height: auto;
}
body.page-pesquisa .layout-ctipd {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
body.page-pesquisa .layout-ctipd .ctipd-coluna-esquerda {
  flex: 1 1 auto;
  min-width: 0;
}
body.page-pesquisa .layout-ctipd .ctipd-coluna-esquerda .img-pesquisa {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
body.page-pesquisa .layout-ctipd .label-darpp {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}
body.page-pesquisa .layout-ctipd .label-striatum {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
body.page-pesquisa .layout-ctipd .ctipd-coluna-direita {
  flex: 0 0 auto;
  max-width: 220px;
  text-align: left;
  align-self: center;
}
body.page-pesquisa .layout-ctipd .ctipd-coluna-direita .label-imagem {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
@media (max-width: 600px) {
  body.page-pesquisa .layout-ctipd {
    flex-direction: column;
  }
  body.page-pesquisa .layout-ctipd .ctipd-coluna-direita {
    max-width: 100%;
  }
}
body.page-pesquisa .bloco-einstein .img-pesquisa { max-width: 664px; }
body.page-pesquisa .titulo-biodist {
  font-size: 1.15rem;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 2rem 0 0.5rem 0;
}
body.page-pesquisa .label-imagem {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 1rem 0 0.25rem 0;
}

/* Dois vídeos lado a lado - seção "modelos animais" */
body.page-pesquisa .videos-pesquisa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}
body.page-pesquisa .video-pesquisa-item {
  margin: 0;
}
body.page-pesquisa .video-pesquisa-label {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.95);
}
body.page-pesquisa .video-pesquisa {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #1a2530;
}

/* ========== PÁGINA TERAPIA CELULAR — imagem de fundo do site original (células/círculos) ========== */
body.page-terapia {
  background: #0f1c2e;
  background-image: linear-gradient(rgba(15, 28, 46, 0.78), rgba(15, 28, 46, 0.78)), url("../images/terapia/fundo-terapia.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
body.page-terapia main {
  color: #fff;
  max-width: 1200px;
}
body.page-terapia h1 {
  color: #fff;
  text-align: center;
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  letter-spacing: 0.05em;
}
body.page-terapia p,
body.page-terapia li {
  color: rgba(255,255,255,0.95);
}
body.page-terapia a.externo {
  color: #6eb5e0;
  text-decoration: underline;
}
body.page-terapia a.externo:hover {
  color: #8fc9f0;
}
body.page-terapia .titulo-secao {
  background: rgba(26, 37, 48, 0.95);
  padding: 0.6rem 1.25rem;
  margin: 2.5rem 0 1rem 0;
  border-left: 4px solid var(--cor-destaque);
}
body.page-terapia .secao-terapia { margin-bottom: 2.5rem; }
body.page-terapia .titulo-secao:first-of-type { margin-top: 0; }
body.page-terapia .titulo-secao h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
body.page-terapia .bloco-texto-nestacell {
  margin: 1rem 0 1.5rem 0;
}
body.page-terapia .bloco-texto-nestacell p { margin-bottom: 1rem; }
body.page-terapia .layout-video-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  margin: 1.5rem 0 0 0;
}
body.page-terapia .layout-video-lista .col-video {
  flex: 0 0 auto;
  margin: 0;
}
body.page-terapia .layout-video-lista .col-video .video-terapia {
  width: 100%;
  max-width: 480px;
}
body.page-terapia .layout-video-lista .col-lista {
  flex: 1 1 280px;
  min-width: 0;
}
body.page-terapia .video-terapia {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #1a2530;
  display: block;
}
body.page-terapia .video-terapia-destaque {
  margin: 1.5rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
body.page-terapia .grid-aprovacao {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
body.page-terapia .grid-aprovacao img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #1a2530;
}
body.page-terapia .img-aprovacao {
  margin: 1rem 0;
}
body.page-terapia .img-aprovacao img {
  width: 100%;
  max-width: 865px;
  height: auto;
  border-radius: 4px;
  display: block;
}
body.page-terapia .box-finep {
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,0.3);
}
body.page-terapia .box-finep p { color: #333; }
body.page-terapia ul.conteudo { margin: 1rem 0 1rem 1.5rem; }

@media (max-width: 900px) {
  body.page-terapia .grid-aprovacao { grid-template-columns: 1fr; }
}

/* Página Covid-19 — mesmo estilo escuro e imagens */
body.page-covid19 {
  background: #0f1c2e;
  background-image: linear-gradient(rgba(15, 28, 46, 0.85), rgba(15, 28, 46, 0.85)), url("../images/pesquisa/fundo-pesquisa.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
body.page-covid19 main { color: #fff; max-width: 1200px; }
body.page-covid19 h1, body.page-covid19 h2 { color: #fff; }
body.page-covid19 p, body.page-covid19 li { color: rgba(255,255,255,0.95); }
body.page-covid19 a.externo { color: #6eb5e0; text-decoration: underline; }
body.page-covid19 a.externo:hover { color: #8fc9f0; }
body.page-covid19 .img-covid { max-width: 100%; height: auto; margin: 1rem 0; border-radius: 4px; display: block; }
body.page-covid19 .img-covid-wrap { margin: 1rem 0; }
body.page-covid19 .img-covid-wrap.biodist-biolum {
  display: block;
}
body.page-covid19 .img-covid-wrap.biodist-biolum .img-covid {
  margin: 0 0 0.5rem 0;
  display: block;
}
body.page-covid19 .img-covid-wrap figcaption,
body.page-covid19 p.legenda-imagem,
body.page-covid19 p.legenda-abaixo-imagem {
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  font-style: normal;
  line-height: 1.45;
}
body.page-covid19 .bloco-imagem-texto {
  margin-top: 1rem;
}
body.page-covid19 .bloco-imagem-texto .img-covid-wrap {
  margin-bottom: 0;
}
body.page-covid19 .bloco-imagem-texto .legenda-abaixo-imagem:last-child {
  margin-bottom: 0;
}
body.page-covid19 p.texto-abaixo-imagem {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
body.page-covid19 .titulo-secao {
  background: rgba(26, 37, 48, 0.95);
  padding: 0.6rem 1.25rem;
  margin: 2.5rem 0 1rem 0;
  border-left: 4px solid var(--cor-destaque);
}
body.page-covid19 .titulo-secao:first-of-type { margin-top: 0; }
body.page-covid19 .titulo-secao h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}
body.page-covid19 .titulo-secao h2 .titulo-secao-line2 {
  text-transform: none;
  font-weight: 500;
}
body.page-covid19 .titulo-secao-fase2 .titulo-secao-sub {
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
  font-weight: normal;
  text-transform: none;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
}
body.page-covid19 p.literatura-heading {
  margin: 1.25rem 0 0.75rem 0;
  font-size: 1rem;
}
body.page-covid19 .titulo-sub {
  margin: 1.5rem 0 0.5rem 0;
}
body.page-covid19 .titulo-sub h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
body.page-covid19 ul.conteudo { margin: 0.5rem 0 1rem 1.5rem; }
@media (max-width: 768px) {
  .header-row {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
  }
  .logo img {
    height: 64px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    min-height: 360px;
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  main {
    padding: 1.5rem 1rem;
  }
}
