@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  --azul: #2794A0;
  --rosa: #B5284B;
  --roxo: #68357A;
  --amarelo: #E28C27;
}

/* Texto das páginas em Nunito (rodapé fica de fora) */
html body .container {
  font-family: "Nunito", system-ui, sans-serif;
}

/* Texto dos posts: o tema fixa Roboto direto nestes seletores,
   por isso precisamos repeti-los aqui para ganhar deles */
html body .article-post,
html body .layout-page .article-post,
html body .article-post a,
html body .article-post a:hover,
html body #TOC a {
  font-family: "Nunito", system-ui, sans-serif;
}

/* Títulos na Isidora Sans Bold */
html body .container h1,
html body .container h2,
html body .container h3,
html body .container h4 {
  font-family: "IsidoraSans-Bold", "Nunito", sans-serif;
  font-weight: normal;
}

/* ===== Cabeçalho ===== */
.site-cabecalho {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #e4e4e7;
}
.site-cabecalho .barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;               /* no celular o menu desce para a linha de baixo */
  gap: 8px 24px;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 10px 0;
}
.site-cabecalho img {
  height: 42px;                  /* altura do logotipo */
  width: auto;
  display: block;
}
.site-cabecalho nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.site-cabecalho nav a {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;          /* formato de pílula */
}
.site-cabecalho nav a:hover,
.site-cabecalho nav a[aria-current="page"] {
  background: #f5f5f6;
  color: #000;                   /* o tema deixa links brancos no hover, então fixamos o preto */
}


/* ===== Cards do blog ===== */
.post-card {
  display: block;
  height: 100%;
  color: #000;                     /* o tema deixa link branco no hover; fixamos o preto */
  text-decoration: none;
}
.post-card:hover {
  color: #000;
  text-decoration: none;
}
.post-card-capa {
  border-radius: 22px;             /* cantos arredondados da capa */
  overflow: hidden;                /* a imagem respeita os cantos */
  margin-bottom: 14px;
  /* sem aspect-ratio, sem borda e sem fundo: a altura é a da própria imagem */
}
.post-card-capa img {
  width: 100%;
  height: auto;                    /* altura livre, proporcional: NADA é cortado */
  display: block;
  transition: transform .3s;
  max-height: 320px;
  object-fit: cover;
}
.post-card:hover .post-card-capa img {
  transform: scale(1.03);          /* zoom suave ao passar o mouse; apague se não gostar */
}
.post-card-texto {
  padding: 0;
}
.post-card time,
.post-card p {
  font-family: "Nunito", system-ui, sans-serif;   /* o link do tema forçaria a Isidora */
}
.post-card time {
  font-size: 14px;
  color: #52525b;
}
.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 4px 0 8px;
  color: #000;
}
.post-card:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--azul);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.post-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #52525b;
  margin: 0;
}

/* Celular: capa com altura controlada */
@media (max-width: 767px) {
  .post-card-capa {
    aspect-ratio: 4 / 3;
    background: #fff;
  }
  .post-card-capa img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* imagens horizontais: inteiras, com laterais brancas se sobrar */
  }
  .post-card-capa img.recortar {
    object-fit: cover;            /* imagens em pé: preenchem a caixa e são cortadas */
    object-position: center;
  }
}


/* ===== Home ===== */
.home section { margin-bottom: 72px; }
.home h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }

/* Botões (usados na home toda) */
.botao {
  display: inline-block;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 26px;
  margin: 0 8px 8px 0;
  border: 2px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.botao:hover { background: var(--azul); border-color: var(--azul); color: #fff; text-decoration: none; }
.botao-contorno { background: transparent; color: #000; }
.botao-contorno:hover { background: #000; border-color: #000; color: #fff; }
.botao-claro { background: #fff; border-color: #fff; color: #000; }   /* para fundo preto */
.botao-claro:hover { background: var(--azul); border-color: var(--azul); color: #fff; }

html body .botao,
html body .botao:hover {
  font-family: "Nunito", system-ui, sans-serif;
}

/* Bloco 1: abertura */
.home-abertura {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
}
.home h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 20px; }
.home-lead { font-size: 1.2rem; color: #52525b; margin-bottom: 28px; }
.home-destaque {
  display: block;
  border: 1.5px solid #e4e4e7;
  border-radius: 28px;
  padding: 14px 14px 22px;
  color: #000;
  text-decoration: none;
  transition: border-color .2s;
}
.home-destaque:hover { border-color: var(--azul); color: #000; text-decoration: none; }
.home-destaque h3, .home-destaque p { margin-left: 10px; margin-right: 10px; }
.home-destaque h3 { font-size: 1.3rem; line-height: 1.2; }
.home-destaque p { font-family: "Nunito", system-ui, sans-serif; color: #52525b; margin-bottom: 0; }
.home-chip {
  display: inline-block;
  margin: 12px 10px 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f5f5f6;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* Bloco 2 */
.home-centro { text-align: center; margin-top: 12px; }

/* Bloco 3: sobre (como na v3) */
.home-sobre {
  display: grid;
  grid-template-columns: 260px minmax(0, 580px);   /* colunas de largura fixa... */
  justify-content: center;                         /* ...e o conjunto fica centralizado */
  gap: 56px;
  align-items: center;
  background: #f5f5f6;
  border-radius: 32px;
  padding: 48px 44px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.home-sobre p {
  font-size: 1.05rem;
  color: #52525b;
  max-width: none;
  margin-bottom: 24px;
}
.home-sobre img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
}
.home-sobre h2 { margin-bottom: 12px; }

@media (max-width: 860px) {
  .home-abertura, .home-sobre { grid-template-columns: 1fr; gap: 28px; }
  .home-sobre { padding: 32px 24px; }
  .home-sobre img { max-width: 200px; margin: 0 auto; }
  .home-sobre .botao { display: table; margin: 0 auto 8px; }
}




/* ===== Página About ===== */
/* O prefixo "html body" faz estas regras ganharem das do tema, que centraliza
   e justifica o texto dos artigos */
html body .sobre-pagina h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);   /* menor que antes */
  line-height: 1.15;
  text-align: left;                        /* alinhado à esquerda */
  margin: 0 0 14px;
}
html body .sobre-pagina h2 {
  font-size: 1.4rem;
  text-align: left;
  margin: 0 0 22px;
}
html body .sobre-pagina { text-align: left; }   /* vale para tudo dentro da página: p, li, strong... */

.sobre-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 24px;
  margin-bottom: 64px;
}
.sobre-intro img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
}

/* Duas colunas, com uma linha suave entre elas */
.sobre-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 64px;
}
.sobre-colunas section { margin: 0; }
.sobre-colunas section:first-child { padding-right: 48px; }
.sobre-colunas section:last-child {
  padding-left: 48px;
  border-left: 1px solid #e4e4e7;          /* a linha suave */
}

/* Itens: só um ponto, sem linha ligando (há empregos simultâneos) */
html body .sobre-pagina .lista-cv {
  list-style: none;
  margin: 0;
  padding: 0;
}
html body .sobre-pagina .lista-cv li {
  list-style: none;
  position: relative;
  padding: 0 0 24px 26px;
}
.lista-cv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azul);
}
.lista-cv .periodo,
.lista-cv strong,
.lista-cv .inst { display: block; }
.lista-cv .periodo { font-family: "IsidoraSans-Bold", "Nunito", sans-serif; }
.lista-cv strong { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; }
.lista-cv .inst { color: #52525b; font-family: "Nunito", system-ui, sans-serif; }

/* Celular: foto centralizada acima do texto; colunas empilhadas */
@media (max-width: 760px) {
  .sobre-intro { grid-template-columns: 1fr; gap: 24px; }
  .sobre-intro img { max-width: 220px; margin: 0 auto; }
  .sobre-colunas { grid-template-columns: 1fr; }
  .sobre-colunas section:first-child { padding-right: 0; }
  .sobre-colunas section:last-child {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #e4e4e7;         /* no celular a linha vira horizontal */
    padding-top: 32px;
    margin-top: 8px;
  }
}

/* ===== Página Blog (lista) ===== */

/* Tags no topo: pílulas em Nunito */
html body .jumbotron.fortags {
  background: none;
  margin: 8px 0 36px;
  text-align: center;
}
html body .jumbotron.fortags a {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 16px;
  margin: 0 4px 8px;
  border-radius: 999px;
  background: #f5f5f6;
  color: #000;
  transition: background .15s, color .15s;
}
html body .jumbotron.fortags a:hover {
  background: #000;
  color: #fff;
}

/* Título da seção: linha fina cinza, com um destaque azul embaixo do texto */
html body .section-title h2 {
  border-bottom: 1px solid #e4e4e7;
  font-size: 1.6rem;
  margin-bottom: 28px;
}
html body .section-title span {
  border-bottom: 3px solid var(--azul);
  padding-bottom: 8px;
}


/* ===== Páginas de post ===== */

/* Título do post */
html body .mainheading h1.posttitle {
  font-family: "IsidoraSans-Bold", "Nunito", sans-serif;
  font-weight: normal;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

/* Cover image com borda arredondada */
html body .featured-image {
  border-radius: 18px;
}

/* Tags no fim do post: mesma pílula da lista */
html body ul.tags li a {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 16px;
  background: #f5f5f6;
  color: #000;
}
html body ul.tags li a:hover {
  background: #000;
  color: #fff;
}

/* Citações: faixa azul e cantos suaves à direita */
html body blockquote {
  background: #f5f5f6;
  border-radius: 0 14px 14px 0;
}


/* ===== Post: acabamentos ===== */

/* Linhas separadoras (antes eram cinza escuras e pesadas) */
html body .article-post hr,
html body hr {
  background-color: #e4e4e7;
  height: 1px;
  width: 100%;
  margin: 2.5rem 0;
}

/* Navegação entre posts */
html body .PageNavigation {
  gap: 12px;
  margin: 0;
}
html body .PageNavigation a {
  flex: 0 1 auto;                       /* o botão tem o tamanho do conteúdo */
  width: auto;
  max-width: calc(50% - 6px);
  padding: 14px 22px;
  background: #f5f5f6;
  border-radius: 18px;
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.3;
  color: #000;
  transition: background .15s, color .15s;
}
html body .PageNavigation a small {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #71717a;
  margin-bottom: 2px;
}
html body .PageNavigation a span {
  display: block;
  font-weight: 700;
}
html body .PageNavigation a.text-lg-right {
  margin-left: auto;                    /* com um link só, ele fica à direita */
  text-align: right;
}
html body .PageNavigation a:hover { background: #000; color: #fff; }
html body .PageNavigation a:hover small { color: #d4d4d8; }
@media (max-width: 640px) {
  html body .PageNavigation a { flex: 1 1 100%; max-width: none; }
}

/* ===== Like/Share: barra fixa no celular ===== */
@media (max-width: 767px) {
  html body .coluna-share {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: 100%;
    max-width: none;
    flex: none;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #e4e4e7;
  }
  html body .coluna-share .share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
  }
  html body .coluna-share .share p,
  html body .coluna-share .sep { display: none; }       /* esconde "Like", "Share" e o traço */
  html body .coluna-share .share ul {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
  }
  html body .coluna-share .share ul li { display: block; margin: 0; }
  html body .coluna-share applause-button { margin-bottom: 0; }
    html body .coluna-share .share p:first-of-type {
    display: block;
    margin: 0;
    font-size: 14px;
    color: #52525b;
  }

  /* abre espaço no fim da página, para a barra não cobrir o rodapé */
  html body:has(.coluna-share) { padding-bottom: 80px; }
  
  /* contador de aplausos ao lado do botão, e não embaixo */
  html body .coluna-share applause-button {
    margin-right: 30px;                       /* reserva espaço para o número */
  }
  html body .coluna-share applause-button .count-container {
    position: absolute;
    top: 50%;
    left: 100%;
    width: auto;
    padding-left: 6px;
    transform: translateY(-50%);
  }
}

/* Legenda da imagem de capa */
html body .legenda-imagem {
  max-width: 62ch;
  margin: 10px auto 2.5rem;
  text-align: center;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #71717a;
}
html body .legenda-imagem p {
  margin: 0 0 6px;
  text-align: inherit;
}
html body .legenda-imagem a {
  font-family: inherit;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #d4d4d8;
  text-underline-offset: 3px;
}
html body .legenda-imagem a:hover {
  color: #000;
  text-decoration-color: var(--azul);
}


/* ===== Ajustes de celular: cabeçalho e home ===== */
@media (max-width: 767px) {

  /* 1 e 2. Logo centralizado em cima, menu em uma linha embaixo */
  html body .site-cabecalho .barra {
    flex-direction: column;       /* logo em cima, menu embaixo */
    align-items: center;          /* tudo centralizado */
    gap: 6px;
    padding: 12px 0 8px;
  }
  html body .site-cabecalho img {
    height: 38px;                 /* logo um pouco menor no celular */
  }
  html body .site-cabecalho nav {
    flex-wrap: nowrap;            /* impede a quebra em duas linhas */
    justify-content: center;
    gap: 2px;
  }
  html body .site-cabecalho nav a {
    font-size: 14px;
    padding: 6px 10px;            /* menos espaço lateral em cada item */
    white-space: nowrap;
  }

  /* 3. Mais respiro nas laterais da home inteira */
  html body .home {
    padding-left: 14px;
    padding-right: 14px;
  }
  html body .home-lead {
    font-size: 1.05rem;            /* subtítulo menor (antes 1.2rem) */
    margin-bottom: 20px;
  }
  html body .home-abertura .botao {
    font-size: 14px;               /* botões menores, só no hero */
    padding: 9px 18px;
    margin-right: 6px;
  }
}


/* ===== Busca ===== */
.busca {
  max-width: 620px;
  margin: 0 auto 32px;
}
html body .busca input {
  width: 100%;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px 14px 50px;
  border: 1.5px solid #e4e4e7;
  border-radius: 999px;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 20px center;
  transition: border-color .15s;
}
html body .busca input:focus { border-color: var(--azul); }

#busca-resultados { margin-top: 18px; }
html body a.busca-item,
html body a.busca-item:hover {
  display: block;
  padding: 16px 6px;
  border-bottom: 1px solid #e4e4e7;
  color: #000;
  text-decoration: none;
  font-family: "Nunito", system-ui, sans-serif;
}
html body a.busca-item:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--azul);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.busca-item strong {
  display: block;
  font-family: "IsidoraSans-Bold", "Nunito", sans-serif;
  font-weight: normal;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 2px 0 4px;
}
.busca-data { font-size: 13px; color: #71717a; }
.busca-resumo { display: block; font-size: 15px; line-height: 1.5; color: #52525b; }
.busca-vazio { text-align: center; color: #71717a; padding: 24px 0; }
