:root {
    --purple-deep: #96689b;
    --pink-soft: #E88CB4;
    --text-dark: #333;
    --bg-light: #FFFAFC;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    position: sticky; /* Muda de fixed para sticky. Ele vai grudar no topo, mas vai calcular a altura sozinho! */
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 1px rgba(0,0,0,0.1);
}

/* Responsividade para telas menores (celulares) */
@media (max-width: 768px) {
    header {
        height: 1px; /* Diminui a altura no celular */
    }
    body {
        padding-top: 1px;
    }
}

.logo-img {
    max-width: 200px;
}

.hero {
    background: linear-gradient(135deg, var(--purple-deep) 0%, #4a154f 100%);
    color: white;
    padding: 10px 20px; /* 80px 20px*/
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.badge-obras {
    display: inline-block;
    background-color: var(--pink-soft);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.section-title {
    color: var(--purple-deep);
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--pink-soft);
    display: inline-block;
    margin-bottom: 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;    /* gap: 40px; */
    align-items: top;
    text-align: justify;
/*    align-items: center; */
}

@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

.profile-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    max-width: 300px;
}

.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.objectives-list li::before {
    content: '♥';
    color: var(--pink-soft);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}


footer {
    background-color: var(--purple-deep);
    color: white;
    text-align: center;
    /* Alterámos o padding: 40px topo, 20px direita, 150px base (novo), 20px esquerda */
    padding: 20px 20px 20px 10px; 
    margin-top: 10px; /*era 50px*/
}








.quote {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 30px 0;
}




/* Estilo para a imagem de rodapé fixa */
.fixed-footer-img {
    position: fixed; /* Fixa a imagem no ecrã */
    bottom: 0;       /* Cola a imagem na base do ecrã */
    left: 0;
    width: 100%;     /* Ocupa toda a largura da página */
    height: auto;    /* Mantém a proporção da imagem */
    z-index: 1000;   /* Garante que fica por cima de outros elementos */
    pointer-events: none; /* CRUCIAL: Permite que o rato "atravesse" a imagem transparente para clicar no que está por baixo */
}




/* NOVO ESTILO CRIADO PARA O LOGIN */

/* =========================================
   ESTILOS DO PAINEL ADMIN (LOGIN HI-TECH)
   ========================================= */
.login-body {
    /* Fundo escuro tecnológico puxando para um roxo muito profundo */
    background: linear-gradient(135deg, #0f0714 0%, #1e0e24 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Efeito de luzes (Glow) no fundo para o aspecto Hi-Tech */
.login-body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--pink-soft) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    opacity: 0.2;
    filter: blur(60px);
}

.login-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple-deep) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    opacity: 0.2;
    filter: blur(60px);
}

/* Efeito Glassmorphism (Vidro Fosco) */
.login-glass-card {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    z-index: 1; /* Mantém acima dos brilhos de fundo */
}

.login-logo {
    width: 130px;
    margin-bottom: 20px;
    border-radius: 50%; /* Deixa a logo redonda */
    background-color: white; /* Fundo branco para a logo brilhar */
    padding: 5px;
    box-shadow: 0 0 25px rgba(150, 104, 155, 0.5); /* Glow roxo */
    border: 2px solid var(--purple-deep);
}

.login-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.input-hitech {
    position: relative;
    margin-bottom: 25px;
}

.input-hitech input {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Espaço para o ícone */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.input-hitech input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-hitech input:focus {
    border-color: var(--pink-soft);
    box-shadow: 0 0 15px rgba(232, 140, 180, 0.4); /* Glow rosa no foco */
    background: rgba(0, 0, 0, 0.5);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--pink-soft);
}

.btn-hitech {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--purple-deep) 0%, var(--pink-soft) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(150, 104, 155, 0.4);
}

.btn-hitech:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 140, 180, 0.6); /* Glow mais forte ao passar o mouse */
}

.login-error {
    background: rgba(255, 50, 50, 0.15);
    color: #ff8080;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 50, 50, 0.3);
    font-size: 0.9rem;
}

/* =========================================
   CARROSSEL DE NOTÍCIAS (INDEX)
   ========================================= */
.news-carousel-container {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Os slides de notícias */
.news-slide {
    display: none; /* Esconde todos por padrão */
    animation: fade 1s ease-in-out;
}

.news-slide.active {
    display: block; /* Mostra apenas o que tem a classe active */
}

/* Imagem da notícia */
.news-img {
    width: 100%;
    height: 300px; /* Altura fixa para manter o padrão no carrossel */
    object-fit: cover; /* Corta a imagem proporcionalmente sem distorcer */
    border-radius: 15px 15px 0 0;
}

/* Área do texto (Título e Resumo) */
.news-content {
    padding: 20px;
    text-align: center;
}

.news-content h3 {
    color: var(--purple-deep);
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.news-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Bolinhas indicadoras embaixo do carrossel */
.carousel-indicators {
    text-align: center;
    padding: 10px 0 20px 0;
    background: white;
    border-radius: 0 0 15px 15px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--pink-soft);
}

/* Animação de transição suave */
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}