/* ===== Grupo Dom Giovani — identidade: azul royal + vermelho-laranja do losango ===== */
:root {
  --blue-900: #05263f;
  --blue-800: #004578;
  --blue-700: #045a93;
  --blue-600: #0672b3;
  --blue-50: #e8f2fa;
  --accent: #eb3237;
  --accent-600: #c9242a;
  --ink: #0f1d2b;
  --muted: #55657a;
  --line: #d9e3ec;
  --bg: #ffffff;
  --tint: #f2f6fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(4, 38, 64, .12);
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --losango-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='6.5'%3E%3Cpath stroke-linejoin='miter' d='M51 5 6 50 51 95'/%3E%3Cpath d='M51 5l19 19M66 5l19 19M81 5l16 16M51 95l19-19M66 95l19-19M81 95l16-16'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue-700); }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; text-transform: uppercase; color: var(--blue-800); }
h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; text-transform: uppercase; color: var(--blue-800); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; line-height: 1; color: var(--blue-800); margin: 0 0 .5em; display: flex; align-items: center; gap: 0; }
.eyebrow::before { content: ""; width: 3em; height: 3em; margin-right: -1.45em; flex: none; background: var(--accent);
  -webkit-mask: var(--losango-mask) center / contain no-repeat; mask: var(--losango-mask) center / contain no-repeat; }
.eyebrow--light { color: #d6e4f3; }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.15 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .8em 1.7em; font-size: 1.06rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); }
.btn--primary { background: var(--blue-700); color: #fff; }
.btn--primary:hover { background: var(--blue-800); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--blue-800); }
.btn--outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-700); color: #fff; }

/* ===== Cabeçalho ===== */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .25s, box-shadow .25s; }
.topbar.scrolled, body.menu-open .topbar { background: var(--blue-900); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.topbar__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.12); }
.nav__sabesp { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.topbar__cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 11px; }
.menu-btn span { display: block; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .topbar__cta { display: none; }
  .nav { position: fixed; inset: 70px 0 0 0; background: var(--blue-900); flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px; margin: 0; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-family: var(--head); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .nav__sabesp { box-shadow: none; color: #ffb4a6 !important; }
}

/* ===== Abertura ===== */
.hero { position: relative; min-height: clamp(520px, 72svh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--blue-900); }
/* Slideshow da capa: fusão cruzada + zoom lento (Ken Burns) + cortina diagonal */
.hero__slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__shade, .hero__grain { z-index: 1; }
.hero__in { z-index: 2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; will-change: opacity; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img { object-fit: cover; object-position: var(--pos, center); transform: scale(1.06) translate3d(var(--kx, 0), var(--ky, 0), 0); transform-origin: var(--origin, center); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img, .slide.is-leaving img { animation: kenburns 3s cubic-bezier(.25,.1,.25,1) forwards; }
.slide.is-leaving { opacity: 1; z-index: 0; }
.slide.is-active::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, rgba(232,70,47,0) 40%, rgba(232,70,47,.55) 50%, rgba(37,70,196,.5) 52%, rgba(37,70,196,0) 62%); background-size: 300% 100%; animation: sweep .9s ease-out forwards; mix-blend-mode: screen; pointer-events: none; }
.slide:nth-child(odd)  { --origin: 30% 40%; --kx: .8%; --ky: .4%; }
.slide:nth-child(even) { --origin: 70% 60%; --kx: -.8%; --ky: -.4%; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(var(--kx), var(--ky), 0); }
  to   { transform: scale(1) translate3d(0, 0, 0); }
}
@keyframes sweep { from { background-position: 100% 0; opacity: 1; } to { background-position: 0 0; opacity: 0; } }
@media (max-width: 760px) { .slide img { object-position: var(--pos-m, center); } .slide__bg { display: none; } }
/* Fotos verticais no computador: foto inteira à direita, fundo desfocado da própria foto */
@media (min-width: 761px) {
  .slide__bg { position: absolute; inset: -60px; background-position: center; background-size: cover; filter: blur(30px) saturate(1.15) brightness(.65); }
  .slide--portrait picture { left: auto; right: 72px; width: min(46%, 640px); }
  .slide--portrait img { object-position: var(--pos, center); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
}

.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }

/* Indicadores */
.hero__nav { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__dots { display: flex; flex-direction: column; gap: 8px; }
.hero__dot { position: relative; width: 4px; height: 30px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; }
.hero__dot::before { content: ""; position: absolute; inset: -10px -14px; }
.hero__dot i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--accent); }
.hero__dot.is-done i { height: 100%; background: #fff; }
.hero__dot.is-active i { animation: fill var(--dur, 2s) linear forwards; }
.hero.paused .hero__dot.is-active i, .hero.paused .slide.is-active img { animation-play-state: paused; }
@keyframes fill { to { height: 100%; } }
.hero__count { font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .08em; writing-mode: vertical-rl; color: rgba(255,255,255,.75); }
.hero__count b { color: #fff; }
.hero__pause { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(4,38,64,.3); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero__pause span { width: 10px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero.paused .hero__pause span { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* Etiqueta do segmento da foto atual */
.hero__tag { position: absolute; z-index: 3; right: var(--gutter); bottom: 30px; margin: 0; display: flex; align-items: center; gap: .55em; font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); pointer-events: none; }
.hero__tag::before { content: ""; width: 1.6em; height: 1.6em; flex: none; background: var(--accent); -webkit-mask: var(--losango-mask) center / contain no-repeat; mask: var(--losango-mask) center / contain no-repeat; }
.hero__tag span { animation: tagIn .5s ease both; }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero__tag { top: 122px; bottom: auto; left: var(--gutter); right: auto; font-size: .82rem; } }

/* Entrada do texto */
.hero__in--anim > * { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__in--anim > :nth-child(1) { animation-delay: .15s; }
.hero__in--anim > :nth-child(2) { animation-delay: .3s; }
.hero__in--anim > :nth-child(3) { animation-delay: 1.55s; }
.hero__in--anim > :nth-child(4) { animation-delay: 1.75s; }
/* Título e frase: entram palavra por palavra (o JS divide o texto) */
.hero__in--anim > .split { opacity: 1; transform: none; animation: none; }
.split .nw { white-space: nowrap; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.split--title .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; animation: wordUp .85s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); }
.split--lead .w > span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.35em); animation: wordIn .6s ease-out forwards; animation-delay: var(--d); }
@keyframes wordUp { to { transform: none; } }
@keyframes wordIn { to { opacity: 1; filter: none; transform: none; } }
/* Sublinhado laranja que se desenha sob cada serviço */
.split--title .term { font-style: normal; position: relative; display: inline-block; }
.split--title .term::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .085em; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: lineIn .55s cubic-bezier(.6,0,.2,1) forwards; animation-delay: var(--ld); }
@keyframes lineIn { to { transform: scaleX(1); } }
.hero__lead strong { color: #fff; font-weight: 700; background: linear-gradient(transparent 62%, rgba(232,70,47,.55) 62%) no-repeat; background-size: 0% 100%; animation: mark .7s ease forwards; animation-delay: var(--md, 1.6s); }
@keyframes mark { to { background-size: 100% 100%; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero__nav { top: auto; bottom: auto; transform: none; top: 86px; right: var(--gutter); flex-direction: row; }
  .hero__dots { flex-direction: row; }
  .hero__dot { width: 16px; height: 4px; }
  .hero__dot i { top: 0; bottom: 0; height: auto; width: 0; }
  .hero__dot.is-done i { width: 100%; }
  .hero__dot.is-active i { animation-name: fillx; }
  .hero__count { writing-mode: horizontal-tb; }
  .hero__pause { width: 30px; height: 30px; }
}
@keyframes fillx { to { width: 100%; } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(4,38,64,.55) 0%, rgba(4,38,64,.05) 28%, rgba(4,38,64,.35) 55%, rgba(4,38,64,.92) 100%),
  linear-gradient(90deg, rgba(4,38,64,.55) 0%, rgba(4,38,64,0) 65%); }
.hero__in { position: relative; padding-top: 104px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.1rem, min(5vw, 7vh), 4rem); font-weight: 800; text-transform: uppercase; max-width: 19ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 40em; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.28); padding-top: 22px; }
.hero__stats div { padding-right: clamp(20px, 5vw, 56px); }
.hero__stats div + div { padding-left: clamp(20px, 5vw, 56px); border-left: 1px solid rgba(255,255,255,.28); }
.hero__stats dt { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; }
.hero__stats dd { margin: 4px 0 0; font-size: .95rem; opacity: .85; }
@media (max-width: 760px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats div { padding-right: 14px; }
  .hero__stats div + div { padding-left: 14px; }
  .hero__stats dd { font-size: .82rem; line-height: 1.3; }
}

/* ===== Seções ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--blue-900); color: #e8ecfa; }
.section--dark h2 { color: #fff; }
.section--brand { background: linear-gradient(135deg, #004578 0%, #045a93 45%, #0672b3 100%); color: #fff; }
.section--brand h2 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head > p:last-child { color: var(--muted); font-size: 1.1rem; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__head--row h2 { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__text p:not(.eyebrow) { color: #333a52; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.about__main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about__side { aspect-ratio: 4 / 3; }
.about__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Segmentos — índice */
.seg-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: clamp(48px, 7vw, 88px); }
.seg-index a { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.seg-index img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.seg-index a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,38,64,.9)); }
.seg-index span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-family: var(--head); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.7rem); text-transform: uppercase; line-height: 1; }
.seg-index a:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .seg-index { grid-template-columns: 1fr 1fr; }
  .seg-index a { aspect-ratio: 4 / 3; }
}

/* Segmentos — blocos */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.seg + .seg { margin-top: clamp(64px, 9vw, 112px); }
.seg--rev .seg__cover { order: 2; }
.seg__cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.seg__cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.seg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.seg__video.is-playing { opacity: 1; }
.seg__vbtn { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(5,38,63,.6); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.seg__vbtn:hover { background: rgba(5,38,63,.85); }
.seg__vbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.seg__vbtn svg { width: 18px; height: 18px; fill: currentColor; }
.seg__vbtn .i-play, .seg__vbtn.is-paused .i-pause { display: none; }
.seg__vbtn.is-paused .i-play { display: inline; }
.seg__num { position: absolute; left: 18px; top: 12px; font-family: var(--head); font-weight: 800; font-size: 4rem; color: #fff; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.seg__body p { color: #333a52; font-size: 1.08rem; }
.seg__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 28px; }
.seg__gallery--3 { grid-template-columns: repeat(3, 1fr); }
.seg__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: opacity .2s; }
.seg__gallery img:hover { opacity: .85; }
@media (max-width: 860px) {
  .seg { grid-template-columns: 1fr; }
  .seg--rev .seg__cover { order: 0; }
  .seg__cover { aspect-ratio: 4 / 3; }
  .seg__body .btn { width: 100%; }
}
@media (max-width: 480px) { .seg__gallery { grid-template-columns: repeat(2, 1fr); } .seg__gallery--3 { grid-template-columns: repeat(3, 1fr); } }

/* Onde atuamos */
.where { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.where__strip { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 10px; }
.where__strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.where__strip img:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.where__strip img:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.where__strip img:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.where__strip img:nth-child(4) { grid-column: span 2; }
.where__strip img:nth-child(5) { grid-column: span 2; }
@media (max-width: 900px) { .where { grid-template-columns: 1fr; } .where__strip { grid-auto-rows: 90px; } }
/* Atendimento Sabesp */
.sab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sab-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sab-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.sab-card svg { width: 40px; height: 40px; color: var(--blue-700); background: var(--blue-50); padding: 8px; border-radius: 10px; }
.sab-card strong { font-family: var(--head); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; color: var(--blue-800); line-height: 1; }
.sab-card__go { margin-top: auto; font-weight: 700; color: var(--blue-700); font-size: .98rem; }
.sab-card__go i { font-style: normal; }
.sab-more { margin-top: 18px; border-radius: var(--radius); background: var(--tint); border: 1.5px solid var(--line); }
.sab-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-size: 1.05rem; }
.sab-more summary::-webkit-details-marker { display: none; }
.sab-more summary strong { color: var(--blue-800); }
.sab-more summary i { width: 12px; height: 12px; border-right: 2.5px solid var(--blue-700); border-bottom: 2.5px solid var(--blue-700); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -6px; }
.sab-more[open] summary i { transform: rotate(-135deg); margin-top: 6px; }
.sab-list { list-style: none; margin: 0; padding: 0 22px 10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.sab-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.sab-list li > span:first-child { font-size: .88rem; color: var(--muted); }
.sab-list a { font-weight: 700; text-decoration: none; }
.sab-list a:hover { text-decoration: underline; }
.sab-list__multi { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sab-note { margin-top: 18px; font-size: .92rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 760px) {
  .sab-cards { grid-template-columns: 1fr; gap: 10px; }
  .sab-card { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 18px; gap: 4px 14px; }
  .sab-card svg { width: 44px; height: 44px; }
  .sab-card strong { font-size: 1.45rem; flex: 1; }
  .sab-card__go { flex-basis: 100%; margin: 0; padding-left: 58px; font-size: .92rem; }
  .sab-list { grid-template-columns: 1fr; }
}

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ig-grid > img, .ig-post img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.ig-grid > img { cursor: zoom-in; }
.ig-post { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.ig-post img { transition: transform .4s ease, filter .3s; }
.ig-post:hover img { transform: scale(1.04); filter: brightness(.9); }
.ig-post:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ig-post__tipo { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; background: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ig-post--video .ig-post__tipo { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ig-post--album .ig-post__tipo { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h14v14H7zM3 7h2v12h12v2H3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h14v14H7zM3 7h2v12h12v2H3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.social-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } .ig-grid > :first-child { grid-column: 1 / -1; } .ig-grid > :first-child img, .ig-grid > img:first-child { aspect-ratio: 16 / 10; } }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact__text p { opacity: .92; font-size: 1.08rem; }
.contact__addr { font-size: .98rem !important; }
.contact__pending { grid-column: 2; background: rgba(255,255,255,.1); padding: 20px; border-radius: var(--radius); margin: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__pending { grid-column: auto; } }

/* Opções de orçamento */
.quote-options { display: grid; gap: 10px; }
.quote-opt { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; gap: 2px 14px; width: 100%; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .15s; }
.quote-opt:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.quote-opt b { font-family: var(--head); font-size: 1.55rem; text-transform: uppercase; color: var(--blue-800); line-height: 1.05; }
.quote-opt span { grid-column: 1; color: var(--muted); font-size: .95rem; }
.quote-opt i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.3rem; }
.quote-options--panel .quote-opt { border-color: transparent; }

/* Diálogos */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(3, 24, 40, .72); backdrop-filter: blur(3px); }
/* Rolar sobre a janela ou o fundo não rola a página por trás */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.quote { width: min(520px, calc(100vw - 2 * var(--gutter))); border-radius: 20px; padding: 32px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.quote h2 { font-size: 2.2rem; }
.quote__sub { color: var(--muted); }
.quote__close-form { position: absolute; right: 12px; top: 12px; margin: 0; }
.quote__close, .lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tint); font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); }
.quote__foot { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) {
  .quote { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; padding: 28px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-height: 92svh; }
}
.lightbox { background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; margin: 0 auto; }
.lightbox__cap { color: #fff; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lightbox form { position: absolute; right: -6px; top: -54px; }
.lightbox__close { background: #fff; }

/* Botão flutuante */
.fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; gap: 8px; padding: 0 18px 0 14px; height: 54px; border: 0; border-radius: 999px; background: #1f9d55; color: #fff; font: 700 1rem var(--body); box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 1080px) { .has-wa .fab:not([hidden]) { display: inline-flex; } }

/* Rodapé */
.footer { background: var(--blue-900); color: #c9d1ee; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer__in { display: grid; gap: 18px; }
.footer p { margin: 0; }
.footer__small { font-size: .82rem; opacity: .7; max-width: 70ch; }
@media (max-width: 1080px) { .has-wa .footer { padding-bottom: 100px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero__in--anim > * { opacity: 1; transform: none; }
  .slide img { transform: none; }
  /* Com "reduzir movimento" ativado no sistema, as fotos ainda se alternam, só com fusão suave (sem zoom nem cortina) */
  .slide { transition: opacity .7s ease !important; }
  .slide.is-active::after { display: none; }
  .hero__dot.is-active i { height: 100%; width: 100%; background: var(--accent); }
}
.hero__stats dt { font-variant-numeric: tabular-nums; }
/* "Reduzir movimento": o texto ainda aparece palavra por palavra, só com fusão (sem deslocamento) */
@media (prefers-reduced-motion: reduce) {
  .split--title .w > span, .split--lead .w > span { transform: none !important; filter: none !important; opacity: 0; animation: fadeOnly .5s ease forwards !important; animation-delay: var(--d) !important; }
  .split--title .term::after { transform: scaleX(1); opacity: 0; animation: fadeOnly .5s ease forwards !important; animation-delay: var(--ld) !important; }
  .hero__lead strong { animation: mark .7s ease forwards !important; animation-delay: var(--md, 1.6s) !important; }
  @keyframes fadeOnly { to { opacity: 1; } }
}
@media (max-width: 760px) { .hero__in { padding-top: 164px; } }

/* ===== Logo oficial ===== */
.brand__logo { display: block; height: 44px; width: auto; }
.brand--footer .brand__logo { height: 58px; }
@media (max-width: 420px) { .brand__logo { height: 38px; } }

/* ===== Losango do logo como elemento decorativo ===== */
.deco-losango { position: absolute; pointer-events: none; color: var(--accent); opacity: .22; width: 560px; height: 560px; left: -240px; top: 50%; transform: translateY(-50%); }
.deco-losango--where { left: auto; right: -260px; top: 40px; transform: none; opacity: .12; width: 640px; height: 640px; }
#contato, #onde-atuamos { position: relative; overflow: hidden; }
#contato .wrap, #onde-atuamos .wrap { position: relative; z-index: 1; }
/* faixa de listras diagonais no topo da seção de contato */
.section--brand::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(135deg, var(--accent) 0 14px, transparent 14px 26px); opacity: .9; }

/* ===== Mascote ===== */
.mascot { margin: 0; }
.sab-intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.sab-intro .section__head { margin-bottom: 40px; }
.mascot--sabesp { position: relative; width: 190px; margin-right: 12px; }
.mascot--sabesp img { width: 100%; height: auto; display: block; }
.mascot__bubble { position: absolute; right: 78%; top: 6%; width: 200px; margin: 0; background: var(--blue-800); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: .95rem; line-height: 1.35; box-shadow: var(--shadow); }
.mascot__bubble strong { color: #ffd2cc; }
.mascot__bubble::after { content: ""; position: absolute; right: -8px; bottom: 10px; border: 8px solid transparent; border-left-color: var(--blue-800); border-right: 0; }
.mascot--contact { grid-column: 3; grid-row: 1 / span 2; align-self: end; width: 100%; max-width: 230px; height: auto; margin-bottom: calc(-1 * clamp(64px, 9vw, 120px)); filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.contact { grid-template-columns: 1fr 1fr 220px; }
@media (max-width: 1080px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .mascot--contact { display: none; }
}
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .mascot--sabesp { width: 120px; margin-right: 0; }
  .mascot__bubble { width: 150px; font-size: .85rem; right: 85%; top: 0; }
  .sab-intro .section__head { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  /* no celular os atalhos vêm logo depois do título: mascote pequeno ao lado do texto */
  .sab-intro { grid-template-columns: 1fr 86px; gap: 8px; }
  .mascot--sabesp { width: 86px; align-self: start; }
  .mascot__bubble { display: none; }
}

/* ===== Mapa ilustrativo "Onde atuamos" (SVG, limites do IBGE) ===== */
.atlas { margin-top: clamp(48px, 7vw, 80px); }
.atlas__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.atlas__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.atlas__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: #c9d6e6; }
.atlas__legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1.5px solid rgba(255,255,255,.35); }
.lg--sede { background: #fff url(../img/mascote-corpo.png) center 1px / auto 15px no-repeat; }
.lg--on { background: #3d86e0; }
.atlas__map { border-radius: var(--radius); overflow: hidden; background: #061a33; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.regmap { display: block; width: 100%; height: auto; }
.regmap__mar, .regmap__pr { fill: #061a33; }
.regmap__pr { stroke: #0d2a4d; stroke-width: 1; }
.regmap__sp { fill: #163d73; stroke: #0a2347; stroke-width: 1; }
.mun { fill: #3d86e0; stroke: #0f2f5c; stroke-width: 1.1; transition: fill .2s; cursor: default; }
.mun--sede { fill: #fff; }
.mun--on:hover, .mun--on:focus { fill: #f5c11a; }
.regmap__mascote { pointer-events: none; filter: drop-shadow(0 3px 4px rgba(6,26,51,.45)); }
.lbl { font: 700 12.5px var(--body); fill: #fff; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(8,30,62,.85); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.lbl--sede { font-size: 17px; fill: #0f2f5c; stroke: #fff; }
.lbl-area { font: 700 15px var(--head); letter-spacing: .3em; fill: #5d7fa8; text-anchor: middle; pointer-events: none; }
.lbl-area--mar { font-family: var(--body); font-style: italic; font-weight: 600; letter-spacing: .04em; fill: #4f86c6; }
.atlas__note { font-size: .85rem; color: #a9bbd0; margin: 14px 0 0; max-width: 80ch; }
@media (max-width: 760px) {
  /* celular: o mapa fica legível e desliza para os lados */
  .atlas__map { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .regmap { width: 940px; max-width: none; }
  .atlas__map::after { content: "Deslize para ver o mapa inteiro →"; display: block; position: sticky; left: 0; padding: 8px 12px; font-size: .8rem; color: #c9d6e6; background: #0b2547; width: 100%; }
}
