:root {
    --background: #f1f1f1;
    --foreground: #355068;
    --accent-color: #ba4c57;
    --text-primary: #355068;
    --text-secundary: #ffffff;
    --card-background: #ffffff;
}

:root.dark {
    --background: #1a2a3a;
    --foreground: #f1f1f1;
    --accent-color: #5e87bd;
    --text-primary: #f1f1f1;
    --text-secundary: #1a2a3a;
    --card-background: #2e445b;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: sans-serif; 
    text-decoration: none; 
    list-style: none; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--background); 
    color: var(--text-primary); 
    transition: all 0.3s ease; 
    overflow-x: hidden; 
}

.h1-style { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.h2-style { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.h3-style { 
    font-size: 1.5rem; 
    font-weight: bold; 
}

.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    background: var(--background); 
    position: sticky; top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #0000001a; 
    width: 100%; }

.logo h1 { 
    font-size: 1.5rem; 
    color: var(--text-primary); 
}

.logo span { 
    color: var(--accent-color); 
}

.lista-menu { 
    display: flex; 
    gap: 20px;
}

.lista-menu a { 
    color: var(--text-primary); 
    font-weight: bold;
}
.btn-theme-simple { 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.3rem; 
    color: var(--text-primary); 
}

.menu-toggle { 
    display: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
}

.section-div { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    padding: 80px 10%; 
    align-items: center; 
    gap: 50px; 
}

.animar { 
    display: inline-block; 
    white-space: nowrap; 
    color: var(--accent-color); 
} 

.imagem-inicio img, .imagem-sobre img { 
    width: 100%; 
    max-width: 350px; 
    border-radius: 20px; 
    display: block; 
    margin: 0 auto;
}


.formacoes-sec { 
    padding: 80px 5%; 
    text-align: center; 
}

.formacoes-lista { 
    display: flex; 
    overflow-x: auto; 
    gap: 20px; 
    padding: 20px 0; 
    scrollbar-width: none; 
}

.formacoes-lista::-webkit-scrollbar { 
    display: none; 
}

.formacao-item { 
    flex: 0 0 300px; 
    background: var(--card-background); 
    padding: 30px; 
    border-radius: 15px; 
    text-align: left; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.btn-detalhe { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 10px 20px; 
    background: var(--accent-color); 
    color: white !important; 
    border-radius: 5px; 
    font-weight: bold; 
}


.contacto-sec { 
    padding: 80px 10%; 
    text-align: center; 
    background-color: var(--card-background);
}

.contacto-links { 
    display: flex; 
    justify-content: 
    center; flex-wrap: 
    wrap; gap: 20px; 
    margin-top: 20px;
}
.contacto-links a { 
    padding: 15px 30px; 
    border: 2px solid var(--accent-color); 
    border-radius: 50px; 
    color: var(--text-primary); 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.footer { 
    padding: 30px; 
    text-align: center; 
    background: var(--text-primary); 
    color: var(--text-secundary); 
}

.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: #000000cc; 
    backdrop-filter: blur(5px); 
    overflow: hidden;
}

.modal-content { 
    background: var(--card-background); 
    margin: 5% auto; 
    padding: 30px; 
    width: 90%; 
    max-width: 700px; 
    border-radius: 15px; 
    position: relative; 
    color: var(--text-primary); 
    max-height: 85vh;
    overflow-y: auto;
}

.close-btn { 
    position: absolute; 
    right: 20px; 
    top: 10px; 
    font-size: 30px; 
    cursor: pointer; 
}


@media screen and (max-width: 1024px) {
    .section-div {
        padding: 60px 5%;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header { padding: 15px 5%; }
    
    .lista-menu { display: none; } 
    .menu-toggle { display: block; } 

    .section-div {
        display: flex; 
        flex-direction: column; 
        text-align: center;
        padding: 40px 5%;
    }

    .hero-texto, .sobre-texto {
        order: 1;
    }

    .imagem-inicio, .imagem-sobre {
        order: 2; 
        margin-top: 20px;
    }

    .imagem-inicio img, .imagem-sobre img {
        max-width: 250px; 
    }

    .h2-style { font-size: 1.8rem; }
}


@media screen and (max-width: 480px) {
    .h2-style { font-size: 1.5rem; }
    
    .formacao-item {
        flex: 0 0 280px; 
    }

    .contacto-links a {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 20px;
        font-size: 0.9rem;
    }
}
