@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800&family=Open+Sans:wght@600;700&display=swap');

:root {
    --vinho: #6b1d1d;
    --texto: #000;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: Inter, sans-serif;
    color: var(--texto);
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #000;
    transition: 0.3s ease;
}

a:hover {
    color: var(--vinho);
}

/* ==================================================
   HERO REVISTA PREMIUM
================================================== */

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    margin: 70px 0;
}

/* POST PRINCIPAL */

.hero-main {
    position: relative;
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

/* LATERAIS */

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 35px;
}

.hero-secondary {
    position: relative;
    overflow: hidden;
}

.hero-secondary img {
    width: 100%;
    height: 262px;
    object-fit: cover;
    display: block;
}

/* ===============================
   OVERLAY AJUSTADO CORRETAMENTE
=============================== */

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 60px 25px 40px; /* menos topo, mais ancorado embaixo */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.98) 0%,
        rgba(0,0,0,0.80) 50%,
        rgba(0,0,0,0.40) 80%,
        transparent 100%
    );
    color: #fff;
}

/* CATEGORIAS HERO */

.hero-overlay .category-label {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 12px;
    display: inline-block;
}

/* TÍTULO PRINCIPAL */

.hero-overlay h2 {
    font-size: 2.3rem;
    line-height: 1.35;
    margin: 0;
    max-width: 90%; /* linha mais longa */
    color: #fff;
}

/* TÍTULOS LATERAIS */

.hero-overlay h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin: 0;
    max-width: 90%;
    color: #fff;
}

/* ==================================================
   CONTEÚDO PRINCIPAL
================================================== */

.home-content {
    margin-top: 30px;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
    align-items: start;
}

/* FEED 12 POSTS */

.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px;
}

.feed-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 15px;
}

.feed-card .category-label {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: #8e8474;
    margin-bottom: 10px;
    display: inline-block;
}

.feed-card h3 {
    font-size: 1.3rem;
    margin: 0;
}

/* ==================================================
   SIDEBAR
================================================== */

.sidebar {
    position: relative;
}

.widget {
    margin-bottom: 60px;
}

.widget-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* MAIS LIDAS */

.most-read {
    list-style: decimal-leading-zero;
    padding-left: 22px;
}

.most-read li {
    margin-bottom: 12px;
}

.most-read a {
    color: #000;
}

.most-read a:hover {
    color: var(--vinho);
}

/* CATEGORIAS LISTA */

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #000;
}

.sidebar ul li a:hover {
    color: var(--vinho);
}

/* TAG CLOUD */

.tagcloud a {
    font-size: 13px !important;
    margin-right: 8px;
}

/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 1024px) {

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-main img {
        height: 420px;
    }

    .hero-secondary img {
        height: 300px;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE FINO */

@media (max-width: 768px) {

    .hero-overlay {
        padding: 25px 25px 20px 25px;
    }

    .hero-overlay h2 {
        font-size: 1.6rem; /* reduz no mobile */
        line-height: 1.25;
        max-width: 100%;
    }

    .hero-overlay h3 {
        font-size: 1.1rem;
        max-width: 100%;
    }

}
/* ==================================================
   AJUSTES FINOS HERO + MOBILE CORREÇÕES
================================================== */

/* Garante que overlay respeite margens corretamente */
.hero-main,
.hero-secondary {
    position: relative;
}

.hero-overlay {
    left: 0;
    right: 0;
    padding: 25px 40px 25px 30px; /* mais próximo da esquerda */
}

/* TÍTULOS LATERAIS MAIS À ESQUERDA */

.hero-secondary .hero-overlay h3 {
    max-width: 95%;
    margin-left: 0;
}

/* TÍTULO PRINCIPAL MAIS LARGO */

.hero-main .hero-overlay h2 {
    max-width: 85%;
}

/* ==================================================
   MOBILE CORREÇÕES REAIS
================================================== */

@media (max-width: 768px) {

    /* HERO IMAGENS CONTROLADAS */
    .hero-main img {
        height: 320px;
    }

    .hero-secondary img {
        height: 220px;
    }

    /* OVERLAY VERDADEIRAMENTE ANCORADO EMBAIXO */
    .hero-overlay {
        padding: 20px 20px 18px 20px;
        bottom: 0;
    }

    /* TÍTULO PRINCIPAL MENOR */
    .hero-overlay h2 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    /* TÍTULOS MENORES AJUSTADOS */
    .hero-overlay h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    /* REMOVE NEGRITO DO CORPO DOS POSTS */
    body {
        font-weight: 400;
    }

    .feed-card h3 {
        font-weight: 400;
    }

    /* IMAGENS DO FEED MENORES */
    .feed-card img {
        height: 200px;
    }

}