@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

/* ── Font Awesome — tamanhos que espelham as regras SVG ─────────────── */
.header-search i               { font-size: 16px; color: rgba(255,255,255,.7); flex-shrink: 0; line-height: 1; }
.header-wa-icon i              { font-size: 22px; line-height: 1; }
.nav-mega-trigger i            { font-size: 12px; transition: transform .2s; line-height: 1; }
.nav-mega:hover .nav-mega-trigger i { transform: rotate(180deg); }
.mega-cat-item i               { font-size: 16px; flex-shrink: 0; color: var(--muted); width: 18px; text-align: center; transition: color .12s; line-height: 1; }
.mega-cat-item:hover i,
.mega-cat-item.active i        { color: var(--primary); }
.mega-machine-link i           { font-size: 12px; flex-shrink: 0; color: var(--muted); line-height: 1; }
.nav-drop-item i               { font-size: 14px; flex-shrink: 0; color: #94a3b8; width: 16px; text-align: center; transition: color .12s; line-height: 1; }
.nav-drop-item:hover i         { color: var(--primary); }
.nav-drop:hover .nav-mega-trigger i { transform: rotate(180deg); }
.category-icon i               { font-size: 24px; line-height: 1; }
.benefit-icon i                { font-size: 38px; line-height: 1; }
.btn i                         { font-size: 14px; line-height: 1; }
.nav-search-btn i              { font-size: 30px; color: #fff; line-height: 1; }
.nav-toggle i                  { font-size: 30px; color: #fff; line-height: 1; }
.mnav-trigger i                { font-size: 14px; flex-shrink: 0; transition: transform .22s ease; line-height: 1; }
.mnav-trigger.open i           { transform: rotate(180deg); }
.mnav-item i                   { font-size: 14px; flex-shrink: 0; color: rgba(255,255,255,.5); line-height: 1; }
.download-btn-icon i           { font-size: 18px; line-height: 1; }
.download-btn-arrow i          { font-size: 16px; line-height: 1; }
.gallery-strip-thumb i         { font-size: 20px; color: var(--muted); line-height: 1; }
.machine-featured-placeholder i { font-size: 72px; color: var(--muted); line-height: 1; }
.post-meta i                   { font-size: 12px; flex-shrink: 0; line-height: 1; }
.post-card-link i              { font-size: 13px; line-height: 1; }
.search-popup-box i            { font-size: 18px; color: var(--muted); line-height: 1; }
.kw-tooltip i                  { font-size: 13px; flex-shrink: 0; opacity: .75; line-height: 1; }
.footer-contact-item i         { font-size: 15px; flex-shrink: 0; line-height: 1; }
.footer-social a i             { font-size: 16px; line-height: 1; }
.sr-thumb i                    { font-size: 24px; color: var(--muted); line-height: 1; }

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; font-size: 17px; }

/* ── Page transitions ─────────────────────────────────────────── */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .12s ease-out both; }
  body.page-leaving {
    opacity: 0 !important;
    transition: opacity .1s ease-in !important;
    pointer-events: none !important;
  }
}

/* Compensa o header fixo em links de âncora */
[id] { scroll-margin-top: 130px; }
@media (max-width: 768px) { [id] { scroll-margin-top: 70px; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
p { line-height: 1.75; font-weight: 500; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(37,99,235,.35); transform: translateY(-1px); }
.hero-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Header ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Barra superior */
.header-top {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-top .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 80px;
}
.site-logo { flex-shrink: 0; text-decoration: none; }
.site-logo img { height: 68px; width: auto; display: block; }

.header-search {
  width: 95%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50px;
  padding: 0 20px;
  height: 46px;
  transition: width .35s ease, border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
  width: 100%;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.header-search i               { color: var(--muted) !important; }
.header-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.header-search input {
  border: none; background: none; outline: none;
  font-size: .95rem; color: var(--text); width: 100%; font-family: inherit;
}
.header-search input::placeholder { color: var(--muted); }

.header-wa {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: opacity .15s;
}
.header-wa:hover { opacity: .85; }
.header-wa-icon {
  width: 48px; height: 48px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-wa-icon svg { width: 48px; height: 48px; }
.header-wa-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-wa-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.header-wa-phone { font-size: 1.1rem; font-weight: 700; color: #fff; }

/* Barra de navegação */
.header-nav { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.header-nav .container {
  display: flex;
  align-items: stretch;
  height: 46px;
  position: relative;
}
.header-nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.nav-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.nav-link.nav-admin { margin-left: auto; background: rgba(255,255,255,.12); }
.nav-link.nav-admin:hover { background: rgba(255,255,255,.25); }

/* Mega menu */
.nav-mega {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-mega-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  transition: background .15s;
  font-family: inherit;
}
.nav-mega-trigger:hover,
.nav-mega:hover .nav-mega-trigger { background: rgba(255,255,255,.15); color: #fff; }
.nav-mega-trigger svg { width: 13px; height: 13px; transition: transform .2s; }
.nav-mega:hover .nav-mega-trigger svg { transform: rotate(180deg); }

.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 1020px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16);
  z-index: 300;
}
.nav-mega:hover .mega-dropdown,
.nav-mega.open .mega-dropdown  { display: flex; }

.mega-cats {
  width: 270px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 8px 0;
  background: #f8fafc;
  border-radius: 0 0 0 12px;
}
.mega-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}
.mega-cat-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: color .12s; }
.mega-cat-item:hover,
.mega-cat-item.active { background: #fff; color: var(--primary); border-left-color: var(--primary); }
.mega-cat-item:hover svg,
.mega-cat-item.active svg { color: var(--primary); }

.mega-panels { flex: 1; padding: 20px 22px; min-height: 200px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-panel-title {
  font-size: .9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.mega-machines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  margin-bottom: 14px;
}
.mega-machine-link {
  display: block;
  padding: 7px 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.mega-machine-link:hover { background: #eff6ff; color: var(--primary); }
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.mega-view-all:hover { text-decoration: underline; }

/* Nav dropdown simples (Chamado Técnico) */
.nav-drop {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px;
  padding: 6px;
  z-index: 300;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.nav-drop-item:hover { background: #eff6ff; color: var(--primary); }
.nav-drop-item svg { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; transition: color .12s; }
.nav-drop-item:hover svg { color: var(--primary); }
.nav-drop:hover .nav-mega-trigger { background: rgba(255,255,255,.15); color: #fff; }
.nav-drop:hover .nav-mega-trigger svg { transform: rotate(180deg); }

/* Toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 10px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 34px; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: center;
}
/* Animação X ao abrir */
/* gap(6) + height(2.5) = 8.5px → arredonda para 8px */
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #1a1a1a 100%);
  position: relative;
  padding: 100px 0 80px;
  color: #fff;
}
.hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Page Banner (páginas internas) ────── */
.page-banner {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 40%, #3a3a3a 100%);
  position: relative;
  padding: 82px 0 68px;
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--banner-bg, var(--site-hero-bg));
  background-size: cover;
  background-position: center;
  opacity: .28;
  z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .banner-breadcrumb { font-size:.9rem; color:#e2e8f0; margin-bottom:14px; }
.page-banner .banner-breadcrumb a { color:#e2e8f0; text-decoration:none; transition:color .15s; }
.page-banner .banner-breadcrumb a:hover { color:#fff; }
.page-banner .banner-breadcrumb span { margin:0 7px; opacity:.5; }
.page-banner h1 { font-size:clamp(2rem,4.5vw,2.8rem); font-weight:800; line-height:1.2; margin-bottom:10px; }
.page-banner p { color:#cbd5e1; font-size:1rem; max-width:580px; margin:0; line-height:1.6; }
@media (max-width:768px) { .page-banner { padding:56px 0 44px; } }

/* ── Admin quick-edit button (só visível quando logado) ── */
.admin-edit-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: #1e3a8a;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 10px;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 0 16px rgba(0,0,0,.25);
  transition: padding .2s ease, gap .2s ease, background .15s;
  overflow: hidden;
}
.admin-edit-btn i { font-size: 15px; flex-shrink: 0; }
.admin-edit-btn span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: max-width .22s ease, margin .22s ease;
}
.admin-edit-btn:hover {
  background: #2563eb;
  padding: 14px 16px 14px 12px;
  gap: 9px;
}
.admin-edit-btn:hover span { max-width: 100px; }
@media (max-width: 768px) { .admin-edit-btn { display: none; } }

/* ── Sections ─────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
#categorias .section-header { margin-bottom: 20px; }
#maquinas .section-header { margin-bottom: 20px; }
.benefits-section .section-header { margin-bottom: 20px; }
.site-calendar-section .section-header { margin-bottom: 20px; }
.section-header--left {
  text-align: left;
}
.section-header.section-header--left p {
  margin: 0;
  max-width: none;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Microjet Care ────────────────────── */
.care-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 60px 0;
}
.care-inner {
  display: flex;
  align-items: center;
  gap: 52px;
}
.care-img {
  flex-shrink: 0;
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
}
.care-img img {
  width: 100%;
  height: auto;
  display: block;
}
.care-body h2 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.care-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.care-body p {
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  margin-bottom: 14px;
}
.care-body p:last-child { margin-bottom: 0; }
.care-obs { font-size: .9rem !important; }
.care-obs strong { color: #fff; }
.care-text-mobile { display: none; }
@media (max-width: 700px) {
  .care-inner { flex-direction: column; gap: 28px; text-align: center; }
  .care-img { width: 160px; }
  .care-body h2 { font-size: 1.5rem; }
  .care-text-desktop { display: none; }
  .care-text-mobile { display: block; }
}

/* ── Benefits ─────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  transition: box-shadow .2s;
}
.benefit-card:hover {
  box-shadow: 0 4px 20px rgba(29,78,216,.12);
}
.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  flex-shrink: 0;
}
.benefit-icon i { font-size: 1.7rem !important; }
.benefit-icon svg {
  width: 36px;
  height: 36px;
  stroke: #1d4ed8;
}
.benefit-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 6px;
}
.benefit-body p {
  font-size: .875rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}
.benefits-dots { display: none; }
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .benefits-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 14px;
    padding: 0 24px 12px;
    margin: 0 -24px;
    scrollbar-width: none;
  }
  .benefits-grid::-webkit-scrollbar { display: none; }
  .benefit-card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: center;
  }
  .benefits-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .benefits-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
  }
  .benefits-dot.active {
    background: #2563eb;
    transform: scale(1.3);
  }
}

/* ── Categories ───────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.category-icon {
  width: 140px; height: 140px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}
.category-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.category-icon svg { width: 26px; height: 26px; }

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.category-card p {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Machines ─────────────────────────── */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.machine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: block;
  color: inherit;
}
.machine-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.machine-img {
  height: 220px;
  overflow: hidden;
  background: #fff;
  padding: 25px 25px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .4s;
}
.machine-card:hover .machine-img img { transform: scale(1.04); }

.machine-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.machine-img-placeholder svg { width: 48px; height: 48px; }

.machine-body {
  padding: 14px 32px 30px;
  text-align: center;
}
.machine-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 3px;
}
.machine-category {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  display: block;
}

/* ── Footer ───────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 0;
  margin-top: 0px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo img {
  height: 72px;
  margin-bottom: 14px;
  display: block;
}
.footer-desc {
  font-size: .97rem;
  font-weight: 500;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 20px;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .97rem;
  line-height: 1.55;
  color: #64748b;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #475569;
}
.footer-phone, .footer-email {
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.footer-phone:hover, .footer-email:hover { color: #fff; }
.footer-col-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: .96rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .95rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
  padding: 3px 0;
}
.footer-social-btn i {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.footer-social-btn svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  transition: color .15s;
}
.footer-social-btn:hover { color: #fff; }
.footer-social-btn:hover svg { color: #fff; }
.footer-social-wa:hover { color: #25d366; }
.footer-social-wa:hover svg { color: #25d366; }
.footer-bottom {
  width: 100%;
  padding: 14px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  text-align: center;
}

/* ── Nav search ────────────────────────── */
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 11px;
  height: 34px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.nav-search-form svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.nav-search-form input {
  border: none; background: none;
  font-size: .9rem; color: var(--text); outline: none;
  font-family: inherit; width: 140px;
  transition: width .25s ease;
}
.nav-search-form:focus-within input { width: 200px; }
.nav-search-form input::placeholder { color: var(--muted); }

/* ── Search hero / results form ────────── */
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .2s, box-shadow .2s;
  margin: 12px 0;
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.search-form > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-form input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 0;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.search-form input::placeholder { color: var(--muted); }
.search-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.search-submit:hover { background: var(--primary-dark); }
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color .2s, background .2s;
}
.search-close:hover { color: var(--text); background: var(--bg-alt); }
.search-close svg { width: 16px; height: 16px; }

/* ── Search results page ──────────────── */
.search-hero {
  padding: 140px 0 120px;
  color: #fff;
}
@media (max-width: 768px) {
  .search-hero { padding: 48px 0 40px; }
}
.search-hero .container { position: relative; z-index: 1; }
.search-hero h1 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; margin-bottom: 24px; }
.search-hero-filters {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.shf-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.shf-pill i { font-size: 13px; }
.shf-pill .shf-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  font-size: 9px;
  color: transparent;
  transition: all .18s;
  flex-shrink: 0;
}
.shf-pill.active {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}
.shf-pill.active .shf-check-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.shf-pill:not(.active):hover {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.search-hero-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 50px;
  padding: 0 8px 0 24px;
  height: 58px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.search-hero-form i { font-size: 18px; color: var(--muted); flex-shrink: 0; }
.search-hero-form input {
  border: none; background: none; outline: none;
  font-size: 1rem; color: var(--text); width: 100%; font-family: inherit;
}
.search-hero-form input::placeholder { color: var(--muted); }
.search-hero-form button {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 24px;
  height: 42px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.search-hero-form button:hover { background: var(--primary-dark); }

.search-meta {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-top: 32px;
}
.search-meta strong { color: var(--text); }
.search-section-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  margin-bottom: 10px;
}
.search-result:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary); }
.sr-thumb {
  width: 128px; height: 128px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.sr-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.sr-thumb svg { width: 28px; height: 28px; }
.sr-body { flex: 1; min-width: 0; }
.sr-type {
  font-size: .9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--primary); display: block; margin-bottom: 4px;
}
.sr-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.sr-body p { font-size: .92rem; color: var(--text-secondary); line-height: 1.5; }
mark { background: #fef9c3; color: var(--text); padding: 0 2px; border-radius: 2px; }

@media (max-width: 768px) {
  .search-result { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .sr-thumb { width: 100%; height: 180px; flex-shrink: unset; border-radius: 8px; }
  .sr-thumb img { object-fit: contain; }
}

.search-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}
.search-empty svg { width: 56px; height: 56px; color: var(--muted); margin: 0 auto 20px; display: block; }
.search-empty h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }

/* ── Botões mobile do header (busca + hamburguer) ─────────── */
.header-mobile-actions {
  display: none;          /* oculto no desktop */
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 10px;
  color: #fff;
}
.nav-search-btn svg { width: 24px; height: 24px; display: block; }

/* ── Popup de busca ───────────────────────────────────────── */
.search-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 0;
}
.search-popup.open { display: flex; }
.search-popup-inner {
  width: 100%;
  max-width: 580px;
}
.search-popup-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-popup-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  cursor: text;
}
.search-popup-box svg { width: 20px; height: 20px; color: #94a3b8; flex-shrink: 0; }
.search-popup-box input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
  padding: 14px 0;
  font-family: inherit;
}
.search-popup-box input::placeholder { color: #94a3b8; }
.search-popup-submit {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.search-popup-submit:hover { background: #1d4ed8; }
.search-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}
.search-popup-close svg { width: 16px; height: 16px; }
.search-popup-close:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* ── Mobile nav (estrutura separada) ──────────────────────── */
.mobile-nav { display: none; }   /* sempre oculto no desktop */

@media (max-width: 768px) {
  /* Gaveta: posição fixa, ocupa tela toda abaixo do header */
  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 500;
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }
  .mobile-nav.open { display: flex; }

  /* Link direto */
  .mnav-link {
    display: block;
    padding: 15px 22px;
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .12s;
  }
  .mnav-link:hover,
  .mnav-link:active { background: rgba(255,255,255,.09); color: #fff; }

  /* Grupo com acordeão */
  .mnav-group { border-bottom: 1px solid rgba(255,255,255,.08); }

  .mnav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 22px;
    background: none;
    border: none;
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .12s;
  }
  .mnav-trigger:hover { background: rgba(255,255,255,.09); }
  .mnav-trigger svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform .22s ease;
  }
  .mnav-trigger.open svg { transform: rotate(180deg); }

  /* Submenu (oculto/visível) */
  .mnav-sub {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,.18);
  }
  .mnav-sub.open { display: flex; }

  /* Seção dentro do submenu (ex: uma categoria com suas máquinas) */
  .mnav-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .mnav-section:last-child { border-bottom: none; }

  /* Botão toggle da categoria (ocupa linha inteira) */
  .mnav-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.38);
    padding: 15px 22px;
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
    transition: background .12s, color .12s;
  }
  .mnav-cat-toggle i { transition: transform .22s ease; }
  .mnav-cat-toggle.open i { transform: rotate(180deg); }
  .mnav-cat-toggle:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.85); }

  /* Lista de máquinas da categoria — oculta por padrão */
  .mnav-cat-machines {
    display: none;
    flex-direction: column;
    padding-bottom: 4px;
  }
  .mnav-cat-machines.open { display: flex; }

  /* Link "Todas" dentro da lista de máquinas */
  .mnav-item-all {
    color: rgba(255,255,255,.7) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 2px;
    gap: 8px;
  }

  /* Título da seção (nome da categoria) — mantido para compatibilidade */
  .mnav-section-title {
    display: block;
    padding: 9px 22px 6px;
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .12s;
  }
  .mnav-section-title:hover { color: rgba(255,255,255,.85); }

  /* Item (máquina / link de ação) */
  .mnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 28px;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
  }
  .mnav-item:hover,
  .mnav-item:active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: rgba(255,255,255,.35);
  }
  .mnav-item svg { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255,255,255,.5); }
  .mnav-item:hover svg { color: rgba(255,255,255,.8); }
}

/* ── Responsive (restante) ────────────────────────────────── */
@media (max-width: 768px) {
  /* Header-top compacto */
  .header-top .container {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-logo img { height: 56px; }
  .site-logo { margin-left: -6px; }
  .header-search { display: none; }
  .header-wa     { display: none; }

  /* Botões mobile do header */
  .header-mobile-actions { display: flex; }
  .nav-toggle            { display: flex; }

  /* Barra azul colapsa em 0 no mobile (nav-links ocultos) */
  .header-nav         { display: none; }

  /* Ícones do header mais próximos da borda direita */
  .header-top .container { padding-right: 10px; }

  /* Desativa animações de entrada de conteúdo no mobile */
  .hero-content,
  .page-banner .container { animation: none !important; }
  .js [data-anim]          { opacity: 1 !important; }
  .js [data-anim].is-visible { animation: none !important; }

  /* Restante da página */
  .hero         { padding: 60px 0 50px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn:nth-child(1),
  .hero-actions .btn:nth-child(2) { flex: 1; justify-content: center; }
  .hero-actions .btn:nth-child(3) { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.55rem; }
  .section      { padding: 56px 0; }
  .categories-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 8px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .categories-grid::-webkit-scrollbar { display: none; }
  .categories-grid { scrollbar-width: none; }
  .category-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: start;
  }
  .machines-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 8px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .machines-grid::-webkit-scrollbar { display: none; }
  .machines-grid { scrollbar-width: none; }
  .machine-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: start;
  }
  .footer-content  { flex-direction: column; text-align: center; }
}


/* ── WhatsApp FAB ─────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 72px;
  height: 72px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .55);
  color: #fff;
}
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ── Blog ──────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  color: #fff;
  padding: 72px 0 48px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.blog-hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.blog-section { padding: 60px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
}
.post-card-img-placeholder svg { width: 40px; height: 40px; }

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

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-meta span { white-space: nowrap; }
.post-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.post-card-link svg { width: 14px; height: 14px; transition: transform .2s; }
.post-card:hover .post-card-link svg { transform: translateX(3px); }

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.blog-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.blog-empty h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }

/* ── Single Post ───────────────────────────────────────────── */
.post-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  padding: 64px 0 40px;
  color: #fff;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  font-size: .9rem;
  color: #93c5fd;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-hero-meta span { white-space: nowrap; }
.post-hero-meta svg { width: 14px; height: 14px; }
.post-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  max-width: 800px;
}
.post-hero-excerpt {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.65;
}

.post-featured-img {
  max-height: 460px;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 32px;
}

.post-layout {
  padding: 52px 0 72px;
}

.post-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}

.post-main { min-width: 0; }

.post-sidebar {
  position: sticky;
  top: 88px;
}

/* ── Sidebar widgets ── */
.sidebar-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 22px;
}

.sidebar-widget-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-post-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s;
}
.sidebar-post-item:last-of-type { border-bottom: none; }
.sidebar-post-item:hover { color: var(--primary); }

.sidebar-post-icon {
  font-size: .6rem;
  margin-top: 5px;
  flex-shrink: 0;
  color: var(--primary);
  opacity: .7;
}

.sidebar-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .01em;
}
.sidebar-all-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Sidebar CTA ── */
.sidebar-cta {
  background: var(--primary);
  border-color: var(--primary);
  text-align: center;
}

.sidebar-cta-icon {
  font-size: 1.6rem;
  color: rgba(255,255,255,.8);
  display: block;
  margin-bottom: 12px;
}

.sidebar-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.sidebar-cta-text {
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  margin: 0 0 18px;
}

.sidebar-cta-btn {
  display: block;
  background: #fff;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s;
}
.sidebar-cta-btn:hover { opacity: .9; }

.post-content {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content h1, .post-content h2, .post-content h3 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.8em 0 .6em;
  color: var(--text);
}
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: 10px; margin: 1.4em 0; }
.post-content ul, .post-content ol { margin: 1em 0 1em 1.5em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .8em 1.2em;
  margin: 1.4em 0;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1em 1.2em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: .9rem;
}
.post-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.post-content pre code { background: none; padding: 0; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 36px;
}
.post-back svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .post-with-sidebar {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sidebar-widget { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-layout { padding: 36px 0 56px; }
  .post-sidebar { grid-template-columns: 1fr; }
}

/* ── Entrance Animations ──────────────────────────────────────────────── */
@keyframes _fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes _fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero e banner: animam imediatamente no carregamento */
.hero-content {
  animation: _fadeUp .7s cubic-bezier(.25,.46,.45,.94) both;
}
.page-banner .container {
  animation: _fadeUp .65s cubic-bezier(.25,.46,.45,.94) both;
}

/* Scroll-triggered: só activo quando JS adiciona .js no <html> */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-visible {
  animation: _fadeUp .55s cubic-bezier(.25,.46,.45,.94) both;
}

/* Respeita preferência do sistema por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .page-banner .container { animation: none !important; }
  .js [data-anim]         { opacity: 1 !important; }
  .js [data-anim].is-visible { animation: none !important; }
}
