/* =========================================================
   Seções específicas de página (Home e Governo)
   ========================================================= */

/* ---------- HOME · Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(90,116,230,.16), rgba(90,116,230,0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(40,72,201,.08), rgba(40,72,201,0) 70%),
    linear-gradient(180deg, #f7f8fe 0%, #ffffff 100%);
  padding-block: var(--space-8) var(--space-6);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-7); align-items: center; }
.hero__copy { display: grid; gap: var(--space-5); align-content: start; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.grad-text {
  background: linear-gradient(90deg, var(--sasi-blue-deep), var(--sasi-blue) 50%, var(--sasi-blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: var(--fs-md); color: var(--sasi-muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__stats { margin-top: var(--space-7); }

/* Composição visual (placeholders) */
.hero-visual { position: relative; min-height: 460px; }
.hero-visual__photo { position: absolute; inset: 0 0 60px 60px; border-radius: var(--radius-lg); }
.hero-visual__phone { position: absolute; left: 0; bottom: 0; width: 190px; }
.hero-visual__chip {
  position: absolute; right: 18px; bottom: 18px; display: flex; gap: .75rem; align-items: center;
  background: var(--sasi-surface); border: 1px solid var(--sasi-line); border-radius: var(--radius-md);
  padding: .85rem 1rem; box-shadow: var(--shadow-md); max-width: 250px;
}
.hero-visual__chip strong { font-family: var(--font-display); font-size: var(--fs-sm); display: block; }
.hero-visual__chip span { font-size: var(--fs-xs); color: var(--sasi-muted); }
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
}
@media (max-width: 559px) {
  .hero { padding-block: var(--space-6) var(--space-5); }
  .hero-visual { min-height: 320px; }
  .hero-visual__photo { inset: 0 0 50px 40px; }
  .hero-visual__phone { width: 130px; }
  .hero-visual__chip { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* Logos logo abaixo da hero */
.clients { padding-block: var(--space-6) var(--space-7); border-bottom: 1px solid var(--sasi-line); }

/* ---------- HOME · Cases ---------- */
.case-media { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 12px 12px 0; height: 230px; }
.case-media .phone { border-radius: 22px; padding: 6px; aspect-ratio: auto; height: 100%; }
.case-media .phone::before { top: 11px; height: 10px; }
.case-media .phone__screen { border-radius: 17px; }
.case-media__photo { border-radius: var(--radius-sm); }
.case-client { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); color: var(--sasi-muted); }
.case-client img { height: 30px; width: auto; }

/* ---------- HOME · Soluções ---------- */
.solution .card__body { gap: var(--space-4); }
.solution__head { display: flex; align-items: center; gap: var(--space-4); }
.solution__media { height: 150px; margin: 12px 12px 0; border-radius: var(--radius-sm); }
.solutions-cta { display: flex; justify-content: center; margin-top: var(--space-6); }

/* ---------- HOME · Notícias ---------- */
.news__media { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; border-radius: var(--radius-md); }
.news { background: transparent; border: 0; }
.news:hover { transform: none; box-shadow: none; }
.news .card__body { padding: var(--space-4) 0 0; }
.news .card__title { font-size: var(--fs-md); line-height: 1.35; }
.news .card__title a:hover { color: var(--sasi-blue); }
.news .card__title a:focus-visible { outline: none; }
.news:focus-within .news__media { outline: 3px solid var(--sasi-blue); outline-offset: 3px; }

/* ---------- GOVERNO · Hero com grade de serviços ---------- */
.gov-hero { padding-block: var(--space-7); background: linear-gradient(180deg, #f7f8fe, #fff); }
.gov-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: center; }
.gov-hero__copy { display: grid; gap: var(--space-5); }
.gov-hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.gov-hero__title .accent { color: var(--sasi-blue); display: block; }
.gov-hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.gov-hero__stats li { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.gov-hero__stats li + li { border-left: 1px solid var(--sasi-line); padding-left: var(--space-5); }
.gov-hero__stats img { width: 44px; height: 44px; object-fit: contain; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 12px; list-style: none; margin: 0; padding: 0; }
.bento__tile {
  background: var(--sasi-surface); border: 1px solid var(--sasi-line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0;
  color: var(--sasi-ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.bento__tile:hover { transform: translateY(-2px); border-color: var(--sasi-blue); }
.bento__tile .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.bento__tile .icon-tile svg { width: 18px; height: 18px; }
.bento__tile span:last-child { font-family: var(--font-display); font-weight: 600; font-size: .84rem; line-height: 1.25; }
.bento__feature {
  grid-column: 2 / 4; grid-row: 2 / 4; position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--sasi-blue-deep), var(--sasi-blue) 70%, #4767e3);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.bento__feature::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); z-index: -1; }
.bento__feature strong { font-family: var(--font-display); font-size: var(--fs-lg); max-width: 11ch; line-height: 1.15; }
.bento__feature span { font-size: var(--fs-xs); color: rgba(255,255,255,.88); max-width: 22ch; }
.bento__feature .phone { position: absolute; right: 18px; top: 18px; width: 120px; padding: 6px; border-radius: 22px; box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.bento__feature .phone::before { top: 11px; height: 9px; }
.bento__feature .phone__screen { border-radius: 17px; }
.bento__feature .icon-tile { position: absolute; left: 22px; top: 22px; background: rgba(255,255,255,.14); color: #fff; }
.t-green { background: #e2f4ee !important; color: #0d6b4f !important; }
.t-amber { background: #fdf1de !important; color: #8a5300 !important; }
.t-violet { background: #efeafd !important; color: #5b3cc4 !important; }
.t-red { background: #fde9e8 !important; color: #b3261e !important; }
.t-slate { background: #e9edf3 !important; color: #334155 !important; }
@media (max-width: 1023px) { .gov-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .bento__feature { grid-column: 1 / -1; grid-row: auto / span 2; }
  .bento__feature .phone { width: 96px; }
  .gov-hero__stats li + li { border-left: 0; padding-left: 0; }
  .gov-hero .btn { width: 100%; }
}

/* ---------- GOVERNO · Soluções com imagem ---------- */
.solution-img { height: 150px; }
.solution-card .card__body { gap: var(--space-2); }
.solution-card .card__title { font-size: var(--fs-md); color: var(--sasi-blue-deep); }
.solution-card .card__foot { padding-top: var(--space-3); }

/* ---------- GOVERNO · Produto principal (Cidade na Mão) ---------- */
.flagship { background: radial-gradient(70% 90% at 85% 40%, #1f3a8f 0%, var(--sasi-navy) 60%); color: #fff; }
.flagship__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--space-7); align-items: center; }
.flagship .eyebrow { color: #a9b8ff; }
.flagship__title { font-size: var(--fs-2xl); color: #fff; font-weight: 700; }
.flagship__title .soft { color: #a9b8ff; display: block; }
.flagship__text { color: var(--sasi-on-dark-muted); font-size: var(--fs-md); max-width: 52ch; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4) var(--space-5); list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.features li { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.features .icon-tile { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.features .icon-tile svg { width: 18px; height: 18px; }
.flagship__stats { display: flex; gap: var(--space-5); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.14); list-style: none; margin: var(--space-2) 0 0; padding-left: 0; }
.flagship__stats li + li { border-left: 1px solid rgba(255,255,255,.14); padding-left: var(--space-5); }
.flagship__stats .stat__num { color: #fff; }
.flagship__stats .stat__label { color: var(--sasi-on-dark-muted); }
.flagship__copy { display: grid; gap: var(--space-5); }
.flagship__visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.flagship__visual .phone { width: 230px; }
.float-card {
  position: absolute; background: #fff; color: var(--sasi-ink); border-radius: var(--radius-md); box-shadow: 0 18px 40px rgba(0,0,0,.28);
  padding: .9rem 1rem; font-size: var(--fs-xs);
}
.float-card strong { font-family: var(--font-display); font-size: .84rem; display: block; }
.float-card--top { top: 40px; right: 0; display: flex; gap: .7rem; align-items: center; max-width: 230px; }
.float-card--top .icon-tile { width: 34px; height: 34px; background: var(--sasi-blue); color: #fff; }
.float-card--top .icon-tile svg { width: 16px; height: 16px; }
.float-card--top span { color: var(--sasi-muted); }
.float-card--list { left: 0; bottom: 30px; width: 230px; }
.float-card--list > span { color: var(--sasi-muted); display: block; margin: .15rem 0 .6rem; }
.toggle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.toggle-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 600; }
.switch { width: 32px; height: 18px; border-radius: 10px; background: #cfd5e3; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--sasi-blue); }
.switch.on::after { left: 16px; }
.add-sol { margin-top: .7rem; border: 1px dashed #b9c0d3; border-radius: 8px; text-align: center; padding: .35rem; color: var(--sasi-blue); font-weight: 600; }
@media (max-width: 1023px) { .flagship__grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .features { grid-template-columns: 1fr; }
  .flagship__visual { min-height: 420px; }
  .flagship__visual .phone { width: 180px; }
  .float-card--top { right: 0; top: 10px; max-width: 190px; }
  .float-card--list { width: 190px; bottom: 10px; }
}

/* ---------- GOVERNO · Cases (carrossel) ---------- */
.case-photo { height: 180px; }
.case-card .card__body { gap: var(--space-2); }
.case-card .card__title { font-size: var(--fs-lg); }
.case-card .org { font-size: var(--fs-xs); color: var(--sasi-muted); }
.case-card .kpis { margin-top: auto; }
.bento > li { display: flex; min-width: 0; }
.bento > li > .bento__tile { flex: 1; }
.bento__feature > :not(a) { pointer-events: none; }
.gov-hero__stats { gap: var(--space-3) var(--space-4); }
.gov-hero__stats li + li { padding-left: var(--space-4); }
.gov-hero__stats .stat__num { font-size: 1.35rem; }
@media (min-width: 1024px) { .gov-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* =========================================================
   HOME · ajustes da revisão 1
   ========================================================= */
.stat__seals { height: 80px; width: auto; border-radius: 10px; flex: none; }
@media (min-width: 900px) {
  .section-head__text:has(.one-line) { max-width: none; }
  .one-line { white-space: nowrap; }
}
.section--video { padding-bottom: var(--space-5); }
.section--video .section-head { margin-bottom: var(--space-5); }

/* Faixa de clientes em movimento */
.clients { padding-block: var(--space-6) var(--space-5); border-bottom: 1px solid var(--sasi-line); }
.logos__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); }
.marquee__toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .75rem;
  border: 1px solid var(--sasi-line); border-radius: var(--radius-pill); background: var(--sasi-surface);
  color: var(--sasi-muted); font-size: .75rem; font-weight: 600; cursor: pointer;
}
.marquee__toggle:hover { color: var(--sasi-blue); border-color: var(--sasi-blue); }
.marquee__toggle svg { width: 12px; height: 12px; }
.marquee { position: relative; margin-top: var(--space-3); }
.marquee__viewport {
  overflow: hidden; padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content; list-style: none; margin: 0; padding: 0;
  animation: marquee-scroll 55s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none; width: 196px; height: 108px; margin-right: 20px; padding: 14px 20px;
  display: grid; place-items: center; position: relative;
  background: var(--sasi-surface); border: 1px solid var(--sasi-line); border-radius: var(--radius-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .4s var(--ease), border-color .4s var(--ease);
}
.marquee__item img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
/* Efeito "holofote": o logo sob o mouse cresce e os demais recuam */
.marquee__track:hover .marquee__item { opacity: .5; }
.marquee__track .marquee__item:hover {
  opacity: 1; transform: scale(1.2) translateY(-4px); z-index: 2;
  border-color: rgba(40, 72, 201, .35); box-shadow: 0 18px 36px rgba(14, 26, 61, .16);
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (max-width: 619px) {
  .marquee__item { width: 150px; height: 90px; margin-right: 14px; padding: 10px 14px; }
  .marquee__item img { max-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__item[aria-hidden="true"] { display: none; }
  .marquee__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__toggle { display: none; }
}

/* Soluções com logotipo oficial */
.solution__head, .solution__logo { min-height: 64px; }
.solution__logo { display: flex; align-items: center; }
.solution__logo img { height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.solution__logo--tile { background: var(--sasi-bg-soft); border: 1px solid var(--sasi-line); border-radius: var(--radius-sm); padding: 10px 14px; width: fit-content; max-width: 100%; }
.solution__logo--tile img { height: 42px; max-width: none; width: auto; }
@media (max-width: 359px) { .solution__logo--tile img { height: 34px; } }

/* =========================================================
   HOME · ajustes da revisão 2
   ========================================================= */
/* Selos ISO lado a lado, à direita da faixa */
.stat--seals { justify-content: center; gap: var(--space-4); }
.stat--seals .stat__seal { width: 76px; height: 76px; object-fit: contain; }
@media (max-width: 860px) { .stat--seals { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--sasi-line); } }

/* Clientes sem título visível */
.clients { padding-block: var(--space-5); }
.marquee { margin-top: 0; }
.marquee__viewport:focus-visible { outline-offset: -3px; }
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Cards Governos / Empresas com foto e degradê (referência sasi.io) */
.audience-card { min-height: 300px; justify-content: center; padding: var(--space-7) var(--space-6); gap: var(--space-3); box-shadow: 0 18px 40px rgba(14, 26, 61, .14); }
.audience-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.audience-card--gov .audience-card__bg { object-position: 62% 40%; }
.audience-card--biz .audience-card__bg { object-position: 70% 35%; }
.audience-card:hover .audience-card__bg { transform: scale(1.04); }
.audience-card--gov::after {
  background:
    linear-gradient(90deg, rgba(37, 66, 196, .97) 0%, rgba(40, 72, 201, .90) 34%, rgba(52, 86, 214, .62) 62%, rgba(70, 104, 226, .28) 100%),
    linear-gradient(0deg, rgba(20, 40, 140, .35), rgba(20, 40, 140, 0) 55%);
}
.audience-card--biz::after {
  background:
    linear-gradient(90deg, rgba(14, 26, 61, .97) 0%, rgba(14, 26, 61, .90) 34%, rgba(18, 32, 74, .66) 62%, rgba(24, 40, 88, .30) 100%),
    linear-gradient(0deg, rgba(8, 16, 40, .35), rgba(8, 16, 40, 0) 55%);
}
.audience-card h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); }
.audience-card p { max-width: 40ch; font-size: var(--fs-md); }
.audience-card__link { width: fit-content; padding-bottom: 4px; border-bottom: 2px solid rgba(255,255,255,.55); }
.audience-card__link:hover { border-color: #fff; }

/* Título do vídeo menor, em uma linha */
.section-title--md { font-size: clamp(1.05rem, 4.4vw, 2rem); white-space: nowrap; }

/* =========================================================
   HOME · ajustes da revisão 4
   ========================================================= */
/* Hero: degradê do branco para um azul vivo (sem imagem por enquanto) */
.hero--blue {
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(40, 72, 201, .55), rgba(40, 72, 201, 0) 70%),
    radial-gradient(45% 60% at 92% 95%, rgba(90, 116, 230, .45), rgba(90, 116, 230, 0) 70%),
    linear-gradient(100deg, #ffffff 0%, #ffffff 34%, #e6ebff 52%, #a9baf5 72%, #5a74e6 90%, #3b5bdb 100%);
}
@media (max-width: 1023px) {
  .hero--blue { background: linear-gradient(180deg, #ffffff 0%, #ffffff 30%, #dfe6ff 55%, #8ea3f0 80%, #4d69e0 100%); }
}

/* Estrelas da avaliação */
.stars { display: inline-flex; gap: 2px; margin-left: .35rem; color: var(--sasi-star); }
.stars svg { width: 17px; height: 17px; }

/* Soluções: grade compacta de 4 colunas */
.solutions-grid .card__body { padding: var(--space-4) var(--space-4) var(--space-4); gap: var(--space-3); }
.solutions-grid .solution__logo, .solutions-grid .solution__head { min-height: 56px; }
.solutions-grid .solution__logo img { height: 52px; }
.solutions-grid .solution__logo--tile img { height: 34px; }
.solutions-grid .card__title { font-size: var(--fs-md); }
.solutions-grid .card__text { font-size: .875rem; line-height: 1.5; }
.solutions-grid .icon-tile { width: 44px; height: 44px; }

/* Vídeo: só o link para o YouTube, à direita */
.video-meta--end { justify-content: flex-end; }

/* Notícias em carrossel com setas nas laterais */
.news-carousel { position: relative; }
.news-carousel .carousel__track { padding-inline: 4px; }
.news-carousel .news { height: 100%; }
img.news__media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); background: var(--sasi-tint); }
.news .ph.news__media { aspect-ratio: 16 / 10; }
.news .card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news .card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news .card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.news__source { font-size: .75rem; color: var(--sasi-muted); }
.news:hover img.news__media { filter: brightness(1.04); }
.carousel__arrow {
  position: absolute; top: calc(var(--news-img-h, 140px)); z-index: 3; translate: 0 -50%;
  width: 52px; height: 52px; background: var(--sasi-surface); box-shadow: var(--shadow-md);
}
.carousel__arrow--prev { left: -18px; }
.carousel__arrow--next { right: -18px; }
.carousel__arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 1279px) { .carousel__arrow--prev { left: 6px; } .carousel__arrow--next { right: 6px; } }

/* =========================================================
   HOME · ajustes da revisão 5
   ========================================================= */
/* Hero: carrossel de cases (foto ao fundo + tela do app + balão) */
.hero-cases { position: relative; min-width: 0; }
.hero-cases__stage { position: relative; height: 470px; }
.hero-case { position: absolute; inset: 0; margin: 0; visibility: hidden; opacity: 0; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.hero-case.is-active { visibility: visible; opacity: 1; transition: opacity .7s var(--ease), visibility 0s; }
.hero-case__photo {
  position: absolute; top: 0; right: 0; bottom: 56px; left: 70px; width: calc(100% - 70px); height: calc(100% - 56px);
  object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(14, 26, 61, .22);
  transform: scale(1.04); transition: transform 6s ease-out;
}
.hero-case.is-active .hero-case__photo { transform: scale(1); }
.hero-case__phone {
  position: absolute; left: 0; bottom: 0; width: auto; height: 400px; max-width: 48%; object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(14, 26, 61, .35));
  transform: translateY(24px); opacity: 0; transition: transform .8s var(--ease) .15s, opacity .8s var(--ease) .15s;
}
.hero-case.is-active .hero-case__phone { transform: none; opacity: 1; }
.hero-case__chip {
  position: absolute; right: 20px; bottom: 20px; width: min(300px, 52%);
  display: grid; gap: .2rem; padding: 1rem 1.15rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .97); border: 1px solid var(--sasi-line); box-shadow: var(--shadow-md);
  transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease) .3s, opacity .7s var(--ease) .3s;
}
.hero-case.is-active .hero-case__chip { transform: none; opacity: 1; }
.hero-case__eyebrow { font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sasi-blue); }
.hero-case__chip strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--sasi-ink); line-height: 1.2; }
.hero-case__chip span:last-child { font-size: var(--fs-xs); color: var(--sasi-muted); line-height: 1.45; }
.hero-cases__controls { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: var(--space-4); padding-right: 20px; }
.hero-cases__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-cases__dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(14, 26, 61, .25); transition: width .3s var(--ease), background-color .3s var(--ease); }
.hero-cases__dot[aria-current="true"]::before { width: 26px; background: #fff; }
.hero-cases__toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(14, 26, 61, .25); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-cases__toggle svg { width: 12px; height: 12px; }
@media (max-width: 1023px) {
  .hero-cases__stage { height: 420px; }
  .hero-cases__dot::before { background: rgba(40, 72, 201, .35); box-shadow: none; }
  .hero-cases__dot[aria-current="true"]::before { background: var(--sasi-blue); }
  .hero-cases__toggle { background: var(--sasi-blue); }
}
@media (max-width: 559px) {
  .hero-cases__stage { height: 380px; }
  .hero-case__photo { left: 34px; width: calc(100% - 34px); bottom: 70px; height: calc(100% - 70px); }
  .hero-case__phone { height: 280px; }
  .hero-case__chip { right: 0; bottom: 0; width: 60%; padding: .75rem .85rem; }
  .hero-case__chip strong { font-size: var(--fs-md); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-case__photo, .hero-case.is-active .hero-case__photo { transform: none; }
}

/* Selos ISO + legenda */
.stat--seals { flex-direction: column; gap: .35rem; }
.stat__seals-row { display: flex; gap: var(--space-4); justify-content: center; }
.stat--seals .stat__label { margin-top: 0; text-align: center; }

/* Faixa de clientes depois dos cards (sem borda inferior) */
.clients { border-bottom: 0; padding-block: 0 var(--space-7); }

/* Assistente: botão vermelho com o mascote */
.assistant-launcher {
  position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.assistant-launcher .assistant-fab { position: relative; right: auto; bottom: auto; }
.assistant-fab {
  background: #d32f2f; padding: 0 1.3rem 0 6px; min-height: 64px; gap: .7rem; font-size: var(--fs-md);
  box-shadow: 0 14px 34px rgba(211, 47, 47, .42);
}
.assistant-fab:hover { background: #b71c1c; }
.assistant-fab__avatar {
  position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.assistant-fab__avatar img { width: 100%; height: 100%; object-fit: cover; }
.assistant-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); animation: fab-pulse 2.4s ease-out infinite;
}
.assistant-fab { position: relative; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .5); } 70% { box-shadow: 0 0 0 16px rgba(211, 47, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } }
.assistant-hello {
  max-width: 240px; padding: .7rem .9rem; border-radius: 14px 14px 4px 14px; background: var(--sasi-surface);
  border: 1px solid var(--sasi-line); box-shadow: var(--shadow-md); font-size: .85rem; line-height: 1.4; color: var(--sasi-ink);
  animation: hello-in .4s var(--ease);
}
@keyframes hello-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.assistant-open .assistant-launcher { display: none; }
.assistant__avatar { background: #fff; overflow: hidden; width: 44px; height: 44px; }
.assistant__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 479px) {
  .assistant-fab__text { display: none; }
  .assistant-fab { padding: 0; width: 64px; justify-content: center; }
  .assistant-fab__avatar { width: 54px; height: 54px; }
}
@media (max-width: 619px) { .assistant-hello { display: none; } }

/* =========================================================
   HOME · ajustes da revisão 6 — foto do case mais larga (formato 3:2)
   ========================================================= */
@media (min-width: 1024px) {
  .hero--blue .hero__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--space-6); }
  .hero-cases__stage { height: 500px; }
  .hero-case__photo { left: 96px; width: calc(100% - 96px); bottom: 58px; height: calc(100% - 58px); }
  .hero-case__phone { left: -28px; height: 400px; max-width: none; }
  .hero-case__chip { right: 16px; bottom: 16px; width: min(300px, 46%); }
}

/* =========================================================
   HOME · ajustes da revisão 7 — case agrupado e menor, degradê na página toda
   ========================================================= */
.hero--blue {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(40, 72, 201, .45), rgba(40, 72, 201, 0) 70%),
    linear-gradient(100deg, #f3f6ff 0%, #dfe6fd 22%, #bccaf8 48%, #8ea3f0 72%, #5a74e6 90%, #3f5edc 100%);
}
@media (max-width: 1023px) {
  .hero--blue { background: linear-gradient(180deg, #f3f6ff 0%, #d9e1fc 35%, #9fb1f2 70%, #5a74e6 100%); }
}
@media (min-width: 1024px) {
  .hero--blue .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .hero-cases { width: 100%; max-width: 600px; justify-self: end; }
  .hero-cases__stage { height: 420px; }
  .hero-case__photo { left: 70px; width: calc(100% - 70px); bottom: 54px; height: calc(100% - 54px); }
  .hero-case__phone { left: 0; height: 330px; }
  .hero-case__chip { left: 184px; right: auto; bottom: 14px; width: 270px; }
}
.hero-case__chip { padding: .85rem 1rem; }
.hero-case__chip strong { font-size: var(--fs-md); }
@media (max-width: 1023px) {
  .hero-cases { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-cases__stage { height: 380px; }
  .hero-case__phone { height: 300px; }
  .hero-case__chip { left: 170px; right: auto; bottom: 10px; width: min(270px, calc(100% - 175px)); }
}
@media (max-width: 559px) {
  .hero-cases__stage { height: 340px; }
  .hero-case__photo { left: 40px; width: calc(100% - 40px); bottom: 64px; height: calc(100% - 64px); }
  .hero-case__phone { height: 240px; }
  .hero-case__chip { left: 124px; bottom: 0; width: calc(100% - 124px); }
  .hero-case__chip span:last-child { font-size: .75rem; }
}

/* =========================================================
   GOVERNO · revisão 1
   ========================================================= */
.gov-hero__stats li + li { border-left: 1px solid var(--sasi-line); padding-left: var(--space-5); }
.gov-hero__stats .stat__num { font-size: 1.5rem; }

/* Destaque Cidade na Mão com logo e mockup */
.bento__feature { padding: 20px; justify-content: space-between; }
.bento__feature-link { position: absolute; inset: 0; border-radius: inherit; z-index: 2; }
.bento__feature-link:focus-visible { outline-offset: -4px; outline-color: #fff; }
.bento__logo { background: #fff; border-radius: 12px; padding: 8px 12px; width: fit-content; box-shadow: 0 6px 16px rgba(14, 26, 61, .2); position: relative; z-index: 1; }
.bento__logo img { height: 40px; width: auto; display: block; }
.bento__phone { position: absolute; right: 14px; top: 14px; bottom: -40px; height: calc(100% + 26px); width: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .3)); }
.bento__text { position: relative; z-index: 1; max-width: 52%; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); line-height: 1.3; color: #fff; }
@media (max-width: 559px) {
  .bento__logo img { height: 32px; }
  .bento__text { font-size: .9rem; max-width: 58%; }
  .bento__phone { right: 8px; }
}

/* Soluções em uma linha com setas */
.sol-carousel { position: relative; }
.sol-track { grid-auto-columns: calc((100% - 3 * var(--space-5)) / 4); }
@media (max-width: 1023px) { .sol-track { grid-auto-columns: calc((100% - var(--space-5)) / 2); } }
@media (max-width: 619px) { .sol-track { grid-auto-columns: 82%; } }
.sol-carousel .carousel__arrow { top: 50%; }
.sol-track > li[hidden] { display: none; }
@media (max-width: 559px) { .gov-hero__stats li + li { border-left: 0; padding-left: 0; } }

/* Vídeo institucional nativo (MP4) */
.video--native video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--sasi-navy); }
.video__sound {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: 0 .9rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: rgba(14, 26, 61, .72); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px);
}
.video__sound:hover { background: rgba(14, 26, 61, .9); }
.video__sound svg { width: 18px; height: 18px; }

/* =========================================================
   Ajustes de celular (revisão mobile)
   ========================================================= */
@media (max-width: 619px) {
  /* Soluções da Home em 2 colunas compactas */
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .solutions-grid .card__body { padding: 12px; gap: 8px; }
  .solutions-grid .solution__logo, .solutions-grid .solution__head { min-height: 44px; }
  .solutions-grid .solution__logo img { height: 38px; }
  .solutions-grid .solution__logo--tile { padding: 6px 8px; }
  .solutions-grid .solution__logo--tile img { height: 24px; }
  .solutions-grid .solution__head { gap: 8px; }
  .solutions-grid .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
  .solutions-grid .icon-tile svg { width: 18px; height: 18px; }
  .solutions-grid .card__title { font-size: .9rem; }
  .solutions-grid .card__text { font-size: .8rem; line-height: 1.4; }
  .solutions-grid .link-arrow--caps { font-size: .68rem; }
  .solutions-cta .btn { width: 100%; }

  /* Rodapé: navegação e soluções lado a lado; links com área de toque maior */
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); padding-block: var(--space-7) var(--space-5); }
  .footer-top > .footer-brand, .footer-top > div:last-child { grid-column: 1 / -1; }
  .footer-list { gap: 0; }
  .footer-list a { display: inline-block; padding-block: 8px; }
  .footer-legal a { display: inline-block; padding-block: 8px; }

  /* Governo: cards flutuantes do Cidade na Mão menores */
  .float-card { font-size: .7rem; padding: .7rem .8rem; }
}

/* =========================================================
   HOME · revisão 8 — Hero cabe na tela + grafismos de cidades
   ========================================================= */
.hero--blue { position: relative; isolation: isolate; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }

/* Grafismos (linhas finas) atrás do conteúdo, entre o texto e os cases */
.hero-skylines {
  position: absolute; z-index: 0; pointer-events: none;
  left: 24%; right: -2%; top: 6%; bottom: 120px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); 
}
.hero-skyline {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  opacity: 0; transform: translateY(8px) scale(1.01);
  transition: opacity 1.4s var(--ease), transform 6s ease-out;
}
.hero-skyline.is-active { opacity: .34; transform: none; }
.hero-skyline[src$=".png"].is-active { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .hero-skyline { transition: none; transform: none; } }

/* Indicadores em 4 colunas (selos à direita) */
.hero__stats .stat { padding: 16px 22px; }
.hero__stats .stat__num { font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem); }
.hero__stats .stat--seals .stat__seal { width: 52px; height: 52px; }
.hero__stats .stat__seals-row { gap: 10px; }
@media (max-width: 860px) {
  .hero__stats .stat--seals { grid-column: auto; border-top: 1px solid var(--sasi-line); }
  .hero__stats .stat:nth-child(even) { border-left: 1px solid var(--sasi-line) !important; }
  .hero__stats .stat:nth-child(odd) { border-left: 0 !important; }
}
@media (max-width: 479px) {
  .hero__stats .stat:nth-child(even) { border-left: 0 !important; }
}

/* Controles do carrossel por cima da foto (economiza altura) */
.hero-cases__controls {
  position: absolute; z-index: 3; top: 12px; right: 12px; margin: 0; padding: 2px 6px;
  border-radius: var(--radius-pill); background: rgba(14, 26, 61, .38); backdrop-filter: blur(6px);
}
.hero-cases__dot { width: 22px; height: 28px; }
.hero-cases__dot::before { background: rgba(255,255,255,.6); box-shadow: none; }
.hero-cases__dot[aria-current="true"]::before { background: #fff; width: 20px; }
.hero-cases__toggle { width: 28px; height: 28px; background: transparent; border-color: rgba(255,255,255,.6); }
.hero-cases { position: relative; }

/* Desktop: toda a seção 1 visível sem rolar */
@media (min-width: 1024px) {
  .hero--blue {
    --stage-h: clamp(270px, calc(100vh - var(--header-h) - 250px), 440px);
    padding-block: clamp(16px, 3vh, 32px) clamp(16px, 2.6vh, 28px);
  }
  .hero__title { font-size: clamp(2.2rem, 6.2vh, 3.4rem); }
  .hero__copy { gap: var(--space-4); }
  .hero__text { font-size: clamp(.95rem, 1.9vh, 1.0625rem); }
  .hero--blue .hero__grid { gap: var(--space-6); }
  .hero-cases { max-width: calc(var(--stage-h) * 1.5); }
  .hero-cases__stage { height: var(--stage-h); }
  .hero-case__photo { left: calc(var(--stage-h) * .17); width: calc(100% - var(--stage-h) * .17); bottom: calc(var(--stage-h) * .12); height: calc(var(--stage-h) * .88); }
  .hero-case__phone { height: calc(var(--stage-h) * .8); }
  .hero-case__chip { left: calc(var(--stage-h) * .44); bottom: 6px; width: min(270px, calc(100% - var(--stage-h) * .46)); padding: .7rem .9rem; }
  .hero-case__chip strong { font-size: clamp(.95rem, 2vh, 1.0625rem); }
  .hero-case__chip span:last-child { font-size: .75rem; }
  .hero__stats { margin-top: clamp(14px, 2.6vh, 28px); }
}
@media (max-width: 1023px) {
  .hero-skylines { left: -10%; right: -10%; top: 0; bottom: auto; height: 300px; }
}
@media (min-width: 1024px) {
  .hero-skylines { left: 16%; right: 18%; top: 4%; bottom: 110px; }
}
.hero-skyline[src$=".png"].is-active { opacity: .26; }
@media (max-width: 1023px) {
  .hero-skyline.is-active, .hero-skyline[src$=".png"].is-active { opacity: .16; }
}
@media (max-width: 479px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats .stat { padding: 14px 14px; }
  .hero__stats .stat:nth-child(even) { border-left: 1px solid var(--sasi-line) !important; }
  .hero__stats .stat:nth-child(n+3) { border-top: 1px solid var(--sasi-line); }
  .hero__stats .stat__label { font-size: .75rem; }
  .hero__stats .stat--seals .stat__seal { width: 44px; height: 44px; }
  .hero__stats .stars svg { width: 13px; height: 13px; }
}
@media (max-width: 479px) { .hero__stats .stat__num { font-size: 1.2rem; white-space: nowrap; } }

/* =========================================================
   Revisão 9 (PDF de correções) — Home e Governo
   ========================================================= */
.nowrap { white-space: nowrap; }
@media (max-width: 1023px) { .br-desk { display: none; } }

/* Governo · indicadores num balão só, alinhado à base do bento */
@media (min-width: 1024px) {
  .gov-hero__grid { align-items: stretch; }
  .gov-hero__copy { align-content: center; grid-template-rows: auto auto auto auto 1fr; }
  .gov-kpis { align-self: end; }
}
.gov-hero .gov-kpis {
  display: flex; align-items: center; gap: var(--space-5); width: fit-content; max-width: 100%;
  list-style: none; margin: var(--space-2) 0 0; padding: 16px 26px;
  background: var(--sasi-surface); border: 1px solid var(--sasi-line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.gov-kpis li { min-width: 0; }
.gov-kpis li + li { border-left: 1px solid var(--sasi-line); padding-left: var(--space-5); }
.gov-kpis__num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--sasi-ink); display: flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.gov-kpis__num .stars { margin-left: 0; }
.gov-kpis__num .stars svg { width: 15px; height: 15px; }
.gov-kpis__label { font-size: var(--fs-xs); color: var(--sasi-muted); margin-top: .2rem; }
@media (max-width: 400px) { .gov-hero .gov-kpis { gap: var(--space-4); padding: 12px 14px; } .gov-kpis li + li { padding-left: var(--space-4); } .gov-kpis__num { font-size: 1.25rem; } }

/* Mega menu em 5 categorias */
@media (min-width: 1024px) { .mega__inner--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); } }

/* Tela real do app no Cidade na Mão */
.phone__screen--img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Cases com foto real */
img.case-photo { display: block; width: 100%; height: 190px; object-fit: cover; }
.kpis--one { grid-template-columns: 1fr; }

/* Rodapé · Segurança e Privacidade + Baixe o App */
.footer-title--spaced { margin-top: var(--space-5); }
.store-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; text-decoration: none;
}
.site-footer .store-badge:hover { border-color: #fff; text-decoration: none; color: #fff; }
.store-badge svg { width: 20px; height: 20px; flex: none; }
.store-badge span { display: grid; line-height: 1.1; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.store-badge small { font-family: var(--font-body); font-weight: 400; font-size: .62rem; letter-spacing: .02em; opacity: .85; }
.footer-cta { margin-top: var(--space-5); width: fit-content; }
.office .tel { margin-top: var(--space-3); line-height: 1.65; }
.office .tel a { color: #fff; }
.gov-hero__title .line { display: block; }
.gov-hero__title .line--big { font-size: 1.22em; line-height: 1; }
.gov-hero__title .accent { margin-top: .12em; }
@media (min-width: 1024px) {
  .gov-hero__title { font-size: clamp(1.6rem, 2.3vw, 2.35rem); }
  .gov-hero__title .line { white-space: nowrap; }
  .gov-hero__title .line--big { font-size: clamp(2.3rem, 3.6vw, 3.6rem); letter-spacing: -.03em; line-height: 1.04; }
  .gov-hero__copy { gap: var(--space-4); }
  .gov-hero__copy .hero__text { margin-top: 4px; }
}
.clients { padding-bottom: var(--space-5); }
.section--video { padding-top: var(--space-5); }
