/* ============================================================
   WP Institucional Pro — Public CSS  v2.0  (Mobile First)
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
.wpinst *, .wpinst *::before, .wpinst *::after { box-sizing: border-box; }
.wpinst {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--wpinst-text, #333);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wpinst img { max-width: 100%; height: auto; display: block; }
.wpinst a   { color: inherit; text-decoration: none; }
.wpinst h1, .wpinst h2, .wpinst h3, .wpinst h4 { line-height: 1.25; }
.wpinst ul, .wpinst ol { padding: 0; margin: 0; list-style: none; }

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --wpinst-primary:    #1a73e8;
  --wpinst-secondary:  #0d47a1;
  --wpinst-buttons:    #1a73e8;
  --wpinst-navbar:     #ffffff;
  --wpinst-text:       #333333;
  --wpinst-navbar-h:   64px;
  --wpinst-radius:     10px;
  --wpinst-shadow:     0 4px 20px rgba(0,0,0,.10);
  --wpinst-shadow-lg:  0 10px 40px rgba(0,0,0,.14);
}

/* ── Container ─────────────────────────────────────────────── */
.wpinst-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Utilitários ───────────────────────────────────────────── */
.wpinst-center    { text-align: center; }
.wpinst-bg-light  { background: #f7f9fc; }
.wpinst-bg-dark   { background: #0f1923; }
.wpinst-section   { padding: 72px 0; }

.wpinst-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wpinst-primary);
  margin-bottom: 10px;
}
.wpinst-section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: #0f1923;
}
.wpinst-section-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin: 0 0 48px;
  max-width: 600px;
}
.wpinst-center .wpinst-section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Divisor decorativo ────────────────────────────────────── */
.wpinst-divider {
  width: 52px; height: 4px;
  background: var(--wpinst-primary);
  border-radius: 4px;
  margin: 0 0 32px;
}
.wpinst-center .wpinst-divider { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════════════
   BOTÕES  — corrigidos texto sempre visível
   ══════════════════════════════════════════════════════════════ */
.wpinst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
  line-height: 1;
}
.wpinst-btn:hover  { transform: translateY(-2px); box-shadow: var(--wpinst-shadow-lg); }
.wpinst-btn:active { transform: translateY(0); }

/* Botão primário — fundo colorido, texto branco */
.wpinst-btn-primary {
  background: var(--wpinst-buttons);
  color: #fff !important;
  border-color: var(--wpinst-buttons);
}
.wpinst-btn-primary:hover { background: var(--wpinst-secondary); border-color: var(--wpinst-secondary); }

/* Botão branco — fundo branco, texto colorido (corrigido!) */
.wpinst-btn-white {
  background: #ffffff;
  color: var(--wpinst-primary) !important;
  border-color: #ffffff;
}
.wpinst-btn-white:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* Botão outline — borda branca, texto branco */
.wpinst-btn-outline {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.7);
}
.wpinst-btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Tamanhos */
.wpinst-btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.wpinst-btn-sm { padding: 8px 18px; font-size: .85rem; }

/* WhatsApp específico */
.wpinst-btn-wa {
  background: #25d366 !important;
  color: #fff !important;
  border-color: #25d366 !important;
}
.wpinst-btn-wa:hover { background: #1da851 !important; border-color: #1da851 !important; }

/* ── Grid ──────────────────────────────────────────────────── */
.wpinst-grid   { display: grid; gap: 24px; }
.wpinst-grid-2 { grid-template-columns: 1fr; }
.wpinst-grid-3 { grid-template-columns: 1fr; }
.wpinst-grid-4 { grid-template-columns: repeat(2, 1fr); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.wpinst-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--wpinst-navbar);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: box-shadow .3s, background .3s;
}
.wpinst-navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.13); }

.wpinst-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--wpinst-navbar-h);
  gap: 16px;
}

/* Logo — contida dentro da navbar, nunca extrapola */
.wpinst-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 200px;
  height: calc(var(--wpinst-navbar-h) - 20px); /* 10px de respiro em cima e baixo */
  overflow: hidden;
}
.wpinst-logo-img {
  max-height: 100%;        /* nunca ultrapassa a altura disponível */
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}
.wpinst-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wpinst-primary);
  white-space: nowrap;
}

/* Links desktop (ocultos no mobile) */
.wpinst-nav-links {
  display: none;
  position: absolute;
  top: var(--wpinst-navbar-h); left: 0; right: 0;
  background: var(--wpinst-navbar);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  flex-direction: column;
  padding: 8px 0 16px;
}
.wpinst-nav-links.open { display: flex; }
.wpinst-nav-links li a {
  display: block;
  padding: 11px 24px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--wpinst-text);
  transition: color .2s, background .2s;
}
.wpinst-nav-links li a:hover,
.wpinst-nav-links li a.current { color: var(--wpinst-primary); background: rgba(0,0,0,.04); }
.wpinst-nav-login {
  color: var(--wpinst-primary) !important;
  font-weight: 700 !important;
}

/* Hambúrguer */
.wpinst-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: none; background: none;
  cursor: pointer; padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.wpinst-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--wpinst-text);
  transition: transform .3s, opacity .3s;
}
.wpinst-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wpinst-hamburger.open span:nth-child(2) { opacity: 0; }
.wpinst-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Redes sociais na navbar (desktop) */
.wpinst-nav-social { display: none; align-items: center; gap: 8px; margin-left: 8px; }
.wpinst-nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.06);
  transition: background .2s, transform .2s;
  font-size: 1rem;
}
.wpinst-nav-social a:hover { background: var(--wpinst-primary); transform: scale(1.1); }
.wpinst-nav-social a:hover svg { fill: #fff; }
.wpinst-nav-social svg { width: 17px; height: 17px; fill: var(--wpinst-text); transition: fill .2s; }

/* ══════════════════════════════════════════════════════════════
   HERO — SLIDER e ESTÁTICO
   ══════════════════════════════════════════════════════════════ */
.wpinst-hero { padding: 0; margin-top: var(--wpinst-navbar-h); }

/* Banner estático — mesma proporção 1920×600 em todos os tamanhos */
.wpinst-hero-static {
  position: relative;
  width: 100%;
  padding-top: 31.25%;          /* 600/1920 = 31.25% — cria a proporção */
  background: linear-gradient(135deg, var(--wpinst-primary) 0%, var(--wpinst-secondary) 100%);
  overflow: hidden;
}
/* Conteúdo centralizado dentro do espaço proporcional */
.wpinst-hero-overlay,
.wpinst-hero-content {
  position: absolute;
}
.wpinst-hero-overlay {
  inset: 0;
  background: rgba(0,0,0,.22);
  z-index: 1;
}
.wpinst-hero-content {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 20px;
  width: 100%;
}
/* Em telas muito grandes, limitar a 600px */
@media (min-width: 1920px) {
  .wpinst-hero-static { padding-top: 0; height: 600px; }
}
/* Padrão geométrico decorativo no fundo */
.wpinst-hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.wpinst-hero-title  {
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
  letter-spacing: -.01em;
}
.wpinst-hero-slogan {
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: #fff;
  margin: 0 0 36px;
  opacity: .92;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.wpinst-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Slider ─────────────────────────────────────────────────────
   Proporção 1920×600 = 31.25% em TODOS os tamanhos.
   No mobile a imagem fica menor em altura mas sem zoom —
   igual ao desktop, só proporcionalmente reduzida.
   background-size: cover garante preenchimento sem deformação.
   ──────────────────────────────────────────────────────────── */

/* Técnica: padding-top cria a proporção sem precisar de height fixo.
   O conteúdo fica em position:absolute dentro do espaço criado. */
.wpinst-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Proporção 1920×600 = 31.25% — igual no mobile e desktop */
  padding-top: 31.25%;
  height: 0;              /* altura vem do padding-top */
  background: var(--wpinst-primary);
}

/* Track e slides preenchem o espaço criado pelo padding-top */
.wpinst-slides-track {
  position: absolute;
  inset: 0;               /* top:0 right:0 bottom:0 left:0 */
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.wpinst-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* A imagem vem via style="background-image:url(...)" no PHP */
  background-color: var(--wpinst-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback de cor quando não há imagem */
.wpinst-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Desktop: limita altura máxima em telas muito grandes */
@media (min-width: 1920px) {
  .wpinst-slider {
    padding-top: 0;
    height: 600px;
  }
  .wpinst-slides-track { position: absolute; inset: 0; }
}
.wpinst-slide-color { background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary)); }
.wpinst-slide-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42);
  z-index: 1;     /* sobre o background-image do slide */
}
.wpinst-slide-content {
  position: relative;
  z-index: 2;     /* sobre o overlay */
  text-align: center; color: #fff;
  padding: 0 24px; max-width: 720px;
}
.wpinst-slide-content h1 {
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  font-weight: 900; margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.wpinst-slide-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0 0 28px; opacity: .92;
}
.wpinst-slide-content .wpinst-btn { margin: 4px; }

/* Controles slider */
.wpinst-slide-prev, .wpinst-slide-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.wpinst-slide-prev { left: 14px; }
.wpinst-slide-next { right: 14px; }
.wpinst-slide-prev:hover, .wpinst-slide-next:hover {
  background: rgba(255,255,255,.38); transform: translateY(-50%) scale(1.08);
}
.wpinst-slide-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 10;
}
.wpinst-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: transparent;
  cursor: pointer; padding: 0;
  transition: background .25s, border-color .25s, transform .25s;
  -webkit-tap-highlight-color: transparent;
}
.wpinst-dot.active { background: #fff; border-color: #fff; transform: scale(1.25); }

/* ══════════════════════════════════════════════════════════════
   SOBRE
   ══════════════════════════════════════════════════════════════ */
.wpinst-about-inner {
  display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.wpinst-about-image { position: relative; width: 100%; }
.wpinst-about-image img {
  border-radius: 16px; width: 100%; max-width: 520px;
  object-fit: cover; box-shadow: var(--wpinst-shadow-lg);
  margin: 0 auto;
}
/* Adesivo decorativo */
.wpinst-about-badge {
  display: none;
  position: absolute; bottom: -20px; right: 20px;
  background: var(--wpinst-primary); color: #fff;
  border-radius: 50%; width: 88px; height: 88px;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: .72rem; font-weight: 700; line-height: 1.3;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  text-transform: uppercase; letter-spacing: .04em;
}
.wpinst-about-badge strong { font-size: 1.5rem; display: block; }
.wpinst-about-text { flex: 1; }
.wpinst-about-text p { color: #555; font-size: 1rem; line-height: 1.8; }

/* Stats rápidos */
.wpinst-about-stats {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px;
}
.wpinst-stat-item {
  text-align: center;
  background: #f7f9fc; border-radius: 10px;
  padding: 14px 20px; flex: 1; min-width: 90px;
}
.wpinst-stat-item strong {
  display: block; font-size: 1.6rem; font-weight: 800;
  color: var(--wpinst-primary); line-height: 1;
}
.wpinst-stat-item span { font-size: .8rem; color: #777; margin-top: 4px; display: block; }

/* ══════════════════════════════════════════════════════════════
   SERVIÇOS — Cards modernos
   ══════════════════════════════════════════════════════════════ */
.wpinst-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 26px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.wpinst-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--wpinst-primary), var(--wpinst-secondary));
  opacity: 0; transition: opacity .22s;
}
.wpinst-card:hover { transform: translateY(-5px); box-shadow: var(--wpinst-shadow-lg); }
.wpinst-card:hover::before { opacity: 1; }
.wpinst-card-icon-wrap {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.wpinst-card h3 {
  margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: #1a1a2e;
}
.wpinst-card p { margin: 0; font-size: .92rem; color: #666; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   GRADE DE PRODUTOS / CATEGORIAS
   ══════════════════════════════════════════════════════════════ */
.wpinst-products { background: #fff; }
.wpinst-product-card {
  background: #f7f9fc;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .22s, box-shadow .22s;
  cursor: default;
}
.wpinst-product-card:hover { transform: translateY(-4px); box-shadow: var(--wpinst-shadow); }
.wpinst-product-img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary));
}
.wpinst-product-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(26,115,232,.12), rgba(13,71,161,.12));
}
.wpinst-product-body { padding: 16px 18px; }
.wpinst-product-body h4 {
  margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #1a1a2e;
}
.wpinst-product-body p  { margin: 0; font-size: .87rem; color: #666; }
.wpinst-product-badge {
  display: inline-block; margin-top: 10px;
  background: var(--wpinst-primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════
   DIFERENCIAIS
   ══════════════════════════════════════════════════════════════ */
.wpinst-differentials {
  background: linear-gradient(135deg, #0f1923 0%, var(--wpinst-secondary) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.wpinst-differentials::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
}
.wpinst-differentials .wpinst-section-title  { color: #fff; }
.wpinst-differentials .wpinst-section-subtitle { color: rgba(255,255,255,.7); }
.wpinst-differentials .wpinst-divider { background: rgba(255,255,255,.4); }

.wpinst-diff-item {
  text-align: left;
  padding: 22px 20px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .22s;
  display: flex; flex-direction: column; gap: 10px;
}
.wpinst-diff-item:hover { background: rgba(255,255,255,.11); }
.wpinst-diff-check {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; flex-shrink: 0;
}
.wpinst-diff-item h3 { margin: 0; font-size: .97rem; font-weight: 700; color: #fff; }
.wpinst-diff-item p  { margin: 0; font-size: .87rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   CTA — Faixa de conversão
   ══════════════════════════════════════════════════════════════ */
.wpinst-cta {
  background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary));
  color: #fff; position: relative; overflow: hidden;
}
.wpinst-cta::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.wpinst-cta h2    { font-size: clamp(1.5rem, 4.5vw, 2.3rem); margin: 0 0 14px; color: #fff; font-weight: 800; }
.wpinst-cta p     { margin: 0 0 32px; font-size: 1.05rem; opacity: .9; max-width: 580px; margin-left: auto; margin-right: auto; }
.wpinst-cta-btns  { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   DEPOIMENTOS
   ══════════════════════════════════════════════════════════════ */
.wpinst-testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
  position: relative;
}
.wpinst-testimonial-stars {
  color: #f59e0b; font-size: 1rem;
  margin-bottom: 14px; letter-spacing: .1em;
}
.wpinst-testimonial-text {
  font-size: .97rem; color: #444;
  line-height: 1.75; margin: 0 0 20px;
  font-style: italic;
}
.wpinst-testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.wpinst-testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.wpinst-testimonial-author strong { display: block; font-size: .95rem; color: #222; }
.wpinst-testimonial-author span   { font-size: .82rem; color: var(--wpinst-primary); }

/* ══════════════════════════════════════════════════════════════
   MAPA
   ══════════════════════════════════════════════════════════════ */
.wpinst-map-wrapper {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--wpinst-shadow-lg);
  border: 4px solid #fff;
}
.wpinst-map-wrapper iframe { width: 100%; height: 300px; display: block; border: none; }

/* ══════════════════════════════════════════════════════════════
   CONTATO
   ══════════════════════════════════════════════════════════════ */
.wpinst-contact {
  background: linear-gradient(135deg, #0f1923 0%, var(--wpinst-secondary) 100%);
  color: #fff;
}
.wpinst-contact .wpinst-section-title   { color: #fff; }
.wpinst-contact .wpinst-section-subtitle { color: rgba(255,255,255,.7); }
.wpinst-contact .wpinst-divider          { background: rgba(255,255,255,.35); }

.wpinst-contact-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.wpinst-contact-item {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 22px;
  text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .2s;
}
.wpinst-contact-item:hover { background: rgba(255,255,255,.16); transform: translateX(4px); }
.wpinst-contact-icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.wpinst-contact-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; opacity: .65; margin-bottom: 3px; }
.wpinst-contact-item span   { font-size: 1rem; font-weight: 600; }
.wpinst-contact-wa .wpinst-contact-icon-box { background: rgba(37,211,102,.3); }
.wpinst-contact-wa:hover  { background: rgba(37,211,102,.18); }

/* Redes sociais no contato */
.wpinst-contact-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.wpinst-contact-social a {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 10px 18px;
  font-weight: 600; font-size: .88rem;
  transition: background .2s, transform .2s;
}
.wpinst-contact-social a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.wpinst-contact-social svg { width: 18px; height: 18px; fill: #fff; }

/* ══════════════════════════════════════════════════════════════
   RODAPÉ
   ══════════════════════════════════════════════════════════════ */
.wpinst-footer {
  background: #080d12;
  color: rgba(255,255,255,.55);
  padding: 28px 0;
  font-size: .88rem;
}
.wpinst-footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; text-align: center;
}
.wpinst-footer-login {
  color: rgba(255,255,255,.4); font-size: .8rem;
  transition: color .2s;
}
.wpinst-footer-login:hover { color: #fff; }
.wpinst-footer-social { display: flex; gap: 14px; margin-top: 6px; }
.wpinst-footer-social a {
  color: rgba(255,255,255,.45);
  font-size: .82rem; transition: color .2s;
}
.wpinst-footer-social a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   WhatsApp FLUTUANTE — corrigido
   ══════════════════════════════════════════════════════════════ */
.wpinst-wa-float {
  position: fixed; bottom: 26px; right: 22px;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50px;
  padding: 13px 22px 13px 16px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-weight: 700; font-size: .9rem;
  text-decoration: none !important;
  transition: transform .22s, box-shadow .22s, padding .22s;
  white-space: nowrap;
}
.wpinst-wa-float svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
.wpinst-wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
/* Em mobile, vira só o ícone */
.wpinst-wa-text { display: none; }
@media (min-width: 480px) { .wpinst-wa-text { display: inline; } }

/* ══════════════════════════════════════════════════════════════
   LOGIN
   ══════════════════════════════════════════════════════════════ */
.wpinst-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wpinst-primary) 0%, var(--wpinst-secondary) 100%);
  padding: 20px; position: relative; overflow: hidden;
}
.wpinst-login-wrap::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
}
.wpinst-login-box {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 420px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative; z-index: 1;
}
.wpinst-login-header {
  background: linear-gradient(135deg, var(--wpinst-primary), var(--wpinst-secondary));
  padding: 36px 28px 28px; text-align: center; color: #fff;
}
.wpinst-login-logo { max-height: 60px; margin: 0 auto 14px; }
.wpinst-login-header h2 { margin: 0 0 6px; font-size: 1.5rem; color: #fff; }
.wpinst-login-header p  { margin: 0; opacity: .82; font-size: .9rem; }
.wpinst-login-form { padding: 32px 28px 24px; }
.wpinst-form-group { margin-bottom: 20px; }
.wpinst-form-group label {
  display: block; font-size: .85rem; font-weight: 700;
  margin-bottom: 7px; color: #444;
}
.wpinst-input {
  width: 100%; padding: 13px 16px;
  border: 2px solid #e8eaed;
  border-radius: 9px; font-size: .97rem;
  transition: border-color .2s, box-shadow .2s; outline: none;
  font-family: inherit; background: #fafbfc;
}
.wpinst-input:focus {
  border-color: var(--wpinst-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
  background: #fff;
}
.wpinst-login-footer { padding: 12px 28px 24px; text-align: center; }
.wpinst-login-footer a { color: #888; font-size: .85rem; }
.wpinst-login-footer a:hover { color: var(--wpinst-primary); }

/* Botão Entrar — forçar cores corretas independente do tema WP */
.wpinst-login-box .wpinst-btn-primary,
.wpinst-login-box button.wpinst-btn-primary,
#wpinst-login-btn {
  background: var(--wpinst-primary) !important;
  color: #ffffff !important;         /* texto branco garantido */
  border-color: var(--wpinst-primary) !important;
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  letter-spacing: .02em;
}
.wpinst-login-box .wpinst-btn-primary:hover,
#wpinst-login-btn:hover {
  background: var(--wpinst-secondary) !important;
  border-color: var(--wpinst-secondary) !important;
  color: #ffffff !important;
  opacity: 1;
}

.wpinst-alert { padding: 12px 18px; border-radius: 8px; margin: 0 28px 4px; font-size: .9rem; }
.wpinst-alert-error { background: #fde8e8; color: #c62828; border: 1px solid #f9a8a8; }

/* ══════════════════════════════════════════════════════════════
   ÁREA INTERNA — Mobile First
   Mobile: barra de nav horizontal no topo
   Desktop ≥768px: sidebar vertical lateral
   ══════════════════════════════════════════════════════════════ */
.wpinst-internal-wrap {
  display: flex; flex-direction: column;
  min-height: 100vh; background: #f0f4f8;
}

.wpinst-internal-sidebar {
  background: #0f1923; color: #cdd8e3;
  flex-shrink: 0; width: 100%;
}
.wpinst-internal-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.wpinst-internal-brand img    { max-height: 36px; width: auto; flex-shrink: 0; }
.wpinst-internal-brand strong { font-size: .95rem; color: #fff; }
.wpinst-internal-area-label {
  display: block; font-size: .67rem; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .07em; margin-top: 2px;
}

/* Nav horizontal no mobile — scroll lateral */
.wpinst-internal-nav {
  display: flex; flex-direction: row;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 0 8px; gap: 2px;
}
.wpinst-internal-nav::-webkit-scrollbar { display: none; }
.wpinst-internal-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; color: #8fa3b1;
  text-decoration: none; font-size: .84rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.wpinst-internal-nav a:hover,
.wpinst-internal-nav a.active {
  color: #fff; border-bottom-color: var(--wpinst-primary);
  background: rgba(255,255,255,.05);
}

.wpinst-internal-logout {
  padding: 8px 16px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: flex-end;
}
.wpinst-internal-logout a {
  color: #ef9a9a; font-size: .8rem; font-weight: 600;
  text-decoration: none; padding: 5px 12px;
  border-radius: 6px; background: rgba(239,154,154,.1);
  transition: background .2s, color .2s;
}
.wpinst-internal-logout a:hover { background: rgba(239,154,154,.22); color: #fff; }

.wpinst-internal-main { flex: 1; padding: 18px 14px; }

/* Header de seção */
.wpinst-int-header { margin-bottom: 18px; }
.wpinst-int-header h2 { font-size: 1.15rem; margin: 0 0 4px; color: var(--wpinst-primary); }
.wpinst-int-header p  { margin: 0; color: #666; font-size: .85rem; }
.wpinst-int-empty { color: #aaa; font-style: italic; text-align: center; padding: 32px 0; }

/* Card formulário */
.wpinst-int-card {
  background: #fff; border-radius: 12px;
  padding: 18px 16px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.wpinst-int-card h3 {
  margin: 0 0 16px; font-size: .95rem; color: #333;
  border-bottom: 1px solid #f0f0f0; padding-bottom: 10px;
}
.wpinst-int-field { margin-bottom: 14px; }
.wpinst-int-field label {
  display: block; font-size: .82rem; font-weight: 700;
  color: #555; margin-bottom: 5px;
}
.wpinst-int-field label small { font-weight: 400; color: #999; }
.wpinst-int-input {
  width: 100%; padding: 10px 12px;
  border: 2px solid #e8eaed; border-radius: 8px;
  font-size: .92rem; font-family: inherit;
  transition: border-color .2s; outline: none;
  resize: vertical; background: #fafbfc;
}
.wpinst-int-input:focus { border-color: var(--wpinst-primary); background: #fff; }
.wpinst-int-input-sm    { max-width: 180px; }
.wpinst-int-hint { font-size: .81rem; color: #888; margin-bottom: 12px; }

/* Botões */
.wpinst-int-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wpinst-int-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
/* Botões da área interna — alta especificidade para não ser sobrescrito pelo tema WP */
.wpinst-internal-wrap .wpinst-int-btn,
.wpinst-internal-wrap button.wpinst-int-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
}
.wpinst-internal-wrap .wpinst-int-btn:hover,
.wpinst-internal-wrap button.wpinst-int-btn:hover { opacity: .87; transform: translateY(-1px); }

/* Botão Salvar/Publicar/Enviar — texto BRANCO forçado */
.wpinst-internal-wrap .wpinst-int-btn-save,
.wpinst-internal-wrap button.wpinst-int-btn-save,
.wpinst-internal-main button[type="submit"] {
  background: var(--wpinst-primary) !important;
  color: #ffffff !important;
  border-color: var(--wpinst-primary) !important;
}
.wpinst-internal-wrap .wpinst-int-btn-save:hover,
.wpinst-internal-wrap button.wpinst-int-btn-save:hover,
.wpinst-internal-main button[type="submit"]:hover {
  background: var(--wpinst-secondary) !important;
  border-color: var(--wpinst-secondary) !important;
  color: #ffffff !important;
  opacity: 1;
}

/* Botão Cancelar — texto escuro */
.wpinst-internal-wrap .wpinst-int-btn-cancel,
.wpinst-internal-wrap a.wpinst-int-btn-cancel {
  background: #eeeeee !important;
  color: #444444 !important;
  border-color: #dddddd !important;
}

/* Ações inline — alta especificidade */
.wpinst-int-row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wpinst-internal-wrap .wpinst-int-action-edit,
.wpinst-internal-wrap a.wpinst-int-action-edit,
.wpinst-internal-wrap .wpinst-int-action-delete,
.wpinst-internal-wrap a.wpinst-int-action-delete {
  font-size: .79rem; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
  text-decoration: none; transition: opacity .15s; display: inline-block;
}
.wpinst-internal-wrap .wpinst-int-action-edit,
.wpinst-internal-wrap a.wpinst-int-action-edit {
  background: #e3f2fd !important;
  color: #1565c0 !important;
}
.wpinst-internal-wrap .wpinst-int-action-delete,
.wpinst-internal-wrap a.wpinst-int-action-delete {
  background: #fde8e8 !important;
  color: #c62828 !important;
}
.wpinst-internal-wrap .wpinst-int-action-edit:hover,
.wpinst-internal-wrap .wpinst-int-action-delete:hover { opacity: .75; }

/* Grade catálogo */
.wpinst-int-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.wpinst-int-catalog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.wpinst-int-catalog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.11); }
.wpinst-int-catalog-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.wpinst-int-catalog-placeholder {
  width: 100%; height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f7fa; font-size: 2rem;
}
.wpinst-int-catalog-body { padding: 12px; }
.wpinst-int-catalog-body strong { display: block; font-size: .91rem; margin-bottom: 4px; color: var(--wpinst-primary); }
.wpinst-int-catalog-body p  { font-size: .83rem; color: #555; margin: 0 0 8px; line-height: 1.5; }

/* Avisos */
.wpinst-int-notice-card {
  background: #fff; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-left: 4px solid var(--wpinst-primary);
}
.wpinst-int-notice-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.wpinst-int-notice-meta strong { font-size: .95rem; color: #1a1a2e; }
.wpinst-int-notice-meta span   { font-size: .78rem; color: #888; }
.wpinst-int-notice-card p { margin: 0 0 8px; font-size: .87rem; color: #444; line-height: 1.6; }

/* Documentos */
.wpinst-int-doc-list { display: flex; flex-direction: column; gap: 9px; }
.wpinst-int-doc-row {
  background: #fff; border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: 0 1px 7px rgba(0,0,0,.07); flex-wrap: wrap;
}
.wpinst-int-doc-icon { font-size: 1.7rem; flex-shrink: 0; }
.wpinst-int-doc-info { flex: 1; min-width: 100px; }
.wpinst-int-doc-info strong { display: block; font-size: .88rem; color: #222; word-break: break-word; }
.wpinst-int-doc-info span   { font-size: .76rem; color: #888; }
.wpinst-int-doc-actions { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; }

/* Upload */
.wpinst-int-upload-area {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f7f9fc; border: 2px dashed #dde3ea;
  border-radius: 10px; padding: 14px 16px;
}
.wpinst-int-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; background: var(--wpinst-primary); color: #fff;
  border-radius: 7px; font-size: .87rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s;
}
.wpinst-int-upload-btn:hover { opacity: .85; }
input[type="file"]#wpinst_doc_file { display: none; }
.wpinst-int-file-name { font-size: .83rem; color: #666; }

/* Alertas */
.wpinst-int-alert {
  padding: 11px 15px; border-radius: 9px;
  margin-bottom: 16px; font-size: .9rem; font-weight: 600;
}
.wpinst-int-alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #43a047; }
.wpinst-int-alert-error   { background: #fde8e8; color: #c62828; border-left: 4px solid #ef5350; }

/* ══════════════════════════════════════════════════════════════
   BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
  .wpinst-wa-text { display: inline; }
}

@media (min-width: 540px) {
  .wpinst-grid-2       { grid-template-columns: repeat(2, 1fr); }
  .wpinst-grid-4       { grid-template-columns: repeat(2, 1fr); }
  .wpinst-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .wpinst-int-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  /* Navbar site */
  .wpinst-hamburger { display: none; }
  .wpinst-nav-links {
    display: flex !important; position: static;
    flex-direction: row; background: none;
    box-shadow: none; padding: 0; gap: 2px;
  }
  .wpinst-nav-links li a { padding: 8px 14px; border-radius: 7px; }
  .wpinst-nav-social { display: flex; }

  /* Sobre */
  .wpinst-about-inner { flex-direction: row; align-items: flex-start; }
  .wpinst-about-image { flex: 0 0 42%; }
  .wpinst-about-badge { display: flex; }

  /* Mapa e contato */
  .wpinst-map-wrapper iframe { height: 400px; }
  .wpinst-contact-grid { grid-template-columns: repeat(2, 1fr); }

  /* Área interna: muda para layout sidebar lateral */
  .wpinst-internal-wrap    { flex-direction: row; }
  .wpinst-internal-sidebar {
    width: 230px; min-height: 100vh;
    display: flex; flex-direction: column;
  }
  .wpinst-internal-brand {
    padding: 20px 18px; flex-direction: column;
    align-items: center; text-align: center; gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .wpinst-internal-brand img { max-height: 44px; margin-bottom: 10px; }
  .wpinst-internal-brand strong { font-size: .98rem; }
  .wpinst-internal-area-label { margin-top: 4px; }
  .wpinst-internal-nav {
    flex-direction: column; overflow-x: visible;
    padding: 10px 0; gap: 0; flex: 1;
  }
  .wpinst-internal-nav a {
    padding: 12px 20px; border-bottom: none;
    border-left: 3px solid transparent; font-size: .9rem;
  }
  .wpinst-internal-nav a:hover,
  .wpinst-internal-nav a.active {
    border-bottom-color: transparent;
    border-left-color: var(--wpinst-primary);
  }
  .wpinst-internal-logout { justify-content: flex-start; padding: 14px 20px; }
  .wpinst-internal-main { padding: 30px 26px; }
  .wpinst-int-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .wpinst-grid-3         { grid-template-columns: repeat(3, 1fr); }
  .wpinst-grid-4         { grid-template-columns: repeat(4, 1fr); }
  .wpinst-map-wrapper iframe { height: 460px; }
  .wpinst-int-grid       { grid-template-columns: repeat(3, 1fr); }
}

/* Acessibilidade */
.wpinst *:focus-visible {
  outline: 3px solid var(--wpinst-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════
   CATÁLOGO COM MODAL — Recurso Premium
   ══════════════════════════════════════════════════════════════ */

/* ── Cards ── */
.wpinst-product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  transition: transform .22s, box-shadow .22s;
}

/* Preço no card */
.wpinst-product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wpinst-primary);
  margin: 2px 0 6px;
  line-height: 1.2;
}

/* Descrição no card */
.wpinst-product-desc {
  font-size: .85rem;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Card clicável */
.wpinst-product-clickable {
  cursor: pointer;
  position: relative;
}
.wpinst-product-clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
}
.wpinst-product-clickable:focus-visible {
  outline: 3px solid var(--wpinst-primary);
  outline-offset: 2px;
}

/* "Ver detalhes →" */
.wpinst-product-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wpinst-primary);
  letter-spacing: .02em;
  transition: letter-spacing .2s, gap .2s;
}
.wpinst-product-clickable:hover .wpinst-product-cta {
  letter-spacing: .07em;
}

/* Badge no modal */
.wpinst-modal-badge {
  display: inline-block;
  margin-bottom: 12px;
}

/* ── MODAL OVERLAY ────────────────────────────────────────────
   Cobre a tela inteira. Os modais ficam em #wpinst-modals-container
   FORA do grid para que position:fixed funcione sem interferência.
   ──────────────────────────────────────────────────────────── */
#wpinst-modals-container { position: relative; z-index: 0; }

.wpinst-modal-overlay {
  position: fixed !important;  /* garante overlay real em cima de tudo */
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(10,10,20,.72);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wpinst-fade-in .22s ease;
}
.wpinst-modal-overlay[hidden] {
  display: none !important;
}

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

/* ── MODAL BOX ── */
.wpinst-modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 100px rgba(0,0,0,.38);
  animation: wpinst-slide-up .28s cubic-bezier(.34,1.56,.64,1);
  /* scroll suave dentro do modal */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@keyframes wpinst-slide-up {
  from { transform: translateY(40px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Botão ✕ fechar */
.wpinst-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.14);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}
.wpinst-modal-close:hover {
  background: rgba(0,0,0,.32);
  transform: scale(1.1);
}

/* ── LAYOUT INTERNO (mobile: coluna | desktop: linha) ── */
.wpinst-modal-inner {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

/* Imagem — mobile: topo, desktop: lado esquerdo */
.wpinst-modal-img-wrap {
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #f0f4f8;
}
.wpinst-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Conteúdo textual */
.wpinst-modal-content {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Título */
.wpinst-modal-title {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 800;
  color: #0f1923;
  margin: 0 0 6px;
  padding-right: 10px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* Preço — destaque principal */
.wpinst-modal-price {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--wpinst-primary);
  margin: 0 0 16px;
  letter-spacing: -.02em;
  line-height: 1;
}

/* Divisor sutil */
.wpinst-modal-content::after {
  content: none;
}

/* Descrição */
.wpinst-modal-desc {
  font-size: .97rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}

/* Grupo de botões */
.wpinst-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* Botão WhatsApp — ocupa largura total no mobile */
.wpinst-modal-wa-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 15px 24px;
  border-radius: 10px !important;
}

/* Botão voltar — sutil */
.wpinst-modal-back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: .87rem;
  cursor: pointer;
  padding: 6px 0;
  text-align: center;
  transition: color .2s;
  font-family: inherit;
}
.wpinst-modal-back-btn:hover { color: var(--wpinst-primary); }

/* ── DESKTOP ≥ 600px: imagem à esquerda, conteúdo à direita ── */
@media (min-width: 600px) {
  .wpinst-modal-inner {
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
  }
  .wpinst-modal-img-wrap {
    width: 44%;
    height: auto;
    min-height: 420px;
    border-radius: 20px 0 0 20px;
  }
  .wpinst-modal-content {
    flex: 1;
    padding: 32px 30px 30px;
    justify-content: center;
  }
  .wpinst-modal-title  { font-size: clamp(1.4rem, 2.5vw, 2rem); }
  .wpinst-modal-price  { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
  .wpinst-modal-wa-btn { width: auto; }
  .wpinst-modal-close  {
    background: rgba(0,0,0,.18);
    top: 18px;
    right: 18px;
  }
}

/* ── MOBILE: limita altura da imagem para deixar conteúdo visível ── */
@media (max-width: 599px) {
  .wpinst-modal-box { border-radius: 16px; max-height: 95vh; }
  .wpinst-modal-img-wrap { height: 220px; }
}
