body {
    background-color: #ecd9b5;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    align-items: center;
    display: flex;
    flex-direction: column;
}
h1,
h2,
h3,
p {
    font-family: "Montserrat", sans-serif;
}

/* div da barra superior */
.topbar {
    width: 100%;
    height: 50px;
    max-height: 60px;
}
/* principal div da barra superior */
.nav {
    justify-content: space-between;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0a0909;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.brand .logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a1d49a, #50e3c2);
    box-shadow: 0 0 0 4px #ffffff0f inset;
}

.spacer {
    flex: 1;
}

.links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.links a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    position: relative;
    align-items: center;
    text-align: center;
    font-size: 12px;
}
.links a:hover {
    background: #f5f5f5;
}

.inscrever,
.ver_edital {
    white-space: nowrap;
    appearance: none;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #af761f, #f89719);
    box-shadow: 0 6px 20px rgba(137, 211, 131, 0.25);
    transition: box-shadow 0.2s ease;
}
.inscrever:focus,
.ver_edital:focus {
    outline: 3px solid #0a0e0b;
    outline-offset: 2px;
}
.inscrever:hover,
.ver_edital:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.inscrever_2 {
    white-space: nowrap;
    appearance: none;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #af761f, #f89719);
    transition: box-shadow 0.2s ease;
}
.inscrever_2:focus {
    outline: 3px solid #0a0e0b;
    outline-offset: 2px;
}
.inscrever_2:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.burger {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.burger .bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger .bar:nth-child(1) {
    top: 12px;
}
.burger .bar:nth-child(2) {
    top: 19px;
}
.burger .bar:nth-child(3) {
    top: 26px;
}

.burger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.open .bar:nth-child(2) {
    opacity: 0;
}
.burger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px clamp(12px, 3.5vw, 28px);
}

section#home {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.hero {
    margin-left: 5vw;
    margin-right: 5vw;
    padding: 44px clamp(16px, 4vw, 32px);
    padding-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9e7d7;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 20px;
    color: #0c0707;
}

.content-container {
    width: 100%;
    max-width: none;
    text-align: center;
}

.cards-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    margin-right: 20px;
    margin-left: 20px;
}

.card {
    background: #130202;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-card {
    width: 70%;
    background-color: #1c4931ff;
    color: #ece9e9;
}

.side-card {
    width: 30%;
    background-color: #d85841;
    color: #eee8e8;
    text-align: left;
}

.side-card ul {
    text-align: left;
    padding-left: 15px;
}

.resumo-card {
    margin-top: 20px;
    width: 100%;
    background-color: #f3b645;
    color: #140202;
}

.muted {
    color: #ece7e7;
}

.logo-EU {
    width: 100%;
    max-width: 250px;
    min-width: 150px;
    height: auto;
}

/* Rodape: */
.rodape {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

/* sections */
section#home {
    margin-top: 3vw;
    margin-left: 4vw;
    margin-right: 4vw;
    padding-bottom: 20px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

#contatos {
    max-width: 1200px;
    margin-top: 2vw;
    margin-left: 4vw;
    margin-right: 4vw;
    padding-bottom: 6px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    background-color: #f9e7d7;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#info {
    max-width: 1200px;
    margin-top: 2vw;
    margin-left: 4vw;
    margin-right: 4vw;
    padding-bottom: 6px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    background-color: #f9e7d7;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

#info button {
    font-size: 15px;
    width: 120px;
    height: 50px;
    margin-bottom: 10px;
    cursor: pointer;
}
.map {
    display: flex;
    justify-content: baseline;
    width: 80%;
}
.map iframe {
    width: 100%;
}

#org {
    max-width: 1200px;
    margin-top: 2vw;
    margin-left: 4vw;
    margin-right: 4vw;
    padding-bottom: 6px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    background-color: #f9e7d7;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#programacao {
    max-width: 1200px;
    margin-top: 2vw;
    margin-left: 4vw;
    margin-right: 4vw;
    padding-bottom: 6px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    background-color: #f9e7d7;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* BOTÃO DARK MODE */
/* Botão do modo escuro */
.toggle-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
}
.toggle-dark .icon-dark {
    width: 22px;
    height: 22px;
}

/* Tema escuro por classe no body */
body.dark {
    background: #181a1b;
    color: #eee;
}
body.dark a {
    color: white;
}
body.dark a:hover {
    color: black;
}

body.dark section,
body.dark .card {
    background: #222 !important;
    color: #eee;
}

body.dark button {
    background: none;
    color: #fff;
}
body.dark button img {
    filter: brightness(0) invert(1);
}
body.dark button .bar {
    filter: brightness(0) invert(1);
}

body.dark .inscrever,
.inscrever_2 {
    border: 1px solid white;
}

body.dark .inscrever:hover,
.inscrever_2:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

body.dark .ver_edital,
.baixar_tamplate {
    border: 1px solid white;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
}

body.dark .link_template:hover {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    color: #d85841;
}

.link_template {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #1c4931ff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    margin: 10px;
    background: #fff;
    border: 2px solid #1c4931ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.link_template:hover {
    background: #1c4931ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 73, 49, 0.2);
}

/* Seção de programação */
.programacao-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.programacao-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.programacao-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.click-hint {
    margin-top: 0.5rem;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Modal para visualização de imagem */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* Links destacados */
.link-destaque-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.link-destaque {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1c4931ff, #2a6b47);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(28, 73, 49, 0.3);
    transition: all 0.3s ease;
}

.link-destaque:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 73, 49, 0.4);
    background: linear-gradient(135deg, #2a6b47, #1c4931ff);
}

/* Seção de informações */
.info-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
}

/* Seção de contatos */
.contatos-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contato-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contato-info p {
    margin: 0.5rem 0;
    font-size: 16px;
}

.local-section,
.parcerias-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.local-section h3,
.parcerias-section h3 {
    margin-top: 0;
    color: #1c4931ff;
}

.endereco {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 1rem;
}

/* Dark mode */
body.dark .click-hint {
    color: #aaa;
}

body.dark .link_template {
    background: #333;
    border-color: #2a6b47;
    color: #2a6b47;
}

body.dark .link_template:hover {
    background: #2a6b47;
    color: #fff;
}

body.dark .link-destaque {
    background: linear-gradient(135deg, #2a6b47, #3d8a5c);
    box-shadow: 0 4px 12px rgba(42, 107, 71, 0.5);
}

body.dark .link-destaque:hover {
    box-shadow: 0 6px 20px rgba(42, 107, 71, 0.6);
}

body.dark .contato-info,
body.dark .local-section,
body.dark .parcerias-section {
    background: #2a2a2a;
}

body.dark .endereco {
    color: #aaa;
}

body.dark .programacao-img {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/*TAMANHO M*/
@media (max-width: 900px) {
    .topbar {
        display: flex;
        width: 100%;
        height: 10vw;
        min-height: 30px;
        padding: 0;
    }
    .nav {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 0;
        padding-left: 3vw;
        padding-right: 3vw;
    }
    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 10px 16px;
        background: #333;
        border-bottom: 1px solid #ffffff1a;
        color: #ad9d9d;
    }
    .links.open {
        display: flex;
        flex-direction: column;
    }
    .links.open a {
        color: #fff;
    }
    .links.open a:hover {
        color: black;
    }
    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    .inscrever {
        display: flex;
        justify-content: center;
        width: 80px;
        font-size: 10px;
    }

    .programacao-img {
        max-width: 100%;
        cursor: pointer;
    }

    .click-hint {
        font-size: 13px;
    }

    .modal-content {
        max-width: 98%;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }

    .programacao-img-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 2rem 0;
        padding: 1rem;
    }

    .link-destaque {
        font-size: 14px;
        padding: 14px 24px;
    }

    .link_template {
        font-size: 13px;
        padding: 10px 16px;
    }

    .info-links {
        flex-direction: column;
        align-items: center;
    }

    .map iframe {
        height: 300px;
    }

    .contato-info,
    .local-section,
    .parcerias-section {
        padding: 1rem;
    }
}

/*TAMANHO P*/
@media (max-width: 470px) {
    .topbar {
        display: flex;
        width: 100%;
        height: 10vw;
        min-height: 30px;
        padding: 0;
    }
    .nav {
        width: 100%;
        height: 100%;
        padding: 0;
        padding-left: 3vw;
        padding-right: 3vw;
    }
    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 10px 16px;
        background: #333;
        border-bottom: 1px solid #ffffff1a;
        color: #ad9d9d;
    }
    .links.open {
        display: flex;
        flex-direction: column;
    }
    .links.open a {
        color: #fff;
        font-size: 12px;
    }
    .links.open a:hover {
        color: black;
    }
    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    .inscrever {
        display: none;
    }

    #info .inscrever_2 {
        display: flex;
        justify-content: center;
        height: 40px;
        width: 90px;
        font-size: 10px;
    }

    #info .ver_edital {
        display: flex;
        justify-content: center;
        height: 40px;
        width: 90px;
        font-size: 10px;
    }

    .button-container {
        flex-direction: column;
        gap: 8px;
    }
    .button-container .inscrever_2,
    .button-container .ver_edital {
        width: 90px;
        font-size: 10px;
        height: 40px;
    }

    main {
        padding-top: 0;
        width: 90vw;
        margin: 0;
    }
    section {
        padding-left: 2vw;
        padding-right: 2vw;
        margin: 0;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .main-card {
        margin-top: 2vw;
    }
    .side-card {
        margin-bottom: 2vw;
    }
    .main-card,
    .side-card {
        width: 100%;
        max-width: 1200px;
        padding-right: 15px;
        padding-left: 15px;
        box-sizing: border-box; /* garante que o padding não estoure a largura */
        font-size: 13px;
    }

    .map {
        display: flex;
        justify-content: center;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 8px;
    }
    .map iframe {
        width: 100%;
    }

    #info button {
        font-size: 13px;
        margin: 0;
        padding: 0;
        align-items: center;
        width: 25vw;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .button-container {
        flex-direction: row;
        gap: 10px;
    }
    .button-container .inscrever_2,
    .button-container .ver_edital {
        width: 100px;
        font-size: 13px;
    }

    h1,
    h2,
    h3 {
        font-size: 20px;
        margin-bottom: 8px;
        margin-left: 8px;
        margin-right: 8px;
    }
    p {
        margin-top: 0;
        font-size: 13px;
        margin-left: 8px;
        margin-right: 8px;
    }
    ul,
    li {
        margin-top: 0;
        font-size: 13px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .programacao-img {
        max-width: 100%;
        cursor: pointer;
    }

    .click-hint {
        font-size: 12px;
        margin-top: 0.3rem;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-close {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }

    .programacao-img-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 2rem 0;
        padding: 1rem;
    }

    .link-destaque {
        font-size: 14px;
        padding: 14px 24px;
    }

    .link_template {
        font-size: 13px;
        padding: 10px 16px;
    }

    .info-links {
        flex-direction: column;
        align-items: center;
    }

    .map iframe {
        height: 300px;
    }

    .contato-info,
    .local-section,
    .parcerias-section {
        padding: 1rem;
    }
}
