html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative; /* necessário pro overflow funcionar no iOS */
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* ── BREAKPOINT 900px ─────────────────────────── */
@media (max-width: 900px) {

  /* HERO */
  .hero {
    overflow: hidden;
    min-height: auto;
    padding: 110px 1.5rem 3.5rem !important;
    justify-content: flex-start;
  }
  .hero-ticker {
    font-size: clamp(5rem, 22vw, 9rem);
    top: 40%;
    overflow: hidden;
    max-width: 100vw;
  }
  .hero-title {
    text-align: center;
    font-size: clamp(2.4rem, 10vw, 4rem);
    line-height: 1.05;
  }
  #changing-word {
    display: inline-block;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #f5502a 0%, #e8186d 45%, #9b27af 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  /* MARQUEE */
  .marquee-strip {
  overflow: hidden;
  max-width: 100%;
  padding: 1rem 0; }
  .marquee-logo { height: 28px; }
  .marquee-track { gap: 2.5rem; }

  /* SECTIONS */
  section { padding: 4rem 1.5rem; }
  #services { padding: 4rem 1.5rem !important; }
  #testimonials { padding: 4rem 1.5rem; }
  #work { padding: 4rem 1.5rem; }

  /* ABOUT */
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-title { font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1; }
  .about-text { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding-top: 1.5rem;
  }
  .stats-row .stat-item:last-child { grid-column: 1 / -1; }
  .stat-num { font-size: 2.4rem; }
  .stat-label { font-size: 0.7rem; }

  /* SERVICES */
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
  .services-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }
  .service-card .card-img { opacity: 0.2; transform: scale(1); }
  .service-card::after { opacity: 1; }

  /* WORK */
  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
  .work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-card:first-child { grid-row: span 1; }
  .work-card:first-child .work-thumb { aspect-ratio: 4/3; height: auto; }
  .work-thumb-overlay { opacity: 1; }

  /* TESTIMONIALS */
  .testimonials-title { font-size: clamp(2.4rem, 10vw, 3.5rem); margin-bottom: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* CTA */
  .cta-section { overflow: hidden; padding: 5rem 1.5rem; }
  .cta-bg-text { font-size: clamp(4rem, 20vw, 8rem); }
  .cta-title {
    font-size: clamp(2.6rem, 11vw, 4.5rem);
    line-height: 0.95;
    word-break: break-word;
  }
  .cta-title em { display: inline; }
  .cta-sub { font-size: 0.9rem; }
  .cta-btn { padding: 0.9rem 2rem; font-size: 0.85rem; }

  /* FOOTER */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .footer-divider-v {
    width: 60px; height: 1px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, var(--border), transparent);
  }
  .footer-contact-block { align-items: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
  }

}

/* ── BREAKPOINT 480px ─────────────────────────── */
@media (max-width: 480px) {

  .hero { padding: 100px 1.2rem 3rem !important; }
  .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
  .logo-topo-direita img { width: 90px; }

  .about-title { font-size: clamp(2rem, 12vw, 2.8rem); }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .stats-row .stat-item:last-child { grid-column: 1 / -1; }

  .marquee-logo { height: 22px; }
  .marquee-track { gap: 2rem; }

  .cta-title { font-size: clamp(2.2rem, 13vw, 3.5rem); }
  .testimonial-card { padding: 1.5rem; }
}

/* ── TOUCH: desativa hovers que travam ────────── */
@media (hover: none) {
  .service-card .card-img { opacity: 0.2; transform: scale(1); }
  .service-card::after { opacity: 1; }
  .work-thumb-overlay { opacity: 1; }
  .nav-cta:hover, .cta-btn:hover { transform: none; }
}