/* ============================================================
   SERVICES PAGES — leonardopedron.it
   Estende il design system di styles.css (stessi token CSS).
   Copre: hub servizi + 5 pagine di dettaglio.
   ============================================================ */

/* ---------- Icone FontAwesome mancanti in fa-icons.css ---------- */
.fa-laptop::before { content: "\f109"; }
.fa-wrench::before { content: "\f0ad"; }
.fa-arrow-down::before { content: "\f063"; }
.fa-question-circle::before { content: "\f059"; }
.fa-check::before { content: "\f00c"; }
.fa-chart-line::before { content: "\f201"; }
.fa-bug::before { content: "\f188"; }
.fa-book::before { content: "\f02d"; }
.fa-diagram-project::before { content: "\f542"; }
.fa-download::before { content: "\f019"; }
.fa-expand::before { content: "\f065"; }
.fa-eye::before { content: "\f06e"; }
.fa-file-alt::before { content: "\f15c"; }
.fa-headset::before { content: "\f590"; }
.fa-heartbeat::before { content: "\f21e"; }
.fa-key::before { content: "\f084"; }
.fa-lock::before { content: "\f023"; }
.fa-magnifying-glass::before { content: "\f002"; }
.fa-memory::before { content: "\f538"; }
.fa-palette::before { content: "\f53f"; }
.fa-redo::before { content: "\f01e"; }
.fa-save::before { content: "\f0c7"; }
.fa-sitemap::before { content: "\f0e8"; }
.fa-sync-alt::before { content: "\f2f1"; }
.fa-arrows-alt-h::before { content: "\f337"; }

/* ---------- Keyframes ---------- */
@keyframes svcFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes svcAurora {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
    33% { transform: translate(40px, -30px) scale(1.15); opacity: .8; }
    66% { transform: translate(-30px, 25px) scale(.95); opacity: .6; }
}
@keyframes svcShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes svcPulseGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(14, 165, 233, .35); }
    50% { box-shadow: 0 0 34px rgba(14, 165, 233, .65), 0 0 60px rgba(139, 92, 246, .25); }
}
@keyframes svcBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* ============================================================
   HERO (hub: .services-hero — dettaglio: .service-hero)
   ============================================================ */
.services-hero,
.service-hero {
    position: relative;
    overflow: hidden !important;
    padding: 11rem 0 6rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(14, 165, 233, .18), transparent 70%),
        var(--bg-color);
}
.service-hero { padding: 10rem 0 5rem; }

/* Orbe luminose animate */
.services-hero::before,
.service-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -140px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .22), transparent 65%);
    filter: blur(50px);
    animation: svcAurora 14s ease-in-out infinite;
    pointer-events: none;
}
.services-hero::after,
.service-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .20), transparent 65%);
    filter: blur(55px);
    animation: svcAurora 18s ease-in-out infinite reverse;
    pointer-events: none;
}
.services-hero .container,
.service-hero .container { position: relative; z-index: 2; }

/* Il canvas particelle è posizionato in assoluto e copre il hero senza fissare l'altezza */
.services-hero .particles-canvas { position: absolute; inset: 0; }

/* Griglia tech di sfondo */
.services-hero .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 35%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 35%, transparent 75%);
    pointer-events: none;
}

/* Hero: titolo e sottotitolo (override del layout typing della home) */
.services-hero .hero-title,
.service-hero .hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.12;
    margin: var(--spacing-sm) auto;
    max-width: 850px;
}
.services-hero .hero-subtitle,
.service-hero .hero-subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    min-height: 0;
    display: block;
}
.services-hero .hero-cta,
.service-hero .hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Badge pill sopra il titolo */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(14, 165, 233, .35);
    background: rgba(14, 165, 233, .08);
    color: var(--primary-light);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.hero-badge i { font-size: .8rem; }

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: .4rem 1rem;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-full);
    background: rgba(30, 41, 59, .6);
    border: 1px solid var(--border-color);
    font-size: .85rem;
    color: var(--text-muted);
    backdrop-filter: blur(6px);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--primary-light); font-weight: 600; }

/* Indicatore scroll */
.scroll-indicator {
    margin-top: var(--spacing-md);
    color: var(--text-muted);
    font-size: 1.3rem;
    animation: svcBounce 1.8s ease-in-out infinite;
}

/* Bottoni: glow + shine */
.services-hero .btn-primary,
.service-hero .btn-primary,
.cta-section .btn-primary {
    position: relative;
    overflow: hidden;
    animation: svcPulseGlow 3.2s ease-in-out infinite;
}
.services-hero .btn-primary::after,
.service-hero .btn-primary::after,
.cta-section .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
    background-size: 250% 100%;
    animation: svcShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    transition: none !important;
    flex-shrink: 0;
}
.btn-primary i { color: inherit; }

/* ============================================================
   QUICK-NAV (hub): 5 scorciatoie ai servizi
   ============================================================ */
.services-quicknav {
    position: relative;
    z-index: 3;
    margin-top: -2.5rem;
    padding-bottom: var(--spacing-md);
}
.services-quicknav .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .85rem;
}
.quicknav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1.1rem .75rem;
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, .75);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}
.quicknav-card i {
    font-size: 1.25rem;
    color: var(--primary-light);
    transition: transform var(--transition-base);
}
.quicknav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}
.quicknav-card:hover i { transform: scale(1.2) rotate(-6deg); }

/* ============================================================
   SEZIONE SERVIZI (hub)
   ============================================================ */
.services-section { padding: var(--spacing-xl) 0; }
.services-section .section-title,
.faq-section .section-title { justify-content: center; text-align: center; }

/* Titoli sezione generici nelle pagine dettaglio */
.service-details h2,
.service-types h2,
.process-section h2,
.technologies-section h2,
.tech-stack-section h2,
.methodology-section h2,
.optimization-types h2,
.case-studies h2,
.service-features h2,
.faq-section h2 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: .9rem;
}
.service-details h2::after,
.service-types h2::after,
.process-section h2::after,
.technologies-section h2::after,
.tech-stack-section h2::after,
.methodology-section h2::after,
.optimization-types h2::after,
.case-studies h2::after,
.service-features h2::after,
.faq-section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ---------- Card servizio (hub) ---------- */
.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: svcShimmer 6s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, .55);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}
.service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 22px rgba(14, 165, 233, .35);
    animation: svcFloat 5s ease-in-out infinite;
}
.service-title-group h3 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin-bottom: .3rem;
}
.service-tagline {
    color: var(--primary-light);
    font-size: .98rem;
    font-weight: 500;
}

.service-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
}
.service-card:nth-of-type(even) .service-content { grid-template-columns: 1fr 1.6fr; }
.service-card:nth-of-type(even) .service-text { order: 2; }
.service-card:nth-of-type(even) .service-image { order: 1; }

.service-text h4 {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    margin: var(--spacing-md) 0 var(--spacing-xs);
    color: var(--text-primary);
}
.service-text h4:first-child { margin-top: 0; }
.service-text h4::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Liste con marker custom */
.service-list,
.service-benefits,
.plan-features,
.type-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}
.service-list li,
.service-benefits li,
.plan-features li,
.type-card ul li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: .95rem;
}
.service-list li::before,
.plan-features li::before,
.type-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .12rem;
    font-size: .8rem;
    color: var(--success-color);
}
.service-benefits li::before {
    content: "\f062";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .12rem;
    font-size: .8rem;
    color: var(--primary-light);
}
.service-list li strong,
.service-benefits li strong { color: var(--text-primary); }

/* Chips tecnologie */
.tech-stack,
.tech-list,
.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tech-stack .tech,
.tech-list span,
.stack-items span {
    display: inline-block;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    font-family: var(--font-code);
    color: var(--primary-light);
    background: rgba(14, 165, 233, .09);
    border: 1px solid rgba(14, 165, 233, .3);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: default;
}
.tech-stack .tech:hover,
.tech-list span:hover,
.stack-items span:hover {
    transform: translateY(-3px);
    background: rgba(14, 165, 233, .18);
    box-shadow: 0 4px 14px rgba(14, 165, 233, .25);
    color: var(--text-primary);
}

/* Step numerati (ol nelle card hub) */
.process-steps {
    list-style: none;
    counter-reset: svc-step;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .65rem;
}
.process-steps li {
    counter-increment: svc-step;
    position: relative;
    padding: .65rem .9rem .65rem 3.2rem;
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: .93rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.process-steps li:hover { border-color: rgba(14, 165, 233, .5); transform: translateX(5px); }
.process-steps li::before {
    content: counter(svc-step);
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.7rem;
    height: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.process-steps li strong { color: var(--text-primary); }

/* Immagine servizio */
.service-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    align-self: center;
}
.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(14, 165, 233, .18), transparent 55%);
    pointer-events: none;
}
.service-image img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.001);
    transition: transform .6s ease;
}
.service-card:hover .service-image img { transform: scale(1.06); }

/* Link "scopri di più" */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: var(--spacing-md);
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}
.read-more:hover { gap: .85rem; color: var(--primary-color); }

/* Mini piani dentro la card hub */
.service-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}
.service-plans .plan {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, .45);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}
.service-plans .plan:hover {
    border-color: rgba(14, 165, 233, .5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-plans .plan h5 {
    font-size: .95rem;
    margin-bottom: .4rem;
    color: var(--primary-light);
}
.service-plans .plan p { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   PAGINE DETTAGLIO
   ============================================================ */
.service-details,
.service-types,
.process-section,
.technologies-section,
.tech-stack-section,
.methodology-section,
.optimization-types,
.case-studies,
.service-features { padding: var(--spacing-xl) 0; }

.service-types,
.process-section,
.optimization-types {
    background:
        radial-gradient(ellipse 60% 80% at 85% 15%, rgba(139, 92, 246, .07), transparent 60%),
        var(--bg-light);
}

.details-content > h2 { margin-top: 0; }
.details-content > p,
.features-details > p {
    max-width: 820px;
    margin: 0 auto var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Griglia feature */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.feature-item,
.feature-block {
    position: relative;
    padding: 1.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.feature-item:hover,
.feature-block:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, .55);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(14, 165, 233, .18);
}
.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-light);
    border-radius: 14px;
    background: rgba(14, 165, 233, .1);
    border: 1px solid rgba(14, 165, 233, .3);
    transition: all var(--transition-base);
}
.feature-item:hover .feature-icon,
.feature-block:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(14, 165, 233, .4);
}
.feature-item h3,
.feature-block h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.feature-item p,
.feature-block p { color: var(--text-secondary); font-size: .92rem; line-height: 1.65; }

/* Tipologie (type-card) */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.type-card {
    position: relative;
    padding: 1.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}
.type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}
.type-card:hover { transform: translateY(-6px); border-color: rgba(14, 165, 233, .5); box-shadow: var(--shadow-lg); }
.type-card:hover::before { transform: scaleX(1); }
.type-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--primary-light); }
.type-card > p { color: var(--text-secondary); font-size: .92rem; line-height: 1.65; margin-bottom: .9rem; }

/* Step dettagliati / metodologia */
.process-steps-detailed,
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.step {
    position: relative;
    padding: 1.9rem 1.6rem 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}
.step::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 70%);
    transition: transform var(--transition-base);
}
.step:hover { transform: translateY(-6px); border-color: rgba(14, 165, 233, .5); box-shadow: var(--shadow-lg); }
.step:hover::after { transform: scale(1.5); }
.step-number {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 6px 16px rgba(14, 165, 233, .35);
}
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { color: var(--text-secondary); font-size: .92rem; line-height: 1.65; }

/* Stack a layer (web app) */
.stack-layer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    margin-bottom: .8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
.stack-layer:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.stack-layer h3 {
    font-size: .95rem;
    min-width: 130px;
    margin: 0;
    color: var(--primary-light);
}

/* Categorie tecnologie */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}
.tech-category {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.tech-category:hover { border-color: rgba(14, 165, 233, .5); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-category h3 {
    font-size: 1rem;
    margin-bottom: .9rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-light);
}

/* Piani prezzo (dettaglio manutenzione) */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 2.1rem 1.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.plan-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-xl); border-color: rgba(14, 165, 233, .45); }
.plan-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-7px); }
.plan-card h3 { font-size: 1.2rem; }
.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: .3rem 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 14px rgba(14, 165, 233, .45);
    white-space: nowrap;
}
.price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price span, .price small { font-size: .95rem; -webkit-text-fill-color: var(--text-muted); }
.plan-card .btn { margin-top: auto; justify-content: center; }

/* Risultati / metriche (ottimizzazione) */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    text-align: center;
}
.result-item {
    padding: 1.9rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.result-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(14, 165, 233, .55);
    box-shadow: var(--shadow-lg), 0 0 26px rgba(14, 165, 233, .2);
}
.result-metric {
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .45rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.result-item p, .result-item h3 { color: var(--text-secondary); font-size: .92rem; }

/* Case studies */
.case-studies .types-grid,
.case-studies .features-grid { margin-top: var(--spacing-md); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: var(--spacing-xl) 0;
    background:
        radial-gradient(ellipse 55% 70% at 12% 80%, rgba(14, 165, 233, .06), transparent 60%),
        var(--bg-color);
}
.faq-grid,
.faq-list {
    display: grid;
    gap: .9rem;
    max-width: 860px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.faq-item:hover { border-color: rgba(14, 165, 233, .45); }
.faq-item[open] {
    border-color: rgba(14, 165, 233, .55);
    box-shadow: 0 0 22px rgba(14, 165, 233, .12);
}
.faq-item summary {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.15rem 3rem 1.15rem 1.3rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    transition: color var(--transition-fast);
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-light); }
.faq-item summary i { color: var(--primary-light); flex-shrink: 0; }
.faq-item summary::after {
    content: "\2b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.3rem;
    color: var(--primary-light);
    font-size: .95rem;
    transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p {
    padding: 0 1.3rem 1.25rem 3.4rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: .94rem;
    animation: svcFadeIn .35s ease;
}
@keyframes svcFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CTA FINALE
   ============================================================ */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 90% at 50% 110%, rgba(139, 92, 246, .16), transparent 65%),
        radial-gradient(ellipse 70% 80% at 50% -20%, rgba(14, 165, 233, .14), transparent 60%),
        var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 85%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================================
   TEMA CHIARO
   ============================================================ */
[data-theme="light"] .services-hero,
[data-theme="light"] .service-hero {
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(14, 165, 233, .12), transparent 70%),
        var(--bg-color);
}
[data-theme="light"] .services-hero::before,
[data-theme="light"] .service-hero::before,
[data-theme="light"] .services-hero::after,
[data-theme="light"] .service-hero::after { opacity: .45; }
[data-theme="light"] .breadcrumb,
[data-theme="light"] .quicknav-card { background: rgba(255, 255, 255, .8); }
[data-theme="light"] .process-steps li,
[data-theme="light"] .service-plans .plan { background: rgba(241, 245, 249, .7); }
[data-theme="light"] .services-hero .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-quicknav .container { grid-template-columns: repeat(3, 1fr); }
    .service-content,
    .service-card:nth-of-type(even) .service-content { grid-template-columns: 1fr; }
    .service-card:nth-of-type(even) .service-text { order: 1; }
    .service-image,
    .service-card:nth-of-type(even) .service-image { order: 0; max-width: 540px; }
}
@media (max-width: 768px) {
    .services-hero { padding: 9rem 0 4.5rem; }
    .service-hero { padding: 8.5rem 0 4rem; }
    .services-quicknav { margin-top: -1.5rem; }
    .services-quicknav .container { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
    .service-plans { grid-template-columns: 1fr; }
    .service-header { flex-direction: row; }
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-7px); }
    .stack-layer h3 { min-width: 100%; }
    .faq-item p { padding-left: 1.3rem; }
}
@media (max-width: 480px) {
    .services-quicknav .container { grid-template-columns: 1fr 1fr; }
    .quicknav-card { font-size: .78rem; padding: .9rem .5rem; }
    .service-icon { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 14px; }
    .services-hero .hero-cta .btn,
    .service-hero .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .services-hero::before, .services-hero::after,
    .service-hero::before, .service-hero::after,
    .service-icon, .scroll-indicator,
    .services-hero .btn-primary, .service-hero .btn-primary,
    .cta-section .btn-primary, .service-card::before {
        animation: none;
    }
    .services-hero .btn-primary::after,
    .service-hero .btn-primary::after,
    .cta-section .btn-primary::after { display: none; }
    .service-card, .feature-item, .feature-block, .type-card, .step,
    .plan-card, .result-item, .quicknav-card, .btn, .tech-category,
    .stack-layer, .process-steps li {
        transition: none;
    }
}
