/* ============================================================
   MATERIA V2 — CSS compartilhado para todos os 6 templates
   Header/Footer: home-v2.css (hv2-*)
   ============================================================ */

/* ---------- Base ---------- */
.mt-page {
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A;
    background: #F7F8FA;
    -webkit-font-smoothing: antialiased;
}
.mt-page *, .mt-page *::before, .mt-page *::after { box-sizing: border-box; }
.mt-page a { text-decoration: none; }
.mt-page img { max-width: 100%; display: block; }

/* ---------- Breadcrumb bar ---------- */
.mt-breadcrumb-bar {
    background: #F0F1F3;
    padding: 12px 80px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}
.mt-breadcrumb-bar a { color: #888; transition: color 0.15s; }
.mt-breadcrumb-bar a:hover { color: #00573D; }
.mt-breadcrumb-bar .mt-sep { color: #bbb; font-size: 10px; }
.mt-breadcrumb-bar .mt-current { color: #555; }

/* ---------- Article Meta ---------- */
.mt-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
/* .mt-meta__cat removido — categorias fora do frontend (jun/2026) */
.mt-meta__date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mt-meta__date i { color: #aaa; }

/* ---------- Article Title ---------- */
.mt-title {
    font-size: 32px;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.25;
    margin: 0 0 16px;
}

/* ---------- Article Lead ---------- */
.mt-lead {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
}

/* ---------- Article Body (richtext) ---------- */
.mt-body {
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}
.mt-body p { margin-bottom: 1.2em; }
.mt-body h2, .mt-body h3, .mt-body h4 {
    color: #1A1A1A;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}
.mt-body h2 { font-size: 24px; }
.mt-body h3 { font-size: 20px; }
.mt-body ul, .mt-body ol { padding-left: 20px; margin-bottom: 1.2em; }
.mt-body li { margin-bottom: 6px; }
.mt-body img {
    border-radius: 8px;
    margin: 20px 0;
}
.mt-body a { color: #00573D; text-decoration: underline; }
.mt-body blockquote {
    border-left: 4px solid #00573D;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f9fafb;
    font-style: italic;
    color: #374151;
}

/* ---------- Pullquote ---------- */
.mt-pullquote {
    border-left: 4px solid #91C14D;
    padding: 24px 32px;
    margin: 40px 0;
    background: #f0fdf4;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    color: #1A1A1A;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
}
.mt-pullquote:empty { display: none; }

/* ---------- Author Note ---------- */
.mt-author-note {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #888;
    font-style: italic;
}
.mt-author-note:empty { display: none; }

/* ---------- Cover Image ---------- */
.mt-cover {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}
.mt-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.mt-cover figcaption {
    font-size: 12px;
    color: #888;
    padding: 8px 0;
    text-align: center;
    font-style: italic;
}

/* ---------- Hero (full-width image) ---------- */
.mt-hero-img {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.mt-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mt-hero-img__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.mt-hero-img__content {
    position: absolute;
    bottom: 40px;
    left: 80px;
    right: 80px;
    z-index: 2;
}

/* ---------- Video embed ---------- */
.mt-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}
.mt-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Gallery grid ---------- */
.mt-gallery {
    display: grid;
    gap: 8px;
    margin: 24px 0;
}
.mt-gallery--3col { grid-template-columns: repeat(3, 1fr); }
.mt-gallery--4col { grid-template-columns: repeat(4, 1fr); }
.mt-gallery--masonry { grid-template-columns: repeat(3, 1fr); }
.mt-gallery__item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.mt-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.mt-gallery__item:hover img { transform: scale(1.05); }
/* Featured first photo (spans 2 cols) */
.mt-gallery__item--featured {
    grid-column: span 2;
    grid-row: span 2;
}
.mt-gallery__item--featured img { height: 100%; }

/* ---------- Ensaio (large photos vertical) ---------- */
.mt-ensaio-photos {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}
.mt-ensaio-photos a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.mt-ensaio-photos img {
    width: 100%;
    height: auto;
    transition: transform 0.4s;
}
.mt-ensaio-photos a:hover img { transform: scale(1.02); }

/* ---------- Share Social ---------- */
.mt-share {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-share__label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-right: 4px;
}
.mt-share__btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #555;
    background: #F3F4F6;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.mt-share__btn:hover { transform: translateY(-2px); }
.mt-share__btn--whatsapp:hover { background: #25D366; color: #fff !important; }
.mt-share__btn--facebook:hover { background: #1877F2; color: #fff !important; }
.mt-share__btn--linkedin:hover { background: #0A66C2; color: #fff !important; }
.mt-share__btn--twitter:hover { background: #1DA1F2; color: #fff !important; }
.mt-share__btn--copy:hover { background: #00573D; color: #fff !important; }

/* Floating style (fixed left) */
.mt-share--floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    z-index: 90;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.mt-share--floating .mt-share__label { display: none; }

/* Bar style (under title) */
.mt-share--bar {
    padding: 12px 0;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    margin: 16px 0 24px;
}

/* Inline (compact, end of article) */
.mt-share--inline {
    justify-content: center;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid #F0F0F0;
}

/* ---------- Related news ---------- */
.mt-related {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    padding: 24px;
}
.mt-related__title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-related__title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #00573D;
    border-radius: 2px;
}
.mt-related__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F3F3;
}
.mt-related__item:last-child { border-bottom: none; }
.mt-related__item-img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.mt-related__item-info { flex: 1; min-width: 0; }
.mt-related__item-title {
    font-size: 12px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mt-related__item-date {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
}

/* ---------- Layout wrappers ---------- */
.mt-article-wrap {
    padding: 48px 80px;
    background: #F7F8FA;
}
.mt-article-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.mt-article-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    padding: 40px;
}
.mt-article-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* No sidebar (editorial, ensaio) */
.mt-article-main--wide {
    max-width: 800px;
    margin: 0 auto;
}

/* ---------- Back link ---------- */
.mt-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #00573D;
    margin-bottom: 24px;
    transition: gap 0.2s;
}
.mt-back:hover { gap: 12px; color: #004430; }

/* ---------- Green hero (video template) ---------- */
.mt-green-hero {
    background: #00573D;
    padding: 40px 80px 48px;
}
.mt-green-hero .mt-title { color: #fff; }
.mt-green-hero .mt-meta__date { color: rgba(255,255,255,0.7); }
.mt-green-hero .mt-meta__date i { color: rgba(255,255,255,0.5); }
.mt-green-hero .mt-lead { color: rgba(255,255,255,0.85); }
.mt-green-hero .mt-share__btn { background: rgba(255,255,255,0.15); color: #fff; }

/* ============================================================
   T1 PADRAO — Hero verde + artigo 2 colunas (Pencil: AMP_v2_materia)
   ============================================================ */

/* Art Hero */
.mt-art-hero {
    position: relative;
    height: 444px;
    overflow: hidden;
    background: #00573D;
}
.mt-art-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 0;
}
.mt-art-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #00573DEE 0%, #00402BF8 70%, #003020FF 100%);
    z-index: 1;
}
.mt-art-hero__content {
    position: absolute;
    left: 80px;
    top: 48px;
    width: 860px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mt-art-hero__bread {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}
.mt-art-hero__bread a { color: rgba(255,255,255,0.53); transition: color 0.15s; }
.mt-art-hero__bread a:hover { color: #fff; }
.mt-art-hero__bread i { color: rgba(255,255,255,0.33); font-size: 9px; }
.mt-art-hero__bread span { color: rgba(255,255,255,0.73); }

.mt-art-hero__cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* .mt-art-hero__badge removido — categorias fora do frontend (jun/2026) */
.mt-art-hero__read {
    font-size: 11px;
    color: rgba(255,255,255,0.47);
    display: flex;
    align-items: center;
    gap: 5px;
}
.mt-art-hero__read i { font-size: 12px; }

.mt-art-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}
.mt-art-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    margin: 0;
}

.mt-art-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
}
.mt-art-hero__author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-art-hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.mt-art-hero__author-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.mt-art-hero__date {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}
.mt-art-hero__divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.13);
}
.mt-art-hero__share {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-art-hero__share span {
    font-size: 11px;
    color: rgba(255,255,255,0.47);
}
.mt-art-hero__share a {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: background 0.2s;
}
.mt-art-hero__share a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
}

/* Art Body (2 cols) */
.mt-art-body {
    display: flex;
    gap: 48px;
    padding: 48px 80px;
    background: #F7F8FA;
    align-items: flex-start;
}
.mt-art-main {
    flex: 1;
    min-width: 0;
}
.mt-art-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
}

/* Featured image */
.mt-art-feat {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
    margin-bottom: 32px;
}
.mt-art-feat__img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.mt-art-feat__caption {
    background: #F3F4F6;
    padding: 10px 16px;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-art-feat__caption i { color: #aaa; font-size: 12px; }

/* Gallery label */
.mt-art-gallery-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #00573D;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.mt-art-gallery-label i { font-size: 16px; }

/* Tags por categoria removidas — categorias fora do frontend (jun/2026) */

/* Related card (sidebar) */
.mt-art-related {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    overflow: hidden;
}
.mt-art-related__hdr {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
}
.mt-art-related__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-art-related__dot {
    width: 4px;
    height: 18px;
    background: #00573D;
    border-radius: 2px;
}
.mt-art-related__hdr h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}
.mt-art-related__list { }
.mt-art-related__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F3F3;
    transition: background 0.15s;
}
.mt-art-related__item:last-child { border-bottom: none; }
.mt-art-related__item:hover { background: #FAFAFA; }
.mt-art-related__img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.mt-art-related__info { flex: 1; min-width: 0; }
.mt-art-related__info h5 {
    font-size: 12px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mt-art-related__info span {
    font-size: 10px;
    color: #aaa;
}
.mt-art-related__footer {
    padding: 12px 20px;
    border-top: 1px solid #F0F0F0;
    background: #F9F9F9;
    text-align: center;
}
.mt-art-related__footer a {
    font-size: 11px;
    font-weight: 600;
    color: #00573D;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mt-art-related__footer a:hover { color: #004430; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .mt-art-hero__content { left: 30px; width: calc(100% - 60px); }
    .mt-art-body { padding: 30px; gap: 30px; }
    .mt-art-sidebar { width: 260px; }
    .mt-art-feat__img { height: 280px; }
    .mt-breadcrumb-bar { padding: 12px 30px; }
    .mt-article-wrap { padding: 30px; }
    .mt-hero-img__content { left: 30px; right: 30px; }
    .mt-green-hero { padding: 30px; }
    .mt-article-sidebar { width: 280px; }
}
@media (max-width: 991px) {
    .mt-article-layout { flex-direction: column; }
    .mt-article-sidebar { width: 100%; position: static; flex-direction: row; gap: 16px; }
    .mt-article-sidebar > * { flex: 1; }
    .mt-hero-img { height: 360px; }
    .mt-share--floating { display: none; }
    .mt-title { font-size: 26px; }
    .mt-gallery--3col, .mt-gallery--4col { grid-template-columns: repeat(2, 1fr); }
    .mt-art-hero { height: auto; min-height: 340px; }
    .mt-art-hero__content { position: relative; left: 0; top: 0; width: 100%; padding: 40px 30px; }
    .mt-art-hero__title { font-size: 28px; }
    .mt-art-body { flex-direction: column; }
    .mt-art-sidebar { width: 100%; position: static; }
    .mt-art-feat__img { height: 240px; }
}
@media (max-width: 767px) {
    .mt-breadcrumb-bar { padding: 10px 16px; }
    .mt-article-wrap { padding: 16px; }
    .mt-article-main { padding: 24px 16px; }
    .mt-hero-img { height: 260px; }
    .mt-hero-img__content { left: 16px; right: 16px; bottom: 20px; }
    .mt-green-hero { padding: 20px 16px 24px; }
    .mt-title { font-size: 22px; }
    .mt-lead { font-size: 16px; }
    .mt-gallery--3col, .mt-gallery--4col, .mt-gallery--masonry { grid-template-columns: 1fr 1fr; }
    .mt-gallery__item--featured { grid-column: span 2; }
    .mt-article-sidebar { flex-direction: column; }
    .mt-ensaio-photos { gap: 20px; }
    .mt-art-hero__content { padding: 30px 16px; }
    .mt-art-hero__title { font-size: 24px; }
    .mt-art-hero__subtitle { font-size: 14px; }
    .mt-art-hero__meta { flex-wrap: wrap; gap: 12px; }
    .mt-art-hero__divider { display: none; }
    .mt-art-body { padding: 16px; }
    .mt-art-feat__img { height: 200px; }
}
@media (max-width: 480px) {
    .mt-gallery--3col, .mt-gallery--4col { grid-template-columns: 1fr; }
    .mt-gallery__item--featured { grid-column: span 1; grid-row: span 1; }
}
@media print {
    .mt-share, .mt-article-sidebar, .mt-breadcrumb-bar, .hv2-antemenu, .hv2-navbar, .hv2-footer { display: none !important; }
    .mt-article-main { border: none; box-shadow: none; padding: 0; }
    .mt-article-layout { display: block; }
}
