/* Ana Luíza Lasta Kodama
   NUSP 14651204
   Correção final: banner no primeiro fold, sem barras laterais no desktop, CTAs mais baixos no espaço livre e grid simétrico em "Quem Somos".
   Carregue este arquivo depois de assets/css/styles.css.
*/

/* =============================
   HERO / BANNER
   ============================= */
.hero,
.hero * {
  box-sizing: border-box !important;
}

.hero::before,
.hero::after,
.hero .elementor-background-overlay,
.elementor-background-overlay {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: calc(100svh - 78px) !important;
  max-height: calc(100svh - 78px) !important;
  min-height: 520px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #edf5ff !important;
  background-image: none !important;
  text-align: center !important;
}

.hero__media {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  z-index: 0 !important;
}

.hero__bg {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* A imagem tem texto na região esquerda/central.
   Por isso os CTAs ficam na área inferior direita, que é a região mais limpa do banner. */
.hero__content {
  position: absolute !important;
  left: auto !important;
  top: auto !important;
  right: clamp(18px, 6vw, 116px) !important;
  bottom: clamp(8px, 1.8vh, 18px) !important;
  transform: none !important;
  z-index: 2 !important;
  width: min(32vw, 360px) !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: center !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
}

.hero__ctas {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero__ctas .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: clamp(0.86rem, 0.95vw, 1rem) !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(10, 30, 60, 0.20) !important;
}

.hero .btn--outline {
  background: rgba(27, 62, 113, 0.92) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.82) !important;
}

.hero .btn--outline:hover,
.hero .btn--outline:focus-visible {
  background: #12345f !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.hero__micro-trust {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  align-self: center !important;
  width: auto !important;
  margin: 10px 0 0 0 !important;
  padding: 6px 12px !important;
  color: #12345f !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(10, 30, 60, 0.14) !important;
  white-space: nowrap !important;
}

.hero__micro-trust svg {
  color: #0f9d58 !important;
  flex-shrink: 0 !important;
}


/* Desktop: preenche toda a largura da viewport, eliminando as faixas laterais.
   Como a imagem nova já tem margem visual extra, o corte vertical é mínimo e controlado. */
@media (min-width: 901px) {
  .hero__bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Mobile/tablet: mantém a imagem inteira para preservar leitura e enquadramento. */
@media (max-width: 900px) {
  .hero__bg {
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Desktop largo: preenche sem barras laterais e deixa os CTAs no vazio inferior direito. */
@media (min-width: 1201px) {
  .hero__content {
    right: clamp(76px, 8vw, 160px) !important;
    bottom: clamp(8px, 1.8vh, 18px) !important;
    width: min(25vw, 320px) !important;
  }
}

/* Desktop/notebook menor: reduz os botões para não invadir o texto do banner. */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero__content {
    right: clamp(28px, 5vw, 72px) !important;
    bottom: clamp(8px, 1.6vh, 16px) !important;
    width: min(28vw, 290px) !important;
  }

  .hero__ctas .btn {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 0.86rem !important;
  }

  .hero__micro-trust {
    font-size: 0.76rem !important;
  }
}

/* Tablet e mobile: botões lado a lado, menores e na parte inferior da imagem. */
@media (max-width: 900px) {
  .hero__content {
    right: 50% !important;
    bottom: clamp(4px, 1.8vw, 10px) !important;
    transform: translateX(50%) !important;
    width: min(78vw, 430px) !important;
    max-width: calc(100% - 24px) !important;
    align-items: center !important;
  }

  .hero__ctas {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .hero__ctas .btn {
    min-height: 38px !important;
    padding: 8px 8px !important;
    border-radius: 7px !important;
    font-size: clamp(0.68rem, 2.2vw, 0.86rem) !important;
    line-height: 1.05 !important;
    box-shadow: 0 4px 10px rgba(10, 30, 60, 0.22) !important;
  }

  .hero__micro-trust {
    margin-top: 6px !important;
    padding: 4px 8px !important;
    font-size: clamp(0.58rem, 1.9vw, 0.74rem) !important;
  }

  .hero__micro-trust svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Celulares estreitos: compacta ainda mais para evitar sobreposição. */
@media (max-width: 420px) {
  .hero__content {
    bottom: 4px !important;
    width: min(86vw, 340px) !important;
  }

  .hero__ctas {
    gap: 5px !important;
  }

  .hero__ctas .btn {
    min-height: 29px !important;
    padding: 5px 4px !important;
    border-radius: 6px !important;
    font-size: 0.58rem !important;
  }

  .hero__micro-trust {
    margin-top: 4px !important;
    padding: 3px 7px !important;
    font-size: 0.55rem !important;
  }

  .hero__micro-trust svg {
    width: 11px !important;
    height: 11px !important;
  }
}


/* Notebooks com pouca altura: garante que os CTAs apareçam no primeiro fold. */
@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    min-height: 440px !important;
  }

  .hero__content {
    bottom: 8px !important;
    width: min(24vw, 280px) !important;
  }

  .hero__ctas {
    gap: 8px !important;
  }

  .hero__ctas .btn {
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
  }

  .hero__micro-trust {
    margin-top: 6px !important;
    padding: 4px 9px !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  .hero__media {
    display: block !important;
    height: auto !important;
  }

  .hero__bg {
    width: 100% !important;
    height: auto !important;
  }
}
/* =============================
   QUEM SOMOS - GRID SIMÉTRICO
   ============================= */
.whoweare__grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 24px !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
}

.whoweare__item {
  grid-column: span 2 !important;
  width: 100% !important;
  min-height: 260px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 32px 28px !important;
}

.whoweare__item:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

.whoweare__item:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

@media (max-width: 900px) {
  .whoweare__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 720px !important;
  }

  .whoweare__item,
  .whoweare__item:nth-child(4),
  .whoweare__item:nth-child(5) {
    grid-column: auto !important;
  }

  .whoweare__item:last-child {
    grid-column: 1 / -1 !important;
    max-width: 348px !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 600px) {
  .whoweare__grid {
    grid-template-columns: 1fr !important;
    max-width: 360px !important;
    gap: 18px !important;
  }

  .whoweare__item,
  .whoweare__item:last-child {
    grid-column: auto !important;
    max-width: none !important;
    min-height: auto !important;
  }
}

/* =============================
   MENU HAMBURGER SEM CORTE
   ============================= */
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.header .container {
  position: relative !important;
}

.nav,
.nav__toggle {
  position: relative !important;
  z-index: 1003 !important;
}

.nav__list {
  box-sizing: border-box !important;
  list-style: none !important;
  gap: 0 !important;
  padding: 0.75rem !important;
  margin: 0 !important;
  z-index: 1002 !important;
}

.nav__list li {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.nav__list .nav__link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 1rem !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-decoration: none !important;
}

.nav__list .nav__link:hover,
.nav__list .nav__link:focus-visible {
  background: rgba(27, 62, 113, 0.10) !important;
  color: #1b3e71 !important;
}

.nav__list .nav__link--portal {
  margin-top: 0.5rem !important;
  min-height: 52px !important;
  justify-content: center !important;
  border: 2px solid #1b3e71 !important;
  border-radius: 14px !important;
  background: #f3f7fb !important;
  color: #1b3e71 !important;
  font-weight: 800 !important;
}

.nav__list .nav__link--portal:hover,
.nav__list .nav__link--portal:focus-visible {
  background: #1b3e71 !important;
  color: #ffffff !important;
}

.nav__list:not(.active):not(.is-active):not(.nav__list--open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
}

.nav__list.active,
.nav__list.is-active,
.nav__list.nav__list--open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

@media (min-width: 901px) {
  .nav__list {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: min(320px, calc(100vw - 32px)) !important;
    max-height: calc(100svh - 88px) !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid rgba(27, 62, 113, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(10, 30, 60, 0.18) !important;
  }
}

@media (max-width: 900px) {
  .nav__list {
    position: fixed !important;
    top: 72px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100svh - 88px) !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid rgba(27, 62, 113, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(10, 30, 60, 0.22) !important;
  }
}

@media (max-width: 480px) {
  .header__cta {
    max-width: 190px !important;
    padding-inline: 16px !important;
    white-space: nowrap !important;
  }

  .nav__list {
    top: 64px !important;
    left: 12px !important;
    right: 12px !important;
    max-height: calc(100svh - 76px) !important;
  }
}

/* =============================
   AJUSTE V8 - DESKTOP: CTAs NA ÁREA OCIOSA INFERIOR DO BANNER
   ============================= */
@media (min-width: 901px) {
  .hero__content {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: clamp(12px, 2.4vh, 28px) !important;
    transform: translateX(-50%) !important;
    width: min(52vw, 700px) !important;
    max-width: calc(100% - 64px) !important;
    align-items: center !important;
  }

  .hero__ctas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: min(100%, 520px) !important;
  }

  .hero__ctas .btn {
    width: 100% !important;
    min-height: 54px !important;
    padding: 14px 22px !important;
    font-size: 0.96rem !important;
    border-radius: 9px !important;
  }

  .hero__micro-trust {
    margin-top: 12px !important;
    font-size: 0.84rem !important;
    padding: 7px 14px !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hero__content {
    bottom: clamp(10px, 2vh, 22px) !important;
    width: min(58vw, 580px) !important;
  }

  .hero__ctas {
    width: min(100%, 470px) !important;
    gap: 12px !important;
  }

  .hero__ctas .btn {
    min-height: 46px !important;
    padding: 11px 16px !important;
    font-size: 0.86rem !important;
  }

  .hero__micro-trust {
    font-size: 0.74rem !important;
    padding: 5px 11px !important;
  }
}

/* =============================
   AJUSTE V12 - GAP PADRÃO NO MENU HAMBURGER
   ============================= */
:root {
  --nav-menu-gap: 10px;
}

@media (min-width: 901px) {
  .nav__list {
    top: calc(100% + var(--nav-menu-gap)) !important;
  }
}

@media (max-width: 900px) {
  .nav__list {
    top: calc(72px + var(--nav-menu-gap)) !important;
    max-height: calc(100svh - 72px - var(--nav-menu-gap) - 16px) !important;
  }
}

@media (max-width: 480px) {
  .nav__list {
    top: calc(64px + var(--nav-menu-gap)) !important;
    max-height: calc(100svh - 64px - var(--nav-menu-gap) - 12px) !important;
  }
}

/* =============================
   AJUSTE V13 - MOBILE: CTAs com texto maior e badge menor
   ============================= */
@media (max-width: 900px) {
  .hero__content {
    bottom: clamp(3px, 1vw, 7px) !important;
    width: min(86vw, 500px) !important;
  }

  .hero__ctas {
    width: 100% !important;
    gap: 8px !important;
  }

  .hero__ctas .btn {
    min-height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: clamp(0.86rem, 3.2vw, 1rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .hero__micro-trust {
    margin-top: 4px !important;
    padding: 2px 8px !important;
    gap: 5px !important;
    font-size: clamp(0.56rem, 1.9vw, 0.68rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 3px 8px rgba(10, 30, 60, 0.10) !important;
  }

  .hero__micro-trust svg {
    width: 10px !important;
    height: 10px !important;
  }
}

@media (max-width: 480px) {
  .hero__content {
    width: min(88vw, 420px) !important;
    bottom: 3px !important;
  }

  .hero__ctas {
    gap: 6px !important;
  }

  .hero__ctas .btn {
    min-height: 32px !important;
    padding: 5px 5px !important;
    border-radius: 7px !important;
    font-size: clamp(0.78rem, 3.5vw, 0.92rem) !important;
  }

  .hero__micro-trust {
    margin-top: 3px !important;
    padding: 2px 7px !important;
    font-size: clamp(0.5rem, 2vw, 0.6rem) !important;
  }

  .hero__micro-trust svg {
    width: 9px !important;
    height: 9px !important;
  }
}

/* =============================
   AJUSTE V14 - REMOVE BADGE DE SEGURANÇA DO HERO
   ============================= */
.hero__micro-trust {
  display: none !important;
}

@media (max-width: 900px) {
  .hero__ctas .btn {
    font-size: clamp(0.82rem, 3.2vw, 1rem) !important;
    min-height: 34px !important;
    padding: 7px 8px !important;
  }
}

@media (max-width: 420px) {
  .hero__ctas .btn {
    font-size: clamp(0.74rem, 3vw, 0.92rem) !important;
    min-height: 30px !important;
    padding: 6px 6px !important;
  }
}

/* =============================
   AJUSTE V15 - CTAs UM POUCO ACIMA DA BORDA INFERIOR
   ============================= */
@media (min-width: 901px) {
  .hero__content {
    bottom: clamp(22px, 3.4vh, 42px) !important;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero__content {
    bottom: 18px !important;
  }
}

@media (max-width: 900px) {
  .hero__content {
    bottom: clamp(10px, 2.4vw, 18px) !important;
  }
}

@media (max-width: 480px) {
  .hero__content {
    bottom: 10px !important;
  }
}
