/* ---------- BASE ---------- */
html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ---------- COLOR PALETTE ---------- */
:root {
    --primary-color: #750300;   /* tom base */
    --secondary-color: #ba817f; /* tom 5 */
    --tertiary-color: #e3cccc;  /* tom 8 */
    --header-gradient: linear-gradient(to left, var(--primary-color) 0%, var(--secondary-color) 100%);
    --header-height: 120px;
}

/* ---------- HEADER ---------- */
.site-header {
    background: var(--header-gradient);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px 12px 0 0;
    width: 95vw;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    transition: background 0.6s ease;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    padding: 0 2%;
    box-sizing: border-box;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ---------- LOGO + TITLE ---------- */
.site-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.custom-logo {
    display: block;
    max-height: calc(var(--header-height) * 0.9);
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-title {
    font-family: 'Georgia', serif;
    font-weight: 2000;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin: 0;
}

/* ---------- SUA MODIFICAÇÃO ---------- */
.site-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.7em;
    color: #000000;
    letter-spacing: 0.6px;
    margin: 0;
    text-align: left;
}

/* ---------- HEADER RIGHT ---------- */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

.header-social img {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.header-social a:hover img {
    opacity: 0.7;
}

/* ---------- MENU ---------- */
.main-navigation {
    background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    width: 95vw;
    margin: 0 auto 20px;
    padding: 10px 0;
    border-radius: 0;
    box-sizing: border-box;
    transition: background 0.6s ease;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--tertiary-color);
}

/* ---------- ALIGNMENT ---------- */
.site-header,
.main-navigation,
.container,
.content-area,
footer {
    width: 95vw !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-width: none !important;
}

/* ---------- CONTENT AREA ---------- */
.content-area {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 40px;
    padding: 25px 30px;
    border-radius: 0 0 12px 12px;
    background: var(--tertiary-color);
    box-sizing: border-box;
}

main {
    flex: 3;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    margin-left: 25px;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    box-sizing: border-box;
}

.sidebar h3.widget-title {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
}

/* ---------- TITLES ---------- */
h1.entry-title,
h2.entry-title {
    background: linear-gradient(to right, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.5s ease;
}

/* ---------- HOME GRID ---------- */
.home-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
    max-width: 900px;
}

.home-button {
    display: inline-block;
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

/* ---------- BLOG POSTS ---------- */
.post-destaque img {
    width: 100%;
    border-radius: 10px;
}

.grid-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.grid-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

/* ---------- BUTTONS ---------- */
button,
input[type="submit"],
.header-button,
.btn-ver-todas {
    background: var(--primary-color);
    color: #fff;
    border: none;
    transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
.header-button:hover,
.btn-ver-todas:hover {
    background: var(--tertiary-color);
    color: var(--primary-color);
}

.btn-ver-todas {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--secondary-color);
    border-radius: 0 0 12px 12px;
    padding: 30px 0;
    color: #fff;
    text-align: center;
    width: 95vw;
    margin: 0 auto;
}

.footer-copy p {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.9;
    margin: 0;
    font-style: italic;
}

.footer-copy strong {
    color: #fff;
    font-style: normal;
}

/* ---------- LINKS ---------- */
a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--tertiary-color) !important;
}

.sidebar a,
.main-navigation a {
    color: #fff;
}

.sidebar a:hover,
.main-navigation a:hover {
    color: var(--tertiary-color);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .content-area {
        flex-direction: column;
        padding: 20px;
    }
    .sidebar {
        margin: 20px 0 0;
        width: 100%;
    }
    .home-buttons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .home-buttons-grid {
        grid-template-columns: 1fr;
    }
}
/* =====================================================
 *   CORREÇÃO FINAL DE CORES PADRÃO (TÍTULOS + LINKS)
 *   ===================================================== */

/* Reforço das cores principais */
:root {
    --primary-color: #750300 !important;
    --secondary-color: #ba817f !important;
    --tertiary-color: #e3cccc !important;
}

/* Links — primária padrão, terciária no hover */
a,
a:visited {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--tertiary-color) !important;
}

/* Títulos (h1–h6) usam primária como cor base */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color) !important;
}

/* Títulos dentro de cards ou boxes */
h1.entry-title,
h2.entry-title {
    background: linear-gradient(to right, var(--secondary-color) 0%, var(--tertiary-color) 100%) !important;
    color: #fff !important;
}

/* Botões e destaques */
button,
input[type="submit"],
.header-button,
.btn-ver-todas {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
}

button:hover,
input[type="submit"]:hover,
.header-button:hover,
.btn-ver-todas:hover {
    background: var(--tertiary-color) !important;
    color: var(--primary-color) !important;
}
/* ================================
 *   BLOCO DE POSTS NA HOME
 *   ================================ */

.post-destaque {
    max-width: 60%;
    margin: 0 auto 40px;
    text-align: center;
}

.post-destaque img {
    width: 100%;
    border-radius: 10px;
}

.grid-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 80%;
    margin: 0 auto 50px;
}

.grid-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.grid-item img {
    width: 100%;
    border-radius: 10px;
}

/* posts adicionais carregados via AJAX em lista */
.post-item {
    max-width: 80%;
    margin: 0 auto 25px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-item img {
    float: left;
    margin-right: 15px;
    border-radius: 8px;
    width: 160px;
    height: auto;
}

.post-item h2 {
    margin-top: 0;
}

.load-more-posts {
    text-align: center;
    margin: 30px 0;
}
/* ================================
 *   AJUSTES DO POST DESTAQUE
 * ================================ */
.post-destaque {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(117, 3, 0, 0.3);
    transform: scale(1.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-destaque:hover {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(117, 3, 0, 0.4);
}

.post-destaque img,
.featured-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px; /* distância entre imagem e título */
}

.post-destaque h2.entry-title {
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 8px; /* arredonda o fundo colorido do título */
}
