/* View: Views/Home/ServiziESoluzioni.cshtml */
:root {
    --ap-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ap-ink: #1d1d1f;
    --ap-grey: #6e6e73;
    --ap-line: #e4edf5;
    --ap-surface: #f5f5f7;
    --navy: #003c78;
    --blu: #007FBF;
    --cyan: #009FDA;
    --giallo: #FFB704;
    --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; }

.titolo-interno {
    font-family: var(--ap-font);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
    color: var(--ap-ink);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 14px;
}
.titolo-interno span { color: var(--cyan); }
.sottotitolo-interno {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    font-weight: 400;
    color: var(--ap-grey);
    line-height: 1.6;
    margin: 0 0 .5rem;
}

.sez-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.divisore-minimal {
    border: none;
    border-top: 1px solid var(--ap-line);
    margin: 0;
    opacity: 1;
}

/* HERO (stile blog) */
.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-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: var(--ap-font);
}
.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: 860px;
}
.blog-hero h1 span { color: var(--cyan); }
.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: 560px;
}
.blog-hero-divider {
    width: 56px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--cyan);
    margin: 0 auto 40px;
    opacity: 1;
}
.blog-hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-grey);
    font-family: var(--ap-font);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}
.blog-hero-scroll:hover { color: var(--cyan); text-decoration: none; }

/* MENU */
.sez-menu {
    background: #fff;
    padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 10vw, 130px);
}

.square-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--ap-surface);
    border: 1px solid #ececef;
    border-radius: 18px;
    margin-bottom: 12px;
    transition: background .25s, border-color .25s, transform .15s, box-shadow .25s;
    text-decoration: none;
    color: inherit;
    padding: 24px 28px;
    gap: 18px;
    cursor: pointer;
    min-height: 88px;
}
.square-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(60% 80% at 92% 90%, rgba(0,159,218,.10), transparent 70%);
    pointer-events: none;
}
.square-link i {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    position: relative;
    z-index: 1;
}
.square-link:hover,
.square-link.active {
    background: var(--ap-surface);
    border-color: rgba(0,159,218,.55);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(0,159,218,.30), 0 26px 60px -18px rgba(0,159,218,.45);
}
.square-link:hover::after,
.square-link.active::after { opacity: 1; }
.square-link img {
    width: 44px !important;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.square-link .link-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.square-link .link-title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--ap-ink);
    line-height: 1.2;
    font-family: var(--ap-font);
}
.square-link .link-subtitle {
    font-size: .82rem;
    color: var(--ap-grey);
    margin-top: 4px;
    font-family: var(--ap-font);
    line-height: 1em;
}
.square-link > span {
    font-size: .98rem;
    font-weight: 600;
    color: var(--ap-ink);
    font-family: var(--ap-font);
    position: relative;
    z-index: 1;
}

.square-link.square-link--novita {
    background: var(--cyan);
    border-color: var(--cyan);
}
.square-link.square-link--novita i { color: #fff; }
.square-link.square-link--novita .link-title { color: #fff; }
.square-link.square-link--novita .link-subtitle { color: rgba(255,255,255,.88); }
.square-link.square-link--novita::after {
    background: radial-gradient(60% 80% at 92% 90%, rgba(255,255,255,.22), transparent 70%);
}
.square-link.square-link--novita:hover {
    background: #008ec2;
    border-color: #008ec2;
    box-shadow: 0 0 0 1px rgba(0,159,218,.35), 0 26px 60px -18px rgba(0,159,218,.55);
}

/* BACK BUTTON */
.back-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.back-row--bottom {
    margin-bottom: 0;
    margin-top: 22px;
}
.back-row__line {
    flex: 1;
    height: 1px;
    background: var(--ap-line);
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ap-ink);
    color: #fff;
    border: 0;
    border-radius: 980px;
    padding: 11px 22px;
    font-family: var(--ap-font);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.back-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -10px rgba(0,0,0,.45);
}
.back-btn i {
    font-size: 1rem;
    color: #fff;
    transition: transform .2s;
}
.back-btn:hover i { transform: translateX(-3px); }

.set-current {
    font-family: var(--ap-font);
    font-size: .78rem;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    white-space: nowrap;
}

.set-container { display: none; }
.set-container.active { display: block; }

.boffert {
    background: var(--ap-surface);
    border: 1px solid #ececef;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 12px;
    font-family: var(--ap-font);
    font-size: .9rem;
    color: var(--ap-grey);
}
.boffert a { color: var(--blu); text-decoration: none; font-weight: 600; }
.boffert a:hover { color: var(--navy); text-decoration: underline; }
.boffert hr { border-color: #e2e2e6; margin: 16px 0; }

.green-box-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: background .2s;
    margin-bottom: 4px;
}
.green-box-link:last-child { margin-bottom: 0; }
.green-box-link:hover { background: rgba(0,159,218,.08); text-decoration: none; }
.green-box-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.green-box-img i {
    font-size: 1.6rem;
    color: var(--cyan);
    line-height: 1;
}
.green-box-img div { width: 100%; height: 100%; }
.green-box-text h2 {
    color: var(--ap-ink);
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--ap-font);
}
.green-box-text h5 {
    color: var(--ap-grey);
    margin: 0;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: var(--ap-font);
}

/* BANNER PACCHETTI */
.sez-pkg { background: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.pkg-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;
}
.pkg-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;
}
.pkg-band > * { position: relative; z-index: 1; }
.pkg-band .pkg-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.pkg-band h2 {
    font-weight: 600;
    color: var(--ap-ink);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin: 0 0 16px;
}
.pkg-band .pkg-sub {
    color: var(--ap-grey);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 640px;
}
.pkg-divider {
    width: 64px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--cyan);
    margin: 26px auto;
    opacity: 1;
}
.pkg-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    margin: 28px 0 36px;
}
.pkg-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ap-ink);
    font-size: 14px;
    font-weight: 600;
}
.pkg-check-dot {
    width: 22px;
    height: 22px;
    background: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
}
.pkg-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ap-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 17px 36px;
    border-radius: 980px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.pkg-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }

/* NUMERI */
.stats-band {
    background: #fff;
    padding: clamp(40px, 6vw, 76px) 0;
}
.stats-row {
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
}
.stat-cell {
    text-align: center;
    padding: clamp(34px, 5vw, 58px) 24px;
}
.stat-cell--div { border-left: 1px solid var(--ap-line); }
.stat-cell .stat-num {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: -.04em;
}
.stat-cell .stat-lab {
    font-family: var(--ap-font);
    font-size: 1.05rem;
    color: var(--ap-grey);
    margin-top: 16px;
}

/* CTA FINALE */
.sez-fv-cta { background: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.fv-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;
}
.fv-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;
}
.fv-cta-band > * { position: relative; z-index: 1; }
.fv-cta-band h2 {
    font-weight: 600;
    color: var(--ap-ink);
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin: 0 0 12px;
}
.fv-cta-band p { color: var(--ap-grey); font-size: 1.1rem; margin: 0 0 28px; }
.fv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ap-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 980px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.fv-cta-btn:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }

@media (max-width: 991px) {
    .stat-cell--div { border-left: 0; border-top: 1px solid var(--ap-line); }
}
@media (max-width: 767px) {
    .blog-hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .square-link { padding: 20px 22px; }
    .pkg-checks { gap: 12px 20px; }
    .set-current { display: none; }
    .back-btn { padding: 10px 18px; font-size: .82rem; }
}
