/*
 * ════════════════════════════════════════════════════════════════
 *  BGAAT — mobile.css
 *  Design mobile premium · Apenas dispositivos ≤ 860px
 *  Não afeta nada acima de 860px
 * ════════════════════════════════════════════════════════════════
 */

/* ────────────────────────────────────────────────────────────────
   VARIÁVEIS EXTRAS MOBILE
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --mob-pad: 20px;
    --mob-radius: 18px;
    --mob-radius-sm: 12px;
    --mob-tap: 52px;          /* altura mínima de toque */
  }
}


/* ════════════════════════════════════════════════════════════════
   1. BARRA DE NAVEGAÇÃO
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  .nav {
    padding: 0 var(--mob-pad);
    height: 60px;
  }

  .nav-logo {
    font-size: 18px;
    letter-spacing: .1em;
  }

  .nav-links { display: none; }

  /* ── Botão hamburguer ── */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
    transition: transform .3s, opacity .25s;
    transform-origin: center;
  }
}


/* ════════════════════════════════════════════════════════════════
   3. HERO — INDEX
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  .hero {
    min-height: 100svh;   /* usa svh para compensar barra do browser */
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 90px var(--mob-pad) 120px;
    gap: 40px;
    align-items: start;
  }

  .hero-h1 {
    font-size: clamp(64px, 16vw, 96px);
    margin-bottom: 28px;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .hero-acts {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-acts .btn {
    justify-content: center;
    padding: 15px 24px;
    font-size: 14px;
    min-height: var(--mob-tap);
  }

  /* Stats panel — posicionado abaixo do texto */
  .hero-panel {
    width: 100%;
  }

  .panel-box {
    padding: 22px;
    border-radius: var(--mob-radius);
  }

  .panel-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .stats-grid-premium {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card-premium {
    min-height: 100px;
    padding: 15px 13px;
    border-radius: 14px;
  }

  .stat-card-premium .stat-n {
    font-size: 46px;
  }

  .stat-card-premium .stat-l {
    font-size: 11px;
  }

  /* Hero bar inferior */
  .hero-bar {
    padding: 18px var(--mob-pad);
    flex-direction: row;
  }

  .h-socials { gap: 16px; }
  .h-socials a { font-size: 10px; }

  .hero-bgnum {
    font-size: 130px;
    right: -4%;
    bottom: 12%;
    opacity: .6;
  }
}

@media (max-width: 480px) {
  .stats-grid-premium { grid-template-columns: 1fr 1fr; }
  .hero-h1 { font-size: clamp(56px, 15vw, 78px); }
}


/* ════════════════════════════════════════════════════════════════
   4. MARQUEE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .marquee { padding: 11px 0; }
  .m-item { font-size: 12px; padding: 0 22px; gap: 22px; }
}


/* ════════════════════════════════════════════════════════════════
   5. MANIFESTO / QUEM SOMOS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .manifesto {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 72px var(--mob-pad) 64px;
  }

  .m-aside { padding-top: 0; }

  .m-h2 {
    font-size: clamp(38px, 10vw, 56px);
    margin-bottom: 32px;
  }

  .m-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .m-p { font-size: 16px; }

  .m-feat {
    padding: 16px 0;
    gap: 14px;
  }

  .feat-t h4 { font-size: 15px; }
  .feat-t p  { font-size: 14px; }
}


/* ════════════════════════════════════════════════════════════════
   6. PROJETOS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .projects-sec {
    padding-left: var(--mob-pad);
    padding-right: var(--mob-pad);
    padding-bottom: 72px;
  }

  .projects-hd { margin-bottom: 28px; }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .proj-card--featured {
    grid-column: 1;
    min-height: 360px;
  }

  .proj-card {
    min-height: 280px;
    border-radius: var(--mob-radius);
  }

  .proj-card--stack {
    min-height: 240px;
  }

  .projects-side {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .proj-content { padding: 20px; }

  .proj-title { font-size: clamp(20px, 5vw, 28px); }

  .proj-desc { font-size: 13px; display: none; } /* oculta desc em telas pequenas */

  /* Sempre mostra a seta nos cards mobile */
  .proj-arrow {
    opacity: 1;
    transform: translateY(0);
    background: rgba(245,196,0,.9);
    color: var(--ink);
    width: 36px;
    height: 36px;
  }
  .proj-arrow svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  .projects-side {
    grid-template-columns: 1fr;
  }
  .proj-card--stack { min-height: 220px; }
}


/* ════════════════════════════════════════════════════════════════
   7. NOTÍCIAS — SEÇÃO HOME
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .news-sec {
    padding: 72px var(--mob-pad);
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-main {
    min-height: 400px;
    border-radius: var(--mob-radius);
  }

  .news-main-content {
    padding: 24px 22px;
  }

  .news-main-title {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: 10px;
  }

  .news-main-excerpt {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
    /* limita a 3 linhas no mobile */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-side-card {
    grid-template-columns: 120px 1fr;
    min-height: 140px;
    border-radius: var(--mob-radius);
  }

  .news-side-media {
    min-height: 100%;
  }

  .news-side-body {
    padding: 16px 14px;
    gap: 10px;
  }

  .news-side-title {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .news-side-excerpt {
    font-size: 12px;
    /* limita a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .news-side-card {
    grid-template-columns: 100px 1fr;
  }
  .news-main { min-height: 340px; }
}


/* ════════════════════════════════════════════════════════════════
   8. FAQ
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .faq-sec {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 72px var(--mob-pad);
  }

  .faq-left p { font-size: 15px; margin-bottom: 28px; }

  .faq-btn {
    min-height: var(--mob-tap);
    width: 100%;
    justify-content: center;
  }

  .fi summary {
    font-size: 15px;
    padding: 18px 0;
    min-height: var(--mob-tap);
    align-items: center;
  }

  .fi-ico {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .fi-ans {
    font-size: 14px;
    padding-bottom: 18px;
  }
}


/* ════════════════════════════════════════════════════════════════
   9. FOOTER
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .ft-top {
    padding: 52px var(--mob-pad) 40px;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .ft-bottom {
    padding: 16px var(--mob-pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ft-logo { font-size: 22px; margin-bottom: 14px; }
  .ft-tag  { font-size: 13px; }
}

@media (max-width: 600px) {
  .ft-top { grid-template-columns: 1fr; gap: 24px; }
}


/* ════════════════════════════════════════════════════════════════
   10. PÁGINA HERO INTERNA (todas as sub-páginas)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .page-hero {
    padding: 100px var(--mob-pad) 56px;
  }

  .ph-h1 {
    font-size: clamp(52px, 13vw, 80px);
    line-height: .9;
  }

  .ph-sub {
    font-size: 15px;
    margin-top: 18px;
  }

  .ph-bread { font-size: 10px; }
}


/* ════════════════════════════════════════════════════════════════
   11. NOTÍCIAS — PÁGINA LISTAGEM
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Hero notícias */
  .hero-inner.noticias-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--mob-pad) 32px;
    gap: 16px;
  }

  .hero-h1 { font-size: clamp(52px, 14vw, 80px); }
  .hero-right { text-align: left; }
  .hero-num  { font-size: clamp(60px, 14vw, 90px); }

  /* Barra de filtros */
  .filters {
    top: 60px;
    padding: 0 var(--mob-pad);
  }

  .ftab {
    font-size: 10px;
    padding: 14px 14px;
    letter-spacing: .05em;
  }

  /* Grid de notícias */
  .wrap {
    padding: 40px var(--mob-pad) 80px;
  }

  /* Cards principais */
  .news-card-main {
    border-radius: var(--mob-radius);
    min-height: 300px;
  }

  /* Cards secundários */
  .news-card {
    border-radius: var(--mob-radius);
  }

  .news-card .nc-body {
    padding: 16px;
  }
}


/* ════════════════════════════════════════════════════════════════
   12. GALERIA
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .gal-grid {
    columns: 2;
    gap: 8px;
    padding: 0 var(--mob-pad);
  }

  .gal-item {
    border-radius: var(--mob-radius-sm);
    margin-bottom: 8px;
    break-inside: avoid;
  }

  /* Lightbox mobile */
  .lb-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .lb-prev, .lb-next {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .gal-grid { columns: 1; }
}


/* ════════════════════════════════════════════════════════════════
   13. ATLETAS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .page-hero,
  .container {
    padding-left: var(--mob-pad);
    padding-right: var(--mob-pad);
  }

  .atl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .atl-card {
    border-radius: var(--mob-radius);
  }
}

@media (max-width: 420px) {
  .atl-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════
   14. CONTATO
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }

  .contact-form {
    padding: 28px 22px;
    border-radius: var(--mob-radius);
  }

  .contact-form h3 { font-size: 24px; }

  .form-row { grid-template-columns: 1fr; }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;   /* evita zoom no iOS */
    padding: 13px 16px;
    border-radius: var(--mob-radius-sm);
  }

  .submit-btn {
    min-height: var(--mob-tap);
    font-size: 15px;
    border-radius: var(--mob-radius-sm);
  }

  .wpp-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .wpp-btn {
    width: 100%;
    justify-content: center;
    min-height: var(--mob-tap);
    font-size: 15px;
  }
}


/* ════════════════════════════════════════════════════════════════
   15. PARCEIROS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .partner-card {
    border-radius: var(--mob-radius-sm);
    padding: 20px 16px;
  }
}

@media (max-width: 420px) {
  .partners-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════
   16. A ASSOCIAÇÃO
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .about-grid,
  .timeline-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-img {
    min-height: 260px;
    border-radius: var(--mob-radius);
  }

  .timeline-item {
    padding-left: 24px;
  }
}


/* ════════════════════════════════════════════════════════════════
   17. PÁGINA DE PROJETO (1.php, 2.php, etc.)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .proj-detail-hero {
    min-height: 60vh;
  }

  .proj-detail-content {
    padding: 48px var(--mob-pad);
  }

  .proj-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .proj-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* ════════════════════════════════════════════════════════════════
   18. PÁGINA DE NOTÍCIA INDIVIDUAL
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .article-wrap {
    padding: 48px var(--mob-pad) 72px;
  }

  .article-hero-img {
    border-radius: var(--mob-radius);
    margin-bottom: 28px;
  }

  .article-title {
    font-size: clamp(32px, 9vw, 52px);
    line-height: .95;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ════════════════════════════════════════════════════════════════
   19. BOTÃO FLUTUANTE WHATSAPP
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .wpp {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .wpp svg { width: 22px; height: 22px; }
}


/* ════════════════════════════════════════════════════════════════
   20. UTILITÁRIOS MOBILE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Cabeçalhos de seção */
  .s-h2 { font-size: clamp(30px, 8vw, 46px); }
  .s-label { font-size: 10px; }

  /* Container geral */
  .container {
    padding-left: var(--mob-pad);
    padding-right: var(--mob-pad);
  }

  /* Seções com padding padrão */
  .sec {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Botões — tamanho mínimo de toque */
  .btn {
    min-height: var(--mob-tap);
    padding: 13px 22px;
  }

  /* "Ver todos" / "Ver todas" */
  .see-all,
  .news-va {
    font-size: 12px;
  }

  /* Previne overflow horizontal global */
  body { overflow-x: hidden; }

  /* Imagens responsivas */
  img { max-width: 100%; height: auto; }

  /* Remove animações hover complexas no mobile para performance */
  .proj-card:hover .proj-media img,
  .news-main:hover .news-main-media img {
    transform: scale(1.01);
  }

  /* Scroll suave em containers horizontais */
  .filters-inner {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .ftab { scroll-snap-align: start; }
}


/* ════════════════════════════════════════════════════════════════
   21. ACESSIBILIDADE MOBILE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Focus visível para navegação por teclado / VoiceOver */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Área de toque mínima em botões e links de ação */
  .nav-burger,  .wpp,
  .btn,
  .faq-btn,
  .submit-btn,
  .wpp-btn,
  .mob-wpp-btn {
    min-height: var(--mob-tap);
    min-width: var(--mob-tap);
  }
}


/* ════════════════════════════════════════════════════════════════
   22. PERFORMANCE — reduce-motion
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-lines span,
  .m-track,
  .tape-track,
  .scroll-l::after,
  .mob-overlay,
  .mob-overlay a,
  .proj-card,
  .news-main,
  .news-side-card {
    animation: none !important;
    transition: none !important;
  }
  .mob-overlay { transition: transform .2s !important; }
}
