/* ============================================================
   Case Study OGT Solar
   Scoped sotto .cso, sopra la base .csc-* di case-cantuccio.css.
   Stesso impianto dei case study IWM: hero a tutta pagina, Antonio,
   crema #fff9ee, teal #005f73, corallo #ec6e5e. Mai bianco di pagina.
   ============================================================ */

.cso { --cso-ink: var(--csc-dark, #0f1f24); --cso-head: 84px; }
.csc-cantuccio.cso { overflow-x: clip; }

.cso .csc-section-title em { color: var(--csc-coral); font-style: normal; }
.cso .csc-prose a,
.cso .cso-more a { color: var(--csc-coral); text-underline-offset: 3px; }
.cso-file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ── 1. Hero (stesso impianto di Businest / Cantuccio) ── */
.cso .cs-hero {
    min-height: 100vh;
    min-height: 100svh;
    background: #005f73;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 5vw 70px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cso .cs-hero-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    display: block;
    z-index: 0 !important;
    pointer-events: none;
}
.cso .cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,95,115,0.5) 0%, rgba(0,95,115,0.72) 24%, rgba(0,95,115,0.96) 40%, #005f73 52%);
    z-index: 2;
    pointer-events: none;
}
.cso .cs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(236,110,94,0.08), transparent 55%);
    z-index: 1;
    pointer-events: none;
}
.cso .cs-hero-back {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,249,238,0.55); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    transition: color .2s; position: relative; z-index: 3;
}
.cso .cs-hero-back:hover,
.cso .cs-hero-back:focus-visible { color: #fff9ee; }
.cso .cs-hero-back svg { width: 13px; height: 13px; stroke: currentColor; fill: none; flex-shrink: 0; }
.cso .cs-hero-tags {
    position: relative; z-index: 3; display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 32px;
}
.cso .cs-hero-tag {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: #fff9ee; padding: 8px 22px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,249,238,0.35); border-radius: 10px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cso .cs-hero-tag-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,249,238,0.35); flex-shrink: 0; }
.cso .cs-hero-title {
    position: relative; z-index: 3; font-family: 'Antonio', sans-serif;
    font-size: clamp(52px, 11vw, 160px); font-weight: 700; line-height: 1;
    color: #fff9ee; margin: 0 0 40px; white-space: nowrap;
}
.cso .cs-hero-bottom {
    position: relative; z-index: 3; display: flex; align-items: flex-end;
    justify-content: space-between; gap: 40px;
    border-top: 1px solid rgba(255,249,238,0.15); padding-top: 32px; width: 100%;
}
.cso .cs-hero-headline {
    font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 400; line-height: 1.5;
    color: rgba(255,249,238,0.85); flex: 1; margin: 0;
}
.cso .cs-hero-headline em { color: #ec6e5e; font-style: normal; font-weight: 600; }
.cso .cs-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.cso .cs-hero-site-link {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: #fff9ee; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 26px; border: 1px solid rgba(255,249,238,0.35); border-radius: 10px;
    backdrop-filter: blur(8px); background: rgba(255,255,255,0.08);
    transition: background .2s, border-color .2s;
}
.cso .cs-hero-site-link:hover,
.cso .cs-hero-site-link:focus-visible { background: #ec6e5e; border-color: #ec6e5e; }
@media (max-width: 767px) {
    .cso .cs-hero { padding: 80px 6vw 56px; }
    .cso .cs-hero-title { white-space: normal; font-size: 72px; }
    .cso .cs-hero-bottom { flex-direction: column; align-items: flex-start; }
    .cso .cs-hero-headline { font-size: 18px; }
}

/* ── 2. La sfida ─────────────────────────────────────── */
.cso .csc-challenge .csc-section-tag {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.cso .csc-challenge .csc-section-title {
    font-size: clamp(40px, 9vw, 110px);
    line-height: 1.16;
    max-width: none;
    text-align: center;
}
.cso .csc-challenge .csc-section-title span,
.cso .csc-challenge .csc-section-title em {
    display: block;
}
@media (max-width: 767px) {
    .cso .csc-challenge .csc-section-title { font-size: clamp(40px, 13vw, 64px); }
}
.cso-challenge-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 56px;
    align-items: start;
    text-align: left;
}
.cso-challenge-grid .csc-prose { max-width: none; }
.cso-facts {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 899px) {
    .cso-challenge-grid { grid-template-columns: 1fr; gap: 36px; }
    .cso-facts { grid-template-columns: 1fr 1fr; }
}
.cso-facts li {
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 14px;
    padding: 22px 20px 18px;
    display: flex; flex-direction: column; gap: 8px;
}
.cso-facts strong {
    font-family: 'Antonio', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600; color: var(--csc-coral); line-height: 1;
}
.cso-facts span { color: var(--csc-muted); font-size: 0.92rem; line-height: 1.45; }

/* ── 3. Confronto ────────────────────────────────────── */
.cso-compare { position: relative; background: var(--csc-cream); color: var(--cso-ink); }
.cso-compare-head { text-align: center; padding: 72px 0 24px; }
.cso-compare-head .csc-section-tag {
    display: flex; width: fit-content; margin: 0 auto 14px; justify-content: center;
}
.cso-compare-head .csc-section-title {
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 1;
    text-align: center;
    margin: 0;
    color: var(--cso-ink);
}
.cso-compare .cso-hint { margin: 16px auto 0; color: var(--csc-muted); }
.cso-scroll { position: relative; height: 340vh; }
.cso-stage {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; align-items: stretch; justify-content: center;
    /* Il bordo basso arriva dove finisce il fumetto di Franco: 20px dal bordo, bottone 56px, gap 14px. */
    padding: var(--cso-head) 0 calc(20px + 56px + 14px);
    box-sizing: border-box;
}
.cso-stage-inner {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px;
    width: 100%; height: 100%; min-height: 0; flex: none;
}
.cso-hint { margin: 0 auto; font-size: 0.9rem; color: var(--csc-muted); max-width: 62ch; line-height: 1.5; }
.cso-prog { display: flex; align-items: center; align-self: center; gap: 10px; font-size: 13px; color: var(--csc-muted); font-variant-numeric: tabular-nums; flex: none; }
.cso-track { width: 120px; height: 4px; border-radius: 2px; background: var(--csc-line); overflow: hidden; }
.cso-track i { display: block; height: 100%; width: 100%; background: var(--csc-coral); transform-origin: 0 0; transform: scaleX(0); }

.cso-browser {
    flex: 1 1 auto; display: flex; flex-direction: column;
    height: auto; min-height: 0;
    border: 1px solid var(--csc-line); border-radius: 14px; overflow: hidden;
    background: var(--csc-card);
    box-shadow: 0 24px 60px -28px rgba(15, 31, 36, 0.35);
}
.cso-bar {
    height: 42px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px;
    border-bottom: 1px solid var(--csc-line); background: var(--csc-card); font-size: 12px; color: var(--csc-muted);
}
.cso-dots { display: flex; gap: 6px; }
.cso-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(15, 31, 36, 0.18); }

.cso-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--csc-cream); touch-action: pan-y; }
.cso-layer { position: absolute; inset: 0; overflow: hidden; }
.cso-layer--dopo { clip-path: inset(0 0 0 50%); }
.cso-page { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.cso-page picture, .cso-page img { display: block; width: 100%; height: auto; }

.cso-break {
    position: relative;
    height: 68vh;
    height: 68svh;
    min-height: 380px;
    background: #070707;
    overflow: hidden;
}
.cso-break-film {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 58%;
    pointer-events: none;
}

.cso-tag {
    position: absolute; top: 12px; z-index: 3; pointer-events: none;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 6px 10px; border-radius: 6px;
}
.cso-tag--prima { left: 12px; background: var(--cso-ink); color: var(--csc-cream); }
.cso-tag--dopo { right: 12px; background: var(--csc-coral); color: #fff9ee; }

.cso-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 48px; margin-left: -24px;
    z-index: 4; cursor: ew-resize; touch-action: none; outline: none;
}
.cso-handle::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
    background: #fff9ee; box-shadow: 0 0 0 1px rgba(15, 31, 36, 0.25), 0 0 16px rgba(15, 31, 36, 0.3);
}
.cso-knob {
    position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
    border-radius: 50%; background: #fff9ee; color: var(--cso-ink); display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(15, 31, 36, 0.35);
}
.cso-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cso-handle:focus-visible .cso-knob { outline: 3px solid var(--csc-coral); outline-offset: 3px; }

@media (max-width: 767px) {
    .cso { --cso-head: 92px; }
    .cso-browser { min-height: 180px; }
    .cso-bar { display: none; }
    .cso-scroll { height: 300vh; }
    .cso-compare-head .csc-section-title { font-size: clamp(40px, 13vw, 64px); }
    .cso-hint { display: none; }
    .cso-track { width: 64px; }
}

/* ── 5. Identità ─────────────────────────────────────── */
.cso-brand { background: var(--csc-cream); }
.cso-brand-head {
    text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 48px;
}
.cso-brand-head .csc-section-tag { justify-content: center; }
.cso-brand .csc-section-title {
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 1;
    text-align: center;
    margin-bottom: 0;
}
.cso-sub {
    font-family: 'Antonio', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 72px 0 22px; color: var(--cso-ink); line-height: 1;
}
.cso-note { font-size: 0.85rem; line-height: 1.55; color: var(--csc-muted); margin: 12px 0 0; }
.cso-more { margin: 40px 0 0; color: var(--csc-muted); }

.cso-logos { display: grid; gap: 32px; }
@media (min-width: 768px) { .cso-logos { grid-template-columns: 1fr 1fr; gap: 28px; } }
.cso-logo { margin: 0; background: var(--csc-card); border: 1px solid var(--csc-line); border-radius: 14px; padding: 22px; }
.cso-logo figcaption {
    font-family: 'Antonio', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--csc-coral); margin-bottom: 14px;
}
.cso-logo-light, .cso-logo-dark { display: grid; place-items: center; padding: 48px 32px; }
.cso-logo-light { background: #f3f5f6; border-radius: 10px 10px 0 0; }
.cso-logo-dark { background: #173a63; border-radius: 0 0 10px 10px; }
.cso-logo-light img, .cso-logo-dark img { width: min(100%, 340px); height: auto; }

.cso-small {
    display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
    margin-top: 28px; padding: 22px 28px;
    background: var(--csc-card); border: 1px solid var(--csc-line); border-radius: 14px;
}
.cso-small-label { font-size: 13px; color: var(--csc-muted); letter-spacing: .3px; }
.cso-small img { width: 120px; height: auto; }
.cso-brand-text { margin-top: 48px; }
.cso-two { display: grid; gap: 40px; }
@media (min-width: 992px) { .cso-two { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.cso-brand-text h3 {
    font-family: 'Antonio', sans-serif; font-size: 1.6rem; font-weight: 700;
    text-transform: uppercase; margin: 0 0 12px; color: var(--cso-ink); line-height: 1;
}

.cso-palettes { display: grid; gap: 40px; }
@media (min-width: 992px) { .cso-palettes { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cso-pal-title { font-weight: 600; margin: 0 0 14px; color: var(--cso-ink); }
.cso-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 12px; }
.cso-swatches i { display: block; height: 64px; border-radius: 8px; border: 1px solid rgba(15, 31, 36, 0.12); }
.cso-swatches code { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--cso-ink); background: none; padding: 0; }
.cso-swatches span { display: block; font-size: 12px; line-height: 1.35; color: var(--csc-muted); }

.cso-type { margin: 0; }
.cso-type img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--csc-line); }
.cso-apply { display: grid; gap: 24px; }
.cso-apply figure { margin: 0; background: var(--csc-card); border: 1px solid var(--csc-line); border-radius: 14px; padding: 16px; }
.cso-apply img { width: 100%; height: auto; border-radius: 8px; display: block; }
.cso-apply figcaption { font-size: 0.85rem; color: var(--csc-muted); margin-top: 10px; }
.cso-logo-80 { display: block; width: min(100%, 280px); height: auto; margin-top: 16px; }

/* ── 6. Risultati ────────────────────────────────────── */
.cso .csc-results { background: #0f1f24; color: #fff9ee; padding-bottom: 72px; }
.cso .csc-results .csc-section-title { color: #fff9ee; }
.cso .csc-results .cso-sub { color: #fff9ee; }
.cso .csc-results .cso-note,
.cso .csc-results .cso-more { color: rgba(255,249,238,0.66); }
.cso .csc-results .cso-psi-col,
.cso .csc-results .cso-table-wrap,
.cso .csc-results .csc-callout { background: #fff9ee; }
.cso-results-intro {
    max-width: 68ch; margin: 28px auto 40px; text-align: center;
    color: rgba(255,249,238,0.72); line-height: 1.7;
}
.cso-psi { display: grid; gap: 20px; }
@media (min-width: 992px) { .cso-psi { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cso-psi-col {
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 16px;
    padding: 28px 26px 12px;
}
.cso-psi-col h3 {
    font-family: 'Antonio', sans-serif; font-size: 1.7rem; font-weight: 700;
    text-transform: uppercase; margin: 0 0 18px; color: var(--cso-ink);
}
.cso-scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cso-scores strong {
    display: block; font-family: 'Antonio', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--csc-teal);
}
.cso-scores span {
    display: block; margin-top: 6px; font-size: 11px; line-height: 1.3;
    letter-spacing: .4px; text-transform: uppercase; color: var(--csc-muted);
}
.cso-agentic {
    margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--csc-line);
    font-size: 0.92rem; color: var(--csc-muted);
}
.cso-agentic strong { color: var(--csc-teal); font-weight: 700; }
.cso-metrics { margin: 8px 0 0; }
.cso-metrics div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--csc-line); }
.cso-metrics dt { font-weight: 600; color: var(--cso-ink); }
.cso-metrics dd { margin: 0; font-family: 'Antonio', sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--csc-teal); }
.cso-metrics small {
    font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; margin-left: 10px;
    letter-spacing: .4px; text-transform: uppercase; color: var(--csc-teal);
}
.cso-table-wrap {
    color: var(--cso-ink);
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 16px;
    padding: 8px 28px 16px;
}
.cso-table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.cso-table th, .cso-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--csc-line); vertical-align: baseline; }
.cso-table tr:last-child th, .cso-table tr:last-child td { border-bottom: 0; }
.cso-table thead th { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--csc-muted); font-weight: 700; }
.cso-table tbody th,
.cso-table td { font-weight: 600; color: var(--cso-ink); }
.cso-table td:last-child { color: var(--csc-teal); }
@media (max-width: 575px) {
    .cso-scores { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .cso-table-wrap { padding: 8px 16px 12px; }
    .cso-table { font-size: 0.875rem; }
}

/* ── 7. Numeri chiave ────────────────────────────────── */
.cso .csc-numbers {
    background: #fff9ee;
    padding-bottom: 80px;
}
.cso .csc-numbers .csc-section-title,
.cso .csc-intervention .csc-section-title,
.cso .csc-results-header .csc-section-title,
.cso .csc-altri-title {
    line-height: 1;
    text-align: center;
}
.cso .csc-numbers .csc-section-title { color: var(--cso-ink); }
.cso .csc-cta-title { text-align: center; line-height: 1; }
.cso .csc-cta-left .csc-eyebrow { width: 100%; justify-content: center; }
.cso .csc-numbers .csc-kpi { background: var(--csc-card); }
.cso .csc-numbers .csc-kpi-num { color: var(--csc-coral); }
.cso .csc-numbers .csc-kpi-label { color: var(--csc-muted); }

/* ── FAQ: crema, come Businest ───────────────────────── */
.cso .csc-faq-section { background: #fff9ee !important; }
.cso .csc-faq-section .iwm-h2,
.cso .csc-faq-section .csc-faq-kicker { text-align: center !important; }
.cso .csc-faq-section .iwm-h2 { color: #0f1f24; }
.cso .csc-faq-section .smm-faq { border-top: none; padding-top: 0; max-width: 720px; margin-left: auto; margin-right: auto; }
.cso .csc-faq-kicker {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: #ec6e5e; margin: 0 0 24px;
}
.cso .csc-faq-kicker::before { content: ''; display: block; width: 32px; height: 1px; background: #ec6e5e; flex-shrink: 0; }
.cso .csc-faq-section .smm-faq-item { border-bottom-color: rgba(15, 31, 36, .12); }
.cso .csc-faq-section .smm-faq-item summary { color: #0f1f24 !important; }
.cso .csc-faq-section .smm-faq-item p { color: rgba(15, 31, 36, .72) !important; }
.cso .csc-faq-section .smm-faq-item p a { color: #ec6e5e; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .cso-page { will-change: auto; }
    .cso-browser { box-shadow: none; }
}

.cso-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
