/* Instituto I AM | Sistema visual do site (v1)
   Paleta oficial extraída do CSS atual de institutoam.com.br.
   Layout responsivo por container queries no container "pg". */

:root {
  --navy: #091D2D;
  --navy-2: #12293C;
  --wine: #991226;
  --coral: #FF4444;
  --gold: #F3BB24;
  --lilac: #9299BD;
  --muted: #556775;
  --border: #CBD2D8;
  --surface: #F7F8FB;
  --neutral: #ECECEC;
  --white: #FFFFFF;
  --wa: #0B7A26;
  --r-card: 24px;
  --r-tile: 28px;
  --ease-in: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-edit: 500ms;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }

.pg {
  container: pg / inline-size;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
.pg h1, .pg h2, .pg h3, .pg h4, .pg p { margin: 0; }
.pg ul, .pg ol { margin: 0; }
.pg a { color: var(--wine); text-underline-offset: 3px; }
.pg a:hover { color: var(--navy); }

/* Foco visível em toda a interface */
.pg a:focus-visible, .pg button:focus-visible, .pg summary:focus-visible,
.pg input:focus-visible, .pg select:focus-visible, .pg textarea:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark a:focus-visible, .dark button:focus-visible, .dark summary:focus-visible {
  outline-color: var(--gold);
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--white) !important; padding: 12px 18px;
  border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Estrutura */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4cqi, 40px); }
.wrap-narrow { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: clamp(16px, 4cqi, 40px); }
.sec { padding-block: clamp(56px, 8cqi, 128px); }
.sec-tight { padding-block: clamp(40px, 5cqi, 80px); }
.surface { background: var(--surface); }
.dark { background: var(--navy); color: var(--white); }
.dark .muted { color: #B8C0D9; }
.dark a { color: var(--white); }
.dark a:hover { color: #FFD1D1; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }

/* Grades responsivas */
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(16px, 2cqi, 24px); }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(16px, 2cqi, 24px); }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: clamp(16px, 2cqi, 24px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(32px, 5cqi, 80px); align-items: center; }

/* Tipografia fluida (Manrope) */
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); }
.dark .eyebrow { color: #FF6B6B; }
.display { font-size: clamp(38px, 6.2cqi, 88px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.h1 { font-size: clamp(36px, 5cqi, 72px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.9cqi, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2cqi, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.h4 { font-size: 19px; line-height: 1.35; font-weight: 700; }
.lead { font-size: clamp(19px, 1.7cqi, 24px); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.body { font-size: clamp(16px, 1.3cqi, 19px); line-height: 1.62; text-wrap: pretty; max-width: 68ch; }
.small { font-size: 15px; line-height: 1.55; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }

/* Botões e links de ação */
.btns { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-in), color var(--t-fast) var(--ease-in), border-color var(--t-fast) var(--ease-in);
}
.pg .btn-primary { background: var(--wine); color: var(--white); }
.pg .btn-primary:hover { background: var(--navy); color: var(--white); }
.pg .btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.pg .btn-ghost:hover { background: var(--navy); color: var(--white); }
.pg .btn-light { background: var(--white); color: var(--navy); }
.pg .btn-light:hover { background: #FFE3E3; color: var(--navy); }
.pg .btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.pg .btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.pg .btn-wa { background: var(--wa); color: var(--white); }
.pg .btn-wa:hover { background: var(--navy); color: var(--white); }
.btn:active { transform: translateY(1px); }
.pg .more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.pg .more:hover, .pg .more:focus-visible { text-decoration: underline; }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }

/* Cabeçalho global */
.hdr-space { height: 64px; }
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(9, 29, 45, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hdr { background: var(--white); } }
.hdr-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy) !important; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; line-height: 1.05; }
.brand-name small { display: block; font-weight: 600; font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); }
.nav-d { display: flex; align-items: center; gap: 4px; }
.nav-d > a, .nav-d > button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); background: none; border: 0; cursor: pointer;
  padding: 10px 14px; min-height: 44px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.nav-d > a:hover, .nav-d > button:hover { background: rgba(9, 29, 45, 0.06); color: var(--navy); }
.nav-d [aria-current="page"] { color: var(--wine); }
.pg .nav-d .btn[aria-current="page"] { color: var(--white); }
.nav-cta { font-size: 15px !important; min-height: 44px !important; padding: 10px 20px !important; }
.icon-btn.nav-m-btn { display: none; }
.caret { width: 10px; height: 10px; transition: transform var(--t-base) var(--ease-in); }
.open .caret { transform: rotate(180deg); }

.mega, .mpanel { max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.mega { border-top: 1px solid rgba(9, 29, 45, 0.08); background: var(--white); box-shadow: 0 24px 48px rgba(9, 29, 45, 0.10); animation: drop 220ms var(--ease-in); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; padding-block: 32px 36px; }
.mega h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.mega ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; display: inline-flex; min-height: 36px; align-items: center; }
.mega a:hover { color: var(--wine); text-decoration: underline; }
.mpanel { background: var(--white); border-top: 1px solid rgba(9, 29, 45, 0.08); padding-block: 8px 28px; animation: drop 220ms var(--ease-in); }
.mpanel ul { list-style: none; padding: 0; }
.mpanel li a { display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--neutral); }
.mpanel .sub a { font-size: 17px; font-weight: 600; min-height: 46px; padding-left: 16px; color: var(--navy); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: rgba(9, 29, 45, 0.06); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Faixa de aviso */
.ribbon { background: var(--surface); text-align: center; font-size: 15px; padding: 12px 16px; border-bottom: 1px solid var(--neutral); }

/* Breadcrumb e navegação local */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }
.localnav { border-bottom: 1px solid var(--neutral); background: var(--white); }
.localnav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.localnav-title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.localnav ul { list-style: none; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.localnav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-radius: 999px; }
.localnav ul a:hover { color: var(--navy); background: var(--surface); }
.anchor { scroll-margin-top: 84px; }

/* Painéis (tiles) editoriais */
.tile { border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column; text-align: center; background: var(--surface); }
.tile-body { padding: clamp(36px, 4cqi, 56px) clamp(20px, 3cqi, 48px) 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tile.dark { background: var(--navy); }
.tile .media { margin-top: auto; }

/* Mídia: espaço reservado para fotos reais */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; color: var(--muted);
  background-color: #EEF1F6;
  background-image: repeating-linear-gradient(135deg, rgba(146, 153, 189, 0.16) 0 2px, transparent 2px 14px);
  border: 1.5px dashed var(--lilac); border-radius: 20px; padding: 20px; font-size: 14px; font-weight: 600; line-height: 1.4;
}
.ph span { background: var(--white); padding: 8px 14px; border-radius: 999px; box-shadow: 0 1px 2px rgba(9, 29, 45, 0.08); max-width: 92%; }
.dark .ph { background-color: #10283B; background-image: repeating-linear-gradient(135deg, rgba(146, 153, 189, 0.18) 0 2px, transparent 2px 14px); color: #B8C0D9; }
.dark .ph span { background: var(--navy-2); color: #DDE2EE; }
.r16x9 { aspect-ratio: 16 / 9; }
.r16x7 { aspect-ratio: 16 / 7; }
.r4x3 { aspect-ratio: 4 / 3; }
.r4x5 { aspect-ratio: 4 / 5; }
.r1x1 { aspect-ratio: 1 / 1; }
.photo { border-radius: 24px; overflow: hidden; background: #E9EDF3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo video.video-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Vídeo vertical em destaque no hero (sem esticar além da resolução de origem) */
.hero-video-wrap { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0B2338 0%, #091D2D 60%, #15314A 100%); }
.hero-video-wrap video { height: 92%; max-height: 520px; width: auto; aspect-ratio: 9 / 16; border-radius: 20px; object-fit: cover; box-shadow: 0 24px 60px rgba(5, 15, 25, 0.35); }
@container pg (max-width: 767px) {
  .hero-video-wrap video { height: 88%; }
}

/* Depoimento em vídeo próprio (hospedado no site, não YouTube) */
.vnative-row { display: flex; flex-wrap: wrap; gap: 24px; }
.vnative { width: 100%; max-width: 280px; }
.vnative video { width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: #091D2D; object-fit: cover; display: block; }
.vnative-cap { padding: 10px 2px 0; }
.vnative-cap .vname { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.vnative-cap .vorg { font-size: 13px; color: var(--muted); }

/* Cartões */
.card {
  background: var(--white); border: 1px solid var(--neutral); border-radius: var(--r-card); padding: clamp(24px, 2.6cqi, 36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t-fast) var(--ease-in), border-color var(--t-fast) var(--ease-in), box-shadow var(--t-fast) var(--ease-in);
}
.surface .card { border-color: transparent; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: 0 12px 32px rgba(9, 29, 45, 0.08); }
.card .more { margin-top: auto; }
.dark .card { background: var(--navy-2); border-color: rgba(255, 255, 255, 0.08); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--neutral); color: var(--navy); width: fit-content; }
.tag.wine { background: #F7E6E9; border-color: transparent; color: var(--wine); }
.tag.navy { background: var(--navy); border-color: transparent; color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.meta b { color: var(--navy); font-weight: 700; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #F7E6E9; color: var(--wine); flex: none; }
.dark .ico { background: rgba(255, 68, 68, 0.14); color: #FF6B6B; }

/* Números de evidência */
.stat-n { font-size: clamp(56px, 8cqi, 120px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.stat-n em { font-style: normal; color: var(--coral); }

/* Seletor de necessidade */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 48px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white); color: var(--navy);
  transition: background-color var(--t-fast) var(--ease-in), border-color var(--t-fast) var(--ease-in), color var(--t-fast) var(--ease-in);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[aria-pressed="true"] .muted { color: #C9CEDF; }
.chip[aria-pressed="true"]::before { content: "✓"; margin-right: 8px; }
.linkbtn { font: inherit; font-size: 15px; font-weight: 700; color: var(--wine); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }

/* Passos do método */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.dark .steps li { border-color: rgba(255, 255, 255, 0.5); }
.steps li::before { content: "0" counter(s); font-weight: 800; font-size: 15px; color: var(--wine); letter-spacing: 0.06em; }
.dark .steps li::before { color: #FF6B6B; }

/* Listas de conteúdo */
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 999px; background: #F7E6E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23991226' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.topics { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 32px; counter-reset: t; }
.topics li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--neutral); font-weight: 600; }
.topics li::before { content: counter(t, decimal-leading-zero); color: var(--wine); font-weight: 800; font-size: 15px; padding-top: 2px; }

/* Ficha de decisão */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--neutral); border: 1px solid var(--neutral); border-radius: 24px; overflow: hidden; }
.facts > div { background: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.facts > div { min-width: 0; }
.facts dl, .pg dl { margin: 0; }

/* FAQ acessível com details/summary */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: clamp(18px, 1.5cqi, 21px); font-weight: 700; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--wine); line-height: 1; transition: transform var(--t-base) var(--ease-in); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; max-width: 70ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.faq .ans p + p { margin-top: 10px; }
.dark .faq, .dark .faq details { border-color: rgba(255, 255, 255, 0.18); }
.dark .faq .ans { color: #C9CEDF; }

/* Comparador */
.cmp-wrap { border: 1px solid var(--neutral); border-radius: 24px; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--neutral); line-height: 1.5; }
.cmp thead th { background: var(--navy); color: var(--white); font-size: 17px; }
.cmp tbody th { background: var(--surface); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); width: 16%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp-cards { display: none; }

/* Formulário */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 700; }
.field .hint { font-size: 14px; color: var(--muted); }
.input {
  font: inherit; font-size: 16px; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--navy); width: 100%;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--muted); }
.input[aria-invalid="true"] { border-color: var(--wine); background: #FFF7F8; }
.err { display: flex; gap: 8px; align-items: flex-start; color: var(--wine); font-size: 14px; font-weight: 700; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface); font-size: 15px; color: var(--navy); }
.note.warn { background: #FFF6DF; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 16px; }
.radio input { width: 18px; height: 18px; accent-color: var(--wine); }

/* Rodapé */
.ftr { background: var(--surface); color: var(--navy); font-size: 14px; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px; padding-block: 48px 32px; border-bottom: 1px solid var(--border); }
.ftr h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.ftr a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.ftr a:hover { color: var(--wine); text-decoration: underline; }
.ftr-legal { padding-block: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); }
.fnotes { font-size: 13px; color: var(--muted); line-height: 1.55; padding-block: 28px 4px; display: grid; gap: 6px; border-bottom: 1px solid var(--border); }
.fn { font-size: 0.6em; vertical-align: super; line-height: 0; text-decoration: none; font-weight: 700; }

/* WhatsApp: botão flutuante (desktop) e barra contextual (mobile) */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 56px; height: 56px; border-radius: 999px;
  background: var(--wa); color: var(--white) !important; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(9, 29, 45, 0.22); transition: transform var(--t-fast) var(--ease-in), background-color var(--t-fast) var(--ease-in);
}
.wa-fab:hover { transform: translateY(-2px); background: var(--navy); }
.wa-bar { display: none; }

/* Prancha de documentação */
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--neutral); line-height: 1.5; }
.doc-table thead th { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; background: var(--navy); color: #E6EAF2; border-radius: 18px; padding: 20px 22px; overflow-x: auto; white-space: pre; }
.ok { color: #0B7A26; font-weight: 800; }
.pend { color: #8A5A00; font-weight: 800; }
.swatch { height: 96px; border-radius: 18px; border: 1px solid var(--neutral); }
.scroll-x { overflow-x: auto; }

/* Movimento: conteúdo visível por padrão; revelação só com suporte e sem preferência por movimento reduzido */
@keyframes rv { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rvimg { from { opacity: 0.4; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes wabar { 0%, 70% { opacity: 0; visibility: hidden; transform: translateY(8px); } 100% { opacity: 1; visibility: visible; transform: none; } }
@keyframes heroin { from { opacity: 0; transform: translateY(12px) scale(1.01); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: heroin 500ms var(--ease-in) both; }
  @supports (animation-timeline: view()) {
    .wa-bar { animation: wabar linear both; animation-timeline: scroll(root); animation-range: 0px 520px; }
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .rv-img img { animation: rvimg linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tablet */
@container pg (max-width: 1023px) {
  .nav-d { display: none; }
  .icon-btn.nav-m-btn { display: inline-flex; }
  .hdr-in { height: 56px; }
  .hdr-space { height: 56px; }
}

/* Mobile */
@container pg (max-width: 767px) {
  .pg { font-size: 17px; }
  .btns .btn { flex: 1 1 100%; }
  .btns .more { flex: 1 1 100%; justify-content: center; }
  .localnav-title { font-size: 17px; }
  .localnav-in { flex-wrap: wrap; gap: 0; padding-block: 6px; }
  .localnav ul { width: 100%; margin-inline: -12px; }
  .wa-fab { display: none; }
  .wa-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--neutral);
  }
  .wa-bar p { font-size: 14px; font-weight: 600; line-height: 1.3; }
  .wa-bar .btn { min-height: 48px; padding: 10px 18px; flex: none; }
  .ftr { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cmp-wrap { display: none; }
  .cmp-cards { display: grid; gap: 16px; }
  .facts dd { font-size: 17px; }
  .tile-body { padding-top: 40px; }
  .hide-m { display: none !important; }
  .r16x7 { aspect-ratio: 4 / 3; }
}
@container pg (min-width: 768px) {
  .only-m { display: none !important; }
}


/* ===== Versão 2: guia visual de painéis e galerias ===== */

/* Marcação de imagem a produzir: código, dimensões, foco e posição do texto */
.mspec {
  position: relative; width: 100%; display: grid; place-items: center; overflow: hidden;
  background-color: #E9EDF4;
  background-image: repeating-linear-gradient(135deg, rgba(146, 153, 189, 0.18) 0 2px, transparent 2px 16px);
  color: var(--navy); text-align: left;
}
.dark .mspec { background-color: #0F2638; background-image: repeating-linear-gradient(135deg, rgba(146, 153, 189, 0.2) 0 2px, transparent 2px 16px); }
.spec {
  position: relative; z-index: 2; background: var(--white); color: var(--navy); border-radius: 16px; padding: 14px 18px;
  font-size: 13.5px; line-height: 1.5; font-weight: 500; max-width: min(92%, 520px); box-shadow: 0 2px 10px rgba(9, 29, 45, 0.10);
}
.spec b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.spec .k { font-weight: 700; color: var(--wine); }
.fz {
  position: absolute; z-index: 1; border: 2px dashed var(--wine); border-radius: 12px; background: rgba(153, 18, 38, 0.05);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px 8px;
}
.dark .fz { border-color: #FF6B6B; background: rgba(255, 68, 68, 0.06); }
.fz.m { display: none; }
.fz span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wine); background: var(--white); padding: 2px 8px; border-radius: 999px; }

/* Hero amplo e destaques de borda a borda */
.visual-stack { display: grid; gap: 12px; }
.hero-panel, .feature { display: flex; flex-direction: column; background: var(--white); min-height: 680px; }
.feature { background: var(--surface); }
.feature.dark { background: var(--navy); }
.hero-panel .panel-txt, .feature .panel-txt { padding: clamp(48px, 6cqi, 88px) clamp(16px, 4cqi, 40px) clamp(28px, 3cqi, 40px); }
.media-hero { height: clamp(400px, 34cqi, 560px); }
.media-feature { height: clamp(380px, 30cqi, 500px); flex: 1 1 auto; }
@container pg (min-width: 768px) {
  .media-feature.h-148 { height: clamp(562px, 44.4cqi, 740px); }
  .media-feature.h-139 { height: clamp(528px, 41.7cqi, 695px); }
}

/* Texto dos painéis, sempre em fluxo e fora da foto */
.panel-txt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.panel-txt .btns { justify-content: center; }
.panel-title { font-size: clamp(30px, 3.6cqi, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; max-width: 18ch; }
.panel-sub { font-size: clamp(17px, 1.5cqi, 22px); line-height: 1.45; font-weight: 500; max-width: 46ch; text-wrap: pretty; }
.panel .panel-sub, .feature .panel-sub, .hero-panel .panel-sub { color: var(--muted); }
.dark .panel-sub { color: #C9CEDF; }

/* Grade de ofertas em dois painéis, 12 px */
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: 12px; }
.panel { display: flex; flex-direction: column; min-height: 580px; background: var(--surface); overflow: clip; }
.panel.dark { background: var(--navy); }
.panel.white { background: var(--white); outline: 1px solid var(--neutral); outline-offset: -1px; }
.panel .panel-txt { padding: clamp(40px, 4cqi, 56px) clamp(20px, 3cqi, 40px) 24px; }
.panel .media-panel { margin-top: auto; flex: 1 1 auto; min-height: 300px; }

/* Galeria de experiências: slide central com vizinhos visíveis */
.gal { display: flex; flex-direction: column; gap: 20px; }
.gal-track {
  --sw: min(70cqi, 960px);
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding-inline: calc((100% - var(--sw)) / 2); scrollbar-width: none; scroll-behavior: smooth;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; border-radius: 8px; }
.gal-slide { flex: 0 0 var(--sw); scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.gal-media { aspect-ratio: 16 / 9; border-radius: 20px; }
.gal-cap { display: flex; flex-direction: column; gap: 4px; padding-inline: 4px; }
.gal-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gal-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--neutral); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast) var(--ease-in); }
.gal-btn:hover { background: var(--border); }
.gal-btn:disabled { opacity: 0.4; cursor: default; }
.gal-dots { display: flex; align-items: center; gap: 0; }
.gal-dot { width: 32px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.gal-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width var(--t-base) var(--ease-in), background-color var(--t-base) var(--ease-in); }
.gal-dot[aria-current="true"]::before { width: 24px; background: var(--navy); }

/* Detalhe em 4:3 nas páginas internas */
.media-detail { aspect-ratio: 4 / 3; border-radius: 20px; }

@container pg (max-width: 1023px) {
  .hero-panel, .feature { min-height: 620px; }
  .panel { min-height: 520px; }
}
@container pg (max-width: 767px) {
  .hero-panel, .feature { min-height: 0; }
  .media-hero, .media-feature { height: auto; aspect-ratio: 4 / 5; flex: none; }
  .panel-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .panel { min-height: 540px; }
  .panel .media-panel { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .gal-track { --sw: 86cqi; }
  .gal-media { aspect-ratio: 4 / 3; }
  .spec { font-size: 12.5px; padding: 12px 14px; }
  .fz span { font-size: 10.5px; }
  .fz.d { display: none; }
  .fz.m { display: flex; }
}

/* Cabeçalho de LP em telas estreitas */
@container pg (max-width: 480px) {
  .hdr .nav-cta { padding: 10px 14px !important; font-size: 14px !important; white-space: nowrap; }
  .brand-name small { display: none; }
}

/* Cartão de vídeo (YouTube, abre em nova aba). Na implantação: miniatura e player leve sob demanda */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: 16px; }
.pg .vcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 4 / 5;
  padding: 18px; border-radius: 20px; text-decoration: none; color: var(--white); overflow: hidden;
  background-color: var(--navy);
  background-image: repeating-linear-gradient(135deg, rgba(146, 153, 189, 0.12) 0 2px, transparent 2px 16px);
  transition: transform var(--t-fast) var(--ease-in), background-color var(--t-fast) var(--ease-in);
}
.pg .vcard:hover { transform: translateY(-3px); color: var(--white); background-color: #12304A; }
.vcard .vplay { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -52px 0 0 -32px; border-radius: 999px; background: var(--white); color: var(--wine); display: grid; place-items: center; }
.vcard .vtag { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #FF8A8A; }
.vcard .vname { font-size: 18px; font-weight: 800; line-height: 1.25; }
.vcard .vorg { font-size: 14px; color: #C9CEDF; }
.pg .vwide { aspect-ratio: 16 / 9; justify-content: flex-end; }
.vwide .vplay { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.vsm .vplay { top: 14px; left: 14px; width: 40px; height: 40px; margin: 0; }
.vsm .vplay svg { width: 18px; height: 18px; }
.pg .vsm { padding: 14px; }

/* Ícones Material Symbols (Google Fonts), estilo arredondado, embutidos como SVG */
.msi { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.22em; }
.facts dt { display: flex; align-items: center; gap: 8px; }
.facts dt .msi { width: 20px; height: 20px; color: var(--wine); }
.msi-play { width: 34px; height: 34px; margin-left: 2px; }
.vwide .msi-play { width: 42px; height: 42px; }
.msi-note { width: 24px; height: 24px; color: var(--wine); }
.msi-22 { width: 24px; height: 24px; }
.msi-24 { width: 24px; height: 24px; }
.feat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #F7E6E9; color: var(--wine); }
.feat-ico .msi { width: 26px; height: 26px; }
.dark .feat-ico { background: rgba(255, 68, 68, 0.14); color: #FF6B6B; }

/* Melhoria 1 · Cartões de vídeo: play no topo, sem cobrir nomes */
.pg .vcard:not(.vwide) .vplay, .pg .vsm .vplay { position: static; margin: 0 0 auto; width: 48px; height: 48px; }
.pg .vcard:not(.vwide) .vplay .msi-play { width: 26px; height: 26px; }
.pg .vsm { aspect-ratio: auto; min-height: 132px; }
.pg .vsm .vplay { width: 40px; height: 40px; }
.pg .vsm .vplay .msi-play { width: 22px; height: 22px; }

/* Melhoria 2 · Rodapé: listas abertas no computador, sanfona no celular */
.ft-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.ft-acc > summary::-webkit-details-marker { display: none; }
.ft-acc .ft-chev { display: none; width: 22px; height: 22px; color: var(--muted); transition: transform var(--t-fast) var(--ease-in); }
@container pg (max-width: 767px) {
  .ftr-cols { gap: 0; }
  .ftr-cols > :first-child { margin-bottom: 16px; }
  .ft-acc { border-top: 1px solid var(--border); }
  .ft-acc > summary { pointer-events: auto; cursor: pointer; min-height: 52px; }
  .ft-acc > summary h2 { margin: 0; }
  .ft-acc .ft-chev { display: block; }
  .ft-acc[open] .ft-chev { transform: rotate(180deg); }
  .ft-acc > ul { padding-bottom: 14px; }
  .ft-acc > summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
}

/* Melhoria 3 · Catálogo: filtros sempre à mão */
.pg .row:has(> .chips[aria-label="Filtrar por formato"]) { position: sticky; top: 64px; z-index: 5; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); padding-block: 10px; margin-inline: -16px; padding-inline: 16px; }
@container pg (max-width: 767px) {
  .pg .row:has(> .chips[aria-label="Filtrar por formato"]) { top: 56px; }
  .chips[aria-label="Filtrar por formato"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .chips[aria-label="Filtrar por formato"]::-webkit-scrollbar { display: none; }
  .chips[aria-label="Filtrar por formato"] .chip { flex: none; }
}

/* Galeria: foto real no lugar do espaço reservado */
.gal-photo { overflow: hidden; background: var(--surface); }
.gal-photo picture, .gal-photo img { display: block; width: 100%; height: 100%; }
.gal-photo img { object-fit: cover; }

/* Empresas que confiam na nossa entrega (IAM-13) */
.logos-t { font-size: clamp(34px, 4.6cqi, 64px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; max-width: 980px; text-wrap: balance; margin: 0; }
.logos-t .hl { color: var(--wine); }
.logo-wall { list-style: none; padding: 0; margin: 16px 0 0; width: 100%; max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-cell { flex: 0 0 calc((100% - 5 * 12px) / 6); height: 96px; display: grid; place-items: center; padding: 14px 18px; }
.logo-cell picture { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-cell img { height: var(--h, 48px); width: auto; max-width: 100%; object-fit: contain; }
.logo-ph { width: 100%; height: 100%; display: grid; place-items: center; border: 1.5px dashed var(--border); border-radius: 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.spec-note { font-size: 13px; color: var(--muted); max-width: 760px; margin: 8px 0 0; }
.spec-note b { color: var(--wine); }
@container pg (max-width: 1023px) { .logo-cell { flex-basis: calc((100% - 3 * 12px) / 4); } }
@container pg (max-width: 767px) { .logo-cell { flex-basis: calc((100% - 2 * 12px) / 3); height: 76px; padding: 8px 10px; } .logo-cell img { height: calc(var(--h, 48px) * 0.72); } }
.logo-more { width: 100%; max-width: 1120px; display: flex; flex-direction: column; align-items: center; }
.logo-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; color: var(--navy); background: var(--white); margin: 8px auto 0; }
.logo-more > summary::-webkit-details-marker { display: none; }
.logo-more > summary:hover { border-color: var(--navy); }
.logo-more > summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.logo-more .logo-more-close, .logo-more[open] .logo-more-open { display: none; }
.logo-more[open] .logo-more-close { display: inline; }
.logo-more[open] > summary { order: 2; margin-top: 20px; }
/* Melhoria 3 · Celular: 12 marcas em destaque; as demais aparecem em "Ver todas" */
@container pg (max-width: 767px) {
  .logos-sec:not(:has(.logo-more[open])) .wrap > .logo-wall .logo-cell:nth-child(n+13) { display: none; }
}

/* Player de vídeo na própria página (site publicado) */
.vmodal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.vmodal::backdrop { background: rgba(9, 29, 45, 0.94); }
.vmodal[open] { display: grid; place-items: center; }
.vmodal-box { position: relative; width: min(1100px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; }
.vmodal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); background: #000; border-radius: 16px; overflow: hidden; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-t { color: #fff; font-family: Manrope, system-ui, sans-serif; font-weight: 700; font-size: 15px; margin: 0; }
.vmodal-x { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: #091D2D; display: grid; place-items: center; cursor: pointer; }
.vmodal-x:focus-visible { outline: 3px solid #F3BB24; outline-offset: 3px; }
html.video-aberto { overflow: hidden; }

/* Publicação estática */
@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/manrope-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/manrope-latin-800-normal.woff2) format("woff2")}
.photo picture{display:block;width:100%;height:100%}
[hidden]{display:none !important}
body{margin:0}
a{color:#991226}a:hover{color:#091D2D}
html{scroll-padding-top:80px}
