/* ==========================================================
   ildivorzista — CTA
   Versione 1.1
========================================================== */

.idv-cta {
    position: relative;
    overflow: hidden;

    padding-top: clamp(48px, 5vw, 64px);
    padding-bottom: clamp(48px, 5vw, 68px);

    background: var(--surface);
}

/* ==========================================================
   PANEL
========================================================== */

.idv-cta__panel {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);

    align-items: center;

    gap: clamp(40px, 6vw, 72px);

    padding: clamp(32px, 4vw, 52px);

    color: var(--white);

    background:
        radial-gradient(
            circle at 85% 15%,
            rgb(255 255 255 / 16%),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--color-primary) 0%,
            var(--color-secondary) 100%
        );

    border-radius: var(--radius-2xl);

    box-shadow:
        0 28px 72px rgb(110 91 255 / 22%);

    transform: translateZ(0);
}

.idv-cta__panel::before {
    position: absolute;
    top: -120px;
    right: -90px;

    width: 320px;
    height: 320px;

    content: "";

    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 50%;

    opacity: 0.7;
    pointer-events: none;
}

.idv-cta__panel::after {
    position: absolute;
    right: 110px;
    bottom: -170px;

    width: 360px;
    height: 360px;

    content: "";

    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;

    opacity: 0.65;
    pointer-events: none;
}

/* ==========================================================
   CONTENT
========================================================== */

.idv-cta__content,
.idv-cta__actions {
    position: relative;
    z-index: 1;
}

.idv-cta__eyebrow {
    margin: 0 0 16px;

    color: rgb(255 255 255 / 78%);

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.idv-cta__title {
    max-width: 760px;
    margin: 0 0 18px;

    color: var(--white);

    font-size: clamp(2.35rem, 4.2vw, 4.15rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.048em;
}

.idv-cta__description {
    max-width: 660px;
    margin: 0;

    color: rgb(255 255 255 / 84%);

    font-size: clamp(1.05rem, 1.45vw, 1.18rem);
    line-height: 1.68;
}

/* ==========================================================
   ACTIONS
========================================================== */

.idv-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 14px;
}

.idv-cta__button,
.idv-cta__secondary {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none !important;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 220ms ease,
        border-color 220ms ease;
}

.idv-cta__button {
    min-height: 60px;

    gap: 12px;

    padding: 16px 24px;

    color: var(--color-primary-dark) !important;
    background: var(--white);

    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: var(--radius-md);

    box-shadow:
        0 16px 38px rgb(25 20 80 / 18%);

    font-weight: 800;
}

.idv-cta__button:hover {
    color: var(--color-primary-dark) !important;

    box-shadow:
        0 20px 46px rgb(25 20 80 / 24%);

    transform: translateY(-3px);
}

.idv-cta__button span {
    display: inline-flex;

    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.idv-cta__button:hover span {
    transform: translateX(5px);
}

.idv-cta__secondary {
    min-height: 54px;

    padding: 14px 22px;

    color: var(--white) !important;
    background: transparent;

    border: 1px solid rgb(255 255 255 / 32%);
    border-radius: var(--radius-md);

    box-shadow: none;

    font-weight: 750;
}

.idv-cta__secondary:hover {
    color: var(--white) !important;

    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 46%);

    transform: translateY(-2px);
}

.idv-cta__button:focus-visible,
.idv-cta__secondary:focus-visible {
    outline: 3px solid rgb(255 255 255 / 32%);
    outline-offset: 4px;
}

/* ==========================================================
   NOTE
========================================================== */

.idv-cta__note {
    margin: 2px 0 0;

    color: rgb(255 255 255 / 70%);

    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
    .idv-cta__panel {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .idv-cta__actions {
        max-width: 520px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {
    .idv-cta {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .idv-cta__panel {
        padding: 30px 22px;

        border-radius: var(--radius-xl);
    }

    .idv-cta__title {
        font-size: clamp(2.15rem, 10.5vw, 3.05rem);
        line-height: 1.05;
    }

    .idv-cta__description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .idv-cta__actions {
        gap: 12px;
    }

    .idv-cta__button,
    .idv-cta__secondary {
        width: 100%;
    }

    .idv-cta__button {
        min-height: 56px;
        padding: 15px 20px;
    }

    .idv-cta__secondary {
        min-height: 52px;
        padding: 14px 20px;
    }

    .idv-cta__note {
        font-size: 0.8rem;
    }
}

/* ==========================================================
   TOUCH DEVICES
========================================================== */

@media (hover: none) {
    .idv-cta__button:hover,
    .idv-cta__secondary:hover,
    .idv-cta__button:hover span {
        transform: none;
    }
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .idv-cta__button,
    .idv-cta__secondary,
    .idv-cta__button span {
        transition: none;
    }

    .idv-cta__button:hover,
    .idv-cta__secondary:hover,
    .idv-cta__button:hover span {
        transform: none;
    }
}