/* 1. GOOGLE FONT - MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* 2. VARIÁVEIS DE CORES */
:root {
    --azul-escuro: #162b42;
    --verde: #00ee02;
    --verde-crefito: #27A269;
    --azul-claro: #003cfe;
    --cinza-fundo: hsl(0, 0%, 98%);
    --branco: hsl(0, 0%, 100%);
}

/* 3. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* renderização */
body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--azul-escuro);
    line-height: 1.6;
    background-color: var(--cinza-fundo);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. HEADER */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-escuro);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--verde-crefito);
}

/* 5. HERO */
.secao-hero {
    padding: 30px 0;
    text-align: center;
}

.container-imagem {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.imagem-poster {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

/* 6. PATROCINADORES */

.logo-destaque-topo {
    display: flex;
    justify-content: center;
    padding: 20px 20px 50px 20px;
}

@media (max-width: 768px) {
    .logo-destaque-topo img {
        width: 300px;
    }
}

h2.fonte-alternativa {
    color: var(--verde-crefito);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 800;
    padding: 45px 0 25px 0;
}

.grid-patrocinadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    background: var(--branco);
    padding: 40px;
    border-radius: 30px;
}

.grid-patrocinadores img {
    width: 100%;
    max-width: 110px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.grid-patrocinadores img:hover {
    transform: scale(1.1);
}

/* 7. SOBRE */
.secao-sobre {
    padding: 60px 20px;
    background-color: var(--branco);
}

.sobre-conteudo p {
    margin-bottom: 40px;
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.7;
}

/* 8. FOOTER */
footer {
    background: var(--azul-escuro);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
    margin-top: 40px;
}

/* 9. SEÇÃO EVENTO */
.evento {
    position: relative;
    background: url('images/evento-bg.jpg') center/cover no-repeat;
    padding: 80px 0;
    color: #fff;
    overflow: hidden;
}

.evento .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #002bff 0%, #0066ff 60%, #00c6ff 100%);
    opacity: 0.75;
    z-index: 1;
}

.evento .container {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .evento .container {
        padding: 0 20px;
    }
}

.evento .conteudo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.col-esquerda {
    flex: none;
    max-width: 520px;
    text-align: justify;
}

.col-esquerda h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.col-esquerda p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 18px;
    font-weight: 500;
}

.col-direita {
    flex: 1;
    text-align: center;
}

.col-direita h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.btn-inscricao1 {
    width: 550px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.btn-inscricao1-container {
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.btn-inscricao2 {
    width: 600px;
}

/* 10. RESPONSIVO */
@media (max-width: 900px) {
    .evento .conteudo {
        flex-direction: column;
        text-align: center;
    }

    .col-esquerda {
        max-width: 100%;
    }

    .btn-inscricao1,
    .btn-inscricao2 {
        width: 95%;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .btn-inscricao1-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header-flex {
        justify-content: center;
    }

    .grid-patrocinadores {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-patrocinadores {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-img {
        height: 35px;
    }
}

/* 11. HERO TEXTO (CABEÇALHO PRINCIPAL) */
.hero-topo {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: url('imagess/bg-topo.jpg') center/cover no-repeat;
}

/* overlay claro */
.hero-topo::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

/* container interno */
.hero-topo .conteudo {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* linha superior */
.hero-topo .subtitulo {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 500;
}

/* título principal */
.hero-topo h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--azul-escuro);
}

/* destaque itálico */
.hero-topo h1 em {
    font-style: italic;
    font-weight: 800;
}

/* responsivo */
@media (max-width: 768px) {
    .hero-topo {
        padding: 60px 15px;
    }

    .hero-topo h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-topo h1 {
        font-size: 24px;
    }
}

/* PROGRAMAÇÃO */

.programacao {
    padding: 50px 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.programacao h2 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #455160;
}

.programacao-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   LINHAS VERTICAIS (FIX)
========================= */

.linhas-salas {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 3;
}

/* largura da coluna horário */
:root {
    --col-horario: 100px;
}

/* cada linha */
.linha-sala {
    position: absolute;
    top: 0px;
    bottom: 10px;
    width: 2px;
}

/* bolinhas */
.linha-sala::before,
.linha-sala::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: inherit;
}

.linha-sala::before {
    top: -8px;
}

.linha-sala::after {
    bottom: -8px;
}

/* =========================
   POSICIONAMENTO PRECISO
========================= */

.sala-1 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 0);
    background: #14b08b;
}

.sala-2 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 1);
    background: #58d0cb;
}

.sala-3 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 2);
    background: #0fc3c0;
}

.sala-4 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 3);
    background: #6d8faa;
}

.sala-5 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 4);
    background: #456d9b;
}

.sala-6 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 5);
    background: #3c5f8b;
}

.sala-7 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 6);
    background: #1f436f;
}

.sala-8 {
    left: calc(var(--col-horario) + ((100% - var(--col-horario)) / 8) * 7);
    background: #0d1b2f;
}

/* =========================
   GRID
========================= */

.tabela-programacao {
    position: relative;
    z-index: 2;
}

.linha {
    display: grid;
    grid-template-columns: var(--col-horario) repeat(8, 1fr);
    min-height: 78px;
    align-items: stretch;
}

.linha+.linha {
    margin-top: 2px;
}

.cabecalho {
    min-height: 54px;
    margin-bottom: 8px;
}

.horario.vazio {
    background: transparent;
}

/* SALAS */
.sala {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    font-size: 0.75rem;
    font-style: italic;
    letter-spacing: 0.08em;
    color: #666;
    position: relative;
    z-index: 4;
}

/* HORÁRIO */
.horario {
    background: #e3e1df;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #505050;
}

.horario strong {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.horario span {
    font-size: 0.62rem;
}

/* CÉLULAS */
.celula {
    background: #e7e5e3;
    padding: 12px;
    font-size: 0.68rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
}

/* NOME EM NEGRITO */
.celula strong {
    font-weight: 800;
    margin-bottom: 4px;
}

/* FAIXAS */
.faixa .celula,
.faixa .horario {
    min-height: 54px;
}

/* ABERTURA / ENCERRAMENTO */
.abertura,
.encerramento {
    color: #11a7c9;
    font-size: 0.75rem;
    font-weight: 800;
}

/* DESTAQUE */
.destaque-neutro {
    font-weight: 800;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
    .programacao-wrap {
        overflow-x: auto;
    }

    .programacao-wrap>* {
        max-width: 100%;
    }
}

/* =========================
   MOBILE PROGRAMAÇÃO (SCROLL REAL)
========================= */

@media (max-width: 768px) {

    /* remove linhas */
    .linhas-salas {
        display: none;
    }

    /* container com scroll */
    .programacao-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    /* SCROLL VISÍVEL */
    .programacao-wrap::-webkit-scrollbar {
        height: 10px;
    }

    .programacao-wrap::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .programacao-wrap::-webkit-scrollbar-thumb {
        background: var(--azul-escuro);
        border-radius: 10px;
    }

    /* FIREFOX */
    .programacao-wrap {
        scrollbar-width: auto;
        scrollbar-color: var(--azul-escuro) #e0e0e0;
    }

    /* mantém tabela larga */
    .tabela-programacao {
        min-width: 1000px;
    }

    /* ajuste de grid */
    .linha {
        grid-template-columns: 90px repeat(8, 1fr);
    }

    /* ajuste tipográfico */
    .celula {
        font-size: 0.6rem;
        padding: 8px;
    }

    .horario {
        padding: 8px;
    }

    .horario strong {
        font-size: 0.65rem;
    }

    .horario span {
        font-size: 0.55rem;
    }

    .sala {
        font-size: 0.65rem;
    }
}

/* =========================
   SEÇÃO PRESIDENTE
========================= */

.sec-presidente {
    padding: 80px 0;
    background: #f2f2f2;
}

.bloco-presidente {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.bloco-presidente:nth-child(2) {
    display: flex;
    flex-direction: row-reverse;
}

.presidente-2 {
    text-align: right;
}

/* TEXTO */
.texto {
    max-width: 520px;
}

.texto.esquerda {
    text-align: left;
}

.texto.direita {
    text-align: end;
}

.texto h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.texto p {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    color: #444;
}

.assinatura {
    font-size: 13px;
    font-style: italic;
    color: #555;
    margin-top: 25px;
}

/* ASPAS */
.aspas {
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.8;
}

/* IMAGEM (sempre à direita) */
.imagem {
    flex-shrink: 0;
}

.circle {
    width: 450px;
    height: 450px;
    background: #1d2f45;
    border-radius: 50%;
}

.circle1,
.circle2 {
    background-size: contain !important;
    background-position: center !important;
}

.circle1 {
    background: url('images/dr-andre-cruz.jpg');
}

.circle2 {
    background: url('images/dr-juliano-tibola.png');
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {

    .bloco-presidente {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 40px;
    }

    .texto,
    .texto.direita,
    .texto.esquerda {
        text-align: center;
        margin: 0 auto;
    }

    .circle {
        width: 280px;
        height: 280px;
    }

    .texto h3 {
        font-size: 22px;
    }

    .bloco-presidente:nth-child(2) {
        display: flex;
        flex-direction: column;
    }

    .presidente-2 {
        text-align: unset;
    }
}

/* BALÃOZINHO PDF NA PROGRAMAÇÃO */
.programacao .celula {
    position: relative;
    padding: 10px 8px 30px;
}

.link-pdf-programacao {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);

    height: 18px;
    padding: 0 8px;
    border-radius: 999px;

    background: linear-gradient(90deg, #27A269 0%, #1b7f52 100%);
    color: #fff;

    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    box-shadow: 0 3px 8px rgba(39, 162, 105, 0.25);
    transition: 0.2s ease;
}

/* TEXTO VINDO DO CSS */
.link-pdf-programacao::after {
    content: "programação";
}

/* ícone */
.link-pdf-programacao::before {
    content: "↗";
    margin-right: 4px;
    font-size: 0.6rem;
}

.link-pdf-programacao:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Balãozinho esgotadas */
.celula strong {
    position: relative;
    display: inline-block;
}

.celula.esgotado::after {
    content: "VAGAS ESGOTADAS";
    display: block;
    margin-top: 4px;
    color: #e53935;
    border: 2px solid #e53935;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    text-transform: uppercase;
    width: fit-content;
}