/* =========================================================
   PAGINA RINGRAZIAMENTO
   Compatibile con lo stile esistente del sito.
   Non modifica .container, .section, .btn o altre classi globali.
   ========================================================= */

.thankyou-page {
    background: #fff;
    color: #17171a;
    overflow: hidden;
}

/* HERO */
.thankyou-hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 145px 0 80px;
    background:
        radial-gradient(circle at 78% 25%, rgba(255, 23, 77, .18), transparent 32%),
        linear-gradient(135deg, #110104 0%, #1c0409 48%, #2a0710 100%);
    color: #fff;
    isolation: isolate;
}

.thankyou-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}

.thankyou-hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -160px;
    bottom: -190px;
    border-radius: 50%;
    background: rgba(255, 23, 77, .09);
    filter: blur(4px);
    z-index: -1;
}

.thankyou-wrap {
    max-width: 900px;
    text-align: center;
}

.thankyou-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff174d;
    color: #fff;
    font-size: 30px;
    box-shadow:
        0 0 0 10px rgba(255, 23, 77, .10),
        0 18px 45px rgba(255, 23, 77, .30);
}

.thankyou-hero .section-kicker {
    margin-bottom: 14px;
}

.thankyou-hero h1 {
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -2.4px;
    font-weight: 500;
}

.thankyou-hero h1 em {
    display: inline-block;
    color: #ff174d;
    font-style: italic;
    font-weight: 500;
}

.thankyou-hero p {
    max-width: 720px;
    margin: 22px auto 0;
    color: #cbbcc0;
    font-size: 16px;
    line-height: 1.8;
}

.thankyou-reference {
    width: min(440px, 100%);
    margin: 30px auto 0;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
}

.thankyou-reference span {
    color: #bbaeb2;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.thankyou-reference strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .4px;
}

/* CONTENUTO */
.thankyou-content {
    position: relative;
    background: #fff;
}

.thankyou-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.thankyou-grid article {
    position: relative;
    min-height: 270px;
    padding: 30px 28px;
    border: 1px solid #e9e9ed;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.thankyou-grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 23, 77, .20);
    box-shadow: 0 22px 50px rgba(14, 6, 8, .08);
}

.thankyou-grid article > span {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #f1ecee;
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -2px;
}

.thankyou-grid article > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 14px;
    background: #160207;
    color: #ff365c;
    font-size: 20px;
}

.thankyou-grid h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #17171a;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 500;
}

.thankyou-grid p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #6b6b70;
    font-size: 13px;
    line-height: 1.75;
}

/* CTA */
.thankyou-cta {
    margin-top: 34px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 45px;
    align-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 23, 77, .18), transparent 28%),
        #150207;
    color: #fff;
    overflow: hidden;
}

.thankyou-cta h2 {
    margin: 9px 0 12px;
    max-width: 650px;
    color: #fff;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1px;
}

.thankyou-cta p {
    max-width: 650px;
    margin: 0;
    color: #bfaeb2;
    font-size: 14px;
    line-height: 1.8;
}

.thankyou-actions {
    display: grid;
    gap: 10px;
}

.thankyou-actions .btn {
    width: 100%;
    min-height: 50px;
}

.thankyou-actions .btn-dark {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
}

.thankyou-actions .btn-dark:hover {
    background: rgba(255,255,255,.14);
}

.thankyou-actions .btn-outline {
    border-color: rgba(255,255,255,.16);
    background: transparent;
    color: #fff;
}

.thankyou-actions .btn-outline:hover {
    background: #fff;
    color: #17171a;
}

/* NOTA FINALE */
.thankyou-note {
    margin-top: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #e8e8eb;
    border-radius: 14px;
    background: #f8f8fa;
}

.thankyou-note > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #ff174d;
    font-size: 17px;
}

.thankyou-note p {
    margin: 0;
    color: #68686d;
    font-size: 12px;
    line-height: 1.75;
}

/* ACCESSIBILITÀ / HOVER */
.thankyou-actions a,
.thankyou-grid article {
    -webkit-tap-highlight-color: transparent;
}

.thankyou-actions a:focus-visible {
    outline: 3px solid rgba(255, 23, 77, .30);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 980px) {

    .thankyou-hero {
        min-height: 540px;
        padding: 130px 0 70px;
    }

    .thankyou-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thankyou-grid article:last-child {
        grid-column: 1 / -1;
    }

    .thankyou-cta {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px;
    }

    .thankyou-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .thankyou-actions .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 640px) {

    .thankyou-hero {
        min-height: auto;
        padding: 118px 0 58px;
    }

    .thankyou-hero::after {
        width: 280px;
        height: 280px;
        right: -130px;
        bottom: -100px;
    }

    .thankyou-wrap {
        text-align: left;
    }

    .thankyou-icon {
        width: 62px;
        height: 62px;
        margin: 0 0 20px;
        font-size: 24px;
    }

    .thankyou-hero h1 {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1.6px;
    }

    .thankyou-hero p {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.75;
    }

    .thankyou-reference {
        width: 100%;
        margin-top: 24px;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .thankyou-reference strong {
        font-size: 14px;
        word-break: break-word;
    }

    .thankyou-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .thankyou-grid article,
    .thankyou-grid article:last-child {
        grid-column: auto;
        min-height: auto;
        padding: 24px 22px;
    }

    .thankyou-grid article > span {
        font-size: 40px;
    }

    .thankyou-grid article > i {
        width: 46px;
        height: 46px;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .thankyou-grid h2 {
        font-size: 18px;
    }

    .thankyou-cta {
        margin-top: 22px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .thankyou-cta h2 {
        font-size: 28px;
        letter-spacing: -.7px;
    }

    .thankyou-cta p {
        font-size: 13px;
    }

    .thankyou-actions {
        grid-template-columns: 1fr;
    }

    .thankyou-actions .btn {
        width: 100%;
    }

    .thankyou-note {
        margin-top: 14px;
        padding: 16px;
    }
}

/* =========================================================
   MOBILE MOLTO PICCOLO
   ========================================================= */
@media (max-width: 390px) {

    .thankyou-hero h1 {
        font-size: 34px;
    }

    .thankyou-cta h2 {
        font-size: 25px;
    }

    .thankyou-grid article {
        padding: 22px 19px;
    }
}
