/* ==========================================================================
   📖 BASE CONFIGURADA DO SITE
   ========================================================================== */
:root {
    --orange-main: #f08123;
    --text-black: #1a1a1a;
    --text-muted: #555555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    background: #ffffff;
    color: var(--text-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   📌 NAVBAR FIXA (sticky)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #595959;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* LOGO */
.logo img {
    width: 140px;
    max-width: 100%;
    transition: transform 0.3s ease;
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

/* MENU (DESKTOP HORIZONTAL) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

/* LINKS */
.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

/* sublinhado elegante */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: #c9a66b;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #c9a66b;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ☰ HAMBURGUER */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* ==========================================================================
   📰 NOVO BLOCO: ARTIGO DE JORNAL (ESTILO MUNDIAL 2026)
   ========================================================================== */
.news-container {
    max-width: 1150px;
    width: 100%;
    margin: 40px auto;
    padding: 0 40px;
}

/* Cabeçalho de Notícias */
.news-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.news-date {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    background-color: var(--orange-main);
    color: white;
    display: inline-block;
    padding: 4px 14px;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 8px;
}

.news-category {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--orange-main);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.news-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.15;
    color: #222222;
    max-width: 850px;
    margin-bottom: 30px;
}

.news-author-box {
    border-bottom: 1px solid #d3d3d3;
    padding-bottom: 12px;
    max-width: 450px;
}

.news-author {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    background-color: var(--orange-main);
    color: #ffffff;
    padding: 5px 16px;
    display: inline-block;
}

/* Grelha Editorial de Duas Colunas */
.news-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* Parágrafos Jornalísticos */
.paragraph {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.65;
    margin-bottom: 25px;
    text-align: justify;
}

/* Subtítulos Intermédios */
.sub-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: normal;
    color: #222222;
    margin: 40px 0 20px 0;
}

/* Imagem e Moldura Superior */
.news-image-wrapper {
    width: 100%;
    border-top: 15px solid var(--orange-main);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Efeito de quebra no fim do texto */
.text-truncated {
    margin-bottom: 0;
}

h3 {
    font-size: 1.4rem;
    color: #111;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* ==========================================================================
   👣 FOOTER
   ========================================================================== */
.site-footer {
    background-color: #555555;
    color: #ffffff;
    padding: 60px 40px 30px 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-newsletter {
    flex: 1;
    max-width: 500px;
}

.footer-newsletter h2 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    margin-bottom: 15px;
}

.footer-newsletter p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: none;
    background-color: #f0f0f0;
    font-size: 0.95rem;
    color: #333;
}

.newsletter-form button {
    width: fit-content;
    background-color: #8c3b2b;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background-color: #722e21;
}

.footer-contact {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-label {
    display: block;
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-substack a {
    color: #ffffff;
    text-decoration: none;
}

.contact-substack a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-socials a:hover {
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.footer-slogan {
    text-align: right;
    font-size: 0.85rem;
    color: #e0e0e0;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #777777;
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #cccccc;
}

/* ==========================================================================
   📱 RESPONSIVIDADE COMPLETA MÓVEL
   ========================================================================== */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #3a3a3a;
        flex-direction: column;
        gap: 18px;
        display: none;
        padding: 25px 0;
        transform-origin: top;
        animation: openMenu 0.4s ease forwards;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes openMenu {
        from { transform: scaleY(0); opacity: 0; }
        to { transform: scaleY(1); opacity: 1; }
    }

    .hamburger {
        display: block;
    }

    /* Transforma as duas colunas do jornal numa coluna única em ecrãs pequenos */
    .news-body-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-container {
        padding: 0 20px;
        margin: 20px auto;
    }

    .news-header h1 {
        font-size: 2.2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contact, 
    .footer-slogan {
        text-align: left;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}
