/*
Theme Name: Viagens pelo Mundo
Theme URI: https://example.com/viagens-pelo-mundo
Author: OpenAI
Description: Tema editorial de viagens inspirado em um layout moderno, com homepage de destaques, posts em cards e páginas de artigo otimizadas para leitura.
Version: 1.3.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: viagens-pelo-mundo
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, travel, custom-logo, featured-images, two-columns, right-sidebar, translation-ready
*/

:root {
  --vpm-bg: #f6f8fb;
  --vpm-surface: #ffffff;
  --vpm-surface-soft: #eef5fb;
  --vpm-ink: #10233d;
  --vpm-ink-soft: #46607a;
  --vpm-line: #dfe8f2;
  --vpm-primary: #0b4c81;
  --vpm-primary-2: #1267a5;
  --vpm-teal: #1f9aa4;
  --vpm-coral: #ff6f61;
  --vpm-sand: #f5e5ce;
  --vpm-success: #16876c;
  --vpm-radius: 22px;
  --vpm-radius-sm: 16px;
  --vpm-shadow: 0 18px 48px rgba(16, 35, 61, 0.10);
  --vpm-shadow-soft: 0 10px 24px rgba(16, 35, 61, 0.08);
  --vpm-container: 1200px;
  --vpm-reading: 760px;
  --vpm-transition: 180ms ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--vpm-bg);
  color: var(--vpm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

main,
article,
section,
.entry-shell,
.entry-content,
.wp-site-blocks {
  min-width: 0;
  max-width: 100%;
}

.entry-content {
  overflow-wrap: anywhere;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.entry-content table {
  max-width: 100%;
}

.entry-content pre,
.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

a {
  color: var(--vpm-primary);
  text-decoration: none;
  transition: color var(--vpm-transition), opacity var(--vpm-transition), transform var(--vpm-transition);
}

a:hover,
a:focus {
  color: var(--vpm-coral);
}

p, ul, ol, blockquote {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 48px), var(--vpm-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 99999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  clip: auto;
  background: var(--vpm-surface);
  border-radius: 999px;
  box-shadow: var(--vpm-shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 232, 242, .86);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
}

.custom-logo-link img {
  max-height: 58px;
  width: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vpm-coral), var(--vpm-primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  box-shadow: var(--vpm-shadow-soft);
}

.site-title-wrap { line-height: 1.1; }

.site-title {
  display: block;
  color: var(--vpm-ink);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-description {
  margin: 2px 0 0;
  color: var(--vpm-ink-soft);
  font-size: .84rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-panel {
  display: block;
}

.nav-panel-header,
.nav-close {
  display: none;
}

.nav-panel > ul,
.nav-panel > div > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--vpm-ink);
  font-size: .92rem;
  font-weight: 700;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--vpm-primary);
}

.main-navigation .menu-item-has-children > a,
.main-navigation .page_item_has_children > a {
  padding-right: 32px;
}

.submenu-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vpm-primary);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
}

.submenu-toggle::before {
  content: "⌄";
  display: block;
  transition: transform var(--vpm-transition);
}

.submenu-toggle[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

/* Bootstrap Dropdown: o menu fica sob o item pai e nunca cresce além da viewport. */
.main-navigation .dropdown-menu {
  position: absolute;
  z-index: 1050;
  top: 100%;
  left: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(580px, calc(100vh - 110px));
  display: none;
  margin: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: var(--vpm-surface);
  border: 1px solid var(--vpm-line);
  border-radius: 18px;
  box-shadow: var(--vpm-shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--vpm-line) transparent;
}

.main-navigation .dropdown-menu.show {
  display: block;
}

.main-navigation .dropdown-menu li {
  width: 100%;
}

.main-navigation .dropdown-menu a {
  display: block;
  padding: 11px 44px 11px 12px;
  border-radius: 12px;
  color: var(--vpm-ink);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.main-navigation .dropdown-menu a:hover,
.main-navigation .dropdown-menu a:focus {
  color: var(--vpm-primary);
  background: var(--vpm-surface-soft);
}

.main-navigation .dropdown-menu .submenu-toggle {
  top: 8px;
  right: 8px;
  transform: none;
}

/* Bootstrap Collapse usado para os níveis internos do menu. */
.main-navigation .nested-menu {
  position: static;
  width: auto;
  max-height: none;
  margin: 4px 0 8px 14px;
  padding: 4px 0 4px 12px;
  overflow: hidden;
  list-style: none;
  border: 0;
  border-left: 2px solid var(--vpm-line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.main-navigation .nested-menu.collapse:not(.show) {
  display: none;
}

.main-navigation .nested-menu.collapse.show {
  display: block;
}

.main-navigation .nested-menu.collapsing {
  height: 0;
  display: block;
  transition: height 200ms ease;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--vpm-surface-soft);
  color: var(--vpm-ink);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--vpm-surface-soft);
  color: var(--vpm-ink);
  flex: 0 0 auto;
}

.hero {
  --parallax-y: 0px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  isolation: isolate;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(90deg, rgba(7, 32, 57, .92) 0%, rgba(7, 32, 57, .76) 42%, rgba(7, 32, 57, .22) 100%),
    var(--hero-image, linear-gradient(135deg, #0b4c81, #1f9aa4));
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.08);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(6, 22, 41, .34));
  z-index: -1;
}

.hero-inner {
  min-height: 520px;
  display: grid;
  align-items: center;
  max-width: 760px;
  padding-block: 76px;
}

.eyebrow,
.category-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.eyebrow,
.category-pill {
  color: #fff;
  background: rgba(255, 111, 97, .96);
}

.hero-title {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #fff;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.92);
}

.hero-search {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--vpm-shadow);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  font: inherit;
  color: var(--vpm-ink);
  background: transparent;
}

.hero-search button,
.button,
.wp-block-button__link,
.comment-form input[type="submit"],
.search-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--vpm-primary);
  color: #fff;
  padding: 14px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(11, 76, 129, .18);
}

.hero-search button:hover,
.button:hover,
.wp-block-button__link:hover,
.comment-form input[type="submit"]:hover,
.search-submit:hover {
  color: #fff;
  background: var(--vpm-coral);
  transform: translateY(-1px);
}

.section {
  padding-block: 54px;
}

.section-tight { padding-block: 32px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.archive-title,
.page-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-kicker {
  color: var(--vpm-primary);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--vpm-primary);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.featured-grid {
  grid-template-columns: repeat(3, 1fr);
}

.posts-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-card,
.sidebar-card,
.content-card,
.entry-shell,
.comments-area,
.author-box,
.archive-shell,
.page-shell {
  background: var(--vpm-surface);
  border: 1px solid var(--vpm-line);
  border-radius: var(--vpm-radius);
  box-shadow: var(--vpm-shadow-soft);
}

.post-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--vpm-primary), var(--vpm-teal));
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.045);
}

.post-card-featured .post-card-image {
  aspect-ratio: 16 / 11;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.post-card-title {
  margin: 14px 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.post-card-title a {
  color: var(--vpm-ink);
}

.post-card-title a:hover {
  color: var(--vpm-primary);
}

.post-card-excerpt {
  color: var(--vpm-ink-soft);
  font-size: .96rem;
  margin-bottom: 18px;
}

.post-card-link {
  margin-top: auto;
  font-weight: 900;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--vpm-ink-soft);
  font-size: .86rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  color: #fff;
  background: var(--vpm-primary);
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.tag-chip.coral { background: var(--vpm-coral); }
.tag-chip.teal { background: var(--vpm-teal); }
.tag-chip.green { background: var(--vpm-success); }

.home-layout,
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.article-reading-layout {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.sidebar-stack {
  display: grid;
  gap: 22px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-title {
  margin: 0 0 18px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vpm-ink);
}

.about-card {
  text-align: center;
}

.about-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--vpm-surface-soft);
  background: linear-gradient(135deg, var(--vpm-primary), var(--vpm-teal));
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-card p {
  color: var(--vpm-ink-soft);
  font-size: .96rem;
}

.compact-posts {
  display: grid;
  gap: 16px;
}

.compact-post {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-post-thumb {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--vpm-surface-soft);
}

.compact-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-post a {
  color: var(--vpm-ink);
  font-weight: 800;
  line-height: 1.3;
  font-size: .94rem;
}

.resource-list,
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.resource-list a,
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--vpm-surface-soft);
  border-radius: 14px;
  color: var(--vpm-ink);
  font-weight: 800;
}

.newsletter-card {
  background: linear-gradient(145deg, #082b4b, #0b4c81);
  color: #fff;
  border-color: transparent;
}

.newsletter-card .sidebar-title,
.newsletter-card p {
  color: #fff;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font: inherit;
}

.newsletter-form button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--vpm-coral);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.newsletter-note {
  margin: 12px 0 0;
  font-size: .82rem;
  opacity: .8;
}

.site-main-spacing {
  padding-block: 40px 74px;
}

.single-hero {
  min-height: 460px;
}

.single-hero .hero-inner {
  min-height: 460px;
  padding-block: 58px;
}

.single-hero .hero-title {
  font-size: clamp(2.45rem, 5.4vw, 4.35rem);
}


.entry-shell {
  padding: clamp(24px, 4vw, 40px);
}

.entry-intro {
  font-size: 1.14rem;
  color: var(--vpm-ink);
  font-weight: 600;
}

.entry-content {
  max-width: var(--vpm-reading);
  color: var(--vpm-ink);
  font-size: 1.05rem;
  line-height: 1.82;
}

.entry-content > * {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--vpm-ink);
  line-height: 1.18;
  letter-spacing: -0.03em;
  scroll-margin-top: 118px;
}

.entry-content h2 {
  margin-top: 2.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.entry-content h3 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 24px 28px;
  border-left: 5px solid var(--vpm-primary);
  background: var(--vpm-surface-soft);
  border-radius: 0 var(--vpm-radius-sm) var(--vpm-radius-sm) 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--vpm-primary);
}

.entry-content figure,
.wp-block-image,
.wp-block-gallery,
.wp-block-video {
  margin-block: 2rem;
}

.entry-content img,
.wp-block-image img,
.entry-featured-media img {
  border-radius: var(--vpm-radius);
  box-shadow: var(--vpm-shadow-soft);
}

.entry-featured-media {
  display: flex;
  justify-content: center;
  margin: 30px auto 24px;
}

.entry-featured-media img {
  margin-inline: auto;
}

.reading-panel {
  display: grid;
  gap: 18px;
  margin-block: 28px;
}

.info-card,
.toc-card,
.quote-card {
  border-radius: var(--vpm-radius-sm);
  border: 1px solid var(--vpm-line);
  background: var(--vpm-surface-soft);
  padding: 20px 22px;
}

.info-card {
  border-color: rgba(18,103,165,.22);
  background: #edf6ff;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--vpm-primary);
  font-weight: 900;
}

.info-card h3,
.toc-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--vpm-ink-soft);
}

.info-card .info-card-action {
  margin-top: 12px;
}

.post-content-widget-area {
  display: grid;
  gap: 18px;
}

.post-content-widget {
  margin: 0;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  columns: 2;
}

.toc-list li {
  break-inside: avoid;
}

.toc-list a {
  font-weight: 800;
}

.toc-list .toc-subitem,
.toc-list .toc-subitem-level-3 {
  margin-left: 18px;
  font-size: .95rem;
}

.toc-list .toc-subitem-level-3 {
  margin-left: 36px;
  font-size: .92rem;
}

.toc-list .toc-subitem a,
.toc-list .toc-subitem-level-3 a {
  font-weight: 700;
  color: var(--vpm-ink-soft);
}

.toc-list .toc-subitem a:hover,
.toc-list .toc-subitem-level-3 a:hover {
  color: var(--vpm-primary);
}

.gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-block: 18px 28px;
}

.gallery-pair img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--vpm-radius-sm);
}

.video-card {
  position: relative;
  display: grid;
  min-height: 250px;
  align-items: end;
  padding: 22px;
  border-radius: var(--vpm-radius);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 22, 41, .06), rgba(6, 22, 41, .86)),
    var(--video-image, linear-gradient(135deg, var(--vpm-primary), var(--vpm-teal)));
  background-size: cover;
  background-position: center;
  box-shadow: var(--vpm-shadow-soft);
}

.video-card::before {
  content: "▶";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #fff;
  background: var(--vpm-coral);
  font-size: 32px;
  box-shadow: 0 18px 32px rgba(0,0,0,.28);
}

.video-card span,
.video-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.video-card span {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  font-size: .76rem;
}

.video-card strong {
  font-size: 1.35rem;
  max-width: 480px;
  line-height: 1.2;
}

.entry-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.entry-meta .meta-dot::before {
  content: "•";
  margin-right: 18px;
  opacity: .7;
}

.author-box {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding: 22px;
}

.author-avatar {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--vpm-surface-soft);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box h3 {
  margin: 0 0 6px;
}

.author-box p {
  margin: 0;
  color: var(--vpm-ink-soft);
}

.posts-pagination,
.pagination {
  margin-top: 32px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--vpm-ink);
  background: var(--vpm-surface);
  border: 1px solid var(--vpm-line);
  font-weight: 900;
}

.page-numbers.current {
  background: var(--vpm-primary);
  color: #fff;
  border-color: var(--vpm-primary);
}

.archive-shell,
.page-shell {
  padding: clamp(24px, 4vw, 40px);
}

.page-shell .entry-content,
.archive-shell .entry-content {
  max-width: none;
}

.entry-header-simple {
  margin-bottom: 28px;
}

.search-shell {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.search-shell .search-field {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--vpm-line);
  padding: 0 18px;
  font: inherit;
}

.comments-area {
  margin-top: 30px;
  padding: 28px;
}

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--vpm-line);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--vpm-line);
  border-radius: var(--vpm-radius-sm);
  padding: 14px 16px;
  font: inherit;
}


.breadcrumbs {
  max-width: var(--vpm-reading);
  margin: 0 auto 22px;
  color: var(--vpm-ink-soft);
  font-size: .92rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--vpm-ink-soft);
  opacity: .75;
  font-weight: 900;
}

.breadcrumbs a {
  color: var(--vpm-primary);
  font-weight: 800;
}

.breadcrumbs [aria-current="page"] {
  color: var(--vpm-ink-soft);
  font-weight: 800;
}


.entry-content img:not(.no-lightbox):not([data-no-lightbox]) {
  cursor: zoom-in;
}

.vpm-gallery-lightbox[hidden] {
  display: none !important;
}

.vpm-gallery-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: vpm-gallery-fade-in 180ms ease both;
}

@keyframes vpm-gallery-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vpm-gallery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 13, 25, .92);
  cursor: zoom-out;
}

.vpm-gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  height: min(940px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 25, 43, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

.vpm-gallery-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px 8px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.vpm-gallery-counter {
  font-size: .92rem;
  font-weight: 800;
}

.vpm-gallery-close,
.vpm-gallery-nav {
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: background var(--vpm-transition), transform var(--vpm-transition);
}

.vpm-gallery-close:hover,
.vpm-gallery-close:focus,
.vpm-gallery-nav:hover,
.vpm-gallery-nav:focus {
  color: #fff;
  background: var(--vpm-coral);
}

.vpm-gallery-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.vpm-gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.vpm-gallery-nav {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.4rem;
  line-height: 1;
}

.vpm-gallery-nav:disabled {
  display: none;
}

.vpm-gallery-figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  margin: 0;
  will-change: transform, opacity;
  touch-action: pan-y pinch-zoom;
  transition: transform 220ms cubic-bezier(.22,.72,.25,1), opacity 220ms ease;
}

.vpm-gallery-figure.is-dragging {
  cursor: grabbing;
  transition: none;
}

.vpm-gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  user-select: none;
  -webkit-user-drag: none;
}

.vpm-gallery-caption {
  max-width: 900px;
  min-height: 1.4em;
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  line-height: 1.45;
  text-align: center;
}

html.vpm-gallery-open,
body.vpm-gallery-open {
  overflow: hidden;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.site-footer {
  margin-top: 72px;
  color: #fff;
  background: linear-gradient(145deg, #082b4b, #0b4c81);
}

.footer-top {
  padding-block: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 14px;
  font-size: .96rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-copy,
.footer-nav a {
  color: rgba(255,255,255,.82);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-block: 18px;
  font-size: .9rem;
  color: rgba(255,255,255,.72);
}



.single .entry-shell {
  width: min(100%, 980px);
  margin-inline: auto;
}

.single .entry-intro,
.single .reading-panel,
.single .author-box,
.single .comments-area {
  max-width: var(--vpm-reading);
  margin-inline: auto;
}

.single .entry-content {
  margin-inline: auto;
}

.single .entry-content > .alignwide,
.single .entry-content .wp-block-image.alignwide,
.single .entry-content .wp-block-gallery.alignwide,
.single .entry-content .wp-block-video.alignwide,
.single .entry-content .wp-block-cover.alignwide,
.single .entry-content .wp-block-columns.alignwide {
  width: min(1200px, calc(100vw - 48px));
  max-width: min(1200px, calc(100vw - 48px));
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

.single .entry-content > .alignfull,
.single .entry-content .wp-block-image.alignfull,
.single .entry-content .wp-block-gallery.alignfull,
.single .entry-content .wp-block-video.alignfull,
.single .entry-content .wp-block-cover.alignfull,
.single .entry-content .wp-block-columns.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

.single .entry-content .alignfull img,
.single .entry-content .alignwide img,
.single .entry-content .wp-block-gallery.alignfull img,
.single .entry-content .wp-block-gallery.alignwide img {
  border-radius: var(--vpm-radius);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    transform: scale(1.08);
  }

  .vpm-gallery-lightbox {
    animation: none;
  }

  .vpm-gallery-figure {
    transition: none;
  }
}

.wp-caption-text,
.gallery-caption {
  color: var(--vpm-ink-soft);
  font-size: .88rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .home-layout,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-stack {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article-reading-layout {
    margin-top: -28px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--vpm-container));
  }

  .header-inner {
    min-height: 76px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-description {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    position: static;
    margin-left: auto;
  }

  /* O Bootstrap controla as classes .showing, .show e .hiding do offcanvas. */
  .nav-panel.offcanvas {
    position: fixed;
    z-index: 1045;
    inset: 0 0 0 auto;
    width: min(430px, 100vw);
    max-width: 100%;
    height: 100dvh;
    display: block;
    padding: 0 18px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    background: var(--vpm-surface);
    box-shadow: -24px 0 60px rgba(16, 35, 61, .20);
    transform: translateX(100%);
    transition: transform 260ms ease, visibility 260ms step-end;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel.offcanvas.showing,
  .nav-panel.offcanvas.show {
    visibility: visible;
    transform: translateX(0);
    transition: transform 260ms ease, visibility 0s;
  }

  .nav-panel.offcanvas.hiding {
    visibility: visible;
    transform: translateX(100%);
  }

  .nav-panel-header {
    position: sticky;
    z-index: 4;
    top: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -18px 16px;
    padding: 0 18px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vpm-line);
  }

  .nav-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--vpm-surface-soft);
    color: var(--vpm-ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }

  .offcanvas-backdrop {
    position: fixed;
    z-index: 1040;
    inset: 0;
    background: #061629;
  }

  .offcanvas-backdrop.fade {
    opacity: 0;
  }

  .offcanvas-backdrop.show {
    opacity: .52;
  }

  .nav-panel > ul,
  .nav-panel > div > ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-panel > ul > li,
  .nav-panel > div > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--vpm-line);
  }

  .nav-panel > ul > li > a,
  .nav-panel > div > ul > li > a {
    display: block;
    padding: 16px 52px 16px 4px;
    font-size: 1.05rem;
  }

  .main-navigation .submenu-toggle {
    top: 10px;
    right: 2px;
    width: 42px;
    height: 42px;
    transform: none;
    background: var(--vpm-surface-soft);
  }

  .main-navigation .dropdown-menu {
    position: static !important;
    inset: auto !important;
    width: auto;
    max-height: none;
    margin: 0 0 10px 12px !important;
    padding: 4px 0 4px 12px;
    overflow: visible;
    transform: none !important;
    border: 0;
    border-left: 2px solid var(--vpm-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .main-navigation .dropdown-menu a {
    padding: 11px 50px 11px 8px;
    font-size: .97rem;
  }

  .main-navigation .dropdown-menu .submenu-toggle {
    top: 5px;
    right: 0;
  }

  .main-navigation .nested-menu {
    margin-left: 12px;
  }

  .hero,
  .hero-inner,
  .single-hero,
  .single-hero .hero-inner {
    min-height: 460px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search input {
    min-height: 48px;
  }

  .featured-grid,
  .posts-grid,
  .sidebar-stack,
  .footer-grid,
  .gallery-pair {
    grid-template-columns: 1fr;
  }

  .info-card,
  .author-box {
    grid-template-columns: 1fr;
  }

  .toc-list {
    columns: 1;
  }

  .entry-shell {
    padding: 22px;
  }

  .entry-content {
    width: 100%;
    font-size: 1rem;
  }

  .single .entry-content > .alignfull,
  .single .entry-content .wp-block-image.alignfull,
  .single .entry-content .wp-block-gallery.alignfull,
  .single .entry-content .wp-block-video.alignfull,
  .single .entry-content .wp-block-cover.alignfull,
  .single .entry-content .wp-block-columns.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    transform: none;
  }

  .vpm-gallery-lightbox {
    padding: 0;
  }

  .vpm-gallery-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .vpm-gallery-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 10px 4px 18px;
  }

  .vpm-gallery-nav {
    width: 40px;
    height: 48px;
    border-radius: 14px;
    font-size: 2rem;
  }

  .vpm-gallery-caption {
    padding-inline: 8px;
    font-size: .88rem;
  }

  .single .entry-content > .alignwide,
  .single .entry-content .wp-block-image.alignwide,
  .single .entry-content .wp-block-gallery.alignwide,
  .single .entry-content .wp-block-video.alignwide,
  .single .entry-content .wp-block-cover.alignwide,
  .single .entry-content .wp-block-columns.alignwide {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-left: calc(50% - 50vw + 14px);
    margin-right: 0;
    transform: none;
  }

  .section {
    padding-block: 40px;
  }
}

@media (max-width: 560px) {
  .hero-title,
  .single-hero .hero-title {
    font-size: 2.35rem;
  }

  .header-search {
    display: none;
  }

  .post-card-body,
  .sidebar-card {
    padding: 18px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
