/* Reset básico e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, filter 0.4s ease;
}

/* Scrollbar escura global */
html {
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}
html::-webkit-scrollbar {
    width: 8px;
}
html::-webkit-scrollbar-track {
    background: #1a1a1a;
}
html::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: scroll;
}

/* Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000000;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    pointer-events: none; /* evita bloqueio de clique nos botões */
}

.logo-img {
    height: 26px;
    width: auto;
    display: block;
    object-fit: contain;
}

.left-header,
.header-actions {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .logo-img {
        height: 18px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon {
    cursor: pointer;
    color: #ccc;
}

.btn-entrar {
    background-color: #333333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-entrar:hover {
    background-color: #444444;
}

/* Layout Principal */
.container {
    display: flex;
    flex: 1;
    overflow: visible;
    padding-top: 60px;
}

/* Menu Lateral (Sidebar) */
.sidebar {
    width: 260px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    /* A linha abaixo cria a animação suave de fechar/abrir */
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.sidebar a:hover {
    color: #aaaaaa;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.4s ease;
}



.sidebar-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estado "Escondido" da barra lateral */
.sidebar.collapsed {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    overflow: hidden; /* Evita que o texto vaze enquanto ela fecha */
}

/* Atualização da área central para o novo layout de portfólio */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto; /* Permite rolar a página */
    align-items: center; /* Centraliza a galeria na tela */
}

.portfolio-wrapper {
    width: 100%;
    max-width: 1200px; /* Largura máxima elegante */
    display: flex;
    flex-direction: column;
    gap: 50px; /* Espaço entre o widget principal e a galeria */
    padding-bottom: 50px;
}

.portfolio-wrapper h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-align: center;
}


/* Estilos gerais dos Cards (Widgets) */
.card {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s, opacity 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Garante que a imagem respeite as bordas arredondadas da div pai */
.card-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden; /* Corta qualquer pedaço da imagem que passe da borda */
    display: flex;
}

/* Formata a imagem para preencher o espaço sem distorcer */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* O segredo está aqui: faz a imagem cobrir tudo como um papel de parede */
    transition: transform 0.3s ease; /* Prepara a imagem para a animação de hover */
}

/* EFEITO BÔNUS: Dá um zoom leve na imagem quando você passa o mouse por cima do card! */
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-text p {
    font-size: 14px;
    color: #999999;
}

.card-text p span {
    margin: 0 4px;
}

/* Tamanhos específicos - Destaque vs Menores */
.featured-card .card-image {
    aspect-ratio: 21 / 9; /* Formato wide (retângulo deitado) */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
    gap: 25px; /* Espaço entre os 3 widgets menores */
}

.small-card .card-image {
    aspect-ratio: 4 / 3; /* Formato um pouco mais quadrado */
}

/* Cores de Fundo (Simulando as imagens de exemplo) */
.bg-gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #581c87 0%, #8b5cf6 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
}

/* Responsividade: transforma em 1 coluna no celular */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .featured-card .card-image {
        aspect-ratio: 16 / 9;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* 1 card por linha no celular */
    }
}


.left-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.4s ease, background-color 0.4s ease;
}

.icon-btn:hover {
    background-color: #2f2f2f;
    color: #ffffff;
}

/* =========================================================
   SEÇÃO DE BOAS-VINDAS (Hero)
   ========================================================= */

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    min-height: 75vh;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #1a1a1a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botão Centralizado estilo OpenAI */
.hero-btn {
    background-color: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.4s ease, color 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn:hover {
    background-color: #e4e4e7;
    transform: translateY(-2px); /* Efeito sutil de levantar ao passar o mouse */
}

/* Ajustes da apresentação para telas de celular */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: 50vh;
        gap: 30px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: 48px;
        margin-top: 50px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-image {
        min-height: 300px;
    }
}

/* =========================================================
   SEÇÃO TRABALHOS RECENTES (Página Principal)
   ========================================================= */

.recent-work-section {
    width: 100%;
    margin-top: 80px; /* Espaço considerável após os cards */
    padding-top: 40px;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-align: left; /* Alinhado à esquerda como no modelo de Investigações */
}

.list-container {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    padding: 24px 0;
    border-top: 1px solid #222; /* Linha divisória fina */
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.list-item:hover {
    opacity: 0.7;
}

/* Coluna da Esquerda (Meta) */
.item-meta {
    flex: 0 0 180px; /* Largura fixa para alinhar os títulos na direita */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-category {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-date {
    font-size: 13px;
    color: #666;
}

/* Coluna da Direita (Conteúdo) */
.item-content {
    flex: 1;
}

.item-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.item-content p {
    font-size: 15px;
    color: #999;
    line-height: 1.5;
}

/* Responsividade */
@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
        gap: 12px;
    }
    .item-meta {
        flex: none;
        flex-direction: row;
        gap: 15px;
    }
}

/* =========================================================
   FOOTER (Rodapé Estilo Minimalista)
   ========================================================= */

.site-footer {
    width: 100%;
    background-color: #000000;
    padding: 60px 20px 40px 20px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
    margin-top: 80px; /* Garante distância dos trabalhos recentes */
}

.footer-container {
    width: 100vw;
    max-width: 1920px; /* Mesmo alinhamento dos seus cards */
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 14px;
    color: #888888;
    text-decoration: none;
    transition: color 0.4s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

/* Parte Inferior do Footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    font-size: 12px;
    color: #666666;
}

.footer-info {
    display: flex;
    gap: 20px;
}

.footer-info a {
    color: #666666;
    text-decoration: none;
}

.footer-info a:hover {
    color: #888888;
}

/* Responsividade básica */
@media (max-width: 768px) {
    body.landing h1 {
        font-size: 28px;
    }
}

/* =========================================================
   LANDING PAGE (Página de Entrada - index.html)
   ========================================================= */

body.landing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

body.landing::-webkit-scrollbar {
    display: none;               /* Chrome/Safari */
}

body.landing h1 {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 1000px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #fff;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
}

.social-links a:hover {
    background-color: #2a2a2a;
}

.social-links a .icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}

body.landing p {
    max-width: 700px;
    color: #ccc;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-start {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-start:hover {
    opacity: 0.85;
}

body.landing footer {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.8rem;
    color: #555;
}

/* --- Mobile Sidebar Overlay & Behaviors --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Fica acima do cabeçalho */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        display: flex !important; /* Garante que a barra não fique invisível devido ao display:none antigo */
        width: 260px !important; /* Força a largura ignorando a classe .collapsed */
        padding: 20px 24px !important; /* Força o espaçamento ignorando a classe .collapsed */
        opacity: 1 !important; /* Força a opacidade ignorando a classe .collapsed */
        top: 0;
        left: -100%; /* Começa escondida fora da tela */
        height: 100vh;
        z-index: 9999 !important; /* Fica acima do overlay e do cabeçalho */
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.8);
        max-width: 80%;
        background-color: #000000; /* Mantém o fundo alinhado com o tema dark global */
    }

    .sidebar.mobile-active {
        left: 0; /* Desliza para dentro da tela */
    }
}

/* =========================================================
   MEDIA QUERIES ADICIONAIS PARA DISPOSITIVOS MÓVEIS
   (Afetam APENAS a landing page - body.landing)
   ========================================================= */

@media (max-width: 600px) {
  body.landing {
    padding: 2rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.landing h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  body.landing .social-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  body.landing .social-links a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  body.landing p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  body.landing .btn-start {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.85rem 1.5rem;
    margin-bottom: 1rem;
  }

  body.landing footer {
    position: static;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
  }
}

/* iPhone SE (375px) */
@media (max-width: 375px) {
  body.landing h1 {
    font-size: 1.5rem;
  }

  body.landing p {
    font-size: 0.88rem;
  }

  body.landing .btn-start {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}

/* iPhone 14 / 15 (390px) e iPhone Plus/Pro Max (430px) */
@media (min-width: 376px) and (max-width: 430px) {
  body.landing h1 {
    font-size: 1.65rem;
  }

  body.landing p {
    font-size: 0.92rem;
  }

  body.landing .btn-start {
    font-size: 0.95rem;
  }
}

/* Garante padding seguro para o notch/Dynamic Island (apenas landing) */
@supports (padding-top: env(safe-area-inset-top)) {
  body.landing {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* Hero para páginas de post: coluna única centralizada */
.hero-section--post {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    max-width: 800px !important;
    grid-template-columns: unset !important;
    gap: 8px !important;
    min-height: unset !important;
    padding: 20px 0 10px !important;
    margin-bottom: 8px !important;
}

.hero-section--post .hero-content {
    align-items: center !important;
    text-align: center !important;
}

.hero-section--post .hero-title {
    text-align: center;
}

.hero-section--post .hero-subtitle {
    text-align: center;
}

/* =========================================================
   SEÇÃO LECTURES
   ========================================================= */

.lectures-section {
    width: 100%;
    max-width: 1400px;
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.lectures-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.lectures-description {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    color: #a1a1aa;
    line-height: 1.7;
    max-width: 600px;
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.lecture-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.lecture-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.lecture-card__icon {
    font-size: 1.75rem;
    color: #555;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
}

.lecture-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lecture-card__tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    width: fit-content;
}

.lecture-card__title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
}

.lecture-card__desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.lectures-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lectures-cta:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* Tema claro */
body.light-theme .lectures-section {
    border-top-color: #e5e7eb;
}

body.light-theme .lectures-description {
    color: #4b5563;
}

body.light-theme .lecture-card {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.light-theme .lecture-card:hover {
    border-color: #d1d5db;
}

body.light-theme .lecture-card__title {
    color: #111111;
}

body.light-theme .lecture-card__desc {
    color: #6b7280;
}

body.light-theme .lectures-cta {
    color: #4b5563;
    border-color: #d1d5db;
}

body.light-theme .lectures-cta:hover {
    color: #111111;
    border-color: #111111;
}

@media (max-width: 768px) {
    .lectures-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SEÇÃO SOBRE O JOURNAL
   ========================================================= */

.about-section {
    width: 100%;
    max-width: 1400px;
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.about-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
}

.about-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-description {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 680px;
}

strong {
            font-family: 'Lora', Georgia, serif;
            font-style: normal;
            font-weight: 600;
            transition: color 0.4s ease;
        }


.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}



.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}



.pillar:hover {
    border-color: #333;
}

.pillar-icon {
    font-size: 1.8rem;
    color: #555;
    line-height: 1;
}

.pillar h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
}

.pillar p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0rem;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
}

/* Tema claro */
body.light-theme .about-title {
    color: #111111;
}

body.light-theme .about-description {
    color: #4b5563;
}

body.light-theme .pillar {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.light-theme .pillar:hover {
    border-color: #d1d5db;
}

body.light-theme .pillar h3 {
    color: #111111;
}

body.light-theme .pillar p {
    color: #6b7280;
}

body.light-theme .about-section {
    border-top-color: #e5e7eb;
}

@media (max-width: 768px) {
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .about-title {
        font-size: 2rem;
    }
    .about-description {
        font-size: 1rem;
    }
}

/* ===== POSTS SECTION ===== */
.posts-section {
    width: 100%;
    max-width: 2100px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Post Card Base */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.post-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
    border-color: #3a3a3a;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.88);
    transition: filter 0.2s ease;
}

.post-card:hover .post-card__image img {
    filter: brightness(1);
}

.post-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.post-card__category {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.post-card__date {
    font-size: 0.76rem;
    color: #6b7280;
}

.post-card__title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.45rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.post-card__excerpt {
    font-size: 0.855rem;
    color: #9ca3af;
    line-height: 1.65;
    margin: 0;
}

/* Featured Post */
.post-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Estoura o padding da seção (1rem) e da área principal (40px)
       para o card ocupar toda a largura horizontal e dominar como post principal */
    margin-left: calc(-1rem - 40px);
    margin-right: calc(-1rem - 40px);
    margin-bottom: 1.5rem;
    min-height: 320px;
}

.post-card--featured .post-card__image {
    height: 100%;
    min-height: 320px;
}

.post-card--featured .post-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}

.post-card--featured .post-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
}

.post-card--featured .post-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

/* Post Grid (3 smaller cards) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card--small .post-card__image {
    height: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-card--featured {
        grid-template-columns: 1fr;
        min-height: unset;
        margin-left: 0;
        margin-right: 0;
    }

    .post-card--featured .post-card__image {
        height: 200px;
        min-height: unset;
    }

    .post-card--featured .post-card__body {
        padding: 1.25rem;
    }

    .post-card--featured .post-card__title {
        font-size: 1.1rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .logo-img {
        height: 22px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   TEMA CLARO
   ========================================================= */

body.light-theme {
    background-color: #ffffff;
    color: #363737;
}

body.light-theme header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

body.light-theme .icon-btn {
    color: #363737;
}

body.light-theme .icon-btn:hover {
    background-color: #f3f4f6;
    color: #111111;
}

body.light-theme .sidebar {
    background-color: #ffffff;
}

body.light-theme .sidebar a {
    color: #363737;
}

body.light-theme .sidebar a:hover {
    color: #111111;
}

body.light-theme .hero-title {
    color: #111111;
}

body.light-theme .hero-subtitle {
    color: #4b5563;
}

body.light-theme .hero-btn {
    background-color: #111111;
    color: #ffffff;
}

body.light-theme .hero-btn:hover {
    background-color: #363737;
}

/* Post cards no tema claro */
body.light-theme .post-card {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.light-theme .post-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

body.light-theme .post-card__title {
    color: #111111;
}

body.light-theme .post-card__excerpt {
    color: #4b5563;
}

body.light-theme .post-card__date {
    color: #6b7280;
}

body.light-theme .section-title {
    color: #111111;
    border-bottom-color: #e5e7eb;
}

/* Conteúdo de post no tema claro */
body.light-theme .post-content p {
    color: #363737;
}

body.light-theme .post-content h2,
body.light-theme .post-content h3 {
    color: #111111;
}

body.light-theme .post-content strong {
    color: #111111;
}

body.light-theme .post-content strong em,
body.light-theme .post-content em strong {
    color: #111111;
}

body.light-theme .post-content u {
    text-decoration-color: #363737;
}

/* Posts page editorial */
body.light-theme .posts-nav {
    border-bottom-color: #e5e7eb;
}

body.light-theme .posts-nav a {
    color: #6b7280;
}

body.light-theme .posts-nav a:hover,
body.light-theme .posts-nav a.active {
    color: #111111;
    border-bottom-color: #111111;
}

body.light-theme .post-mini__title,
body.light-theme .post-featured-center__title,
body.light-theme .post-sidebar-item__title,
body.light-theme .post-list-item__title,
body.light-theme .sidebar-title {
    color: #111111;
}

body.light-theme .post-mini__excerpt,
body.light-theme .post-featured-center__excerpt,
body.light-theme .post-list-item__excerpt {
    color: #4b5563;
}

body.light-theme .post-mini__meta,
body.light-theme .post-featured-center__meta,
body.light-theme .post-sidebar-item__meta,
body.light-theme .post-list-item__meta {
    color: #9ca3af;
}

body.light-theme .post-mini,
body.light-theme .post-list-item {
    border-bottom-color: #e5e7eb;
}

body.light-theme .post-sidebar-item {
    border-bottom-color: #f3f4f6;
}

body.light-theme .posts-divider {
    border-top-color: #e5e7eb;
}

body.light-theme .newsletter-box {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.light-theme .newsletter-box__title,
body.light-theme .newsletter-box p {
    color: #363737;
}

body.light-theme .newsletter-box input[type="email"] {
    background: #ffffff;
    border-color: #d1d5db;
    color: #363737;
}

body.light-theme .newsletter-box button {
    background: #111111;
    color: #ffffff;
}

body.light-theme .newsletter-box button:hover {
    background: #363737;
}

/* Footer no tema claro */
body.light-theme .site-footer {
    background-color: #ffffff;
    border-top-color: #e5e7eb;
}

body.light-theme .footer-logo,
body.light-theme .footer-column h4 {
    color: #111111;
}

body.light-theme .footer-column a {
    color: #6b7280;
}

body.light-theme .footer-column a:hover {
    color: #111111;
}

body.light-theme .footer-bottom {
    border-top-color: #e5e7eb;
    color: #9ca3af;
}

body.light-theme .logo-img {
    filter: invert(1);
}











/* ── Layout geral da página de posts ── */
        .posts-page {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem 5rem;
        }

        /* ── Nav interna da página ── */
        .posts-nav {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            padding: 1.25rem 0 2rem;
            border-bottom: 1px solid #1f1f1f;
            margin-bottom: 2.5rem;
        }

        .posts-nav a {
            font-size: 0.875rem;
            font-weight: 500;
            color: #6b7280;
            text-decoration: none;
            padding-bottom: 4px;
            transition: color 0.4s ease;
        }

        .posts-nav a:hover { color: #e2e8f0; }
        .posts-nav a.active {
            color: #e2e8f0;
            border-bottom: 2px solid #e2e8f0;
        }

        /* ── Grid principal: esquerda | centro | direita ── */
        .posts-grid-main {
            display: grid;
            grid-template-columns: 260px 1fr 220px;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        /* Coluna esquerda: 2 posts pequenos empilhados */
        .posts-col-left {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .post-mini {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            text-decoration: none;
            color: inherit;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #1f1f1f;
        }

        .post-mini:last-child { border-bottom: none; }

        .post-mini__image {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 8px;
            overflow: hidden;
        }

        .post-mini__image img {
            width: 100%; height: 100%;
            object-fit: cover;
            filter: brightness(0.85);
            transition: filter 0.2s, transform 0.3s;
        }

        .post-mini:hover .post-mini__image img {
            filter: brightness(1);
            transform: scale(1.03);
        }

        .post-mini__title {
            font-size: 0.975rem;
            font-weight: 600;
            color: #e2e8f0;
            line-height: 1.4;
            margin: 0;
        }

        .post-mini__excerpt {
            font-size: 0.8rem;
            color: #9ca3af;
            margin: 0;
            line-height: 1.5;
        }

        .post-mini__meta {
            font-size: 0.72rem;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Coluna central: post em destaque */
        .post-featured-center {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            text-decoration: none;
            color: inherit;
        }

        .post-featured-center__image {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 10px;
            overflow: hidden;
        }

        .post-featured-center__image img {
            width: 100%; height: 100%;
            object-fit: cover;
            filter: brightness(0.85);
            transition: filter 0.2s, transform 0.3s;
        }

        .post-featured-center:hover .post-featured-center__image img {
            filter: brightness(1);
            transform: scale(1.02);
        }

        .post-featured-center__body { text-align: center; padding: 0 0.5rem; }

        .post-featured-center__title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f1f5f9;
            line-height: 1.3;
            margin-bottom: 0.5rem;
            letter-spacing: -0.3px;
        }

        .post-featured-center__excerpt {
            font-size: 0.9rem;
            color: #9ca3af;
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        .post-featured-center__meta {
            font-size: 0.72rem;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Coluna direita: Mais Popular */
        .posts-col-right { display: flex; flex-direction: column; gap: 0; }

        .sidebar-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: #e2e8f0;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-title a {
            font-size: 0.7rem;
            font-weight: 500;
            color: #4b5563;
            text-decoration: none;
            text-transform: none;
            letter-spacing: 0;
            transition: color 0.2s;
        }

        .sidebar-title a:hover { color: #9ca3af; }

        .post-sidebar-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            text-decoration: none;
            color: inherit;
            padding: 0.85rem 0;
            border-bottom: 1px solid #1a1a1a;
            transition: opacity 0.2s, border-color 0.4s ease;
        }

        .post-sidebar-item:hover { opacity: 0.75; }
        .post-sidebar-item:last-child { border-bottom: none; }

        .post-sidebar-item__body { flex: 1; }

        .post-sidebar-item__title {
            font-size: 0.82rem;
            font-weight: 600;
            color: #e2e8f0;
            line-height: 1.4;
            margin-bottom: 0.25rem;
        }

        .post-sidebar-item__meta {
            font-size: 0.68rem;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .post-sidebar-item__thumb {
            width: 48px;
            height: 48px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            background: #1f1f1f;
        }

        .post-sidebar-item__thumb img {
            width: 100%; height: 100%;
            object-fit: cover;
        }

        /* Placeholder de thumb vazio */
        .thumb-placeholder {
            width: 48px; height: 48px;
            border-radius: 6px;
            background: #1f1f1f;
            flex-shrink: 0;
        }

        /* ── Divisor ── */
        .posts-divider {
            border: none;
            border-top: 1px solid #1f1f1f;
            margin: 0 0 2.5rem;
        }

        /* ── Lista de posts + newsletter ── */
        .posts-bottom {
            display: grid;
            grid-template-columns: 1fr 260px;
            gap: 3rem;
        }

        .posts-list { display: flex; flex-direction: column; }

        .post-list-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1.5rem;
            text-decoration: none;
            color: inherit;
            padding: 1.5rem 0;
            border-bottom: 1px solid #1a1a1a;
            transition: opacity 0.2s, border-color 0.4s ease;
        }

        .post-list-item:hover { opacity: 0.75; }
        .post-list-item:first-child { border-top: 1px solid #1a1a1a; }

        .post-list-item__body { flex: 1; }

        .post-list-item__title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #f1f5f9;
            margin-bottom: 0.35rem;
            line-height: 1.35;
        }

        .post-list-item__excerpt {
            font-size: 0.875rem;
            color: #9ca3af;
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        .post-list-item__meta {
            font-size: 0.72rem;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .post-list-item__thumb {
            width: 100px;
            height: 70px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: #1a1a1a;
        }

        .post-list-item__thumb img {
            width: 100%; height: 100%;
            object-fit: cover;
        }

        /* Newsletter box */
        .newsletter-box {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            padding: 1.5rem;
            border: 1px solid #1f1f1f;
            border-radius: 10px;
            background: #0d0d0d;
            height: fit-content;
        }

        .newsletter-box__title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #e2e8f0;
        }

        .newsletter-box p {
            font-size: 0.8rem;
            color: #6b7280;
            line-height: 1.5;
        }

        .newsletter-box input[type="email"] {
            width: 100%;
            padding: 0.6rem 0.85rem;
            background: #161616;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            color: #e2e8f0;
            font-size: 0.8rem;
            outline: none;
            transition: border-color 0.2s, background-color 0.4s ease, color 0.4s ease;
        }

        .newsletter-box input[type="email"]::placeholder { color: #4b5563; }
        .newsletter-box input[type="email"]:focus { border-color: #3a3a3a; }

        .newsletter-box button {
            width: 100%;
            padding: 0.6rem;
            background: #e2e8f0;
            color: #000;
            border: none;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, background-color 0.4s ease, color 0.4s ease;
        }

        .newsletter-box button:hover { background: #cbd5e1; }

        /* ── Responsivo ── */
        @media (max-width: 900px) {
            .posts-grid-main { grid-template-columns: 1fr; }
            .posts-col-right { display: none; }
            .posts-bottom { grid-template-columns: 1fr; }
        }

        @media (max-width: 600px) {
            .posts-nav { gap: 1.5rem; }
            .post-featured-center__title { font-size: 1.2rem; }
        }

/* =========================================================
   SEÇÃO CTA DE DESTAQUE (estilo Anthropic) — Pilar da Ciência
   Card grande arredondado que se expande com o scroll e revela
   os elementos com fade-in (animação via GSAP em index.html).
   ========================================================= */

.cta-section {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;   /* centraliza o card mesmo quando ele fica maior que a section */
    padding: 20px 0;
}

.cta-bg {
    --cta: 0;                     /* progresso: 0 = recolhido · 1 = tela cheia (animado via GSAP) */
    --cta-w0: min(1200px, 100%);  /* largura no estado recolhido (maior que antes) */
    --cta-gap: 40px;              /* margem vertical no estado recolhido */
    flex-shrink: 0;               /* deixa o card ultrapassar a largura da section ao expandir */
    display: flex;                /* centraliza o conteúdo quando o card cresce em altura */
    align-items: center;
    justify-content: center;
    /* --vw = largura visível real (sem a barra de rolagem), medida pelo JS.
       Assim o card chega até a borda da tela sem gerar scroll horizontal. */
    width: calc(var(--cta-w0) + (var(--vw, 100vw) - var(--cta-w0)) * var(--cta));
    min-height: calc(100vh * var(--cta));   /* cresce na vertical até a tela inteira */
    margin-top: calc(var(--cta-gap) * (1 - var(--cta)));      /* margem some ao expandir */
    margin-bottom: calc(var(--cta-gap) * (1 - var(--cta)));
    border-radius: calc(24px * (1 - var(--cta)));   /* bordas somem ao expandir */
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 12% 12%, rgba(216, 130, 200, 0.16) 0%, rgba(216, 130, 200, 0) 55%),
        linear-gradient(135deg, #0c0a18 0%, #171029 50%, #2a1c40 100%);
    box-shadow: 0 30px 80px -40px rgba(35, 20, 55, 0.7);
    will-change: width, min-height, margin, border-radius;
}

/* Variações de cor por pilar */
.cta-bg--arte {
    background:
        radial-gradient(120% 140% at 12% 12%, rgba(224, 200, 150, 0.14) 0%, rgba(224, 200, 150, 0) 55%),
        linear-gradient(135deg, #2e454d 0%, #43626d 50%, #5c8291 100%);
    box-shadow: 0 30px 80px -40px rgba(50, 90, 105, 0.65);
}

.cta-bg--arte .cta-eyebrow { color: #e6cfa0; }

/* Arte: imagem à esquerda, texto à direita (para diferenciar das demais) */
.cta-bg--arte .cta-asset { order: -1; }

.cta-bg--tech {
    background:
        /* respiro quente embaixo (o núcleo dourado/laranja do detector) */
        radial-gradient(100% 120% at 50% 120%, rgba(226, 150, 80, 0.12) 0%, rgba(226, 150, 80, 0) 55%),
        /* brilho ciano (o azul do detector e dos cabos) */
        radial-gradient(120% 140% at 12% 12%, rgba(52, 200, 205, 0.32) 0%, rgba(52, 200, 205, 0) 55%),
        /* base verde → teal → azul-ciano */
        linear-gradient(135deg, #06201c 0%, #0b3d3f 52%, #0f5f74 100%);
    box-shadow: 0 30px 80px -40px rgba(15, 90, 110, 0.7);
}

.cta-bg--tech .cta-eyebrow { color: #5eead4; }

.cta-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    /* Ao expandir, o conteúdo ocupa a largura toda do card: o texto vai para
       a esquerda e a imagem para a direita, acompanhando o tamanho da página.
       O respiro das bordas vem do padding horizontal, que também cresce. */
    max-width: calc(1200px + (100% - 1200px) * var(--cta));
    gap: calc(2.5rem + 2.5rem * var(--cta));
    padding: 3.5rem calc(3.5rem + 2.5vw * var(--cta));
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.cta-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #e0aad6;   /* rosa-lilás (Ciência) — Arte e Tecnologia sobrescrevem */
}

.cta-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #ffffff;
}

.cta-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 520px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    background-color: #ffffff;
    color: #0a1834;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.cta-button__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-button__arrow {
    transform: translateX(3px);
}

.cta-asset {
    width: 100%;
}

.cta-asset img {
    width: 100%;
    aspect-ratio: 4 / 3;                    /* proporção no estado recolhido */
    min-height: calc(78vh * var(--cta));    /* a imagem cresce junto com o scroll */
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.85);
}

/* Estado inicial da animação: elementos escondidos até o reveal (GSAP).
   Só aplica quando o JS marcou html.cta-js e sem prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
    html.cta-js .cta-section [data-scroll='title'],
    html.cta-js .cta-section [data-scroll='subtitle'],
    html.cta-js .cta-section [data-scroll='button'],
    html.cta-js .cta-section [data-scroll='asset'] {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        max-width: none;      /* sem espalhamento lateral no mobile */
    }
    .cta-title { font-size: 2.2rem; }
    .cta-subtitle { font-size: 1.05rem; }
    .cta-bg {
        --cta-gap: 24px;      /* margem vertical menor no mobile (sem quebrar a animação) */
        min-height: 0;        /* sem crescimento vertical no mobile (evita cortar o conteúdo empilhado) */
    }
    .cta-asset img { min-height: 0; }   /* sem crescimento da imagem no mobile */
    .cta-button { align-self: center; }   /* centraliza o botão no mobile (o resto do texto fica à esquerda) */
}

/* =========================================================
   SEÇÃO LOCAIS — globo 3D giratório (estilo Perplexity)
   Globo pontilhado via biblioteca "cobe" (script em index.html).
   ========================================================= */
.globe-section {
    width: 100%;
    max-width: 1400px;
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
    overflow-x: clip;   /* segurança: cards do globo não geram scroll horizontal */
}

.globe-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    padding-bottom: 1.25rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #1a1a1a;
}

.globe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.globe-headline {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.globe-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 560px;
    margin-bottom: 1.2rem;
}

.globe-text--muted {
    color: #8b93a1;
    font-size: 1.05rem;
}

.globe-place {
    color: #e0aad6;   /* rosa-lilás — combina com os marcadores do globo */
    font-weight: 600;
}

.globe-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;                 /* permite arrastar o globo sem rolar a página */
    opacity: 0;                         /* revela suave quando o globo carrega */
    transition: opacity 1s ease;
}

/* Se o globo não carregar (offline/CDN), remove a área para não deixar buraco */
.globe-visual.globe-failed { display: none; }

/* Cards (popups) ancorados nos marcadores do globo */
.globe-pins {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.globe-pin {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translate(-9999px, -9999px);   /* fora da tela até o 1º frame posicionar */
    will-change: transform, opacity;
    transition: opacity 0.25s ease;
}

.globe-pin__dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    margin: -4.5px;                 /* centraliza o ponto exatamente em (px, py) */
    border-radius: 50%;
    background: #f0b4e2;
    box-shadow: 0 0 8px 2px rgba(224, 130, 210, 0.7);
}

.globe-pin__card {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 12px));   /* card acima do ponto */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(18, 12, 32, 0.82);
    border: 1px solid rgba(224, 170, 214, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    line-height: 1.25;
}

.globe-pin__card::after {   /* seta apontando para o ponto */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(18, 12, 32, 0.82);
}

.globe-pin__card strong {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #f4e9f7;
}

.globe-pin__card span {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #c9a9d4;
}

/* Tema claro */
body.light-theme .globe-section { border-top-color: #e5e7eb; }
body.light-theme .globe-label { color: #6b7280; border-bottom-color: #e5e7eb; }
body.light-theme .globe-headline { color: #111111; }
body.light-theme .globe-text { color: #4b5563; }
body.light-theme .globe-text--muted { color: #6b7280; }
body.light-theme .globe-place { color: #a21caf; }

@media (max-width: 768px) {
    .globe-section { padding: 60px 0; }
    .globe-row { grid-template-columns: 1fr; gap: 2.5rem; }
    .globe-headline { font-size: 2rem; }
    .globe-visual { max-width: 420px; }
}

/* =========================================================
   SIDEBAR COMO CAMADA (desktop)
   A barra lateral abre por cima do conteúdo, sem empurrar a
   página. Fica fixa e desliza para dentro/fora. No mobile, o
   comportamento continua sendo o do @media (max-width: 768px).
   ========================================================= */
@media (min-width: 769px) {
    .sidebar {
        position: fixed;
        top: 60px;                      /* logo abaixo do header */
        left: 0;
        height: calc(100vh - 60px);
        width: 260px;
        padding: 20px 24px;
        z-index: 900;                   /* acima do conteúdo, abaixo do header (1000) */
        background-color: #000000;      /* opaca, para cobrir o conteúdo atrás */
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
        transform: translateX(0);
        transition: transform 0.3s ease;  /* desliza em vez de mudar a largura */
    }

    /* Fechada: desliza para fora da tela (sem ocupar espaço no fluxo) */
    .sidebar.collapsed {
        width: 260px;                   /* mantém o tamanho, só sai da tela */
        padding: 20px 24px;
        opacity: 1;
        overflow-y: auto;
        transform: translateX(-100%);
        box-shadow: none;
        pointer-events: none;           /* não intercepta cliques quando escondida */
    }

    /* Tema claro: fundo branco para a camada */
    body.light-theme .sidebar {
        background-color: #ffffff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }
}