/*
Theme Name: Portal SMG
Theme URI: https://portalsmg.com.br/
Description: Tema de notícias próprio do Portal SMG. Mantém as áreas de widget do tema anterior (Newsbreak Magazine), para que os anúncios do Advanced Ads continuem nos mesmos lugares.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Portal SMG
Text Domain: portalsmg
License: GNU General Public License v2 or later
*/

:root {
	--smg-red: #d71920;
	--smg-red-dark: #a90f15;
	--smg-ink: #16191f;
	--smg-text: #2b3039;
	--smg-muted: #6b7280;
	--smg-line: #e5e7eb;
	--smg-bg: #f4f5f7;
	--smg-card: #ffffff;
	--smg-radius: 10px;
	--smg-head: "Titillium Web", "Segoe UI", Arial, sans-serif;
	--smg-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
	--smg-wrap: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--smg-bg); color: var(--smg-text); font: 16px/1.6 var(--smg-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--smg-red); }
h1, h2, h3, h4 { font-family: var(--smg-head); color: var(--smg-ink); line-height: 1.2; margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; }
.wrap { width: 100%; max-width: var(--smg-wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--smg-ink); color: #cfd3da; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar a { color: #fff; }
.topbar .social { display: flex; gap: 14px; }
.topbar .date::first-letter { text-transform: uppercase; }

/* ---------- Banner do cabeçalho (anúncio) ---------- */
.header-ad { background: #fff; text-align: center; padding: 10px 0; }
.header-ad img { margin: 0 auto; max-height: 120px; width: auto; }
.header-ad .widget { margin: 0; }

/* ---------- Marca ---------- */
.brand { position: relative; background: var(--smg-ink) center/cover no-repeat; color: #fff; }
.brand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,16,.85), rgba(10,12,16,.45)); }
.brand .wrap { position: relative; display: flex; align-items: center; gap: 18px; min-height: 120px; padding-top: 16px; padding-bottom: 16px; }
.brand .custom-logo { max-height: 84px; width: auto; }
.brand .site-title { font: 700 clamp(28px, 4vw, 44px)/1 var(--smg-head); color: #fff; margin: 0; }
.brand .site-title a:hover { color: #fff; }
.brand .site-desc { margin: 6px 0 0; color: #e5e7eb; font-size: 15px; }
.brand--plain { background: #fff; color: var(--smg-ink); }
.brand--plain::before { display: none; }
.brand--plain .site-title, .brand--plain .site-title a { color: var(--smg-ink); }
.brand--plain .site-desc { color: var(--smg-muted); }

/* ---------- Menu ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--smg-red); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 0; } }
.navbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 50px; }
.menu-toggle, .search-toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; display: inline-flex; }
.menu-toggle { display: none; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.primary-menu li { position: relative; }
.primary-menu > li > a { display: block; padding: 14px 14px; color: #fff; font: 600 15px/1 var(--smg-head); text-transform: uppercase; letter-spacing: .02em; }
.primary-menu > li > a:hover, .primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a { background: var(--smg-red-dark); color: #fff; }
.primary-menu .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 0 0 8px 8px; display: none; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 8px 16px; font-size: 14px; }
.search-panel { display: none; background: #fff; border-bottom: 1px solid var(--smg-line); }
.search-panel.is-open { display: block; }
.search-panel .wrap { padding-top: 14px; padding-bottom: 14px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--smg-line); border-radius: 8px; font-size: 16px; }
.search-form button { background: var(--smg-red); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.primary-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--smg-red); flex-direction: column; padding-bottom: 8px; }
	.primary-menu.is-open { display: flex; }
	.primary-menu .sub-menu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 14px; }
	.primary-menu .sub-menu a { color: #fff; }
	.navbar .wrap { position: relative; justify-content: space-between; }
}

/* ---------- Últimas notícias (ticker) ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--smg-line); }
.ticker .wrap { display: flex; align-items: center; gap: 12px; height: 44px; overflow: hidden; }
.ticker-label { flex: none; background: var(--smg-red); color: #fff; font: 700 13px/1 var(--smg-head); text-transform: uppercase; padding: 8px 12px; border-radius: 4px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: inline-flex; gap: 40px; white-space: nowrap; animation: smg-ticker 45s linear infinite; font-size: 14px; font-weight: 500; }
.ticker-items a::before { content: "•"; color: var(--smg-red); margin-right: 10px; }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes smg-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items { animation: none; } }

/* ---------- Estrutura ---------- */
.site-main { padding: 24px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.sidebar { display: grid; gap: 20px; position: sticky; top: 70px; }
@media (max-width: 960px) { .sidebar { position: static; } }

.section { margin-bottom: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--smg-line); margin-bottom: 16px; }
.section-head h2 { position: relative; margin: 0; padding: 0 0 10px; font-size: 22px; text-transform: uppercase; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--cat-color, var(--smg-red)); }
.section-head .more { font-size: 13px; font-weight: 600; color: var(--smg-red); }

/* ---------- Selo de categoria ---------- */
.cat-badge { display: inline-block; background: var(--cat-color, var(--smg-red)); color: #fff !important; font: 700 11px/1 var(--smg-head); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 3px; }
.cat-badge:hover { filter: brightness(.9); }
.meta { color: var(--smg-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* ---------- Cards ---------- */
.thumb { position: relative; overflow: hidden; border-radius: var(--smg-radius); background: #d9dce1; aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.04); }
.thumb--empty { display: grid; place-items: center; color: #9aa0a8; font: 700 20px var(--smg-head); }

.card { background: var(--smg-card); border-radius: var(--smg-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.card .thumb { border-radius: 0; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 18px; margin: 0; }
.card-excerpt { color: var(--smg-muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* Card em lista (horizontal) */
.row-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; background: var(--smg-card); border-radius: var(--smg-radius); padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.row-card + .row-card { margin-top: 14px; }
.row-card .thumb { aspect-ratio: 16 / 10; }
.row-card .card-title { font-size: 20px; }
.row-card .card-body { padding: 4px 4px 4px 0; }
@media (max-width: 600px) { .row-card { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; } .row-card .card-title { font-size: 16px; } .row-card .card-excerpt { display: none; } }

/* Mini card (lista compacta) */
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.mini + .mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--smg-line); }
.mini .thumb { border-radius: 6px; aspect-ratio: 4 / 3; }
.mini .card-title { font-size: 15px; line-height: 1.3; }

/* ---------- Destaques (hero) ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 30px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.overlay { position: relative; display: block; border-radius: var(--smg-radius); overflow: hidden; min-height: 210px; background: #222; }
.overlay .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85)); pointer-events: none; }
.overlay-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; display: grid; gap: 8px; justify-items: start; }
.overlay-body .card-title { color: #fff; font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.overlay-body .meta { color: #e5e7eb; }
.overlay:hover .card-title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.hero-main { min-height: 440px; }
.hero-main .card-title { font-size: clamp(24px, 3vw, 34px); }
.hero-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -14px 0 30px; }
.hero-strip .card-title { font-size: 15px; }
.hero-strip .card-body { padding: 10px 12px 12px; gap: 6px; }
@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-main { min-height: 320px; }
	.hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .hero-side { grid-template-columns: minmax(0, 1fr); } .hero-side .overlay { min-height: 200px; } }

/* Bloco de categoria: 1 grande + lista */
.cat-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .cat-block { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Widgets / anúncios ---------- */
.widget { background: var(--smg-card); border-radius: var(--smg-radius); padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.widget img { margin-left: auto; margin-right: auto; }
.widget-title, .widget h2, .widget .wp-block-heading { font-size: 17px; text-transform: uppercase; border-bottom: 2px solid var(--smg-line); padding-bottom: 8px; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--smg-line); }
.widget li:last-child { border-bottom: 0; }
.widget-area-strip { margin: 0 0 30px; display: grid; gap: 20px; }
.widget-area-strip .widget { text-align: center; }
.ad-label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--smg-muted); text-align: center; margin-bottom: 6px; }
.in-content-ad { margin: 26px 0; text-align: center; clear: both; }
.in-content-ad .widget { box-shadow: none; padding: 0; background: transparent; }

/* ---------- Matéria ---------- */
.article { background: var(--smg-card); border-radius: var(--smg-radius); padding: clamp(18px, 3vw, 36px); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.breadcrumbs { font-size: 13px; color: var(--smg-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--smg-red); }
.article-title { font-size: clamp(26px, 3.6vw, 40px); margin: 12px 0; }
.article-sub { font-size: 19px; color: var(--smg-muted); margin: 0 0 16px; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--smg-line); border-bottom: 1px solid var(--smg-line); margin-bottom: 22px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--smg-body); color: #fff; cursor: pointer; }
.share a:hover, .share button:hover { color: #fff; filter: brightness(.92); }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.share .wa { background: #25d366; } .share .fb { background: #1877f2; } .share .x { background: #111; } .share .tg { background: #229ed9; } .share .cp { background: #6b7280; }
.featured { margin: 0 0 24px; }
.featured img { width: 100%; border-radius: var(--smg-radius); }
.featured figcaption { font-size: 13px; color: var(--smg-muted); margin-top: 8px; }

.entry-content { font-size: 18px; line-height: 1.75; color: #1f2329; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content a { color: var(--smg-red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.3em; }
.entry-content blockquote { margin: 1.5em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--smg-red); font-size: 20px; font-style: italic; color: var(--smg-ink); }
.entry-content img, .entry-content figure { border-radius: 8px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--smg-muted); text-align: center; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--smg-line); padding: 8px; }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--smg-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--smg-line); }
.tags a { background: var(--smg-bg); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.tags a:hover { background: var(--smg-red); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.post-nav a { display: block; background: var(--smg-bg); border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.post-nav span { display: block; font-size: 12px; font-weight: 500; color: var(--smg-muted); text-transform: uppercase; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
.related { margin-top: 30px; }

/* ---------- Arquivos / busca ---------- */
.archive-head { background: var(--smg-card); border-radius: var(--smg-radius); padding: 20px 22px; margin-bottom: 22px; border-left: 5px solid var(--cat-color, var(--smg-red)); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.archive-head h1 { margin: 0; font-size: 30px; }
.archive-head p { margin: 6px 0 0; color: var(--smg-muted); }
.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; background: #fff; border-radius: 8px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pagination .current, .pagination a.page-numbers:hover { background: var(--smg-red); color: #fff; }
.empty { background: #fff; border-radius: var(--smg-radius); padding: 30px; text-align: center; }

/* ---------- Comentários ---------- */
.comments-area { margin-top: 26px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--smg-bg); padding: 14px; border-radius: 8px; margin-bottom: 12px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--smg-line); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--smg-red); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }

/* ---------- Rodapé ---------- */
.above-footer { padding: 0 0 26px; }
.site-footer { background: var(--smg-ink); color: #b8bec8; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff8a8f; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 36px 0; }
@media (max-width: 800px) { .footer-widgets { grid-template-columns: minmax(0, 1fr); } }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget-title, .site-footer .widget h2 { color: #fff; border-color: rgba(255,255,255,.15); }
.site-footer .widget li { border-color: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--smg-red); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Card de destaque inteiro clicável */
.overlay-link { position: absolute; inset: 0; z-index: 1; }
.overlay-body { pointer-events: none; }
.overlay-body a { pointer-events: auto; }

/* ---------- Previsão do tempo ---------- */
.wx { display: grid; gap: 22px; }
.wx-search { display: grid; gap: 10px; }
.wx-form { display: flex; gap: 8px; }
.wx-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--smg-line); border-radius: 8px; font-size: 16px; }
.wx-form button { background: var(--smg-red); color: #fff; border: 0; border-radius: 8px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.wx-results { display: grid; gap: 4px; background: var(--smg-bg); border-radius: 8px; padding: 8px; }
.wx-results button { text-align: left; background: #fff; border: 1px solid var(--smg-line); border-radius: 6px; padding: 9px 12px; cursor: pointer; font: inherit; }
.wx-results button:hover { border-color: var(--smg-red); color: var(--smg-red); }
.wx-results p { margin: 4px; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wx-chip { background: var(--smg-bg); border: 0; border-radius: 999px; padding: 6px 12px; font: 500 13px var(--smg-body); cursor: pointer; }
.wx-chip:hover { background: var(--smg-red); color: #fff; }
.wx-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; background: linear-gradient(135deg, #0b6bcb, #0e7490); color: #fff; border-radius: 14px; padding: 24px; }
.wx-loading { grid-column: 1 / -1; padding: 30px 0; text-align: center; }
.wx-place { font: 700 20px var(--smg-head); }
.wx-temp { display: flex; align-items: center; gap: 10px; font: 700 64px/1.1 var(--smg-head); }
.wx-icon { font-size: 54px; }
.wx-cond { font-size: 17px; }
.wx-minmax { opacity: .85; margin-top: 4px; }
.wx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.wx-stats div { background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; }
.wx-stats dt { font-size: 12px; opacity: .85; }
.wx-stats dd { margin: 2px 0 0; font: 700 19px var(--smg-head); }
@media (max-width: 640px) { .wx-now { grid-template-columns: minmax(0, 1fr); padding: 18px; } .wx-temp { font-size: 52px; } }
.wx-block h2 { font-size: 20px; text-transform: uppercase; border-bottom: 2px solid var(--smg-line); padding-bottom: 8px; }
.wx-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.wx-hour { flex: none; width: 76px; scroll-snap-align: start; background: var(--smg-bg); border-radius: 10px; padding: 10px 6px; text-align: center; display: grid; gap: 4px; font-size: 13px; }
.wx-hour b { font-size: 24px; font-weight: 400; }
.wx-hour strong { font: 700 17px var(--smg-head); }
.wx-hour small { color: var(--smg-muted); }
.wx-day { display: grid; grid-template-columns: 96px 40px minmax(0, 1fr) minmax(120px, 200px); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--smg-line); }
.wx-day:last-child { border-bottom: 0; }
.wx-day-name { font-weight: 600; }
.wx-day-name small, .wx-day-text small { display: block; color: var(--smg-muted); font-weight: 400; font-size: 12px; }
.wx-day-icon { font-size: 26px; text-align: center; }
.wx-range { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.wx-range span:first-child { color: var(--smg-muted); text-align: right; }
.wx-range i { position: relative; height: 6px; border-radius: 3px; background: var(--smg-line); }
.wx-range em { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #f97316); }
@media (max-width: 560px) { .wx-day { grid-template-columns: 70px 32px minmax(0, 1fr); } .wx-range { grid-column: 1 / -1; } }
.wx-credit { font-size: 12px; color: var(--smg-muted); margin: 0; }
.wx-credit a { color: var(--smg-red); }
.wx { grid-template-columns: minmax(0, 1fr); }
.wx > *, .wx-block { min-width: 0; }
.wx-results[hidden] { display: none; }
.wx-form button { white-space: nowrap; }

/* ---------- Item de menu em destaque (classe "menu-destaque") ---------- */
.primary-menu > .menu-destaque { margin-left: auto; display: flex; align-items: center; }
.primary-menu > .menu-destaque > a { display: inline-flex; align-items: center; gap: 6px; margin: 7px 4px; padding: 9px 14px; background: #ffd400; color: var(--smg-ink); border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.primary-menu > .menu-tempo > a::before { content: "🌦️"; font-size: 16px; line-height: 1; }
.primary-menu > .menu-destaque > a:hover, .primary-menu > .menu-destaque.current-menu-item > a { background: #fff; color: var(--smg-red); }
@media (max-width: 900px) {
	.primary-menu > .menu-destaque { margin-left: 0; }
	.primary-menu > .menu-destaque > a { margin: 8px 14px; }
}
/* ---------- Banner "Tempo agora" ---------- */
.wx-mini { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 30px; padding: 12px 18px; border-radius: var(--smg-radius); background: linear-gradient(90deg, #0b6bcb, #0e7490); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wx-mini:hover { color: #fff; filter: brightness(1.05); }
.wx-mini-icon { font-size: 30px; line-height: 1; }
.wx-mini-main { display: flex; align-items: baseline; gap: 8px; }
.wx-mini-temp { font: 700 26px/1 var(--smg-head); }
.wx-mini-city { font-weight: 600; }
.wx-mini-info { flex: 1; min-width: 200px; opacity: .9; font-size: 14px; }
.wx-mini-cta { background: #ffd400; color: var(--smg-ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .wx-mini { padding: 12px 14px; } .wx-mini-info { min-width: 100%; order: 3; } .wx-mini-cta { margin-left: auto; } }
