/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================================
   TCLEADS — Custom Home Page Styles
   ============================================================ */

:root {
    --ink:     #0D1117;
    --solar:   #F5A623;
    --solar2:  #FF6B35;
    --accent:  #00C9A7;
    --bg:      #F8F7F4;
    --white:   #FFFFFF;
    --muted:   #6B7280;
    --border:  #E5E7EB;
    --dark-section: #0D1117;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(13,17,23,.06);
    --shadow-md: 0 8px 32px rgba(13,17,23,.10);
    --shadow-lg: 0 20px 60px rgba(13,17,23,.14);
    --font-title: 'Syne', sans-serif;
    --font-body:  'DM Sans', sans-serif;
    --transition: .35s cubic-bezier(.25,.46,.45,.94);
}

/* Reset base per la home */
.tcl-home * {
    box-sizing: border-box;
}
.tcl-home {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}
.tcl-home h1,
.tcl-home h2,
.tcl-home h3,
.tcl-home h4 {
    font-family: var(--font-title);
    line-height: 1.15;
}

/* ── Container ── */
.tcl-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── Section spacing ── */
.tcl-section {
    padding: 96px 0;
}
.tcl-section--sm {
    padding: 64px 0;
}
.tcl-section--dark {
    background: var(--dark-section);
    color: var(--white);
}

/* ── Section label ── */
.tcl-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--solar);
    margin-bottom: 16px;
}
.tcl-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--solar);
    border-radius: 2px;
}

/* ── Section heading ── */
.tcl-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 16px;
}
.tcl-subheading {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ── Buttons ── */
.tcl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
}
.tcl-btn:hover {
    transform: translateY(-2px);
}
.tcl-btn--primary {
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(245,166,35,.35);
}
.tcl-btn--primary:hover {
    box-shadow: 0 8px 30px rgba(245,166,35,.50);
    color: var(--white);
}
.tcl-btn--outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}
.tcl-btn--outline:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.tcl-btn--white {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-md);
}
.tcl-btn--white:hover {
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}

/* ============================================================
   1. HERO
   ============================================================ */
.tcl-hero {
    background: var(--bg);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.tcl-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.12) 0%, transparent 70%);
    pointer-events: none;
}
.tcl-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.tcl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,.12);
    border: 1px solid rgba(245,166,35,.30);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--solar2);
    margin-bottom: 24px;
}
.tcl-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -.02em;
}
.tcl-hero__title span {
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tcl-hero__desc {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}
.tcl-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tcl-hero__visual {
    position: relative;
}
.tcl-hero__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tcl-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.tcl-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tcl-stat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.tcl-stat-card__icon--solar  { background: rgba(245,166,35,.12); }
.tcl-stat-card__icon--accent { background: rgba(0,201,167,.12); }
.tcl-stat-card__icon--orange { background: rgba(255,107,53,.12); }
.tcl-stat-card__value {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}
.tcl-stat-card__label {
    font-size: .875rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ============================================================
   2. SERVIZI
   ============================================================ */
.tcl-services {
    background: var(--white);
}
.tcl-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.tcl-service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.tcl-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,166,35,.05), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.tcl-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--solar);
}
.tcl-service-card:hover::after {
    opacity: 1;
}
.tcl-service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.tcl-service-card__title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
.tcl-service-card__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   3. SETTORE SOLARE (dark section)
   ============================================================ */
.tcl-solar {
    background: var(--dark-section);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.tcl-solar::before {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -300px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.10) 0%, transparent 65%);
    pointer-events: none;
}
.tcl-solar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.tcl-solar__label { color: var(--solar); }
.tcl-solar__heading { color: var(--white); margin-bottom: 20px; }
.tcl-solar__desc {
    color: rgba(255,255,255,.65);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 40px;
}
.tcl-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.tcl-kpi {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-md);
    padding: 28px 24px;
}
.tcl-kpi__value {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--solar);
    line-height: 1;
    margin-bottom: 6px;
}
.tcl-kpi__label {
    font-size: .875rem;
    color: rgba(255,255,255,.65);
}
.tcl-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tcl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
}

/* ============================================================
   4. COME LAVORIAMO
   ============================================================ */
.tcl-process {
    background: var(--bg);
}
.tcl-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    position: relative;
}
.tcl-process__grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 36px);
    right: calc(12.5% + 36px);
    height: 2px;
    background: linear-gradient(90deg, var(--solar), var(--solar2));
    z-index: 0;
}
.tcl-step {
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}
.tcl-step__num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px rgba(245,166,35,.40);
}
.tcl-step__title {
    font-family: var(--font-title);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.tcl-step__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ============================================================
   5. TESTIMONIANZE
   ============================================================ */
.tcl-testimonials {
    background: var(--white);
}
.tcl-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}
.tcl-testimonial {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.tcl-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tcl-testimonial__stars {
    color: var(--solar);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.tcl-testimonial__text {
    font-size: .9375rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 28px;
    font-style: italic;
}
.tcl-testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tcl-testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--white);
    font-size: .875rem;
    flex-shrink: 0;
}
.tcl-testimonial__name {
    font-weight: 600;
    font-size: .9375rem;
}
.tcl-testimonial__role {
    font-size: .8125rem;
    color: var(--muted);
}

/* ============================================================
   6. FAQ
   ============================================================ */
.tcl-faq {
    background: var(--bg);
}
.tcl-faq__list {
    margin-top: 56px;
    max-width: 800px;
    margin-inline: auto;
}
.tcl-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.tcl-faq-item.is-open {
    box-shadow: var(--shadow-md);
}
.tcl-faq-item__question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color var(--transition);
}
.tcl-faq-item__question:hover { color: var(--solar2); }
.tcl-faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    transition: transform var(--transition), background var(--transition);
}
.tcl-faq-item.is-open .tcl-faq-item__icon {
    transform: rotate(45deg);
    background: var(--solar);
    color: var(--white);
}
.tcl-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.25,.46,.45,.94), padding var(--transition);
    padding: 0 28px;
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.7;
}
.tcl-faq-item.is-open .tcl-faq-item__answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

/* ============================================================
   7. CTA FINALE
   ============================================================ */
.tcl-cta {
    background: var(--dark-section);
    padding: 112px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tcl-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(245,166,35,.12) 0%, transparent 70%);
    pointer-events: none;
}
.tcl-cta__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 20px;
    position: relative;
}
.tcl-cta__desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,.65);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.tcl-cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}
.tcl-cta .tcl-btn--outline {
    color: rgba(255,255,255,.80);
    border-color: rgba(255,255,255,.25);
}
.tcl-cta .tcl-btn--outline:hover {
    color: var(--white);
    border-color: rgba(255,255,255,.60);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity .6s var(--transition), transform .6s var(--transition);
    will-change: opacity, transform;
}
.reveal         { transform: translateY(40px); }
.reveal-left    { transform: translateX(-50px); }
.reveal-right   { transform: translateX(50px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for grid children */
.tcl-services__grid .tcl-service-card:nth-child(1) { transition-delay: .05s; }
.tcl-services__grid .tcl-service-card:nth-child(2) { transition-delay: .10s; }
.tcl-services__grid .tcl-service-card:nth-child(3) { transition-delay: .15s; }
.tcl-services__grid .tcl-service-card:nth-child(4) { transition-delay: .20s; }
.tcl-services__grid .tcl-service-card:nth-child(5) { transition-delay: .25s; }
.tcl-services__grid .tcl-service-card:nth-child(6) { transition-delay: .30s; }
.tcl-services__grid .tcl-service-card:nth-child(7) { transition-delay: .35s; }
.tcl-services__grid .tcl-service-card:nth-child(8) { transition-delay: .40s; }

.tcl-testimonials__grid .tcl-testimonial:nth-child(1) { transition-delay: .08s; }
.tcl-testimonials__grid .tcl-testimonial:nth-child(2) { transition-delay: .16s; }
.tcl-testimonials__grid .tcl-testimonial:nth-child(3) { transition-delay: .24s; }

.tcl-kpi-grid .tcl-kpi:nth-child(1) { transition-delay: .05s; }
.tcl-kpi-grid .tcl-kpi:nth-child(2) { transition-delay: .10s; }
.tcl-kpi-grid .tcl-kpi:nth-child(3) { transition-delay: .15s; }
.tcl-kpi-grid .tcl-kpi:nth-child(4) { transition-delay: .20s; }

.tcl-process__grid .tcl-step:nth-child(1) { transition-delay: .05s; }
.tcl-process__grid .tcl-step:nth-child(2) { transition-delay: .15s; }
.tcl-process__grid .tcl-step:nth-child(3) { transition-delay: .25s; }
.tcl-process__grid .tcl-step:nth-child(4) { transition-delay: .35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .tcl-services__grid,
    .tcl-process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tcl-process__grid::before { display: none; }
    .tcl-hero__inner,
    .tcl-solar__inner { grid-template-columns: 1fr; gap: 48px; }
    .tcl-hero__visual { display: none; }
}

@media (max-width: 768px) {
    .tcl-section { padding: 64px 0; }
    .tcl-hero    { padding: 80px 0 56px; }
    .tcl-services__grid,
    .tcl-process__grid,
    .tcl-testimonials__grid { grid-template-columns: 1fr; }
    .tcl-kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .tcl-kpi-grid { grid-template-columns: 1fr; }
    .tcl-hero__actions { flex-direction: column; }
    .tcl-cta__actions  { flex-direction: column; align-items: center; }
}

/* Flatsome overrides: remove header margin on this template */
.tcl-home .header-main { margin-bottom: 0 !important; }

/* ============================================================
   HERO DARK BANNER — nuovi stili
   ============================================================ */

/* Override hero per versione dark */
.tcl-hero--dark {
    background: var(--ink);
    color: var(--white);
    padding: 120px 0 96px;
    position: relative;
    overflow: hidden;
}
.tcl-hero--dark .tcl-hero__title { color: var(--white); }
.tcl-hero--dark .tcl-hero__desc  { color: rgba(255,255,255,.65); }

/* Grid pattern sfondo */
.tcl-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Glow radiali */
.tcl-hero__bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.tcl-hero__bg-glow--1 {
    width: 600px; height: 600px;
    top: -200px; right: -100px;
    background: rgba(245,166,35,.08);
}
.tcl-hero__bg-glow--2 {
    width: 400px; height: 400px;
    bottom: -150px; left: -100px;
    background: rgba(0,201,167,.06);
}

/* Sun SVG decorativo */
.tcl-hero__sun {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    pointer-events: none;
    animation: tcl-sun-rotate 40s linear infinite;
}
@keyframes tcl-sun-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Hero layout */
.tcl-hero--dark .tcl-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Badge hero dark */
.tcl-hero--dark .tcl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245,166,35,.10);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--solar);
    margin-bottom: 28px;
}
.tcl-hero__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0,201,167,.25);
    animation: tcl-dot-pulse 2s ease-in-out infinite;
}
@keyframes tcl-dot-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(0,201,167,.25); }
    50%      { box-shadow: 0 0 0 6px rgba(0,201,167,.10); }
}

/* Titolo hero */
.tcl-hero__title { font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; margin: 0 0 24px; letter-spacing: -.025em; }
.tcl-hero__title-grad {
    background: linear-gradient(135deg, var(--solar) 0%, var(--solar2) 60%, #FF9F45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ghost button per hero dark */
.tcl-btn--ghost {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.85);
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.tcl-btn--ghost:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.40);
    color: var(--white);
    transform: translateY(-2px);
}

/* Trust bar */
.tcl-hero__trust {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.tcl-hero__trust-item { text-align: center; }
.tcl-hero__trust-val  {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--solar);
}
.tcl-hero__trust-lbl  { font-size: .75rem; color: rgba(255,255,255,.50); margin-top: 2px; }
.tcl-hero__trust-sep  { width: 1px; height: 36px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* ── Agente AI showcase (hero visual) ── */
.tcl-agent-showcase {
    position: relative;
    max-width: 380px;
    margin-left: auto;
}

/* Notifiche flotanti */
.tcl-agent-notif {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.90);
    white-space: nowrap;
}
.tcl-agent-notif--top    { top: -20px; right: -20px; animation: tcl-float 3s ease-in-out infinite; }
.tcl-agent-notif--bottom { bottom: -20px; left: -20px; animation: tcl-float 3s ease-in-out infinite 1.5s; }
@keyframes tcl-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.tcl-agent-notif strong { font-weight: 700; color: var(--solar); }
.tcl-agent-notif__dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.tcl-agent-notif__dot--green { background: #00C9A7; }
.tcl-agent-notif__dot--solar { background: var(--solar); }

/* Frame agente */
.tcl-agent-frame {
    background: #161b27;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
}
.tcl-agent-frame__bar {
    background: #1e2436;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tcl-agent-frame__bar-dots {
    display: flex; gap: 6px;
}
.tcl-agent-frame__bar-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.tcl-agent-frame__bar-dots span:nth-child(1) { background: #FF5F57; }
.tcl-agent-frame__bar-dots span:nth-child(2) { background: #FFBD2E; }
.tcl-agent-frame__bar-dots span:nth-child(3) { background: #28CA42; }
.tcl-agent-frame__bar-title {
    flex: 1; font-size: .75rem; color: rgba(255,255,255,.50); font-weight: 500;
    text-align: center;
}
.tcl-agent-frame__status {
    display: flex; align-items: center; gap: 5px;
    font-size: .7rem; color: #00C9A7; font-weight: 600;
}

/* Pulse dot status */
.tcl-pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #00C9A7;
    animation: tcl-pulse-status 1.5s ease-in-out infinite;
}
@keyframes tcl-pulse-status {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.7); }
}

/* Body del frame agente */
.tcl-agent-body {
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Avatar + rings */
.tcl-agent-avatar-wrap { position: relative; width: 100px; height: 100px; }
.tcl-agent-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,201,167,.3);
    animation: tcl-ring-pulse 2.5s ease-out infinite;
}
.tcl-agent-ring--1 { inset: -10px; animation-delay: 0s; }
.tcl-agent-ring--2 { inset: -22px; animation-delay: .5s; opacity: .6; }
.tcl-agent-ring--3 { inset: -36px; animation-delay: 1s; opacity: .3; }
@keyframes tcl-ring-pulse {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.3); opacity: 0; }
}
.tcl-agent-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0,201,167,.4);
    box-shadow: 0 0 30px rgba(0,201,167,.25);
}
.tcl-agent-avatar svg { width: 100%; height: 100%; }

/* Waveform */
.tcl-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 36px;
}
.tcl-waveform__bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #00C9A7, rgba(0,201,167,.4));
    animation: tcl-wave 1.2s ease-in-out infinite alternate;
    transform-origin: bottom;
}
@keyframes tcl-wave {
    from { transform: scaleY(.2); }
    to   { transform: scaleY(1); }
}
/* Altezze variabili per look naturale */
.tcl-waveform__bar:nth-child(odd)  { height: 28px; }
.tcl-waveform__bar:nth-child(even) { height: 20px; }
.tcl-waveform__bar:nth-child(3n)   { height: 34px; }
.tcl-waveform__bar:nth-child(5n)   { height: 16px; }

.tcl-agent-caption {
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    font-style: italic;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.tcl-agent-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tcl-agent-chip {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(245,166,35,.12);
    border: 1px solid rgba(245,166,35,.25);
    font-size: .7rem;
    font-weight: 600;
    color: var(--solar);
}

/* ============================================================
   SEZIONE AGENTE AI (video showcase)
   ============================================================ */
.tcl-agent-section {
    background: var(--bg);
    padding: 80px 0;
}
.tcl-agent-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Feature list */
.tcl-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tcl-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9375rem;
    color: var(--ink);
    font-weight: 500;
}

/* ── Video player animato ── */
.tcl-video-player {
    position: relative;
}
.tcl-video-player__frame {
    background: #0D1117;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
}
.tcl-video-player__screen {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

/* Agente parlante grande */
.tcl-talking-agent {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    position: relative;
}
.tcl-talking-agent__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,201,167,.10) 0%, #0D1117 70%);
}
.tcl-talking-agent__avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px rgba(0,201,167,.3), 0 0 40px rgba(0,201,167,.2);
}
.tcl-talking-agent__avatar svg { width: 100%; height: 100%; }
.tcl-talking-agent__ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,201,167,.25);
    animation: tcl-ring-pulse 2s ease-out infinite;
    z-index: 0;
}

/* Bocca animata */
.tcl-mouth {
    animation: tcl-mouth-move 0.6s ease-in-out infinite alternate;
    transform-origin: center;
}
@keyframes tcl-mouth-move {
    from { transform: scaleY(1); }
    to   { transform: scaleY(0.3); }
}

/* Onda vocale grande */
.tcl-talking-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 48px;
    position: relative;
    z-index: 1;
}
.tcl-talking-wave__bar {
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #00C9A7 0%, rgba(0,201,167,.2) 100%);
    animation: tcl-wave 1s ease-in-out infinite alternate;
    transform-origin: bottom;
    height: 40px;
}
.tcl-talking-wave__bar:nth-child(odd)  { height: 40px; }
.tcl-talking-wave__bar:nth-child(even) { height: 28px; }
.tcl-talking-wave__bar:nth-child(3n)   { height: 48px; }
.tcl-talking-wave__bar:nth-child(4n)   { height: 20px; }
.tcl-talking-wave__bar:nth-child(6n)   { height: 44px; }

/* Sottotitoli animati */
.tcl-talking-subtitle {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 8px 16px;
    width: 100%;
    text-align: center;
}
.tcl-talking-subtitle__text {
    font-size: .8125rem;
    color: rgba(255,255,255,.80);
    font-style: italic;
}

/* Controlli player */
.tcl-video-player__controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #161b27;
    border-top: 1px solid rgba(255,255,255,.07);
}
.tcl-video-player__play {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--solar);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}
.tcl-video-player__play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(245,166,35,.5);
}
.tcl-video-player__progress { flex: 1; }
.tcl-video-player__bar {
    height: 4px;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    overflow: hidden;
}
.tcl-video-player__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--solar), var(--solar2));
    border-radius: 2px;
    animation: tcl-progress 8s linear infinite;
}
@keyframes tcl-progress {
    from { width: 0%; }
    to   { width: 100%; }
}
.tcl-video-player__time {
    font-size: .72rem;
    color: rgba(255,255,255,.40);
    white-space: nowrap;
}
.tcl-video-player__caption {
    font-size: .75rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    font-style: italic;
}

/* ============================================================
   SERVICE CARDS — nuovi stili con illustrazioni
   ============================================================ */

/* Illustrazione in cima alle card */
.tcl-svc-illus {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tcl-svc-illus svg { width: 100%; height: 100%; }

/* Palette sfondo per ogni illustrazione */
.tcl-svc-illus--solar  { background: rgba(245,166,35,.07); }
.tcl-svc-illus--accent { background: rgba(0,201,167,.07);  }
.tcl-svc-illus--orange { background: rgba(255,107,53,.07); }
.tcl-svc-illus--purple { background: rgba(139,92,246,.07); }
.tcl-svc-illus--pink   { background: rgba(236,72,153,.07); }
.tcl-svc-illus--blue   { background: rgba(59,130,246,.07); }

/* Body e tag nelle card */
.tcl-service-card__body { flex: 1; }
.tcl-service-card__tag {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .03em;
}

/* Rimuovi l'icona emoji vecchia se rimasta */
.tcl-service-card > .tcl-service-card__icon:not(.tcl-svc-illus *) {
    display: none;
}

/* ============================================================
   RESPONSIVE — aggiornamento per i nuovi blocchi
   ============================================================ */
@media (max-width: 1024px) {
    .tcl-hero--dark .tcl-hero__inner { grid-template-columns: 1fr; }
    .tcl-hero__visual { display: block !important; margin-top: 48px; }
    .tcl-agent-showcase { max-width: 420px; margin-inline: auto; }
    .tcl-agent-section__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
    .tcl-hero--dark { padding: 80px 0 64px; }
    .tcl-hero__trust { gap: 16px; }
    .tcl-video-player__frame { border-radius: 12px; }
    .tcl-talking-agent__avatar { width: 90px; height: 90px; }
}
@media (max-width: 480px) {
    .tcl-hero__trust { flex-direction: column; gap: 20px; }
    .tcl-hero__trust-sep { width: 40px; height: 1px; }
    .tcl-agent-notif { display: none; }
}

/* ============================================================
   SERVICES NAVIGATION BAR — tcl-snav
   ============================================================ */

.tcl-snav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(13,17,23,.96);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: box-shadow .3s ease, transform .3s ease;
    will-change: transform;
}
.tcl-snav.is-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.tcl-snav.is-hidden {
    transform: translateY(-100%);
}
.tcl-snav.panel-open {
    box-shadow: 0 0 0 100vw rgba(0,0,0,.6);
}

/* Inner layout */
.tcl-snav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 48px;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Brand */
.tcl-snav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .02em;
    flex-shrink: 0;
    padding-right: 16px;
}
.tcl-snav__brand strong { color: var(--solar); }
.tcl-snav__brand:hover { color: var(--white); }

/* Separator */
.tcl-snav__sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
    margin-right: 16px;
}

/* Service links list */
.tcl-snav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}
.tcl-snav__item {
    position: relative;
    flex-shrink: 0;
}

/* Individual link */
.tcl-snav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.60);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background .2s;
    position: relative;
}
.tcl-snav__link:hover,
.tcl-snav__link.is-active {
    color: var(--snav-c, var(--solar));
    background: color-mix(in srgb, var(--snav-c, var(--solar)) 10%, transparent);
}
.tcl-snav__link.is-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--snav-c, var(--solar));
    border-radius: 1px;
}
.tcl-snav__link-icon { font-size: .9rem; line-height: 1; }
.tcl-snav__link-name { font-size: .75rem; }

/* Tooltip card on hover */
.tcl-snav__tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #1e2436;
    border: 1px solid rgba(255,255,255,.10);
    border-top: 2px solid var(--snav-c, var(--solar));
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 100;
    text-align: left;
}
.tcl-snav__item:hover .tcl-snav__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.tcl-snav__tooltip-icon  { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.tcl-snav__tooltip-title { font-family: var(--font-title); font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.tcl-snav__tooltip-desc  { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: 10px; }
.tcl-snav__tooltip-arrow { font-size: .75rem; font-weight: 600; color: var(--snav-c, var(--solar)); }

/* CTA desktop */
.tcl-snav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    color: var(--white);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .2s, box-shadow .2s;
}
.tcl-snav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,166,35,.4);
    color: var(--white);
}

/* Mobile toggle button */
.tcl-snav__mobile-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    color: rgba(255,255,255,.8);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-left: auto;
}
.tcl-snav__mobile-toggle:hover,
.tcl-snav__mobile-toggle.is-active {
    border-color: var(--solar);
    color: var(--solar);
}
.tcl-snav__hamburger { transition: transform .3s; }
.tcl-snav__mobile-toggle.is-active .tcl-snav__hamburger { transform: rotate(90deg); }

/* Mobile panel */
.tcl-snav__panel {
    display: none;
    background: #161b27;
    border-top: 1px solid rgba(255,255,255,.07);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.25,.46,.45,.94);
}
.tcl-snav__panel[aria-hidden="false"] {
    max-height: 600px;
}
.tcl-snav__panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.05);
}
.tcl-snav__panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    background: #161b27;
    transition: background .2s;
}
.tcl-snav__panel-item:hover,
.tcl-snav__panel-item.is-active {
    background: color-mix(in srgb, var(--snav-c) 10%, #161b27);
}
.tcl-snav__panel-icon { font-size: 1.2rem; flex-shrink: 0; }
.tcl-snav__panel-item strong {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.90);
}
.tcl-snav__panel-item small {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}
.tcl-snav__panel-item.is-active strong { color: var(--snav-c); }
.tcl-snav__panel-arrow { margin-left: auto; flex-shrink: 0; color: rgba(255,255,255,.25); }
.tcl-snav__panel-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
}
.tcl-snav__panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--solar), var(--solar2));
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

/* ── Responsive snav ─── */
@media (max-width: 1100px) {
    .tcl-snav__link-name { display: none; }
    .tcl-snav__link { padding: 5px 8px; }
    .tcl-snav__link-icon { font-size: 1.1rem; }
}
@media (max-width: 860px) {
    .tcl-snav__list     { display: none; }
    .tcl-snav__sep      { display: none; }
    .tcl-snav__cta      { display: none; }
    .tcl-snav__mobile-toggle { display: flex; }
    .tcl-snav__panel    { display: block; }
}
@media (max-width: 480px) {
    .tcl-snav__panel-grid { grid-template-columns: 1fr; }
    .tcl-snav__brand span { display: none; }
}

/* Compensa altezza snav per le sezioni con id (smooth scroll) */
:root { --tcl-snav-h: 48px; }
.tcl-svc-hero, .tcl-hero--dark {
    scroll-margin-top: var(--tcl-snav-h);
}
[id] { scroll-margin-top: calc(var(--tcl-snav-h) + 16px); }

/* ============================================================
   SERVICE CARDS LINKATE — home page
   ============================================================ */

/* Converte la card in link preservando lo stile */
a.tcl-service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.tcl-service-card:hover {
    color: inherit;
}

/* CTA visibile in basso alla card */
.tcl-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    transition: color var(--transition), gap var(--transition);
}
a.tcl-service-card:hover .tcl-card-cta {
    color: var(--solar);
    gap: 10px;
}

/* ============================================================
   RELATED SERVICES (interlinking) — pagine servizio
   ============================================================ */

.tcl-related { background: var(--bg); }
.tcl-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tcl-related-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--ink);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.tcl-related-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 60%, transparent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.tcl-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rc);
    color: var(--ink);
}
.tcl-related-card:hover::before { transform: scaleX(1); }

.tcl-related-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.tcl-related-card__icon {
    font-size: 2rem;
    line-height: 1;
    width: 52px; height: 52px;
    background: color-mix(in srgb, var(--rc) 10%, transparent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.tcl-related-card__arrow {
    font-size: 1.25rem;
    color: rgba(0,0,0,.2);
    transition: color var(--transition), transform var(--transition);
}
.tcl-related-card:hover .tcl-related-card__arrow {
    color: var(--rc);
    transform: translate(4px, -4px);
}
.tcl-related-card__title {
    font-family: var(--font-title);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.tcl-related-card__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}
.tcl-related-card__cta {
    font-size: .8rem;
    font-weight: 600;
    color: var(--rc);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tcl-related-card__cta::after {
    content: '→';
    transition: transform .2s;
}
.tcl-related-card:hover .tcl-related-card__cta::after { transform: translateX(4px); }

@media (max-width: 768px) {
    .tcl-related__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGINE SERVIZIO — tcl-svc-* styles
   ============================================================ */

/* CSS custom properties per colori dinamici */
.tcl-svc-page {
    --svc-c1: #F5A623;
    --svc-c2: #FF6B35;
}

/* ── Hero Servizio ─────────────────────────────────────────────── */
.tcl-svc-hero {
    background: var(--ink);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}
.tcl-svc-hero__bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.tcl-svc-hero__bg-glow-1 {
    position: absolute;
    width: 700px; height: 700px;
    top: -200px; right: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--svc-c1-rgb, 245,166,35),.10) 0%, transparent 70%);
    background: radial-gradient(circle, color-mix(in srgb, var(--svc-c1) 15%, transparent) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.tcl-svc-hero__bg-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    bottom: -150px; left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    background: radial-gradient(circle, color-mix(in srgb, var(--svc-c2) 10%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.tcl-svc-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Breadcrumb */
.tcl-svc-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 20px;
}
.tcl-svc-hero__breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.tcl-svc-hero__breadcrumb a:hover { color: rgba(255,255,255,.8); }
.tcl-svc-hero__breadcrumb span:last-child { color: var(--svc-c1); font-weight: 600; }

/* Label pill */
.tcl-svc-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--svc-c1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--svc-c1) 30%, transparent);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--svc-c1);
    margin-bottom: 24px;
}
.tcl-svc-hero__label-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--svc-c1);
    animation: tcl-dot-pulse 2s ease-in-out infinite;
}

/* Title */
.tcl-svc-hero__title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 24px;
}
.tcl-svc-hero__title span {
    background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tcl-svc-hero__sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
}
.tcl-svc-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Primary button con colore dinamico */
.tcl-btn--svc-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2));
    color: var(--white);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--svc-c1) 40%, transparent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.tcl-btn--svc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--svc-c1) 55%, transparent);
    color: var(--white);
}

/* SVG illustration wrap nel hero */
.tcl-svc-hero__visual { position: relative; }
.tcl-svc-hero__svg-wrap {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 32px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.tcl-svc-hero__svg-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--svc-c1) 8%, transparent) 0%, transparent 65%);
}
.tcl-svc-hero__svg-wrap svg {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* ── Problema ──────────────────────────────────────────────────── */
.tcl-svc-problema { background: var(--bg); }
.tcl-svc-problema__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.tcl-svc-pains {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tcl-pain-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.tcl-pain-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}
.tcl-pain-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.tcl-pain-card__text {
    font-size: .9375rem;
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
}

/* ── Come funziona (steps) ─────────────────────────────────────── */
.tcl-svc-steps { position: relative; overflow: hidden; }
.tcl-svc-steps__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.03) 0%, transparent 60%);
    pointer-events: none;
}
.tcl-svc-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.tcl-svc-step {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}
.tcl-svc-step:hover {
    background: rgba(255,255,255,.07);
    border-color: color-mix(in srgb, var(--svc-c1) 40%, transparent);
}
.tcl-svc-step__num {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}
.tcl-svc-step__title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
}
.tcl-svc-step__desc {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    margin: 0;
}
.tcl-svc-step__arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.15);
    z-index: 2;
}

/* ── Features grid ─────────────────────────────────────────────── */
.tcl-svc-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tcl-svc-feat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tcl-svc-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--svc-c1);
}
.tcl-svc-feat-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.tcl-svc-feat-card__title {
    font-family: var(--font-title);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}
.tcl-svc-feat-card__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Stats bar ─────────────────────────────────────────────────── */
.tcl-svc-stats {
    background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2));
    padding: 64px 0;
}
.tcl-svc-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.tcl-svc-stat {
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,.20);
}
.tcl-svc-stat:last-child { border-right: none; }
.tcl-svc-stat__val {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.tcl-svc-stat__lbl {
    font-size: .875rem;
    color: rgba(255,255,255,.75);
    line-height: 1.4;
}

/* ── Tech badges ───────────────────────────────────────────────── */
.tcl-svc-techs { padding: 48px 0; }
.tcl-svc-techs__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.tcl-svc-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tcl-svc-tech-badge:hover {
    border-color: var(--svc-c1);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── CTA Finale Servizio ───────────────────────────────────────── */
.tcl-svc-cta {
    background: var(--ink);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tcl-svc-cta__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--svc-c1) 12%, transparent) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    pointer-events: none;
}
.tcl-svc-cta__inner { position: relative; z-index: 1; }
.tcl-svc-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--svc-c1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--svc-c1) 30%, transparent);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--svc-c1);
    margin-bottom: 28px;
}
.tcl-svc-cta__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 20px;
}
.tcl-svc-cta__desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.60);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
}
.tcl-svc-cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tcl-svc-cta__note {
    font-size: .875rem;
    color: rgba(255,255,255,.35);
}
.tcl-svc-cta__note a {
    color: var(--svc-c1);
    text-decoration: none;
    font-weight: 600;
}
.tcl-svc-cta__note a:hover { text-decoration: underline; }

/* ── Responsive servizio ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .tcl-svc-hero__inner       { grid-template-columns: 1fr; gap: 40px; }
    .tcl-svc-hero__visual      { display: none; }
    .tcl-svc-hero              { min-height: auto; padding: 80px 0 64px; }
    .tcl-svc-problema__inner   { grid-template-columns: 1fr; gap: 48px; }
    .tcl-svc-steps__grid       { grid-template-columns: repeat(2, 1fr); }
    .tcl-svc-step__arrow       { display: none; }
    .tcl-svc-features__grid    { grid-template-columns: repeat(2, 1fr); }
    .tcl-svc-stats__grid       { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .tcl-svc-stat              { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 28px; }
    .tcl-svc-stat:nth-child(even){ border-right: none; }
}
@media (max-width: 768px) {
    .tcl-svc-steps__grid       { grid-template-columns: 1fr; }
    .tcl-svc-features__grid    { grid-template-columns: 1fr; }
    .tcl-svc-stats__grid       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .tcl-svc-stats__grid       { grid-template-columns: 1fr; }
    .tcl-svc-cta__actions      { flex-direction: column; align-items: center; }
    .tcl-svc-hero__actions     { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOBILE RESPONSIVE — FIX COMPLETO HOME + ANIMAZIONI
   Tutti i breakpoint rivisti per corretto rendering mobile.
   ============================================================ */

/* ── 1. ANIMAZIONI: elimina overflow orizzontale su mobile ── */
@media (max-width: 768px) {
    /* Riduce la traslazione orizzontale a 0 per evitare
       barre di scroll laterali su piccoli schermi */
    .reveal-left  { transform: translateY(24px); }
    .reveal-right { transform: translateY(24px); }
    /* La traslazione verticale rimane ma si riduce */
    .reveal       { transform: translateY(24px); }

    .reveal.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ── 2. HERO DARK — fix struttura mobile ── */
@media (max-width: 1024px) {
    /* Il visual dell'agente torna visibile in single-col,
       ma deve stare sotto il copy senza rompere il layout */
    .tcl-hero--dark .tcl-hero__visual {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }
    .tcl-agent-showcase {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tcl-hero--dark {
        padding: 72px 0 56px;
    }
    /* Nascondi visual agente su tablet piccolo/mobile
       per dare spazio al copy che è il contenuto principale */
    .tcl-hero--dark .tcl-hero__visual {
        display: none;
    }
    /* Trust bar: permetti wrapping e riduci gap */
    .tcl-hero__trust {
        flex-wrap: wrap;
        gap: 12px 20px;
        justify-content: flex-start;
        padding-top: 24px;
        margin-top: 32px;
    }
    .tcl-hero__trust-sep { display: none; }
    .tcl-hero__trust-item {
        text-align: left;
        min-width: 100px;
    }
    .tcl-hero__trust-val { font-size: 1.25rem; }
    /* Bottoni hero */
    .tcl-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tcl-hero__actions .tcl-btn,
    .tcl-hero__actions .tcl-btn--ghost {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
    /* Titolo hero: aumenta leggibilità */
    .tcl-hero__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: -.01em;
    }
    .tcl-hero__desc { font-size: 1rem; }
}

@media (max-width: 480px) {
    .tcl-hero--dark { padding: 60px 0 48px; }
    .tcl-hero__title { font-size: clamp(1.75rem, 9vw, 2.4rem); }
    /* Nascondi notifiche flottanti agente che causano overflow */
    .tcl-agent-notif { display: none !important; }
    /* Nascondi sole SVG che fuoriesce dal viewport */
    .tcl-hero__sun { display: none; }
    /* Glow ridotti per performance mobile */
    .tcl-hero__bg-glow--1 { width: 280px; height: 280px; }
    .tcl-hero__bg-glow--2 { width: 200px; height: 200px; }
}

/* ── 3. CONTAINER — padding ridotto su schermi piccoli ── */
@media (max-width: 400px) {
    .tcl-container { padding-inline: 16px; }
}

/* ── 4. SECTION PADDING — più compatto su mobile ── */
@media (max-width: 768px) {
    .tcl-section    { padding: 56px 0; }
    .tcl-section--sm { padding: 40px 0; }
    .tcl-cta        { padding: 72px 0; }
}
@media (max-width: 480px) {
    .tcl-section    { padding: 48px 0; }
    .tcl-section--sm { padding: 32px 0; }
}

/* ── 5. SERVIZI GRID — 2 colonne fino a 560px, poi 1 ── */
@media (max-width: 1024px) {
    .tcl-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 560px) {
    .tcl-services__grid { grid-template-columns: 1fr; gap: 14px; }
    .tcl-service-card { padding: 24px 20px; }
}

/* ── 6. SETTORE SOLARE — fix gap eccessivo ── */
@media (max-width: 1024px) {
    .tcl-solar__inner { gap: 48px; }
}
@media (max-width: 768px) {
    .tcl-solar__inner { gap: 36px; }
    .tcl-kpi__value { font-size: 1.75rem; }
}
@media (max-width: 480px) {
    .tcl-kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tcl-kpi { padding: 20px 16px; }
    .tcl-kpi__value { font-size: 1.5rem; }
    .tcl-badge-row { gap: 8px; }
    .tcl-badge { font-size: .75rem; padding: 5px 11px; }
}

/* ── 7. PROCESS GRID — 2 col su tablet, 1 col su mobile ── */
@media (max-width: 1024px) {
    .tcl-process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    .tcl-process__grid::before { display: none; }
}
@media (max-width: 560px) {
    .tcl-process__grid { grid-template-columns: 1fr; gap: 24px; }
    .tcl-step__num { width: 56px; height: 56px; font-size: 1.25rem; margin-bottom: 16px; }
}

/* ── 8. TESTIMONIANZE — 1 col su tablet/mobile ── */
@media (max-width: 900px) {
    .tcl-testimonials__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) {
    .tcl-testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
    .tcl-testimonial { padding: 28px 24px; }
}

/* ── 9. FAQ — padding ridotto su mobile ── */
@media (max-width: 480px) {
    .tcl-faq-item__question { padding: 20px 20px; font-size: .95rem; }
    .tcl-faq-item.is-open .tcl-faq-item__answer { padding: 0 20px 18px; }
}

/* ── 10. HEADING e SUBHEADING — ridotti su mobile ── */
@media (max-width: 768px) {
    .tcl-heading    { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
    .tcl-subheading { font-size: 1rem; }
}

/* ── 11. SEZIONE AGENTE AI (video showcase) ── */
@media (max-width: 1024px) {
    .tcl-agent-section__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .tcl-agent-section { padding: 56px 0; }
    .tcl-talking-agent__avatar { width: 90px; height: 90px; }
    .tcl-talking-wave { height: 36px; }
    .tcl-talking-wave__bar { width: 4px; }
}

/* ── 12. CTA FINALE — bottoni full-width su mobile ── */
@media (max-width: 480px) {
    .tcl-cta__actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .tcl-cta__actions .tcl-btn,
    .tcl-cta__actions .tcl-btn--outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .tcl-cta__title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .tcl-cta__desc  { font-size: .97rem; }
}

/* ── 13. BOTTONI — min touch target 44px su mobile ── */
@media (max-width: 768px) {
    .tcl-btn {
        padding: 14px 24px;
        min-height: 48px;
    }
    .tcl-btn--ghost {
        padding: 12px 22px;
        min-height: 48px;
    }
}

/* ── 14. SERVICE CARD LINK — min touch area ── */
@media (max-width: 768px) {
    a.tcl-service-card {
        min-height: 160px;
    }
    .tcl-service-card__title { font-size: .95rem; }
    .tcl-service-card__desc  { font-size: .83rem; }
}

/* ── 15. SNAV — logo compatto su mobile ── */
@media (max-width: 360px) {
    .tcl-snav__brand { font-size: .72rem; }
    .tcl-snav__panel-grid { grid-template-columns: 1fr; }
}

/* ── 16. LABEL SEZIONE — ridotta su mobile ── */
@media (max-width: 480px) {
    .tcl-label { font-size: .7rem; }
}

/* ── 17. Stat cards hero (visual lato) — layout mobile ── */
@media (max-width: 768px) {
    .tcl-hero__stats { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .tcl-stat-card   { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 16px; gap: 12px; }
    .tcl-stat-card__icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
    .tcl-stat-card__value { font-size: 1.25rem; }
    .tcl-stat-card__label { font-size: .78rem; }
}

/* ── 18. Overflow-x: prevenzione globale ── */
.tcl-home { max-width: 100vw; overflow-x: hidden; }
html, body { overflow-x: hidden; max-width: 100%; }
