/* ==========================================================================
   Estilização do Componente de Atividades Culturais (Seções Independentes)
   ========================================================================== */

#atividades-culturais-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 40px; /* Espaço consistente entre as seções */
}

.activity-section-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: left;
    position: relative; /* Importante para delimitar o escopo do sticky */
}

/* Cabeçalho da Seção (Ícone em cima, Título embaixo) */
.activity-header-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
    border-bottom: 1px dashed rgba(181, 154, 106, 0.35);
    padding-bottom: 25px;
    text-align: center;
}

.activity-large-icon {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
    margin-bottom: 10px;
}

.activity-section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #2c301d; /* var(--primary-green) */
    margin: 0;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Título Serif Luxuoso para Aulas de Segunda a Sábado */
.activity-section-title.lux-serif-title {
    font-family: 'Cinzel', serif;
    border-bottom: 2px double rgba(181, 154, 106, 0.4);
    padding-bottom: 5px;
}

/* Parágrafo de Introdução da Atividade */
.activity-intro-paragraph {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    max-width: 850px;
    margin-bottom: 35px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Bloco Interno de Detalhes da Atividade */
.activity-details-block {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(253, 251, 247, 0.5);
    border: 1px solid rgba(181, 154, 106, 0.15);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .activity-details-block {
        padding: 25px 15px;
    }
}

/* Bloco de Metadados: Período e Formato */
.activity-meta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 1px dashed rgba(181, 154, 106, 0.25);
    padding-bottom: 15px;
    width: 100%;
    text-align: center;
}

.activity-meta-schedule {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b59a6a; /* var(--accent-gold) */
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.activity-meta-format {
    font-family: 'EB Garamond', serif;
    font-size: 1.45rem;
    font-style: italic;
    color: #2c301d; /* var(--primary-green) */
    line-height: 1.3;
}

/* Listas com o layout da escrita */
.activity-list-bullets {
    list-style: none;
    padding: 0;
    margin: 25px 0 10px 0; /* Espaço de 25px no topo para se afastar dos temas */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

@media (max-width: 600px) {
    .activity-list-bullets {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.activity-list-bullets li {
    font-family: 'EB Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #2c301d;
    position: relative;
    padding-left: 24px;
}

.activity-list-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #b59a6a;
    font-size: 1.5rem;
    top: -2px;
}

/* Destaque Clássico dos Temas (Em duas linhas) */
.activity-themes-highlight {
    border-bottom: 1px dashed rgba(181, 154, 106, 0.25);
    padding: 15px 10px 18px 10px;
    margin-top: 0; /* Removida a margem superior para colar no divisor acima */
    margin-bottom: 15px;
    text-align: center;
    background: transparent;
    border-radius: 0;
}

.activity-themes-highlight strong {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b59a6a; /* var(--accent-gold) */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block; /* Quebra linha */
    margin-bottom: 8px; /* Espaço para afastar do texto que vem abaixo */
}

.activity-themes-highlight span {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    color: #2c301d; /* var(--primary-green) */
    font-style: italic;
    line-height: 1.4;
    display: block; /* Quebra linha */
}

/* ==========================================================================
   Sub-componente: Bloco Sticky Horizontal de Ação e Professores
   ========================================================================== */
.activity-action-sticky {
    position: sticky;
    bottom: 25px;
    z-index: 100;
    
    width: 100%;
    max-width: 850px;
    margin: 35px auto 0 auto;
    
    background-color: #ffffff;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 251, 247, 0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border: 1.5px solid rgba(181, 154, 106, 0.35);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 15px 40px rgba(44, 48, 29, 0.12), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-sizing: border-box;

    /* Oculto por padrão, ativado via JS */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.activity-action-sticky.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Colunas do Sticky */
.sticky-column-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex: 1.1;
    min-width: 0;
}

.sticky-column-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Divisor Vertical */
.sticky-column-divider {
    width: 1px;
    align-self: stretch;
    background-color: rgba(181, 154, 106, 0.3);
    margin: 5px 0;
}

/* Pills Horizontais de Professores */
.teachers-pills-row-horizontal {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.action-prompt {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    color: #4a4d3b;
    margin: 0;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    width: 100%;
}

.activity-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    background: #2c301d;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 35px;
    border: 1px solid #2c301d;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.activity-whatsapp-button:hover {
    background: #ffffff;
    color: #2c301d;
    box-shadow: 0 6px 15px rgba(44, 48, 29, 0.15);
    transform: translateY(-2px);
}

/* Professores dentro do bloco Sticky */
.teachers-title-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b59a6a;
    display: block;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.teacher-pill-item {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(181, 154, 106, 0.25);
    border-radius: 50px;
    padding: 4px 14px 4px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

.teacher-pill-item:hover {
    border-color: #b59a6a;
    box-shadow: 0 4px 10px rgba(181, 154, 106, 0.12);
    transform: translateY(-1px);
}

.teacher-pill-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid #b59a6a;
    flex-shrink: 0;
}

.teacher-pill-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2c301d;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividade do Sticky Horizontal para Celulares e Telas Pequenas */
@media (max-width: 900px) {
    .activity-action-sticky {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        bottom: 15px;
    }
    
    .sticky-column-left,
    .sticky-column-right {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .sticky-column-divider {
        width: 100%;
        height: 1px;
        background-color: rgba(181, 154, 106, 0.2);
        margin: 5px 0;
    }
    
    .teachers-pills-row-horizontal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .teacher-pill-item {
        flex: none;
        width: min(260px, 100%);
        max-width: 100%;
    }
    
    .action-prompt {
        white-space: normal;
    }
}
