/* 
 * Tecnologie Page Styles 
 * Theme: Synergy Advanced Aesthetics
 */

/* ==========================================================================
   Base & Variables
   ========================================================================== */
.page-tecnologie {
    --tech-silver: #c9c9c9;
    --tech-platinum: #d7d8da;
    --tech-champagne: #e6d7bd;
    --tech-charcoal: #202020;
    --tech-ivory: #f7f3ec;
    --tech-pearl: #ece9e2;
    --tech-white: #ffffff;
    --tech-glow: rgba(230, 215, 189, 0.15); /* champagne glow */
    --tech-glow-silver: rgba(201, 201, 201, 0.15);
}

.bg-charcoal {
    background-color: var(--tech-charcoal);
}

.bg-ivory {
    background-color: var(--tech-ivory);
}

.bg-pearl {
    background-color: var(--tech-pearl);
}

.bg-white {
    background-color: var(--tech-white);
}

.page-tecnologie .section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .page-tecnologie .section {
        padding: 60px 0;
    }
}

.page-tecnologie .silver-text {
    color: var(--tech-silver);
}

.page-tecnologie .h2-silver-glow {
    text-shadow: 0 0 30px var(--tech-glow-silver);
}

/* ==========================================================================
   1. Hero Tecnologie
   ========================================================================== */
.tecnologie-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--tech-pearl) 0%, var(--tech-ivory) 100%);
    padding-top: calc(100px + var(--synergy-header-h, 100px)); /* account for sticky header */
}

.tecnologie-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--tech-white) 0%, transparent 60%);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin: 20px 0;
    color: var(--tech-charcoal);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-silver {
    border: 1px solid var(--tech-silver);
    color: var(--tech-charcoal);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-silver:hover {
    background: var(--tech-silver);
    color: var(--tech-white);
}

/* Tech Visual (HTML/CSS) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-visual-container {
    position: relative;
    width: 300px;
    height: 300px;
}

/* Hero con foto (immagine in evidenza della pagina) */
.hero-visual--photo {
    height: auto;
}

.tech-hero-photo-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8e4df;
    background: var(--tech-pearl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.tech-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 201, 201, 0.4); /* silver */
}

.orb-large {
    width: 300px;
    height: 300px;
    animation: rotateSlow 40s linear infinite;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.orb-medium {
    width: 200px;
    height: 200px;
    border-style: dashed;
    animation: rotateSlowReverse 30s linear infinite;
}

.orb-small {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--tech-white) 0%, transparent 70%);
    box-shadow: 0 0 40px var(--tech-glow-silver);
}

.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--tech-platinum);
    filter: blur(50px);
    opacity: 0.3;
}

.tech-nodes .node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--tech-champagne);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tech-champagne);
}

.n1 { top: 10%; left: 20%; animation: pulse 3s infinite; }
.n2 { top: 80%; left: 80%; animation: pulse 4s infinite 1s; }
.n3 { top: 50%; left: 90%; animation: pulse 2.5s infinite 0.5s; }
.n4 { top: 90%; left: 30%; animation: pulse 3.5s infinite 2s; }
.n5 { top: 20%; left: 70%; animation: pulse 3s infinite 1.5s; }

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.tech-svg-line {
    stroke: var(--tech-platinum);
    stroke-width: 1;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 6s ease-in-out infinite alternate;
}

.tech-svg-line.delay {
    animation-delay: 2s;
}

@keyframes rotateSlow { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rotateSlowReverse { 0% { transform: translate(-50%, -50%) rotate(360deg); } 100% { transform: translate(-50%, -50%) rotate(0deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes drawLine { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }

@media (max-width: 991px) {
    .tecnologie-hero { 
        padding-top: 160px !important; 
        padding-bottom: 60px !important;
    }
    .hero-split { 
        flex-direction: column; 
        text-align: center;
    }
    .hero-actions { justify-content: center; }
    .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
    .hero-visual { 
        display: none !important;
    }
}

/* ==========================================================================
   2. Intro Metodo
   ========================================================================== */
.tecnologie-intro {
    background: var(--tech-ivory);
}

.intro-desc {
    max-width: 800px;
    margin: 20px auto 50px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.intro-keypoints {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.kp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.kp-icon {
    font-size: 2.5rem;
    color: var(--tech-silver);
    font-weight: 300;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.kp-item h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.kp-line {
    width: 60px;
    height: 1px;
    background: var(--tech-platinum);
}

@media (max-width: 768px) {
    .intro-keypoints { flex-direction: column; gap: 40px; }
    .kp-line { width: 1px; height: 40px; }
}

/* ==========================================================================
   3. Technology Lab Redesign
   ========================================================================== */
.tecnologie-lab {
    overflow: hidden;
    position: relative;
    height: 900px;
    display: flex;
    align-items: center;
    
    /* Palette Variables */
    --synergy-lab-bg: #18191a;
    --synergy-lab-bg-soft: #202224;
    --synergy-silver: #c9ced6;
    --synergy-platinum: #dce0e6;
    --synergy-champagne: #e6d7bd;
    --synergy-charcoal: #111214;
    --synergy-white-soft: #f7f5f0;
    --synergy-muted: #9ca3af;
}

.lab-dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lab-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--synergy-lab-bg-soft) 0%, var(--synergy-charcoal) 70%);
}

.lab-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Particelle gestite via pseudo-elementi per semplicità css-only, o js leggero */
    background-image: 
        radial-gradient(var(--synergy-platinum) 1px, transparent 1px),
        radial-gradient(var(--synergy-silver) 1px, transparent 1px);
    background-size: 150px 150px, 120px 120px;
    background-position: 0 0, 60px 60px;
    opacity: 0.15;
    animation: particlesMove 30s linear infinite;
}

.lab-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.01),
        rgba(255, 255, 255, 0.01) 1px,
        transparent 1px,
        transparent 10px
    );
    opacity: 0.3;
}

/* Header Lab */
.tecnologie-lab .container {
    position: relative;
    z-index: 10;
}

.lab-header {
    margin-bottom: 60px;
}
.lab-title-glow {
    background: linear-gradient(135deg, var(--synergy-platinum), var(--synergy-silver), var(--synergy-champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout 3 Colonne */
.lab-interactive {
    position: relative;
    z-index: 10;
}

.lab-layout-3col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1420px;
    margin: 0 auto;
}

.lab-col-left {
    flex: 0 0 300px;
}

.lab-col-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lab-col-right {
    flex: 0 0 350px;
}

/* Categorie (Sinistra) */
.lab-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-cat-btn {
    background: transparent;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    text-align: left;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.lab-cat-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--synergy-champagne);
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px var(--synergy-champagne);
}

.cat-name {
    color: var(--synergy-silver);
    font-size: 1.25rem;
    font-family: var(--font-serif);
    font-weight: 300;
    transition: color 0.3s;
    margin-bottom: 4px;
}

.cat-micro {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    transition: color 0.3s;
}

.lab-cat-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(5px);
}
.lab-cat-btn:hover .cat-name { color: var(--synergy-platinum); }

.lab-cat-btn.active {
    background: linear-gradient(90deg, rgba(32, 34, 36, 0.8) 0%, rgba(24, 25, 26, 0) 100%);
    border-left-color: var(--synergy-champagne);
    transform: translateX(10px);
}
.lab-cat-btn.active .cat-name { color: var(--synergy-white-soft); }
.lab-cat-btn.active .cat-micro { color: var(--synergy-silver); }
.lab-cat-btn.active::before { opacity: 1; }

/* Nucleo Centrale */
.lab-core-circle {
    width: 440px;
    height: 440px;
    min-width: 440px;
    min-height: 440px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lab-svg-orbits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orbit-line {
    fill: none;
    stroke: rgba(201, 206, 214, 0.15); /* silver alpha */
    stroke-width: 1;
    stroke-dasharray: 4 8;
    transform-origin: center;
}
.o1 { animation: spinRotate 40s linear infinite; }
.o2 { animation: spinRotateReverse 35s linear infinite; stroke-dasharray: 2 6; }
.o3 { animation: spinRotate 25s linear infinite; stroke-dasharray: none; stroke: rgba(230, 215, 189, 0.2); }

.orbit-dot {
    fill: var(--synergy-platinum);
    filter: drop-shadow(0 0 4px var(--synergy-platinum));
    transform-origin: center;
}
.d1 { animation: spinRotate 40s linear infinite; }
.d2 { animation: spinRotateReverse 35s linear infinite; fill: var(--synergy-champagne); }
.d3 { animation: spinRotate 25s linear infinite; }

.lab-core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--synergy-champagne);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.5s ease;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Chips in the Center */
.lab-chips-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 12px;
    width: 85%;
    height: 85%;
}

.tech-chip {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--synergy-white-soft);
    font-size: 0.95rem;
    font-weight: 400;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0; /* for stagger anim */
    transform: translateY(15px);
}

.tech-chip::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--synergy-platinum);
    box-shadow: 0 0 5px var(--synergy-platinum);
}

.tech-chip:hover {
    border-color: var(--synergy-champagne);
    background: rgba(230, 215, 189, 0.08);
    transform: translateY(-2px) !important; /* override stagger */
}

/* Stagger Animation Class */
.chip-enter {
    animation: chipFadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Pannello Destra */
.lab-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 30px;
    backdrop-filter: blur(10px);
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
}

.lab-panel-content {
    animation: fadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.panel-area {
    display: inline-block;
    color: var(--synergy-champagne);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#lab-panel-title {
    font-size: 1.8rem;
    color: var(--synergy-white-soft);
    margin-bottom: 15px;
    font-family: var(--font-serif);
    font-weight: 300;
}

#lab-panel-desc {
    color: var(--synergy-platinum);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.panel-list-wrapper h4 {
    font-size: 0.85rem;
    color: var(--synergy-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

#lab-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

#lab-panel-list li {
    position: relative;
    padding-left: 20px;
    color: var(--synergy-white-soft);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

#lab-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--synergy-champagne);
}

.panel-cta {
    margin-top: auto;
}

.panel-cta .btn {
    width: 100%;
}

/* Mobile Select Stilizzato */
.lab-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
}
.lab-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    background: var(--synergy-charcoal);
    border: 1px solid var(--synergy-silver);
    color: var(--synergy-white-soft);
    border-radius: 14px;
    appearance: none;
    outline: none;
    cursor: pointer;
}
.lab-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--synergy-silver);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Animazioni */
@keyframes spinRotate { 100% { transform: rotate(360deg); } }
@keyframes spinRotateReverse { 100% { transform: rotate(-360deg); } }
@keyframes particlesMove { 100% { background-position: 150px 150px, -60px 180px; } }
@keyframes pulseGlow { 0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); } }
@keyframes chipFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .lab-particles, .orbit-line, .orbit-dot, .lab-core-glow { animation: none !important; }
}

/* Responsive Technology Lab */
@media (max-width: 1024px) {
    /* Il lab ha 45px di padding ma l'header fisso scrolled è alto 80px:
       questo offset mantiene visibile l'inizio della sezione dall'ancora. */
    #lab {
        scroll-margin-top: 56px;
    }

    .tecnologie-lab { height: auto !important; min-height: auto !important; padding: 45px 0 !important; }
    .lab-header { margin-bottom: 20px !important; }
    .lab-header p { margin-bottom: 0 !important; }
    .lab-layout-3col { 
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important; 
        height: auto !important;
        min-height: auto !important;
    }
    .lab-col-left { 
        display: block !important; 
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        flex: none !important;
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .lab-categories {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-content: center !important;
        align-items: center !important;
        height: auto !important;
        min-height: auto !important;
        gap: 10px 12px !important;
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .lab-cat-btn {
        flex: 0 0 auto !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: 1.2 !important;
        border-radius: 30px !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        background: rgba(255,255,255,0.06) !important;
        white-space: nowrap !important;
        text-align: center !important;
        transform: none !important;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    }
    .lab-cat-btn::before { display: none !important; }
    .lab-cat-btn .cat-name {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: rgba(255,255,255,0.85);
    }
    .lab-cat-btn .cat-micro {
        display: none !important;
    }
    .lab-cat-btn.active {
        background: #ffffff !important;
        border-color: #ffffff !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(255,255,255,0.2) !important;
    }
    .lab-cat-btn.active .cat-name {
        color: #111214 !important;
        font-weight: 500 !important;
    }

    .lab-col-center {
        order: 2 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        flex: none !important;
    }
    .lab-core-circle { 
        width: min(320px, 100%) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1;
        flex: 0 1 auto !important;
        margin: 0 auto !important; 
    }

    .lab-col-right { 
        order: 3 !important;
        width: 100% !important; 
        max-width: 100% !important; 
        height: auto !important;
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .lab-core-circle {
        width: min(290px, 100%) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1;
    }
    .lab-chips-container { gap: 6px; }
    .tech-chip { padding: 5px 12px; font-size: 0.8rem; }
    .lab-panel { padding: 25px 20px; }
}

/* ==========================================================================
   4. Filtri e Griglia Dinamica
   ========================================================================== */
.tech-filters-wrapper {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 50;
}

.tech-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-filter {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--tech-silver);
    background: transparent;
    color: var(--tech-charcoal);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-filter:hover {
    background: var(--tech-pearl);
}

.tech-filter.is-active {
    background: var(--tech-charcoal);
    color: white;
    border-color: var(--tech-charcoal);
}

@media (max-width: 768px) {
    .tech-filters-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tech-filters-wrapper::-webkit-scrollbar { display: none; }
    .tech-filters {
        flex-wrap: nowrap;
        padding: 0 20px;
    }
    .tech-filter { white-space: nowrap; }
}

/* Griglia */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--tech-pearl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-color: var(--tech-platinum);
}

.tech-card.is-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    display: none;
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.tech-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--tech-silver);
    font-weight: 300;
}

.tech-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: var(--tech-pearl);
    color: var(--tech-charcoal);
    border-radius: 20px;
}

.tech-card-body {
    flex: 1;
}

.tech-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--tech-champagne);
}

.tech-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.tech-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tech-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--tech-pearl);
}

.tech-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tech-charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.tech-link svg {
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-link {
    color: var(--synergy-gold, #c39d63);
}

.tech-card:hover .tech-link svg {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .tech-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. Come Scegliamo (Timeline)
   ========================================================================== */
.tech-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--tech-platinum);
    z-index: 1;
}

.timeline-item {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
}

.t-num {
    width: 60px;
    height: 60px;
    background: white;
    border: 1px solid var(--tech-platinum);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--tech-charcoal);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 768px) {
    .tecnologie-process {
        padding: 72px 0;
    }
    .tecnologie-process .section-header h2 {
        font-size: 34px;
        line-height: 1.12;
        padding: 0 22px;
        margin-bottom: 40px;
    }
    .tech-timeline {
        flex-direction: column;
        gap: 28px;
        max-width: 520px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .tech-timeline::before {
        top: 32px;
        left: 52px; /* 20px padding + 32px center of 64px circle */
        width: 1px;
        height: calc(100% - 64px);
        background: rgba(201, 206, 214, 0.45);
        opacity: 1;
    }
    .timeline-item {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 18px;
        align-items: start;
        text-align: left;
        padding: 0;
    }
    .t-num {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 22px;
        border: 1px solid rgba(201, 206, 214, 0.4);
        background: rgba(255, 255, 255, 0.8);
        margin: 0;
        flex: unset;
    }
    .timeline-content {
        padding-top: 4px;
    }
    .timeline-item h4 {
        display: block;
        font-family: var(--font-serif);
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 8px;
        color: var(--tech-charcoal);
    }
    .timeline-item p {
        display: block;
        font-size: 16px;
        line-height: 1.55;
        color: #666;
        margin: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .tecnologie-process .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .timeline-item {
        grid-template-columns: 54px 1fr;
        gap: 14px;
    }
    .t-num {
        width: 54px;
        height: 54px;
        min-width: 54px;
        font-size: 18px;
    }
    .tech-timeline::before {
        left: 47px; /* 20px padding + 27px center of 54px circle */
    }
}

/* ==========================================================================
   6. Tecnologia + Persona
   ========================================================================== */
.emotive-cards-stack {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.e-card {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--tech-platinum);
    transform: translateX(0);
    transition: transform 0.4s ease;
}

.e-card svg {
    color: var(--tech-silver);
}

.e-card h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.ec-1 { width: 80%; margin-left: 0; z-index: 3; }
.ec-2 { width: 85%; margin-left: 10%; z-index: 2; }
.ec-3 { width: 90%; margin-left: 5%; z-index: 1; }

.emotive-cards-stack:hover .e-card {
    transform: translateX(10px);
}

@media (max-width: 991px) {
    .emotive-cards-stack { height: auto; align-items: center; }
    .e-card { width: 100% !important; margin: 0 !important; }
}

/* ==========================================================================
   7. CTA Finale
   ========================================================================== */
.tecnologie-cta {
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
