html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* wrapper padrão do Power Pages */
main,
#content,
.page-content {
  flex: 1 0 auto;
}

/* footer do Power Pages */
footer {
  margin-top: auto;
}

 :root {
      --blue-900: #001f3f;
      --blue-800: #003049;
      --blue-700: #004b6e;
      --blue-600: #0077b6;
      --blue-500: #00b4d8;
      --blue-300: #90e0ef;
      --blue-200: #caf0f8;
      --ink: #0e1525;
      --card: #ffffff;
      --muted: #5c6b7a;
      --shadow: 0 10px 30px rgba(0, 0, 0, .12);
      --glass-bg: rgba(255, 255, 255, .16);
      --glass-stroke: rgba(255, 255, 255, .28);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html,
    body {
      height: 100%
    }

    body {
      font-family: 'Poppins', sans-serif;
      color: var(--ink);
      background: #f7fbff;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    /* Header */
    header {
      position: fixed;
      inset: 0 0 auto 0;
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      background: white;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav {
      width: 100%;
      max-width: 1200px;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      text-decoration: none
    }

    .brand img {
      height: 36px;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35))
    }

    .brand strong {
      font-weight: 700;
      letter-spacing: .3px
    }

    .nav-ctas {
      display: flex;
      gap: 10px;
      align-items: center
    }

    .btn {
      --bg: var(--blue-500);
      --fg: #fff;
      --bd: transparent;
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .7rem 1.2rem;
      border-radius: 999px;
      text-decoration: none;
      background: var(--bg);
      color: var(--fg);
      border: 1px solid var(--bd);
      box-shadow: 0 6px 16px rgba(0, 180, 216, .28);
      transition: .25s ease;
      font-weight: 600;
      font-size: .95rem;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0, 180, 216, .35)
    }

    .btn.ghost {
      --bg: transparent;
      --fg: #fff;
      --bd: rgba(255, 255, 255, .55);
      box-shadow: none
    }

    .btn.ghost:hover {
      background: rgba(255, 255, 255, .08)
    }

    /* Hero with video */
    .hero {
      position: relative;
      height: 92vh;
      min-height: 560px;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: linear-gradient(180deg, #002a44 0%, #003f5a 60%, #0a2840 100%);
      color: #fff;
    }

    .hero video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .55;
      filter: saturate(110%) contrast(105%) brightness(95%);
    }

    .overlay {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(1200px 600px at 70% 10%, rgba(0, 180, 216, .25), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .6));
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      padding: 0 20px;
      margin-top: 40px;
      display: grid;
      gap: 26px;
      text-align: center;
    }

    .kicker {
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--blue-300);
      font-weight: 700;
      font-size: .85rem
    }

    .title {
      font-size: clamp(2rem, 5.6vw, 4rem);
      line-height: 1.05;
      font-weight: 800;
      text-shadow: 0 8px 30px rgba(0, 0, 0, .35)
    }

    .subtitle {
      max-width: 820px;
      margin: 0 auto;
      color: #e8f8ff;
      opacity: .9
    }

    .cta-row {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 6px
    }

    .btn.cta {
      --bg: linear-gradient(135deg, #00b4d8, #90e0ef);
      color: #00223b;
      box-shadow: 0 10px 28px rgba(0, 180, 216, .35)
    }

    .btn.cta:hover {
      transform: translateY(-3px) scale(1.02)
    }

/* Botões do header – estilo fixo */
.nav-ctas .btn {
    background: #00A6D6 !important;  /* cor do botão */
    color: #ffffff !important;       /* texto sempre branco */
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 40px;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

/* Ícone sempre branco */
.nav-ctas .btn i {
    color: #ffffff !important;
}

/* Hover fixo – sem mudar cor */
.nav-ctas .btn:hover {
    transform: translateY(-3px) scale(1.02);
    color: #ffffff !important; /* impede qualquer override */
    background: #00A6D6 !important;
}

/* Força o foco a não mexer no estilo */
.nav-ctas .btn:focus,
.nav-ctas .btn:active {
    background: #00A6D6 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(-3px) scale(1.02);
}


    /* wave divider */
    .wave {
      display: block;
      line-height: 0
    }

    .wave svg {
      display: block;
      width: 100%;
      height: auto
    }

    /* Stats blocks */
    .stats {
      padding: 70px 20px;
      background: linear-gradient(180deg, #e8f9ff 0%, #ffffff 100%)
    }

    .container {
      max-width: 1200px;
      margin: 0 auto
    }

    .section-head {
      text-align: center;
      margin-bottom: 32px
    }

    .section-head h2 {
      font-size: clamp(1.6rem, 3.6vw, 2.4rem);
      color: var(--blue-800)
    }

    .section-head p {
      color: var(--muted);
      max-width: 760px;
      margin: 10px auto 0
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(220px, 1fr));
      gap: 22px;
    }

    @media (max-width:1024px) {
      .stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
      }
    }

    @media (max-width:600px) {
      .stats-grid {
        grid-template-columns: 1fr;
      }
    }

    .stat {
      position: relative;
      background: var(--card);
      border-radius: 18px;
      padding: 26px 20px;
      text-align: center;
      box-shadow: var(--shadow);
      overflow: hidden;
      isolation: isolate;
    }

    .stat::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 8px;
      background: linear-gradient(90deg, #0077b6, #00b4d8, #90e0ef);
    }

    .stat_localidades {
      position: relative;
      background: var(--card);
      border-radius: 18px;
      padding: 10px 15px;
      text-align: center;
      box-shadow: var(--shadow);
      overflow: hidden;
      isolation: isolate;
    }

    .stat_localidades::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 8px;
      background: linear-gradient(90deg, #0077b6, #00b4d8, #90e0ef);
    }

    .bubble {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, .2) 60%, transparent);
      border: 1px solid rgba(255, 255, 255, .6);
      margin: 0 auto 10px;
      display: grid;
      place-items: center;
      box-shadow: inset 0 8px 16px rgba(0, 0, 0, .06), 0 8px 18px rgba(0, 0, 0, .08);
      backdrop-filter: blur(2px)
    }

    .bubble i {
      color: var(--blue-600);
      font-size: 1.6rem
    }

    .stat .num {
      font-size: 2rem;
      font-weight: 800;
      color: var(--blue-800)
    }

    .stat .label {
      color: var(--muted);
      margin-top: 4px
    }

    /* Map + text (two columns) */
    .map-sec {
      padding: 80px 20px
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 34px;
      align-items: center
    }

    @media (max-width:980px) {
      .grid-2 {
        grid-template-columns: 1fr;
      }
    }

    .map-card {
      border-radius: 22px;
      overflow: hidden;
      box-shadow: var(--shadow);
      position: relative;
    }

    .map-card img {
      width: 100%;
      height: 520px;
      object-fit: cover;
      display: block
    }

    .map-card::after {
      content: none;
    }

    .copy h3 {
      font-size: clamp(1.3rem, 3.2vw, 2.1rem);
      color: var(--blue-800);
      margin-bottom: 10px
    }

    .copy p {
      color: #2b3b49;
      line-height: 1.75
    }

    .copy .note {
      margin-top: 14px;
      font-size: .95rem;
      color: var(--muted)
    }

    .pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px
    }

    .pill {
      padding: .45rem .75rem;
      border-radius: 999px;
      font-size: .85rem;
      background: #edf9ff;
      color: #0b3b55;
      border: 1px solid #d6f0ff
    }

    /* Quick links (ranking / coletas / artigos) */
    .quick-links {
      margin-top: 18px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap
    }

    .btn.link {
      --bg: #fff;
      --fg: var(--blue-800);
      --bd: #d6f0ff;
      box-shadow: var(--shadow)
    }

    .btn.link i {
      color: var(--blue-600)
    }

    /* Localidades grid */
    .localidades {
      padding: 80px 20px;
      background: linear-gradient(180deg, #ffffff, #ecfbff)
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, minmax(260px, 1fr));
      gap: 22px;
    }

    @media (max-width:1024px) {
      .cards {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
      }
    }

    @media (max-width:640px) {
      .cards {
        grid-template-columns: 1fr;
      }
    }

    /* Cards simples sem imagem */
    .simple-card {
      background: linear-gradient(145deg, #ffffff, #f1fcff);
      border: 1px solid #d8f1f8;
      border-radius: 20px;
      padding: 2rem 1rem;
      box-shadow: 0 6px 12px rgba(0, 119, 182, 0.12);
      position: relative;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .simple-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 18px rgba(0, 119, 182, 0.18);
    }

    .simple-card .badge {
      position: absolute;
      top: 14px;
      left: 14px;
      background: rgba(0, 180, 216, 0.9);
      color: #002640;
      font-weight: 700;
      font-size: 0.8rem;
      padding: 0.4rem 0.7rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.65);
    }

    .simple-card .label {
      font-weight: 600;
      color: #003049;
      font-size: 1.1rem;
      margin-top: 1.2rem;
    }

    .card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow);
      background: white;
    }

    .card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      opacity: .9;
      transition: .35s ease
    }

    .card:hover img {
      transform: scale(1.04);
      opacity: .95
    }

    .badge {
      position: absolute;
      top: 14px;
      left: 14px;
      z-index: 2;
      background: rgba(0, 180, 216, .9);
      color: #002640;
      font-weight: 700;
      font-size: .8rem;
      padding: .4rem .7rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, .65)
    }

    .card .label {
      position: absolute;
      inset: auto 0 0 0;
      padding: 14px 16px;
      color: #fff;
      font-weight: 600;
      background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
    }

    /* PARTNERS */
    .partners {
      padding: 70px 20px;
      background: #ffffff;
      text-align: center;
      /* centraliza todo o conteúdo da section */
    }

    .partner-logos {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 36px;
      margin-top: 20px;
    }

    /* Estado padrão — logos em preto e branco e um pouco transparentes */
    .partner-logos img {
      max-width: 180px;
      object-fit: contain;
      opacity: 0.8;
      transition: all 0.3s ease;
    }

    /* Ao passar o mouse — logo colorida e nítida */
    .partner-logos img:hover {
      filter: grayscale(0%) brightness(1) contrast(1);
      opacity: 1;
      transform: scale(1.05);
    }

    .partner-group {
      padding: 30px;
    }

    .marquee {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      /* centraliza horizontalmente */
      align-items: center;
      gap: 36px;
      margin-top: 30px;
    }

    .marquee img {
      height: 40px;
      opacity: 0.8;
      filter: grayscale(100%);
      transition: 0.25s;
    }

    .marquee img:hover {
      opacity: 1;
      filter: none;
    }

    /* FOOTER */
    footer {
      background: var(--blue-900);
      color: #d6edff;
      padding: 38px 20px;
      text-align: center;
      /* centraliza o conteúdo */
    }

    .foot {
      max-width: 1200px;
      margin: 0 auto;
    }

    .foot small {
      opacity: 0.8;
      display: block;
      text-align: center;
    }

    /* Testimonials */
    .testimonials {
      padding: 80px 20px;
      background: linear-gradient(180deg, #ecfbff, #ffffff)
    }

    .t-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px
    }

    @media (max-width:980px) {
      .t-grid {
        grid-template-columns: 1fr
      }
    }

    .t-card {
      background: var(--card);
      border-radius: 18px;
      padding: 24px;
      box-shadow: var(--shadow);
      border-left: 6px solid var(--blue-500);
    }

    .t-card p {
      color: #2b3b49
    }

    .t-card .who {
      margin-top: 12px;
      font-weight: 700;
      color: var(--blue-700)
    }

    /* Newsletter */
    .newsletter {
      padding: 84px 20px;
      background: linear-gradient(135deg, #e6fbff, #ffffff)
    }

    .cta-box {
      max-width: 900px;
      margin: 0 auto;
      background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .75));
      border: 1px solid #eaf6ff;
      border-radius: 24px;
      padding: 32px;
      box-shadow: var(--shadow);
      display: grid;
      gap: 14px;
      text-align: center;
    }

    .cta-box h3 {
      color: var(--blue-800)
    }

    .cta-form {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap
    }

    .cta-form input {
      padding: .9rem 1rem;
      border-radius: 999px;
      border: 1px solid #cfeefe;
      min-width: 280px;
      outline: none;
      font-size: 1rem;
    }
	
	/* Ranking Section */
    .ranking-section {
      display: grid;
      align-items: start;
      justify-content: center;
      padding: 6rem 2rem;
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Display dos gráficos e tabelas */
    .ranking-display {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      height: 480px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Chart interno */
    .ranking-display canvas {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain;
      background: #fff;
    }

    /* Tabela da lista */
    .ranking-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
      text-align: left;
    }

    .ranking-table th {
      background: var(--blue-600);
      color: white;
      padding: 0.8rem;
      font-weight: 600;
    }

    .ranking-table td {
      padding: 0.8rem;
      border-bottom: 1px solid #e0f2f5;
      color: #333;
    }

    .ranking-table tr:hover {
      background: #f3fbff;
    }
	
	.ranking-left {
      background: #ffffff;
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
      overflow-x: auto;
    }

    .ranking-right {
      background: #ffffff;
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .ranking-right h3 {
      color: var(--blue-800);
      margin-bottom: 1rem;
    }

    .ranking-right p {
      color: #2b3b49;
      line-height: 1.7;
      margin-bottom: 1rem;
    }
	
	.toggle-buttons button {
      min-width: 220px;
      /* Garante largura mínima e força quebra de linha quando necessário */
      text-align: center;
      white-space: normal;
      /* Permite quebra de texto */
    }
	
	 /* Botões */
    .toggle-buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 2rem;
    }

    .toggle-buttons button {
      background: #0e223d;
      color: white;
      border: none;
      padding: 0.7rem 1.3rem;
      border-radius: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .toggle-buttons button.active {
      background: var(--blue-500);
      box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
    }
	
	.chart-scroll {
      overflow-x: auto;
      overflow-y: hidden;
      width: 100%;
    }

    .chart-wrapper {
      min-width: 600px;
      /* largura mínima p/ manter o gráfico legível */
    }

/* ===== FIX FOOTER POWER PAGES ===== */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* Garante que o conteúdo empurre o footer */
main,
.page-content,
.content,
.wrapper {
  flex: 1 0 auto;
}

/* Footer sempre no final da página */
footer {
  flex-shrink: 0;
}

/* ===== MOBILE: totais ===== */
@media (max-width: 768px) {
  #ranking span {
    display: block;
    padding: 6px 0 !important;
    font-size: 14px;
    text-align: center;
  }

  #ranking span b {
    display: block;
    font-size: 18px;
    margin-top: 2px;
  }
}

/* ===== REMOVE AFTER DO STAT NO MOBILE ===== */
@media (max-width: 768px) {
  article.container.stat::after {
    display: none !important;
    content: none !important;
  }
}
