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

:root {
  --navy: #05467e;
  --navy-dark: #03304f;
  --blue: #1a6fe8;
  --blue-light: #e8f0fe;
  --orange: #f5a623;
  --white: #ffffff;
  --gray-light: #f4f7fc;
  --gray-medium: #dde3f0;
  --gray-dark: #666666;
  --gray-text: #6b7a99;
  --text-dark: #05467e;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

body { font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif; color: var(--text-dark); overflow-x: hidden; }

/* ─────────── HEADER ─────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: transparent !important;
  backdrop-filter: none;
  height: clamp(56px, 8vw, 64px);
  padding: 0 6%;
  box-shadow: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
}
header.scrolled {
  background: rgba(5, 70, 126, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.logo img {
  height: clamp(22px, 3vw, 28px);
  width: auto;
  display: block;
}
.logo-text {
  font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800;
  color: var(--white); letter-spacing: -0.5px;
}
.logo-icon {
  display: flex; align-items: center; gap: 2px;
}
.logo-wave {
  width: 28px; height: 18px;
}

nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
nav a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: clamp(0.72rem, 1vw, 0.82rem); font-weight: 500; transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover { color: #fff; }
nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] { color: var(--orange); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--navy) !important;
  padding: clamp(7px, 1vw, 9px) clamp(14px, 2vw, 20px); border-radius: 50px;
  font-size: clamp(0.7rem, 1vw, 0.8rem) !important; font-weight: 700 !important;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.btn-cta:hover { background: #f0f4fb; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,0,0,0.22); }
.btn-cta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--navy); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 998; flex-direction: column; gap: 0;
  padding: 16px 6% 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .btn-cta {
  margin-top: 20px; justify-content: center;
  padding: 13px 20px; font-size: 0.88rem !important;
}

/* ─────────── HERO ─────────── */
.hero {
  background: linear-gradient(135deg, #03304f 0%, #05467e 55%, #0a5fa8 100%);
  min-height: clamp(640px, 88vh, 800px); padding: clamp(70px, 10vw, 90px) 6% 0;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute;
  background-size: cover; background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.hero-bg-left {
  left: 0; top: 0; bottom: 0; width: 55%;
  background-image: url('../assets/hero-bg-1.png');
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 50%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 50%, transparent 100%);
}
.hero-bg-right {
  right: 0; top: 0; width: 58%;
  height: 60%;
  background-image: url('../assets/hero-bg-2.png');
  background-position: top right;
  background-size: cover;
  -webkit-mask-image:
    linear-gradient(to left, #000 0%, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to left, #000 0%, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-composite: intersect;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,48,79,0.82) 0%, rgba(3,48,79,0.0) 22%),
    linear-gradient(135deg, rgba(3,48,79,0.55) 0%, rgba(5,70,126,0.45) 55%, rgba(10,95,168,0.40) 100%),
    radial-gradient(ellipse 70% 55% at 75% 45%, rgba(26,111,232,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 65% at 100% 105%, rgba(5,70,126,0.85) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 78% 100%, rgba(5,70,126,0.55) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 20px);
  position: relative; z-index: 4;
}

.hero-content { padding-bottom: clamp(40px, 8vw, 80px); }
.hero-content h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  font-weight: 800; color: #fff;
  line-height: clamp(36px, 4vw, 48px); margin-bottom: clamp(12px, 2vw, 18px);
  text-wrap: pretty;
}
.hero-content p {
  color: #fff;
  font-size: clamp(0.8rem, 1.1vw, 0.88rem); line-height: 1.75;
  margin-bottom: clamp(20px, 3vw, 30px); max-width: 420px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: clamp(10px, 1.5vw, 13px) clamp(20px, 3vw, 28px); border-radius: 50px;
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.85rem); font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(26,111,232,0.45);
}
.btn-primary:hover { background: #155dcf; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,111,232,0.5); }
.btn-primary svg { width: 16px; height: 16px; }

.hero-image {
  display: flex; justify-content: center; align-items: flex-end;
}
.hero-person-wrap {
  width: 100%; max-width: 580px;
  height: clamp(420px, 58vw, 560px);
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}

.hero-person-img {
  width: clamp(380px, 50vw, 520px);
  position: relative;
  z-index: 2;
  object-fit: contain;
  object-position: bottom;
  transform: translateY(clamp(-90px, -8vw, -40px));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* ─────────── FEATURE CARDS ─────────── */
.features {
  background: linear-gradient(180deg, transparent 0px, transparent 180px, #ffffff 180px);
  padding: clamp(32px, 5vw, 48px) 6% clamp(48px, 7vw, 72px);
  margin-top: -180px;
  position: relative;
  z-index: 10;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.cards-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 24px);
  padding-top: 0;
}

.feat-card {
  background: #fff; border-radius: 7px; padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px) clamp(20px, 3vw, 28px);
  box-shadow: 0 8px 32px rgba(11,31,82,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.5vw, 14px);
  text-align: center;
  width: clamp(220px, 20vw, 280px);
  height: clamp(300px, 28vw, 390px);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(11,31,82,0.18); }

.feat-icon {
  width: clamp(52px, 7vw, 72px); height: clamp(52px, 7vw, 72px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.feat-icon svg { width: clamp(48px, 7vw, 68px); height: clamp(48px, 7vw, 68px); color: var(--blue); }
.feat-icon img {
  width: clamp(48px, 7vw, 68px); height: clamp(48px, 7vw, 68px); object-fit: contain;
  filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(1500%) hue-rotate(202deg) brightness(102%) contrast(98%);
}

.feat-card h3 {
  font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 700; color: var(--gray-dark); line-height: 1.35;
}
.feat-divider {
  display: block; width: 36px; height: 3px;
  background: var(--gray-medium); border-radius: 2px;
}
.feat-card p {
  font-size: clamp(0.8rem, 1vw, 1rem); color: var(--gray-text); line-height: 1.65; flex: 1;
}
.feat-link {
  font-size: clamp(0.75rem, 0.9vw, 0.875rem); font-weight: 700; color: var(--blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.feat-link:hover { text-decoration: underline; }

/* ─────────── PLATFORM ─────────── */
.platform {
  background: #ffffff; padding: 0 6% clamp(48px, 7vw, 72px); text-align: center;
}
.platform-label {
  font-size: clamp(0.72rem, 0.9vw, 0.8rem); color: var(--gray-text); margin-bottom: clamp(8px, 1.5vw, 12px);
  letter-spacing: 0.2px;
}
.platform h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800;
  color: var(--navy); margin-bottom: clamp(20px, 3vw, 32px); line-height: 1.25;
}

.tabs {
  display: inline-flex; background: #f0f2f8; border-radius: 50px;
  padding: 5px; gap: 0; justify-content: center; margin-bottom: clamp(32px, 5vw, 56px);
}
.tab-btn {
  padding: clamp(8px, 1.2vw, 12px) clamp(24px, 4vw, 48px); border-radius: 50px;
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem); font-weight: 700;
  border: none; background: transparent; color: var(--gray-text);
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.6px;
  white-space: nowrap;
}
.tab-btn.active { background: linear-gradient(135deg, #1a6fe8 0%, #0d4fc4 100%); color: #fff; box-shadow: 0 6px 20px rgba(26,111,232,0.4); }
.tab-btn:hover:not(.active) { color: var(--navy); }

.platform-carousel-wrap { position: relative; padding: 0 40px; }
.platform-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px);
  transition: opacity 0.25s;
}
.platform-grid.fading { opacity: 0; }

.plat-card {
  background: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 40px) clamp(14px, 2vw, 20px) clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  box-shadow: none;
  transition: border 0.2s; cursor: pointer;
  border: 2px solid transparent;
}
.plat-card:hover { box-shadow: none; transform: none; }
.plat-card.highlight { border: 2px solid var(--blue); }

.plat-icon {
  width: clamp(60px, 8vw, 90px); height: clamp(60px, 8vw, 90px);
  display: flex; align-items: center; justify-content: center; margin-bottom: clamp(12px, 2vw, 20px);
}
.plat-icon svg { width: clamp(52px, 7vw, 80px); height: clamp(52px, 7vw, 80px); color: var(--blue); }
.plat-icon img {
  width: clamp(52px, 7vw, 80px); height: clamp(52px, 7vw, 80px);
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(1500%) hue-rotate(202deg) brightness(102%) contrast(98%);
}

.plat-divider {
  width: 32px; height: 2px; background: #dde3f0;
  border-radius: 2px; margin: 0 auto clamp(10px, 1.5vw, 16px);
}
.plat-card h4 {
  font-size: clamp(0.75rem, 1vw, 0.85rem); font-weight: 700; color: var(--navy);
  text-align: center; line-height: 1.4;
}

.carousel-arrows {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.arr-btn {
  width: 36px; height: 36px; background: #fff; border: none;
  border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  pointer-events: all; transition: box-shadow 0.2s; color: var(--gray-text);
}
.arr-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); color: var(--navy); }
.arr-btn svg { width: 16px; height: 16px; }

.platform .arr-btn,
.inst-clients .arr-btn {
  background: #dadee6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5,30,70,0.10);
}
.platform .arr-btn:hover,
.inst-clients .arr-btn:hover {
  background: #c8cdd5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5,30,70,0.14);
}

/* ─────────── CUSTOMIZE ─────────── */
.customize {
  background: #05467e;
  padding: 0;
  position: relative;
  overflow: visible;
}
.customize-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch; gap: 0;
  position: relative;
}
.customize-content {
  background: transparent;
  color: #fff;
  padding: 0 0 0 max(6vw, calc((100vw - 1200px) / 2));
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 0;
}
.customize-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800;
  line-height: 1.2; margin-bottom: clamp(12px, 2vw, 18px);
}
.customize-content p {
  color: rgba(255,255,255,0.78); font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  line-height: 1.75; margin-bottom: clamp(20px, 3vw, 32px); max-width: 360px;
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff;
  padding: clamp(10px, 1.5vw, 13px) clamp(20px, 2.5vw, 26px);
  border-radius: 50px; font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.85rem); font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(26,111,232,0.4);
  width: fit-content;
}
.btn-whatsapp:hover { background: #155dcf; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.mockup-outer {
  position: relative;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.mockup-placeholder {
  position: relative;
  width: 92%;
  max-width: 569px;
  max-height: 355px;
  margin-right: 0;
  margin-top: clamp(-50px, -6vw, -72px);
  margin-bottom: 0;
  z-index: 10;
  border-radius: 12px 0 0 0;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  aspect-ratio: 16/10;
  background: #c8d4ee;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.mockup-placeholder svg { width: 64px; height: 64px; color: #8fa5cc; }
.mockup-placeholder p {
  font-size: clamp(0.8rem, 1.2vw, 1rem); color: #8fa5cc; font-weight: 600; text-align: center;
  padding: 0 20px;
}
.mockup-placeholder img {
  width: 100%; height: 100%;
  max-width: 569px;
  max-height: 355px;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.page-institutional .customize,
.page-contact .customize {
  border-bottom: 2px solid #1a82c9;
}

/* ─────────── TESTIMONIALS ─────────── */
.testimonials { padding: clamp(48px, 7vw, 72px) 6%; background: var(--gray-light); text-align: center; }
.test-label {
  font-size: clamp(0.72rem, 0.9vw, 0.82rem); color: var(--gray-text);
  margin-bottom: clamp(4px, 0.8vw, 8px); letter-spacing: 0.2px;
}
.testimonials h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800;
  color: var(--navy); margin-bottom: clamp(28px, 4vw, 44px);
}
.test-carousel-wrap { position: relative; }
.test-carousel-arrows {
  position: absolute;
  left: -18px; right: -18px;
  top: 50%; transform: translateY(-50%);
  display: none;
  justify-content: space-between;
  pointer-events: none;
}
.test-carousel-arrows .arr-btn { pointer-events: all; }
.test-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px);
  transition: opacity 0.25s;
}
.test-grid.fading { opacity: 0; }

/* Card — layout unificado (avatar topo · texto · estrelas · nome) */
.test-card {
  background: #fff; border-radius: 16px;
  padding: clamp(22px, 3vw, 32px) clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 28px);
  box-shadow: 0 4px 22px rgba(11,31,82,0.07);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(10px, 1.4vw, 14px);
}
.test-card .reviewer {
  order: -1;
  display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0;
}
.test-card .reviewer > div:not(.rev-avatar) { display: none; }
.test-card .stars { order: 1; color: var(--orange); font-size: clamp(0.85rem, 1.1vw, 1rem); letter-spacing: 3px; }
.test-card p {
  order: 0;
  font-size: clamp(0.74rem, 0.95vw, 0.84rem); color: var(--gray-text);
  line-height: 1.65;
}
.rev-avatar {
  width: clamp(52px, 6vw, 68px); height: clamp(52px, 6vw, 68px);
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--blue-light);
}
.rev-avatar svg { width: 100%; height: 100%; }
.rev-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rev-name { font-size: clamp(0.72rem, 0.95vw, 0.82rem); font-weight: 700; color: var(--navy); }
.rev-role { font-size: clamp(0.65rem, 0.8vw, 0.72rem); color: var(--gray-text); }
.rev-name-mobile {
  order: 2;
  font-size: clamp(0.78rem, 1vw, 0.88rem); font-weight: 700; color: var(--navy);
}

/* ─────────── TRIAL ─────────── */
/* Foto 100% opaca; apenas o ::before escurece (camada sobre a imagem). */
.trial {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 80px) 6% 0;
  background: url('../assets/trial-banner.png') center/cover no-repeat;
}
.trial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Só esta camada tem transparência; a imagem atrás está sempre opaca. */

}
.trial-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.trial-content { color: #fff; padding-bottom: clamp(48px, 8vw, 96px); max-width: 520px; }
.trial-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800;
  line-height: 1.2; margin-bottom: clamp(12px, 2vw, 18px);
}
.trial-content p {
  color: rgba(255,255,255,0.72); font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  line-height: 1.75; margin-bottom: clamp(20px, 3vw, 30px); max-width: 420px;
}
.trial-content .btn-primary { margin-top: clamp(10px, 2vw, 20px); }
/* ─────────── FOOTER ─────────── */
footer.site-footer {
  background: var(--navy);
  padding: clamp(32px, 4vw, 52px) 6% clamp(28px, 3vw, 40px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Desktop — linha 1: logo à esquerda | redes à direita */
.footer-row--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 24px);
  padding-bottom: clamp(22px, 2.8vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

/* Desktop — linha 2: links à esquerda | W3 à direita */
.footer-row--secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
}

.footer-logo { display: inline-flex; flex-shrink: 0; }
.footer-logo img {
  height: clamp(26px, 3.5vw, 32px);
  width: auto;
  display: block;
}

.footer-social-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.footer-social-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.footer-social-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}
.footer-links a {
  color: rgba(140, 205, 255, 0.95);
  text-decoration: none;
  font-size: clamp(0.7rem, 0.88vw, 0.78rem);
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-links a:hover { color: #fff; }

.soc-btn {
  width: clamp(30px, 4vw, 34px); height: clamp(30px, 4vw, 34px);
  border-radius: 9px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
  flex-shrink: 0;
}
.soc-btn:hover { background: #fff; transform: scale(1.04); color: #155dcf; }
.soc-btn svg { width: 14px; height: 14px; }

.footer-meta {
  display: none;
}

.footer-w3-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-w3-icon {
  font-weight: 800;
  font-size: 1rem;
  color: rgba(140, 200, 255, 0.95);
  letter-spacing: -0.5px;
}
.footer-w3-text {
  font-weight: 800;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  letter-spacing: 1.2px;
  color: rgba(140, 200, 255, 0.95);
}
/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .customize-inner {
    grid-template-columns: 1fr;
  }
  .customize-content {
    text-align: center;
    align-items: center;
    padding: clamp(40px, 8vw, 60px) 28px 36px;
  }
  .customize-content p { max-width: 320px; }
  .mockup-outer {
    justify-content: flex-end;
    overflow: hidden;
  }
  .mockup-placeholder {
    width: 90%;
    margin: 0;
    margin-right: 0;
    border-radius: 12px 0 0 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ─── Mobile hero carrossel ─── */
.mobile-hero-carousel { display: none; }
.mhc-cards-section { display: none; }

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; order: 1; }
  header { padding: 0 6%; background: transparent; backdrop-filter: none; box-shadow: none; }
  header.scrolled { background: rgba(5, 70, 126, 0.97); backdrop-filter: blur(10px); }
  header .header-inner { justify-content: space-between; padding: 0; }
  header .logo { order: 2; margin: 0 auto; transform: translateX(-12px); }

  /* Textos principalmente centralizados (mobile) */
  .mobile-menu {
    align-items: center;
    text-align: center;
  }
  .mobile-menu a {
    text-align: center;
    width: 100%;
    max-width: 280px;
  }
  .mobile-menu .btn-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero { display: none; }
  .features { display: none; }

  .mobile-hero-carousel {
    display: block;
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #03304f 0%, #05467e 60%, #0a5fa8 100%);
    padding-bottom: 0;
  }

  .mhc-hero {
    position: relative;
    padding: calc(clamp(56px, 8vw, 64px) + 32px) 0 0;
    overflow: hidden;
    isolation: isolate;
  }
  .mhc-hero > .mhc-tint {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(135deg, rgba(3,48,79,0.55) 0%, rgba(5,70,126,0.45) 55%, rgba(10,95,168,0.40) 100%),
      radial-gradient(ellipse 80% 60% at 100% 100%, rgba(5,70,126,0.65) 0%, transparent 60%);
    z-index: 1;
  }
  .mhc-hero::before,
  .mhc-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
    background-size: cover;
    background-repeat: no-repeat;
    mix-blend-mode: luminosity;
    z-index: 0;
  }
  .mhc-hero::before {
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../assets/hero-bg-1-mobile.png');
    background-position: center;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  }
  .mhc-hero::after {
    top: 0; right: 0; width: 70%; height: 50%;
    background-image: url('../assets/hero-bg-2-mobile.png');
    background-position: top right;
    opacity: 0.45;
    -webkit-mask-image:
      linear-gradient(to left, #000 0%, #000 50%, transparent 100%),
      linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to left, #000 0%, #000 50%, transparent 100%),
      linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
            mask-composite: intersect;
  }
  .mhc-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 0 24px;
  }
  .mhc-content h1 {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
  }
  .mhc-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 340px;
    margin: 0 auto;
  }
  .mhc-bg {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 20px;
    display: flex; align-items: flex-end; justify-content: center;
  }
  .mhc-bg-illus {
    width: 78%;
    max-width: 360px;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }

  .mhc-cards-section {
    display: block;
    background: linear-gradient(180deg,
      transparent 0px,
      transparent 160px,
      #ffffff 160px);
    padding: 0 28px clamp(24px, 4vw, 40px);
    margin-top: -160px;
    position: relative;
    z-index: 10;
  }
  .mhc-card-wrap {
    position: relative;
    margin: 0 40PX;
    z-index: 10;
  }
  .mhc-card {
    background: #fff;
    border-radius: 4px;
    padding: 32px 24px 28px;
    box-shadow: 0 14px 38px rgba(5,30,70,0.22);
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .mhc-card.active {
    display: flex;
    animation: mhcCardIn 0.4s ease both;
  }
  @keyframes mhcCardIn {
    0%   { opacity: 0; transform: translateX(16px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  .mhc-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
  }
  .mhc-icon img {
    width: 64px; height: 64px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(1500%) hue-rotate(202deg) brightness(102%) contrast(98%);
  }
  .mhc-divider {
    width: 36px; height: 2px;
    background: var(--gray-medium);
    border-radius: 2px;
    margin: 2px 0;
  }
  .mhc-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-dark);
    line-height: 1.3;
    max-width: 220px;
  }
  .mhc-card p {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.6;
    max-width: 240px;
  }
  .mhc-card a {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 6px;
  }

  .mhc-arrows {
    position: absolute;
    top: 50%; left: -14px; right: -14px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
  }
  .mhc-arr {
    width: 36px; height: 36px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 4px 14px rgba(26,111,232,0.4);
    transition: background 0.2s, transform 0.15s;
  }
  .mhc-arr:hover { background: #155dcf; }
  .mhc-arr:active { transform: scale(0.94); }
  .mhc-arr svg { width: 16px; height: 16px; }

  .platform-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }

  /* ─── Trial mobile ─── */
  .trial {
    padding: 40px 24px 0;
    text-align: center;
  }
  .trial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .trial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: none;
    width: 100%;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    padding-bottom: clamp(44px, 10vw, 72px);
  }
  .trial-content p {
    max-width: min(340px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(16px, 4vw, 28px);
  }
  .trial-content .btn-primary {
    align-self: center;
  }

  /* ─── Footer mobile ─── */
  footer.site-footer {
    background: var(--navy);
    padding: 44px 20px 40px;
  }
  .footer-row--primary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    border-bottom: none;
    margin-bottom: 28px;
    padding-bottom: 0;
  }
  .footer-row--secondary {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .footer-social-block {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .footer-social-heading {
    font-size: 0.78rem;
    letter-spacing: 0.85px;
  }
  .footer-social-buttons {
    justify-content: center;
    gap: 12px;
  }
  .footer-links {
    display: grid;
    flex: none;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    justify-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    min-width: 0;
  }
  .footer-links a {
    font-size: 0.74rem;
    color: rgba(110, 200, 255, 0.92);
    text-align: center;
    white-space: normal;
    max-width: 140px;
    line-height: 1.35;
  }
  .soc-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .soc-btn svg { width: 13px; height: 13px; }
  .footer-meta {
    display: none;
  }
  .footer-w3-brand {
    margin-left: 0;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  .footer-w3-icon { font-size: 1.1rem; color: rgba(125, 210, 255, 1); }
  .footer-w3-text { letter-spacing: 1.8px; color: rgba(125, 210, 255, 1); }

  /* ─── Platform mobile ─── */
  .platform {
    background: #ffffff;
    padding: 36px 24px 44px;
  }
  .platform .section-inner {
    text-align: center;
  }
  .platform-label {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--gray-text);
    max-width: 300px;
    margin: 0 auto 10px;
  }
  .platform h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--navy);
    max-width: 280px;
    margin: 0 auto 24px;
  }
  .tabs {
    background: #eef0f5;
    padding: 5px;
    margin-bottom: 32px;
  }
  .tab-btn {
    padding: 11px 26px;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
  }
  .tab-btn.active {
    background: linear-gradient(135deg, #1a6fe8 0%, #0d4fc4 100%);
    box-shadow: 0 6px 18px rgba(26,111,232,0.35);
  }

  /* Platform cards carousel (mobile) */
  .platform-carousel-wrap {
    padding: 0;
    position: relative;
    margin: 0 12px;
  }
  .platform .platform-grid {
    display: block;
    position: relative;
    min-height: 290px;
    padding: 8px 0;
  }
  .platform .plat-card,
  .platform .plat-card.highlight {
    display: none;
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    box-shadow: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border: none;
    cursor: default;
  }
  .platform .plat-card:hover,
  .platform .plat-card.highlight:hover {
    background: transparent;
    box-shadow: none;
    border: none;
    transform: none;
  }
  .platform .plat-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mhcCardIn 0.4s ease both;
  }
  .platform .plat-icon {
    width: 96px; height: 96px;
    margin-bottom: 18px;
  }
  .platform .plat-icon svg { width: 84px; height: 84px; }
  .platform .plat-icon img { width: 84px; height: 84px; }
  .platform .plat-divider {
    width: 38px; height: 1px;
    background: #d8dde6;
    margin: 4px auto 14px;
  }
  .platform .plat-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
  }

  .platform .carousel-arrows {
    left: 4px; right: 4px;
  }
  .platform .arr-btn,
  body.page-institutional .inst-clients .arr-btn,
  body.page-contact .inst-clients .arr-btn {
    width: 32px; height: 32px;
    background: #dadee6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5,30,70,0.10);
  }
  .platform .arr-btn:hover,
  body.page-institutional .inst-clients .arr-btn:hover,
  body.page-contact .inst-clients .arr-btn:hover {
    background: #c8cdd5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5,30,70,0.14);
  }
  .platform .arr-btn svg,
  body.page-institutional .inst-clients .arr-btn svg,
  body.page-contact .inst-clients .arr-btn svg { width: 14px; height: 14px; stroke-width: 2.8; }

  /* Institucional + Contato — clientes mobile: setas lado a lado ao centro (mesmo bloco HTML nas duas páginas) */
  body.page-institutional .inst-clients .platform-carousel-wrap,
  body.page-contact .inst-clients .platform-carousel-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(10px, 3vw, 16px);
    padding: 0;
    margin: 0 12px;
    position: relative;
    min-height: 0;
  }

  body.page-institutional .inst-clients .inst-clients-carousel,
  body.page-contact .inst-clients .inst-clients-carousel {
    min-height: 0;
    height: auto;
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 0 0 auto;
  }

  body.page-institutional .inst-clients .carousel-arrows,
  body.page-contact .inst-clients .carousel-arrows {
    position: static;
    transform: none;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    align-self: center;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.6vw, 10px);
    pointer-events: none;
    z-index: 3;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
  body.page-institutional .inst-clients .carousel-arrows .arr-btn,
  body.page-contact .inst-clients .carousel-arrows .arr-btn {
    pointer-events: all;
    flex-shrink: 0;
  }

  body.page-institutional .inst-clients h2,
  body.page-contact .inst-clients h2 {
    margin-bottom: clamp(14px, 3.2vw, 22px);
  }

  body.page-institutional .inst-clients .inst-clients-slide,
  body.page-contact .inst-clients .inst-clients-slide {
    gap: clamp(10px, 2.4vw, 16px);
  }

  body.page-institutional .inst-clients .inst-client-card,
  body.page-contact .inst-clients .inst-client-card {
    min-height: 0;
    padding: clamp(8px, 1.8vw, 14px) clamp(8px, 2.5vw, 12px);
  }

  /* ─── Testimonials mobile ─── */
  .testimonials {
    padding: 48px 24px 56px;
  }
  .test-label { font-size: 0.82rem; }
  .testimonials h2 { font-size: 1.65rem; margin-bottom: 32px; }
  .test-grid {
    display: block;
    position: relative;
    min-height: 330px;
    padding: 8px 0;
  }
  .test-card {
    display: none;
    max-width: 280px;
    margin: 0 auto;
    padding: 32px 24px 28px;
    box-shadow: 0 8px 36px rgba(5,30,70,0.14);
  }
  .test-card.active {
    display: flex;
    animation: mhcCardIn 0.4s ease both;
  }
  .test-card .rev-avatar { width: 72px; height: 72px; }
  .test-card p { font-size: 0.88rem; }
  .test-card .stars { font-size: 1.1rem; }
  .test-carousel-arrows {
    display: flex;
    left: -14px;
    right: -14px;
  }
  .test-carousel-arrows .arr-btn {
    width: 32px; height: 32px;
    background: #dadee6; color: #ffffff;
    box-shadow: 0 2px 8px rgba(5,30,70,0.10);
  }
  .test-carousel-arrows .arr-btn:hover {
    background: #c8cdd5;
    box-shadow: 0 4px 12px rgba(5,30,70,0.14);
  }
  .test-carousel-arrows .arr-btn svg { width: 14px; height: 14px; stroke-width: 2.8; }
}


@media (max-width: 480px) {
  .trial-content { padding-bottom: 40px; }
}

/* ─────────── INSTITUCIONAL / CONTATO (hero base) ─────────── */
.page-institutional .inst-hero,
.page-contact .inst-hero {
  padding: calc(clamp(56px, 8vw, 64px) + 10px) 6% clamp(22px, 5.5vw, 44px);
  min-height: clamp(232px, 28vh, 340px);
  box-sizing: border-box;
  background: linear-gradient(180deg, #03304f 0%, #05467e 45%, #0a5fa8 100%);
  color: #fff;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.page-institutional .inst-hero::before,
.page-contact .inst-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}

.page-institutional .inst-hero::after,
.page-contact .inst-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3, 48, 79, 0.78) 0%, rgba(3, 48, 79, 0.32) 40%, rgba(5, 70, 126, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 48, 79, 0.35) 0%, rgba(10, 95, 168, 0.25) 100%);
  pointer-events: none;
  z-index: 1;
}

.inst-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-institutional .inst-hero-inner,
.page-contact .inst-hero-inner {
  padding-top: clamp(14px, 2.8vw, 28px);
}

.inst-hero-title {
  text-wrap: balance;
}

.inst-hero h1,
.inst-hero-title {
  font-size: clamp(1.65rem, 5.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0;
  max-width: 900px;
  margin-inline: auto;
  color: #fff;
}

@media (min-width: 769px) {
  .inst-hero-br {
    display: none;
  }

  .inst-hero-inner {
    text-align: left;
  }

  .inst-hero h1,
  .inst-hero-title {
    margin-inline: 0;
    max-width: min(26rem, 46vw);
  }
}
.inst-highlight {
  color: var(--orange);
}

.contact-hero-lead {
  margin: clamp(14px, 3vw, 24px) auto 0;
  max-width: 34rem;
  font-size: clamp(0.82rem, 1.05vw, 0.94rem);
  font-weight: 500;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

@media (min-width: 769px) {
  .page-contact .inst-hero h1,
  .page-contact .inst-hero-title {
    max-width: min(34rem, 52vw);
  }

  .contact-hero-lead {
    margin-inline: 0;
    text-align: left;
    max-width: min(34rem, 52vw);
  }
}

.contact-main {
  background: #fff;
  padding: clamp(36px, 6.5vw, 64px) 6% clamp(48px, 8vw, 80px);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 18px);
  margin-bottom: clamp(32px, 5.5vw, 48px);
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 22px);
  padding: clamp(18px, 3.5vw, 24px) clamp(18px, 4vw, 26px);
  border: 1px solid rgba(26, 111, 232, 0.38);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(5, 30, 80, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel-text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.contact-channel-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gray-medium);
  border-radius: 1px;
  margin: clamp(6px, 1.1vw, 9px) 0 clamp(10px, 1.5vw, 14px);
}

.contact-channel-card h3 {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 800;
  color: var(--gray-dark);
  margin: 0;
}

.contact-channel-card:hover {
  border-color: rgba(26, 111, 232, 0.55);
  box-shadow: 0 4px 18px rgba(5, 30, 80, 0.08);
}

.contact-channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-channel-iconimg {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.contact-channel-iconimg[data-icon="whatsapp"] {
  -webkit-mask-image: url('../assets/icons/icon-zap.png');
          mask-image: url('../assets/icons/icon-zap.png');
}
.contact-channel-iconimg[data-icon="telefone"] {
  -webkit-mask-image: url('../assets/icons/icon-telefone.png');
          mask-image: url('../assets/icons/icon-telefone.png');
}
.contact-channel-iconimg[data-icon="email"] {
  -webkit-mask-image: url('../assets/icons/icon-email.png');
          mask-image: url('../assets/icons/icon-email.png');
}

.contact-channel-card p {
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  color: var(--gray-text);
  line-height: 1.55;
}

.contact-channel-card strong {
  color: var(--gray-dark);
  font-weight: 700;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vw, 16px);
}

.contact-form-row {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vw, 16px);
}

.contact-field {
  width: 100%;
  padding: clamp(13px, 2.2vw, 15px) clamp(14px, 3vw, 18px);
  border: 1px solid var(--gray-medium);
  border-radius: 10px;
  font-family: inherit;
  font-size: clamp(0.84rem, 1vw, 0.92rem);
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.contact-field::placeholder {
  color: rgba(107, 122, 153, 0.75);
}

.contact-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.12);
}

textarea.contact-field {
  min-height: clamp(140px, 28vw, 180px);
  resize: vertical;
}

.contact-submit.btn-primary {
  width: 100%;
  margin-top: clamp(8px, 1.8vw, 14px);
  justify-content: center;
}

@media (min-width: 769px) {
  .contact-inner {
    max-width: min(1040px, 92vw);
  }

  .contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-bottom: clamp(40px, 5vw, 56px);
    align-items: stretch;
  }

  .contact-channel-card {
    flex-direction: row;
    align-items: flex-start;
    min-height: 100%;
  }

  .contact-form {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 18px);
    width: 100%;
  }

  .contact-field--full {
    grid-column: 1 / -1;
  }

  .contact-form-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 18px);
  }

  .contact-submit.btn-primary {
    width: auto;
    margin-top: clamp(12px, 2vw, 18px);
    align-self: flex-start;
  }
}

.inst-photo-bridge {
  position: relative;
  z-index: 4;
  margin: clamp(-118px, -33vw, -70px) auto 0;
  padding: 0 6%;
  max-width: calc(1200px + 12%);
  margin-block-end: 0;
}

.inst-photo-bridge picture {
  display: flex;
  justify-content: center;
}

.inst-photo-bridge img {
  width: min(720px, 100%);
  margin: 0 auto;
  height: clamp(220px, 42vw, 300px);
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-institutional .inst-hero::before,
  .page-contact .inst-hero::before {
    background-image: url('../assets/hero-bg-1-mobile.png');
    opacity: 0.26;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  }

  .page-institutional .inst-hero,
  .page-contact .inst-hero {
    min-height: clamp(248px, 31vh, 340px);
    padding: calc(clamp(56px, 8vw, 64px) + 8px) 6% clamp(24px, 7.5vw, 44px);
  }

  .page-institutional .inst-hero-inner,
  .page-contact .inst-hero-inner {
    padding-top: clamp(18px, 3.8vw, 28px);
  }

  .inst-hero-title,
  .inst-hero h1 {
    font-size: clamp(1.42rem, 4.9vw, 1.72rem);
    line-height: 1.24;
  }

  .inst-intro-flow {
    display: flex;
    flex-direction: column;
  }

  .inst-photo-bridge {
    float: none;
    order: -1;
    align-self: center;
    width: 100%;
    padding: 0 6%;
    margin-top: clamp(-110px, -28vw, -60px);
    margin-inline: auto;
  }

  .inst-photo-bridge img {
    width: min(720px, 100%);
    max-width: 100%;
    height: clamp(220px, 52vw, 300px);
    border-radius: 10px;
  }

  body.page-institutional .inst-intro {
    padding-top: clamp(24px, 7vw, 56px);
  }
}

@media (min-width: 769px) {
  body.page-institutional .inst-intro {
    position: relative;
    z-index: 2;
    padding-top: clamp(24px, 3vw, 40px);
  }

  body.page-institutional .inst-intro .section-inner.inst-intro-flow {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0;
    width: 100%;
    overflow: visible;
  }

  .inst-intro-flow::after {
    content: '';
    display: table;
    clear: both;
  }

  .inst-photo-bridge {
    float: right;
    width: min(540px, 50%);
    max-width: 560px;
    margin: clamp(-230px, -23vw, -145px) 0 clamp(14px, 2vw, 28px)
      clamp(24px, 3vw, 44px);
    padding: 0;
    shape-outside: margin-box;
  }

  .inst-photo-bridge picture {
    justify-content: flex-end;
  }

  .inst-photo-bridge img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 430px;
    object-fit: cover;
    margin: 0;
    border-radius: 12px;
  }

}

.inst-intro {
  background: #fff;
  padding: clamp(40px, 7vw, 72px) 6%;
  padding-top: clamp(32px, 6vw, 52px);
}
.inst-intro .section-inner {
  max-width: 720px;
  margin: 0 auto;
}
body.page-institutional .inst-intro .inst-intro-copy {
  text-align: justify;
}

.inst-intro-copy p {
  font-size: clamp(0.88rem, 1.05vw, 0.94rem);
  color: var(--gray-text);
  line-height: 1.82;
  margin-bottom: clamp(16px, 2.5vw, 22px);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.inst-intro-copy p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  body.page-empresas .inst-intro .inst-intro-copy,
  body.page-empresas .inst-intro .inst-intro-copy p {
    margin-top: clamp(20px, 6vw, 32px);
    text-align: center;
  }
  body.page-empresas .inst-intro .inst-intro-copy p {
    margin-top: 0;
  }
}

.inst-mvv {
  background: #fff;
  padding: 0 6% clamp(44px, 7vw, 72px);
}
.inst-mvv .section-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 22px);
}
.inst-mvv-item {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(26px, 4.5vw, 38px) clamp(22px, 4vw, 32px);
  background: var(--white);
  border: 1px solid rgba(26, 111, 232, 0.38);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(5, 30, 80, 0.04);
}
.inst-mvv-icon {
  width: clamp(52px, 10vw, 60px);
  height: clamp(52px, 10vw, 60px);
  margin: 0 0 clamp(16px, 2.8vw, 20px);
  color: var(--blue);
}
.inst-mvv-icon svg,
.inst-mvv-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.inst-mvv-icon img {
  filter: brightness(0) saturate(100%) invert(33%) sepia(92%) saturate(2600%) hue-rotate(211deg) brightness(0.96) contrast(1.03);
}
.inst-mvv-item h3 {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 700;
  color: var(--gray-dark);
  margin: 0 0 clamp(12px, 2vw, 14px);
}
.inst-mvv-rule {
  width: 44px;
  height: 2px;
  background: var(--gray-medium);
  border-radius: 2px;
  margin: 0 auto clamp(14px, 2.2vw, 18px);
  display: block;
}
.inst-mvv-item p {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  color: var(--gray-text);
  line-height: 1.74;
  max-width: 36ch;
  margin: 0;
}

@media (min-width: 860px) {
  .inst-mvv .section-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 24px);
  }
  .inst-mvv-item {
    flex: 1 1 0;
    min-width: 0;

  }
}

/* ─── Cards tipo features (institucional — empresas e agências) ─── */
.page-institutional .inst-feat-block {
  background: #fff;
  text-align: center;
}

.page-institutional .inst-feat-heading {
  font-size: clamp(1.06rem, 2.8vw, 1.26rem);
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.38;
  text-align: center;
  margin: 0 auto clamp(28px, 5vw, 40px);
  max-width: 22rem;
}

.page-institutional .inst-feat-grid {
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 10vw, 56px);
}

.page-institutional .inst-feat-card {
  background: transparent;
  border-radius: 12px;
  border: 2px solid transparent;
  box-sizing: border-box;
  box-shadow: none;
  height: auto;
  width: 100%;
  max-width: 420px;
  padding: clamp(24px, 4vw, 32px) clamp(10px, 3vw, 16px)
    clamp(20px, 3.5vw, 28px);
  transition: border-color 0.2s ease;
}

.page-institutional .inst-feat-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--blue);
}

.page-institutional .inst-feat-divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.page-institutional .inst-feat-card p {
  max-width: 38ch;
  margin-inline: auto;
}

.page-empresas .empresa-extra-banners {
  margin: clamp(34px, 6vw, 52px) auto 0;
  width: 100%;
  max-width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4.8vw, 34px);
}

.page-empresas .empresa-extra-banner {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2.6vw, 24px);
  padding: clamp(36px, 7.5vw, 50px) clamp(24px, 6vw, 40px);
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(2, 29, 60, 0.72), rgba(2, 24, 50, 0.82)),
    url('../assets/hero-bg-1.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 44px rgba(5, 25, 60, 0.24);
}

.page-empresas .empresa-extra-banner h3 {
  margin: 0 0 clamp(12px, 2.5vw, 18px);
  font-size: clamp(1.18rem, 3.3vw, 1.7rem);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

.page-empresas .empresa-extra-banner p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: clamp(0.92rem, 2.1vw, 1.06rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.page-empresas .empresa-extra-banner--porto {
  background-image:
    linear-gradient(180deg, rgba(2, 29, 60, 0.72), rgba(2, 24, 50, 0.82)),
    url('../assets/banner-2-empresa.png');
  background-position: center 25%;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}

.page-empresas .empresa-extra-banner--sefaz {
  background-image:
    linear-gradient(180deg, rgba(22, 24, 30, 0.7), rgba(10, 12, 18, 0.84)),
    url('../assets/banner-3-empresa.png');
  background-position: center 58%;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}

.page-empresas .empresa-loja-banner ~ .inst-feat-grid {
  margin-top: clamp(28px, 5vw, 56px);
}

/* Banner loja virtual (substitui quarto card) */
.page-empresas .empresa-loja-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: min(440px, 100%);
  margin: clamp(40px, 8vw, 56px) auto clamp(28px, 7vw, 52px);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  background-color: #051c38;
  background-image: url('../assets/hero-bg-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 14px 40px rgba(5, 30, 80, 0.24);
}

/* Fade alinhado ao azul do header (scrolled), sem clarão excessivo */
.page-empresas .empresa-loja-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(5, 70, 126, 0.76) 0%,
    rgba(5, 70, 126, 0.58) 45%,
    rgba(10, 95, 168, 0.52) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.page-empresas .empresa-loja-banner__deco {
  display: none;
}

.page-empresas .empresa-loja-banner__icon {
  position: absolute;
  width: clamp(52px, 13vw, 84px);
  height: auto;
}

.page-empresas .empresa-loja-banner__icon--1 {
  top: 5%;
  left: 6%;
}
.page-empresas .empresa-loja-banner__icon--2 {
  top: 7%;
  right: 7%;
}
.page-empresas .empresa-loja-banner__icon--3 {
  bottom: 36%;
  right: 9%;
  opacity: 0.85;
}
.page-empresas .empresa-loja-banner__icon--4 {
  bottom: 26%;
  left: 8%;
  opacity: 0.85;
}

.page-empresas .empresa-loja-banner__inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 32px) clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.8vw, 20px);
}

.page-empresas .empresa-loja-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vw, 16px);
  width: 100%;
}

.page-empresas .empresa-loja-banner__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.12rem, 3.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.34;
  color: #fff;
  max-width: 24ch;
}

.page-empresas .empresa-loja-banner__lead {
  margin: 0;
  font-size: clamp(0.84rem, 2.2vw, 0.95rem);
  line-height: 1.74;
  color: rgba(255, 255, 255, 0.95);
  max-width: 38ch;
}

.page-empresas .empresa-loja-banner__figure {
  margin: clamp(10px, 2.8vw, 18px) 0 0;
  padding: 0 clamp(4px, 2vw, 10px);
  width: 100%;
}

.page-empresas .empresa-loja-banner__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* Banner WhatsApp (página agências) */
.page-agencias .agencias-whats-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: min(440px, 100%);
  margin: clamp(40px, 8vw, 56px) auto clamp(28px, 7vw, 52px);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  background-color: #05467e;
  box-shadow: 0 14px 40px rgba(5, 30, 80, 0.24);
}

.page-agencias .agencias-whats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('../assets/banner-2-agencia.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.page-agencias .agencias-whats-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(5, 70, 126, 0.45);
  pointer-events: none;
  z-index: 0;
}

.page-agencias .agencias-whats-banner__inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 32px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.8vw, 20px);
}

.page-agencias .agencias-whats-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vw, 16px);
  width: 100%;
}

.page-agencias .agencias-whats-banner__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.12rem, 3.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.34;
  color: #fff;
  max-width: 24ch;
}

.page-agencias .agencias-whats-banner__lead {
  margin: 0;
  font-size: clamp(0.84rem, 2.2vw, 0.95rem);
  line-height: 1.74;
  color: rgba(255, 255, 255, 0.95);
  max-width: 38ch;
}

.page-agencias .agencias-whats-banner__figure {
  margin: clamp(8px, 2.4vw, 14px) 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-agencias .agencias-whats-banner__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.page-agencias .agencias-whats-banner ~ .inst-feat-grid {
  margin-top: clamp(28px, 5vw, 56px);
}

@media (min-width: 900px) {
  .page-institutional .inst-feat-grid {
    max-width: 1040px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 44px);
    align-items: start;
  }

  .page-institutional .inst-feat-card {
    max-width: none;
    border-radius: 14px;
  }

  /* Empresas (desktop): 3 colunas no topo + 3×2 em baixo; banner horizontal dois blocos */
  .page-empresas .inst-feat-block .inst-feat-grid,
  .page-agencias .inst-feat-block .inst-feat-grid {
    max-width: min(1140px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
  }

  .page-empresas .empresa-extra-banners {
    max-width: none;
    gap: clamp(24px, 3vw, 36px);
    flex-direction: row;
    align-items: stretch;
  }

  .page-empresas .empresa-extra-banner {
    text-align: left;
    padding: clamp(30px, 3.4vw, 44px) clamp(34px, 4.2vw, 54px);
    max-width: none;
    width: 100%;
    margin-inline: 0;
    flex: 1 1 0;
    min-width: 0;
  }

  .page-empresas .empresa-extra-banner h3,
  .page-empresas .empresa-extra-banner p {
    margin-inline: 0;
    max-width: 70%;
  }

  .page-empresas .empresa-loja-banner {
    max-width: none;
    width: 100%;
    border-radius: clamp(22px, 2.2vw, 28px);
    margin: clamp(48px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  }

  .page-empresas .empresa-loja-banner__inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: clamp(36px, 5vw, 72px);
    padding: clamp(40px, 5.5vw, 64px) clamp(52px, 7.2vw, 96px) clamp(
        52px,
        6.5vw,
        80px
      )
      clamp(52px, 9vw, 104px);
  }

  .page-empresas .empresa-loja-banner__copy {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
    align-self: center;
    text-align: left;
    max-width: min(39rem, 100%);
  }

  .page-empresas .empresa-loja-banner__title,
  .page-empresas .empresa-loja-banner__lead {
    text-align: left;
    margin-inline: 0;
  }

  .page-empresas .empresa-loja-banner__title {
    max-width: min(38rem, 100%);
    font-size: clamp(1.42rem, 2.05vw, 1.92rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: 0;
  }

  .page-empresas .empresa-loja-banner__lead {
    max-width: min(39rem, 100%);
    font-size: clamp(0.94rem, 1.08vw, 1.06rem);
    line-height: 1.76;
    color: rgba(255, 255, 255, 0.96);
  }

  .page-empresas .empresa-loja-banner__figure {
    grid-column: 2;
    margin: 0;
    padding: 0 clamp(4px, 1vw, 12px);
    width: 100%;
    max-width: min(620px, 100%);
    justify-self: end;
    align-self: center;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .page-empresas .empresa-loja-banner__figure img {
    width: 100%;
    border-radius: 14px;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.06),
      0 14px 32px rgba(0, 0, 0, 0.2),
      0 44px 80px rgba(5, 20, 60, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
  }

  .page-agencias .agencias-whats-banner {
    max-width: none;
    width: 100%;
    border-radius: clamp(22px, 2.2vw, 28px);
    margin: clamp(48px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  }

  .page-agencias .agencias-whats-banner::before {
    background-image: url('../assets/banner-2-agencia-desktop.png');
  }

  .page-agencias .agencias-whats-banner__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
    align-items: end;
    column-gap: clamp(36px, 5vw, 72px);
    padding: clamp(40px, 5.5vw, 64px) clamp(52px, 7.2vw, 96px) 0 clamp(52px, 9vw, 104px);
  }

  .page-agencias .agencias-whats-banner__copy {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
    align-self: center;
    text-align: left;
    max-width: min(39rem, 100%);
    padding-bottom: clamp(40px, 5vw, 64px);
  }

  .page-agencias .agencias-whats-banner__title,
  .page-agencias .agencias-whats-banner__lead {
    text-align: left;
    margin-inline: 0;
  }

  .page-agencias .agencias-whats-banner__title {
    max-width: min(38rem, 100%);
    font-size: clamp(1.42rem, 2.05vw, 1.92rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .page-agencias .agencias-whats-banner__lead {
    max-width: min(39rem, 100%);
    font-size: clamp(0.94rem, 1.08vw, 1.06rem);
    line-height: 1.76;
    color: rgba(255, 255, 255, 0.96);
  }

  .page-agencias .agencias-whats-banner__figure {
    grid-column: 2;
    margin: 0;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: end;
  }

  .page-agencias .agencias-whats-banner__figure img {
    width: auto;
    max-height: 420px;
    max-width: 100%;
  }
}

.inst-clients {
  background-color: #fafafa;
  padding: clamp(32px, 6vw, 64px) 6% 0;
  text-align: center;
  overflow-x: hidden;
}
.inst-clients .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: clamp(44px, 6.5vw, 72px);
}
.inst-clients-kicker {
  font-size: clamp(0.78rem, 1vw, 0.89rem);
  color: var(--gray-text);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.inst-clients h2 {
  font-size: clamp(1.38rem, 2.55vw, 1.92rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: clamp(28px, 4.8vw, 44px);
}

.inst-clients-carousel-slot {
  width: 100%;
  max-width: 100%;
}

.inst-clients-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(100px, 16vw, 120px);
}

.inst-clients-slide {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.inst-clients-slide.active { display: grid; }

/* Mesmo critério visual dos cards do carrossel da platform (.plat-card) */
.inst-client-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid transparent;
  min-height: clamp(92px, 14vw, 112px);
  padding: clamp(18px, 2.8vw, 26px) clamp(12px, 1.6vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.inst-client-card img {
  width: auto;
  max-width: min(160px, 92%);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.inst-client-name {
  font-size: clamp(0.72rem, 0.92vw, 0.82rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  text-align: center;
}

.inst-client-placeholder {
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
  color: rgba(107, 122, 153, 0.45);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (min-width: 769px) {
  .inst-clients-carousel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
  }

  .inst-clients-slide {
    display: none;
    gap: 0;
  }

  .inst-clients-slide.active {
    display: none !important;
  }

  .inst-clients-slide.inst-slide-pair-visible {
    display: contents;
  }

  .inst-slide-pair-visible .inst-client-card {
    display: flex !important;
  }
}

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