@media (min-width: 1200px) {
  .hero-header {
    width: min(1280px, calc(100% - 100px));
    padding-top: 4px;
  }
}

@media (max-width: 1199px) {
  .hero {
    min-height: 900px;
    background-position: 58% center;
  }

  .hero-header {
    gap: 16px;
    width: min(1120px, calc(100% - 80px));
    padding-top: 4px;
  }

  .brand img {
    width: clamp(145px, 16vw, 200px);
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .header-schedule {
    padding: 0 18px;
    font-size: 12px;
  }

  .hero-content {
    width: min(610px, 54%);
  }

  .hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    bottom: -90px;
    width: min(calc(100% - 56px), 1120px);
  }

  .feature-card {
    grid-template-columns: clamp(58px, 7vw, 70px) 1fr;
    gap: clamp(14px, 1.8vw, 18px);
    min-height: 165px;
    padding: clamp(24px, 2.7vw, 28px) clamp(20px, 2.5vw, 26px);
  }

  .feature-icon {
    width: clamp(58px, 6vw, 66px);
    height: clamp(58px, 6vw, 66px);
  }
}

@media (max-width: 991px) {
  .hero-header {
    gap: 12px;
    width: calc(100% - 40px);
    padding-top: 8px;
  }

  .brand {
    margin-right: auto;
  }

  .brand img {
    width: clamp(135px, 26vw, 185px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(216, 173, 85, 0.28);
    border-radius: 16px;
    background: rgba(8, 6, 5, 0.94);
    backdrop-filter: blur(12px);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
  }

  .main-nav a::after {
    bottom: 6px;
  }

  .hero-features {
    bottom: -74px;
    width: min(calc(100% - 32px), 920px);
  }

  .feature-card {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    min-height: 172px;
    gap: 12px;
    padding: 22px 14px;
    text-align: center;
  }

  .feature-card h2 {
    font-size: clamp(15px, 2vw, 18px);
  }

  .feature-card p {
    font-size: clamp(12px, 1.55vw, 14px);
  }
}

@media (max-width: 768px) {
  .studio-page {
    padding-top: 0;
  }

  .hero {
    width: 100%;
    min-height: clamp(760px, 126vw, 980px);
    margin: 0 0 70px;
    background-position: 65% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 6, 5, 0.98) 0%, rgba(8, 6, 5, 0.88) 44%, rgba(8, 6, 5, 0.36) 100%),
      linear-gradient(180deg, rgba(8, 6, 5, 0.54) 0%, transparent 24%, rgba(8, 6, 5, 0.72) 100%);
  }

  .hero-header {
    width: calc(100% - 28px);
    padding-top: 8px;
  }

  .brand img {
    width: clamp(125px, 40vw, 170px);
  }

  .header-schedule {
    display: none;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .main-nav {
    left: 14px;
    right: 14px;
    background: rgba(12, 9, 7, 0.96);
  }

  .nav-schedule {
    display: flex;
  }

  .hero-content {
    width: auto;
    margin: 80px 20px 0;
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-description br {
    display: none;
  }

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

  .button {
    width: 100%;
  }

  .hero-features {
    position: absolute;
    right: auto;
    bottom: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 740px);
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .feature-card {
    min-width: 112px;
    min-height: 142px;
    padding: 18px 10px;
  }

  .feature-card:not(:last-child)::after {
    top: 24px;
    right: 0;
    bottom: 24px;
    left: auto;
    width: 1px;
    height: auto;
  }

  .feature-icon {
    width: clamp(46px, 10vw, 58px);
    height: clamp(46px, 10vw, 58px);
  }

  .feature-icon svg {
    width: clamp(28px, 6vw, 36px);
    height: clamp(28px, 6vw, 36px);
  }
}

@media (max-width: 430px) {
  .hero-content {
    margin-top: 72px;
  }

  .hero-features {
    width: calc(100% - 20px);
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    bottom: -50px;
  }

  .feature-card {
    min-width: 108px;
    gap: 10px;
    padding: 16px 8px;
  }

  .feature-card h2 {
    font-size: 13px;
  }

  .feature-card p {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 1199px) {
  .services {
    padding: 88px 0 104px;
  }

  .services-carousel {
    --services-carousel-gap: 24px;
  }

  .service-image {
    height: 210px;
  }
}

@media (max-width: 991px) {
  .services-shell {
    width: min(900px, calc(100% - 40px));
  }

  .services-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 38px;
  }

  .service-card {
    flex-basis: calc((100% - var(--services-carousel-gap)) / 2);
  }
}

@media (max-width: 768px) {
  .services {
    padding: 76px 0 86px;
  }

  .services-shell {
    width: calc(100% - 28px);
  }


  .service-image {
    height: clamp(220px, 66vw, 340px);
  }

  .service-content {
    min-height: 206px;
  }
}

@media (max-width: 599px) {
  .services-carousel {
    --services-carousel-gap: 18px;
  }

  .service-card {
    flex-basis: 100%;
  }

  .services-carousel-prev {
    left: 10px;
  }

  .services-carousel-next {
    right: 10px;
  }

  .services-carousel-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .services-heading h2 {
    font-size: 52px;
  }

  .services-subtitle {
    font-size: 14px;
  }

  .service-card {
    border-radius: 22px;
  }

  .service-content {
    padding: 0 20px 20px;
  }
}

/* Auditoria mobile: ajustes finais para banners, navegação e respiro em telas pequenas. */
@media (max-width: 1024px) {
  .hero {
    min-height: clamp(680px, 88vw, 860px);
    background-position: 61% center;
  }

  .hero-content {
    width: min(560px, 58%);
    margin-top: clamp(64px, 8vw, 88px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: clamp(640px, 150vw, 760px);
    margin-bottom: 52px;
    background-size: auto 100%;
    background-position: 63% center;
  }

  .hero-header {
    align-items: center;
    min-height: 64px;
  }

  .main-nav {
    max-height: min(70vh, 440px);
    overflow-y: auto;
  }

  .hero-content {
    margin: clamp(56px, 15vw, 76px) 18px 0;
    padding-bottom: 28px;
  }

  .hero-content h1 {
    font-size: clamp(37px, 11.5vw, 54px);
    max-width: 10ch;
  }

  .hero-description {
    max-width: 21rem;
    font-size: clamp(16px, 4.3vw, 18px);
  }

  .button {
    min-height: 54px;
    padding-inline: 18px;
    text-align: center;
  }

  .hero-features {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 28px auto 0;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .feature-card {
    min-width: 0;
    min-height: auto;
    grid-template-columns: 58px 1fr;
    justify-items: stretch;
    padding: 18px;
    text-align: left;
  }

  .feature-card:not(:last-child)::after {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 1px;
  }

  .feature-card h2 {
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .feature-card p {
    font-size: clamp(13px, 3.7vw, 15px);
  }

  .services-heading h2 {
    font-size: clamp(42px, 15vw, 64px);
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: clamp(620px, 174vw, 720px);
    background-position: 62% center;
  }

  .hero-header {
    width: calc(100% - 32px);
  }

  .brand img {
    width: clamp(118px, 38vw, 150px);
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    margin-inline: 16px;
  }

  .hero-content h1 {
    font-size: clamp(35px, 11vw, 46px);
  }

  .hero-features {
    width: calc(100% - 32px);
  }

  .feature-card {
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .button,
  .header-schedule,
  .main-nav a {
    letter-spacing: 0.04em;
  }
}

/* Responsividade refeita para o hero mobile: remove largura herdada do desktop e evita overflow lateral. */
@media (max-width: 768px) {
  html,
  body,
  .studio-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    width: 100vw;
    max-width: none;
    min-height: clamp(760px, 158vw, 930px);
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    margin-bottom: 64px;
    overflow: visible;
    background-size: cover;
    background-position: center center;
  }

  .hero-header {
    width: min(100%, calc(100vw - 28px));
    max-width: none;
    margin-inline: auto;
  }

  .main-nav {
    right: 14px;
    left: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
  }

  .hero-content {
    width: min(100%, calc(100vw - 36px));
    max-width: 540px;
    margin: clamp(58px, 14vw, 82px) auto 0;
    padding-inline: 0;
    padding-bottom: 28px;
  }

  .hero-actions,
  .button {
    max-width: 100%;
  }

  .hero-features {
    width: min(94vw, 620px);
    max-width: none;
    margin: 28px auto 0;
    border-radius: 20px;
  }

  .feature-card {
    width: 100%;
  }

  .services,
  .services-shell,
  .services-carousel,
  .services-carousel-viewport {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: clamp(730px, 176vw, 850px);
  }

  .hero-header {
    width: calc(100vw - 24px);
  }

  .hero-content {
    width: calc(100vw - 32px);
    margin-top: clamp(52px, 13vw, 68px);
  }

  .hero-content h1 {
    max-width: 11ch;
  }

  .hero-features {
    width: 94vw;
  }
}

@media (max-width: 412px) {
  .hero {
    min-height: clamp(720px, 184vw, 800px);
    background-position: 54% center;
  }

  .brand img {
    width: clamp(116px, 36vw, 144px);
  }

  .hero-content {
    width: calc(100vw - 28px);
  }

  .hero-features {
    width: 93vw;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: clamp(710px, 190vw, 770px);
    background-position: 52% center;
  }

  .hero-signature {
    font-size: clamp(28px, 9vw, 34px);
  }

  .hero-content h1 {
    font-size: clamp(34px, 10.8vw, 42px);
  }

  .feature-card {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 15px;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: clamp(695px, 198vw, 740px);
    background-position: 50% center;
  }

  .hero-header {
    width: calc(100vw - 20px);
  }

  .hero-content {
    width: calc(100vw - 24px);
  }

  .button {
    min-height: 52px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .hero-features {
    width: 92vw;
  }
}

@media (max-width: 320px) {
  .hero {
    min-height: 690px;
  }

  .brand img {
    width: 108px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 15px;
  }

  .feature-card p {
    font-size: 12px;
  }
}
