/* ===================================
   MELHORIAS MOBILE - VEM PRA UNO
   Arquivo adicional para melhorar responsividade
   =================================== */

/* ===================================
   CORREÇÃO GLOBAL - PREVINE SCROLL HORIZONTAL
   =================================== */
@media (max-width: 768px) {
  /* Previne scroll horizontal global */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Garante que nenhum elemento ultrapasse a viewport */
  * {
    max-width: 100% !important;
  }

  /* Exceções necessárias */
  img, svg, video {
    max-width: 100%;
    height: auto;
  }

  /* Containers principais */
  .container,
  .bloco-grid,
  .ofertas-container,
  .bloco-cinza,
  section,
  div {
    max-width: 100vw !important;
  }

  /* Previne overflow em flex/grid */
  .streamings,
  .cards,
  .icongrid {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* ===================================
   CORREÇÃO GLOBAL - BANNERS
   Aplica-se a todas as resoluções mobile
   Sobrescreve o overflow: hidden do styles.css
   =================================== */

/* Desktop - mantém comportamento original */
@media (min-width: 1025px) {
  .hero {
    overflow: hidden;
  }

  .hero-banner {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Tablet e Mobile - banner completo sem cortes */
@media (max-width: 1024px) {
  .hero,
  .hero-empresa-full,
  .link-dedicado-full {
    width: 100%;
    overflow: visible !important;
    position: relative;
    padding: 0;
    margin: 0;
  }

  .hero-banner,
  .hero-empresa-image,
  .link-dedicado-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: scale-down !important;
    max-width: 100%;
    min-height: auto !important;
  }
}

/* ===================================
   MENU MOBILE - Hamburguer
   =================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HEADER MOBILE - REORGANIZAÇÃO
   Hambúrguer à esquerda, logo centralizado
   =================================== */
@media (max-width: 1024px) {
  .topbar {
    display: grid !important;
    grid-template-columns: 60px 1fr 60px !important;
    align-items: center !important;
    padding: 10px 15px !important;
  }

  .mobile-menu-toggle {
    grid-column: 1 !important;
    justify-self: start !important;
    order: -1 !important;
  }

  .logo {
    grid-column: 2 !important;
    justify-self: center !important;
    margin: 0 !important;
  }

  nav {
    grid-column: 3 !important;
  }
}

/* ===================================
   MELHORIAS GERAIS MOBILE
   =================================== */
@media (max-width: 768px) {
  /* Navegação mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--stroke);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  nav.mobile-active {
    display: flex;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* Hero banner ajustado - Mobile - imagem completa 2013x671 */
  .hero {
    margin-top: 0;
    width: 100%;
    overflow: visible !important;
    position: relative;
  }

  .hero-banner {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    display: block !important;
    max-width: 100%;
  }

  /* Banner empresarial mobile */
  .hero-empresa-full {
    padding-top: 0;
    overflow: visible !important;
  }

  .hero-empresa-image {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    max-width: 100%;
  }

  /* Títulos e textos */
  h1 {
    font-size: 28px !important;
    line-height: 1.3;
  }

  h2 {
    font-size: 24px !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 20px !important;
    line-height: 1.3;
  }

  h4 {
    font-size: 16px !important;
  }

  p {
    font-size: 14px !important;
    line-height: 1.6;
  }

  /* Botões maiores para touch */
  .btn, .btn-outline, .btn-plan {
    padding: 16px 24px;
    font-size: 15px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Cards responsivos - 3 colunas lado a lado - FORÇADO */
  .intro .cards,
  .cards[aria-label="categorias"],
  section .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 6px !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  .card-img-link {
    margin-bottom: 0 !important;
    display: block !important;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
  }

  /* Cards sempre coloridos */
  .card-img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    filter: grayscale(0%) !important;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
    background: transparent;
  }

  /* Efeito touch para mobile - adiciona glow ao tocar */
  .card-img-link:active {
    transform: scale(0.95);
  }

  .card-img-link:active .card-img {
    filter: drop-shadow(0 0 2px rgba(255, 106, 0, 0.7)) drop-shadow(0 0 5px rgba(255, 106, 0, 0.3)) !important;
    transform: scale(1.02);
  }

  /* Planos grid mobile */
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 0 12px;
  }

  .plan-card {
    padding: 24px;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
  }

  .plan-card.featured {
    transform: scale(1) !important;
    border: 3px solid var(--brand);
  }

  .plan-card.featured:hover {
    transform: translateY(-5px) !important;
  }

  .ribbon {
    right: -25px;
    top: 15px;
    padding: 6px 35px;
    font-size: 10px;
  }

  /* Formulário mobile */
  .form-wrap {
    padding: 20px 16px;
  }

  .inputs {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .input, select.input {
    padding: 16px;
    font-size: 16px; /* Previne zoom no iOS */
    min-height: 48px;
  }

  .select-wrapper label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Footer melhorado */
  .foot {
    padding: 30px 0;
  }

  .contact {
    text-align: center;
    padding: 24px;
  }

  .contact .line {
    font-size: 14px;
    margin: 8px 0;
    word-break: break-word;
  }

  .social {
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  /* Mapa responsivo */
  .map iframe {
    height: 250px !important;
    border-radius: 12px;
  }

  /* Sitemap footer */
  .footer-sitemap {
    padding: 30px 0;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .sitemap-column h4 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .sitemap-column li {
    margin: 10px 0;
  }

  .sitemap-column a {
    font-size: 14px;
    padding: 8px 0;
    display: block;
  }

  /* Depoimentos mobile */
  .cards-depo {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }

  .dep-card {
    padding: 24px;
  }

  .dep-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Icons grid mobile */
  .icongrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
    padding: 0 12px;
  }

  .logo-partner {
    font-size: 10px;
    padding: 12px 8px;
  }

  /* SEÇÃO OFERTAS - Layout mobile reorganizado */
  .ofertas-full-width {
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .ofertas-full-width .bloco-cinza {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ofertas-container {
    position: relative !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Mosaico escondido na versão mobile */
  .mosaico-bg {
    display: none !important;
  }

  /* Grid simplificado sem imagem */
  .ofertas-container .bloco-grid {
    display: block !important;
    padding: 30px 20px !important;
    gap: 0 !important;
  }

  /* Conteúdo principal da seção */
  .ofertas-container .bloco-text {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1;
  }

  .ofertas-container .content-header h2 {
    text-align: center !important;
    font-size: 26px !important;
    margin-bottom: 12px;
  }

  .ofertas-container .subtitle {
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.6;
    padding: 0 8px;
  }

  .ofertas-container .entertainment-benefits h3 {
    text-align: center !important;
    font-size: 16px !important;
    margin: 20px 0 16px;
  }

  /* Streamings mobile otimizado - container compacto */
  .streamings {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 8px !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: fit-content !important;
    margin: 0 auto !important;
  }

  .streamings a {
    flex: 0 0 auto !important;
    line-height: 0 !important;
    display: flex;
    align-items: center;
  }

  .streamings img {
    width: auto !important;
    filter: grayscale(100%) !important;
    opacity: 0.7;
    display: block !important;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  /* Logos coloridos ao tocar */
  .streamings a:active img {
    filter: grayscale(0%) !important;
    opacity: 1;
    transform: scale(1.1);
  }

  /* Tamanhos específicos por logo - Mobile */
  .streamings img[src*="logo_hbo"] {
    height: 26px !important;
    min-width: 40px;
  }

  .streamings img[src*="logo_paramount"] {
    height: 18px !important;
  }

  .streamings img[src*="LOGO_WATCH"] {
    height: 24px !important;
  }

  .streamings img[src*="digilivro_index"] {
    height: 70px !important;
  }

  .streamings img[src*="logo_jornalz"] {
    height: 75px !important;
  }

  /* Botões centralizados */
  .ofertas-container .cta-section {
    justify-content: center !important;
    margin-top: 24px;
  }

  .ofertas-container .cta-row {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
  }

  .ofertas-container .btn,
  .ofertas-container .btn-outline {
    width: 100% !important;
    max-width: 280px;
    text-align: center;
  }

  /* App section mobile */
  .app-content {
    margin-left: 0 !important;
    padding: 0 16px;
  }

  .app-content img {
    max-width: 200px;
    margin: 16px auto;
  }

  .app-text {
    font-size: 14px;
    padding: 0 12px;
  }
}

/* ===================================
   MELHORIAS ESPECÍFICAS PARA TELAS PEQUENAS
   =================================== */
@media (max-width: 480px) {
  /* Container mais estreito em telas muito pequenas */
  .container {
    width: 96%;
  }

  /* Banner hero em telas pequenas - imagem completa */
  .hero {
    overflow: visible !important;
  }

  .hero-banner {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Banner empresarial */
  .hero-empresa-full {
    overflow: visible !important;
  }

  .hero-empresa-image {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    max-width: 100% !important;
  }

  /* SEÇÃO OFERTAS - Telas pequenas */
  .mosaico-bg {
    height: 200px !important;
  }

  .ofertas-container .bloco-text {
    padding: 24px 16px !important;
  }

  .ofertas-container .content-header h2 {
    font-size: 22px !important;
  }

  .streamings {
    gap: 12px !important;
    padding: 12px 8px !important;
  }

  /* Tamanhos específicos por logo - Mobile Pequeno (<480px) */
  .streamings img[src*="logo_hbo"] {
    height: 24px !important;
  }

  .streamings img[src*="logo_paramount"] {
    height: 16px !important;
  }

  .streamings img[src*="LOGO_WATCH"] {
    height: 22px !important;
  }

  .streamings img[src*="digilivro_index"] {
    height: 60px !important;
  }

  .streamings img[src*="logo_jornalz"] {
    height: 65px !important;
  }

  /* Cards - 3 colunas mesmo em telas pequenas */
  .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 0 4px;
  }

  .card-img {
    border-radius: 8px;
  }

  /* Logo header ainda menor */
  .logo img {
    height: 140px !important;
    margin-top: -50px !important;
    margin-bottom: -40px !important;
  }

  /* Botões full width em telas pequenas */
  .btn, .btn-outline {
    width: 100%;
    max-width: 100%;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  /* Planos mais compactos */
  .speed-num {
    font-size: 44px !important;
  }

  .speed-unit {
    font-size: 18px !important;
  }

  /* Formulário ultra compacto */
  .faixa-form {
    padding: 20px 12px;
    margin: 20px 0;
  }

  .form-wrap {
    padding: 16px 12px;
  }

  /* Footer compacto */
  .contact .logo img {
    height: 140px !important;
    margin-top: -50px !important;
    margin-bottom: -50px !important;
  }

  .contact .line {
    font-size: 12px;
  }

  /* Icongrid 2 colunas em telas muito pequenas */
  .icongrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===================================
   MELHORIAS PARA TABLETS
   =================================== */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Banner para tablets - imagem completa */
  .hero,
  .hero-empresa-full {
    overflow: visible !important;
  }

  .hero-banner,
  .hero-empresa-image {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    max-width: 100%;
    display: block !important;
  }

  /* Grid de planos 2 colunas */
  .plans-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }

  /* Cards - mantém 3 colunas em tablet também */
  .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
    padding: 0 12px;
  }

  .card-img {
    border-radius: 12px;
  }

  /* Depoimentos 2 colunas */
  .cards-depo {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Icons grid otimizado */
  .icongrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   TOUCH OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
  /* Otimizações para dispositivos touch */

  /* Aumentar áreas de toque */
  a, button, .btn, .btn-plan, .card-img-link {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remover hover effects em touch devices */
  .btn:hover,
  .btn-plan:hover,
  .card-img-link:hover .card-img,
  nav a:hover {
    transform: none;
  }

  /* Active states para feedback visual */
  .btn:active {
    transform: scale(0.95);
    opacity: 0.9;
  }

  .btn-plan:active {
    transform: scale(0.95);
  }

  nav a:active {
    background: var(--brand);
    color: #fff;
  }
}

/* ===================================
   LANDSCAPE MODE MOBILE
   =================================== */
@media (max-width: 900px) and (orientation: landscape) {
  /* Ajustes para modo paisagem - imagem completa */
  .hero,
  .hero-empresa-full {
    overflow: visible !important;
  }

  .hero-banner,
  .hero-empresa-image {
    width: 100% !important;
    height: auto !important;
    object-fit: scale-down !important;
    max-width: 100%;
    display: block !important;
  }

  .app {
    min-height: 300px !important;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===================================
   ACESSIBILIDADE MOBILE
   =================================== */
@media (max-width: 768px) {
  /* Melhor contraste para leitura */
  .intro-quote {
    color: #1a1a1a;
    font-weight: 500;
  }

  /* Links mais visíveis */
  a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s;
  }

  a:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  /* Foco visível em inputs */
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
}

/* ===================================
   CORREÇÃO FINAL - CARDS 3 COLUNAS
   Sobrescreve styles.css linha 788
   =================================== */
@media (max-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 6px !important;
  }

  .intro .cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .card-img-link {
    display: block !important;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
  }

  .card-img {
    width: 100% !important;
    height: auto !important;
    filter: grayscale(0%) !important;
    border-radius: 10px !important;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
    background: transparent;
  }

  .card-img-link:active .card-img {
    filter: drop-shadow(0 0 2px rgba(255, 106, 0, 0.7)) drop-shadow(0 0 5px rgba(255, 106, 0, 0.3)) !important;
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 4px !important;
  }
}

@media (max-width: 360px) {
  .cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 0 2px !important;
  }

  .card-img {
    border-radius: 8px !important;
  }
}

/* ===================================
   CORREÇÕES CRÍTICAS - NOVEMBRO 2025
   Corrige problemas identificados na análise comparativa
   =================================== */

/* ===================================
   FIX 1: APP SECTION - Layout Mobile
   Problema: Grid 2 colunas quebrava em mobile
   Solução: Display block, background mais sutil
   =================================== */
@media (max-width: 768px) {
  /* Corrige container principal do app */
  .app,
  .container.app,
  section .app {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 30px 0 !important;
  }

  /* Background mais sutil em mobile */
  .app-bg {
    opacity: 0.2 !important;
    background-position: center !important;
    background-size: cover !important;
  }

  /* Conteúdo centralizado e legível */
  .app-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    text-align: center;
  }

  .app-content .sub {
    text-align: center;
  }

  .app-content img {
    display: block;
    margin: 0 auto 20px !important;
    max-width: 200px !important;
  }

  .app-content .app-text {
    text-align: center;
    margin-bottom: 24px;
  }

  .app-content .cta-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .app-content .cta-row .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===================================
   FIX 2: DEPOIMENTOS - Remove animação e corrige layout
   Problema: Animação infinita + layout flex tentando usar grid
   Solução: Flex vertical, sem animação, altura auto
   =================================== */
@media (max-width: 768px) {
  /* Carrossel infinito de depoimentos */
  .depo .container > div {
    overflow: hidden !important;
    position: relative;
  }

  .cards-depo {
    display: flex !important;
    gap: 25px !important;
    animation: testimonialScrollMobile 20s linear infinite !important;
    white-space: nowrap !important;
    padding: 0 !important;
    width: max-content !important;
  }

  /* Duplicar cards para loop infinito via CSS */
  .cards-depo::after {
    content: '';
    display: flex;
    gap: 25px;
  }

  /* Cards do carrossel */
  .dep-card {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid var(--stroke, #e3e3e6);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    height: 280px !important;
    flex-shrink: 0;
    white-space: normal;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .dep-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 3rem;
    color: var(--brand, #ff6a00);
    font-weight: 800;
    opacity: 0.3;
  }

  .dep-card p {
    color: #444;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    align-self: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Pausa animação ao tocar */
  .cards-depo:active {
    animation-play-state: paused;
  }
}

/* ===================================
   FIX 3: HOVER EFFECTS - Isola para desktop
   Problema: Touch devices ativam hover states
   Solução: Media query hover específica
   =================================== */

/* Desktop only - hovers */
@media (hover: hover) and (pointer: fine) {
  /* Cards hover - adiciona glow */
  .card-img-link:hover .card-img {
    filter: drop-shadow(0 0 2px rgba(255, 106, 0, 0.7)) drop-shadow(0 0 5px rgba(255, 106, 0, 0.3)) !important;
    transform: scale(1.05);
  }

  /* Streamings hover - logos coloridos */
  .streamings a:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) !important;
    opacity: 1;
  }

  /* Depoimentos hover */
  .dep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  /* Icon grid hover */
  .icongrid .ico:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--brand);
  }

  /* Botões hover */
  .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 122, 26, 0.5), 0 0 20px rgba(255, 122, 26, 0.3);
  }

  .btn-outline:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(240, 90, 40, 0.4), 0 0 15px rgba(240, 90, 40, 0.2);
    border-color: var(--accent);
  }
}

/* Touch devices - remove hover, adiciona active */
@media (hover: none) and (pointer: coarse) {
  /* Desabilita hovers em touch */
  .streamings img:hover,
  .dep-card:hover,
  .icongrid .ico:hover,
  .btn:hover,
  .btn-outline:hover {
    transform: none;
    box-shadow: initial;
  }

  /* Feedback visual ao toque */
  .dep-card:active {
    transform: scale(0.98);
  }

  .icongrid .ico:active {
    transform: scale(0.95);
    background: var(--grey-100, #f6f6f7);
  }

  .btn:active {
    transform: scale(0.95);
  }

  .btn-outline:active {
    transform: scale(0.95);
  }
}

/* ===================================
   FIX 4: ICON GRID - 2 colunas em telas pequenas
   Problema: 3 colunas muito apertado
   Solução: 2 colunas em telas <480px
   =================================== */
@media (max-width: 480px) {
  .icongrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .logo-partner {
    font-size: 9px;
    padding: 10px 6px;
  }
}

/* Keyframe para carrossel mobile - Loop infinito perfeito */
@keyframes testimonialScrollMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================
   FIX 5: PERFORMANCE - Otimizações mobile
   =================================== */
@media (max-width: 768px) {
  /* Reduz GPU usage */
  .hero-banner,
  .app-bg,
  .mosaico-bg {
    will-change: auto;
  }

  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
  }
}

/* ===================================
   ACESSIBILIDADE - Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   FIM DAS CORREÇÕES
   Última atualização: 13/11/2025
   =================================== */
