@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPh9R-Zsg.ttf)
    format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPhxx-Zsg.ttf)
    format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPhKxiZsg.ttf)
    format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPhEhiZsg.ttf)
    format("truetype");
}

@font-face {
  font-family: "DonnoDisplay";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src:
    url("../fonts/Design_System_B900_Italic.woff2") format("woff2"),
    url("../fonts/Design_System_B900_Italic.ttf") format("truetype");
}

/* ==========================================================================
   Donno EasyPay — "Cabinet" design (payment-plan style)
   Light, card-based, fintech-clean. Same content/meta as the v1 template,
   restyled to feel like the customer cabinet / payment-plan screens.
   ========================================================================== */

#donno-easypay-v2 {
  --dv-bg: #f5f7fa;
  --dv-surface: #ffffff;
  --dv-dark: #12141a;
  --dv-muted: #6b7280;
  --dv-line: rgba(18, 20, 26, 0.08);
  --dv-line-strong: rgba(18, 20, 26, 0.12);
  --dv-blue: #0057ff;
  --dv-cyan: #00c2ed;
  --dv-teal: #00ffd1;
  --dv-grad: linear-gradient(135deg, var(--dv-blue) 0%, var(--dv-cyan) 55%, var(--dv-teal) 100%);
  --dv-grad-soft: linear-gradient(135deg, rgba(0, 87, 255, 0.08) 0%, rgba(0, 194, 237, 0.08) 55%, rgba(0, 255, 209, 0.08) 100%);
  --dv-radius-lg: 28px;
  --dv-radius-md: 20px;
  --dv-radius-sm: 14px;
  --dv-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
  --dv-shadow-hover: 0 16px 36px rgba(16, 24, 40, 0.12);
  overflow: hidden;
  background: var(--dv-bg);
  color: var(--dv-dark);
  font-family: "Onest", sans-serif;
}

#donno-easypay-v2 *,
#donno-easypay-v2 *::before,
#donno-easypay-v2 *::after {
  box-sizing: border-box;
}

:where(#donno-easypay-v2) a {
  color: inherit;
  text-decoration: none;
}

#donno-easypay-v2 p,
#donno-easypay-v2 h1,
#donno-easypay-v2 h2,
#donno-easypay-v2 h3 {
  margin: 0;
}

.dv-container {
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

.dv-page {
  padding-top: 0;
}

.dv-section {
  padding-top: clamp(48px, 5.5vw, 84px);
}

/* ---------- Hero (kept from the original Donno EasyPay design) ---------- */
.dv-hero__media {
  position: relative;
  display: grid;
  min-height: clamp(430px, 45vw, 780px);
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  background: #eee;
}

.dv-hero__media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(0, 58, 210, 0.38);
  animation: dv-hero-overlay-color 9s ease-in-out infinite alternate;
  content: "";
}

.dv-hero__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 45%, rgba(0, 154, 170, 0.12), transparent 42%),
    linear-gradient(115deg, rgba(7, 12, 24, 0.58), rgba(8, 27, 48, 0.38) 52%, rgba(7, 12, 24, 0.56));
  box-shadow: inset 0 0 140px rgba(4, 8, 18, 0.22);
  content: "";
}

@keyframes dv-hero-overlay-color {
  0% {
    background-color: rgba(0, 58, 210, 0.38);
  }

  50% {
    background-color: rgba(0, 190, 165, 0.42);
  }

  100% {
    background-color: rgba(92, 38, 190, 0.38);
  }
}

.dv-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dv-hero__content {
  position: relative;
  z-index: 3;
  width: min(100%, 900px);
  padding: 48px 24px 120px;
  color: #eee;
  text-align: center;
}

.dv-hero-title {
  font-family: "DonnoDisplay", sans-serif;
  font-style: normal;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-feature-settings: "salt" 1;
  font-size: clamp(48px, 5vw, 74px);
  color: #eee !important;
}

.dv-hero-title * {
  color: inherit !important;
}

.dv-hero-sub {
  width: min(100%, 620px);
  margin: clamp(14px, 1.5vw, 24px) auto 0;
  font-size: clamp(18px, 1.7vw, 26px);
  color: #eee !important;
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.dv-hero-sub,
.dv-hero-sub * {
  color: inherit !important;
}

.dv-hero-sub p {
  line-height: inherit;
  font-size: 28px;
}

.dv-primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: absolute;
  z-index: 3;
  bottom: clamp(16px, 2.3vw, 32px);
  left: 50%;
  width: calc(100% - clamp(32px, 5vw, 72px));
  min-height: clamp(60px, 5vw, 76px);
  max-width: 500px;
  padding: 16px 32px;
  font-size: clamp(17px, 1.3vw, 20px);
  letter-spacing: -0.02em;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.16);
}

.dv-primary-cta span {
  color: #000 !important;
}

.dv-primary-cta:hover {
  transform: translate(-50%, -3px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.22);
}

.dv-primary-cta:active {
  transform: translateX(-50%) scale(0.97);
}

:where(#donno-easypay-v2) a:focus-visible,
#donno-easypay-v2 button:focus-visible {
  outline: 2px solid var(--dv-blue);
  outline-offset: 3px;
}

/* ---------- Cards / vantaggi (details) ---------- */
.dv-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.dv-title {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.dv-cards {
  margin-top: clamp(28px, 3.5vw, 44px) !important;
}

.dv-card {
  height: 100%;
  padding: clamp(24px, 2vw, 30px);
  border-radius: var(--dv-radius-md);
  border: 1px solid var(--dv-line);
  background: var(--dv-surface);
  box-shadow: var(--dv-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dv-shadow-hover);
}

.dv-card:hover .dv-card__num {
  background: var(--dv-grad);
  color: #fff;
}

.dv-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--dv-grad-soft);
  color: var(--dv-blue);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Cascade the four cards in instead of popping together. */
.dv-cards > div:nth-child(1) .dv-reveal {
  animation-delay: 0.05s;
}

.dv-cards > div:nth-child(2) .dv-reveal {
  animation-delay: 0.15s;
}

.dv-cards > div:nth-child(3) .dv-reveal {
  animation-delay: 0.25s;
}

.dv-cards > div:nth-child(4) .dv-reveal {
  animation-delay: 0.35s;
}

.dv-card__title {
  font-size: clamp(19px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dv-card__body {
  margin-top: 10px !important;
  color: var(--dv-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Info / plan panel ---------- */
.dv-panel {
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px);
  border-radius: var(--dv-radius-lg);
  background: var(--dv-dark);
  color: #fff;
  text-align: center;
}

.dv-panel__tag {
  display: inline-block;
  font-family: "DonnoDisplay", sans-serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-feature-settings: "salt" 1;
  font-size: clamp(34px, 4.4vw, 64px);
  background: var(--dv-grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.dv-panel__text {
  width: min(100%, 880px);
  margin: clamp(20px, 2.4vw, 32px) auto 0 !important;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}

/* The source text comes from a rich-text field that may carry its own
   inline color (authored for a light background elsewhere) — force it
   back to a readable light tone on this dark panel. */
.dv-panel__text,
.dv-panel__text * {
  color: rgba(255, 255, 255, 0.88) !important;
}

.dv-panel__text p + p {
  margin-top: 12px !important;
}

.dv-panel__text strong,
.dv-panel__text b,
.dv-panel__text .dep-bold {
  color: #fff !important;
  font-weight: 700;
}

.dv-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 40px);
}

.dv-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 576px) {
  .dv-chip {
    width: calc(50% - 7px);
  }
}

@media (min-width: 992px) {
  .dv-chip {
    width: calc(33.333% - 9.34px);
  }
}

.dv-chip:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.dv-chip:hover .dv-chip__icon {
  transform: scale(1.12);
}

.dv-chip__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dv-grad);
  color: #12141a;
  transition: transform 0.2s ease;
}

.dv-chip__icon svg {
  width: 14px;
  height: 14px;
}

/* Cascade the tags in once the panel scrolls into view. */
.dv-panel.is-visible .dv-chip {
  opacity: 1;
  transform: translateY(0);
}

.dv-panel.is-visible .dv-chip:nth-child(1) { transition-delay: 0.15s, 0.15s, 0s, 0s; }
.dv-panel.is-visible .dv-chip:nth-child(2) { transition-delay: 0.22s, 0.22s, 0s, 0s; }
.dv-panel.is-visible .dv-chip:nth-child(3) { transition-delay: 0.29s, 0.29s, 0s, 0s; }
.dv-panel.is-visible .dv-chip:nth-child(4) { transition-delay: 0.36s, 0.36s, 0s, 0s; }
.dv-panel.is-visible .dv-chip:nth-child(5) { transition-delay: 0.43s, 0.43s, 0s, 0s; }
.dv-panel.is-visible .dv-chip:nth-child(6) { transition-delay: 0.5s, 0.5s, 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
  .dv-chip {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Steps (stepper) ---------- */
.dv-steps-title {
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.dv-stepper {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
}

.dv-step-col {
  position: relative;
  z-index: 1;
}

/* Cascade the four steps in instead of popping together. */
.dv-stepper__row > div:nth-child(1) .dv-reveal {
  animation-delay: 0.05s;
}

.dv-stepper__row > div:nth-child(2) .dv-reveal {
  animation-delay: 0.15s;
}

.dv-stepper__row > div:nth-child(3) .dv-reveal {
  animation-delay: 0.25s;
}

.dv-stepper__row > div:nth-child(4) .dv-reveal {
  animation-delay: 0.35s;
}

.dv-step {
  position: relative;
  height: 100%;
  padding: clamp(20px, 1.6vw, 26px) clamp(18px, 1.4vw, 22px) clamp(26px, 2vw, 32px);
  border-radius: var(--dv-radius-md);
  background: var(--dv-surface);
  border: 1px solid var(--dv-line);
  box-shadow: var(--dv-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dv-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--dv-shadow-hover);
}

.dv-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--dv-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.dv-step__title {
  font-size: clamp(19px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dv-step__body {
  margin-top: 10px !important;
  color: var(--dv-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Closing motivation banner ---------- */
.dv-closer {
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 4vw, 56px);
  border-radius: var(--dv-radius-lg);
  background: var(--dv-grad);
  text-align: center;
}

.dv-closer__title {
  width: min(100%, 640px);
  margin: 0 auto;
  font-family: "DonnoDisplay", sans-serif;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-feature-settings: "salt" 1;
  font-size: clamp(28px, 3.2vw, 46px);
  color: #fff;
}

.dv-closer__sub {
  width: min(100%, 720px);
  margin: clamp(14px, 2vw, 20px) auto 0 !important;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.dv-closer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 64px;
  padding: 18px 36px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dv-closer-cta span {
  color: #12141a !important;
}

.dv-closer-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.dv-closer-cta:active {
  transform: scale(0.97);
}

.dv-steps-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 36px);
}

.dv-steps {
  padding-bottom: clamp(56px, 6vw, 96px);
}

/* Staircase layout: on wide screens the steps climb left-to-right. */
@media (min-width: 1200px) {
  .dv-stepper__row {
    align-items: flex-start;
  }

  .dv-step-col {
    margin-top: 0;
  }

  .dv-step-col--1 {
    margin-top: 160px;
  }

  .dv-step-col--2 {
    margin-top: 106px;
  }

  .dv-step-col--3 {
    margin-top: 53px;
  }

  .dv-step-col--4 {
    margin-top: 0;
  }

  .dv-step {
    height: auto;
    padding: 38px 28px 32px 26px;
    border: 0;
    border-top: 1px solid rgba(18, 20, 26, 0.5);
    border-left: 1px solid rgba(18, 20, 26, 0.5);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
  }

  .dv-step:hover {
    border-color: var(--dv-blue);
    transform: translateX(4px);
    box-shadow: none;
  }

  .dv-step__num {
    position: absolute;
    top: -20px;
    left: -20px;
    margin-bottom: 0;
    background: var(--dv-dark);
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .dv-step:hover .dv-step__num {
    background: var(--dv-grad);
    transform: scale(1.08);
  }
}

/* ---------- Reveal ---------- */
.dv-reveal {
  opacity: 0;
}

.dv-reveal.is-visible {
  animation: dv-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dv-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dv-hero__media::before,
  .dv-hero__media::after {
    animation: none;
  }

  .dv-reveal.is-visible {
    animation: none;
  }

  .dv-reveal {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .dv-section {
    padding-top: 56px;
  }

  .dv-hero__media {
    min-height: 440px;
  }

  .dv-hero__content {
    padding: 44px 20px 110px;
  }

  .dv-panel {
    text-align: left;
  }
}

/* ---------- Bootstrap modal ---------- */
#donno-easypay-v2-modal .modal-dialog {
  width: 100%;
  max-width: 520px !important;
  margin: 0 auto !important;
}

#donno-easypay-v2-modal .modal-dialog-centered {
  min-height: 100%;
  align-items: center;
}

#donno-easypay-v2-modal .modal-content {
  border-radius: 24px;
  padding: 8px;
  border: 0;
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.24);
}

#donno-easypay-v2-modal .dv-modal-title {
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

#donno-easypay-v2-modal .dv-modal-sub {
  color: var(--dv-muted, #6b7280);
  font-family: "Onest", sans-serif;
  font-size: 15px;
}

#donno-easypay-v2-modal .form-control {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(18, 20, 26, 0.14);
  font-family: "Onest", sans-serif;
}

#donno-easypay-v2-modal .form-control:focus {
  border-color: #0057ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 87, 255, 0.14);
}

#donno-easypay-v2-modal .dv-modal-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, #0057ff 0%, #00c2ed 55%, #00ffd1 100%);
  color: #fff;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  transition: transform 0.2s ease;
}

#donno-easypay-v2-modal .dv-modal-submit:hover {
  transform: scale(1.02);
}

#donno-easypay-v2-modal .dv-modal-submit:active {
  transform: scale(0.97);
}

#donno-easypay-v2-modal .dv-modal-submit:disabled {
  opacity: 0.6;
  transform: none;
}

@media (max-width: 575.98px) {
  #donno-easypay-v2-modal .modal-dialog {
    max-width: 100% !important;
  }

  #donno-easypay-v2-modal .modal-content {
    border-radius: 18px;
  }
}
