/* ===== THEME DEFAULT (BLU) ===== */
.hov-btn.learn-more {
  --circle-bg: var(--blue);
  --text-color: var(--blue);
  --hover-text-color: var(--white);
  --arrow-stroke: var(--white);
  --arrow-hover-bg: var(--white);
}

/* ===== THEME WHITE ===== */
.hov-btn.learn-more.white {
  --circle-bg: var(--white);
  --text-color: var(--white);
  --hover-text-color: var(--blue);
  --arrow-stroke: var(--blue);
  --arrow-hover-bg: var(--blue);
}

/* Inizio CSS per il bottone */
.hov-btn-container {
  display: inline-block;
}

.hov-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-family: inherit;
}

.hov-btn.learn-more {
  position: relative;
  width: auto !important;
  height: 3rem;
  padding: 0 1.5rem 0 4rem; /* spazio per cerchio */
  overflow: visible !important; /* <-- evita il "mozzato" */
}
.hov-btn.learn-more .circle {
  position: absolute !important;
  top: 0;
  left: 0;
  display: block;
  width: 3rem;
  height: 3rem;
  background: var(--circle-bg);
  border-radius: 1.625rem;
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.hov-btn.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--arrow-stroke);
}
.hov-btn.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}
.hov-btn.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--arrow-stroke);
  border-right: 0.125rem solid var(--arrow-stroke);
  transform: rotate(45deg) !important;
}
.hov-btn.learn-more .button-text {
  position: relative !important; /* <-- fondamentale */
  display: inline-block !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text-color);
  font-family: "Moderat Extended Bold";
  font-size: 15px;
  text-align: left;
  text-transform: uppercase;

  line-height: 3rem;
  white-space: nowrap;
  transition: color 0.5s cubic-bezier(0.65, 0, 0.076, 1);
}

.hov-btn:hover .circle {
  width: 100%;
}
.hov-btn:hover .circle .icon.arrow {
  background: var(--arrow-hover-bg);
  transform: translate(1rem, 0);
}
.hov-btn:hover .button-text {
  color: var(--hover-text-color);
  transition-delay: 0.15s;
}

/* Mobile: disable all animations */
@media (max-width: 992px) {
  .hov-btn-link {
    -webkit-tap-highlight-color: transparent;
  }

  .hov-btn,
  .hov-btn *,
  .hov-btn .circle,
  .hov-btn .circle .icon,
  .hov-btn .circle .icon.arrow,
  .hov-btn .circle .icon.arrow::before,
  .hov-btn .button-text {
    transition: none !important;
    transform: none !important;
  }

  .hov-btn:hover .circle,
  .hov-btn:active .circle,
  .hov-btn.clicked .circle {
    width: 3rem !important;
    transform: none !important;
  }

  .hov-btn:hover .circle .icon.arrow,
  .hov-btn:active .circle .icon.arrow,
  .hov-btn.clicked .circle .icon.arrow,
  .hov-btn:hover .circle .icon.arrow::before,
  .hov-btn:active .circle .icon.arrow::before,
  .hov-btn.clicked .circle .icon.arrow::before {
    background: none !important;
    transform: none !important;
  }

  .hov-btn:hover .button-text,
  .hov-btn:active .button-text,
  .hov-btn.clicked .button-text {
    color: var(--text-color) !important;
    transform: none !important;
  }

  .hov-btn.learn-more:hover .circle,
  .hov-btn.learn-more:active .circle,
  .hov-btn.learn-more.clicked .circle {
    transform: rotate(45deg) !important;
}
