/**
 * System intro section.
 *
 * Seção: O que é Barra de Ancoragem e como funciona o sistema.
 *
 * @package NexoBase
 */

.nexo-system-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  margin-top: -40px !important;
  margin-right: auto !important;
  margin-bottom: -140px !important;
  margin-left: auto !important;
  padding-right: 24px;
  padding-left: 24px;
}

.nexo-system-intro *,
.nexo-system-intro *::before,
.nexo-system-intro *::after {
  box-sizing: border-box;
}

.nexo-system-intro__inner {
  width: 100%;
}

.nexo-system-intro__header {
  max-width: 760px;
  margin: 0 0 48px;
}

.nexo-system-intro__title {
  margin: 0;
  color: #25292a;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* ==========================================================================
   Layout principal
   ========================================================================== */

.nexo-system-intro__grid {
  display: grid;
  grid-template-columns: 846px minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.nexo-system-intro__media {
  width: 100%;
}

/*
 * Imagem simples/fallback.
 * O seletor usa ">" para não afetar imagens internas da galeria.
 */
.nexo-system-intro__media > img {
  display: block;
  width: 100%;
  height: 450px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center center;
}

/* ==========================================================================
   Galeria da seção
   ========================================================================== */

.nexo-system-intro__media.nexo-system-intro-gallery {
  display: grid;
  grid-template-columns: 150px 680px;
  gap: 16px;
  align-items: stretch;
  width: 846px;
  max-width: 100%;
}

.nexo-system-intro-gallery__thumbs {
  display: grid;
  grid-template-rows: repeat(3, 150px);
  row-gap: 15px;
  column-gap: 0;
  align-content: start;
  width: 150px;
  height: 480px;
  margin: 0;
  padding: 0;
}

/* Neutraliza wrappers automáticos do WordPress/SiteOrigin */
.nexo-system-intro-gallery__thumbs > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.nexo-system-intro-gallery__thumbs br {
  display: none !important;
}

.nexo-system-intro-gallery__thumb {
  display: block;
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
}

.nexo-system-intro-gallery__thumb img {
  display: block;
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 7px;
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.nexo-system-intro-gallery__main {
  position: relative;
  width: 680px;
  max-width: 100%;
  height: 480px;
  border-radius: 7px;
  overflow: hidden;
  background: #050707;
}

.nexo-system-intro-gallery__main > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 7px;
  object-fit: cover;
  object-position: center center;
}

.nexo-system-intro-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #050707;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nexo-system-intro-gallery__arrow:hover,
.nexo-system-intro-gallery__arrow:focus {
  background: #1f2523;
}

.nexo-system-intro-gallery__arrow:focus-visible {
  outline: 3px solid rgba(255, 90, 0, 0.34);
  outline-offset: 3px;
}

.nexo-system-intro-gallery__arrow--prev {
  left: 14px;
}

.nexo-system-intro-gallery__arrow--next {
  right: 14px;
}

.nexo-system-intro-gallery__arrow img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* ==========================================================================
   Conteúdo textual
   ========================================================================== */

.nexo-system-intro__content {
  max-width: 440px;
  padding-top: 0;
  color: #07111f;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.48;
}

.nexo-system-intro__content p {
  margin: 0 0 16px;
}

.nexo-system-intro__content p:last-of-type {
  margin-bottom: 20px;
}

.nexo-system-intro__content strong {
  font-weight: 800;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.nexo-system-intro__cta {
  margin-top: 2px;
}

.nexo-system-intro__cta .nexo-cta-button-wrap {
  width: auto;
  margin: 0;
}

.nexo-system-intro__cta .nexo-cta-button {
  min-height: 56px;
  padding-right: 28px;
  padding-left: 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .nexo-system-intro__header {
    margin-bottom: 38px;
  }

  .nexo-system-intro__title {
    font-size: 32px;
  }

  .nexo-system-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nexo-system-intro__media > img {
    height: auto;
  }

  .nexo-system-intro__media.nexo-system-intro-gallery {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .nexo-system-intro-gallery__thumbs {
    display: grid;
    grid-template-rows: repeat(3, 120px);
    row-gap: 10px;
    column-gap: 0;
    align-content: start;
    width: 120px;
    height: 380px;
    margin: 0;
    padding: 0;
  }

  .nexo-system-intro-gallery__thumbs > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .nexo-system-intro-gallery__thumb {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
  }

  .nexo-system-intro-gallery__thumb img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }

  .nexo-system-intro-gallery__main {
    width: 100%;
    height: 380px;
  }

  .nexo-system-intro__content {
    max-width: 100%;
    padding-top: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .nexo-system-intro__content p {
    margin-bottom: 18px;
  }

  .nexo-system-intro__content p:last-of-type {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .nexo-system-intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nexo-system-intro__header {
    margin-bottom: 30px;
  }

  .nexo-system-intro__title {
    font-size: 28px;
    line-height: 1.12;
  }

  .nexo-system-intro__grid {
    gap: 28px;
  }

  .nexo-system-intro__media.nexo-system-intro-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nexo-system-intro-gallery__main {
    order: 1;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .nexo-system-intro-gallery__thumbs {
    order: 2;
    display: grid;
    grid-template-rows: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    height: auto;
  }

  .nexo-system-intro-gallery__thumbs p {
    aspect-ratio: 1 / 1;
  }

  .nexo-system-intro-gallery__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .nexo-system-intro-gallery__thumbs p > .nexo-system-intro-gallery__thumb {
    height: 100%;
  }

  .nexo-system-intro-gallery__arrow {
    width: 42px;
    height: 36px;
  }

  .nexo-system-intro-gallery__arrow--prev {
    left: 10px;
  }

  .nexo-system-intro-gallery__arrow--next {
    right: 10px;
  }

  .nexo-system-intro__content {
    font-size: 15px;
    line-height: 1.55;
  }

  .nexo-system-intro__content p {
    margin-bottom: 18px;
  }

  .nexo-system-intro__content p:last-of-type {
    margin-bottom: 24px;
  }

  .nexo-system-intro__cta .nexo-cta-button {
    width: 100%;
    min-height: 52px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 425px) {
  .nexo-system-intro-gallery__thumbs {
    gap: 8px;
  }

  .nexo-system-intro-gallery__arrow {
    width: 38px;
    height: 34px;
  }

  .nexo-system-intro-gallery__arrow img {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   Home hardcoded: CTA da seção de introdução/galeria
   ========================================================================== */

@media (max-width: 1024px) {
  body.home .nexo-system-intro {
    margin-bottom: -92px !important;
    padding-bottom: 24px;
  }

  body.home .nexo-system-intro__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 26px;
    margin-bottom: 0;
  }

  body.home .nexo-system-intro__cta .nexo-cta-button-wrap {
    width: min(100%, 380px);
    margin-right: auto;
    margin-left: auto;
  }

  body.home .nexo-system-intro__cta .nexo-cta-button {
    width: 100%;
    min-height: 52px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 12.5px;
    line-height: 1.18;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 767px) {
  body.home .nexo-system-intro {
    margin-bottom: -96px !important;
    padding-bottom: 20px;
  }

  body.home .nexo-system-intro__cta {
    margin-top: 22px;
  }

  body.home .nexo-system-intro__cta .nexo-cta-button-wrap {
    width: min(100%, 340px);
  }

  body.home .nexo-system-intro__cta .nexo-cta-button {
    min-height: 50px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 12px;
  }
}

@media (max-width: 425px) {
  body.home .nexo-system-intro {
    margin-bottom: -82px !important;
    padding-bottom: 18px;
  }

  body.home .nexo-system-intro__cta .nexo-cta-button-wrap {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   Home hardcoded: corrige overflow horizontal do banner de certificações
   ========================================================================== */

body.home #pg-64-5 {
  overflow-x: clip;
}

body.home #pg-64-5 > .panel-row-style,
body.home #pg-64-5 .nexo-row {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.home #pg-64-5 .panel-grid-cell,
body.home #pg-64-5 .so-panel,
body.home #pg-64-5 .widget,
body.home #pg-64-5 .textwidget {
  width: 100%;
  max-width: 100%;
}

body.home .nexo-certifications-banner-overlay {
  width: 100% !important;
  max-width: 1920px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none !important;
}

body.home .nexo-certifications-banner-overlay img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

/* ==========================================================================
   Home hardcoded: prevenção geral de overflow horizontal
   ========================================================================== */

body.home {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports selector(html:has(body.home)) {
  html:has(body.home) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

body.home .site-layout,
body.home .site-main,
body.home .entry-content,
body.home .panel-layout,
body.home .panel-grid,
body.home .panel-row-style,
body.home .panel-grid-cell,
body.home .so-panel,
body.home .widget,
body.home .textwidget {
  max-width: 100%;
}

body.home .site-layout,
body.home .site-main,
body.home .entry-content,
body.home .panel-layout {
  overflow-x: clip;
}

/* ==========================================================================
   Home hardcoded: banner de certificações full width
   ========================================================================== */

body.home #pg-64-5 {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  background: #f4f4f4 !important;
  overflow: visible !important;
}

body.home #pg-64-5 > .panel-row-style,
body.home #pg-64-5 > .panel-row-style-for-64-5 {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  background: #f4f4f4 !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: hidden !important;
}

body.home #pg-64-5 .panel-grid-cell,
body.home #pg-64-5 .so-panel,
body.home #pg-64-5 .siteorigin-widget-tinymce,
body.home #pg-64-5 .textwidget {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.home #pg-64-5 .nexo-certifications-banner-overlay {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  background: #f4f4f4 !important;
  overflow: hidden !important;
}

body.home #pg-64-5 .nexo-certifications-banner-overlay img {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}
