/* ===== Site-wide mobile & tablet responsiveness ===== */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --nav-height: 64px;
}

html {
  scroll-padding-top: calc(var(--nav-height) + var(--safe-top) + 8px);
}

body {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

main,
.container,
.edu-module-shell,
.game-level-panel,
.edu-panel {
  min-width: 0;
  max-width: 100%;
}

/* ----- Mobile & tablet navigation (bottom sheet) ----- */
@media (max-width: 1024px) {
  :root {
    --container: min(100%, calc(100% - 1.25rem));
    --nav-height: 60px;
  }

  .navbar {
    padding: calc(8px + var(--safe-top)) 0 8px;
    z-index: 1102;
  }

  .nav-container {
    gap: 0.65rem;
    align-items: center;
  }

  .nav-logo {
    min-width: 0;
    flex: 1;
  }

  .logo-text {
    font-size: clamp(0.82rem, 2.8vw, 1rem);
    line-height: 1.2;
  }

  .logo-project-image {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
    height: 48px;
    padding: 0 14px 0 12px;
    border-radius: 14px;
    border: 2px solid rgba(15, 23, 42, 0.16);
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
    z-index: 1103;
  }

  .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
  }

  .nav-toggle-label {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
    line-height: 1;
  }

  .nav-toggle-icon span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-toggle.is-open .nav-toggle-label {
    display: none;
  }

  .nav-toggle.is-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1190;
  }

  body.nav-open .navbar {
    z-index: 1210;
  }

  body.nav-open .nav-toggle {
    z-index: 1211;
  }

  .nav-links {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(94vh, 900px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 14px 16px calc(20px + var(--safe-bottom));
    margin: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.22);
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    list-style: none;
  }

  .nav-links.nav-links--mobile {
    z-index: 1200;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  /* Mostrar todas as seções no menu mobile, inclusive Acesso */
  body:not(.page-home) .nav-item-submenu:has(.nav-admin-cta) {
    display: block !important;
  }

  .nav-links > li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav-links > li:has(.nav-cta) {
    order: -1;
    margin-bottom: 2px;
  }

  .nav-links a,
  .nav-link-trigger {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(15, 23, 42, 0.92);
  }

  .nav-links > li:not(.nav-item-submenu) > a {
    font-weight: 700;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-cta {
    text-align: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    padding: 16px !important;
    border-radius: 14px !important;
    min-height: 54px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .nav-item-submenu {
    width: 100%;
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-item-submenu:first-of-type {
    border-top: none;
    padding-top: 0;
  }

  .nav-item-submenu > .nav-link-has-submenu,
  .nav-item-submenu > .nav-link-trigger {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.78) !important;
    background: rgba(15, 23, 42, 0.06) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 10px;
    min-height: auto;
    padding: 10px 14px;
    pointer-events: auto;
    margin-bottom: 4px;
  }

  .nav-link-has-submenu::after {
    display: none;
  }

  .nav-submenu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    min-width: 0;
    padding: 0 0 8px 10px;
    margin: 0 0 8px 6px;
    border: 0;
    border-left: 3px solid rgba(37, 99, 235, 0.35);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    list-style: none;
    display: block !important;
  }

  .nav-submenu li {
    display: block;
    width: 100%;
  }

  .nav-submenu a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 14px 14px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    border-radius: 12px;
    min-height: 50px;
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
    margin-bottom: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  }

  .nav-submenu a:last-child {
    margin-bottom: 0;
  }

  .nav-submenu .nav-active-page {
    background: rgba(37, 99, 235, 0.14) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    color: #1e3a8a !important;
  }

  .nav-links.open .nav-submenu,
  .nav-links.nav-links--mobile .nav-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Dark theme pages */
  .page-educativo--game .nav-toggle,
  .page-dados .nav-toggle {
    background: rgba(8, 18, 42, 0.95);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
  }

  .page-educativo--game .nav-toggle-label,
  .page-dados .nav-toggle-label {
    color: #e2e8f0;
  }

  .page-educativo--game .nav-toggle-icon span,
  .page-dados .nav-toggle-icon span {
    background: #e2e8f0;
  }

  .page-educativo--game .nav-links,
  .page-dados .nav-links {
    background: rgba(6, 10, 24, 0.98);
    border-color: rgba(0, 212, 255, 0.28);
    box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.5);
  }

  .page-educativo--game .nav-links > li > a,
  .page-educativo--game .nav-links > li > .nav-link-trigger,
  .page-dados .nav-links > li > a,
  .page-dados .nav-links > li > .nav-link-trigger {
    color: #e2e8f0 !important;
  }

  .page-educativo--game .nav-links > li:not(.nav-item-submenu) > a,
  .page-dados .nav-links > li:not(.nav-item-submenu) > a {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
  }

  .page-educativo--game .nav-item-submenu > .nav-link-has-submenu,
  .page-educativo--game .nav-item-submenu > .nav-link-trigger,
  .page-dados .nav-item-submenu > .nav-link-has-submenu,
  .page-dados .nav-item-submenu > .nav-link-trigger {
    color: #67e8f9 !important;
    background: rgba(0, 212, 255, 0.12) !important;
    border-color: rgba(0, 212, 255, 0.28) !important;
  }

  .page-educativo--game .nav-item-submenu,
  .page-dados .nav-item-submenu {
    border-top-color: rgba(0, 212, 255, 0.18);
  }

  .page-educativo--game .nav-submenu,
  .page-dados .nav-submenu {
    border-left-color: rgba(0, 212, 255, 0.45);
  }

  .page-educativo--game .nav-submenu a,
  .page-dados .nav-submenu a {
    color: #e2e8f0 !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.28) !important;
    box-shadow: none;
  }

  .page-educativo--game .nav-submenu a:hover,
  .page-dados .nav-submenu a:hover {
    color: #fff !important;
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.45) !important;
  }

  .page-educativo--game .nav-submenu .nav-active-page,
  .page-dados .nav-submenu .nav-active-page {
    background: rgba(0, 212, 255, 0.24) !important;
    border-color: rgba(0, 212, 255, 0.55) !important;
    color: #fff !important;
  }

  .page-educativo--game .nav-links a:hover,
  .page-educativo--game .nav-link-trigger:hover,
  .page-dados .nav-links a:hover,
  .page-dados .nav-link-trigger:hover {
    background: rgba(0, 212, 255, 0.16) !important;
    color: #67e8f9 !important;
  }

  .page-educativo--game .nav-links .nav-active-page,
  .page-dados .nav-links .nav-active-page {
    background: rgba(0, 212, 255, 0.22) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    color: #fff !important;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: calc(88px + var(--safe-top));
  }

  .hero-desc {
    padding-inline: 0;
  }

  .btn,
  .ouv-btn,
  .toon-btn,
  .proj-btn-dark {
    min-height: 48px;
  }

  .news-search-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .nav-logo .logo-flag {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
}

/* ----- Imagens responsivas ----- */
@media (max-width: 1024px) {
  .news-card-img-wrap,
  .news-card-img,
  .news-card-featured .news-card-img-wrap {
    width: 100%;
    max-width: 100%;
  }

  .news-card-img {
    height: auto;
    min-height: 180px;
    max-height: 240px;
    object-fit: cover;
  }

  .hero-logo-bg {
    width: min(72vw, 640px) !important;
    max-width: 640px !important;
    right: -28% !important;
    top: 44% !important;
    opacity: 0.16 !important;
  }

  .dados-ju-img,
  .dados-ju-frame,
  video.dados-ju-img {
    width: 100%;
    max-width: var(--ju-intro-video-max-w, min(96vw, 520px));
    max-height: var(--ju-intro-video-max-h, min(82svh, 640px));
    margin-inline: auto;
  }

  .game-start-mascot,
  .game-start-splash {
    width: 100%;
    max-width: var(--ju-hero-max-w, min(340px, 92vw));
    margin-inline: auto;
  }

  .page-educativo--game .game-start-img,
  .page-educativo--game .ju-img,
  .page-educativo--game .ju-portrait-img,
  .page-educativo--game .ju-finish-img,
  .missao-hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
  }

  .page-educativo--game .game-start-img {
    max-width: var(--ju-hero-max-w, min(340px, 92vw));
    max-height: var(--ju-hero-max-h, min(58vh, 480px));
  }

  .page-educativo--game .ju-img,
  .page-educativo--game .ju-portrait-img {
    max-width: var(--ju-quiz-max-w, min(280px, 88vw));
    max-height: var(--ju-quiz-max-h, min(44vh, 360px));
  }

  .page-educativo--game .ju-finish-img {
    max-width: var(--ju-finish-max-w, min(220px, 78vw));
    max-height: clamp(160px, 32svh, 280px);
  }

  .page-educativo--game .ju-avatar-wrap--hero {
    width: min(var(--ju-hero-max-w, 280px), 88vw);
    max-width: 100%;
    margin-inline: auto;
  }

  .page-educativo--game .ju-avatar-wrap--quiz.ju-avatar-wrap--portrait {
    width: min(var(--ju-quiz-max-w, 220px), 78vw);
    max-width: 100%;
    margin-inline: auto;
  }

  .page-educativo--game .toon-hero-mascot,
  .page-educativo--game .toon-quiz-mascot {
    width: 100%;
    max-width: min(var(--ju-quiz-max-w, 280px), 86vw);
    margin-inline: auto;
  }

  .edu-m23 .missao-intro-layout,
  .edu-ma .missao-intro-layout {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .edu-m23 .missao-hero-figure,
  .edu-ma .missao-hero-figure {
    width: min(220px, 72vw);
    height: auto;
    min-height: 180px;
    max-height: min(340px, 52vh);
    margin: 0 auto;
  }

  .edu-m23 .missao-hero-img {
    height: auto;
    max-height: min(340px, 52vh);
  }

  .edu-faixas .ju-arena--selector,
  .edu-faixas .ju-arena--selector .game-start-splash,
  .edu-faixas .ju-arena--selector .game-start-img,
  .edu-faixas .ju-arena--selector .ju-intro-video,
  .edu-faixas #selectorJu {
    width: 100%;
    max-width: var(--ju-intro-video-max-w, min(96vw, 520px));
    max-height: var(--ju-intro-video-max-h, min(82svh, 640px));
    margin-inline: auto;
  }

  .page-educativo--game .game-start-img.ju-intro-video,
  .page-educativo--game #heroIntroVideo {
    max-width: var(--ju-intro-video-max-w, min(96vw, 520px));
    max-height: var(--ju-intro-video-max-h, min(82svh, 640px));
  }

  .page-educativo--game .game-start-mascot:has(.ju-intro-video),
  .page-educativo--game .game-start-splash:has(.ju-intro-video) {
    max-width: var(--ju-intro-video-max-w, min(96vw, 360px));
  }

  .edu-faixas .ju-img,
  .edu-faixas .fx-finish .ju-img {
    max-width: min(var(--ju-quiz-max-w, 220px), 78vw);
    margin-inline: auto;
  }

  .page-educativo--game .edu-module--2 .edu-m2-grid {
    grid-template-columns: 1fr !important;
  }

  .page-educativo--game .toon-flip-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .toon-char--lg {
    width: min(220px, 70vw) !important;
    height: auto !important;
  }
}

/* ----- Conteúdo educativo (alunos) ----- */
@media (max-width: 1024px) {
  .page-educativo--game .game-tabs-wrap {
    position: sticky;
    top: calc(var(--nav-height) + var(--safe-top));
    z-index: 50;
    padding: 8px 0;
  }

  .page-educativo--game .edu-tabs,
  .edu-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 6px;
    justify-content: center;
    border-radius: 16px;
  }

  .page-educativo--game .edu-tabs::-webkit-scrollbar,
  .edu-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-educativo--game .edu-tab,
  .edu-tab {
    flex: 1 1 calc(33.333% - 6px);
    min-width: calc(33.333% - 6px);
    max-width: calc(50% - 6px);
    white-space: normal;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .page-educativo--game .game-hud-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-educativo--game .game-hud-values {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
  }

  .page-educativo--game .edu-m23 .missao-tabs {
    flex-direction: column;
    max-width: none;
  }

  .page-educativo--game .edu-m23 .mtab {
    border-right: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    padding: 12px;
  }

  .page-educativo--game .edu-m23 .mtab:last-child {
    border-bottom: none;
  }

  .page-educativo--game .game-level-panel {
    padding: clamp(14px, 4vw, 20px) !important;
  }

  .page-educativo--game .edu-module-head {
    padding-bottom: 12px;
  }

  .page-educativo--game .toon-quiz-actions--inline {
    grid-template-columns: 1fr !important;
  }

  .page-educativo--game .edu-quiz-finish-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .page-educativo--game .edu-quiz-finish-ctas .toon-btn {
    width: 100%;
    justify-content: center;
  }

  .page-educativo--game .game-start-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-educativo--game .game-start-copy {
    align-items: center;
    margin-inline: auto;
    padding: 0;
  }

  .edu-faixas .selector-layout {
    grid-template-columns: 1fr;
  }

  .edu-faixas .faixa-grid {
    width: 100%;
  }

  .edu-faixas .fx-actions {
    grid-template-columns: 1fr;
  }

  .edu-ma .ma-ouvidoria-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .edu-ma .ma-btn-ouvidoria {
    width: 100%;
    justify-content: center;
  }

  .edu-ma .ma-contatos-grid {
    grid-template-columns: 1fr;
  }

  .page-educativo--game .toon-quiz-stage {
    flex-direction: column;
    align-items: center;
  }

  .page-educativo--game .toon-speech-bubble--quiz {
    width: 100%;
    max-width: 100%;
  }

  .edu-m23 .opcoes-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Atividades adolescentes (13–17) — cards e toque no celular ----- */
@media (max-width: 768px) {
  .page-educativo--game .edu-module-shell,
  .page-educativo--game .game-level-panel {
    overflow: visible;
  }

  /* Flip cards: modo empilhado (3D quebra no iOS/Android) */
  .edu-flip-card,
  .page-educativo--game .toon-flip-grid .edu-flip-card {
    perspective: none;
    min-height: 168px;
  }

  .edu-flip-inner,
  .page-educativo--game .toon-flip-grid .edu-flip-inner {
    transform: none !important;
    transform-style: flat;
    min-height: 168px !important;
    height: auto !important;
    transition: none;
  }

  .edu-flip-front,
  .edu-flip-back,
  .page-educativo--game .toon-flip-grid .edu-flip-front,
  .page-educativo--game .toon-flip-grid .edu-flip-back {
    position: relative;
    inset: auto;
    backface-visibility: visible;
    transform: none !important;
    width: 100%;
  }

  .edu-flip-front,
  .page-educativo--game .toon-flip-grid .edu-flip-front {
    display: flex;
    min-height: 168px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    cursor: pointer;
  }

  .edu-flip-card:not(.is-flipped) .edu-flip-back {
    display: none !important;
  }

  .edu-flip-card.is-flipped .edu-flip-front {
    display: none !important;
  }

  .edu-flip-card.is-flipped .edu-flip-back,
  .page-educativo--game .toon-flip-grid .edu-flip-card.is-flipped .edu-flip-back {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px !important;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .edu-flip-card.is-flipped,
  .page-educativo--game .toon-flip-grid .edu-flip-card.is-flipped {
    min-height: 180px !important;
  }

  .edu-flip-card.is-flipped .edu-flip-inner,
  .page-educativo--game .toon-flip-grid .edu-flip-card.is-flipped .edu-flip-inner {
    min-height: 180px !important;
  }

  .edu-flip-back p,
  .edu-flip-back ul,
  .page-educativo--game .toon-flip-grid .edu-flip-back p,
  .page-educativo--game .toon-flip-grid .edu-flip-back ul {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .edu-flip-close,
  .page-educativo--game .toon-flip-grid .edu-flip-close {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    touch-action: manipulation;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Missão 2 — cenários e opções */
  .edu-m23 .opcao {
    min-height: 48px;
    padding: 14px 16px;
    touch-action: manipulation;
  }

  .edu-m23 .opcao-text {
    font-size: 0.92rem;
  }

  .edu-m23 .btn-proximo,
  .edu-m23 .copy-btn,
  .edu-m23 .sim-action {
    min-height: 48px;
    touch-action: manipulation;
  }

  .edu-m23 .nao-dizer-cards {
    flex-wrap: wrap !important;
    overflow-x: visible;
    gap: 10px;
  }

  .edu-m23 .nd-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* Missão 3 — cyber steps */
  .edu-m23 .cyber-step-card {
    min-height: 120px;
    touch-action: manipulation;
    cursor: pointer;
  }

  .edu-m23 .cyber-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Quiz sim/não */
  .page-educativo--game .toon-quiz-actions .toon-btn,
  .page-educativo--game .edu-quiz-btn {
    min-height: 52px;
    touch-action: manipulation;
  }

  .page-educativo--game .edu-quiz-next,
  .page-educativo--game .toon-btn--next {
    width: 100%;
    min-height: 48px;
  }

  /* Faixas 10–12 — flip cards */
  .edu-faixas .fx-flip-card {
    perspective: none;
    min-height: 0;
  }

  .edu-faixas .fx-flip-inner {
    transform: none !important;
    transform-style: flat;
    min-height: 0 !important;
    height: auto;
    transition: none;
  }

  .edu-faixas .fx-flip-front,
  .edu-faixas .fx-flip-back {
    position: relative;
    inset: auto;
    backface-visibility: visible;
    transform: none !important;
  }

  .edu-faixas .fx-flip-card:not(.is-flipped) .fx-flip-back {
    display: none !important;
  }

  .edu-faixas .fx-flip-card.is-flipped .fx-flip-front {
    display: none !important;
  }

  .edu-faixas .fx-flip-card.is-flipped .fx-flip-back {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .edu-faixas .fx-flip-grid {
    grid-template-columns: 1fr !important;
  }

  .edu-faixas .fx-flip-close {
    min-height: 48px;
    padding: 14px;
    touch-action: manipulation;
  }

  .edu-m23 .mtab {
    font-size: 0.68rem !important;
    padding: 14px 8px !important;
    min-height: 48px;
  }
}

/* ----- Ouvidoria & projeto ----- */
@media (max-width: 1024px) {
  .page-ouvidoria .ouv-hero-grid,
  .page-projeto .proj-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ouvidoria .ouv-form-row,
  .page-ouvidoria .ouv-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-toggle-icon span {
    transition: none !important;
  }
}
