/* Variáveis CSS */
:root {
  --font-heading: "Playfair Display", serif;
  --font-heading-alternate: "Karla", sans-serif;
  --font-body: "Roboto", sans-serif;
  --color-primary: #064e3b;
  --color-secondary: #bdddca;
  --color-background: #fff;
  --color-text: #1b392d;
  --color-light: #ddeee3;
  --color-warning: #dd403a;
  --content-width: 800px;
  --color-esg-background: #f0f9f6;
  --color-esg-border: rgba(6, 78, 59, 0.1);
  --color-esg-highlight: #064e3b;
  --spacer-esg: 6rem;
  --color-diversity-primary: #6b3552; /* Vinho principal */
  --color-diversity-light: #f3ecef; /* Fundo claro rosado */
  --color-diversity-border: rgba(139, 29, 64, 0.1); /* Bordas */
  --color-diversity-highlight: #92457b; /* Destaque */
  --color-diversity-text: #4a0c32; /* Texto principal */
  --spacer-diversity: 4rem; /* Espaçamento padrão */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Estilo geral para links */
a {
  color: var(--color-text);
  text-decoration: underline;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  background-color: var(--color-text);
  text-decoration: none;
}

a:focus {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}

a:active {
  color: var(--color-warning);
}

/* Header fixo */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--color-primary);
  z-index: 1000;
  padding: 0 2rem;
}

.header__container {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header__logo:hover {
  opacity: 0.9;
  background-color: transparent;
  color: white;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav-link {
  color: white;
  text-decoration: none;
  font-family: var(--font-heading-alternate);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.2s ease;
}

.header__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Responsividade */
@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

  .header__nav {
    gap: 1rem;
  }

  .header__nav-link {
    padding: 0.5rem 0.75rem;
  }
}

/* Container principal */
.main-container {
  margin-top: 60px;
  padding: 0;
}

/* Hero section */
.hero {
  width: 100%;
  background-color: var(--color-light);
  margin-bottom: 4rem;
  padding: 4rem 1rem;
}

.hero__content {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: left;
}

.hero__title {
  font-family: var(--font-heading-alternate);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.025;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-transform: uppercase;
}

/* Badges aprimorados */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-primary);
  backdrop-filter: blur(4px);
}

.badge i {
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* Metadados da empresa */
.company-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metadata-label {
  font-size: 0.75rem;
  color: var(--color-text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
  .company-metadata {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metadata-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .metadata-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Alert expandable */
.alert-expandable {
  max-width: 600px;
  margin: 2rem 0;
  border: 1px solid var(--color-warning);
  border-radius: 0.5rem;
  background-color: rgba(221, 64, 58, 0.05);
  overflow: hidden;
}

.alert-header {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.alert-header:hover {
  background-color: rgba(221, 64, 58, 0.08);
}

.alert-header i {
  color: var(--color-warning);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.alert-header p {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.alert-content {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.alert-content.expanded {
  max-height: 200px; /* Ajuste conforme necessário */
  padding: 0.75rem 1.5rem 1.5rem;
}

.alert-header .expand-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.alert-header .expand-icon.rotated {
  transform: rotate(180deg);
}

/* Content section */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 0 1rem 0;
}

.content-section {
  margin-bottom: 6rem;
}

/* Text blocks with narrower width */
.text-block {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.text-block p + p {
  margin-top: 1.5rem;
}

/* Hierarquia de títulos */
.section-title, /* h2 */
.title-h2 {
  font-family: var(--font-heading-alternate);
  font-size: 4.5rem;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.06em;
  margin-bottom: 3rem;
  color: var(--color-text);
  max-width: 10ch; /* Largura máxima para quebra de linha */
}

.title-h3 {
  font-family: var(--font-heading-alternate);
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.08em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  max-width: 10ch;
}

.title-h4 {
  font-family: var(--font-heading-alternate);
  font-size: 1.75rem;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  max-width: 25ch;
}

.title-h5 {
  font-family: var(--font-heading-alternate);
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-text);
  max-width: 30ch;
}

/* Responsividade para os títulos */
@media (max-width: 768px) {
  .section-title,
  .title-h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 12ch;
  }

  .title-h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    max-width: 15ch;
  }

  .title-h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    max-width: 20ch;
  }

  .title-h5 {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
    max-width: 25ch;
  }
}

/* Grid de atividades */
.activities-grid {
  display: grid;
  /* Alterado para um número fixo de colunas baseado no espaço disponível */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Mudado para flex-start */
  text-align: center;
  padding: 1.5rem; /* Aumentado o padding */
  background-color: var(--color-light);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* Garante altura total */
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-esg-border);
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 1rem;
  flex-shrink: 0; /* Impede o ícone de encolher */
}

.activity-title {
  font-size: 0.9375rem; /* Aumentado levemente para melhor legibilidade */
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0; /* Remove margem padrão */
  flex-grow: 1; /* Permite que o texto ocupe o espaço restante */
}

/* Responsividade */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .activity-icon {
    width: 40px;
    height: 40px;
  }

  .activity-icon svg {
    font-size: 1rem;
  }
}

/* Info badges for history section */
.info-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-light);
  border-radius: 2rem;
  font-size: 1rem;
  color: var(--color-text);
}

.info-badge i {
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

  .text-block {
    font-size: 1.1rem;
  }

  .activities-list li {
    padding-left: 1.5rem;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
  }

  .alert {
    margin: 2rem 1rem;
    padding: 1rem;
  }
}

/* Novo bloco para a seção ESG */
.esg-section {
  background-color: var(--color-esg-background);
  padding: var(--spacer-esg) 1rem;
  margin: 2rem 0 0 0;
}

.esg-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ESG Badges System */
.esg-badges-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.esg-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--color-esg-border);
}

.esg-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-esg-border);
}

/* Ícones - versão corrigida */
.esg-badge-icon,
.esg-detail-header .esg-badge-icon {
  flex-shrink: 0; /* Impede que o ícone seja comprimido */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  aspect-ratio: 1; /* Garante que o círculo seja perfeitamente redondo */
}

.esg-badge-icon i,
.esg-detail-header .esg-badge-icon i {
  font-size: 1.25rem;
  line-height: 1;
  width: 1.25rem; /* Força largura consistente */
  height: 1.25rem; /* Força altura consistente */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status colors */
[data-status="true"] .esg-badge-icon,
.esg-detail-section[data-status="true"] .esg-detail-header .esg-badge-icon {
  background-color: #dcfce7;
  color: #15803d;
}

[data-status="false"] .esg-badge-icon,
.esg-detail-section[data-status="false"] .esg-detail-header .esg-badge-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Estilos para badges desabilitadas */
.esg-badge[data-status="false"] {
  cursor: default;
  opacity: 0.75;
}

.esg-badge[data-status="false"]:hover {
  transform: none;
  box-shadow: none;
}

/* Badge text */
.esg-badge-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Responsividade */
@media (max-width: 768px) {
  .esg-badges-container {
    grid-template-columns: 1fr;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .esg-section {
    padding: 2rem 1rem;
  }

  .esg-grid {
    grid-template-columns: 1fr;
  }
}

/* Seções ESG detalhadas */
.esg-details {
  margin-top: 3rem;
  position: relative;
  overflow: visible;
}

.esg-detail-section {
  border-radius: 0.75rem;
  background: white;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-esg-border);
}

.esg-detail-header {
  padding: 1.25rem;
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Conteúdo do acordeon */
.esg-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
    padding 0.3s ease-out;
  background-color: var(--color-esg-background);
  opacity: 0;
  padding: 0;
}

.esg-detail-content.active {
  max-height: 2000px;
  padding: 2rem;
  opacity: 1;
}

.esg-detail-header i {
  transition: transform 0.3s ease;
}

.esg-detail-content.active + .esg-detail-header i {
  transform: rotate(180deg);
}

/* Blocos de conteúdo */
.esg-content-block {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.esg-content-block:last-child {
  margin-bottom: 0;
}

.esg-content-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  opacity: 0.7;
  margin-bottom: 1rem;
}

/* Documento */
.esg-document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--color-esg-background);
  border-radius: 0.5rem;
}

.esg-document-title {
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 100%;
  color: var(--color-text);
}

.esg-document-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.esg-document-link:hover {
  text-decoration: underline;
}

/* Tags */
.esg-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.esg-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--color-esg-background);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Texto */
.esg-content-block p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.9;
}

/* Estilos para os escopos */

.esg-scopes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 768px) {
  .esg-scopes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.esg-scope {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-esg-background);
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esg-scope:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-esg-border);
}

.esg-scope[data-active="true"] .esg-scope-icon {
  background-color: #dcfce7;
  color: #15803d;
}

.esg-scope[data-active="false"] .esg-scope-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.esg-scope-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.esg-scope-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.esg-scope-title {
  font-weight: 500;
  color: var(--color-text);
}

.esg-scope-description {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* Temas materiais */
.esg-material-themes {
  display: grid;
  gap: 1.25rem; /* Aumentado um pouco para dar mais respiro */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Ajustando também o espaçamento do card para compensar a mudança na fonte */
.esg-material-theme {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--color-esg-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esg-material-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-esg-border);
}

.esg-theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-esg-background);
  color: var(--color-primary);
  font-weight: 600;
  flex-shrink: 0;
}

.esg-theme-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.esg-theme-title {
  /* Removido o font-weight: 500 */
  font-size: 0.9375rem; /* Aumentado levemente para melhor legibilidade */
  line-height: 1.5;
  color: var(--color-text);
  /* Adicionado text-transform para garantir que apenas a primeira letra seja maiúscula */
  text-transform: lowercase;
}

/* Adiciona regra para primeira letra maiúscula */
.esg-theme-title::first-letter {
  text-transform: uppercase;
}

.esg-theme-pillar {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .esg-material-themes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Grid dos ODS */
.esg-sdg-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(80px, 1fr)
  ); /* Valor menor e fixo */
  gap: 1rem;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .esg-sdg-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.esg-sdg-item {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  padding: 0.75rem; /* Reduzido um pouco para combinar com o novo tamanho */
  transition: transform 0.2s ease;
}

.esg-sdg-item:hover {
  transform: translateY(-2px);
}

.esg-sdg-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.esg-sdg-number {
  display: none;
}

/* Pilares TCFD */
.esg-tcfd-pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .esg-tcfd-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.esg-tcfd-pillar {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--color-esg-border);
}

.esg-tcfd-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-esg-background);
  color: var(--color-primary);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.esg-tcfd-pillar-icon i {
  font-size: 1.5rem;
}

.esg-tcfd-pillar-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.esg-tcfd-pillar-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.esg-tcfd-pillar-description {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}

/* Blocos destacados */
.esg-highlight-block {
  background-color: var(--color-primary);
  border: none;
}

.esg-highlight-block .esg-document {
  background: transparent;
  padding: 0;
}

.esg-highlight-block .esg-document-title {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.esg-highlight-block .esg-document-link {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: background-color 0.2s ease;
}

.esg-highlight-block .esg-document-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.esg-highlight-block .esg-document-link i {
  color: white;
}

/* Seção de Diversidade e Inclusão */
.diversity-section {
  background-color: var(--color-diversity-light);
  padding: var(--spacer-diversity) 1rem;
  margin: 0;
}

.diversity-section .section-title {
  color: var(--color-diversity-primary);
}

.diversity-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Cards de destaque */
.diversity-highlights {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* Aumentei o minmax para cards maiores */
  gap: 1.5rem;
  margin-top: 2rem;
}

.diversity-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 1px solid var(--color-diversity-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diversity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-diversity-border);
}

.diversity-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-diversity-light);
  color: var(--color-diversity-primary);
  flex-shrink: 0;
  margin-top: 0.25rem; /* Pequeno ajuste para alinhar visualmente com o texto */
}

.diversity-card-icon i {
  font-size: 1.5rem;
}

.diversity-card-content {
  display: flex;
  flex-direction: column;
  flex: 1; /* Permite que o conteúdo ocupe todo o espaço disponível */
  gap: 0.25rem;
}

.diversity-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-diversity-primary);
  line-height: 1.2;
  font-family: var(--font-heading-alternate);
}

.diversity-card-label {
  font-size: 0.875rem;
  color: var(--color-diversity-text);
  opacity: 0.8;
}

/* Estilo para a descrição adicional */
.diversity-card-description {
  margin-top: 0.5rem;
  font-size: 0.813rem;
  color: var(--color-diversity-text);
  opacity: 0.7;
  line-height: 1.4;
}

/* Estilo para o breakdown de funcionários */
.diversity-card-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-diversity-border);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-diversity-primary);
  padding: 0.25rem 0;
}

.breakdown-label {
  opacity: 0.8;
}

.breakdown-value {
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  .diversity-section {
    padding: 2rem 1rem;
  }

  .diversity-card-value {
    font-size: 1.5rem;
  }
  .diversity-card {
    padding: 1.25rem;
  }

  .diversity-card-breakdown {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
}

/* Estilos para a seção de gênero */
.diversity-gender {
  margin-top: 4rem;
}

.diversity-subtitle {
  font-family: var(--font-heading-alternate);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-diversity-primary);
  margin-bottom: 3rem; /* Aumentado para dar mais espaço */
}

.gender-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Aumentado um pouco para compensar a remoção do fundo */
}

.gender-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-diversity-primary);
  font-family: var(--font-heading-alternate);
  text-align: left;
}

.chart-container {
  height: 240px;
  position: relative;
}

/* Responsividade */
@media (max-width: 1024px) {
  .gender-charts {
    grid-template-columns: 1fr;
  }
}

/* Evolução temporal */
.diversity-trend {
  margin-top: 4rem;
}

/* Estilo das tabs */
.trend-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-diversity-border);
  padding-bottom: 0.5rem;
}

.trend-tab {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-family: var(--font-heading-alternate);
  font-size: 1rem;
  color: var(--color-diversity-text);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.trend-tab.active {
  opacity: 1;
}

.trend-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-diversity-primary);
}

.trend-views {
  position: relative;
}

.trend-view {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.trend-view.active {
  display: block;
}

.trend-visualization {
  margin: 3rem auto;
  height: 320px;
  position: relative;
  width: 100%;
}

.trend-visualization svg {
  width: 100% !important;
  height: 100% !important;
  display: block; /* Importante para remover espaço extra */
}

.trend-description {
  font-size: 1rem;
  color: var(--color-diversity-primary);
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Adicionar responsividade básica */
@media (max-width: 768px) {
  .trend-visualization {
    height: 180px;
  }
}

.diversity-divider {
  margin: 5rem 0;
  position: relative;
  text-align: center;
}

.diversity-divider:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-diversity-border);
}

.diversity-divider-text {
  position: relative;
  background: var(--color-diversity-light);
  padding: 0 1rem;
  color: var(--color-diversity-primary);
  font-family: var(--font-heading-alternate);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Estilos para a seção de raça/cor */
.diversity-race {
  margin-top: 4rem;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--color-diversity-border);
}

.race-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Container do gráfico precisa ter altura suficiente para o grid + legenda */
.race-chart .chart-container {
  min-height: 400px; /* Altura base que acomode grid e legenda */
  position: relative; /* Garante que o contexto de posicionamento esteja correto */
}

/* Garante que o SVG se ajuste ao container */
.race-chart .chart-container svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsividade */
@media (max-width: 1024px) {
  .race-charts {
    grid-template-columns: 1fr;
  }
}

/* Evolução temporal */
.diversity-race-trend {
  margin-top: 4rem;
}

/* Estilo das tabs */
.race-trend-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-diversity-border);
  padding-bottom: 0.5rem;
}

.race-trend-tab {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-family: var(--font-heading-alternate);
  font-size: 1rem;
  color: var(--color-diversity-text);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.race-trend-tab.active {
  opacity: 1;
}

.race-trend-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-diversity-primary);
}

.race-trend-views {
  position: relative;
}

.race-trend-view {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.race-trend-view.active {
  display: block;
}

.race-trend-visualization {
  margin: 3rem auto;
  height: 320px;
  position: relative;
  width: 100%;
}

.race-trend-visualization svg {
  width: 100% !important;
  height: 100% !important;
  display: block; /* Importante para remover espaço extra */
}

.race-trend-description {
  font-size: 1rem;
  color: var(--color-diversity-primary);
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  line-height: 1.6;
}

/* A animação fadeIn pode ser compartilhada, pois é apenas um nome de keyframe */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .race-trend-visualization {
    height: 180px;
  }
}

.main-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 4rem 1rem 1rem;
  margin-top: 0;
}

.footer-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-heading-alternate);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  background-color: transparent;
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-button:hover {
  background-color: white;
  color: var(--color-primary);
}

.subfooter {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.subfooter-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .subfooter-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Adicione ao final do arquivo styles.css */
.hero__content.loading {
  opacity: 0.7;
}

/* Opcional: adicionar um efeito de pulsar enquanto carrega */
.hero__content.loading .metadata-value,
.hero__content.loading .badge,
.hero__content.loading .hero__title {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Ajuste para os ícones Phosphor */
.activity-icon i {
  color: #ffffff;
  font-size: 1.25rem;
}

/* Adicione ao arquivo styles.css */
.update-info {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.update-info i {
  font-size: 1rem;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.history-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.history-list li:last-child {
  border-bottom: none;
}

.history-list li i {
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.history-list li span {
  flex: 1;
  line-height: 1.6;
}

/* Atualizar os estilos do badge */
.esg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-left: auto;
}

/* Estilo do tooltip */
.esg-status-badge::after {
  content: "Clique para ver a justificativa da empresa";
  position: fixed; /* Mudamos para fixed */
  transform: translate(-50%, -100%); /* Centraliza horizontalmente */
  left: 50%; /* Centraliza em relação ao badge */
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  margin-top: -10px;
  z-index: 1000;
}

.esg-status-badge:hover::after {
  opacity: 1;
  visibility: visible;
}

.esg-detail-section[data-status="false"] .esg-status-badge {
  background-color: #fee2e2;
  color: #dc2626;
}

.esg-detail-section[data-status="false"] .esg-detail-header {
  border-left: 4px solid #fee2e2;
}

.esg-detail-header i.ph-caret-down {
  transition: transform 0.3s ease;
}

.diversity-card-message {
  font-size: 0.875rem;
  color: var(--color-diversity-text);
  opacity: 0.7;
  text-align: center;
  padding: 0.5rem 0;
}

/* Bloco de texto explicativo */
.section-description {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.9;
  margin: -2rem 0 3rem 0;
  padding: 1rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 0.5rem;
}

/* Ícone */
.section-description i {
  flex-shrink: 0;
  font-size: 1.25rem;
  margin-top: 0.125rem; /* Ajuste fino do alinhamento vertical */
  opacity: 0.7;
}

/* Variação para seção ESG */
.esg-section .section-description {
  color: var(--color-text);
  margin: -1.5rem 0 2.5rem;
  max-width: none;
  background-color: rgba(6, 78, 59, 0.03);
}

/* Variação para seção de diversidade */
.diversity-section .section-description {
  color: var(--color-diversity-text);
  margin: -1.5rem 0 2.5rem;
  background-color: rgba(107, 53, 82, 0.03);
}

.diversity-section .section-description i {
  color: var(--color-diversity-primary);
}

/* Versão mais compacta para uso dentro de cards */
.section-description--compact {
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .section-description {
    font-size: 0.875rem;
    margin: -1rem auto 2rem;
    padding: 0.875rem 1rem;
  }
}

/* Container do disclaimer */
.page-disclaimer {
  margin: 0;
  padding: 6rem 1rem;
  background-color: var(--color-light);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.disclaimer-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.disclaimer-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid var(--color-esg-border);
}

.disclaimer-icon {
  flex-shrink: 0;
  color: var(--color-warning);
  font-size: 1.5rem;
  margin-top: 0.125rem;
}

.disclaimer-text {
  flex: 1;
}

.disclaimer-title {
  font-family: var(--font-heading-alternate);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-warning);
}

.disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclaimer-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  opacity: 0.9;
}

.disclaimer-list li:last-child {
  margin-bottom: 0;
}

.disclaimer-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-warning);
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
  .page-disclaimer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
  }

  .disclaimer-content {
    padding: 1.25rem;
  }

  .disclaimer-icon {
    font-size: 1.25rem;
  }

  .disclaimer-title {
    font-size: 1rem;
  }

  .disclaimer-list li {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 2rem 1rem; /* Reduzido o padding vertical, mantido o horizontal */
  }

  .hero {
    padding: 3rem 1rem 2rem; /* Ajustado padding do hero */
  }

  /* Ajuste do header em mobile */
  .header__nav {
    gap: 0.5rem; /* Reduz o espaço entre os links */
  }

  .header__nav-link {
    padding: 0.5rem 0.75rem; /* Reduz o padding dos links */
    font-size: 0.8125rem; /* Reduz levemente o tamanho da fonte */
    white-space: nowrap; /* Previne quebra de linha */
  }

  /* Ajuste para os cards de processo */
  .process-step {
    margin: 0 1rem; /* Adiciona margem lateral */
  }
}

/* Ajuste específico para telas muito pequenas */
@media (max-width: 360px) {
  .header__container {
    padding: 0 0.5rem; /* Reduz ainda mais o padding lateral */
  }

  .header__logo {
    font-size: 1.25rem; /* Reduz o tamanho do logo */
  }

  .header__nav-link {
    padding: 0.5rem; /* Reduz ainda mais o padding */
    font-size: 0.75rem; /* Reduz mais a fonte */
  }
}

.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #f0f0f0;
  font-size: 0.8em;
  color: #666;
  margin-left: 8px;
  vertical-align: middle;
}

.year-badge i {
  font-size: 0.9em;
}

.esg-content-title .year-badge {
  margin-top: -2px;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.partial-data-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #f59e0b; /* cor de alerta */
  font-size: 0.9em;
}

.partial-data-badge i {
  font-size: 1.1em;
}

.status-active {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-inactive {
  background-color: var(--color-error-light);
  color: var(--color-error);
}

.status-indeterminate {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}
