/* Mega Reguladora | Desenvolvimento: Dule Digital | https://duledigital.com.br */
:root {
  --navy: #0b2f5b; --blue: #0a5fb4; --blue-dark: #07457f; --orange: #f7861e; --orange-dark: #d96f0c;
  --ink: #2b3544; --muted: #5d6b7e; --line: #e3e9f1; --soft: #f4f7fb; --white: #fff;
  --radius: 16px; --shadow: 0 10px 30px rgba(11, 47, 91, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, picture { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-list a:hover { background: var(--soft); }
.nav-list a.active { color: var(--orange-dark); background: #fff4e8; }
.btn-access, .btn-site { display: inline-flex; align-items: center; gap: .5rem; background: var(--orange); color: #fff; font-weight: 700; border: 2px solid var(--orange); border-radius: 999px; padding: .7rem 1.4rem; text-decoration: none; cursor: pointer; font-size: 1rem; transition: background .2s, transform .2s; }
.btn-access:hover, .btn-site:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-site-outline { background: transparent; color: var(--orange-dark); }
.btn-site-outline:hover { color: #fff; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; width: 46px; height: 46px; font-size: 1.6rem; color: var(--navy); align-items: center; justify-content: center; }
@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 1rem; gap: 1rem; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .btn-access { justify-content: center; }
}

/* Hero */
/* A hero define a altura; a imagem só preenche (object-fit: cover) e nunca a altera. Todos os slides ficam empilhados na MESMA célula da grade
   (altura = a do maior conteúdo, constante em qualquer slide ativo) e a troca é por opacity (crossfade), sem display:none nem reflow. */
.hero { position: relative; display: grid; background: var(--navy); color: #fff; min-height: clamp(420px, 68vh, 640px); overflow: hidden; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--navy); opacity: 0; visibility: hidden; z-index: 0; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1.1s ease; }
.hero-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }   /* o slide que sai fica opaco até o novo cobri-lo: sem "buraco" entre as imagens */
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 22, 45, .88) 0%, rgba(5, 22, 45, .55) 55%, rgba(5, 22, 45, .25) 100%); }
.hero-plain { background: radial-gradient(1200px 500px at 85% 10%, rgba(247, 134, 30, .35), transparent 60%), linear-gradient(135deg, #07264b 0%, var(--blue) 100%); }
.hero-copy { position: relative; padding-block: 4rem; max-width: 1140px; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; margin: 0 0 1rem; max-width: 18ch; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40rem; margin: 0 0 1.5rem; color: #eaf1fa; }
.hero-text { max-width: 40rem; color: #d5e2f3; }
/* Os textos saem rápido e entram depois da imagem, para dois títulos nunca aparecerem sobrepostos durante o crossfade */
.hero-slide .hero-copy { opacity: 0; }
.hero-slide.is-active .hero-copy { opacity: 1; transition: opacity .7s ease .4s; }
.hero-slide.is-leaving .hero-copy { opacity: 0; transition: opacity .35s ease; }

/* Seções */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-soft { background: var(--soft); }
.section-kicker { text-align: center; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; font-weight: 700; }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--orange-dark); background: #fff1e0; padding: .35rem .85rem; border-radius: 999px; margin: 0 0 1rem; }
.eyebrow-light { color: #ffd9b3; background: rgba(255, 255, 255, .14); }
.lead-text { font-size: 1.1rem; color: var(--muted); }
.container-prose { max-width: 820px; }
.page-head { background: linear-gradient(180deg, var(--soft), #fff); padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-head h1 { margin-bottom: .75rem; }
.crumb a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.small-note { color: var(--muted); font-size: .9rem; }

/* Parceiros */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 576px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
.partner-grid li { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; min-height: 108px; transition: box-shadow .2s, transform .2s; }
.partner-grid li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-grid a { display: block; }
.partner-logo, .partner-logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; }
.partner-grid-lg li { min-height: 140px; }

/* Parceiros na Home: faixa horizontal contínua (marquee). Sem JavaScript vira uma faixa rolável; com JavaScript o movimento é automático em laço infinito. */
.partner-marquee { position: relative; }
.pm-viewport { overflow-x: auto; scrollbar-width: thin; padding-block: .25rem; }
.partner-marquee.is-js .pm-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.partner-marquee.is-dragging .pm-viewport { cursor: grabbing; }
.pm-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; will-change: transform; }
.pm-item { flex: 0 0 auto; width: 176px; height: 88px; margin-right: 1rem; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.1rem; transition: box-shadow .2s, border-color .2s; }
.pm-item:hover { box-shadow: var(--shadow); border-color: #cfd9e6; }
.pm-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pm-item .partner-logo { max-height: 50px; max-width: 100%; width: auto; -webkit-user-drag: none; }
.pm-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.pm-btn[hidden] { display: none; }
.pm-prev { left: 0; }
.pm-next { right: 0; }
.partner-marquee:hover .pm-btn, .partner-marquee:focus-within .pm-btn { opacity: 1; }
.pm-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: none) { .pm-btn { display: none; } }   /* no toque a navegação é por deslizar (swipe) */
@media (max-width: 575.98px) { .pm-item { width: 140px; height: 76px; margin-right: .75rem; padding: .65rem .9rem; } .pm-item .partner-logo { max-height: 42px; } }

/* Cartões */
.card-feature { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card-feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.card-feature h3 a, .card-feature h2 a { color: var(--navy); text-decoration: none; }
.card-feature h3 a:hover, .card-feature h2 a:hover { color: var(--blue); }
.card-img, .card-img img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(10, 95, 180, .25); flex: 0 0 auto; }
.chip { display: block; width: fit-content; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); background: #fff1e0; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.link-more { font-weight: 700; text-decoration: none; }

/* Áreas */
.panel-blue { height: 100%; background: linear-gradient(135deg, #07264b, var(--blue)); color: #e8f0fb; border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem); }
.panel-blue h2 { color: #fff; max-width: 22ch; }
.areas-box { height: 100%; background: var(--soft); border-radius: 24px; padding: 2rem; border: 1px solid var(--line); }
.areas-box h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.areas-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.areas-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.areas-list li::before { content: "+"; color: var(--orange); font-weight: 800; margin-right: .5rem; }
.areas-list a { color: inherit; text-decoration: none; }
.areas-list a:hover { color: var(--blue); }
.cover-img, .cover-img img { width: 100%; border-radius: var(--radius); }

/* Conteúdo (HTML do painel) */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose img { border-radius: 12px; margin-block: 1rem; }
.prose table { width: 100%; display: block; overflow-x: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; }

/* Contato */
.info-card, .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); height: 100%; }
.info-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row .icon-tile { margin: 0; }
.info-row h2 { margin: 0 0 .25rem; color: var(--navy); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.form-label { font-weight: 600; color: var(--navy); }
.req { color: #c0392b; }
.form-control { border-radius: 12px; border-color: #cfd8e3; padding: .7rem .9rem; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(10, 95, 180, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* Rodapé */
.site-footer { background: var(--navy); color: #cfdcee; padding-top: 3.5rem; }
.site-footer a { color: #cfdcee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-title { color: #fff; font-size: 1.15rem; padding-bottom: .6rem; margin-bottom: 1rem; position: relative; }
.foot-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--orange); border-radius: 3px; }
.foot-sub { color: #f5b46d; font-size: .95rem; margin: 1rem 0 .4rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .45rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .9rem; }
.foot-bottom a { color: #f5b46d; font-weight: 700; }
.foot-bottom .foot-dpo a { color: #cfdcee; font-weight: 400; }
.foot-bottom .foot-dpo a:hover { color: #fff; }
.foot-dpo strong { color: #f5b46d; font-weight: 700; }
.foot-dpo .bi { color: var(--orange); margin-right: .25rem; }

/* Janela Área de Acesso */
.access-dialog { border: 0; border-radius: 24px; padding: 2rem 1.75rem; width: min(440px, calc(100vw - 2rem)); box-shadow: 0 30px 80px rgba(5, 22, 45, .35); text-align: center; }
.access-dialog::backdrop { background: rgba(5, 22, 45, .6); backdrop-filter: blur(3px); }
.access-dialog h2 { margin: 0 0 .5rem; }
.access-lead { color: var(--muted); font-size: .95rem; }
.access-close { position: absolute; top: .9rem; right: .9rem; border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 50%; color: var(--navy); cursor: pointer; }
.access-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.access-link { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1rem; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.access-link:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1500; max-width: 980px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(5, 22, 45, .25); padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cookie-text { flex: 1 1 320px; font-size: .92rem; }
.cookie-text p { margin: .25rem 0 0; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-cookie { border: 2px solid var(--orange); background: var(--orange); color: #fff; font-weight: 700; border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; }
.btn-cookie:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-cookie-ghost { background: #fff; color: var(--orange-dark); }
.cookie-custom { margin-top: .6rem; }
.cookie-custom summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.cookie-cat { display: block; margin: .4rem 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Mapa de cobertura: revelação conforme a rolagem (sem fundo fixo, que trava em celulares). Sem suporte ou com "reduzir movimento": imagem estática. */
/* Mapa sem cartão: a imagem tem fundo transparente e "flutua" sobre a seção. A sombra acompanha o contorno do mapa (drop-shadow), não uma caixa. */
.coverage-map { margin: 0; padding: clamp(.25rem, 1vw, .75rem); }
.coverage-map img { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(11, 42, 74, .22)); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .coverage-map img { animation: map-reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
    @keyframes map-reveal {
      from { opacity: 0; transform: translateY(36px) scale(1.05); clip-path: inset(0 0 45% 0 round 16px); }
      to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 16px); }
    }
  }
}

/* Contato: links limpos (sem o azul/sublinhado padrão), com destaque discreto no hover */
.info-card a, .plain-list a { color: var(--navy); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; overflow-wrap: anywhere; }
.info-card a:hover, .plain-list a:hover, .info-card a:focus-visible { color: var(--blue); border-bottom-color: var(--orange); }
.info-card { display: flex; flex-direction: column; justify-content: center; }
.info-row { margin-bottom: 0; align-items: flex-start; }
.info-row + .info-row { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.info-row h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; font-weight: 700; }
.info-row p, .plain-list li { margin: 0; color: var(--ink); line-height: 1.7; }
.plain-list li + li { margin-top: .15rem; }
.info-row .icon-tile { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 12px; }

.foot-title-gap { margin-top: 1.75rem; }
.form-section { font-size: 1.05rem; color: var(--navy); margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.form-section:first-of-type { margin-top: 0; }
.form-text { color: var(--muted); }
