:root {
    --wm-red: #d9212c;
    --wm-red-dark: #a91420;
    --wm-blue: #163b8f;
    --wm-blue-dark: #0d2259;
    --wm-yellow: #f2c94c;
    --wm-green: #1f8a5b;
    --wm-bg: #f5f7fb;
    --wm-card: #ffffff;
    --wm-text: #172033;
    --wm-muted: #667085;
    --wm-border: #e5e7eb;
    --wm-shadow: 0 18px 50px rgba(13, 34, 89, .13);
    --wm-radius: 24px;
    --wm-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--wm-text);
    background: var(--wm-bg);
    line-height: 1.6;
}
a { color: var(--wm-blue); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--wm-red); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 32px, var(--wm-container)); margin-inline: auto; }
.narrow-container { width: min(100% - 32px, 860px); }
.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link:focus {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    clip: auto;
    background: #fff;
    border: 2px solid var(--wm-blue);
    border-radius: 12px;
}

/* Cabeçalho */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 26px rgba(13, 34, 89, .08);
}
.topbar { background: linear-gradient(90deg, var(--wm-blue-dark), var(--wm-blue)); color: #fff; font-size: .9rem; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-links { display: flex; gap: 16px; flex-wrap: wrap; }
.top-links a { color: #fff; opacity: .92; }
.top-links a:hover { opacity: 1; color: var(--wm-yellow); }
.brand-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--wm-text); }
.brand-logo-wrap { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(217, 33, 44, .16); overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; }
.brand-logo-wrap img { width: 52px; height: 52px; object-fit: contain; }
.brand-text strong { display: block; font-size: 1.36rem; line-height: 1.1; color: var(--wm-blue-dark); }
.brand-text small { display: block; color: var(--wm-muted); font-weight: 600; }
.main-nav .menu { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.main-nav .menu > li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 999px; font-weight: 700; color: var(--wm-blue-dark); }
.main-nav a:hover,
.main-nav .current-menu-item > a { background: #eef3ff; color: var(--wm-red); }
.main-nav .sub-menu { display: none; list-style: none; position: absolute; top: 100%; right: 0; min-width: 240px; padding: 10px; margin: 0; border-radius: 18px; background: #fff; box-shadow: var(--wm-shadow); }
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { border-radius: 12px; white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--wm-blue); cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; margin: 5px auto; background: #fff; border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 530px; display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 34, 89, .88), rgba(13, 34, 89, .56) 48%, rgba(217,33,44,.22)); }
.hero-content { position: relative; padding-block: 70px; }
.hero-card { max-width: 670px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .75rem; color: var(--wm-yellow); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: currentColor; }
.eyebrow.dark { color: var(--wm-red); }
.hero h1 { margin: 12px 0 16px; font-size: clamp(2.15rem, 7vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.hero p { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.28rem); opacity: .95; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 900; border: 2px solid transparent; }
.btn-primary { background: var(--wm-red); color: #fff; box-shadow: 0 12px 26px rgba(217,33,44,.24); }
.btn-primary:hover { background: var(--wm-red-dark); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--wm-blue-dark); }
.btn-light:hover { background: var(--wm-yellow); color: var(--wm-blue-dark); }

.notice-strip { margin-top: -38px; position: relative; z-index: 5; }
.notice-inner { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: var(--wm-shadow); border-left: 8px solid var(--wm-red); }
.notice-label { background: #ffe9eb; color: var(--wm-red-dark); padding: 7px 12px; border-radius: 999px; font-weight: 900; text-transform: uppercase; font-size: .78rem; white-space: nowrap; }
.notice-inner p { margin: 0; font-weight: 700; }

/* Seções */
.quick-section,
.content-section { padding-block: 54px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-title-row h2 { margin: 6px 0 0; font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.1; color: var(--wm-blue-dark); letter-spacing: -.035em; }
.view-all { font-weight: 900; }
.search-box,
.search-form { display: flex; gap: 8px; align-items: center; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--wm-border); box-shadow: 0 10px 28px rgba(13,34,89,.08); }
.search-box input,
.search-form input { border: 0; outline: none; padding: 12px 14px; min-width: 230px; background: transparent; color: var(--wm-text); }
.search-box button,
.search-form button { border: 0; padding: 11px 16px; border-radius: 999px; background: var(--wm-blue); color: #fff; font-weight: 900; cursor: pointer; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card { position: relative; min-height: 178px; padding: 24px; border-radius: var(--wm-radius); color: #fff; overflow: hidden; box-shadow: var(--wm-shadow); isolation: isolate; }
.quick-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -70px; bottom: -70px; background: rgba(255,255,255,.18); z-index: -1; }
.quick-card span { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.quick-card strong { display: block; margin-top: 18px; font-size: 1.3rem; line-height: 1.15; }
.quick-card small { display: block; margin-top: 8px; color: rgba(255,255,255,.86); }
.quick-card:hover { color: #fff; transform: translateY(-3px); }
.quick-card.red { background: linear-gradient(135deg, var(--wm-red), var(--wm-red-dark)); }
.quick-card.blue { background: linear-gradient(135deg, var(--wm-blue), var(--wm-blue-dark)); }
.quick-card.green { background: linear-gradient(135deg, #24a46e, var(--wm-green)); }
.quick-card.yellow { background: linear-gradient(135deg, #f4b400, #d98900); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border-radius: var(--wm-radius); overflow: hidden; box-shadow: 0 12px 36px rgba(13,34,89,.08); border: 1px solid rgba(229,231,235,.75); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe7f7; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card-body { padding: 20px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #eef3ff; color: var(--wm-blue); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.post-date { color: var(--wm-muted); font-weight: 700; font-size: .88rem; }
.post-card h3,
.list-card h2 { margin: 0 0 10px; line-height: 1.22; }
.post-card h3 a,
.list-card h2 a { color: var(--wm-blue-dark); }
.post-card h3 a:hover,
.list-card h2 a:hover { color: var(--wm-red); }
.post-card p,
.list-card p { color: var(--wm-muted); margin: 0 0 14px; }
.read-more { font-weight: 900; color: var(--wm-red); }

.categories-section { padding-top: 10px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { display: block; background: #fff; border-radius: 22px; padding: 22px; border: 1px solid var(--wm-border); box-shadow: 0 8px 24px rgba(13,34,89,.06); color: var(--wm-text); }
.category-card strong { font-size: 1.18rem; color: var(--wm-blue-dark); }
.category-card p { margin: 8px 0 16px; color: var(--wm-muted); }
.category-card span { display: inline-flex; color: var(--wm-red); font-weight: 900; font-size: .9rem; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--wm-shadow); }

/* Páginas internas */
.inner-page { padding: 44px 0 70px; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.clean-header { padding: 30px; background: linear-gradient(135deg, #fff, #f6f8ff); border-radius: var(--wm-radius); box-shadow: 0 12px 34px rgba(13,34,89,.07); margin-bottom: 24px; }
.clean-header h1,
.single-header h1 { margin: 8px 0 0; color: var(--wm-blue-dark); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; }
.clean-header p { margin-bottom: 0; color: var(--wm-muted); }
.post-list { display: grid; gap: 18px; }
.list-card { display: grid; grid-template-columns: 230px 1fr; gap: 20px; background: #fff; padding: 14px; border-radius: 22px; box-shadow: 0 10px 30px rgba(13,34,89,.07); border: 1px solid var(--wm-border); }
.list-thumb { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #dfe7f7; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-content { padding: 6px 4px; }

.sidebar { display: grid; gap: 18px; }
.widget { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(13,34,89,.07); border: 1px solid var(--wm-border); }
.widget-title { margin: 0 0 14px; font-size: 1.1rem; color: var(--wm-blue-dark); }
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin: 8px 0; }
.important-box { border-left: 6px solid var(--wm-red); }

.single-article { background: #fff; border-radius: var(--wm-radius); box-shadow: 0 12px 36px rgba(13,34,89,.07); border: 1px solid var(--wm-border); padding: clamp(22px, 4vw, 42px); }
.single-header { margin-bottom: 24px; }
.single-thumb { border-radius: 22px; overflow: hidden; margin-bottom: 26px; }
.entry-content { font-size: 1.08rem; }
.entry-content h2,
.entry-content h3 { color: var(--wm-blue-dark); line-height: 1.18; }
.entry-content a { font-weight: 800; }
.entry-content blockquote { margin: 26px 0; padding: 18px 22px; border-left: 6px solid var(--wm-red); background: #fff5f6; border-radius: 0 16px 16px 0; }
.entry-content table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.entry-content td,
.entry-content th { border: 1px solid var(--wm-border); padding: 10px; }
.entry-footer { margin-top: 28px; color: var(--wm-muted); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-navigation a { display: block; padding: 14px 16px; border-radius: 16px; background: #f5f7fb; font-weight: 900; }

.not-found-card { background: #fff; border-radius: var(--wm-radius); padding: clamp(24px, 5vw, 46px); box-shadow: var(--wm-shadow); }
.not-found-card h1 { color: var(--wm-blue-dark); margin-top: 8px; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--wm-border); font-weight: 800; }
.page-numbers.current { background: var(--wm-blue); color: #fff; }

/* Rodapé */
.site-footer { background: var(--wm-blue-dark); color: #fff; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-block: 44px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; }
.footer-brand strong { display: block; font-size: 1.18rem; }
.footer-brand span { color: rgba(255,255,255,.78); }
.footer-text { color: rgba(255,255,255,.78); max-width: 520px; }
.site-footer h2 { margin-top: 0; font-size: 1rem; color: var(--wm-yellow); text-transform: uppercase; letter-spacing: .08em; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 8px 0; }
.footer-list a { color: rgba(255,255,255,.86); }
.footer-list a:hover { color: var(--wm-yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; }

@media (max-width: 1020px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, 1fr); }
    .main-nav { position: absolute; inset: 100% 16px auto 16px; display: none; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--wm-shadow); }
    .main-nav.is-open { display: block; }
    .main-nav .menu { display: grid; gap: 2px; }
    .main-nav .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 12px; }
    .menu-toggle { display: block; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 22px, var(--wm-container)); }
    .topbar-inner { justify-content: center; text-align: center; }
    .top-links { display: none; }
    .brand-row { min-height: 74px; }
    .brand-logo-wrap { width: 50px; height: 50px; }
    .brand-logo-wrap img { width: 45px; height: 45px; }
    .brand-text strong { font-size: 1.08rem; }
    .brand-text small { font-size: .76rem; }
    .hero { min-height: 520px; }
    .hero-content { padding-block: 56px 80px; }
    .notice-strip { margin-top: -58px; }
    .notice-inner { align-items: flex-start; flex-direction: column; }
    .section-title-row { display: grid; align-items: start; }
    .search-box,
    .search-form { width: 100%; border-radius: 18px; }
    .search-box input,
    .search-form input { min-width: 0; width: 100%; }
    .quick-grid,
    .post-grid,
    .category-grid,
    .sidebar,
    .footer-grid { grid-template-columns: 1fr; }
    .list-card { grid-template-columns: 1fr; }
    .list-thumb { aspect-ratio: 16 / 9; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-bottom .container { display: grid; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-actions .btn { width: 100%; }
    .quick-card { min-height: 155px; }
    .single-article { padding: 20px; }
}

/* Correção do menu suspenso em computadores: evita o sumiço dos subitens
   ao mover o mouse e posiciona submenus de segundo nível ao lado. */
@media (min-width: 1021px) {
    .main-nav,
    .main-nav .menu,
    .main-nav li {
        overflow: visible;
    }

    .main-nav li {
        position: relative;
    }

    .main-nav .sub-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
        z-index: 9999;
    }

    .main-nav li:hover > .sub-menu,
    .main-nav li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav .menu > li > .sub-menu {
        top: calc(100% - 2px);
        right: 0;
        left: auto;
    }

    .main-nav .menu > li > .sub-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
    }

    .main-nav .sub-menu .sub-menu {
        top: 0;
        right: calc(100% - 4px);
        left: auto;
        width: max-content;
        min-width: 320px;
        max-width: 430px;
        transform: translateX(-8px);
    }

    .main-nav .sub-menu li:hover > .sub-menu,
    .main-nav .sub-menu li:focus-within > .sub-menu {
        transform: translateX(0);
    }

    .main-nav .sub-menu .sub-menu::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -12px;
        width: 12px;
    }

    .main-nav .sub-menu a {
        padding: 11px 12px;
    }
}
