
/*
 * AVANTHY — FERRAMENTAS DE NAVEGAÇÃO
 *
 * 1. Botão Início na página Modelos.
 * 2. Botão Voltar ao topo em todas as páginas da landing.
 */

/* ==========================================================
   BOTÃO INÍCIO DA PÁGINA MODELOS
   ========================================================== */

.avanthy-home-menu-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.avanthy-home-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 42px !important;
  padding: 9px 15px !important;

  color: #ffffff !important;

  background:
    linear-gradient(
      145deg,
      #087fc2 0%,
      #0065a3 58%,
      #004f82 100%
    ) !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.3) !important;

  border-radius: 12px !important;

  box-shadow:
    0 10px 24px
    rgba(0, 35, 77, 0.2) !important;

  font-family:
    "Poppins",
    Arial,
    sans-serif !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-decoration: none !important;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease !important;
}

.avanthy-home-button svg {
  width: 17px !important;
  height: 17px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;

  flex-shrink: 0;
}

.avanthy-home-button:hover,
.avanthy-home-button:focus-visible {
  color: #ffffff !important;

  background:
    linear-gradient(
      145deg,
      #ff7a1a,
      #ff6600
    ) !important;

  box-shadow:
    0 14px 30px
    rgba(255, 102, 0, 0.27) !important;

  transform: translateY(-2px);

  outline: none !important;
}

/* ==========================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================== */

.avanthy-back-to-top {
  position: fixed;
  right: 20px;
  bottom:
    calc(
      22px +
      env(safe-area-inset-bottom, 0px)
    );

  z-index: 9990;

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

  width: 50px;
  height: 50px;

  padding: 0;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #087fc2 0%,
      #0065a3 58%,
      #004f82 100%
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.32);

  border-radius: 15px;

  box-shadow:
    0 16px 38px
    rgba(0, 35, 77, 0.28),
    inset 0 1px 0
    rgba(255, 255, 255, 0.2);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translateY(14px)
    scale(0.92);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;

  -webkit-tap-highlight-color: transparent;
}

.avanthy-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translateY(0)
    scale(1);
}

.avanthy-back-to-top svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avanthy-back-to-top:hover,
.avanthy-back-to-top:focus-visible {
  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #ff7a1a,
      #ff6600
    );

  box-shadow:
    0 18px 42px
    rgba(255, 102, 0, 0.31);

  transform:
    translateY(-3px)
    scale(1);

  outline: none;
}

.avanthy-back-to-top:active {
  transform:
    translateY(0)
    scale(0.94);
}

@media (max-width: 960px) {
  .avanthy-home-menu-item {
    display: block !important;
    width: 100% !important;
  }

  .avanthy-home-button {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: flex-start !important;
    padding: 11px 14px !important;
  }
}

@media (max-width: 640px) {
  .avanthy-back-to-top {
    right: 15px;

    bottom:
      calc(
        17px +
        env(safe-area-inset-bottom, 0px)
      );

    width: 47px;
    height: 47px;

    border-radius: 14px;
  }

  .avanthy-back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avanthy-home-button,
  .avanthy-back-to-top {
    transition: none !important;
  }
}

/* AVANTHY-MENU-INICIO-INICIO */

.avanthy-menu-inicio-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.avanthy-menu-inicio {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: 40px !important;
  padding: 8px 13px !important;

  color: #ffffff !important;

  background:
    linear-gradient(
      145deg,
      #087fc2,
      #0065a3
    ) !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.24) !important;

  border-radius: 11px !important;

  box-shadow:
    0 9px 22px
    rgba(0, 35, 77, 0.2) !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease !important;
}

.avanthy-menu-inicio svg {
  width: 16px !important;
  height: 16px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.avanthy-menu-inicio:hover,
.avanthy-menu-inicio:focus-visible {
  color: #ffffff !important;

  background:
    linear-gradient(
      145deg,
      #ff7a1a,
      #ff6600
    ) !important;

  box-shadow:
    0 13px 28px
    rgba(255, 102, 0, 0.27) !important;

  transform: translateY(-2px);

  outline: none !important;
}

@media (max-width: 960px) {
  .avanthy-menu-inicio-item {
    display: block !important;
    width: 100% !important;
  }

  .avanthy-menu-inicio {
    width: 100% !important;
    min-height: 46px !important;

    justify-content: flex-start !important;

    padding:
      11px
      14px !important;
  }
}

/* AVANTHY-MENU-INICIO-FIM */
