:root {
    --azul-principal: #0056b3; 
    --laranja: #ff8000;      
    --azul-escuro: #002a4e;  
    --branco: #ffffff;
    --cinza-claro: #f4f7f6;
    --texto: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Controladores de largura para manter centrado e com margens bonitas */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-medium {
    max-width: 1000px;
}

.container-narrow {
    max-width: 800px;
}

.scroll-section {
    scroll-margin-top: 70px; /* Margem extra para não colar no menu */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--texto);
    background-color: var(--branco);
}

/* Navbar */
#navbar {
    background: var(--branco);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    height: 55px;
}

.brand-name {
    font-size: 0.75rem; /* Aumentado ligeiramente */
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-escuro);
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase; /* Dá um ar mais institucional */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--azul-escuro);
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-links li a:hover { color: var(--laranja); }

/* Hero / Manutenção */
.hero {
    height: 75vh;
    /* Imagem representativa de desporto e ambiente escolar/infantil */
    background: linear-gradient(rgba(0,42,78,0.75), rgba(0,42,78,0.75)), 
                url('wp5.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
}

.maintenance-box h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--laranja);
}

.maintenance-box p {
    font-size: 1.3rem;
    font-weight: 300;
}

/* Secções */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--azul-escuro);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--laranja);
    margin: 15px auto 0;
}

/* Documentos */
#documentos { background-color: var(--cinza-claro); }

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.doc-card {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.doc-card:hover { transform: translateY(-10px); }

.doc-card h3 { color: var(--azul-escuro); margin-bottom: 15px; }

.btn-doc {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--azul-principal);
    color: var(--branco);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-doc:hover { background: var(--laranja); }

.denuncia-box {
    margin-top: 60px;
    padding: 30px;
    background: var(--branco);
    border: 2px dashed #ddd;
    text-align: center;
    border-radius: 12px;
}
/* Localize ou adicione esta regra para o link de denúncias */
.denuncia-box a {
    color: var(--azul-principal);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease; /* Transição suave */
}

.denuncia-box a:hover {
    color: var(--laranja); /* Fica laranja ao passar o rato */
}

.denuncia-box a { color: var(--azul-principal); font-weight: bold; text-decoration: none; }

/* Contactos */
.contact-form {
    background: var(--cinza-claro);
    padding: 40px;
    border-radius: 12px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--azul-escuro);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: var(--laranja); }

/* Rodapé */
footer {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-info h4 {
    margin-bottom: 25px;
    color: var(--laranja);
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Botão Topo */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--laranja);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: 0.3s;
}

#backToTop:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    .brand { align-items: center; margin-bottom: 15px; }
    .nav-links li { margin: 0 10px; }
    .hero h1 { font-size: 2rem; }
}
.footer-info a.footer-email-link {
    color: var(--branco); /* Ou a cor que preferires */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a.footer-email-link:hover {
    color: var(--laranja); /* Muda para laranja ao passar o rato */
}
/* Estilo do Captcha */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #eee;
    padding: 10px;
    border-radius: 8px;
}
.captcha-wrapper label { font-weight: bold; color: var(--azul-escuro); }
.captcha-wrapper input { margin-bottom: 0 !important; width: 100px !important; }

#form-status {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra para destacar */
    border-left: 5px solid transparent; /* Detalhe lateral */
}

.status-success { 
    background: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb;
    border-left-color: #28a745; 
}

.status-error { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb;
    border-left-color: #dc3545;
}