/* Ajustes finais para telas pequenas: leitura, toque e proporÃ§Ã£o. */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .container { width: min(100% - 32px, 1180px); }

  /* NavegaÃ§Ã£o clara, legÃ­vel e prÃ³pria para toque. */
  .topo { padding: 9px 0 !important; }
  .topo .container { min-height: 58px; }
  .topo .logo img { height: 38px !important; }
  .menu {
    background: rgba(255,255,255,.99) !important;
    border-top: 1px solid rgba(255,99,0,.16) !important;
    box-shadow: 0 18px 34px rgba(102,38,0,.14) !important;
  }
  .menu.open::before { display: none !important; }
  .menu ul { padding-top: 8px !important; }
  .menu a, .topo .menu a {
    color: #ef5900 !important;
    padding: 13px 14px !important;
    border-bottom: 1px solid rgba(255,99,0,.10);
  }
  .topo .menu a:hover, .topo .menu a.ativo, .topo .menu a.destaque {
    color: #fff !important;
    background: #ff6300 !important;
  }

  /* Capa: bloco de texto compacto e livre de cortes. */
  .hero {
    min-height: 590px !important;
    padding: 0 !important;
    align-items: flex-start !important;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(8,17,33,.58) 0%, rgba(8,17,33,.42) 52%, rgba(8,17,33,.68) 100%) !important;
  }
  .hero-content { top: 0 !important; width: 100%; margin-top: 136px !important; padding: 0 5px; }
  .hero h1, .hero-content h1 {
    margin-bottom: 18px !important;
    font-size: clamp(2.5rem, 12vw, 3.35rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
  }
  .hero p, .hero-content p {
    max-width: 330px !important;
    margin: 0 auto 28px !important;
    font-size: 1.03rem !important;
    line-height: 1.5 !important;
  }
  .hero-cta { min-height: 54px; padding: 14px 31px !important; font-size: 1rem !important; }

  /* Carrossel de planos: conteÃºdo empilhado e controles fora da Ã¡rea de leitura. */
  #planos.promo-banner { padding: 42px 0 36px !important; }
  #planos .carousel { overflow: hidden !important; }
  #planos .carousel-slide > .container {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    padding: 0 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #planos .carousel-slide {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  #planos .promo-info { min-width: 0 !important; width: 100%; text-align: center; }
  #planos .promo-info h2 { margin: 0 auto 18px !important; font-size: clamp(2rem, 9.4vw, 2.65rem) !important; }
  #planos .promo-info > div:nth-of-type(1) { justify-content: center !important; gap: 14px !important; margin-bottom: 22px !important; }
  #planos .promo-info > div:nth-of-type(1) > div:first-child > div:nth-child(2) { font-size: 4.7rem !important; }
  #planos .promo-info > div:nth-of-type(1) > div:first-child > div:nth-child(3) { font-size: 2.1rem !important; }
  #planos .promo-info > div:nth-of-type(1) > div:last-child { padding: 12px 14px !important; }
  #planos .promo-info > div:last-child { display: grid !important; grid-template-columns: 1fr; gap: 10px !important; }
  #planos .promo-info a { width: 100%; padding: 14px 16px !important; font-size: .96rem !important; }
  #planos .promo-img { min-width: 0 !important; width: 100% !important; justify-content: center !important; }
  #planos .vivi-promo-card { width: min(100%, 280px) !important; height: 270px !important; margin: 0 auto !important; }
  #planos .carousel-prev, #planos .carousel-next { top: 42% !important; width: 34px !important; height: 34px !important; font-size: 1.25rem !important; }
  #planos .carousel-prev { left: 3px !important; }
  #planos .carousel-next { right: 3px !important; }

  /* SavTV fica em uma coluna, com catÃ¡logo de fÃ¡cil leitura. */
  #savtv-promo { min-height: 0 !important; padding: 52px 0 !important; }
  #savtv-promo > .container > div { display: flex !important; flex-direction: column; gap: 28px !important; }
  #savtv-promo > .container > div > div:first-child,
  #savtv-promo > .container > div > div:nth-child(2),
  #savtv-promo > .container > div > div:nth-child(3) { width: 100%; max-width: 100% !important; }
  #savtv-promo h2 { font-size: clamp(2.1rem, 10vw, 2.8rem) !important; }
  #savtv-promo > .container > div > div:nth-child(2) { min-height: 300px !important; border-radius: 26px !important; }
  #savtv-promo > .container > div > div:nth-child(2) img { height: 290px !important; }
  #savtv-promo > .container > div > div:nth-child(3) > div { padding: 14px 12px !important; }
  #savtv-promo > .container > div > div:nth-child(3) > div > div[style*="display: grid"] { grid-template-columns: repeat(3, 1fr) !important; gap: 7px !important; }
  #savtv-promo > .container > div > div:nth-child(3) > div > div[style*="display: grid"] > div { min-height: 66px !important; }

  /* SeÃ§Ãµes e conteÃºdos de apoio. */
  .servicos-section, .mapa-section, #sobre, .cta-section { padding: 60px 0 !important; }
  .section-title, .servicos-section h2, #sobre h2, .mapa-section .section-title { font-size: clamp(2rem, 9vw, 2.65rem) !important; }
  .section-subtitle { margin-bottom: 28px !important; font-size: 1rem !important; }
  .servico-card { padding: 25px 22px !important; }
  .mapa-container { border-radius: 16px !important; }
  .mapa-iframe { height: 310px !important; }
  #sobre p { font-size: 1rem !important; line-height: 1.65 !important; }
  .atc-section { min-height: 590px !important; }
  #atc .atc-content h2, #atc .atc-content p { transform: translateY(-72px) !important; }
  #atc .atc-click-hint { transform: translateY(70px) !important; }

  /* Elementos fixos nÃ£o disputam espaÃ§o entre si. */
  .chat-widget { right: 14px !important; bottom: 14px !important; }
  .savnet-cookie-banner { right: 14px !important; bottom: 14px !important; width: calc(100vw - 28px) !important; }
}

@media (max-width: 390px) {
  .hero h1, .hero-content h1 { font-size: 2.35rem !important; }
  #planos .carousel-slide > .container { padding-left: 38px !important; padding-right: 38px !important; }
  #planos .promo-info > div:nth-of-type(1) { gap: 9px !important; }
  #planos .promo-info > div:nth-of-type(1) > div:first-child > div:nth-child(2) { font-size: 4.25rem !important; }
  #savtv-promo > .container > div > div:nth-child(3) > div > div[style*="display: grid"] span { font-size: .57rem !important; }
}
