﻿:root {
    --bs-primary: #0f4c81;
    --bs-primary-rgb: 15, 76, 129;
    --sf-primary: #0f4c81;
    --sf-primary-dark: #08385f;
    --sf-accent: #f5a623;
    --sf-soft: #f4f8fb;
    --sf-border: #dbe7f0;
}

.btn-warning {
    --bs-btn-color: #1f2937;
    --bs-btn-hover-color: #1f2937;
    font-weight: 800;
}

.bg-soft {
    background: var(--sf-soft) !important;
}

.hero {
    background: radial-gradient(circle at 82% 18%, rgba(245,166,35,.22), transparent 28%), linear-gradient(135deg, #0f4c81 0%, #0b355b 58%, #08283f 100%);
    color: #fff;
    padding: 4.5rem 0 6rem;
    overflow: hidden;
    position: relative;
}

    .hero::after {
        content: "";
        position: absolute;
        right: -14rem;
        bottom: -18rem;
        width: 540px;
        height: 540px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
    }

    .hero .container {
        position: relative;
        z-index: 2;
    }

    .hero .breadcrumb a {
        color: rgba(255,255,255,.72);
        text-decoration: none;
    }

    .hero .breadcrumb .active {
        color: #fff;
    }

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    font-size: .92rem;
}

.hero-visual {
    border-radius: 1.75rem;
    min-height: 360px;
    background: linear-gradient(rgba(7, 29, 49, .1), rgba(7, 29, 49, .45)), url(/immagini/corsi-pro/@(corso.slug).jpg) center / cover;
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-visual-card {
    background: rgba(255,255,255,.93);
    color: #1f2937;
    border-radius: 1.25rem;
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.purchase-card {
    border: 1px solid var(--sf-border);
    border-radius: 1.5rem;
    box-shadow: 0 18px 50px rgba(15,76,129,.14);
    margin-top: -4.25rem;
    position: sticky;
    top: 6rem;
    z-index: 5;
}

.price {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--sf-primary);
}

.sf-card {
    border: 1px solid var(--sf-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,76,129,.07);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--sf-primary);
    background: rgba(15,76,129,.1);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.sticky-nav {
    border-bottom: 1px solid var(--sf-border);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 73px;
    z-index: 4;
}

    .sticky-nav .nav-link {
        color: #667085;
        font-weight: 700;
        padding: 1rem .75rem;
    }

        .sticky-nav .nav-link:hover {
            color: var(--sf-primary);
        }

.module-item {
    border: 1px solid var(--sf-border);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.module-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-primary);
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.accordion-button:not(.collapsed) {
    background: rgba(15,76,129,.08);
    color: var(--sf-primary);
    box-shadow: none;
}

.cta-box {
    border-radius: 1.5rem;
    background: radial-gradient(circle at 10% 10%, rgba(245,166,35,.2), transparent 25%), linear-gradient(135deg, var(--sf-primary), var(--sf-primary-dark));
    color: #fff;
    overflow: hidden;
}

.docente-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(15,76,129,.1);
    color: var(--sf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cfp-bar {
    background: #071d31;
    padding: 1.2rem 0;
}

.cfp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

    .cfp-pill .num {
        background: white;
        color: #1f2937;
        font-weight: 800;
        font-size: .78rem;
        padding: .1rem .55rem;
        border-radius: 50px;
    }

.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}

.wa-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    text-decoration: none;
    transition: .2s;
}

    .wa-btn:hover {
        transform: scale(1.1);
        color: #fff;
    }

@@media (max-width: 991.98px) {
    .hero {
        padding: 3.5rem 0 4rem;
    }

    .purchase-card {
        margin-top: 0;
        position: static;
    }

    .sticky-nav {
        top: 70px;
        overflow-x: auto;
    }

        .sticky-nav .nav {
            flex-wrap: nowrap;
            white-space: nowrap;
        }
}

.bg-cni {
    background-color: blue;
    color: white;
}

.bg-cnappc {
    background-color: orange;
    color: white;
}

.bg-cngegl {
    background-color: forestgreen;
    color: white;
}

.bg-cng {
    background-color: #2ac92a;
    color: white;
}

.bg-cnpa {
    background-color: brown;
    color: white;
}

.bg-cnpi {
    background-color: deeppink;
    color: white;
}

.bg-conaf {
    background-color: gold;
    color: white;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
}
