@import url(global.css);


/* ============================================================
   SHOWROOM
============================================================ */

.canaisSlider {
  position: relative;
  width: 100%;
  padding: 25px 0 28px;
  text-align: center;

  /*
     * IMPORTANTE:
     * Os dots ficam fora do container recortado.
     * Portanto, o slider principal NÃO pode usar overflow:hidden.
     */
  overflow: visible;
}


/* ============================================================
   TÍTULO
============================================================ */

.canaisSlider h4 {
  margin: 0 0 20px;

  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;

  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--secondary);
}


/* ============================================================
   CONTAINER
============================================================ */

.customSlideContainer {
  position: relative;

  width: min(1200px, 96%);
  margin: 0 auto;

  /*
     * Somente a área dos cards deve ser recortada.
     */
  overflow: hidden;

  border-radius: 22px;
}


/* ============================================================
   FADE NAS LATERAIS
============================================================ */

.customSlideContainer::before,
.customSlideContainer::after {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;

  width: 70px;

  z-index: 5;

  pointer-events: none;
}


/* Fade esquerdo */

.customSlideContainer::before {
  left: 0;


}


/* Fade direito */

.customSlideContainer::after {
  right: 0;


}


/* ============================================================
   WRAPPER
============================================================ */

.customSlideWrapper {
  width: 100%;

  overflow: hidden;
}


/* ============================================================
   TRACK
============================================================ */

.customSlideTrack {
  display: flex;

  gap: 18px;

  /*
     * O JS controla o translate.
     */
  transition:
    transform 0.65s cubic-bezier(.22, 1, .36, 1);

  will-change: transform;
}


/* ============================================================
   CARD
============================================================ */

.customSlideItem {
  position: relative;

  flex: 0 0 auto;

  width: 130px;
  height: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  border-radius: 20px;

  background:
    linear-gradient(145deg,
      #ffffff,
      #f5f7fa8e);

  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.09);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* ============================================================
   HOVER CARD
============================================================ */

.customSlideItem:hover {
  transform: translateY(-6px);

  border-color:
    rgba(0, 200, 255, 0.35);

  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.14);
}


/* ============================================================
   DECORAÇÃO DA CARD
============================================================ */

.customSlideItem::before {
  content: "";

  position: absolute;

  width: 100px;
  height: 100px;

  top: -55px;
  right: -45px;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(0, 200, 255, 0.13),
      transparent 70%);

  pointer-events: none;
}


/* ============================================================
   LOGO
============================================================ */

.customSlideItem img {
  width: 90px;
  height: 90px;

  object-fit: contain;

  padding: 8px;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.35s ease;
}


/* ============================================================
   HOVER LOGO
============================================================ */

.customSlideItem:hover img {
  transform: scale(1.07);
}


/* ============================================================
   BOTÕES DO CAROUSEL
============================================================ */

.canaisCarouselButton {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 10;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(0, 0, 0, 0.08);

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.95);

  color: #222222;

  cursor: pointer;

  font-size: 17px;
  line-height: 1;

  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.13);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}


/* ============================================================
   HOVER BOTÃO
============================================================ */

.canaisCarouselButton:hover {
  transform:
    translateY(-50%) scale(1.08);

  background:
    var(--secondary);

  color: #ffffff;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   POSIÇÃO DOS BOTÕES
============================================================ */

.canaisCarouselButton.prev {
  left: 8px;
}

.canaisCarouselButton.next {
  right: 8px;
}


/* ============================================================
   BOTÃO DESABILITADO
============================================================ */

.canaisCarouselButton:disabled {
  opacity: 0.25;

  pointer-events: none;
}


/* ============================================================
   INDICADORES / DOTS
============================================================ */

.canaisCarouselDots {
  position: relative;

  z-index: 20;

  width: 100%;

  min-height: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 16px;

  padding: 4px 0;

  /*
     * Garantias para evitar desaparecimento
     * por regras externas.
     */
  visibility: visible;
  opacity: 1;

  pointer-events: auto;
}


/* ============================================================
   DOT
============================================================ */

.canaisCarouselDot {
  position: relative;

  display: block;

  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  min-width: 7px;
  min-height: 7px;

  padding: 0;
  margin: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.55);

  cursor: pointer;

  opacity: 1;
  visibility: visible;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15);

  transition:
    width 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* ============================================================
   DOT HOVER
============================================================ */

.canaisCarouselDot:hover {
  background:
    rgba(255, 255, 255, 0.90);

  transform:
    scale(1.15);
}


/* ============================================================
   DOT ATIVO
============================================================ */

.canaisCarouselDot.active {
  width: 22px;

  min-width: 22px;

  height: 7px;

  border-radius: 10px;

  background:
    var(--secondary);

  box-shadow:
    0 3px 10px rgba(251, 174, 47, 0.45);
}


/* ============================================================
   ESTADO DE FOCO
============================================================ */

.canaisCarouselDot:focus-visible,
.canaisCarouselButton:focus-visible {
  outline: 2px solid var(--secondary);

  outline-offset: 3px;
}


/* ============================================================
   ATÉ 1024px
============================================================ */

/*
 * EXATAMENTE 2 CARDS
 */

@media (max-width: 1024px) {

  .customSlideContainer {
    width: 90%;
  }


  .customSlideItem {
    /*
         * 2 cards + 18px de gap
         */
    width:
      calc((100vw * 0.70 - 18px) / 2);

    height:
      calc((100vw * 0.70 - 18px) / 2);

    max-width: 220px;
    max-height: 220px;
  }


  .customSlideItem img {
    width: 70%;
    height: 70%;
  }


  .customSlideContainer::before,
  .customSlideContainer::after {
    width: 55px;
  }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

  .canaisSlider {
    padding:
      20px 0 25px;

    overflow: visible;
  }


  /* --------------------------------------------------------
       TÍTULO
    -------------------------------------------------------- */

  .canaisSlider h4 {
    margin-bottom: 16px;

    font-size: 13px;

    letter-spacing: 1.2px;
  }


  /* --------------------------------------------------------
       CONTAINER
    -------------------------------------------------------- */

  .customSlideContainer {
    width: 88%;

    border-radius: 18px;
  }


  /* --------------------------------------------------------
       FADE
    -------------------------------------------------------- */

  .customSlideContainer::before,
  .customSlideContainer::after {
    width: 35px;
  }


  /* --------------------------------------------------------
       CARD
    -------------------------------------------------------- */

  .customSlideItem {
    width:
      calc((88vw - 18px) / 2);

    height:
      calc((88vw - 18px) / 2);

    padding: 12px;

    border-radius: 16px;
  }


  /* --------------------------------------------------------
       LOGO
    -------------------------------------------------------- */

  .customSlideItem img {
    width: 78%;
    height: 78%;

    border-radius: 14px;
  }


  /* --------------------------------------------------------
       BOTÕES
    -------------------------------------------------------- */

  .canaisCarouselButton {
    width: 34px;
    height: 34px;

    font-size: 14px;
  }


  .canaisCarouselButton.prev {
    left: 3px;
  }


  .canaisCarouselButton.next {
    right: 3px;
  }


  /* --------------------------------------------------------
       DOTS
    -------------------------------------------------------- */

  .canaisCarouselDots {
    margin-top: 13px;

    gap: 6px;

    min-height: 18px;

    padding: 3px 0;
  }


  .canaisCarouselDot {
    width: 6px;
    height: 6px;

    min-width: 6px;
    min-height: 6px;
  }


  .canaisCarouselDot.active {
    width: 19px;

    min-width: 19px;

    height: 6px;
  }
}


/* ============================================================
   TELAS MUITO PEQUENAS
============================================================ */

@media (max-width: 380px) {

  .customSlideContainer {
    width: 92%;
  }


  .customSlideItem {
    width:
      calc((92vw - 18px) / 2);

    height:
      calc((92vw - 18px) / 2);
  }


  .canaisCarouselButton {
    width: 30px;
    height: 30px;

    font-size: 12px;
  }


  .canaisCarouselButton.prev {
    left: 2px;
  }


  .canaisCarouselButton.next {
    right: 2px;
  }
}