
/* Programação do XXIII SINPAC — componente local e responsivo */
.programacao-section {
    margin: 88px auto 32px;
    padding: 0;
}

.programacao-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.programacao-heading h2 {
    margin: 8px 0 12px;
    color: #102b76;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    font-weight: 800;
}

.programacao-heading p {
    margin: 0;
    color: #52607a;
    font-size: 1.04rem;
    line-height: 1.7;
}

.programacao-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 26px;
    padding: 14px 18px;
    border: 1px solid #dce4f3;
    border-radius: 16px;
    background: #f8faff;
    color: #41506b;
    font-size: .92rem;
    font-weight: 700;
}

.programacao-legenda span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legenda-marca {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.legenda-palestra { background: #123caa; }
.legenda-atividade { background: #5364a8; }
.legenda-intervalo { background: #f28a1b; }
.legenda-cerimonia { background: #0b8c79; }

.programacao-dias {
    display: grid;
    gap: 34px;
}

.programacao-dia {
    overflow: hidden;
    border: 1px solid #dbe3f2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(16, 43, 118, .09);
}

.programacao-dia-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #0b2c7b 0%, #123fba 100%);
    color: #fff;
}

.programacao-dia-numero {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.25rem;
    font-weight: 900;
}

.programacao-dia-header h3 {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
}

.programacao-dia-header p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.5;
}

.programacao-turno {
    padding: 26px 28px 30px;
}

.programacao-turno + .programacao-turno {
    border-top: 1px solid #e6ebf4;
}

.programacao-turno-titulo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #102b76;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.programacao-turno-titulo::before {
    content: '';
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background: #f28a1b;
}

.programacao-lista {
    display: grid;
    gap: 12px;
}

.programacao-item {
    --item-color: #5364a8;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e0e6f0;
    border-left: 5px solid var(--item-color);
    border-radius: 16px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.programacao-item:hover {
    transform: translateY(-2px);
    border-color: #cdd8eb;
    box-shadow: 0 12px 24px rgba(16, 43, 118, .08);
}

.programacao-item--palestra { --item-color: #123caa; }
.programacao-item--atividade { --item-color: #5364a8; }
.programacao-item--intervalo { --item-color: #f28a1b; background: #fffaf4; }
.programacao-item--cerimonia { --item-color: #0b8c79; }
.programacao-item--recepcao { --item-color: #2f8cc7; }
.programacao-item--literario { --item-color: #8a4ba3; }
.programacao-item--social { --item-color: #d7632e; }
.programacao-item--avaliacao { --item-color: #3f7e4d; }

.programacao-hora {
    display: grid;
    place-items: center;
    min-height: 98px;
    padding: 18px 12px;
    background: #f1f5fb;
    color: #102b76;
    font-size: 1.12rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.programacao-conteudo {
    min-width: 0;
    padding: 17px 18px 17px 0;
}

.programacao-categoria {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--item-color);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.programacao-conteudo h5 {
    margin: 0;
    color: #1d273c;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 800;
}

.programacao-complemento {
    margin: 7px 0 0;
    color: #55627a;
    line-height: 1.55;
}

.programacao-profissional {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dfe5ef;
    color: #43506a;
    font-size: .93rem;
    line-height: 1.5;
}

.speaker-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #cfd9ed;
    border-radius: 999px;
    background: #f7f9fe;
    color: #17388b;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.speaker-profile-button:hover,
.speaker-profile-button:focus-visible {
    background: #eaf0ff;
    border-color: #9db2df;
    transform: translateY(-1px);
    outline: none;
}

.speaker-profile-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.speaker-profile-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 30px 80px rgba(3, 16, 55, .35);
}

.speaker-profile-dialog::backdrop {
    background: rgba(5, 18, 52, .68);
    backdrop-filter: blur(3px);
}

.speaker-dialog-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}

.speaker-dialog-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #102b76;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.speaker-dialog-grid {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
}

.speaker-dialog-photo-wrap {
    position: relative;
    min-height: 380px;
    background: linear-gradient(145deg, #0a2b79, #1747c0);
}

.speaker-dialog-photo {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center top;
}

.speaker-dialog-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    color: rgba(255,255,255,.94);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.speaker-dialog-content {
    padding: 48px 34px 34px;
}

.speaker-dialog-kicker {
    display: inline-block;
    margin-bottom: 9px;
    color: #f07f14;
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.speaker-dialog-content h2 {
    margin: 0 0 7px;
    color: #102b76;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.12;
    font-weight: 900;
}

.speaker-dialog-role {
    margin: 0 0 20px;
    color: #52607a;
    font-weight: 800;
}

.speaker-dialog-description {
    margin: 0;
    color: #3e4a62;
    line-height: 1.75;
}

.speaker-dialog-session {
    margin-top: 24px;
    padding: 15px 17px;
    border-left: 4px solid #f28a1b;
    border-radius: 10px;
    background: #fff8ef;
    color: #4b5362;
}

.speaker-dialog-session strong,
.speaker-dialog-session span {
    display: block;
}

.speaker-dialog-session strong {
    margin-bottom: 4px;
    color: #8b4a0b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (max-width: 767.98px) {
    .programacao-section {
        margin-top: 64px;
    }

    .programacao-legenda {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .programacao-dia {
        border-radius: 19px;
    }

    .programacao-dia-header {
        align-items: flex-start;
        padding: 20px;
    }

    .programacao-dia-numero {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .programacao-turno {
        padding: 22px 16px 24px;
    }

    .programacao-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .programacao-hora {
        display: block;
        min-height: auto;
        padding: 11px 14px;
        background: #eef3fb;
        text-align: left;
        font-size: 1rem;
    }

    .programacao-conteudo {
        padding: 14px;
    }

    .programacao-profissional {
        align-items: flex-start;
        flex-direction: column;
    }

    .speaker-profile-button {
        width: 100%;
        justify-content: center;
    }

    .speaker-dialog-grid {
        grid-template-columns: 1fr;
    }

    .speaker-dialog-photo-wrap,
    .speaker-dialog-photo {
        min-height: 230px;
        height: 230px;
    }

    .speaker-dialog-content {
        padding: 26px 22px 28px;
    }
}

@media (max-width: 420px) {
    .programacao-legenda {
        grid-template-columns: 1fr;
    }

    .programacao-dia-header {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .programacao-item,
    .speaker-profile-button {
        transition: none;
    }
}
