/* ==========================================================================
   TiTiS.it — Infrastrutture IT
   Versione: 2.0 — Refactoring Giugno 2026
   Dipendenze: global.css (caricato prima)
   ========================================================================== */


/* ==========================================================================
   1. HERO INFRASTRUTTURE IT
   ========================================================================== */
.hero-it-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../assets/images/hero_it.jpg') center center / cover no-repeat;
    padding: 120px 0 80px 0;
    overflow: hidden;
}

.hero-it-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(19, 28, 38, 0.85) 0%, rgba(19, 28, 38, 0.4) 100%);
    z-index: 1;
}

.hero-it-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-it-content {
    max-width: 100%;
    color: var(--text-light);
}

@media (min-width: 1024px) {
    .hero-it-content {
        max-width: 75%;
    }
}

.hero-it-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Parola evidenziata in azzurro desaturato */
.hero-it-content h1 span.highlight-blue {
    color: #79BBE2;
}

.hero-it-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
}

.hero-it-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 576px) {
    .hero-it-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Bottone accento: override locale di padding/size */
.hero-it-actions .btn-accent {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Bottone outline ghost su sfondo scuro */
.hero-it-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--text-light);
    border-radius: var(--radius-btn);
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.hero-it-actions .btn-outline:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   2. SEZIONE JOURNEY / APPROCCIO STRATEGICO
   ========================================================================== */
.section-journey {
    background-color: var(--bg-primary);
    text-align: center;
}

.journey-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .journey-content-wrapper {
        max-width: 75%;
    }
}

.journey-content-wrapper h2 {
    color: var(--text-main);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.journey-content-wrapper p {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto;
}

.journey-content-wrapper .journey-lead {
    color: var(--text-main);
    font-size: clamp(1.15rem, 1.8vw, 1.25rem);
    font-weight: 500;
}


/* ==========================================================================
   3. SEZIONE FOCUS TECNICO (CORE CAPABILITIES)
   ========================================================================== */
.section-capabilities {
    background-color: var(--bg-primary);
    padding-bottom: var(--space-30);
}

/* Intestazione asimmetrica */
.capabilities-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-14, 56px);
}

@media (min-width: 1024px) {
    .capabilities-header {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-20);
    }
    .capabilities-header .header-right p {
        text-align: right;
    }
}

.capabilities-header .header-left h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-main);
}

.capabilities-header .header-right p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Griglia servizi */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.capabilities-column-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: 1fr 100px 1fr;
        gap: var(--space-4);
    }
}

/* Card capacità */
.cap-card {
    position: relative;
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    background-color: var(--bg-white);
    border: 1px solid #DCE4EC; 
    border-radius: var(--radius-card);
    padding: var(--space-8);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-base);
}

.cap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Codice seriale tecnico in alto a destra */
.card-serial {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    color: #CBD5E1; 
    letter-spacing: 0.5px;
}

/* Contenitore icona */
.card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background-color: var(--primary-alpha);
    color: var(--primary);
    border-radius: 10px;
    flex-shrink: 0;
}
.card-icon-wrapper svg { width: 24px; height: 24px; }

.card-text h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-2);
    color: var(--text-main);
}
.card-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Hub centrale — solo desktop */
.capabilities-hub {
    display: none;
}

@media (min-width: 1024px) {
    .capabilities-hub {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 100%;
    }

    .hub-center-circle {
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background-color: var(--primary-alpha);
        border: 1px dashed var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        position: relative;
        z-index: 2;
        box-shadow: 0 0 0 10px var(--bg-primary);
    }

    .hub-center-circle::before {
        content: '';
        position: absolute;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 1px solid rgba(0, 95, 152, 0.15);
        z-index: -1;
    }

    .hub-center-circle svg { width: 26px; height: 26px; }

    .hub-line-top {
        position: absolute;
        top: 25%;
        width: 24px;
        height: 14px;
        background-color: var(--border-color);
        border-radius: 20px;
    }
}


/* ==========================================================================
   4. SEZIONE IL NOSTRO PROCESSO (COME LAVORIAMO)
   ========================================================================== */
.section-process {
    display: block;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-white);
    padding-bottom: var(--space-30);
}

.process-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    margin-bottom: var(--space-24);
}

@media (min-width: 1024px) {
    .process-grid-layout {
        grid-template-columns: 1fr 1.1fr;
        gap: var(--space-20);
    }
}

.process-image-pane img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.process-text-pane h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-main);
    margin-bottom: var(--space-10);
}

/* Overline oro su sfondo bianco: usa var(--accent) dal global, no !important */
.process-text-pane .overline {
    color: var(--accent);
}

.process-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.step-item {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

/* Numerazione asimmetrica in oro Space Mono */
.step-index {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    padding-top: 2px;
    flex-shrink: 0;
    min-width: 40px;
}

.step-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-2);
    color: var(--text-main);
}
.step-body p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (min-width: 1200px) {
    .process-text-pane {
        max-width: 90%;
    }
}


/* ==========================================================================
   5. SEZIONE PROATTIVITÀ E VALORI B2B
   ========================================================================== */
.section-proactivity {
    display: block;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
    padding-bottom: var(--space-30);
}

@media (min-width: 1024px) {
    .section-proactivity .container {
        max-width: calc(var(--container-max) * 0.75);
        margin: 0 auto;
    }
}

.proactivity-header {
    margin-bottom: var(--space-16);
}

.proactivity-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-main);
    margin-bottom: var(--space-8);
}

.proactivity-intro-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.proactivity-intro-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.proactivity-cards-grid {
    margin-top: var(--space-5);
}

/* Card valori */
.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-base);
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--primary-alpha);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}
.value-icon-box svg { width: 28px; height: 28px; }

.value-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: var(--space-3);
}
.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================================================
   6. SEZIONE CTA CONTATTI
   ========================================================================== */
.section-cta-contacts {
    display: block;
    overflow: hidden;
    position: relative;
    background-color: #EEF4FF;
    padding: var(--space-24) 0;
}

.cta-contacts-inner {
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .cta-contacts-inner {
        max-width: 75%;
    }
}

/* Overline blu su sfondo azzurrino */
.cta-contacts-inner .overline {
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: var(--space-6);
}

.cta-contacts-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--text-main);
    margin-bottom: var(--space-6);
}

.cta-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto var(--space-10) auto;
}

.cta-action-wrapper {
    display: flex;
    justify-content: center;
}

/* Bottone con icona calendario — override locale di padding */
.btn-cta-calendar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.05rem;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
}
.btn-cta-calendar:hover {
    transform: translateY(-2px);
}

.icon-calendar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ==========================================================================
   7. COMPONENTE: <it-workstation>
      Sezione workstation su misura WinBlu Experience.
   ========================================================================== */
.itw-section {
    background-color: var(--bg-primary);
    padding-bottom: var(--space-20);
}

.itw-header {
    margin-bottom: var(--space-10);
}

.itw-header .overline {
    color: var(--accent);
    display: block;
    margin-bottom: var(--space-5);
}

.itw-header-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .itw-header-body {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-20);
        align-items: end;
    }
    .itw-header-right {
        text-align: right;
    }
}

.itw-header-left h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}
.itw-header-left h2 em {
    font-style: normal;
    color: var(--primary);
}

.itw-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.itw-partner-badge strong {
    font-weight: 500;
    color: var(--text-main);
}

.itw-partner-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.itw-header-right p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Label "Ecco alcuni esempi" */
.itw-examples-label {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-7, 28px);
}
.itw-examples-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.itw-examples-text {
    font-family: var(--font-titles);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
    padding: 5px 14px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: var(--primary);
}

/* Griglia card workstation */
.itw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

@media (max-width: 640px) {
    .itw-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.itw-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    cursor: pointer;
    position: relative;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
    outline: none;
}
.itw-card:hover     { border-color: var(--primary); transform: translateY(-2px); }
.itw-card.is-active { border-color: var(--primary); background: var(--primary-alpha); }

.itw-card-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* Badge tier colorati — valori intenzionali */
.badge-entry { background: #E2E8F0; color: var(--text-muted); }
.badge-pro   { background: var(--primary-alpha); color: var(--primary); border: 1px solid rgba(0, 95, 152, 0.2); }
.badge-top   { background: #FFF8E1; color: #856404; }

.itw-card-name {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.itw-card-sub {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.itw-card-check {
    position: absolute;
    top: 14px; right: 14px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition:
        opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.itw-card-check svg           { width: 10px; height: 10px; stroke: var(--text-light); }
.itw-card.is-active .itw-card-check { opacity: 1; transform: scale(1); }

/* Pannello specifiche */
.itw-panel {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: var(--bg-white);
    overflow: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.itw-panel-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-primary);
}

.itw-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.01em;
}
.itw-panel-title svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.itw-panel-ideal {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--primary);
    background: var(--primary-alpha);
    border: 1px solid rgba(0, 95, 152, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.itw-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.itw-spec-item {
    padding: 16px 24px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.itw-spec-item:last-child { border-right: none; }

.itw-spec-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.itw-spec-label svg { width: 12px; height: 12px; color: var(--primary); flex-shrink: 0; }

.itw-spec-value {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
    font-weight: 500;
}

.itw-panel-desc {
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    margin: 0;
}

@media (max-width: 768px) {
    .itw-panel-header  { padding: 16px 20px; }
    .itw-spec-item     { border-right: none; padding: 14px 20px; }
    .itw-panel-desc    { padding: 16px 20px; }
    .itw-examples-label { gap: 10px; }
}


/* ==========================================================================
   8. FAQ — Layout "card azzurrate" specifico di questa pagina
      Prefisso .it-faq-* per evitare conflitti col global.
   ========================================================================== */
.it-faq-section {
    padding: var(--space-16) 0 var(--space-30) 0;
}

.it-faq-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--space-16);
    align-items: start;
}

@media (min-width: 1024px) {
    .it-faq-container {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

.it-faq-header-block {
    position: sticky;
    top: 100px;
}

.it-faq-overline {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-muted);
    position: relative;
    padding-left: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.it-faq-overline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background-color: var(--accent-muted);
}

.it-faq-header-block h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-main);
    line-height: 1.15;
    margin: 0 0 var(--space-6) 0;
}

.it-faq-intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-8);
}

.it-faq-list-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.it-faq-item {
    background-color: var(--primary-alpha);
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: background-color var(--transition-base);
}
.it-faq-item[open] { background-color: rgba(0, 95, 152, 0.1); }

.it-faq-trigger {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.it-faq-trigger::-webkit-details-marker { display: none; }
.it-faq-trigger::marker { display: none; }

.it-faq-number {
    font-family: var(--font-titles);
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.it-faq-trigger h3 {
    font-family: var(--font-titles);
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.it-faq-icon {
    position: relative;
    width: 14px; height: 14px;
    display: block;
}
.it-faq-icon::before,
.it-faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-main);
    transition: transform 0.25s ease;
}
.it-faq-icon::before { top: 6px; left: 0; right: 0; height: 2px; }
.it-faq-icon::after  { left: 6px; top: 0; bottom: 0; width: 2px; }
.it-faq-item[open] .it-faq-icon::after { transform: rotate(90deg); opacity: 0; }

.it-faq-content {
    padding: 0 32px 28px calc(32px + 64px);
}
.it-faq-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1023px) {
    .it-faq-section       { padding: 40px 0 80px 0; }
    .it-faq-container     { grid-template-columns: 1fr; gap: var(--space-12); }
    .it-faq-header-block  { position: static; }
    .it-faq-trigger       { padding: 20px 24px; gap: 12px; }
    .it-faq-content       { padding: 0 24px 20px 24px; }
}

/* ==========================================================================
   X. BANNER WINBLU 
   ========================================================================== */
.section-banner-winblu {
    background-color: var(--bg-primary);
    padding-top: 0; 
    padding-bottom: 0; 
    margin-bottom: -20px; 
}

/* Manteniamo il dimezzamento dello spazio sopra (Focus Tecnico) */
.section-capabilities {
    padding-bottom: calc(var(--space-30) / 2) !important; 
}

.banner-winblu-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.banner-winblu-wrapper img {
    width: 100%;            
    max-width: 100%;        
    height: auto;           
    display: block;
    border-radius: var(--radius-card); 
    box-shadow: var(--shadow-md);      
}

/* ==========================================================================
   X. RESTYLING SEZIONE PROACTIVITÀ (UX/UI Refactoring)
   ========================================================================== */
.section-proactivity {
    background-color: var(--bg-primary);
    padding: var(--section-padding);
}

/* Header a due colonne sui desktop per una lettura fluida e meno "pesante" */
.proactivity-header-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.proactivity-overline {
    display: block;
    font-family: var(--font-titles);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.proactivity-title-side h2 {
    font-family: var(--font-titles);
    font-size: 2.25rem;
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    max-width: 500px;
}

.proactivity-desc-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.proactivity-desc-side p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.proactivity-desc-side p.lead-text {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Griglia delle nuove Card Premium */
.proactivity-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.premium-value-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Micro-indici in alto a destra per un look industrial/tech */
.card-tech-index {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-family: var(--font-titles);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Icon Box minimale e moderno */
.premium-value-card .value-icon-box {
    background-color: var(--primary-alpha);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.premium-value-card .value-icon-box svg {
    width: 26px;
    height: 26px;
}

.premium-value-card h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.premium-value-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Decoro geometrico invisibile che compare all'hover per dare dinamicità b2b */
.card-hover-border {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-smooth);
}

/* Interazioni all'hover */
.premium-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.premium-value-card:hover .card-hover-border {
    transform: scaleY(1);
}

.premium-value-card:hover .value-icon-box {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* Media Queries per la gestione Responsive Avanzata */
@media (min-width: 992px) {
    /* Trasforma l'header in 2 colonne affiancate perfettamente bilanciate */
    .proactivity-header-block {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-12);
    }
    
    .proactivity-title-side {
        flex: 1;
        position: sticky;
        top: 40px;
    }
    
    .proactivity-desc-side {
        flex: 1.4;
    }

    
    .proactivity-values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* ==========================================================================
   INFRASTRUTTURE - comparsa a cascata
   .premium-value-card e .it-faq-item ridichiarano 'transition' e azzererebbero
   il fade di .scroll-reveal: per questi due gruppi la comparsa passa ad
   'animation', cosi' il fade torna e hover/apertura restano immediati.
   ========================================================================== */

.proactivity-values-grid .scroll-reveal,
.it-faq-list-block .scroll-reveal,
.process-steps-list .scroll-reveal {
    opacity: 0;
    transform: none;
}

.proactivity-values-grid .scroll-reveal.active,
.it-faq-list-block .scroll-reveal.active,
.process-steps-list .scroll-reveal.active {
    opacity: 1;
    animation: itReveal 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) backwards;
    animation-delay: calc(var(--card-index, 0) * 0.08s);
}

@media (min-width: 992px) {
    .proactivity-values-grid .scroll-reveal.active,
    .it-faq-list-block .scroll-reveal.active,
    .process-steps-list .scroll-reveal.active {
        transition-delay: 0s;
    }
}

@keyframes itReveal {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .proactivity-values-grid .scroll-reveal,
    .it-faq-list-block .scroll-reveal,
    .process-steps-list .scroll-reveal {
        opacity: 1;
    }
    .proactivity-values-grid .scroll-reveal.active,
    .it-faq-list-block .scroll-reveal.active,
    .process-steps-list .scroll-reveal.active {
        animation: none;
    }
}


/* ==========================================================================
   INFRASTRUTTURE - allineamento design delle card
   ========================================================================== */

/* --- Card aree di intervento --- */
.cap-card {
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.cap-card:hover::before {
    transform: scaleX(1);
}

.cap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Tassello icona pieno, come nelle altre pagine */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--text-light);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.card-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.cap-card:hover .card-icon-wrapper {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- Card valori: la barra passa da sinistra verticale a superiore --- */
.card-hover-border {
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.premium-value-card:hover .card-hover-border {
    transform: scaleX(1);
}

.premium-value-card:hover {
    box-shadow: var(--shadow-xl);
}

.value-icon-box {
    width: 52px;
    height: 52px;
    background-color: var(--primary);
    color: var(--text-light);
    margin-bottom: var(--space-5);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.value-icon-box svg {
    width: 24px;
    height: 24px;
}

.premium-value-card:hover .value-icon-box {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- Passi del processo: il numero diventa un tassello circolare --- */
.step-index {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding-top: 0;
    border-radius: 50%;
    background-color: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.step-item:hover .step-index {
    background-color: var(--primary);
    color: var(--text-light);
}

/* --- Selettore workstation: l'opzione scelta si stacca meglio --- */
.itw-card.is-active {
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   PROCESSO - timeline collegata e trittico immagini
   ========================================================================== */

.process-header {
    max-width: 720px;
    margin: 0 auto var(--space-16) auto;
    text-align: center;
}

.process-header .overline {
    color: var(--accent);
}

.process-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-main);
    margin: var(--space-4) 0 0 0;
}

/* --- Timeline orizzontale --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-5);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-20) 0;
}

.process-timeline .step-item {
    display: block;
    position: relative;
    padding-top: 62px;
}

/* La linea che collega i nodi: e' questa a far leggere i passi come sequenza */
.process-timeline .step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 21px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background-color: var(--border-color);
}

.process-timeline .step-index {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Primo e ultimo nodo pieni: il rapporto inizia prima e non finisce dopo */
.process-timeline .step-item:first-child .step-index,
.process-timeline .step-item:last-child .step-index {
    background-color: var(--primary);
    color: var(--text-light);
}

.process-timeline .step-body {
    text-align: center;
}

.process-timeline .step-body h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 var(--space-2) 0;
}

.process-timeline .step-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Trittico immagini --- */
.process-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.process-shot {
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.process-shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.process-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.process-shot:hover img {
    transform: scale(1.07);
}

/* --- Comparsa a cascata (riusa il keyframe itReveal) --- */
.process-timeline .scroll-reveal,
.process-gallery .scroll-reveal {
    opacity: 0;
    transform: none;
}

.process-timeline .scroll-reveal.active,
.process-gallery .scroll-reveal.active {
    opacity: 1;
    animation: itReveal 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) backwards;
    animation-delay: calc(var(--card-index, 0) * 0.08s);
}

@media (min-width: 992px) {
    .process-timeline .scroll-reveal.active,
    .process-gallery .scroll-reveal.active {
        transition-delay: 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-timeline .scroll-reveal,
    .process-gallery .scroll-reveal {
        opacity: 1;
    }
    .process-timeline .scroll-reveal.active,
    .process-gallery .scroll-reveal.active {
        animation: none;
    }
    .process-shot img,
    .process-shot {
        transition: none;
    }
    .process-shot:hover img {
        transform: none;
    }
}

/* --- Sotto i 1024px la timeline diventa verticale, sempre collegata --- */
@media (max-width: 1023px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-timeline .step-item {
        display: flex;
        gap: var(--space-5);
        padding-top: 0;
        padding-bottom: var(--space-8);
    }

    .process-timeline .step-item:not(:last-child)::before {
        top: 48px;
        bottom: 0;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .process-timeline .step-index {
        position: static;
        transform: none;
    }

    .process-timeline .step-body {
        text-align: left;
    }

    .process-gallery {
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .process-gallery {
        grid-template-columns: 1fr;
    }
}
