@font-face {
    font-family: "Alegreya";
    src: url("fonts/Alegreya-Medium.ttf.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

/* CSS RESET & BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa; /* Off-white combinando com a nav bar */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* CONTAINER PRINCIPAL */
.site-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CABEÇALHO DE ABAS (Estilo Modern Browser) */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Empurra marca pra esquerda, abas pro meio e redes pra direita */
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
    position: relative;
}

/* Mantém o cabeçalho sempre acima de qualquer desfoque ou overlay */
.tab-navigation {
    position: relative;
    z-index: 1000;
    background-color: #fff; /* Altere para a cor de fundo do seu cabeçalho se necessário */
}

header.tab-navigation {
    background-color: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Garante que o container ocupe a largura total para centralização */
    width: 100%;
}

.brand-name {
    opacity: 100%;
    padding: 30px 0 0 0;
}

.tab-menu {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    gap: 4px;
    /* CENTRALIZAÇÃO */
    align-self: flex-end;
}

.tab-link {
    margin-top: 16px;
    padding: 12px 24px 20px 24px;
    cursor: pointer;
    background-color: transparent;
    color: #64748b;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
}

.tab-link:hover:not(.active) {
    background-color: #e2e8f0;
    color: #334155;
}

.header-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    text-decoration: none;
    opacity: 50%;
    padding: 5px 0 0 5px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #e2e8f0;
    opacity: 100%;
}

/* ESTILO DA ABA ATIVA */
.tab-link.active {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    border-bottom: 2px solid #ffffff; /* Sobrepõe a linha do header */
    margin-bottom: -1px;
    font-weight: 600;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Sinalizador superior mais delicado */
.tab-link.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffc415;
    border-radius: 10px 10px 0 0;
}

.tab-link,
.mobile-only-menu,
.mobile-menu-trigger {
    cursor: pointer;
    /* Resolve o bug de clique do Safari */
    -webkit-tap-highlight-color: transparent;
}

.mobile-only-menu {
    display: none;
}

/* VIEWPORT DE CELULAR */
@media (max-width: 1000px) {
    .brand-name {
        display: block !important; /* Força a exibição */
        padding: 0; /* Remove o padding excessivo do desktop */
    }

    .brand-name img {
        width: 35px; /* Ligeiramente menor para mobile */
        height: 35px;
    }

    .header-socials {
        display: flex !important; /* Reativado */
        gap: 10px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        padding: 4px; /* Ajuste interno para os ícones */
        opacity: 0.7; /* Um pouco mais visível que no desktop */
    }

    .header-container {
        display: flex; /* Reativado */
        height: 60px; /* Mais baixa que no desktop */
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }

    .header-nav {
        display: none;
    }

    header.tab-navigation {
        position: relative; /* Fica sobre o Hero sem empurrá-lo */
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(241, 245, 249, 0.8);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        z-index: 1000;
        padding-top: 0;
    }

    /* Ativa o contêiner do botão flutuante */
    .mobile-only-menu {
        display: block;
        position: relative;
        z-index: 99999;
    }

    /* BOTÃO FLUTUANTE (FAB) */
    .mobile-menu-trigger {
        display: flex !important;
        position: fixed !important;
        bottom: 25px;
        right: 20px;
        z-index: 10001; /* Acima da lista */
        background: #ffc415;
        color: #0e0e0e;
        border: none;
        border-radius: 30px;
        height: 60px;
        min-width: 60px;
        padding: 0 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: 600;
        cursor: pointer;
    }

    .tab-menu-mobile-list {
        display: none; /* Controlado pelo JS via .show */
        position: fixed;
        bottom: 95px; /* Distância do botão */
        right: 20px;
        width: 220px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        list-style: none;
        padding: 12px;
        z-index: 10000;
        flex-direction: column-reverse; /* Inverte a ordem para facilitar o polegar */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .tab-menu-mobile-list.show {
        display: flex;
        animation: slideUp 0.3s ease forwards;
    }

    /* Estiliza os links clonados para o mobile */
    .tab-menu-mobile-list .tab-link {
        margin: 0 !important;
        padding: 15px !important;
        width: 100% !important;
        text-align: right !important;
        border: none !important;
        background: transparent !important;
        color: #475569 !important;
        font-size: 1rem !important;
        box-shadow: none !important;
        display: block !important;
    }

    .tab-menu-mobile-list .tab-link.active {
        color: #ffc415 !important;
        font-weight: 700 !important;
        background: #f8fafc !important;
        border-radius: 10px;
    }

    .tab-menu-mobile-list .tab-link::after {
        display: none !important;
    }
    
    h2 {
        margin-top: -40px;
    }
}

/* Animação de entrada do menu */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CORPO DO CONTEÚDO */
main.content-body {
    flex: 1;
    background-color: #ffffff;
    padding: 60px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-content {
    max-width: 1000px; /* Reduzi um pouco para melhorar a legibilidade de textos */
    margin: 0 auto;
    padding: 0 24px;
    display: none;
    opacity: 0;
    transform: translateY(10px); /* Leve animação de subida */
    transition: all 0.4s ease-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* COMPONENTES MODERNOS */
.profile-img {
    width: 120px; /* Tamanho um pouco maior para destaque, ou mantenha 100px */
    height: 120px;
    border-radius: 50%; /* Faz o círculo perfeito */
    margin: 0 auto 15px; /* Centraliza e dá espaço para o nome */

    /* O SEGREDO DO ENCAIXE */
    background-size: cover; /* Preenche todo o círculo sem esticar */
    background-position: center; /* Centraliza a foto (foca no rosto) */
    background-repeat: no-repeat;

    /* Estética Adicional */
    border: 3px solid #ffc415; /* Uma borda dourada fina para combinar com o site */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra leve para dar profundidade */
}

h2 {
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 1.8rem;
    letter-spacing: -0.025em;
    text-align: center;
}

p {
    margin-bottom: 24px;
    line-height: 1.4;
    color: #475569;
    font-size: 1.05rem;
    text-align: center;
}

.hero-section {
    text-align: center;
    padding: 40px 0 80px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza os cards da última linha */
    gap: 20px;
    max-width: 1300px;
    width: 100%;
    margin-bottom: 60px;
}

.card {
    flex: 1 1 290px; /* Permite que o card cresça mas tenha uma base de 300px */
    max-width: 290px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* HERO FULL-WIDTH */
/* Mantém sua estrutura base */
.hero-full {
    position: relative;
    width: 100vw;
    height: 80vh;
    margin-left: calc(-50vw + 50%);
    margin-top: -60px;
    background-color: #1e293b;
    overflow: hidden; /* Importante para esconder os slides fora da tela */
}

/* CONTAINER QUE DESLIZA (Alinha slides em linha) */
.hero-slides {
    display: flex; /* Alinha os slides um ao lado do outro */
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Transição de deslize suave */
    will-change: transform; /* Otimização de performance para Safari/iOS */
}

/* CADA SLIDE INDIVIDUAL */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Removido o efeito de slide-down do texto (Incompatível com o carrossel) */
.slide .hero-text {
    opacity: 1; /* Sempre visível dentro do slide ativo */
    transform: none;
    transition: none;
}

/* Removemos o opacity:0 e z-index antigo, pois agora usamos Translate */
.slide.active {
    opacity: 1;
    z-index: auto;
}

/* Texto e H1 (Seu design original) */
.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 1000px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: "Alegreya", serif;
}

.slide h1:not(:has(img)) {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 45px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Navegação (Setas) */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 15;
    padding: 20px;
    transition:
        color 0.3s,
        transform 0.2s;
}

.hero-nav-arrow:hover {
    color: #ffc415;
    transform: translateY(-50%) scale(1.1);
}
.hero-nav-arrow.prev {
    left: 10px;
}
.hero-nav-arrow.next {
    right: 10px;
}

/* Contadores (Dots) */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 15;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
}

.hero-dot.active {
    background: #ffc415;
    transform: scale(1.4);
}

.cta-button {
    /* Efeito de Vidro */
    background: rgba(255, 255, 255, 0.15); /* Fundo claro e bem transparente */
    backdrop-filter: blur(12px); /* O "segredo" do vidro */
    -webkit-backdrop-filter: blur(12px); /* Suporte para Safari/iOS */

    /* Borda e Reflexo */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Borda sutil que brilha no reflexo */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Estética e Texto */
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;

    /* Sombra Líquida Sutil */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    /* Transições */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

/* Efeito de brilho interno ao passar o mouse */
.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    color: #ffc415; /* Mantém seu amarelo dourado apenas no texto no hover */
    border-color: rgba(255, 196, 21, 0.5);
}

/* Adiciona um reflexo "líquido" que passa pelo botão */
.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:not(:hover)::before {
    left: -100%; /* Reseta a posição instantaneamente ao tirar o mouse */
    transition: none; /* Remove a transição na volta para não ver o brilho voltando */
}

@media (max-width: 1000px) {
    .cta-button {
        max-width: 300px;
    }
    
    /* Esconde as setas no mobile */
    .hero-nav-arrow {
        display: none;
    }

    /* Ajuste de Texto Mobile */
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .slide h1:not(:has(img)) {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-dot {
        width: 7px;
        height: 7px;
    }
}

/* DESTAQUES */
.highlights-container {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.highlight-img-small {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
}

.target-title {
    margin-bottom: 20px;
}

.target-desc {
    font-size: 0.8rem;
    text-align: left;
}

.text-button {
    background: none;
    border: none;
    color: #ffc415;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    padding: 0;
}

/* AJUSTE MOBILE */
@media (max-width: 1000px) {
    .hero-text p {
        padding: 10px 80px 0 80px;
    }
    .hero-full {
        height: 70vh;
    }
    .activity-grid {
        grid-template-columns: minmax(200px, 280px);
        gap: 20px;
    }
}

.section-header {
    text-align: center;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1200px));
    gap: 40px;
    padding-bottom: 40px;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.activity-card {
    display: flex;
    flex-direction: row;
    height: 280px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.activity-img-wrapper {
    position:relative;
    width: 400px;
    min-width: 400px;
    flex-shrink: 0;
    height: 100%;
    /* Proporção 3:4 (Altura é 133% da largura) */
    padding-top: 20%;
    background: #f1f5f9;
}

.placeholder-img-3-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-style: italic;
    border-bottom: 1px solid #e2e8f0;
    background-size: cover;
    background-position: center;
    
}

/* Badges de Status */
.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.status-badge.open {
    background: #dcfce7;
    color: #166534;
}
.status-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

.activity-info {
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-grow: 1;
    overflow: hidden;
}

.activity-actions {
    margin-top: auto;   
    display: flex;
    justify-content: flex-start;
}

.activity-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #0f172a;
}
.activity-info h4 {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

.activity-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: left;
}

.activity-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    max-width: 900px;
    margin-bottom: 20px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* No máximo 3 linhas de texto no card */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-link {
    margin-top: auto;
    text-decoration: none;
    color: #ffc415;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.form-link:hover {
    color: #0f172a;
}
.form-link.disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

/* Ajuste Mobile */
@media (max-width: 1000px) {
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .activity-card {
        flex-direction: column;
        text-align: center;
        height: auto;
    }
    .activity-img-wrapper {
        width: 100%;            /* Imagem ocupa toda a largura da tela */
        min-width: 100%;
        height: 200px;          /* Define uma altura fixa para a foto no mobile */
    }
    .activity-date {
        text-align: center;
    }
}

.calendar-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-nav button {
    background: #f1f5f9;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-nav button:hover {
    background: #e2e8f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.day-name {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day .event-tooltip {
    display: none;
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c2c2c;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    z-index: 10;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 13px;
}

.calendar-day .event-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Começa na base do pop-up */
    left: 0;
    width: 100%;
    height: 20px; /* Espaço de segurança para o mouse "atravessar" sem sumir */
    background: transparent;
}

.calendar-day:hover .event-tooltip {
    display: block;
}

.calendar-day .event-tooltip.active {
    display: block;
}

.calendar-day.past-day {
    color: #555555;          /* Deixa o número em um tom cinza escuro/apagado */
    opacity: 0.4;            /* Reduz a opacidade para dar o efeito de "desativado" */
    cursor: default;         /* Remove o ponteiro de clique para indicar que não há ação */
    background-color: rgba(0, 0, 0, 0.05); /* Opcional: dá um fundo sutilmente diferente */
}

/* DESTAQUE DIA ATUAL */
.calendar-day.today {
    background: #ffc415;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(255, 196, 21, 0.4);
}

/* PONTOS DE EVENTOS */
.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 4px;
    margin-bottom: 10px;
}
.dot.curso,
.event-dot.curso {
    background: #3b82f6;
}
.dot.oficina,
.event-dot.oficina {
    background: #10b981;
}
.dot.seminario,
.event-dot.seminario {
    background: #f6845c;
}

/* HOVER COM LINK */
.has-event:hover {
    background: #1e293b;
    color: white;
    cursor: pointer;
}

.event-tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    width: 150px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.has-event:hover .event-tooltip {
    display: block;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.today-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
    margin: 0 5px; /* Espaçamento entre as setas */
}

.today-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
}

/* CONTAINER PRINCIPAL LP */
.lp-clinica {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espaço entre os grandes cards (Bento Box) */
    padding-bottom: 40px;
}

/* CADA SEÇÃO COMO UM BLOCO DE TELA */
.full-section,
.full-section-grid {
    position: relative;
    width: 90%; /* Recuo nas bordas para mostrar o fundo off-white */
    max-width: 1400px;
    margin: 0 auto; /* Centraliza o card na página */
    min-height: 85vh;
    border-radius: 40px; /* Bordas bem arredondadas estilo bento */
    overflow: hidden; /* Garante que a imagem de fundo não escape das bordas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); /* Sombra sutil para flutuação */

    /* Mantendo as imagens de fundo e o parallax */
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Correção da Seção de Abordagem */
.full-section-grid {
    justify-content: flex-start; /* Permite que o conteúdo role se for longo */
}

/* Espaçamento extra para o cabeçalho da seção */
.section-header-lp {
    text-align: center;
    color: white;
    margin-bottom: 60px; /* Espaço entre o título e os cards */
    max-width: 800px;
}

/* Garante que o container dos cards não ultrapasse o limite */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 96%;
    margin: 0 auto 60px; /* O '60px' aqui dá o respiro para o botão abaixo */
}

/* Conteúdo interno da seção */
.section-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.section-content h1,
.section-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: "Alegreya", serif;
}

.section-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Badge sutil sobre as fotos */
.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Versão Escura do Botão para a última seção amarela */
.dark-text {
    color: #0f172a;
}
.dark-btn {
    background: rgba(18, 18, 18, 0.8) !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.dark-btn {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* RESPONSIVIDADE (iPhone XS) */
@media (max-width: 768px) {    
    .full-section {
        min-height: 70vh;
        background-attachment: scroll; /* iPhones não lidam bem com background-fixed */
    }
    
    .section-content {
        margin-top: -40px;
        margin-bottom: -40px;
    }

    .section-content h1,
    .section-content h2 {
        font-size: 2rem;
    }

    .section-content p {
        font-size: 1rem;
        text-align: center;
    }
}

/* Card Centralizado */
.insta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Foto de Perfil (Reaproveitando a lógica circular) */
.profile-img-insta {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #ffc415;
    margin-bottom: 15px;
}

/* Informações do Perfil */
.insta-info {
    margin-bottom: 25px;
}

.insta-name {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.insta-handle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Botão Instagram com Degradê */
.btn-insta {
    background: linear-gradient(
        45deg,
        rgba(64, 93, 230, 0.4) 0%,
        rgba(131, 58, 180, 0.4) 50%,
        rgba(225, 48, 108, 0.4) 100%
    ) !important;
    color: white !important; /* Borda e Reflexo */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Borda sutil que brilha no reflexo */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(214, 36, 159, 0.4) !important;
    text-decoration: none;
}

.btn-insta:hover {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.1);
}

/* Cabeçalho da Seção */
.section-header-lp {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header-lp h1 {
    font-size: 3rem;
    font-family: "Alegreya", serif;
    margin-bottom: 10px;
}

.section-header-lp p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Grid Ajustado */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* CARD LIQUID GLASS */
.glass-post-card {
    background: rgba(255, 255, 255, 0.05); /* Transparência sutil */
    backdrop-filter: blur(15px); /* Efeito de vidro */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.glass-post-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 196, 21, 0.3);
}

.glass-post-card,
.insta-card {
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Resolve bug de blur vindo para fora */
}

/* Cabeçalho Limpo (Sem Bullet) */
.card-header-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.mini-logo-gold {
    width: 12px;
    height: 12px;
    background: #ffc415; /* Cor dourada do Instituto */
    border-radius: 50%;
}

.card-header-clean span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffc415;
}

/* Corpo do Texto */
.card-body-clean h3 {
    font-family: "Alegreya", serif;
    color: #ffffff;
    font-size: 1.6rem;
    text-align: center;
}

.card-body-clean p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    margin-top: 15px;
    text-decoration: none;
}

/* Footer da Seção (Onde fica o CTA) */
.section-footer-lp {
    text-align: center;
}

/* Responsividade Mobile (iPhone XS) */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colunas para não esmagar */
        gap: 20px;
    }
}

/* Ajuste para Celulares (iPhone XS) */
@media (max-width: 650px) {
    .full-section-grid {
        padding: 30px 10px; /* Reduz um pouco o respiro no celular para caber tudo */
    }

    .grid-container {
        grid-template-columns: 1fr !important; /* 1 card por linha */
        margin-bottom: 40px;
    }

    .section-header-lp h1 {
        font-size: 2.2rem;
    }

    .section-header-lp p {
        margin-bottom: -20px;
    }
}

/* O Botão Central */
.header-center-cta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Centralização perfeita em X e Y */
    z-index: 10;
}

/* Estilo do Botão (Versão sutil e compacta para o Header) */
.cta-mini-button {
    background: #ffc415;
    color: #0f172a;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Impede que o texto quebre em duas linhas */
    box-shadow: 0 4px 15px rgba(255, 196, 21, 0.2);
}

.cta-mini-button:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* RESPONSIVIDADE PARA O IPHONE XS */
@media (max-width: 768px) {
    /* No celular, para não atropelar a logo, podemos esconder o CTA 
       ou diminuir muito o tamanho. Aqui vamos deixá-lo mais discreto. */
    .header-center-cta {
        display: none; /* Opcional: esconde no mobile se o espaço for curto */
    }

    /* Caso queira manter no mobile, use isto: */
    /* .cta-mini-button {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    */
}

/* Container específico para 5 cards para manter a centralização */
.grid-container-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza os cards da última linha */
    gap: 25px;
    max-width: 1300px;
    width: 100%;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* Reutilizando o estilo Glass mas adaptando para o perfil */
.glass-post-card {
    flex: 1 1 300px; /* Permite que o card cresça mas tenha uma base de 300px */
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
}

/* Estilo da mini foto circular dentro do card */
.profile-img-mini {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #ffc415; /* Detalhe em dourado */
}

/* No mobile (iPhone XS), eles empilham perfeitamente */
@media (max-width: 650px) {
    .grid-container-5 {
        flex-direction: column;
        align-items: center;
    }
    .glass-post-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Container para empilhar os botões */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Botão do Site (Estilo Glass Sutil) */
.btn-site-glass {
    background: linear-gradient(
        45deg,
        rgba(218, 165, 32, 0.85) 0%,
        /* Goldenrod (Ouro profundo, menos saturado) */ rgba(255, 196, 21, 0.8) 50%,
        /* Amarelo Atuar Original */ rgba(255, 215, 0, 0.75) 100% /* Ouro (Amarelo clássico, sem o tom limão) */
    ) !important;
    box-shadow: 0 5px 15px rgba(253, 207, 25, 0.4) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px !important;
    font-size: 1rem !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-site-glass:hover {
    border-color: #ffc415 !important; /* Destaque em dourado no hover */
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.1);
}

/* Ajuste no card para comportar mais conteúdo */
.insta-card {
    max-width: 420px; /* Um pouco mais largo para os botões respirarem */
    padding: 40px 30px;
}

/* Garante que os ícones tenham o mesmo tamanho */
.card-actions i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* --- OVERLAY & BACKDROP --- */
.event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Quando o overlay estiver ativo */
.event-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desfoque do fundo (Apenas Desktop) */
.overlay-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.overlay-title {
    color: #ffffff;
}

/* --- O CONTAINER BENTO BOX (DESKTOP) --- */
.bento-modal {
    position: relative;
    background: #ffffff; /* Cor escura padrão ou mude para o fundo do seu site */
    color: #202020;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 24px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 2;
    
    /* Animação de Entrada: Surge levemente de baixo para cima e ganha escala */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-overlay.active .bento-modal {
    transform: translateY(0) scale(1);
}

/* --- BOTÃO FECHAR --- */
.close-overlay-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgb(255, 255, 255);
    color: black;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.close-overlay-btn:hover {
    background: #ffc415;
}

/* --- LAYOUT EDITORIAL DO MODAL --- */
.modal-editorial {
    background: #ffffff; /* Fundo limpo para contraste do texto */
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* --- HEADER COM IMAGEM --- */
.editorial-header {
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

/* Conteúdo interno do cabeçalho com safe-zone contra fundos claros */
.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.editorial-header h2 {
    margin: 12px 0 0 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

/* Ajuste fino no posicionamento do Badge sobre a imagem */
.event-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}
.event-badge.curso { background: #3b82f6; }
.event-badge.oficina { background: #10b981; }
.event-badge.evento { background: #f59e0b; }

/* --- CORPO DO CONTEÚDO --- */
.editorial-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Barra de informações rápidas (Data / Hora) inline */
.editorial-meta-bar {
    display: flex;
    align-items: center;
    background: #f8fafc; /* Tom sutil de cinza azulado para destacar info */
    padding: 16px 20px;
    border-radius: 14px;
    gap: 20px;
}

.meta-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.meta-inline-icon {
    font-size: 22px;
}

.meta-inline-item small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-inline-item span {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
}

/* Seções de Texto */
.editorial-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffc415; /* Mantendo a identidade dourada nos títulos de seção */
}

.editorial-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    text-align: left;
    white-space: pre-line;
}

/* Estilização da lista de Info Gerais */
.info-complementar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-complementar li {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ZONA DO BOTÃO DE CHAMADA NO FINAL --- */
.editorial-action-zone {
    margin-top: 10px;
    width: 100%;
}

.editorial-btn-primary {
    display: block;
    background: #ffc415;
    color: #1b1b1b;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 196, 21, 0.2);
}

.editorial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 196, 21, 0.35);
}

/* --- AJUSTES DE RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    /* Desativa o desfoque pesado para poupar a GPU do celular */
    .overlay-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    /* Centraliza o fluxo e garante que o container pai segure a tela inteira */
    .event-overlay {
        align-items: flex-end; /* Faz o modal subir estilo "drawer" debaixo para cima */
        overflow: hidden;
        z-index: 999999 !important;
    }
    
    /* Corrige o comportamento para ambos os tipos de modal que você possa usar */
    .bento-modal,
    .modal-editorial {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important; /* Reseta padding para controlar nas seções internas */
        
        /* Estado Inicial no Mobile: Totalmente escondido abaixo da tela */
        transform: translateY(100%) scale(1) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Estado Ativo: Faz o modal deslizar para cima cobrindo a tela */
    .event-overlay.active .bento-modal,
    .event-overlay.active .modal-editorial {
        transform: translateY(0) scale(1) !important;
    }

    /* Traz o botão fechar para a camada da frente do modal branco */
    .close-overlay-btn {
        position: absolute; /* Muda para absoluto relativo ao overlay ativo */
        top: 16px;
        right: 16px;
        z-index: 99999; /* Garante que fique acima da imagem de header */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Ajustes internos de espaçamento para o modelo Editorial */
    .editorial-header {
        min-height: 240px;
        padding: 60px 20px 20px 20px; /* Mais espaço no topo para não bater no botão fechar */
    }

    .editorial-header h2 {
        font-size: 24px;
        padding-right: 20px; 
    }

    .editorial-body {
        padding: 24px 20px;
        gap: 24px;
        /* Garante rolagem fluída se o conteúdo for maior que a tela do celular */
        overflow-y: auto; 
        flex: 1; 
    }

    .editorial-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }

    .meta-divider {
        width: 100%;
        height: 1px;
    }
    
    .info-complementar ul {
        grid-template-columns: 1fr; /* Força uma coluna única no mobile */
        gap: 12px;
    }
}

/* Estilos para o Card e botão de chamada */
.mini-bio {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}
.btn-read-more {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #ffc415; /* Usando o amarelo do Instituto Atuar */
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}
.card:hover .btn-read-more {
    background: #ffc415;
}

/* Customização do Elemento Dialog Nativo */
.modal-dialog {
    border: none;
    border-radius: 12px;
    align-content: center;
    margin: auto;
    max-width: 750px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Animação e cor do fundo borrado */
.modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    padding: 40px 30px 30px 30px;
    background: #fff;
}

/* Botão de Fechar */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.modal-close:hover {
    color: #000;
}

/* Layout interno do modal (Foto à esquerda, texto à direita) */
.modal-content-layout {
    display: flex;
    gap: 30px;
}

.modal-sidebar {
    flex: 0 0 200px; /* Largura fixa para a coluna da foto */
    text-align: center;
}

.modal-sidebar .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    background-size: cover;
    background-position: center;
}

.modal-body {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-height: 65vh;
    overflow-y: auto; /* Permite scroll se o texto for gigante em telas menores */
    padding-right: 10px;
}

/* Responsividade para telas menores */
@media (max-width: 600px) {
    .modal-content-layout {
        flex-direction: column;
        align-items: center;
    }
    .modal-sidebar {
        flex: none;
        width: 100%;
    }
    .modal-body {
        max-height: 40vh;
    }
}