/*
  Tema1 - Responsividade Universal V4
  Objetivo: adaptar a landing aos principais tamanhos de navegação
  sem descaracterizar o layout original.
*/

:root {
  --tema1-container-max: 1320px;
  --tema1-container-pad: clamp(16px, 4vw, 42px);
  --tema1-section-gap: clamp(46px, 7vw, 110px);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.tema1-responsive-universal {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.tema1-responsive-universal *,
.tema1-responsive-universal *::before,
.tema1-responsive-universal *::after {
  box-sizing: border-box;
}

.tema1-responsive-universal img,
.tema1-responsive-universal svg,
.tema1-responsive-universal video,
.tema1-responsive-universal canvas {
  max-width: 100%;
  height: auto;
}

.tema1-responsive-universal .sp-page-builder,
.tema1-responsive-universal .page-content,
.tema1-responsive-universal .builder-container,
.tema1-responsive-universal section.sppb-section {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.tema1-responsive-universal .sppb-row-container {
  width: 100%;
  max-width: var(--tema1-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tema1-container-pad);
  padding-right: var(--tema1-container-pad);
}

.tema1-responsive-universal .sppb-row {
  max-width: 100%;
}

.tema1-responsive-universal .sppb-row-column,
.tema1-responsive-universal .sppb-column,
.tema1-responsive-universal .sppb-column-addons,
.tema1-responsive-universal .sppb-addon-wrapper,
.tema1-responsive-universal .sppb-addon,
.tema1-responsive-universal .sppb-addon-content,
.tema1-responsive-universal .sppb-addon-single-image-container {
  max-width: 100%;
}

.tema1-responsive-universal .sppb-addon-title,
.tema1-responsive-universal .sppb-addon-content,
.tema1-responsive-universal .sppb-addon-text,
.tema1-responsive-universal p,
.tema1-responsive-universal h1,
.tema1-responsive-universal h2,
.tema1-responsive-universal h3,
.tema1-responsive-universal h4,
.tema1-responsive-universal h5,
.tema1-responsive-universal h6 {
  overflow-wrap: anywhere;
}

/* Header: evita quebra agressiva em telas intermediárias */
.tema1-responsive-universal #sp-header,
.tema1-responsive-universal .header-sticky,
.tema1-responsive-universal .sp-header {
  max-width: 100%;
}

.tema1-responsive-universal .sp-megamenu-parent,
.tema1-responsive-universal .sp-megamenu-wrapper {
  max-width: 100%;
}

/* Hero principal */
.tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b {
  position: relative;
  min-height: auto;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(52px, 7vw, 105px);
}

.tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b .sppb-row {
  align-items: center;
  row-gap: clamp(28px, 5vw, 64px);
}

.tema1-responsive-universal .hero-title-profx {
  font-size: clamp(38px, 5.1vw, 72px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  max-width: 10.8em;
}

.tema1-responsive-universal .hero-title-profx .hero-title-base,
.tema1-responsive-universal .hero-title-profx .hero-title-typing-wrap,
.tema1-responsive-universal .hero-title-profx .hero-title-typing {
  max-width: 100%;
}

.tema1-responsive-universal .hero-title-profx .hero-title-typing-wrap {
  min-height: 1.2em;
}

.tema1-responsive-universal .hero-title-profx .hero-title-typing {
  white-space: normal;
}

.tema1-responsive-universal .hero-card-01-img {
  width: min(100%, 575px);
  max-height: min(76vh, 760px);
  object-fit: contain;
}

.tema1-responsive-universal .section-card-03-img {
  width: min(100%, 760px);
}

.tema1-responsive-universal .section-card-04-img {
  width: min(100%, 560px);
}

/* Botões e grupos de CTA */
.tema1-responsive-universal .sppb-addon-button-group .sppb-addon-content,
.tema1-responsive-universal .sppb-btn-wrapper,
.tema1-responsive-universal .sppb-addon-button-group {
  max-width: 100%;
}

.tema1-responsive-universal .sppb-addon-button-group .sppb-addon-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tema1-responsive-universal .sppb-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Coleções/cards: mantém o conceito em grade, mas ajusta colunas */
.tema1-responsive-universal .sppb-dynamic-content-collection {
  max-width: 100%;
}

.tema1-responsive-universal .sppb-dynamic-content-collection.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.tema1-responsive-universal .sppb-dynamic-content-collection.services .sppb-dynamic-content-collection__item {
  width: auto !important;
  max-width: 100%;
}

/* Blocos de estatísticas, planos e cards em geral */
.tema1-responsive-universal .sppb-addon-feature,
.tema1-responsive-universal .sppb-addon-person,
.tema1-responsive-universal .sppb-addon-animated-number,
.tema1-responsive-universal .sppb-addon-tab,
.tema1-responsive-universal .sppb-addon-pricing-table,
.tema1-responsive-universal .sppb-addon-accordion,
.tema1-responsive-universal .sppb-addon-text-block,
.tema1-responsive-universal .sppb-addon-raw-html {
  max-width: 100%;
}

/* Tabelas/abas: impedem estourar o viewport */
.tema1-responsive-universal table,
.tema1-responsive-universal .sppb-table,
.tema1-responsive-universal .sppb-nav,
.tema1-responsive-universal .sppb-tab-content {
  max-width: 100%;
}

.tema1-responsive-universal .sppb-nav,
.tema1-responsive-universal .sppb-tab-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Paletas laterais: desktop mantém lateral; mobile reduz impacto visual */
.tema1-responsive-universal .sppb-color-switcher {
  z-index: 100200;
}

.tema1-responsive-universal .sppb-color-switcher-colors-wrapper,
.tema1-responsive-universal .sppb-color-switcher-colors {
  max-width: calc(100vw - 16px);
}

/* Large desktop */
@media (min-width: 1600px) {
  :root {
    --tema1-container-max: 1460px;
  }

  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(64px, 4.2vw, 82px) !important;
  }

  .tema1-responsive-universal .hero-card-01-img {
    width: min(100%, 660px);
  }
}

/* Notebook comum */
@media (max-width: 1399.98px) {
  :root {
    --tema1-container-max: 1180px;
    --tema1-container-pad: clamp(18px, 3.2vw, 34px);
  }

  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(42px, 5vw, 62px) !important;
  }

  .tema1-responsive-universal .hero-card-01-img {
    width: min(100%, 500px);
  }
}

/* Tablet horizontal / notebook menor */
@media (max-width: 1199.98px) {
  .tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b .sppb-row {
    justify-content: center;
  }

  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(39px, 5.4vw, 56px) !important;
  }

  .tema1-responsive-universal .sppb-dynamic-content-collection.services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tema1-responsive-universal .section-card-03-img,
  .tema1-responsive-universal .section-card-04-img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablet vertical e mobile grande */
@media (max-width: 991.98px) {
  :root {
    --tema1-container-pad: clamp(16px, 5vw, 28px);
  }

  .tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b {
    padding-top: clamp(36px, 7vw, 70px);
    padding-bottom: clamp(42px, 8vw, 82px);
  }

  .tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b .sppb-row-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .tema1-responsive-universal #section-id-72ce0223-c0e2-4c35-beff-9521b579260b .sppb-column-addons {
    text-align: center;
  }

  .tema1-responsive-universal .hero-title-profx {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(38px, 8vw, 54px) !important;
    letter-spacing: -0.03em;
  }

  .tema1-responsive-universal .hero-title-profx .hero-title-cursor-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .tema1-responsive-universal .sppb-addon-button-group .sppb-addon-content {
    justify-content: center;
  }

  .tema1-responsive-universal .hero-card-01-img {
    width: min(100%, 430px);
    max-height: none;
  }

  .tema1-responsive-universal .sppb-row:not(#sp-header .sppb-row) {
    row-gap: clamp(26px, 6vw, 48px);
  }

  .tema1-responsive-universal .sppb-row-column {
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root {
    --tema1-container-pad: 16px;
  }

  .tema1-responsive-universal .sppb-row-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tema1-responsive-universal section.sppb-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(34px, 10vw, 45px) !important;
    line-height: 1.09 !important;
  }

  .tema1-responsive-universal .hero-title-profx .hero-title-typing-wrap {
    min-height: 1.38em;
  }

  .tema1-responsive-universal .sppb-addon-button-group .sppb-addon-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tema1-responsive-universal .sppb-addon-button-group .sppb-btn,
  .tema1-responsive-universal .sppb-btn {
    width: 100%;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tema1-responsive-universal .sppb-dynamic-content-collection.services {
    grid-template-columns: 1fr;
  }

  .tema1-responsive-universal .hero-card-01-img {
    width: min(100%, 380px);
  }

  .tema1-responsive-universal .section-card-03-img,
  .tema1-responsive-universal .section-card-04-img {
    width: min(100%, 430px);
  }

  .tema1-responsive-universal .sppb-color-switcher {
    transform: scale(.86);
    transform-origin: right center;
    right: 6px !important;
  }

  .tema1-responsive-universal .sppb-color-switcher-colors-wrapper {
    max-height: 82vh;
    overflow-y: auto;
  }
}

/* Mobile compacto */
@media (max-width: 575.98px) {
  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(30px, 10.8vw, 39px) !important;
  }

  .tema1-responsive-universal .hero-title-profx .hero-title-typing {
    white-space: normal;
  }

  .tema1-responsive-universal p,
  .tema1-responsive-universal .sppb-addon-content {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.6;
  }

  .tema1-responsive-universal .hero-card-01-img {
    width: min(100%, 340px);
  }

  .tema1-responsive-universal .section-card-03-img,
  .tema1-responsive-universal .section-card-04-img {
    width: min(100%, 360px);
  }

  .tema1-responsive-universal .sppb-color-switcher {
    transform: scale(.78);
  }
}

/* Muito estreito: protege contra cortes em celulares pequenos */
@media (max-width: 390px) {
  .tema1-responsive-universal .sppb-row-container {
    padding-left: 13px;
    padding-right: 13px;
  }

  .tema1-responsive-universal .hero-title-profx {
    font-size: clamp(27px, 10.5vw, 34px) !important;
  }

  .tema1-responsive-universal .sppb-btn {
    min-height: 46px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 14px !important;
  }

  .tema1-responsive-universal .sppb-color-switcher {
    transform: scale(.72);
    right: 2px !important;
  }
}

/* Preferência do usuário por menos animação: mantém layout, reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .tema1-responsive-universal *,
  .tema1-responsive-universal *::before,
  .tema1-responsive-universal *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
