/* ============================================================
   FESTIVAL DE INOVAÇÃO — PROGRAMAÇÃO
   Alinhado ao Manual de Identidade Visual 2026
   Cores: #FF7D08 | #4166F5 | #F41006 | #000000 | #FFFFFF
   Tipografia: Widescrenn
   ============================================================ */

.festival-programacao {
    background-color: #FFFFFF;
    padding: 60px 60px;
    min-height: 80vh;
    font-family: 'Widescrenn', sans-serif;
    max-width: 80%;
    margin: 40px auto;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* --- FILTROS DE TRILHA ------------------------------------ */
.festival-filtros {
    margin-bottom: 32px;
}

.festival-filtros__label {
    font-size: 18px;
    font-weight: 600;
    color: #4166F5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.festival-filtros__botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- BOTÕES DE FILTRO ------------------------------------- */
.festival-filtro-btn {
    background: transparent;
    border: 1.5px solid #E0D5C8;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: 'Widescrenn', sans-serif;
}

.festival-filtro-btn:hover {
    border-color: #4166F5;
    background: transparent;
    color: #FF7D08;
}

.festival-filtro-btn.ativo {
    background: #FF7D08;
    border-color: #FF7D08;
    color: #FFFFFF;
}

.festival-filtro-btn--block {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
}

/* --- LAYOUT SIDEBAR + LISTA ------------------------------- */
.festival-sidebar-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* --- SIDEBAR --------------------------------------------- */
.festival-sidebar {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
}

.festival-sidebar__secao {
    margin-bottom: 28px;
}

.festival-sidebar__titulo {
    font-size: 15px;
    font-weight: 700;
    color: #4166F5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.festival-sidebar .festival-filtro-btn {
    border-radius: 999px;
    display: inline-block;
    width: auto;
    text-align: center;
    margin: 0 8px 8px 0;
}

.festival-sidebar .festival-filtro-btn--block,
.festival-sidebar__secao .festival-filtros__botoes {
    display: flex;
    flex-wrap: wrap;
}

/* --- LISTA DE EVENTOS ------------------------------------- */
.festival-lista {
    flex: 1;
}

/* --- CARD DE EVENTO --------------------------------------- */
.festival-evento {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.festival-evento__esquerda {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.festival-dia-semana {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.festival-separador {
    color: #000000;
    opacity: 0.5;
}

.festival-horario {
    font-size: 14px;
    color: #000000;
    margin: 0;
}

.festival-evento__direita {
    flex: 1;
    min-width: 0;
}

/* Linha do topo: tags à esquerda, botão à direita */
.festival-evento__topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.festival-evento__topo .festival-tags {
    margin-bottom: 0;
    flex: 1;
}

/* --- TAGS ------------------------------------------------- */
.festival-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}

.festival-tag {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 9px;
}

.festival-tag--trilha {
    background: #4166F5;
    opacity: 0.9;
    border-radius: 999px;
    color: #FFFFFF;
}

.festival-tag--local {
    background: #F41006;
    opacity: 0.9;
    border-radius: 999px;
    color: #FFFFFF;
}

.festival-tag--tipo {
    background: transparent;
    border: 1px solid #000000;
    border-radius: 999px;
    color: #000000;
    font-size: 12px;
    font-weight: 500;
}

.festival-tag--data {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}

/* --- TÍTULO E SUBTÍTULO ----------------------------------- */
.festival-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 6px;
}

.festival-subtitulo {
    font-size: 14px;
    color: #000000;
    margin: 0 0 10px;
    opacity: 0.8;
}

/* --- PALESTRANTE ------------------------------------------ */
.festival-palestrante {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.festival-palestrante__foto {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.festival-palestrante__nome {
    font-size: 14px;
    font-weight: 600;
    color: #4166F5;
}

/* --- BOTÃO INSCREVA-SE ------------------------------------ */
.festival-btn-inscricao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: transparent;
    color: #FF7D08;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid #FF7D08;
    text-decoration: none;
    font-family: 'Widescrenn', sans-serif;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.festival-btn-inscricao:hover {
    background: #FF7D08;
    color: #FFFFFF;
}

/* --- ESTADOS --------------------------------------------- */
.festival-sem-resultados,
.festival-carregando {
    padding: 32px 0;
    font-size: 16px;
    color: #000000;
    opacity: 0.7;
}

/* --- RESPONSIVO ------------------------------------------- */
@media (max-width: 768px) {
    .festival-programacao {
        max-width: 100%;
        margin: 0;
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    /* Filtros de trilha: scroll horizontal */
    #filtros-trilha {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
    }

    #filtros-trilha .festival-filtro-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Sidebar: botões em linha com wrap */
    .festival-filtros__botoes {
        gap: 8px;
        flex-wrap: wrap;
    }

    .festival-filtro-btn {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .festival-filtro-btn--block {
        width: auto;
        display: inline-block;
    }

    .festival-sidebar-content {
        flex-direction: column;
    }

    .festival-sidebar {
        max-width: 100%;
        width: 100%;
    }

    .festival-sidebar__secao .festival-filtros__botoes {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Cards */
    .festival-evento {
        flex-direction: column;
        gap: 10px;
    }

    .festival-evento__esquerda {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .festival-evento__topo {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .festival-titulo {
        font-size: 17px;
    }

    .festival-tags {
        flex-wrap: wrap;
    }
}

/* --- CORES POR TRILHA ------------------------------------- */
/* Substituem o azul padrão .festival-tag--trilha */

.festival-tag--trilha[data-trilha="economia-do-cuidado-e-praticas-compartilhadas-para-o-bem-viver"] { background: #13734B; }
.festival-tag--trilha[data-trilha="tecnologias-de-ocupacao-e-modulacao-do-espaco-urbano"]          { background: #5A3286; }
.festival-tag--trilha[data-trilha="tecnologias-da-industria-e-comercio"]                            { background: #3D3D3D; }
.festival-tag--trilha[data-trilha="tecnologias-gastronomicas"]                                      { background: #B10202; }
.festival-tag--trilha[data-trilha="tecnologias-da-educacao"]                                        { background: #753800; }
.festival-tag--trilha[data-trilha="ecossistemas-do-futuro"]                                         { background: #E6CFF2; color: #000000; }
.festival-tag--trilha[data-trilha="gestao-publica"]                                                 { background: #E6E6E6; color: #000000; }
.festival-tag--trilha[data-trilha="turismo-uma-nova-cartografia"]                                   { background: #FFE5A0; color: #000000; }
.festival-tag--trilha[data-trilha="estudos-do-mar-e-da-mata"]                                       { background: #BFE1F6; color: #000000; }
.festival-tag--trilha[data-trilha="circuito-livre-de-arte-e-cultura"]                               { background: #D4EDBC; color: #000000; }