/* View: Views/Home/ComeFunziona.cshtml */
:root {
    --ap-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ap-ink: #1d1d1f;
    --ap-grey: #6e6e73;
    --ap-grey2: #86868b;
    --ap-line: #e3e3e8;
    --ap-surface: #f5f5f7;
    --ap-cyan: #009fda;
    --ap-cyan-d: #007aa3;
    --cyan: #009fda;

    --fs-display: clamp(2.6rem, 6vw, 4.6rem);
    --fs-h2: clamp(2rem, 4.4vw, 3.4rem);
    --fs-h2-xl: clamp(2.4rem, 6vw, 4.4rem);
    --fs-card: 1.28rem;
    --fs-lead: clamp(1.05rem, 1.35vw, 1.25rem);
    --fs-sub: clamp(1rem, 1.2vw, 1.12rem);
    --ls-tight: -.03em;
    --ls-snug: -.015em;
    --lh-tight: 1.05;
}

#header.fixed-top {
    background-color: rgba(255,255,255,.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ap-line);
}
#header.fixed-top a,
#header.fixed-top .nav-link,
#header.fixed-top .navbar-nav .nav-link,
#header.fixed-top li a { color: var(--ap-ink) !important; }



.blog-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    text-align: center;
    padding: clamp(120px, 14vw, 180px) 24px clamp(72px, 10vw, 120px);
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: -30%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,159,218,.12), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero .sez-label {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.blog-hero h1 {
    font-family: var(--ap-font);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--ap-ink);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 20px;
    max-width: 900px;
}
.blog-hero h1 span { color: var(--cyan); }
.blog-hero-divider {
    width: 56px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--cyan);
    margin: 0 auto 40px;
    opacity: 1;
}
.blog-hero .hero-sub {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    color: var(--ap-grey);
    line-height: 1.65;
    margin: 0 auto 40px;
    max-width: 640px;
}
.blog-hero .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-hero .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ap-ink);
    color: #fff;
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 980px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.blog-hero .hero-cta:hover { background: var(--cyan); color: #fff; transform: translateY(-1px); text-decoration: none; }
.blog-hero .hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--ap-ink);
    border: 1px solid var(--ap-line);
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 980px;
    text-decoration: none;
    transition: border-color .2s, color .2s, transform .15s;
}
.blog-hero .hero-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); text-decoration: none; }

.blog-hero .hero-cf-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(26px, 5vw, 56px);
    width: 100%;
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 34px;
    border-top: 1px solid var(--ap-line);
}
.blog-hero .hero-cf-stat { text-align: center; }
.blog-hero .hero-cf-stat .stat-num {
    font-family: var(--ap-font);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--ap-ink);
    line-height: 1;
    letter-spacing: var(--ls-tight);
}
.blog-hero .hero-cf-stat .stat-label {
    font-family: var(--ap-font);
    font-size: .72rem;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

.divisore-minimal {
    border: none;
    border-top: 1px solid #e4edf5;
    margin: 0;
    opacity: 1;
}

.sez-label-white {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.sez-label-blu {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,100,160,.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.btn-outlineWHI {
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 20px;
}
.btn-outlineWHI:hover {
    background-color: #007fbf;
    color: #fff !important;
}

.sez-intro-cf {
    background: #fff;
    padding: 96px 0;
    text-align: center;
}

.sez-registrati {
    background: #f8fbfd;
    padding: 96px 0;
}
.card-registrati {
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 16px;
    padding: 48px 36px;
    text-align: center;
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.card-registrati:hover {
    box-shadow: 0 8px 32px rgba(0,60,120,.09);
    transform: translateY(-3px);
}
.card-registrati .cr-icon {
    width: 64px;
    height: 64px;
    background: #e8f4fb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #007fbf;
    margin: 0 auto 24px;
}
.card-registrati h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #003c78;
    margin-bottom: 12px;
}
.card-registrati p {
    font-size: .92rem;
    color: #5a7a8a;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ── TAB MINIMAL underline ── */
.sez-tab-cf {
    background: #fff;
    padding: 96px 0;
}
.cf-tab-nav {
    display: flex;
    margin-bottom: 48px;
    border-bottom: 2px solid #e4edf5;
    max-width: 320px;
}
.cf-tab-btn {
    flex: 1;
    padding: 12px 0;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    background: transparent;
    color: #8aa0b0;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    text-decoration: none;
    display: block;
    letter-spacing: .3px;
}
.cf-tab-btn.active {
    color: #003c78;
    border-bottom-color: #007fbf;
}
.cf-tab-btn:hover {
    color: #007fbf;
    text-decoration: none;
}

.cf-tab-pane { display: none; }
.cf-tab-pane.active { display: block; }

/* ── STEP ROW ── */
.cf-step-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 36px 0 36px 24px;
    border-bottom: 1px solid #e4edf5;
}
.cf-step-row:last-child { border-bottom: none; }

.cf-step-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cf-step-img img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.cf-step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #003c78;
    margin-bottom: 10px;
}
.cf-step-content p {
    font-size: .92rem;
    color: #5a7a8a;
    line-height: 1.7;
    margin-bottom: 8px;
}
.cf-step-callout {
    background: #f0f8ff;
    border-left: 3px solid #007fbf;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: .88rem;
    font-weight: 600;
    color: #003c78;
}

.sez-cta-tel {
    background: #fff;
    padding: 64px 0;
}
.cta-tel-card {
    background: #f8fbfd;
    border: 1px solid #e4edf5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}
.cta-tel-card .row { flex: 1; margin: 0; }
.cta-tel-img {
    background-image: url("/assets/img/bresciani.jpg");
    background-size: cover;
    background-position: 50% 50%;
    min-height: 200px;
    height: 100%;
    padding: 0;
}
.cta-tel-card .col-md-9 { padding: 0; }

@media (max-width: 768px) {
    .sez-intro-cf, .sez-registrati, .sez-tab-cf { padding: 64px 0; }
    .hero-cf-stats { gap: 24px; }
    .cf-step-row { gap: 20px; padding-left: 0; }
    .cf-tab-nav { max-width: 100%; }
}

@media (max-width: 767px) {
    .blog-hero { padding-left: 18px; padding-right: 18px; }
    .blog-hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.8rem); }
    .blog-hero .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
    .blog-hero .hero-cta, .blog-hero .hero-ghost { width: 100%; }
}
/* SCALA TIPOGRAFICA E BOTTONI DELLA HOME */
.hp-sec {
    position: relative;
    overflow: hidden;
    padding: clamp(84px, 11vw, 168px) 0;
    background: #fff;
}
.hp-sec--light { background: var(--ap-surface); }
.hp-title {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 14px;
}
.hp-title--xl { font-size: var(--fs-h2-xl); }
.hp-title span { color: inherit; }
.hp-title span.hl { color: var(--ap-cyan); }
.hp-sub {
    font-family: var(--ap-font);
    font-size: var(--fs-lead);
    color: var(--ap-ink);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.hp-lead {
    font-family: var(--ap-font);
    font-size: var(--fs-sub);
    color: var(--ap-grey);
    font-weight: 400;
    line-height: 1.6;
    margin: 22px 0 0;
}
.hp-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hp-cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e7f6fd 0%, #f3fbff 55%, #ffffff 100%);
    border: 1px solid #d4ecfa;
    border-radius: 32px;
    padding: clamp(56px, 8vw, 110px) 32px;
    text-align: center;
}
.hp-cta-band::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -45%;
    left: 50%;
    width: 70%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,159,218,.20), transparent 65%);
    filter: blur(54px);
    pointer-events: none;
}
.hp-cta-band > * { position: relative; z-index: 1; }
.hp-cta-band .hp-title { margin-bottom: 12px; }
.hp-cta-band .hp-sub {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.hp-cta-band .hp-actions {
    margin-top: 30px;
    justify-content: center;
}

/* TESTI DELLA PAGINA ALLINEATI ALLA SCALA DELLA HOME */
.titolo-interno {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 14px;
}
.titolo-interno span, .titolo-interno .hl { color: var(--ap-cyan); }
.titolo-medio {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: var(--fs-lead);
    line-height: 1.4;
    letter-spacing: var(--ls-snug);
    margin: 0;
}
.titolo-medio span, .titolo-medio .hl { color: var(--ap-cyan); }
.sottotitolo-interno {
    font-family: var(--ap-font);
    font-size: var(--fs-sub);
    color: var(--ap-grey);
    font-weight: 400;
    line-height: 1.6;
}
.sez-label-blu {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* TUTTI I BOTTONI NERI COME IN HOME */
.hp-cta,
.blog-hero .hero-cta,
.blog-hero .hero-ghost,
.btn.btn-primary,
.btn.btn-outline-light,
.btn.btn-outlineWHI {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ap-ink) !important;
    color: #fff !important;
    border: 1px solid var(--ap-ink) !important;
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500 !important;
    line-height: 1.2;
    padding: 16px 30px !important;
    border-radius: 980px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.hp-cta:hover,
.blog-hero .hero-cta:hover,
.blog-hero .hero-ghost:hover,
.btn.btn-primary:hover,
.btn.btn-outline-light:hover,
.btn.btn-outlineWHI:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 767px) {
    .hp-cta-band { border-radius: 24px; padding-left: 20px; padding-right: 20px; }
    .hp-cta-band .hp-actions { flex-direction: column; align-items: stretch; }
}
