html {
    scroll-behavior: smooth; /* Rolagem suave */
}

li, p{
    font-family: "MontSerrat", sans-serif;
}

#msg{
    color: #155724;
    background-color: #d4edd4;
    border: 1px solid #c3e5cb;
    padding: 10px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 30px;

}

.testa {
    width: 100%;
    height: auto; /* Ajusta automaticamente conforme a proporção da imagem */
    overflow: hidden; /* Esconde qualquer parte da imagem que ultrapasse a altura definida */
    top: 500px;
}

.testa img {
    width: 100%;
    display: block; /* Remove espaços em branco ao redor da imagem */
    object-fit: cover; /* Faz com que a imagem cubra totalmente a área da div */
}


.celular{
    display: none;
}

#Logo img{
    position: fixed;
    z-index: 1001; /* Garante que o logo fique acima do header fixo */
    max-width: 180px;
}

#LogoHeader img{
    position: fixed;
    z-index: 1001; /* Garante que o logo fique acima do header fixo */
    max-width: 180px;
}


/* Estilo para a navbar */
#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 25px;
    text-transform: uppercase;
    list-style: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: fixed;
    width: calc(100% - 220px); /* Considera o espaço ocupado pelo logo e o botão */
    z-index: 1000;
    top: 0;
    right: 0;
    left: auto;
    width: 100%;
}

/* Estilo para os links da navbar */
#navbar .nav-link {
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: .5s;
    font-size: 14px;
    margin: 0 10px;
}

/* Botão de menu para dispositivos móveis */
#menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 15px;
    z-index: 1002;
}


/* Media query para dispositivos móveis */
@media (max-width: 1500px) {
    header {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        padding: 25px;
        text-transform: uppercase;
        list-style: none;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
        margin-bottom: 20px;
        position: fixed;
        width: calc(100% - 220px); /* Considera o espaço ocupado pelo logo e o botão */
        z-index: 1000;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        height: 75px;
    }

    #LogoHeader img{
        position: fixed;
        z-index: 1001; /* Garante que o logo fique acima do header fixo */
        max-width: 160px;
        top: 0;
        left: 0;
    }
    

    #Logo img{
        position: fixed;
        z-index: 1001; /* Garante que o logo fique acima do header fixo */
        max-width: 160px;
        top: 0;
        left: 0;
    }

    #navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background-color: #fff;
        padding: 10px 20px;
        list-style: none;
        position: fixed;
        width: 100%;
        top: 60px; /* Ajuste de acordo com a altura do header */
        right: 0;
        left: 0;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: max-height 0.3s ease-out;
        max-height: 0; /* Inicialmente escondido */
        overflow: hidden;
    }

    #navbar.show {
        display: flex;
        max-height: 500px; /* Ajuste conforme o número de itens */
    }

    /* Estilo para os links da navbar quando o menu é exibido */
    #navbar .nav-link {
        display: block;
        width: 100%; /* Ocupa 100% da largura */
        padding: 15px 20px;
        font-size: 18px;
        margin: 0;
        color: #333; /* Cor do texto */
        transition: background-color 0.3s ease, color 0.3s ease; /* Transições suaves */
        position: relative;
        text-align: left;
    }

    #navbar .nav-link:hover {
        background-color: #343a40; /* Cor de fundo ao passar o mouse */
        color: #fff; /* Cor do texto ao passar o mouse */
        text-align: left;
    }

    /* Botão de menu para dispositivos móveis */
    #menu-toggle {
        display: block;
        font-size: 30px;
        cursor: pointer;
        position: fixed;
        right: 20px;
        top: 15px;
        z-index: 1002;
    }

    li{
        width: 100%;
        text-align: left;
    }
}
.div-meio{
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom right, #E8E8E8 , #F5F5F5);
    display: flex;
    justify-content: space-between; /* Espalha o conteúdo entre os dois lados */
    align-items: center;
    padding: 10% 10%; /* Adiciona espaço nas laterais */
}

.div-meio-img {
    max-width: 40%; /* Controla o tamanho da imagem */
    height: auto;
    border-radius: 10px;
    margin-left: 10%;
}

.div-titulo-img {
    max-width: 25%; /* Controla o tamanho da imagem */
    height: auto;
    border-radius: 10px;
    margin-right: 15%;
    margin-top: 100px;
    margin-bottom: 100px;
}
.div-meio-titulo {
    max-width: 40%;
}

.background-div {
    width: 100%;
    height: 60vh;
    background: linear-gradient(to bottom right, #E8E8E8 , #F5F5F5);
    display: flex;
    justify-content: space-between; /* Espalha o conteúdo entre os dois lados */
    align-items: center;
    padding: 0 10%; /* Adiciona espaço nas laterais */
}


.background-div-titulo {
    max-width: 35%;
    margin-left: 10%;
}

/* Ajustes para a área de programação */
.programacao-div {
    height: auto; /* Altura automática conforme o conteúdo */
    padding: 20px; /* Padding ajustado para dispositivos móveis */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Título da programação */
.programacao-titulo {
    width: 100%;
    max-width: 800px; /* Limita a largura para melhor visualização em telas grandes */
    margin: 20px auto;
    padding: 20px;
}

/* Itens individuais da programação */
.programacao-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; /* Alinha itens à esquerda */
    width: 100%;
    max-width: 800px; /* Limita a largura dos itens */
    padding: 20px;
    border-radius: 8px;
    background-color: #f7f7f7; /* Fundo leve para os itens */
    margin: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

/* Efeito hover nos itens */
.programacao-item:hover {
    transform: translateY(-5px); /* Efeito de movimento suave ao passar o mouse */
    background-color: #e0e0e0; /* Cor de fundo mais escura ao passar o mouse */
}

/* Estilização do horário */
.programacao-item .hora p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333; /* Cor mais escura para os horários */
    margin: 0;
    padding: 5px 0;
}

/* Estilização do título da programação */
.programacao-item .titulo p {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #444; /* Cor escura para destaque */
    margin: 5px 0;
}

/* Descrição do evento */
.programacao-item .descricao p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* Container dos itens de programação */
.itens_programacao {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 800px; /* Limita a largura total */
}

/* Estilo do título geral */
.programacao-titulo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

/* Subtítulo */
.programacao-titulo p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
}

/* Estilo dos botões de filtro */
.programacao-filtro button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.programacao-filtro button:hover {
    background-color: #555;
}


@media (max-width: 768px) {
    .programacao-div {
        text-align: center; /* Centraliza o texto no mobile */
        padding: 40px; /* Ajusta o padding para telas menores */
    }

    .programacao-titulo {
        padding: 20px;
        margin: 0 auto 20px auto; /* Centraliza e reduz margem no mobile */
    }

    .programacao-item {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Expande para ocupar toda a largura */
    }

    .programacao-item .hora,
    .programacao-item .titulo {
        width: 100%;
        text-align: center; /* Centraliza texto dos itens */
    }

    .programacao-item:hover {
        transform: none; /* Remove o efeito de hover em dispositivos móveis */
    }
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-align: left;
    color: black;
}

p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: black;
}

label {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: black;
}

.button-primary, .button-secondary {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

.button-primary {
    background-color: black;
    color: white;
    border: none;
    box-shadow: 0px 4px 6px #333;
}

.button-secondary {
    background-color: white;
    color: black;
    border: 2px solid black;
    text-decoration: none;
}

.button-primary:hover {
    background-color: white ;
    color: black;
    border: 2px solid black;
    text-decoration: none;
}

.button-secondary:hover {
    background-color: black;
    color: white;
    font-weight: bold;
}

.div-meio-img,
.div-meio-titulo{
    margin-top: 100px;
    margin-bottom: 100px;
}

.btn-primary{
    background-color: black;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    border: none !important;
    transition: all linear 160ms;
    cursor: pointer;
    margin: 0 !important;
}

.btn-primary:hover {
    background-color: #122050;
    color: #fff;
    transform: scale(1.05);
}

.logo-evento {
    max-width: 30%; /* Controla o tamanho da imagem */
    height: auto;
    border-radius: 10px;
    margin-right: 10%;
}

.cronometro-div {
    width: 100%;
    height: 60vh;
    background-color: black;
    background: linear-gradient(to bottom right, black, black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    text-align: center;
    color: white;
}

#cronometro {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.time-box {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 15px;
    text-align: center;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 40px;
    position: relative;
}

.time-box span {
    font-size: 16px;
    font-weight: bold;
    color: black;
    background-color: #E8E8E8;
    padding: 5px 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

h2 {
    font-family: 'MontSerrat', sans-serif;
    font-size: 36px;
    margin: 0;
    font-weight: bold;

}


.form-container {
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    background-color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #122050;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #122050;
    outline: none;
}

p.bold {
    font-weight: bold;
    text-align: left;
    font-size: 1.1em;
    margin-bottom: 10px;
}

label.bold {
    font-weight: bold;
    text-align: left;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Estilos iniciais para as divs */
.background-div,
.div-meio,
.cronometro-div {
    display: flex;
    justify-content: space-between; /* Distribui o conteúdo entre os lados */
    align-items: center;
    padding: 0 10%;
}

/* Estilo para os itens dentro das divs */
.background-div-titulo,
.div-meio-titulo {
    max-width: 45%;
}

/* divisão */

.palestrantes {
    width: 100%;
    margin: 0 auto;
    padding: 50px; /* Ajustei o padding para melhorar o espaçamento geral */
    padding-top: 100px; /* Ajustei o padding para melhorar o espaçamento geral */
    background: linear-gradient(to bottom right, #E8E8E8 , #F5F5F5);
}

.realizadores {
    width: 100%;
    margin: 0 auto;
    padding: 50px; /* Ajustei o padding para melhorar o espaçamento geral */
    padding-top: 100px; /* Ajustei o padding para melhorar o espaçamento geral */
    background-color: white;
}

.patrocinadores {
    width: 100%;
    margin: 0 auto;
    padding: 50px; /* Ajustei o padding para melhorar o espaçamento geral */
    padding-top: 100px; /* Ajustei o padding para melhorar o espaçamento geral */
    background: linear-gradient(to bottom right, #E8E8E8 , #F5F5F5);
}

.apoiadores {
    width: 100%;
    margin: 0 auto;
    padding: 50px; /* Ajustei o padding para melhorar o espaçamento geral */
    padding-top: 100px; /* Ajustei o padding para melhorar o espaçamento geral */
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Mantém o layout responsivo */
    gap: 50px; /* Espaçamento entre os cartões */
    justify-content: center; /* Garante que os cartões sejam centralizados */
}

@media (max-width: 768px) { /* Ajuste o valor conforme o breakpoint desejado */
    #cronometro .time-box:nth-child(3),
    #cronometro .time-box:nth-child(4) {
        display: none;
    }
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%; /* Faz com que cada cartão ocupe toda a largura da coluna da grade */
    max-width: 300px; /* Limita a largura máxima de cada cartão */
    margin: 0 auto; /* Centraliza o cartão dentro de sua coluna */
}

.card:hover {
    transform: translateY(-10px);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.card-content a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.card-content a:hover {
    text-decoration: underline;
}

.card img {
    max-width: 300px; /* Define a largura para ocupar todo o espaço horizontal disponível do card */
    max-height: 300px; /* Define uma altura fixa para fazer a imagem quadrada */
    object-fit: cover; /* Garante que a imagem cubra todo o espaço disponível, cortando o excesso */
}

#loading {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#loading i {
    font-size: 24px;
    color: #122050;
}

@media (max-width: 768px) {
    /* As divs ficam em coluna ao invés de linha */
    .background-div,
    .div-meio,
    .cronometro-div,
    .programacao-div {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: left; /* Centraliza o texto */
        padding: 20px;
    }

    h1{
        text-align: left;
        left: 0;
    }

    /* Itens dentro das divs ocupam 100% da largura */
    .background-div-titulo,
    .div-meio-titulo,
    .div-meio-img,
    .div-titulo-img,
    .programacao-titulo {
        max-width: 90%;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    /* Ajusta o tamanho das imagens para telas menores */
    .div-meio-img,
    .div-titulo-img {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Remove a altura fixa para permitir que as divs se adaptem ao conteúdo */
    .background-div,
    .div-meio,
    .cronometro-div,
    .programacao-div {
        height: auto; /* Ajusta a altura conforme o conteúdo */
        padding: 40px 20px; /* Adiciona padding superior e inferior para espaçamento */
    }


    .div-meio{
        background: linear-gradient(to bottom right, #E8E8E8 , #F5F5F5);
    }

    .background-div,
    .div-meio {
        flex-direction: column-reverse; /* Inverte a ordem dos itens */
        padding-left: 20px;
        padding-bottom: 40px;
        padding-top: 40px;
        padding-right: 20px;
        background: linear-gradient(to bottom right, white , white);
    }

    #buttons{
        text-align: center;
    }

    /* Itens dentro da div ocupam 100% da largura */
    .background-div-titulo,
    .div-titulo-img {
        max-width: 100%;
        margin-bottom: 30px;
        margin-top: 30px;
    }

    /* Ajusta o tamanho da imagem para telas menores */
    .div-titulo-img {
        max-width: 80%;
        margin: 0 auto;
    }
    .div-meio-titulo{
        padding-bottom: 40px;
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    #cronometro {
        flex-direction: column; /* Organiza as caixas uma embaixo da outra */
        gap: 20px;
    }

    .time-box {
        width: 300px;
        height: 300px;
        font-size: 40px;
    }

    .time-box span {
        font-size: 18px;
        font-weight: bold;
    }

    .cronometro-div h2 {
        padding: 30px;
        font-size: 30px;
        margin-bottom: 25px;
    }

    .section-title {
        text-align: center;
        font-size: 36px;
        font-weight: bold;
        margin-bottom: 40px;
        color: #333;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .card {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .card:hover {
        transform: translateY(-10px);
    }

    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .card-content {
        padding: 20px;
        text-align: center;
    }

    .card-content h2 {
        font-size: 20px;
        color: #333;
        margin-bottom: 10px;
    }

    .card-content p {
        font-size: 16px;
        color: #777;
        margin-bottom: 20px;
    }

    .card-content a {
        text-decoration: none;
        color: #007BFF;
        font-weight: bold;
    }

    .card-content a:hover {
        text-decoration: underline;
    }
}

/* modal */

.modal {
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
    z-index: 9999; /* Certifique-se que está acima de tudo */
    overflow-y: auto; /* Permite rolagem se o conteúdo da modal for muito grande */
    margin: 0 auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

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

.modal-text {
    flex: 1;
    padding-right: 20px; /* Espaço entre o texto e a imagem */
}

.modal-text h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.modal-text h3 {
    color: #555;
    font-size: 18px;
}

.modal-text p {
    color: #666;
    line-height: 1.6;
}

.modal-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image img {
    width: 100%;
    max-width: 300px; /* Ajuste conforme necessário */
    border-radius: 10px; /* Borda arredondada para a imagem */
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa; /* Cor do ícone de fechar */
}

@media (max-width: 768px) {
    .modal {
        display: flex;
        align-items: center; /* Centraliza verticalmente */
        justify-content: center; /* Centraliza horizontalmente */
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
        z-index: 9999; /* Certifique-se que está acima de tudo */
        overflow-y: auto; /* Permite rolagem se o conteúdo da modal for muito grande */
    }

}



/* Sidebar */
.sidebar {
    height: 100%;
    width: 60px;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.2);
    gap: 20px;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #122050;
    display: flex;
    align-items: center;
    transition: 0.3s;
    font-weight: bold;
}

.sidebar a:hover {
    color: #999;
}

.sidebar a i {
    margin-right: 10px;
}

.sidebar a .link-text {
    display: none;
}

.sidebar:hover {
    width: 250px;
}

.sidebar:hover a .link-text {
    display: inline;
}

.sidebar:hover #Logo {
    display: flex;
}

#Logo {
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.modal-feedback {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-feedback-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
}

.close-feedback {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-feedback:hover,
.close-feedback:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#feedbackMessage {
    font-size: 16px;
    margin-top: 20px;
}