/* ── RESPONSIVIDADE (computador, tablet e celular) ── */

/* telas médias: nomes do menu viram só ícones; cartões em 2 colunas */
@media screen and (max-width: 980px) {
    header .navbar .rotulo {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0, 0, 0, 0); white-space: nowrap;
    }
    header .navbar a { padding: 0 .8rem; }

    .cards-metricas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indicador, .indicador:nth-child(n + 4) { grid-column: span 1; }
    .indicador:nth-child(5) { grid-column: span 2; }

    .sobre-grade { grid-template-columns: minmax(0, 1fr); }
}

/* tablets e celulares grandes */
@media screen and (max-width: 720px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.3rem; }
    .hero-lateral { align-items: flex-start; text-align: left; }
    .hero-chips { justify-content: flex-start; }
    .hero-titulo { font-size: 1.55rem; }
    .hero-simbolo { width: 4rem; height: 4rem; }
    .hero-simbolo .icone { width: 2rem; height: 2rem; }
}

/* celulares */
@media screen and (max-width: 560px) {
    main { width: 92%; }
    header { gap: .4rem; padding: 0 .75rem; }
    header .logo-nome { display: none; }
    header .navbar a { padding: 0 .6rem; }
    header .theme-toggler { width: 4.4rem; }

    .cards-metricas { grid-template-columns: minmax(0, 1fr); }
    .indicador:nth-child(5) { grid-column: span 1; }
    .indicador-valor .numero { font-size: 2.4rem; }

    .hero-principal { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .alertas-ativos li small { margin-left: 0; }

    .painel-flutuante { right: .75rem; bottom: .75rem; width: calc(100vw - 1.5rem); }
}
