/*
 * Institutional pages (Clientes, Sobre nós): the content of the legacy templates in the system of the
 * segment pages. Opening in the Bancos & Fintechs rhythm (640 px from 1200 px, copy 14 px apart and
 * centred on the visual, 1.1fr / 0.9fr columns, same short-screen bands), the logo strip and the
 * numbers band of Médias Empresas, section heads, cards and the closing help band.
 * Loaded by the pages that list 'institucional' in their config.php. Class prefix: in-.
 */

/* ---------- Page ---------- */
.in-page { font-family: var(--wm-font-body); color: var(--wm-ink-800); background: var(--wm-white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.in-page section[id] { scroll-margin-top: var(--wmfl-nav-h, 73px); }
.in-sec__in { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: clamp(66px, calc(6.25vw + 10px), 90px) clamp(20px, 4vw, 40px); }
.in-sec--tint { background: var(--wm-ink-50); border-top: 1px solid var(--wm-border); border-bottom: 1px solid var(--wm-border); }

.in-eb { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wm-green-700); white-space: nowrap; }
.in-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.in-head--split { max-width: none; }
.in-h2 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; color: #11171A; text-wrap: balance; }
.in-h2 em, .in-hero__h1 em { font-style: italic; font-weight: 500; color: var(--wm-green-700); }
.in-lead { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.in-lead strong { font-weight: 600; color: #11171A; }
@media (min-width: 1080px) {
  .in-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px 48px; align-items: end; }
  .in-head--split > .in-eb { grid-column: 1; }
  .in-head--split > .in-h2 { grid-column: 1; }
  .in-head--split > .in-lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

.in-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.in-btn { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--wm-green-700); color: #fff; font-size: 14.5px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 120ms ease; }
.in-btn:hover { background: var(--wm-green-800); color: #fff; text-decoration: none; }
.in-btn--ghost { border: 1px solid var(--wm-green-300); background: #fff; color: var(--wm-green-800); }
.in-btn--ghost:hover { background: var(--wm-green-50); color: var(--wm-green-800); }
.in-btn svg { flex-shrink: 0; }
.in-btn:focus-visible { outline: 2px solid var(--wm-green-700); outline-offset: 2px; }

/* ---------- Abertura (Bancos & Fintechs rhythm) ---------- */
.in-hero { position: relative; overflow: hidden; background-color: #F3F9F6; background-image: radial-gradient(55% 75% at 88% 18%, rgba(0,223,130,0.18), transparent 70%), radial-gradient(45% 60% at 8% 95%, rgba(44,179,156,0.14), transparent 70%); color: #11171A; }
.in-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.in-hero__in { position: relative; z-index: 1; box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: calc(58px + clamp(66px, calc(6.25vw + 10px), 90px)) clamp(20px, 4vw, 40px) clamp(66px, calc(6.25vw + 10px), 90px); display: flex; flex-direction: column; justify-content: center; }
.in-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.in-hero__tx { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; justify-content: center; min-width: 0; }
.in-hero__h1 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; color: #11171A; text-wrap: balance; }
.in-hero__p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.in-hero__p strong { font-weight: 600; color: #11171A; }
@media (min-width: 1024px) {
  .in-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
}
@media (min-width: 1200px) {
  .in-hero__tx { gap: 14px; }
  .in-hero__p { max-width: 640px; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .in-hero__in { padding-top: calc(58px + 64px); padding-bottom: 64px; }
  .in-hero__h1 { font-size: clamp(34px, 3vw, 42px); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .in-hero__in { padding-top: calc(58px + 44px); padding-bottom: 44px; }
  .in-hero__tx { gap: 10px; }
  .in-hero__h1 { font-size: clamp(34px, 2.9vw, 40px); }
  .in-hero__p { font-size: 15px; }
}
@media (max-width: 699.98px) {
  .in-hero__in { padding-top: calc(58px + 28px); }
  .in-hero__tx { gap: 18px; }
}

/* Highlights row of the opening (Bancos & Fintechs). */
.in-hero__hl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 20px; padding-top: 22px; border-top: 1px solid var(--wm-ink-200); align-self: stretch; min-width: 0; }
.in-hero__hl > span { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.4; color: var(--wm-ink-700); }
.in-hero__hl svg { flex-shrink: 0; margin-top: 1px; color: var(--wm-green-600); }
@media (min-width: 621px) { .in-hero__hl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .in-hero__hl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; padding-top: 14px; } }
@media (min-width: 1024px) and (max-width: 1199.98px) and (max-height: 860px) { .in-hero__hl { grid-template-columns: minmax(0, 1fr); row-gap: 6px; } }
@media (min-width: 1024px) and (max-height: 700px) { .in-hero__hl { gap: 4px 20px; padding-top: 10px; } .in-hero__hl > span { font-size: 14px; } }

/* Clientes: copy only, no visual beside it. */
.in-hero--text .in-hero__grid { grid-template-columns: minmax(0, 1fr); }
.in-hero--text .in-hero__tx { max-width: 760px; margin: 0 auto; align-items: center; text-align: center; }
.in-hero--text .in-hero__p { margin-left: auto; margin-right: auto; }
.in-hero--text .in-btns { justify-content: center; }

/* Sobre nós: the photo is exactly as tall as the copy beside it (top on the eyebrow, bottom on the
   highlights), with the age badge of the legacy story section. */
.in-photo { position: relative; min-width: 0; margin: 0; }
.in-photo img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: 50% 32%; border-radius: 20px; box-shadow: 0 24px 56px rgba(10, 41, 33, 0.14); }
.in-photo__badge { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--wm-border); box-shadow: 0 10px 28px rgba(10, 41, 33, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.in-photo__v { font-family: var(--wm-font-display); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--wm-green-700); }
.in-photo__l { font-size: 13px; color: var(--wm-ink-600); }
@media (min-width: 1024px) {
  .in-hero--photo .in-hero__grid { align-items: stretch; }
  .in-hero--photo .in-photo { min-height: 300px; }
  .in-hero--photo .in-photo img { position: absolute; inset: 0; height: 100%; }
}
@media (max-width: 699.98px) { .in-photo img { height: 260px; } }

/* ---------- Logos (Médias Empresas strip) ---------- */
.in-logos { background: var(--wm-white); overflow: hidden; }
.in-logos__viewport { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; padding: 40px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.in-logos__track { display: flex; gap: 56px; width: max-content; animation: wm-marquee 70s linear infinite; align-items: center; }
.in-logos__track img { flex-shrink: 0; display: block; height: 22px; width: auto; max-width: 110px; object-fit: contain; filter: grayscale(1) brightness(0); opacity: 0.4; }
@media (prefers-reduced-motion: reduce) { .in-logos__track { animation: none; } }

/* ---------- Números (Médias Empresas band) ---------- */
.in-nums { background: var(--wm-ink-50); border-top: 1px solid var(--wm-border); border-bottom: 1px solid var(--wm-border); }
.in-nums__in { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 0; }
.in-nums__head { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding-right: clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--wm-ink-200); }
.in-nums__eyebrow { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: #0E7C66; white-space: nowrap; }
.in-nums__title { font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--wm-green-900); }
.in-nums__title em { font-style: italic; color: #0E9984; }
.in-nums__grid { flex: 1 1 760px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.in-nums__grid > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; text-align: center; border-right: 1px solid var(--wm-ink-200); }
.in-nums__grid > div:last-child { border-right: 0; }
.in-nums__v { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--wm-green-700); white-space: nowrap; }
.in-nums__l { font-size: 14px; line-height: 1.4; color: var(--wm-ink-500); }
.in-nums__plus { font-size: 0.6em; font-weight: 500; vertical-align: 0.325em; margin-right: 0.12em; color: #0E9984; }
@media (max-width: 1180px) {
  .in-nums__in { flex-direction: column; align-items: stretch; gap: 22px; }
  .in-nums__head { border-right: 0; padding-right: 0; align-items: center; text-align: center; }
  .in-nums__head br { display: none; }
  .in-nums__grid { flex: 0 0 auto; }
}
@media (max-width: 759.98px) {
  .in-nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .in-nums__grid > div:nth-child(2n) { border-right: 0; }
  .in-nums__v { font-size: 28px; }
}

/* ---------- Cards ---------- */
.in-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .in-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .in-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.in-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; box-sizing: border-box; padding: 26px 24px; border-radius: 16px; border: 1px solid var(--wm-border); background: #fff; }
.in-sec--tint .in-card { box-shadow: 0 1px 2px rgba(10, 41, 33, 0.04); }
.in-card__ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--wm-green-50); border: 1px solid var(--wm-green-100); color: var(--wm-green-700); }
.in-card__k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wm-green-700); }
.in-card__t { margin: 0; font-family: var(--wm-font-display); font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: #11171A; text-wrap: balance; }
.in-card__p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.in-card__n { font-family: var(--wm-font-mono); font-size: 13px; font-weight: 500; color: var(--wm-green-700); }

/* Dark section: the "Atendimento VIP" sections of the segment pages (Bancos, Indústria, Enterprise). */
.in-sec--dark { position: relative; overflow: hidden; background-color: var(--wm-green-900); background-image: radial-gradient(60% 70% at 88% 25%, rgba(25,197,146,0.18) 0%, transparent 70%); color: #fff; }
.in-sec--dark .in-eb { color: var(--wm-green-vivid); }
.in-sec--dark .in-h2 { color: #fff; }
.in-sec--dark .in-h2 em { color: var(--wm-green-vivid); }
.in-sec--dark .in-card { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); box-shadow: none; }
.in-sec--dark .in-card__ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(25,197,146,0.14); border-color: rgba(25,197,146,0.45); color: var(--wm-green-vivid); }
.in-sec--dark .in-card__k { color: var(--wm-green-vivid); }
.in-sec--dark .in-card__t { color: #fff; }
.in-sec--dark .in-card__p { color: rgba(255,255,255,0.74); }

/* Depoimentos */
.in-quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .in-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .in-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.in-quote { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; box-sizing: border-box; padding: 24px; border-radius: 16px; border: 1px solid var(--wm-border); background: #fff; }
.in-quote__ic { color: var(--wm-green-600); }
.in-quote__t { flex: 1 1 auto; margin: 0; }
.in-quote__t p { margin: 0; font-size: 16px; line-height: 1.55; color: #11171A; text-wrap: pretty; }
.in-quote__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--wm-ink-100); }
.in-quote__av { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wm-green-50); border: 1px solid var(--wm-green-100); color: var(--wm-green-700); font-size: 14px; font-weight: 600; }
.in-quote__n { display: block; font-size: 14.5px; font-weight: 600; color: #11171A; }
.in-quote__s { display: block; font-size: 13px; color: var(--wm-ink-500); }

/* Liderança */
.in-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 620px) { .in-people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.in-person { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.in-person__img { display: block; width: 100%; aspect-ratio: 6 / 5; height: auto; object-fit: cover; object-position: 50% 22%; border-radius: 16px; margin-bottom: 14px; background: var(--wm-ink-100); }
.in-person__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.in-person__n { display: block; margin: 0; font-family: var(--wm-font-display); font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: #11171A; }
.in-person__r { display: block; margin: 4px 0 0; font-size: 14px; color: var(--wm-ink-500); }
.in-person__in { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--wm-border); color: var(--wm-green-700); transition: background 120ms ease, border-color 120ms ease; }
.in-person__in:hover { background: var(--wm-green-50); border-color: var(--wm-green-200); }
.in-person__in:focus-visible { outline: 2px solid var(--wm-green-700); outline-offset: 2px; }

/* Jornada: copy beside a photo collage */
.in-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.in-story__tx { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.in-story__tx p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--wm-ink-600); text-wrap: pretty; }
.in-story__tx p strong { font-weight: 600; color: #11171A; }
.in-story__tx .in-h2 { margin-bottom: 8px; }
.in-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; min-width: 0; margin: 0; }
.in-collage img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.in-collage .is-tall { grid-row: span 2; }
@media (min-width: 620px) { .in-collage { grid-template-columns: 1fr 1fr 0.85fr; grid-auto-rows: 170px; } }
@media (min-width: 1080px) {
  .in-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .in-collage { grid-auto-rows: 180px; }
}

/* Trajetória: one line of milestones from 1080 px, a column below it */
.in-tl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.in-tl__i { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 28px 30px; }
.in-tl__i::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 1px; background: var(--wm-ink-200); }
.in-tl__i:last-child::before { display: none; }
.in-tl__dot { position: absolute; left: 0; top: 2px; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--wm-green-600); background: #fff; }
.in-tl__i.is-key .in-tl__dot { background: var(--wm-green-600); box-shadow: 0 0 0 4px var(--wm-green-100); }
.in-tl__y { font-family: var(--wm-font-mono); font-size: 13px; font-weight: 500; color: var(--wm-green-700); }
.in-tl__t { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: #11171A; text-wrap: balance; }
.in-tl__p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--wm-ink-600); text-wrap: pretty; }
@media (min-width: 1200px) {
  .in-tl { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 20px; }
  .in-tl::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--wm-ink-200); }
  .in-tl__i { padding: 30px 0 0; }
  .in-tl__i::before { display: none; }
  .in-tl__dot { top: 0; }
}

/* ---------- Chamada final (Médias Empresas) ---------- */
.in-cta { position: relative; overflow: hidden; background-color: #D2DDD8; background-image: radial-gradient(70% 60% at 80% 90%, rgba(255,255,255,0.5) 0%, transparent 70%); color: var(--wm-green-900); }
.in-cta__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: stretch; }
.in-cta__media { min-width: 0; height: 280px; margin: 0; border-radius: 20px; overflow: hidden; }
.in-cta__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.in-cta__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; min-width: 0; text-align: left; }
.in-cta__title { color: var(--wm-green-900); }
.in-cta__title em { font-style: italic; font-weight: 500; color: var(--wm-green-700); }
.in-cta__title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.in-cta__title a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.in-cta__lead { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: #2C3D38; text-wrap: pretty; }
.in-cta__btns { justify-content: flex-start; margin-top: 10px; }
.in-cta .in-btn--ghost { border-color: var(--wm-green-800); background: transparent; }
.in-cta .in-btn--ghost:hover { background: rgba(255, 255, 255, 0.55); }
@media (min-width: 1080px) { .in-cta__in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
@media (min-width: 1024px) and (max-height: 700px) { .in-cta__lead { font-size: 15px; } }

/* ---------- 2026 em lançamentos (#atualizacoes) ---------- */
.in-y26 { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--wm-ink-200); }
.in-y26__hd { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 28px; }
.in-y26__t { margin: 0; font-family: var(--wm-font-display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: #11171A; text-wrap: balance; }
.in-y26__t em { font-style: italic; font-weight: 500; color: var(--wm-green-700); }
.in-y26__p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--wm-ink-600); text-wrap: pretty; }
.in-y26__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .in-y26__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .in-y26__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.in-y26__m { display: flex; flex-direction: column; gap: 10px; min-width: 0; box-sizing: border-box; padding: 18px 18px 20px; border: 1px solid var(--wm-border); border-radius: 14px; background: #fff; }
.in-y26__m.is-now { background: var(--wm-green-50); border-color: var(--wm-green-200); }
.in-y26__k { font-family: var(--wm-font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wm-green-700); }
.in-y26__m ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.in-y26__m li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.45; color: #11171A; text-wrap: pretty; }
.in-y26__m li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 6px; height: 6px; border-radius: 50%; background: var(--wm-green-600); }


/* ---------- English About: offices (#escritorios, English only) ----------
 * The section the Portuguese page does not have follows the short-screen rule on its own: in the C2
 * band (max-height 700 px) the title and the four cards fit under the sticky bars (64 / 44 padding,
 * as the C2 section rhythm of the segment pages). */
@media (min-width: 1024px) and (max-height: 700px) { .wmfl-en #escritorios .in-sec__in { padding-top: 64px; padding-bottom: 44px; } }
