
/*
Theme Name: Estilo MA17 Editorial
Theme URI: https://revistaestiloma17.com.br
Author: MA17
Description: Tema editorial da Revista Estilo MA17.
Version: 2.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: estilo-ma17
*/

:root {
    --red: #A68148;
    --teal: #A68148;
    --gold: #A68148;
    --black: #171717;
    --muted: #777777;
    --line: #E6E3DE;
    --ma17-petroleo: #171717;
    --ma17-escuro: #171717;
    --ma17-dourado: #A68148;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #FFFFFF;
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* CABEÇALHO SUPERIOR */

.topline {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    color: #555555;
    font-size: 10px;
    letter-spacing: .13em;
}

.topline .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* LOGOTIPO EDITORIAL */

.masthead {
    background: #FFFFFF;
    padding: 30px 0 26px;
    text-align: center;
}

.masthead .logo {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5.1vw, 69px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.055em;
    color: #161616;
}

.masthead .logo span {
    color: #161616;
}

.masthead .logo em {
    font-style: normal;
    color: var(--gold);
}

.tagline {
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: .23em;
    color: #666666;
}

/* MENU FINO E ELEGANTE */

.nav {
    background: #FFFFFF;
    color: #222222;
    border-top: 1px solid #222222;
    border-bottom: 3px double #222222;
}

.nav .wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 13px 0;
}

.nav ul,
.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav a {
    color: #222222;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.nav a:hover,
.nav .current-menu-item > a {
    color: var(--gold);
}

/* SEÇÕES */

.section {
    margin: 38px auto 52px;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-transform: none;
    border-bottom: 1px solid #222222;
    padding-bottom: 12px;
    margin: 0 0 24px;
}

.section-title span {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
}

/* MANCHETES */

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.story,
.card {
    min-width: 0;
}

.thumb {
    display: block;
    overflow: hidden;
}

.thumb img,
.story .thumb img,
.card .thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.story h2,
.story h3,
.card h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #171717;
    letter-spacing: -.035em;
}

.story h2 {
    font-size: clamp(29px, 3.3vw, 45px);
    line-height: 1.14;
    margin: 12px 0;
}

.story h3 {
    font-size: 25px;
    line-height: 1.23;
    margin: 9px 0;
}

.story + .story {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 20px;
}

.category,
.story .category,
.card .category {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 12px;
}

.meta {
    color: #888888;
    font-size: 12px;
    margin-top: 10px;
}

/* NOTÍCIAS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.card h3 {
    font-size: 23px;
    line-height: 1.24;
    margin: 10px 0;
}

/* PUBLICIDADE */

.ad-slot {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #FAFAFA;
    padding: 24px;
    text-align: center;
    color: #999999;
    font-size: 10px;
    letter-spacing: .15em;
    margin: 45px 0;
}

/* AGENDA CULTURAL */

.event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.event {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.event-date {
    min-width: 72px;
    text-align: center;
    background: #F6F4F0;
    border-top: 2px solid var(--gold);
    padding: 9px;
    font-family: Georgia, serif;
}

.event-date strong {
    display: block;
    font-size: 27px;
    line-height: 1.2;
}

.event h3 {
    margin: 5px 0;
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.3;
}

/* BOTÕES */

.btn {
    display: inline-block;
    background: #171717;
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--gold);
    color: #FFFFFF;
}

/* REPORTAGENS E PÁGINAS */

.content {
    width: min(820px, calc(100% - 40px));
    margin: 45px auto;
    padding: 0;
}

.content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.content .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 24px 0;
}

.article-body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.85;
}

.article-body p {
    margin: 0 0 1.4em;
}

/* RODAPÉ */

.footer {
    background: #171717;
    color: #E8E8E8;
    margin-top: 65px;
    padding: 45px 0;
    border-top: 3px solid var(--gold);
}

.footer a {
    color: #FFFFFF;
}

.footer a:hover {
    color: #D4B580;
}

.footer small {
    color: #AAAAAA;
}

/* PAGINAÇÃO */

.pagination {
    margin: 28px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--line);
}

/* PESQUISA */

.searchform {
    display: flex;
    gap: 8px;
}

.searchform input {
    flex: 1;
    min-width: 0;
    padding: 11px;
    border: 1px solid #CCCCCC;
}

.searchform button {
    background: #171717;
    color: #FFFFFF;
    border: 0;
    padding: 11px 16px;
}

/* ACESSIBILIDADE */

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: #FFFFFF;
    color: #111111;
    padding: 12px;
}

.wp-block-image img {
    height: auto;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav .wrap,
    .nav ul {
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .wrap {
        width: calc(100% - 30px);
    }

    .topline {
        text-align: center;
        font-size: 9px;
    }

    .topline .wrap {
        justify-content: center;
    }

    .topline-right {
        display: none;
    }

    .masthead {
        padding: 24px 0;
    }

    .masthead .logo {
        font-size: clamp(28px, 7vw, 43px);
    }

    .tagline {
        font-size: 9px;
        letter-spacing: .09em;
    }

    .nav .wrap,
    .nav ul {
        gap: 12px 16px;
    }

    .nav a {
        font-size: 11px;
    }

    .section {
        margin: 30px auto 42px;
    }

    .lead-grid,
    .cards,
    .event-list {
        grid-template-columns: 1fr;
    }

    .story h2 {
        font-size: 31px;
    }

    .content h1 {
        font-size: 36px;
    }

    .article-body {
        font-size: 18px;
    }
}

/* ====================================
   REVISTA ESTILO MA17
   HOME EDITORIAL — VERSÃO 2.1
==================================== */

.ma17-home {
    padding-top: 30px;
}

/* TÍTULO DA CAPA */

.ma17-home-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 26px;
}

.ma17-eyebrow {
    color: #A68148;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.ma17-home-intro h1 {
    font-family: Georgia, serif;
    font-size: clamp(29px, 3.5vw, 40px);
    letter-spacing: -.04em;
    line-height: 1.2;
    margin: 5px 0 0;
}

.ma17-home-intro p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* CAPA COM NOTÍCIAS */

.ma17-cover {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.ma17-cover-single {
    display: block;
    max-width: 760px;
    margin-left: 0;
}

/* IMAGEM PRINCIPAL REDUZIDA */

.ma17-main-image {
    display: block;
    width: 100%;
    overflow: hidden;
}

.ma17-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: cover;
    object-position: center;
}

/* TÍTULO PRINCIPAL */

.ma17-main-story h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3vw, 41px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -.035em;
    margin: 12px 0;
}

.ma17-summary {
    font-family: Georgia, serif;
    color: #555;
    font-size: 17px;
    line-height: 1.55;
    margin: 12px 0;
}

/* CATEGORIAS E DATAS */

.ma17-story-category {
    color: #A68148;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 13px;
}

.ma17-story-meta {
    color: #888;
    font-size: 12px;
    margin-top: 12px;
}

/* NOTÍCIAS LATERAIS */

.ma17-side-news {
    border-left: 1px solid #E5E5E5;
    padding-left: 25px;
}

.ma17-side-story {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E5E5E5;
}

.ma17-side-image img {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
}

.ma17-side-story h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.25;
    margin: 9px 0;
}

/* ESPAÇO PUBLICITÁRIO */

.ma17-advertising {
    background: #FAFAFA;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
    text-align: center;
    padding: 25px 15px;
    margin: 48px 0;
}

.ma17-advertising span {
    font-size: 9px;
    color: #999;
    letter-spacing: .18em;
}

.ma17-advertising p {
    font-size: 13px;
    color: #777;
    margin: 6px 0 0;
}

/* TÍTULOS DE SEÇÃO */

.ma17-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 13px;
    margin-bottom: 25px;
}

.ma17-section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 3vw, 35px);
    line-height: 1.2;
    margin: 0;
}

.ma17-section-heading span {
    font-size: 12px;
    color: #888;
}

/* CARDS DE NOTÍCIAS */

.ma17-news-section {
    margin: 50px 0;
}

.ma17-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.ma17-news-card {
    min-width: 0;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
}

.ma17-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ma17-news-card h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.25;
    margin: 10px 0;
}

.ma17-news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* AGENDA CULTURAL */

.ma17-agenda-section {
    margin: 55px 0;
}

.ma17-agenda-action {
    margin-top: 26px;
}

/* RESPONSIVIDADE */

@media (max-width: 850px) {
    .ma17-cover {
        grid-template-columns: 1fr;
    }

    .ma17-cover-single {
        max-width: 100%;
    }

    .ma17-side-news {
        border-left: 0;
        border-top: 1px solid #E5E5E5;
        padding-left: 0;
        padding-top: 22px;
    }

    .ma17-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ma17-home-intro,
    .ma17-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .ma17-main-image img {
        max-height: 280px;
    }

    .ma17-main-story h2 {
        font-size: 30px;
    }

    .ma17-news-grid {
        grid-template-columns: 1fr;
    }

    .ma17-side-story h3 {
        font-size: 22px;
    }
}

/* REVISTA ESTILO MA17 — AJUSTE DA CAPA */

.ma17-cover-single {
    max-width: 620px;
    margin-left: 0;
}

.ma17-main-image {
    width: 100%;
    height: auto;
    overflow: visible;
}

.ma17-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 600px) {
    .ma17-cover-single {
        max-width: 100%;
    }
}

/* MA17 — HOME EDITORIAL AUTOMÁTICA */

.ma17-editorial-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 14px;
    margin-bottom: 28px;
}

.ma17-editorial-heading h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin: 3px 0 0;
    line-height: 1.2;
}

.ma17-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    color: #ae813b;
    font-weight: 700;
}

.ma17-heading-note {
    font-size: 12px;
    color: #888;
}

.ma17-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.ma17-principal,
.ma17-laterais {
    min-width: 0;
}

.ma17-principal-foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.ma17-principal h2 {
    font-family: Georgia, serif;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.16;
    margin: 12px 0;
}

.ma17-principal p,
.ma17-lateral p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.ma17-laterais {
    display: flex;
    flex-direction: column;
}

.ma17-lateral {
    padding: 8px 0 25px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

.ma17-lateral h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.2;
    margin: 12px 0;
}

.ma17-lateral:last-child {
    border-bottom: none;
}

@media (max-width: 800px) {
    .ma17-editorial-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ma17-editorial-heading h2 {
        font-size: 29px;
    }

    .ma17-heading-note {
        display: none;
    }

    .ma17-lateral h3 {
        font-size: 23px;
    }
}


/* Identidade MA17 e créditos institucionais */
.masthead .ma17-logo-image { display:block; width:auto; height:auto; max-height:125px; max-width:min(100%, 620px); margin:0 auto; object-fit:contain; }
.footer .ma17-credits { margin-top:16px; font-size:13px; line-height:1.6; }
.footer .ma17-credits a { color:#d4b078; text-decoration:underline; text-underline-offset:3px; }
.footer .ma17-credits a:hover { color:#fff; }

/* Logo oficial circular: cabeçalho responsivo */
.masthead .ma17-logo-image { max-height: 165px; max-width: min(100%, 250px); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
@media (max-width: 600px) { .masthead .ma17-logo-image { max-height: 125px; max-width: 180px; } }

/* MA17 editorial masthead 2.0.4: compact responsive identity */
.topline{background:#075566;color:#fff;border:0}
.topline .wrap{color:#fff}
.ma17-masthead-redesign{padding:16px 0!important;background:#fff;border-bottom:1px solid #e2dfd8}
.ma17-masthead-grid{display:grid!important;grid-template-columns:132px minmax(0,1fr) 205px;gap:24px;align-items:center;min-height:138px}
.ma17-brand-seal{display:block;width:132px;height:132px}
.ma17-brand-seal .ma17-seal-image{display:block;width:100%;height:100%;object-fit:contain}
.ma17-brand-name{min-width:0}
.ma17-brand-eyebrow{display:flex;align-items:center;gap:14px;color:#111;font:400 19px/1.2 Georgia,serif;letter-spacing:.32em}
.ma17-brand-eyebrow:after{content:'';height:2px;flex:1;background:#b58b47;max-width:220px}
.ma17-brand-wordmark{display:block;white-space:nowrap;text-decoration:none!important;color:#101010!important;font:700 clamp(44px,5.2vw,90px)/1.05 Georgia,'Times New Roman',serif;letter-spacing:-.055em}
.ma17-brand-wordmark span{color:#b58b47}
.ma17-brand-tagline{margin-top:5px;color:#202020;font:400 11px/1.4 Arial,sans-serif;letter-spacing:.23em}
.ma17-brand-tagline span{color:#b58b47}
.ma17-brand-signature{display:flex;align-items:center;justify-content:center;min-height:120px;border-left:1px solid #eee;color:#075566;text-align:center;transform:rotate(-7deg)}
.ma17-brand-signature span{font:italic 28px/1.1 Georgia,serif}
.nav{border-top:0}
@media(max-width:1050px){.ma17-masthead-grid{grid-template-columns:105px minmax(0,1fr);gap:16px;min-height:105px}.ma17-brand-seal{width:105px;height:105px}.ma17-brand-signature{display:none}.ma17-brand-wordmark{font-size:clamp(38px,7vw,74px)}}
@media(max-width:620px){.ma17-masthead-redesign{padding:12px 0!important}.ma17-masthead-grid{grid-template-columns:74px minmax(0,1fr);gap:11px;min-height:74px}.ma17-brand-seal{width:74px;height:74px}.ma17-brand-eyebrow{font-size:10px;letter-spacing:.22em}.ma17-brand-wordmark{font-size:clamp(27px,7.5vw,44px)}.ma17-brand-tagline{font-size:8px;letter-spacing:.04em}.ma17-brand-signature{display:none}}

/* MA17 - Remover divisorias decorativas do cabecalho (2026-11-01) */
.ma17-masthead-redesign .ma17-brand-seal,
.ma17-masthead-redesign .ma17-brand-name,
.ma17-masthead-redesign .ma17-brand-signature {
  border-left: 0 !important; border-right: 0 !important;
  box-shadow: none !important;
}
.ma17-masthead-redesign .ma17-brand-seal::before,
.ma17-masthead-redesign .ma17-brand-seal::after,
.ma17-masthead-redesign .ma17-brand-name::before,
.ma17-masthead-redesign .ma17-brand-name::after,
.ma17-masthead-redesign .ma17-brand-signature::before,
.ma17-masthead-redesign .ma17-brand-signature::after {
  content: none !important; display: none !important;
}

/* MA17: ocultar divisoria residual no espaco apos o selo */
@media (min-width:1051px) {
}

/* MA17: logo original e cabeçalho sem divisorias */
.ma17-masthead-redesign .ma17-masthead-grid > a.ma17-brand-seal,
.ma17-masthead-redesign .ma17-masthead-grid > div.ma17-brand-name,
.ma17-masthead-redesign .ma17-masthead-grid > div.ma17-brand-signature {
 border:0!important; outline:0!important;box-shadow:none!important; background-image:none!important;
}
.ma17-masthead-redesign .ma17-masthead-grid > a.ma17-brand-seal::before,
.ma17-masthead-redesign .ma17-masthead-grid > a.ma17-brand-seal::after,
.ma17-masthead-redesign .ma17-masthead-grid > div.ma17-brand-name::before,
.ma17-masthead-redesign .ma17-masthead-grid > div.ma17-brand-name::after {content:none!important;display:none!important;}
