/* ==========================================================================
   Dr. Marcos Viana — Tema WordPress
   Reprodução fiel do projeto Lovable (petroleum blue / minimal premium)
   ========================================================================== */

:root {
  --background: #f6f8fa;
  --foreground: #122430;
  --card: #ffffff;
  --card-alt: #f9fbfc;
  --muted: #eaeef1;
  --muted-foreground: #5b6f7a;
  --border: #dde3e7;

  --primary: #1a4b57;          /* petroleum blue */
  --primary-dark: #0f353f;
  --primary-foreground: #ffffff;

  --accent: #b98e4c;           /* soft gold */
  --accent-light: #d9b17a;

  --shadow-soft: 0 4px 20px -4px rgba(18, 36, 48, .08);
  --shadow-medium: 0 8px 30px -6px rgba(18, 36, 48, .12);
  --shadow-elevated: 0 20px 50px -12px rgba(18, 36, 48, .18);

  --radius: 12px;
  --radius-lg: 20px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--foreground); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-padding { padding: 5rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
@media (min-width: 1024px) { .section-padding { padding: 7rem 0; } }

.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.section-title { font-size: clamp(1.875rem, 3.5vw, 3rem); margin: .5rem 0 1rem; }
.section-lead { color: var(--muted-foreground); font-size: 1.125rem; max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: all .25s ease; text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-medium); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }
.btn-hero { background: var(--accent); color: #fff; }
.btn-hero:hover { background: var(--accent-light); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0; transition: all .35s ease;
  background: transparent;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(15, 53, 63, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  padding: .5rem 0;
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-branding img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transition: all .3s; }
.site-header.is-scrolled .site-branding img { height: 46px; filter: none; }

.primary-navigation { display: none; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: .25rem; }
.primary-navigation a {
  color: #fff; padding: .5rem 1rem; font-size: .9rem; font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.5); border-radius: 6px;
}
.site-header.is-scrolled .primary-navigation a { text-shadow: none; color: rgba(255,255,255,.9); }
.primary-navigation a:hover { color: var(--accent); }
.header-cta { margin-left: 1rem; }

@media (min-width: 1024px) {
  .primary-navigation { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle {
  background: transparent; border: 0; color: #fff; padding: .75rem; cursor: pointer;
  min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.site-header.is-scrolled .menu-toggle { filter: none; }
.menu-toggle:hover { background: rgba(255,255,255,.1); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: var(--header-height) 0 0 0; z-index: 99;
  background: rgba(15, 53, 63, .98); backdrop-filter: blur(20px);
  padding: 2rem 1.5rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.mobile-menu a { display: block; padding: 1rem; color: #fff; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 1.5rem; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: heroZoom 1.2s ease-out; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Degradê azul concentrado na parte inferior, preservando o rosto. */
  background:
    linear-gradient(to bottom,
      rgba(10, 34, 42, .12) 0%,
      rgba(10, 44, 54, .16) 36%,
      rgba(18, 72, 84, .52) 72%,
      rgba(18, 72, 84, .92) 100%),
    linear-gradient(to right,
      rgba(13, 58, 70, .38) 0%,
      rgba(13, 58, 70, .08) 48%,
      rgba(13, 58, 70, .22) 100%);
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero-content {
  position: absolute;
  z-index: 1;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 2.5rem));
  max-width: 920px;
  padding: 0;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.7rem, 4.45vw, 4.75rem);
  color: #fff;
  line-height: 1.04;
  margin: 0 0 1.5rem;
  max-width: 920px;
  white-space: normal;
}
.hero-title .accent { color: var(--accent-light); font-style: italic; font-weight: 500; white-space: nowrap; }
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
  max-width: 42rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
@media (max-width: 767px) {
  .hero { min-height: 92vh; }
  .hero-content { top: 42%; text-align: left; width: calc(100% - 3rem); }
  .hero-title { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .hero-subtitle { margin: 0; font-size: 1rem; }
}

.scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: 20px; height: 32px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-indicator span { width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 2px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ---------- CTA row ---------- */
.hero-cta { padding: 2.5rem 0 3.5rem; background: var(--background); text-align: center; }
.hero-cta .buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero-cta .buttons { flex-direction: row; } }

/* ---------- Sections ---------- */
.bg-warm { background: linear-gradient(180deg, #f6f8fa 0%, #eef2f4 100%); }
.bg-card { background: var(--card); }
.bg-secondary { background: var(--muted); }
.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.bg-primary h2 { color: #fff; }

.grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-2 { grid-template-columns: 1fr 1fr; }
}

/* About */
.about-image { position: relative; text-align: center; }
.about-image::before {
  content: ""; position: absolute; inset: -1rem; background: rgba(26,75,87,.1); border-radius: 50%; filter: blur(40px);
}
.about-image img {
  position: relative; width: 260px; height: 260px; margin: 0 auto;
  object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .about-image img { width: 320px; height: 320px; } }
.about-badge {
  position: absolute; bottom: -1rem; right: 22%;
  background: var(--card); padding: .75rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow-medium);
}
.about-badge .val { font-weight: 600; color: var(--primary); font-size: .875rem; margin: 0; }
.about-badge .lbl { font-size: .75rem; color: var(--muted-foreground); margin: 0; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.5rem; text-align: center; }
.about-values .val { font-family: var(--font-display); color: var(--primary); font-weight: 600; font-size: 1.125rem; margin: 0; }
.about-values .lbl { font-size: .75rem; color: var(--muted-foreground); margin: 0; }

/* Services / cards */
.card {
  background: linear-gradient(145deg, #fff 0%, #f6f9fb 100%);
  padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(221,227,231,.6);
  transition: all .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
@media (min-width: 1024px) { .card { padding: 2.5rem; } }
.card .icon-box {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(26,75,87,.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  color: var(--primary);
}
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(18,36,48,.85); font-size: .95rem; }
.feature-list svg { flex: 0 0 20px; color: var(--primary); margin-top: 2px; }

/* Representation feature row */
.feat-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.feat-row .icon-box { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 0; flex-shrink: 0; }
.feat-row h4 { font-size: 1rem; margin: 0 0 .25rem; font-family: var(--font-body); font-weight: 600; }
.feat-row p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }
.rep-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated); width: 100%; }

/* Courses */
.course-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.course-head .icon-sm { width: 40px; height: 40px; border-radius: 10px; background: rgba(26,75,87,.1); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.course-head h3 { font-size: 1.5rem; margin: 0; }
.course-card { background: var(--card); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid rgba(221,227,231,.6); position: relative; }
.course-card h4 { font-size: 1.15rem; margin: 0 0 .5rem; }
.course-card p { color: var(--muted-foreground); font-size: .9rem; margin: 0 0 1rem; }
.badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(185,142,76,.2); color: var(--accent);
  font-size: .75rem; padding: .25rem .75rem; border-radius: 999px; font-weight: 500;
}
.link-cta { display: inline-flex; align-items: center; gap: .25rem; color: var(--primary); font-weight: 500; font-size: .9rem; }

/* Testimonials */
.testimonial {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  padding: 2rem; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}
.testimonial .quote-icon { color: var(--accent-light); margin-bottom: 1rem; }
.testimonial p.content { color: rgba(255,255,255,.9); line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial .name { color: #fff; font-weight: 600; margin: 0; }
.testimonial .role { color: rgba(255,255,255,.6); font-size: .875rem; margin: 0; }

/* Contact */
.contact-card { background: var(--card); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-medium); border: 1px solid rgba(221,227,231,.6); }
.contact-card h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: .5rem; }
.form-field input, .form-field textarea {
  width: 100%; height: 48px; padding: .75rem 1rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--foreground);
}
.form-field textarea { height: auto; min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }

.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 48px; height: 48px; background: var(--card); border-radius: 12px;
  box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); transition: all .3s;
}
.social-links a:hover { color: var(--primary); box-shadow: var(--shadow-medium); transform: translateY(-2px); }

.whatsapp-invite { background: var(--card); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid rgba(221,227,231,.6); }
.whatsapp-invite h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.whatsapp-invite p { color: var(--muted-foreground); margin: 0 0 1rem; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes waPulse { 0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.4); } 50% { box-shadow: 0 8px 32px rgba(37,211,102,.7); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); padding: 4rem 0 2rem; }
.site-footer .grid-cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer .grid-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .grid-cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer img { height: 48px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin: 0 0 1rem; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer .creds { font-size: .875rem; color: rgba(255,255,255,.65); margin-top: 1rem; }
.site-footer .creds p { margin: .15rem 0; }
.site-footer .social-icons { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer .social-icons a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.site-footer .social-icons a:hover { background: rgba(255,255,255,.2); }
.site-footer .contact-block { display: flex; flex-direction: column; gap: .75rem; font-size: .9rem; }
.site-footer .contact-block .row { display: flex; gap: .75rem; align-items: flex-start; }
.site-footer .contact-block svg { color: rgba(255,255,255,.5); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: space-between;
  color: rgba(255,255,255,.55); font-size: .75rem; text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }

/* ---------- Blog ---------- */
.page-hero {
  position: relative;
  min-height: 22rem;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--page-hero-image, none) center/cover no-repeat;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,44,61,.35), rgba(14,44,61,.78));
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
.page-hero p { color: rgba(255,255,255,.9); max-width: 48rem; margin: 0 auto; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(221,227,231,.6);
  transition: all .3s;
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--muted); overflow: hidden; display:block; }
.post-card .thumb.no-thumb { background: linear-gradient(135deg, #dfe8eb, #f3f6f7); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.post-card h3 a { color: var(--foreground); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .meta { font-size: .8rem; color: var(--muted-foreground); margin-bottom: .5rem; }
.post-card .excerpt { color: var(--muted-foreground); font-size: .9rem; flex: 1; margin: 0 0 1rem; }

/* Single post */
.single-post-content, .page-content-body {
  max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem;
}
.single-post-content .post-thumbnail { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.single-post-content .entry-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.single-post-content .entry-meta { color: var(--muted-foreground); font-size: .875rem; margin-bottom: 1.5rem; }
.single-post-content .entry-content p,
.single-post-content .entry-content li { font-size: 1.075rem; line-height: 1.8; color: rgba(18,36,48,.88); }
.single-post-content .entry-content h2 { margin-top: 2.5rem; }
.single-post-content .entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.single-post-content .entry-content blockquote {
  border-left: 4px solid var(--accent); padding: .5rem 1.25rem; margin: 1.5rem 0;
  color: var(--muted-foreground); font-style: italic; background: var(--muted);
}

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span { padding: .5rem 1rem; border-radius: 8px; background: var(--card); border: 1px solid var(--border); color: var(--foreground); font-size: .9rem; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-main { padding-top: var(--header-height); min-height: 60vh; }
body.home .site-main, body.is-front-page .site-main { padding-top: 0; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* No-JS fallback */
.no-js .reveal { opacity: 1; transform: none; }

/* v2.3 - Ajustes finos do Blog */
.blog-posts-section {
  padding: 2.25rem 1.25rem 4rem !important;
}
.page-hero + .blog-posts-section {
  margin-top: 0 !important;
}
.post-card .thumb.no-thumb {
  min-height: 260px;
}
.post-card .thumb img {
  display: block;
}
.single-post-content > .post-thumbnail,
.single-post-content .post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0 0 24px 24px;
}


/* v2.4 - Correções finais: Hero aprovado, Blog sem tarja branca e posts com imagem destacada */
body.blog .site-main,
body.archive .site-main,
body.single-post .site-main {
  padding-top: 0 !important;
}

.hero-content {
  top: 58% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(920px, calc(100% - 2.5rem)) !important;
  max-width: 920px !important;
  text-align: center !important;
}

.hero-title {
  max-width: 920px !important;
  font-size: clamp(2.7rem, 4.45vw, 4.75rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  white-space: nowrap !important;
}

@media (min-width: 1600px) {
  .hero-content { width: min(960px, calc(100% - 2.5rem)) !important; max-width: 960px !important; }
  .hero-title { max-width: 960px !important; font-size: clamp(3rem, 4vw, 4.85rem) !important; }
}

@media (max-width: 767px) {
  .hero-content {
    top: 46% !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
  }
  .hero-title { font-size: clamp(2.25rem, 11vw, 3.4rem) !important; }
}

.page-hero {
  margin-top: 0 !important;
}

.blog-posts-section {
  padding-top: 2.75rem !important;
}

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


/* v2.5 - Ajustes finais de Blog/Post e estabilidade do Hero */
@media (min-width: 1200px) {
  .hero-content {
    top: 61% !important;
  }
}

/* Mantém a imagem dos cards focada no topo para não cortar cabeças/rostos. */
.post-card .thumb img {
  object-fit: cover !important;
  object-position: center top !important;
}

/* Página individual do artigo: banner próprio + imagem destacada sem corte. */
.single-hero {
  position: relative;
  min-height: 430px;
  padding: calc(var(--header-height) + 4rem) 0 4.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--single-hero-image, none) center 28% / cover no-repeat;
  z-index: 0;
  transform: scale(1.02);
}
.single-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 34, 42, .22) 0%, rgba(10, 44, 54, .55) 62%, rgba(10, 44, 54, .86) 100%),
    linear-gradient(to right, rgba(10, 44, 54, .55), rgba(10, 44, 54, .18), rgba(10, 44, 54, .55));
  z-index: 1;
}
.single-hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.single-hero__meta {
  font-size: .9rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 1rem;
}
.single-hero__meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.single-hero__title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  margin: 0 auto;
  max-width: 920px;
}
.single-post-content {
  max-width: 900px;
  padding-top: 3rem;
}
.single-featured-image {
  margin: 0 auto 2.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: var(--card);
}
.single-featured-image img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 24px;
}
.single-post-content > .post-thumbnail,
.single-post-content .post-thumbnail img {
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 24px;
}

@media (max-width: 767px) {
  .single-hero {
    min-height: 360px;
    padding: calc(var(--header-height) + 3rem) 0 3rem;
  }
  .single-hero__title {
    font-size: clamp(1.8rem, 9vw, 2.75rem);
  }
  .single-post-content {
    padding-top: 2rem;
  }
}
