/* Home review: a shared rhythm, restrained brand tints and readable spacing. */
body.home-motion-sample{--home-section-space:clamp(64px,6vw,96px);--home-paper:#f4f5f7;--home-blue-tint:#edf2f8;--home-aqua-tint:#edf6f5}
body.home-motion-sample #grupo.history-approved{background:var(--home-paper);padding-block:var(--home-section-space)}
body.home-motion-sample #segmentos{background:#f1f4f8;padding-block:var(--home-section-space);color:#141e48}
body.home-motion-sample #segmentos .cap-sector-heading h2{color:#141e48}
body.home-motion-sample #segmentos .cap-sector-heading>p{color:#526680}
body.home-motion-sample #segmentos .cap-sector-panel{color:#142044}
body.home-motion-sample #lancamentos{padding-block:var(--home-section-space);background:#fff}
body.home-motion-sample #news.cap-universe{padding-block:var(--home-section-space)}
body.home-motion-sample #news .cap-universe-heading{align-items:flex-start;gap:48px}
body.home-motion-sample #news #news-title{margin:0}
body.home-motion-sample #busca.section {
  padding: 0;
  background: #07162b;
}

body.home-motion-sample #busca .cap-finder-hero {
  border-radius: 0;
  padding: var(--home-section-space) var(--site-gutter, 7vw);
}
body.home-motion-sample #grupo .intro-copy p,body.home-motion-sample #news .cap-universe-intro>p{line-height:1.8}
body.home-motion-sample #news .cap-universe-feed-heading>p{color:#c2d2e6}
body.home-motion-sample .cap-sector-heading,body.home-motion-sample .cap-launch-heading{gap:28px}
body.home-motion-sample #grupo.history-approved .intro-copy{padding-inline:0;justify-self:start;text-align:left}
@media(max-width:760px){
 body.home-motion-sample{--home-section-space:48px}
 body.home-motion-sample #header.site-header,body.home-motion-sample footer.site-footer,body.home-motion-sample main>section:not(.hero){padding-inline:var(--site-gutter)}
 body.home-motion-sample #news .cap-universe-heading{gap:20px}
 body.home-motion-sample #busca .cap-finder-action{font-size:13px;gap:16px;padding-inline:20px;max-width:100%}
 body.home-motion-sample #grupo.history-approved .watch-institutional{left:18px;right:18px;bottom:18px;font-size:12px}
}
/* Quiet segment surfaces and a consistent set of line icons. */
#segmentos .cap-sector-identity{display:flex;align-items:center;gap:12px;min-height:40px}
#segmentos .cap-sector-icon{width:25px;height:25px;flex:0 0 25px;color:#2855bd}
#segmentos .cap-sector-identity h3{min-height:0;margin:0}

body.home-motion-sample #segmentos .cap-sector-panel{padding:clamp(24px,2.6vw,40px)}

body.home-motion-sample #segmentos .cap-sector-panel {
  background: linear-gradient(160deg, #fff, #eaf0f8);
  border-color: #d6e0ee;
  border-radius: 22px;
  box-shadow: 0 6px 18px #152c5010;
}

body.home-motion-sample #segmentos .cap-sector-panel h3,
body.home-motion-sample #segmentos .cap-sector-panel a {
  color: #142044;
}

body.home-motion-sample #segmentos .cap-sector-panel p {
  color: #50617a;
  margin-top: 22px;
}

#segmentos .cap-sector-panel a:hover {
  text-decoration: underline;
}

body.home-motion-sample #segmentos .cap-sector-panel:focus-within {
  border-color: #88a5d5;
  box-shadow: 0 14px 28px #152c5020;
}

@media (hover: hover) {
  body.home-motion-sample #segmentos .cap-sector-panel:hover {
    border-color: #88a5d5;
    box-shadow: 0 14px 28px #152c5020;
  }

  .home-motion-sample main :is(.text-link, .cap-launch-footer a, .map-result a):hover {
    text-decoration: underline;
    text-underline-offset: .25em;
  }

  .home-motion-sample main :is(.map-tab, .map-zoom button, .watch-institutional, .cap-finder-action):not(:disabled):hover {
    filter: brightness(1.14);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.home-motion-sample #segmentos .cap-sector-panel {
    transition: translate .22s ease, border-color .22s ease, box-shadow .22s ease;
  }

  body.home-motion-sample #segmentos .cap-sector-panel:hover {
    translate: 0 -5px;
  }

  #segmentos .cap-sector-panel:hover a > span {
    transform: translate(3px, -3px);
  }
}

body.home-motion-sample #grupo.history-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  background: #0a1930;
  color: #fff;
}

body.home-motion-sample #grupo.history-screen .institutional-video {
  aspect-ratio: 2.35;
  min-height: 220px;
  clip-path: inset(0 round 24px) !important;
}

body.home-motion-sample #grupo.history-screen .intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: none;
}

body.home-motion-sample #grupo.history-screen .intro-copy {
  margin: 0;
  padding: 0;
  border: 0;
}

body.home-motion-sample #grupo.history-screen .intro-copy p { color: #c7d7ec; }
body.home-motion-sample #grupo.history-screen :is(.blue, .section-label) { color: #8ce3e8; }
#grupo.history-screen .watch-institutional strong { display: block; font-size: clamp(19px, 3vw, 40px); }
#grupo.history-screen .watch-institutional small { display: block; margin-top: 5px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    body.home-motion-sample #grupo.history-screen .institutional-video {
      clip-path: inset(0 var(--history-screen-inset, 0%) round 24px) !important;
      animation: history-screen-open linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}

@property --history-screen-inset {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@keyframes history-screen-open {
  from { --history-screen-inset: 11%; }
  to { --history-screen-inset: 0%; }
}

@media (max-width: 760px) {
  body.home-motion-sample #grupo.history-screen .intro-layout { grid-template-columns: 1fr; }
  body.home-motion-sample #grupo.history-screen .institutional-video { aspect-ratio: 16/9; }
}

/* Crop the muted preview to the panoramic frame while keeping playback 16:9 in the dialog. */
@media (min-width: 761px) {
  #grupo.history-screen .institutional-video iframe {
    inset: 50% 0 auto;
    height: 132.2%;
    transform: translateY(-50%);
  }
}

body.home-motion-sample #atuacao.presence::before {
  content: none;
}

body.home-motion-sample #grupo.history-screen .institutional-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, #07152bb8, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

body.home-motion-sample #grupo.history-screen .watch-institutional {
  background: transparent;
}

body.home-motion-sample #busca .cap-finder-hero {
  min-height: clamp(510px, 43vw, 610px);
}

@media (prefers-reduced-motion: no-preference) {
  body.home-motion-sample #busca .cap-finder-hero > img {
    animation: cap-finder-photo-drift 16s ease-in-out infinite alternate;
  }
}

@keyframes cap-finder-photo-drift {
  from { scale: 1; }
  to { scale: 1.04; }
}

body.home-motion-sample #segmentos .cap-sector-panel {
  min-height: 270px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
body.home-motion-sample #segmentos .cap-sector-panel p { margin: 0; }
body.home-motion-sample #segmentos .cap-sector-panel a {
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid #cbd8e9;
  padding-top: 9px;
}

body.home-motion-sample #grupo.history-screen .watch-institutional {
  align-items: center;
}

/* Align supporting copy with the title line below its section label. */
body.home-motion-sample #segmentos .cap-sector-heading,
body.home-motion-sample #grupo.history-screen .intro-layout {
  align-items: start;
}

@media (min-width: 761px) {
  body.home-motion-sample {
    --home-title-label-offset: 37px;
  }

  body.home-motion-sample #segmentos .cap-sector-heading > p,
  body.home-motion-sample #news .cap-universe-intro,
  body.home-motion-sample #grupo.history-screen .intro-copy {
    margin-top: var(--home-title-label-offset);
  }
}

#grupo.history-screen .watch-institutional > span:nth-child(2) {
  padding-bottom: 0;
}

/* A continuous horizontal wash across the map and the institutional film. */
body.home-motion-sample main :is(#atuacao.presence, #grupo.history-screen) {
  background: linear-gradient(90deg, #071329 0%, #0b1a32 63%, #102441 100%);
}

body.home-motion-sample #grupo.history-screen {
  border-top: 0;
}


