/* Home — box mobile: fechar, CTA flutuante e KV visível */

@media (max-width: 991px) {
  .hero__content {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    padding-top: var(--space-5);
    padding-bottom: calc(var(--space-5) + 1rem);
    gap: var(--space-3);
  }

  .hero:not(.hero--flow):not(.hero--hub-collapsed) .hero__content {
    position: relative;
    min-height: calc(var(--hero-h) - var(--header-h) - var(--promo-encerrada-h, 0px));
    overflow: visible;
	padding-bottom: 0rem!important;
  }

  .hero.hero--flow .hero__content {
    width: 100%;
    max-width: none;
    padding-top: var(--space-3);
    padding-bottom: calc(var(--space-5) + 4rem);
  }

  .hero.hero--flow .hero__hub,
  .hero.hero--flow .hero__vitrine-box {
    width: min(100%, 460px);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero.hero--logged .hero__content {
    padding-top: var(--space-3);
    padding-bottom: calc(var(--space-5) + 5rem);
  }

  .hero.hero--hub-collapsed {
    min-height: calc(100dvh - var(--hero-stack-h));
    max-height: calc(100dvh - var(--hero-stack-h));
    overflow: hidden;
  }

  .hero.hero--hub-collapsed .hero__media {
    position: fixed;
    top: var(--hero-stack-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--hero-stack-h));
  }

  .hero.hero--hub-collapsed .hero__content {
    min-height: calc(100dvh - var(--hero-stack-h));
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }

  .hero__hub {
    position: relative;
    z-index: 3;
    order: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding-inline: 1.2rem;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .hero__logged-wrap {
    order: 1;
    width: min(100%, 370px);
  }

  .hero__logged-wrap .hero__logged-box,
  .hero__logged-wrap .hero__logged-action {
    width: 100%;
    max-width: none;
  }

  /* Box e barra de ação compartilham a mesma largura dentro do hub */
  .hero__hub .hero__vitrine-box,
  .hero__hub .hero__cpf-action,
  .hero__hub .hero__whatsapp-action {
    width: 100%;
    max-width: none;
  }

  /* Formulário e botão 20% mais estreitos; a dica de CPF permanece na largura cheia do hub */
  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"],
  .hero__hub .hero__cpf-action,
  .hero__hub .hero__whatsapp-action {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"] .hero__cpf-hint,
  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"] .hero__cpf-hint.is-collapsed {
    width: 100%;
    max-width: none;
    /* margin-left: -12.5%; */
    /* margin-right: -12.5%; */
    box-sizing: border-box;
    text-align: left;
  }

  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"] .hero__cpf-hint.is-collapsed .hero__cpf-hint__head {
    /* margin-bottom: var(--space-2); */
  }

  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"] .hero__cpf-hint__list {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }

  .hero__hub .hero__vitrine-box[data-vitrine-panel="cpf"] .hero__cpf-hint.is-collapsed .hero__cpf-hint__list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.6rem);
  }

  .hero.hero--hub-collapsed .hero__hub {
    display: none;
  }

  .hero__hub-close {
    display: none !important;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 6;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 229, 206, 0.45);
    border-radius: 0.5rem;
    background: rgba(0, 42, 43, 0.72);
    color: var(--color-gold);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .hero__hub-close:hover {
    background: rgba(0, 72, 73, 0.85);
    color: #fff;
    transform: scale(1.05);
  }

  .hero__hub .page-card {
    padding-top: clamp(2.6rem, 5vw, 3.2rem);
  }

  .hero__hub-fab {
    position: fixed;
    left: 50%;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
    padding: 1rem 1.75rem;
    border: 1px solid rgba(0, 229, 206, 0.5);
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.38),
      0 0 24px rgba(0, 229, 206, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%) translateY(0);
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.28s ease,
      background 0.2s ease,
      opacity 0.24s ease;
    animation: hero-hub-fab-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__hub-fab.is-visible {
    display: inline-flex;
  }

  .hero__hub-fab i {
    color: var(--color-gold-soft);
    font-size: 1.05rem;
  }

  .hero__hub-fab:hover {
    background: var(--color-primary-hover);
    transform: translateX(-50%) translateY(-2px);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(0, 229, 206, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .hero__hub-fab:active {
    transform: translateX(-50%) translateY(0);
  }

  .hero.hero--hub-collapsed .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(0, 42, 43, 0.08) 0%, transparent 35%),
      linear-gradient(to bottom, rgba(0, 42, 43, 0.05) 0%, transparent 15%);
  }
}

@keyframes hero-hub-fab-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__hub-fab {
  display: none !important;
}

@media (min-width: 992px) {
  .hero__hub-close {
    display: none !important;
  }
}

