/* View: Views/Home/ComunitaEnergeticheSoluzioniImpreseComuniCondomini.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;
    --cyan: #009FDA;
    --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; }

/* HERO SPLIT */
#soluzioni_new {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: #fff !important;
    background-image: none !important;
    overflow: hidden;
    padding: clamp(120px, 13vw, 170px) 0 clamp(64px, 8vw, 100px);
}
#soluzioni_new::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -14%;
    width: 60%;
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(0,159,218,.12), transparent 65%);
    filter: blur(70px);
    pointer-events: none;
}
#soluzioni_new .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
#soluzioni_new h1 {
    font-family: var(--ap-font);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 600;
    color: var(--ap-ink);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 20px;
}
#soluzioni_new h1 span { color: var(--cyan); }
.hero-divider {
    width: 56px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--cyan);
    margin: 0 0 28px;
    opacity: 1;
}
#soluzioni_new .hero-sub {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    font-weight: 400;
    color: var(--ap-grey);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
position: absolute;
z-index: 1;
right: -10%;
bottom: -20%;
width: 69%;
/* max-width: 880px; */
pointer-events: none;
transform: rotate(-5deg);

}
.hero-media img {
    width: 100%;
    height: auto;
    display: block;


}

.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: 18px;
}
.sez-label-white {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-cer-stats {
    display: flex;
    gap: 44px;
    margin-top: 44px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--ap-line);
}
.hero-cer-stat .stat-num {
    font-family: var(--ap-font);
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-tight);
    line-height: 1;
}
.hero-cer-stat .stat-label {
    font-family: var(--ap-font);
    font-size: 0.74rem;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

/* TIPOGRAFIA */
.titolo-interno {
    font-family: var(--ap-font);
    font-weight: 600;
    color: var(--ap-ink);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 14px;
}
.titolo-interno--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.titolo-interno span.hl { color: var(--cyan); }
.titolo-medio {
    font-family: var(--ap-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ap-ink);
    line-height: 1.3;
    letter-spacing: var(--ls-snug);
    margin: 0 0 .5rem;
}
.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.75;
    margin: 0 0 16px;
}

.sol-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 30px;
    border-radius: 980px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.sol-cta:hover { background: #000; color: #fff; transform: translateY(-1px); text-decoration: none; }
.sol-btn-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 28px;
    border-radius: 980px;
    text-decoration: none;
    transition: border-color .2s, transform .15s;
}
.sol-btn-ghost:hover { border-color: #b8b8c0; color: var(--ap-ink); transform: translateY(-1px); text-decoration: none; }
.btn-outlineWHI {
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 20px;
}
.btn-outlineWHI:hover {
    background-color: #007fbf;
    color: #fff !important;
}

.divisore-minimal {
    border: none;
    border-top: 1px solid var(--ap-line);
    margin: 0;
    opacity: 1;
}

/* INTRO */
#vantaggi2 {
    background: #fff;
    padding: clamp(64px, 9vw, 120px) 0 clamp(32px, 4vw, 56px);
}
#vantaggi2 .sottotitolo-interno b { color: var(--ap-ink); font-weight: 600; }

/* SOLUZIONI, SEZIONE NERA */
.sez-soluzioni {
    background: #000;
    padding: clamp(72px, 9vw, 130px) 0;
}
.sez-soluzioni .sez-label { color: rgba(255,255,255,.52); }
.sez-soluzioni .titolo-interno { color: #fff; }
.sez-soluzioni .titolo-interno span.hl { color: var(--cyan); }
.sez-soluzioni .sez-sub {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    color: rgba(255,255,255,.62);
    line-height: 1.75;
    margin: 18px auto 0;
    max-width: 720px;
}

.sol-cards-row { align-items: stretch; }
.sol-cards-row > div { display: flex; }
#greenland, #greenindustry, #greenbuilding {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    width: 100%;
    display: flex;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
}
#greenland:hover, #greenindustry:hover, #greenbuilding:hover {
    transform: translateY(-6px);
    border-color: rgba(0,159,218,.55);
    box-shadow: 0 34px 74px -28px rgba(0,159,218,.45);
}
#greenland > a, #greenindustry > a, #greenbuilding > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 40px 34px;
    text-decoration: none;
}
#greenland > a:hover, #greenindustry > a:hover, #greenbuilding > a:hover { text-decoration: none; }
.sol-card-eyebrow {
    font-family: var(--ap-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
#greenland .titolo-medio,
#greenindustry .titolo-medio,
#greenbuilding .titolo-medio {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-tight);
    line-height: 1.1;
    margin: 0 0 12px;
}
#greenland .sottotitolo-interno,
#greenindustry .sottotitolo-interno,
#greenbuilding .sottotitolo-interno {
    font-size: .98rem;
    color: var(--ap-grey);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}
.sol-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: var(--ap-font);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ap-ink);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color .2s;
}
#greenland > a:hover .sol-card-arrow,
#greenindustry > a:hover .sol-card-arrow,
#greenbuilding > a:hover .sol-card-arrow { color: var(--cyan); }
.sol-card-arrow svg { transition: transform .2s; }
#greenland > a:hover .sol-card-arrow svg,
#greenindustry > a:hover .sol-card-arrow svg,
#greenbuilding > a:hover .sol-card-arrow svg { transform: translateX(4px); }

/* TAB */
.sez-tab {
    background: var(--ap-surface);
    padding: clamp(64px, 9vw, 120px) 0;
}
.sol-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 44px auto 0;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 980px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sol-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    border-radius: 980px;
    padding: 13px 30px;
    font-family: var(--ap-font);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ap-grey);
    letter-spacing: var(--ls-snug);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.sol-tab:hover { color: var(--ap-ink); }
.sol-tab.is-active {
    background: var(--ap-ink);
    color: #fff;
}

.sol-panel { display: none; }
.sol-panel.is-active { display: block; animation: solFade .35s ease; }
@keyframes solFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.sol-slider { margin-top: 48px; }
.sol-slider-head {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 22px;
}
.sol-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--ap-line);
    background: #fff;
    color: var(--ap-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.sol-nav:hover:not(:disabled) { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }
.sol-nav:disabled { opacity: .32; cursor: default; }
.sol-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.sol-track::-webkit-scrollbar { display: none; }
.sol-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    display: flex;
}
.sol-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.sol-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c9cbd1;
    cursor: pointer;
    transition: background .2s, width .2s;
}
.sol-dot.is-active { background: var(--ap-ink); width: 26px; border-radius: 980px; }
.sol-block {
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    padding: 34px 30px;
    width: 100%;
    transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s, border-color .35s;
}
.sol-block:hover {
    transform: translateY(-4px);
    border-color: rgba(0,159,218,.30);
    box-shadow: 0 26px 60px -30px rgba(0,159,218,.42);
}
.sol-block h3 {
    font-family: var(--ap-font);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ap-ink);
    letter-spacing: var(--ls-snug);
    line-height: 1.25;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ap-line);
}
.sol-list { list-style: none; padding: 0; margin: 0; }
.sol-list li {
    position: relative;
    padding: 7px 0 7px 30px;
    font-family: var(--ap-font);
    font-size: .93rem;
    color: var(--ap-grey);
    line-height: 1.6;
}
.sol-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23009FDA' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
.sol-panel-cta {
    margin-top: 40px;
    text-align: center;
}

/* CTA FINALE */
.sez-sol-cta {
    background: #000;
    padding: clamp(80px, 11vw, 160px) 0;
    text-align: center;
}
.sez-sol-cta .sez-label { color: rgba(255,255,255,.52); }
.sez-sol-cta h2 {
    font-family: var(--ap-font);
    font-weight: 600;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 auto 18px;
    max-width: 900px;
}
.sez-sol-cta h2 span { color: var(--cyan); }
.sez-sol-cta p {
    font-family: var(--ap-font);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255,255,255,.62);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 620px;
}
.sol-cta-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--ap-ink);
    font-family: var(--ap-font);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 34px;
    border-radius: 980px;
    text-decoration: none;
    margin-top: 36px;
    transition: transform .15s;
}
.sol-cta-light:hover { color: var(--ap-ink); text-decoration: none; transform: translateY(-2px); }

@media (max-width: 1399px) {
    .hero-media { width: 48%; right: -6%; bottom: -6%; }
}
@media (max-width: 1199px) {
    .sol-slide { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 1199px) {
    .hero-media { width: 46%; right: -8%; bottom: -4%; }
    .hero-content { max-width: 520px; }
}
@media (max-width: 991px) {
    #soluzioni_new {
        min-height: auto;
        text-align: center;
        padding-bottom: 0;
    }
    .hero-content { max-width: 100%; }
    #soluzioni_new .hero-divider { margin-left: auto; margin-right: auto; }
    #soluzioni_new .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-cer-stats { justify-content: center; gap: 28px; }
    .hero-media {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;

        margin: 44px auto 0;
    }
    .sol-cards-row > div { display: block; }
}
@media (max-width: 767px) {
    #soluzioni_new {
        padding-top: clamp(104px, 24vw, 140px);
        padding-bottom: clamp(56px, 12vw, 80px);
    }
    #soluzioni_new::before { top: 44%; right: -34%; width: 124%; }
    #soluzioni_new h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .hero-media { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-cer-stats { gap: 26px 20px; margin-top: 36px; padding-top: 26px; }
    .hero-cer-stat { flex: 1 1 40%; }

    #greenland > a, #greenindustry > a, #greenbuilding > a { padding: 30px 26px; }
    #greenland, #greenindustry, #greenbuilding { border-radius: 20px; }

    .sol-tabs {
        width: 100%;
        justify-content: flex-start;
        border-radius: 18px;
    }
    .sol-tab { padding: 12px 22px; font-size: .9rem; }
    .sol-slider { margin-top: 36px; }
    .sol-slider-head { display: none; }
    .sol-track { gap: 14px; }
    .sol-slide { flex: 0 0 86%; }
    .sol-block { padding: 28px 24px; border-radius: 20px; }
    .sol-panel-cta .sol-cta { width: 100%; }
    .sol-cta-light { width: 100%; }
}
