/* =====================================================
   BRAND SYSTEM
===================================================== */

:root {
    --accent-1: #FF3C00;
    --accent-2: #FF7A00;

    --text-main: #F8FAFC;
    --text-muted: #CBD5E1;
}

/* =====================================================
   GLOBAL BACKGROUND (UNICO E CONTINUO)
===================================================== */

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 60, 0, 0.15), transparent 60%),
        linear-gradient(180deg,
            #000000 0%,
            #120000 40%,
            #2b0000 75%,
            #000000 100%);
    background-attachment: fixed;
    color: var(--text-main);
}

/* Forza tutte le sezioni a NON avere sfondo */
section {
    background: transparent;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    background: url("../images/banner.png") center 35% /cover no-repeat;
}

/* CTA Lava */
.hero-cta {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    padding: 16px 46px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .6px;
    text-decoration: none;
    color: var(--text-main);

    background: linear-gradient(45deg,
            var(--accent-1),
            var(--accent-2),
            var(--accent-1));

    background-size: 300% 300%;
    animation: lavaFlow 5s ease infinite;

    box-shadow:
        0 0 20px rgba(255, 60, 0, .5),
        0 0 40px rgba(255, 122, 0, .4),
        0 12px 30px rgba(0, 0, 0, .6);

    transition: .25s ease;
}

.hero-cta:hover {
    transform: translateX(-50%) translateY(-4px) scale(1.05);
    box-shadow:
        0 0 45px rgba(255, 122, 0, .9),
        0 0 70px rgba(255, 60, 0, .8),
        0 18px 40px rgba(0, 0, 0, .8);
}

@keyframes lavaFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (min-width: 992px) {
    .hero-cta {
        top: 58%;
        bottom: auto;
        /* fondamentale */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-cta:hover {
        transform: translate(-50%, -50%) scale(1.05);
    }
}
@media (max-width: 700px) {
    .hero {
        background-image: url("../images/banner-mobile1.png");
    }

    .hero-cta {
        bottom: 80px;
        padding: 10px 20px;
        font-size: 14px;
        width: 60%; 
        text-align: center;
    }
}

/* =====================================================
   STEPS SECTIONS
===================================================== */

.buy-steps-slider,
.shipping-steps {
    padding: 90px 20px;
    text-align: center;
}

.buy-steps-slider h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 50px;
}

/* =====================================================
   SLIDER LAYOUT
===================================================== */

.steps-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
}

.steps-slider::-webkit-scrollbar {
    display: none;
}

/* =====================================================
   STEP CARD
===================================================== */
.step-card {
    background: #0a0a0a;

    border-radius: 22px;
    padding: 28px;

    border: 1px solid rgba(255, 60, 0, 0.15);

    box-shadow:
        0 0 0 1px rgba(255, 60, 0, 0.05),
        0 25px 60px rgba(0, 0, 0, .7);

    transition: .3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 60, 0, 0.4);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-card p {
    color: #94a3b8;
    /* grigio freddo */
}

/* =====================================================
   LAVA STEP NUMBER
===================================================== */

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;

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

    font-weight: 900;
    font-size: 14px;
    color: #fff;

    background: linear-gradient(45deg,
            var(--accent-1),
            var(--accent-2),
            var(--accent-1));

    background-size: 300% 300%;
    animation: lavaFlow 5s ease infinite;

    box-shadow:
        0 0 20px rgba(255, 60, 0, .7),
        0 0 40px rgba(255, 122, 0, .6);

    margin-bottom: 14px;
}

/* =====================================================
   BUTTONS INSIDE CARDS
===================================================== */
.step-card .paypal-btn {
    margin-top: 16px;

    padding: 10px 18px;
    border-radius: 12px;

    background: linear-gradient(45deg,
            #FF3C00,
            #FF7A00,
            #FF3C00);
    background-size: 300% 300%;
    animation: lavaFlow 6s ease infinite;

    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;

    transition: all .25s ease;
}

.step-card .paypal-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(255, 60, 0, 0.6);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
}

.social-icon img {
    width: 50px;
    height: 50px;
    transition: 0.25s ease;
}

.social-icon:hover img {
    transform: scale(1.15);
}

.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.payment-box {
    background: #111;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 300px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    border-radius: 12px;
    background: #1f1f1f;
    text-decoration: none;
    color: white;
    transition: 0.25s ease;
}

.payment-option:hover {
    background: #2a2a2a;
    transform: scale(1.05);
}

.payment-option img {
    width: 24px;
}

.close-modal {
    margin-top: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
}
/* =====================================================
   MOBILE CAROUSEL
===================================================== */

@media (max-width: 768px) {

    .steps-slider {
        display: flex;
        gap: 20px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding: 20px 20px 40px;
    }

    .steps-slider::-webkit-scrollbar {
        display: none;
    }

    .step-card {
        flex: 0 0 85%;
        scroll-snap-align: center;

        padding: 24px;
    }

    .step-card .paypal-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* =====================================================
   NOTE
===================================================== */

.buy-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* =====================================================
   DESKTOP CENTER FIX
===================================================== */

@media (min-width: 900px) {
    .steps-slider {
        justify-content: center;
        overflow: visible;
    }
}