/* ============================================================
   Case Study — Il Cantuccio 2.0
   Tutto scoped sotto .csc-cantuccio. Mobile-first.
   Palette e font riusano le variabili del tema (main.css).
   ============================================================ */

.csc-cantuccio {
    --csc-coral:   #ec6e5e;
    --csc-cream:   #fff9ee;
    --csc-dark:    #0f1f24;
    --csc-teal:    #005f73;
    --csc-muted:   #5a6a6e;
    --csc-line:    rgba(15, 31, 36, 0.10);
    --csc-card:    #f5f0e8;   /* beige caldo del tema, MAI bianco */

    background: var(--csc-cream);
    color: var(--csc-dark);
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
}

.csc-cantuccio *,
.csc-cantuccio *::before,
.csc-cantuccio *::after {
    box-sizing: border-box;
}

/* ── Wrapper / griglia ─────────────────────────────── */
.csc-wrap {
    width: 100%;
    max-width: 1400px;   /* larghezza unica del case study */
    margin: 0 auto;
    padding: 0 24px;
}
/* Variante mantenuta per retrocompatibilita': ora anch'essa a 1400 */
.csc-wrap--narrow {
    max-width: 1400px;
}

.csc-section {
    padding: 64px 0;
}
@media (min-width: 768px) {
    .csc-section { padding: 96px 0; }
}

.csc-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--csc-coral);
    margin-bottom: 18px;
}
.csc-section-tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--csc-coral);
}

.csc-section-title {
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.08;
    margin: 0 0 40px;
    color: var(--csc-dark);
}

/* ── 1. HERO ───────────────────────────────────────── */
.csc-hero {
    background: var(--csc-dark);
    color: var(--csc-cream);
    padding: 150px 0 72px;
    position: relative;
}
@media (min-width: 768px) {
    .csc-hero { padding: 190px 0 96px; }
}
.csc-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 249, 238, 0.7);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease;
}
.csc-back:hover { color: var(--csc-coral); }

.csc-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--csc-coral);
    margin-bottom: 22px;
}
.csc-hero-title {
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 9vw, 6rem);
    line-height: 0.98;
    margin: 0;
    color: var(--csc-cream);
}
.csc-hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: rgba(255, 249, 238, 0.7);
    margin: 16px 0 0;
    font-weight: 500;
}
.csc-hero-tagline {
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    line-height: 1.45;
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--csc-cream);
}

.csc-kpi-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 52px;
    background: rgba(255, 249, 238, 0.12);
    border: 1px solid rgba(255, 249, 238, 0.12);
    border-radius: 16px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .csc-kpi-hero { grid-template-columns: repeat(4, 1fr); }
}
.csc-kpi-hero-item {
    background: var(--csc-dark);
    padding: 28px 20px;
    text-align: center;
}
.csc-kpi-hero-num {
    display: block;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    line-height: 1;
    color: var(--csc-coral);
}
.csc-kpi-hero-label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 249, 238, 0.7);
}

/* ── 2. SFIDA ──────────────────────────────────────── */
.csc-prose p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--csc-muted);
    margin: 0 0 20px;
}
.csc-prose p:last-child { margin-bottom: 0; }

.csc-callout {
    margin-top: 36px;
    padding: 28px 30px;
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-left: 4px solid var(--csc-coral);
    border-radius: 12px;
}
.csc-callout strong {
    display: block;
    font-size: 1.05rem;
    color: var(--csc-dark);
    margin-bottom: 8px;
}
.csc-callout p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--csc-muted);
}

/* ── Obiettivi e KPI ───────────────────────────────── */
.csc-goals {
    margin-top: 44px;
}
.csc-goals-head {
    margin-bottom: 22px;
}
.csc-goals-intro {
    margin: 12px 0 0;
    max-width: 720px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--csc-muted);
}
.csc-goals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.csc-goal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 10px;
    overflow: hidden;
}
@media (min-width: 820px) {
    .csc-goal { grid-template-columns: 1.1fr 1fr 1.1fr; }
}
.csc-goal-cell {
    padding: 14px 18px;
    border-bottom: 1px solid var(--csc-line);
}
@media (min-width: 820px) {
    .csc-goal-cell {
        border-bottom: none;
        border-right: 1px solid var(--csc-line);
    }
}
.csc-goal-cell:last-child {
    border-bottom: none;
    border-right: none;
}
.csc-goal-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--csc-muted);
    margin-bottom: 5px;
}
.csc-goal-cell p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--csc-dark);
}
.csc-goal-res {
    background: rgba(0, 95, 115, 0.06);
}
.csc-goal-res .csc-goal-label {
    color: var(--csc-teal);
}
.csc-goal-res p {
    font-weight: 600;
}

/* ── 3. INTERVENTO ─────────────────────────────────── */
.csc-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .csc-steps { grid-template-columns: repeat(2, 1fr); }
}
.csc-step {
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 14px;
    padding: 28px;
}
.csc-step-num {
    display: inline-block;
    font-family: 'Antonio', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--csc-coral);
    margin-bottom: 10px;
}
.csc-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--csc-dark);
    line-height: 1.25;
}
.csc-step p {
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--csc-muted);
    margin: 0;
}

/* ── 4. RISULTATI / grafici ────────────────────────── */
.csc-chart-block {
    background: var(--csc-card);
    border: 1px solid var(--csc-line);
    border-radius: 16px;
    padding: 28px 22px;
    margin-bottom: 28px;
}
@media (min-width: 768px) {
    .csc-chart-block { padding: 36px 36px 32px; }
}
.csc-chart-head h3 {
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin: 0 0 6px;
    color: var(--csc-dark);
}
.csc-chart-head p {
    margin: 0 0 32px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--csc-muted);
}

/* Container altezza fissa: i grafici si ridimensionano in larghezza */
.csc-chart-canvas {
    position: relative;
    width: 100%;
    height: 320px;
}
.csc-chart-canvas--md { height: 300px; }
.csc-chart-canvas--sm { height: 280px; }
@media (max-width: 600px) {
    .csc-chart-canvas { height: 280px; }
    .csc-chart-canvas--sm { height: 260px; }
}

.csc-chart-note {
    margin: 18px 0 0;
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--csc-muted);
    font-style: italic;
}

.csc-reel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}
@media (min-width: 768px) {
    .csc-reel-layout { grid-template-columns: 1fr 320px; gap: 28px; align-items: stretch; }
}
.csc-reel-averages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .csc-reel-averages { grid-template-columns: 1fr; align-content: center; }
}
.csc-avg {
    background: var(--csc-cream);
    border: 1px solid var(--csc-line);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.csc-avg-label {
    font-size: 0.8rem;
    color: var(--csc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.csc-avg-val {
    font-family: 'Antonio', sans-serif;
    font-size: 1.5rem;
    color: var(--csc-dark);
}
.csc-avg-val strong { color: var(--csc-coral); font-weight: 600; }
.csc-avg-badge {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--csc-teal);
    background: rgba(0, 95, 115, 0.08);
    padding: 3px 10px;
    border-radius: 10px;
}

.csc-pub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .csc-pub-grid { grid-template-columns: 1fr 1.3fr; align-items: center; }
}

/* ── 5. NUMERI CHIAVE ──────────────────────────────── */
.csc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--csc-line);
    border: 1px solid var(--csc-line);
    border-radius: 16px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .csc-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
.csc-kpi {
    background: var(--csc-card);
    padding: 30px 18px;
    text-align: center;
}
.csc-kpi-num {
    display: block;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1;
    color: var(--csc-dark);
}
.csc-kpi-label {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--csc-muted);
}

/* ── 6. CONTENUTI MIGLIORI ─────────────────────────── */
.csc-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .csc-highlight-grid { grid-template-columns: repeat(3, 1fr); }
}
.csc-highlight {
    background: var(--csc-dark);
    color: var(--csc-cream);
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
}
.csc-highlight-rank {
    font-family: 'Antonio', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--csc-coral);
}
.csc-highlight h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 12px 0 14px;
    line-height: 1.3;
    color: var(--csc-cream);
}
.csc-highlight-metric {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--csc-dark);
    background: var(--csc-coral);
    padding: 5px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.csc-highlight p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 249, 238, 0.72);
}

/* ── 7. ALTRI PROGETTI ─────────────────────────────── */
.csc-cantuccio .csc-altri {
    background-color: #0f1f24;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='23' cy='47' r='1.5' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='87' cy='12' r='1' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='278' cy='61' r='2' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='340' cy='22' r='1' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='190' cy='112' r='1.5' fill='rgba(255,255,255,0.17)'/%3E%3Ccircle cx='315' cy='125' r='2' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='75' cy='220' r='1' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='290' cy='205' r='1' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='355' cy='240' r='1.5' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='345' cy='390' r='2' fill='rgba(255,255,255,0.18)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    padding: 100px max(5vw, calc((100% - 1400px) / 2));
}
.csc-cantuccio .csc-altri-header {
    margin-bottom: 48px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.csc-cantuccio .csc-altri-title {
    font-family: 'Antonio', sans-serif;
    font-size: clamp(52px, 7.5vw, 110px);
    font-weight: 700; text-transform: none;
    color: #fff9ee; line-height: 1; margin: 0; text-align: center;
}
.csc-cantuccio .csc-altri-title em { color: var(--csc-coral); font-style: normal; }
.csc-cantuccio .csc-altri-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) {
    .csc-cantuccio .csc-altri-grid { grid-template-columns: repeat(3, 1fr); }
}
.csc-cantuccio .csc-altri-card {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    display: block; text-decoration: none;
    background: rgba(0,30,45,0.5); border-radius: 10px;
}
.csc-cantuccio .csc-altri-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.csc-cantuccio .csc-altri-card:hover .csc-altri-img { transform: scale(1.06); }
.csc-cantuccio .csc-altri-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    z-index: 1; transition: background .3s;
}
.csc-cantuccio .csc-altri-card:hover .csc-altri-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
}
.csc-cantuccio .csc-altri-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 32px; z-index: 2;
}
.csc-cantuccio .csc-altri-cat {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,249,238,0.6); padding: 5px 14px;
    border: 1px solid rgba(255,249,238,0.25); border-radius: 10px; margin-bottom: 10px;
}
.csc-cantuccio .csc-altri-name {
    font-family: 'Antonio', sans-serif;
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 700; text-transform: uppercase;
    color: #fff9ee; line-height: 1.05; margin: 0 0 10px;
}
.csc-cantuccio .csc-altri-arrow {
    font-size: 13px; font-weight: 700; color: var(--csc-coral);
    display: inline-block; transition: transform .3s;
    letter-spacing: 2px; text-transform: uppercase;
}
.csc-cantuccio .csc-altri-card:hover .csc-altri-arrow { transform: translateX(6px); }

/* ── 8. CTA FINALE ─────────────────────────────────── */
.csc-cta-section {
    background: #fff9ee;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 100px max(5vw, calc((100% - 1400px) / 2));
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
@media (min-width: 900px) {
    .csc-cta-section { grid-template-columns: 1fr 480px; gap: 80px; }
}
.csc-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--csc-coral); margin-bottom: 20px;
}
.csc-eyebrow::before {
    content: ''; display: block; width: 32px; height: 1px;
    background: var(--csc-coral); flex-shrink: 0;
}
.csc-cta-title {
    font-family: 'Antonio', sans-serif;
    font-size: clamp(36px, 5vw, 80px);
    font-weight: 700; text-transform: uppercase;
    line-height: 1.05; color: #111; margin: 0 0 28px;
}
.csc-cta-title em { color: var(--csc-coral); font-style: normal; }
.csc-cta-steps { display: flex; flex-direction: column; gap: 24px; }
.csc-cta-step { display: flex; align-items: flex-start; gap: 18px; }
.csc-cta-step-num {
    font-family: 'Antonio', sans-serif; font-size: 13px; font-weight: 700;
    color: var(--csc-coral); letter-spacing: 1px; min-width: 24px; padding-top: 2px;
}
.csc-cta-step-body { display: flex; flex-direction: column; gap: 3px; }
.csc-cta-step-body strong { font-size: 15px; font-weight: 700; color: #111; }
.csc-cta-step-body span { font-size: 13px; color: rgba(0,0,0,0.5); line-height: 1.5; }

.csc-cta-card {
    border: 1.5px solid var(--csc-coral);
    border-radius: 10px; padding: 40px 36px 36px;
    display: flex; flex-direction: column; gap: 0;
}
.csc-cta-card-heading {
    font-family: 'Antonio', sans-serif; font-size: 18px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: #111; text-align: center; margin-bottom: 28px;
}
.csc-cta-row {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 18px; background: rgba(0,0,0,0.04);
    border-radius: 10px; margin-bottom: 10px;
    text-decoration: none; transition: background .2s;
}
.csc-cta-row:hover { background: rgba(0,0,0,0.08); }
.csc-cta-row-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.csc-cta-row-icon svg { width: 18px; height: 18px; stroke: rgba(0,0,0,0.55); fill: none; }
.csc-cta-row-text { display: flex; flex-direction: column; gap: 2px; }
.csc-cta-row-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #111; }
.csc-cta-row-value { font-size: 14px; color: rgba(0,0,0,0.45); }
.csc-cta-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; color: rgba(0,0,0,0.3);
    font-size: 12px; letter-spacing: 1px;
}
.csc-cta-divider::before,
.csc-cta-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.12);
}
.csc-cta-btn { width: 100%; justify-content: center; }

/* ── Animazione d'ingresso contatori (riveal soft) ──── */
@media (prefers-reduced-motion: no-preference) {
    .csc-cantuccio [data-csc-count] {
        transition: opacity 0.4s ease;
    }
}

/* ============================================================
   AGGIUNTE: media (immagini/video), galleria, citazione,
   card video dei contenuti migliori, misura di lettura prose
   ============================================================ */

/* Misura di lettura comoda dentro il container da 1400 */
.csc-prose { max-width: 820px; }

/* ── Media generico (immagine o video) ─────────────── */
.csc-media {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: var(--csc-card);
}
img.csc-media,
video.csc-media { object-fit: cover; }

.csc-ratio-16x9 { aspect-ratio: 16 / 9; }
.csc-ratio-4x3  { aspect-ratio: 4 / 3; }
.csc-ratio-9x16 { aspect-ratio: 9 / 16; }

/* Segnaposto sostituibile (in attesa del caricamento media) */
.csc-media-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background:
        repeating-linear-gradient(45deg, rgba(15,31,36,0.025) 0 12px, rgba(15,31,36,0.05) 12px 24px);
    border: 1px dashed rgba(15,31,36,0.22);
    color: var(--csc-muted);
    text-align: center;
}
.csc-media-ph .csc-ph-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0 16px;
}

/* ── Banda immagine sotto l'hero ───────────────────── */
.csc-media-band {
    padding: 0 0 0;
    margin-top: -40px;          /* sale leggermente sopra il taglio dell'hero */
    position: relative;
    z-index: 3;
}
@media (min-width: 768px) {
    .csc-media-band { margin-top: -64px; }
}
.csc-media-band .csc-media,
.csc-media-band .csc-media-ph {
    box-shadow: 0 20px 50px rgba(15,31,36,0.18);
}

/* ── Galleria ──────────────────────────────────────── */
.csc-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .csc-gallery { grid-template-columns: repeat(3, 1fr); }
}
.csc-gallery-item img {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}
.csc-gallery-item .csc-media,
.csc-gallery-item .csc-media-ph { border-radius: 14px; }

/* ── Citazione Mirko ───────────────────────────────── */
.csc-quote-section {
    background: var(--csc-dark);
    padding: 80px 0;
}
@media (min-width: 768px) {
    .csc-quote-section { padding: 110px 0; }
}
.csc-quote {
    margin: 0 auto;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 680px) {
    .csc-quote { grid-template-columns: 260px 1fr; gap: 56px; }
}
.csc-quote-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
}
.csc-quote-photo img {
    width: 100%;
    height: auto;
    display: block;
}
.csc-quote-body {
    position: relative;
    padding-top: 52px;
}
.csc-quote-body::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -16px;
    font-family: 'Antonio', sans-serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--csc-coral);
}
.csc-quote blockquote {
    margin: 0;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.15;
    color: var(--csc-cream);
}
.csc-quote figcaption {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.csc-quote-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--csc-coral);
}
.csc-quote-role {
    font-size: 0.95rem;
    color: rgba(255, 249, 238, 0.6);
}
@media (max-width: 560px) {
    .csc-quote { padding-left: 0; }
    .csc-quote::before { position: static; display: block; font-size: 4.5rem; margin-bottom: -10px; }
}

/* ── Card video dei contenuti migliori ─────────────── */
.csc-highlight {
    padding: 0;
    overflow: hidden;
}
.csc-highlight-media {
    position: relative;
    background: var(--csc-dark);
    aspect-ratio: 9 / 16;
    overflow: hidden;
}
.csc-highlight-media .csc-media,
.csc-highlight-media .csc-media-ph {
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.csc-highlight-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.csc-highlight-media .csc-media-ph {
    background:
        repeating-linear-gradient(45deg, rgba(255,249,238,0.04) 0 12px, rgba(255,249,238,0.07) 12px 24px);
    border: none;
    color: rgba(255,249,238,0.7);
}
.csc-highlight-rank {
    position: absolute;
    top: 14px;
    left: 16px;
    margin: 0;
    padding: 4px 12px;
    background: rgba(15,31,36,0.7);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.csc-highlight-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 20px 18px;
    background: #005f73;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transition: opacity 0.3s ease;
}
.csc-highlight-overlay h3 {
    margin: 0 0 8px;
    color: #fff9ee;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}
.csc-highlight-metric {
    margin-bottom: 5px;
}
.csc-highlight-overlay p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,249,238,0.75);
    line-height: 1.4;
}
.csc-highlight-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.csc-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #005f73;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff9ee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.3s;
}
.csc-play-btn:hover {
    background: rgba(236,110,94,0.8);
    transform: translate(-50%, -50%) scale(1.08);
}
.csc-play-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   FIX: engagement a due grafici, spaziatura risultati/numeri
   ============================================================ */

/* Reel + Follower affiancati */
.csc-chart-duo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
@media (min-width: 900px) {
    .csc-chart-duo-row { grid-template-columns: 1fr 1fr; }
}
.csc-chart-duo-row .csc-chart-block { margin: 0; }
@media (min-width: 900px) {
    .csc-chart-duo-row .csc-chart-head { min-height: 140px; }
}

/* Due grafici affiancati con scale separate (macro / micro) */
.csc-chart-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .csc-chart-duo { grid-template-columns: 1fr 1fr; }
}
.csc-chart-sub-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--csc-muted);
    margin-bottom: 10px;
}

/* Ultima card grafico senza margine inferiore + meno vuoto verso i Numeri */
.csc-chart-block:last-child { margin-bottom: 0; }
.csc-results { padding-top: 40px; padding-bottom: 40px; }
.csc-numbers { padding-top: 56px; }
@media (min-width: 768px) {
    .csc-results { padding-bottom: 48px; }
    .csc-numbers { padding-top: 64px; }
}

/* ── Sezione "L'intervento": fascia verde chiaro ───── */
.csc-intervention {
    background-color: #0f1f24;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='23' cy='47' r='1.5' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='87' cy='12' r='1' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='145' cy='78' r='1.5' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='210' cy='33' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='278' cy='61' r='2' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='340' cy='22' r='1' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='380' cy='90' r='1.5' fill='rgba(255,255,255,0.11)'/%3E%3Ccircle cx='55' cy='130' r='1' fill='rgba(255,255,255,0.14)'/%3E%3Ccircle cx='118' cy='155' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='190' cy='112' r='1.5' fill='rgba(255,255,255,0.17)'/%3E%3Ccircle cx='250' cy='140' r='1' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='315' cy='125' r='2' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='370' cy='148' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='10' cy='200' r='1.5' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='75' cy='220' r='1' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='160' cy='195' r='2' fill='rgba(255,255,255,0.11)'/%3E%3Ccircle cx='230' cy='230' r='1.5' fill='rgba(255,255,255,0.14)'/%3E%3Ccircle cx='290' cy='205' r='1' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='355' cy='240' r='1.5' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='40' cy='285' r='1' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='100' cy='310' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='175' cy='270' r='1.5' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='240' cy='300' r='1' fill='rgba(255,255,255,0.17)'/%3E%3Ccircle cx='305' cy='275' r='2' fill='rgba(255,255,255,0.11)'/%3E%3Ccircle cx='365' cy='320' r='1' fill='rgba(255,255,255,0.14)'/%3E%3Ccircle cx='20' cy='360' r='1.5' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='90' cy='385' r='1' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='155' cy='350' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='220' cy='375' r='1.5' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='285' cy='355' r='1' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='345' cy='390' r='2' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='395' cy='365' r='1' fill='rgba(255,255,255,0.11)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    padding: 100px max(5vw, calc((100% - 1400px) / 2));
    border-top: 1px solid rgba(255,249,238,0.08);
}
.csc-intervention .csc-section-tag { color: var(--csc-coral); }
.csc-intervention .csc-section-tag::before { background: var(--csc-coral); }
.csc-intervention .csc-section-title {
    color: #fff9ee;
    text-align: center;
    font-size: clamp(52px, 7.5vw, 110px);
}
.csc-intervention .csc-section-title em { color: var(--csc-coral); font-style: normal; }

/* Header centrato */
.csc-intervention-header {
    margin-bottom: 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Griglia 3 colonne (6 cards = 2 righe) */
.csc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,249,238,0.08);
    border: 1px solid rgba(255,249,238,0.08);
    border-radius: 10px;
    overflow: hidden;
}
@property --_csc-bd {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.csc-intervention .csc-step {
    background: #0f1f24;
    border-radius: 0;
    border: none;
    padding: 44px 36px;
    position: relative;
    transition: background .3s;
}
.csc-intervention .csc-step::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: conic-gradient(from -45deg, var(--csc-coral) var(--_csc-bd, 0deg), transparent var(--_csc-bd, 0deg));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    --_csc-bd: 0deg;
    transition: --_csc-bd 0s;
    pointer-events: none;
    z-index: 2;
}
.csc-intervention .csc-step:hover { background: rgba(255,249,238,0.06); }
.csc-intervention .csc-step:hover::before {
    --_csc-bd: 360deg;
    transition: --_csc-bd 0.55s ease;
}

.csc-intervention .csc-step-num {
    font-family: 'Antonio', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--csc-coral);
    margin-bottom: 24px;
}
.csc-intervention .csc-step h3 {
    font-family: 'Antonio', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff9ee;
    margin-bottom: 14px;
    line-height: 1.1;
}
.csc-intervention .csc-step p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,249,238,0.55);
    margin: 0;
}
@media (max-width: 900px) {
    .csc-steps { grid-template-columns: repeat(2, 1fr); }
    .csc-intervention { padding: 72px 6vw; }
}
@media (max-width: 600px) {
    .csc-steps { grid-template-columns: 1fr; }
    .csc-step { padding: 32px 24px; }
}

/* ── 2. LA SFIDA ───────────────────────────────────── */
.csc-challenge .csc-section-title {
    font-size: 110px;
    line-height: 1;
}
.csc-challenge .csc-section-title em {
    color: var(--csc-coral);
    font-style: normal;
}

.csc-challenge {
    background-color: #fff9ee;
    background-image:
        linear-gradient(to bottom, #fff9ee 0%, transparent 18%),
        linear-gradient(to top,    #fff9ee 0%, transparent 18%),
        linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size:
        100% 100%,
        100% 100%,
        130px 130px,
        130px 130px;
    position: relative;
    overflow: hidden;
}

/* Griglia testo + iPhone mockup */
.csc-challenge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
@media (min-width: 900px) {
    .csc-challenge-grid { grid-template-columns: 1fr 520px; gap: 80px; }
}
.csc-challenge-content { align-self: center; }
.csc-challenge-visual {
    align-self: start;
    display: flex;
    justify-content: center;
}
.csc-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.22);
    will-change: transform;
}
@media (max-width: 899px) { .csc-challenge-visual { display: none; } }

/* Callout pieno larghezza */
.csc-callout--wide { margin-top: 48px; }

/* Risultati: header centrato */
.csc-results-header {
    margin-bottom: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.csc-results-header .csc-section-title {
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 1;
    margin-bottom: 0;
}
.csc-results-header .csc-section-title em {
    color: var(--csc-coral);
    font-style: normal;
}

/* Galleria: header centrato identico a L'Intervento */
.csc-gallery-header {
    margin-bottom: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.csc-gallery-section .csc-section-title {
    font-size: clamp(28px, 5.5vw, 90px);
    line-height: 1;
    margin-bottom: 0;
    white-space: nowrap;
}
.csc-gallery-section .csc-section-title em {
    color: var(--csc-coral);
    font-style: normal;
}
.csc-highlights .csc-section-tag,
.csc-numbers .csc-section-tag {
    display: flex;
    justify-content: center;
}
.csc-highlights .csc-section-title,
.csc-numbers .csc-section-title {
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 1;
    margin-bottom: 40px;
    text-align: center;
}
.csc-highlights .csc-section-title em,
.csc-numbers .csc-section-title em { color: var(--csc-coral); font-style: normal; }

/* ============================================================
   MOBILE — caroselli scroll-snap + ridimensionamenti
   ============================================================ */

@media (max-width: 767px) {
    /* Pattern comune carosello orizzontale (swipe nativo) */
    .csc-steps,
    .csc-goals-list,
    .csc-highlight-grid,
    .csc-gallery,
    .csc-cantuccio .csc-altri-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 16px;
    }
    .csc-steps::-webkit-scrollbar,
    .csc-goals-list::-webkit-scrollbar,
    .csc-highlight-grid::-webkit-scrollbar,
    .csc-gallery::-webkit-scrollbar,
    .csc-cantuccio .csc-altri-grid::-webkit-scrollbar { display: none; }

    /* Larghezza slide con "peek" della successiva = invito allo swipe */
    .csc-steps > .csc-step,
    .csc-goals-list > .csc-goal,
    .csc-highlight-grid > .csc-highlight,
    .csc-gallery > .csc-gallery-item,
    .csc-cantuccio .csc-altri-grid > .csc-altri-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    /* Reel: padding overlay più compatto su mobile (altezza equalizzata via JS) */
    .csc-highlight-media .csc-highlight-overlay {
        padding: 22px 18px 18px;
        justify-content: flex-start;
    }

    /* Intervento: card singole arrotondate con bordo statico (niente hover su touch) */
    .csc-steps {
        grid-template-columns: none;
        background: none;
        border: none;
        border-radius: 0;
    }
    .csc-intervention .csc-step {
        border: 1px solid rgba(255, 249, 238, 0.16);
        border-radius: 10px;
    }
    .csc-intervention .csc-step::before { border-radius: 10px; }

    /* La Sfida: titolo non gigante e centrato su mobile */
    .csc-challenge .csc-section-title {
        font-size: clamp(40px, 13vw, 64px);
        text-align: center;
    }
    .csc-challenge .csc-challenge-content { text-align: center; }
    .csc-challenge .csc-section-tag { justify-content: center; }

    /* Citazione: foto a tutto div con sfumatura sotto la cit */
    .csc-quote {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
        min-height: 78vh;
        border-radius: 14px;
        overflow: hidden;
    }
    .csc-quote-photo {
        position: absolute;
        inset: 0;
        max-width: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .csc-quote-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .csc-quote-body {
        position: relative;
        z-index: 2;
        padding: 130px 24px 28px;
        background: linear-gradient(to top,
            rgba(15, 31, 36, 0.96) 0%,
            rgba(15, 31, 36, 0.82) 38%,
            rgba(15, 31, 36, 0) 100%);
    }
    .csc-quote-body::before { top: 44px; }

    /* Nav dots dei caroselli */
    .csc-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }
    .csc-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(120, 120, 120, 0.35);
        cursor: pointer;
        transition: background 0.25s, transform 0.25s, width 0.25s;
    }
    .csc-dots button.is-active {
        background: var(--csc-coral);
        width: 22px;
        border-radius: 5px;
    }
}

/* Dots nascosti da desktop in su */
@media (min-width: 768px) {
    .csc-dots { display: none !important; }
}