/* ============================================================
   TODRIVE — MAIN STYLESHEET v3.0
   Design System ispirato a Vexo eCommerce (Dribbble)
   Stack: Vanilla CSS | Outfit + Inter | Premium Minimal
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --clr-teal:       #1D797D;
    --clr-teal-dark:  #155b5e;
    --clr-teal-light: #e8f5f5;
    --clr-navy:       #2C3D63;
    --clr-navy-dark:  #1A2540;
    --clr-green:      #3B9D79;

    /* Neutrals (Vexo-style) */
    --clr-bg:         #FAFAFA;       /* Off-white background */
    --clr-bg-alt:     #F2F2F0;       /* Grigio perla sezione alternata */
    --clr-bg-dark:    #0F1117;       /* Dark sections */
    --clr-surface:    #FFFFFF;
    --clr-border:     rgba(0,0,0,0.08);
    --clr-border-med: rgba(0,0,0,0.12);

    /* Text */
    --clr-text:       #111118;       /* Deep charcoal */
    --clr-text-light: #6B6B7A;
    --clr-text-inv:   #FFFFFF;

    /* Accent */
    --clr-accent:     #1D797D;
    --clr-accent-2:   #3B9D79;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing */
    --section-py: clamp(72px, 10vw, 120px);
    --container-w: 1280px;
    --gap-sm: 16px;
    --gap-md: 32px;
    --gap-lg: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:  0 4px 12px rgba(0,0,0,0.07);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.09);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.11);
    --shadow-xl:  0 32px 80px rgba(0,0,0,0.14);
    --shadow-color: 0 8px 28px rgba(29,121,125,0.22);

    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.18s;
    --t-mid:  0.32s;
    --t-slow: 0.55s;

    /* Header height */
    --header-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
    width: min(100%, var(--container-w));
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
}
.hidden { display: none !important; }
.text-right { text-align: right; }

/* ── SCROLL PROGRESS BAR ─────────────────────────────────── */
.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-teal), var(--clr-green));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── SECTION ANATOMY ─────────────────────────────────────── */
.section {
    padding-block: var(--section-py);
}
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-teal);
    margin-bottom: 20px;
}
.section-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    align-items: start;
    margin-bottom: 60px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--clr-text);
}
.section-title em {
    font-style: normal;
    color: var(--clr-teal);
}
.section-desc {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    line-height: 1.75;
    padding-top: 8px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--t-mid) var(--ease-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity var(--t-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--clr-teal);
    color: #fff;
    border-color: var(--clr-teal);
    box-shadow: 0 4px 18px rgba(29,121,125,0.28);
}
.btn-primary:hover {
    background: var(--clr-teal-dark);
    border-color: var(--clr-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29,121,125,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--clr-teal);
    border-color: var(--clr-teal);
}
.btn-outline:hover {
    background: var(--clr-teal);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--clr-text);
    border-color: var(--clr-border-med);
}
.btn-ghost:hover {
    border-color: var(--clr-teal);
    color: var(--clr-teal);
}
.btn-hero { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--t-slow) var(--ease-smooth),
                transform var(--t-slow) var(--ease-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   VIDEO INTRO / PRE-LOADER
   ============================================================ */
.video-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0F1117;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100dvh; /* Evita glitch barra indirizzi mobile */
    transition: opacity 0.25s ease-out;
    will-change: opacity;
    transform: translateZ(0); /* Forza accelerazione hardware */
}
.video-intro.fade-out {
    opacity: 0;
    transform: translateY(-6%) translateZ(0);
    pointer-events: none;
}
.video-intro.fade-out-fast {
    opacity: 0;
    transition: opacity 0.2s ease-out;
    transform: translateZ(0);
    pointer-events: none;
}
.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ottimizzazione rendering hardware per massima qualità e accelerazione GPU */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.intro-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(15,17,23,0.9) 0%, transparent 100%);
    pointer-events: none;
}
.skip-intro-btn {
    position: absolute;
    bottom: 48px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-mid);
    opacity: 0;
    animation: fadeInBtn 1s 1.5s forwards;
    z-index: 10;
}
.skip-intro-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
@keyframes fadeInBtn {
    to { opacity: 1; }
}
.intro-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
}
.intro-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-teal), var(--clr-green));
    transition: width 0.2s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250,250,250,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    transition: box-shadow var(--t-mid), background var(--t-mid);
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    width: min(100%, var(--container-w));
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
    gap: 20px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(44,61,99,0.12));
}
.logo-tody {
    height: 44px;
    width: auto;
    margin-left: -6px;
    filter: drop-shadow(0 2px 6px rgba(29,121,125,0.15));
    transition: transform var(--t-mid) var(--ease-spring);
}
.header-logo:hover .logo-tody {
    transform: translateY(-4px) rotate(5deg);
}

/* Nav */
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-light);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--clr-teal);
    border-radius: 2px;
    transition: width var(--t-mid) var(--ease-smooth);
}
.nav-link:hover { color: var(--clr-text); }
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--clr-text); }

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-cta { font-size: 0.875rem; padding: 10px 20px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast);
}
.hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform var(--t-mid), opacity var(--t-fast);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 16px clamp(20px, 5vw, 60px) 24px;
    animation: slideDown var(--t-mid) var(--ease-smooth);
}
.mobile-nav.open { display: flex; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--clr-border);
    transition: color var(--t-fast);
}
.mobile-nav-link:hover { color: var(--clr-teal); }
.mobile-cta { margin-top: 16px; text-align: center; justify-content: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
    background: var(--clr-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(29,121,125,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border-med);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clr-text-light);
    width: fit-content;
    margin: 0 auto 48px;
    box-shadow: var(--shadow-xs);
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--clr-green);
    animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,157,121,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(59,157,121,0); }
}

/* Split Layout — KEY VEXO PATTERN */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
    width: min(100%, var(--container-w));
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
}

/* LEFT */
.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.045em;
    color: var(--clr-text);
}
.hero-headline .line { display: block; }
.hero-headline .accent-text { color: var(--clr-teal); }

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--clr-text-light);
    max-width: 500px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    min-width: 90px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.stat-pill:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-teal);
    line-height: 1;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--clr-text-light);
    text-align: center;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* RIGHT */
.hero-right { position: relative; }
.hero-visual-card {
    position: relative;
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    overflow: visible;
    padding: 40px 30px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorazioni geometriche */
.hero-circle-bg {
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,121,125,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-dot-grid {
    position: absolute;
    bottom: 30px; left: 20px;
    width: 90px; height: 90px;
    background-image: radial-gradient(circle, rgba(29,121,125,0.25) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
}

.hero-main-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(44,61,99,0.18)) drop-shadow(0 6px 12px rgba(29,121,125,0.12));
    animation: hero-float 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Floating Cards (Vexo-style) */
.floating-card {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    animation: hero-float 4s ease-in-out infinite;
}
.floating-card > i {
    width: 36px; height: 36px;
    background: var(--clr-teal-light);
    color: var(--clr-teal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.floating-card > div { display: flex; flex-direction: column; }
.floating-card strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--clr-text);
}
.floating-card span { color: var(--clr-text-light); font-size: 0.72rem; }

.card-top-left {
    top: -20px; left: -30px;
    animation-delay: 0.5s;
}
.card-bottom-right {
    bottom: -20px; right: -30px;
    animation-delay: 1s;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    color: var(--clr-text-light);
    font-size: 0.78rem;
    font-weight: 500;
    width: 100%;
    animation: fadeInUp 1.5s 2s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--clr-border-med);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 7px;
    background: var(--clr-teal);
    border-radius: 2px;
    animation: scroll-anim 1.8s infinite;
}
@keyframes scroll-anim {
    0%   { opacity: 1; transform: translateY(0); }
    60%  { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(0); }
}

/* ── BRAND STRIP ─────────────────────────────────────────── */
.brand-strip {
    background: var(--clr-nav, #0F1117);
    background: var(--clr-bg-dark);
    padding: 18px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-inline: clamp(20px,5vw,60px);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.02em;
}
.brand-strip-inner i {
    color: var(--clr-teal);
    margin-right: 6px;
}
.brand-strip-inner .sep { opacity: 0.25; }

/* ============================================================
   SCUOLA GUIDA SECTION
   ============================================================ */
.sg-section { background: var(--clr-bg); }

.licences-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.licence-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.licence-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-teal);
}
.licence-card.featured {
    background: linear-gradient(145deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
    border-color: transparent;
    color: var(--clr-text-inv);
}
.licence-card.featured p,
.licence-card.featured .licence-features li {
    color: rgba(255,255,255,0.72);
}

.licence-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--clr-teal-light);
    color: var(--clr-teal);
}
.licence-card.featured .licence-icon {
    background: rgba(29,121,125,0.2);
    color: #6DD4D8;
}
.licence-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--clr-teal);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.06em;
}
.licence-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.licence-card p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    line-height: 1.7;
    flex: 1;
}
.licence-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.licence-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--clr-text-light);
}
.licence-features li i { color: var(--clr-teal); font-size: 0.8rem; }
.licence-card.featured .licence-features li i { color: #6DD4D8; }

/* More licences toggle */
.licences-more { text-align: center; }
.licences-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--clr-border-med);
    color: var(--clr-text-light);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-fast);
    margin-bottom: 24px;
}
.licences-more-btn:hover { border-color: var(--clr-teal); color: var(--clr-teal); }
.licences-more-btn i { transition: transform var(--t-mid); }
.licences-more-btn.open i { transform: rotate(180deg); }

.licences-extra {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
    padding: 8px 0 8px;
    animation: slideDown var(--t-mid) var(--ease-smooth);
}
.licences-extra.open { display: grid; }

.licence-mini-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.licence-mini-card:hover { box-shadow: var(--shadow-sm); border-color: var(--clr-teal); }
.licence-mini-card i {
    font-size: 1.6rem;
    color: var(--clr-teal);
}
.licence-mini-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}
.licence-mini-card p {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    line-height: 1.65;
}

/* ============================================================
   PRATICHE AUTO SECTION
   ============================================================ */
.pa-section { background: var(--clr-bg-alt); }

/* Tabs */
.tabs-container { }

.tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    background: var(--clr-surface);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    width: fit-content;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text-light);
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-fast);
}
.tab-btn:hover { color: var(--clr-text); background: var(--clr-bg-alt); }
.tab-btn.active {
    background: var(--clr-teal);
    color: #fff;
    box-shadow: 0 2px 10px rgba(29,121,125,0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeTab var(--t-mid) var(--ease-smooth); }
@keyframes fadeTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 4vw, 56px);
}
.tab-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: var(--clr-text);
}
.tab-info h3 em { font-style: normal; color: var(--clr-teal); }
.tab-info p { font-size: 0.95rem; color: var(--clr-text-light); line-height: 1.75; margin-bottom: 24px; }
.tab-checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.tab-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--clr-text);
}
.tab-checklist li i { color: var(--clr-teal); font-size: 1.1rem; }

.tab-visual { display: flex; align-items: center; justify-content: center; }
.tab-icon-display {
    width: 200px; height: 200px;
    background: linear-gradient(135deg, var(--clr-teal-light) 0%, rgba(59,157,121,0.1) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--clr-teal);
    font-size: 3.5rem;
    border: 2px solid rgba(29,121,125,0.15);
    transition: transform var(--t-mid) var(--ease-spring);
}
.tab-icon-display:hover { transform: scale(1.05) rotate(-3deg); }
.tab-icon-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   PROFESSIONAL SERVICES
   ============================================================ */
.pro-section {
    background: var(--clr-bg-dark);
    color: var(--clr-text-inv);
    position: relative;
    overflow: hidden;
}
.pro-section::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, rgba(29,121,125,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.pro-section .section-label { color: var(--clr-teal); }
.pro-section .section-title { color: var(--clr-text-inv); }
.pro-section .section-desc { color: rgba(255,255,255,0.55); }

.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pro-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: background var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.pro-card:hover {
    background: rgba(29,121,125,0.1);
    border-color: rgba(29,121,125,0.3);
    transform: translateY(-6px);
}
.pro-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.pro-icon {
    width: 52px; height: 52px;
    background: rgba(29,121,125,0.2);
    color: #6DD4D8;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.pro-tag {
    background: rgba(29,121,125,0.18);
    color: rgba(109,212,216,0.9);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
}
.pro-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
.pro-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 20px;
}
.pro-detail {
    font-size: 0.78rem;
    color: var(--clr-teal);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ============================================================
   TODY PROMO SECTION
   ============================================================ */
.tody-promo-section {
    background: var(--clr-bg);
    padding-block: var(--section-py);
    overflow: hidden;
}
.tody-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}
.tody-promo-grid::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(29,121,125,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.tody-promo-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tody-glow {
    position: absolute;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(29,121,125,0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%       { transform: scale(1.1); opacity: 1; }
}
.tody-promo-img {
    width: 90%;
    max-width: 340px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,0.4)) drop-shadow(0 6px 12px rgba(29,121,125,0.2));
    animation: hero-float 4s ease-in-out infinite;
}
.tody-promo-content {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tody-promo-tag {
    display: inline-block;
    background: rgba(29,121,125,0.25);
    color: #6DD4D8;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}
.tody-promo-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.tody-promo-content h2 strong { color: #6DD4D8; }
.tody-promo-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}

/* ============================================================
   PROMO / LEAD GEN SECTION
   ============================================================ */
.promo-section { background: var(--clr-bg-alt); }
.promo-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.promo-eyebrow {
    display: inline-block;
    background: var(--clr-teal);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.promo-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}
.promo-title em { font-style: normal; color: var(--clr-teal); }
.promo-content p { font-size: 1rem; color: var(--clr-text-light); line-height: 1.8; margin-bottom: 24px; }
.promo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(29,121,125,0.08);
    border: 1px solid rgba(29,121,125,0.15);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-teal);
}

/* Form */
.promo-form-wrap {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-md);
}
.lead-form h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--clr-text);
}
.form-row { margin-bottom: 16px; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text-light);
    letter-spacing: 0.02em;
}
.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--clr-border-med);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--clr-text);
    background: var(--clr-bg);
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
}
.form-field input:focus,
.form-field select:focus {
    border-color: var(--clr-teal);
    box-shadow: 0 0 0 3px rgba(29,121,125,0.12);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 8px;
}
.form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 3px;
    accent-color: var(--clr-teal);
    flex-shrink: 0;
}
.form-check label {
    font-size: 0.82rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}
.form-check a { color: var(--clr-teal); text-decoration: underline; }
.btn-submit { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
}
.success-icon { font-size: 3.5rem; color: var(--clr-green); }
.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}
.form-success p { font-size: 0.95rem; color: var(--clr-text-light); }

/* ============================================================
   TRANSPARENCY SECTION
   ============================================================ */
.transparency-section { background: var(--clr-bg); }
.transparency-intro {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 40px;
}
.transparency-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.transparency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.transparency-table thead th {
    background: var(--clr-navy-dark);
    color: rgba(255,255,255,0.8);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
}
.transparency-table tbody tr {
    border-bottom: 1px solid var(--clr-border);
    transition: background var(--t-fast);
}
.transparency-table tbody tr:last-child { border-bottom: none; }
.transparency-table tbody tr:hover { background: rgba(29,121,125,0.03); }
.transparency-table td {
    padding: 18px;
    vertical-align: top;
    line-height: 1.6;
    color: var(--clr-text);
}
.transparency-table td small { color: var(--clr-text-light); font-size: 0.8rem; }
.amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--clr-teal);
    white-space: nowrap;
}
.id-tag {
    display: inline-block;
    background: var(--clr-teal-light);
    color: var(--clr-teal);
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px 2px 2px 0;
}
.transparency-note {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--clr-text-light);
    line-height: 1.7;
}
.transparency-note i { color: var(--clr-teal); margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts-section { background: var(--clr-bg-alt); }
.contacts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.contacts-left { display: flex; flex-direction: column; gap: 28px; }
.contacts-left p { font-size: 1rem; color: var(--clr-text-light); line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--clr-teal-light);
    color: var(--clr-teal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}
.contact-item a:hover { color: var(--clr-teal); }
.pec { font-size: 0.82rem; margin-top: 4px; }

/* Map Card */
.map-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}
.map-pin-anim {
    width: 72px; height: 72px;
    background: var(--clr-teal-light);
    color: var(--clr-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pin-bounce 2s ease-in-out infinite;
}
@keyframes pin-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.map-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}
.map-card p { font-size: 0.95rem; color: var(--clr-text-light); }
.gps { font-size: 0.78rem; color: var(--clr-text-light); font-family: monospace; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--clr-bg-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(255,255,255,0.1)) brightness(1.05);
}
.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    transition: all var(--t-fast);
}
.footer-socials a:hover {
    background: var(--clr-teal);
    border-color: var(--clr-teal);
    color: #fff;
}
.footer-links-col { display: flex; flex-direction: column; gap: 14px; }
.footer-links-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--t-fast);
}
.footer-links-col a:hover { color: #fff; }
.footer-legal-col { display: flex; flex-direction: column; gap: 14px; }
.footer-legal-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}
.legal-list { display: flex; flex-direction: column; gap: 8px; }
.legal-list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}
.legal-list li strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-bottom {
    padding-block: 20px;
    background: rgba(0,0,0,0.15);
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

/* Welcome bubble */
.chat-bubble {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    max-width: 220px;
    position: relative;
    font-size: 0.88rem;
    font-weight: 500;
    animation: bubbleIn 0.4s var(--ease-spring);
}
@keyframes bubbleIn {
    from { opacity: 0; transform: scale(0.7) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-bubble-close {
    position: absolute;
    top: -8px; right: -8px;
    width: 22px; height: 22px;
    background: var(--clr-text-light);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Toggle Button */
.chatbot-btn {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-teal) 0%, var(--clr-navy) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(29,121,125,0.4), 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
    overflow: hidden;
    padding: 6px;
}
.chatbot-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(29,121,125,0.5), 0 4px 12px rgba(0,0,0,0.2);
}
.chatbot-tody-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
    transition: transform var(--t-mid) var(--ease-spring);
}
.chatbot-btn:hover .chatbot-tody-img { transform: scale(1.1) rotate(5deg); }
.online-dot {
    position: absolute;
    bottom: 3px; right: 3px;
    width: 12px; height: 12px;
    background: var(--clr-green);
    border: 2px solid #fff;
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.35s var(--ease-spring);
}
@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
    background: linear-gradient(135deg, var(--clr-navy-dark), var(--clr-navy));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--clr-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-avatar img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.chat-avatar .online-dot { bottom: 1px; right: 1px; }
.chat-header-left strong { display: block; color: #fff; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.chat-header-left span { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.chat-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast);
}
.chat-close:hover { background: rgba(255,255,255,0.2); }
.chat-messages {
    padding: 16px;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-text {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.chat-msg.bot .msg-text {
    background: var(--clr-bg-alt);
    border-radius: 4px 16px 16px 16px;
    color: var(--clr-text);
}
.chat-msg.user .msg-text {
    background: var(--clr-teal);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}

/* Contenitore delle opzioni a risposta chiusa */
.chat-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg-alt);
    max-height: 190px;
    overflow-y: auto;
}

/* Bottone di opzione chat */
.chat-option-btn {
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border-med);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-xs);
}

.chat-option-btn:hover {
    background: var(--clr-teal);
    border-color: var(--clr-teal);
    color: #fff;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.chat-option-btn span {
    flex: 1;
}

.chat-option-btn i {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform var(--t-fast);
}

.chat-option-btn:hover i {
    transform: translateX(2px);
    opacity: 1;
}

/* ============================================================
   PRIVACY MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,0.7);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeModal var(--t-mid);
}
@keyframes fadeModal { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalIn var(--t-mid) var(--ease-spring);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--clr-border);
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.modal-close {
    width: 36px; height: 36px;
    background: var(--clr-bg-alt);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast);
}
.modal-close:hover { background: var(--clr-border-med); }
.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}
.modal-body h4 { font-family: var(--font-display); font-weight: 700; margin: 12px 0 8px; }
.modal-body h5 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--clr-teal); margin: 20px 0 6px; }
.modal-body p { font-size: 0.88rem; color: var(--clr-text-light); line-height: 1.75; }
.modal-body a { color: var(--clr-teal); }
.modal-body code { font-size: 0.82rem; background: var(--clr-bg-alt); padding: 2px 6px; border-radius: 4px; }
.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1. Smartphone Verticali (max-width: 576px) ─────────── */
@media (max-width: 576px) {
    :root {
        --section-py: 56px;
    }
    
    .section-header-split { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-right { display: none; }
    .hero-headline { font-size: clamp(2.2rem, 10vw, 3.6rem); }
    .hero-badge { font-size: 0.72rem; text-align: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .brand-strip-inner { gap: 14px; font-size: 0.75rem; }
    
    .licences-grid { grid-template-columns: 1fr; }
    .pro-grid { grid-template-columns: 1fr; }
    .tab-grid { grid-template-columns: 1fr; }
    .tab-visual { display: none; }
    .tabs-nav { width: 100%; }
    .licences-extra { grid-template-columns: 1fr; }
    
    /* Form contatti: colonna singola e 100% width */
    .form-row.two-cols { grid-template-columns: 1fr; gap: 16px; }
    .lead-form input, 
    .lead-form select, 
    .lead-form textarea { 
        width: 100% !important;
        font-size: 16px !important; /* Impedisce l'auto-zoom forzato di iOS Safari */
    }

    .contacts-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
    
    /* Chatbot touch-friendly mobile */
    .chat-window {
        width: calc(100vw - 32px) !important;
        right: 16px !important;
        bottom: 80px !important;
        max-height: 70dvh !important; /* Dynamic viewport height */
    }
    .chat-messages {
        max-height: 50dvh !important;
        -webkit-overflow-scrolling: touch; /* Scroll fluido iOS */
    }
    .chat-options-container {
        padding: 12px 14px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .chat-option-btn {
        padding: 13px 16px; /* Hit target maggiorato (min 44px) per pollice */
        margin-bottom: 2px;
    }
    
    .skip-intro-btn { bottom: 24px; right: 20px; font-size: 0.82rem; padding: 10px 18px; }
    .transparency-table { font-size: 0.78rem; }
    .transparency-table td, .transparency-table th { padding: 10px; }
    .promo-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ── 2. Tablet (min-width: 577px) and (max-width: 992px) ── */
@media (min-width: 577px) and (max-width: 992px) {
    .section-header-split { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-right { display: none; }
    .hero-headline { font-size: clamp(3rem, 8vw, 4.5rem); }
    
    .licences-grid { grid-template-columns: 1fr 1fr; }
    .pro-grid { grid-template-columns: 1fr; }
    .tab-grid { grid-template-columns: 1fr; }
    .tab-visual { max-height: 300px; }
    .tabs-nav { width: 100%; }
    .licences-extra { grid-template-columns: 1fr 1fr; }
    
    .form-row.two-cols { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    
    /* Chatbot tablet-friendly */
    .chat-window {
        width: 360px !important;
        right: 20px !important;
        max-height: 70dvh !important;
    }
    .chat-messages {
        -webkit-overflow-scrolling: touch;
    }
}

/* ── 3. Desktop adattivo (max-width: 1100px) ────────────── */
@media (min-width: 993px) and (max-width: 1100px) {
    .section-header-split { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .licences-grid { grid-template-columns: 1fr 1fr; }
    .pro-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── NUOVI STILI v3.1 ─────────────────────────────────────── */

/* Textarea nel form lead */
.lead-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--clr-border-med);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-surface);
    resize: vertical;
    min-height: 90px;
    transition: border-color var(--t-fast) var(--ease-smooth),
                box-shadow var(--t-fast) var(--ease-smooth);
    line-height: 1.55;
}
.lead-form textarea:focus {
    outline: none;
    border-color: var(--clr-teal);
    box-shadow: 0 0 0 3px rgba(29,121,125,0.12);
}
.lead-form textarea::placeholder { color: var(--clr-text-light); }

/* GDPR blockquote nella privacy modal */
.gdpr-quote {
    border-left: 4px solid var(--clr-teal);
    background: var(--clr-teal-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 12px 0 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--clr-text);
    font-style: italic;
}
.gdpr-quote strong { font-style: normal; color: var(--clr-teal-dark); }

/* Modale larga per Trasparenza Societaria */
.modal-card-wide {
    max-width: min(960px, 96vw) !important;
    width: min(960px, 96vw) !important;
}

/* Stat pill con icona (senza numero grande) */
.stat-pill { display: flex; align-items: center; gap: 8px; }
.stat-pill i { flex-shrink: 0; }

/* Footer logo — fix definitivo proporzioni */
.footer-logo {
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    object-position: left center;
}

/* Fix scorrimento laterale tabella trasparenza sempre visibile */
#transparency-modal .transparency-table-wrap {
    max-height: 50vh;
    overflow: auto;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
}
#transparency-modal .transparency-table {
    min-width: 800px; /* Assicura che si possa scrollare lateralmente su schermi piccoli */
}

/* ============================================================
   PATCH RESPONSIVA GLOBALE PER DISPOSITIVI MOBILE (max-width: 767px)
   Risolve il disallineamento a sinistra ed evita overflow laterali
   ============================================================ */
@media (max-width: 767px) {
    /* 1. Blocco sversamento e allineamento di base */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }
    
    *, *::before, *::after {
        box-sizing: border-box !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden;
    }
    
    .section {
        width: 100% !important;
        overflow-x: hidden;
    }

    /* 2. Centratura geometrica della Hero e della struttura della Home */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .hero-stats {
        justify-content: center !important;
        width: 100%;
    }
    .brand-strip-inner {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 16px;
    }
    .section-header-split {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 3. Centratura e riallineamento del form contatti */
    .promo-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .promo-content {
        width: 100%;
        max-width: 100%;
        margin-bottom: 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    .promo-form-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 24px 16px !important; /* Riduce l'ingombro del padding per massimizzare lo spazio su schermi stretti */
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-md);
        box-sizing: border-box !important;
    }
    .lead-form {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    .lead-form h3 {
        text-align: center;
        font-size: 1.15rem;
        margin-bottom: 20px;
    }
    .form-row.two-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-field {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .form-field input,
    .form-field select,
    .lead-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Evita zoom automatico iOS */
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .form-check {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 16px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    .form-check input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    .form-check label {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }

    /* 4. Riallineamento e posizionamento simmetrico del Chatbot (Risolve overflow laterale) */
    .chat-window {
        position: fixed !important;
        width: calc(100vw - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 90px !important;
        max-height: 60dvh !important;
        z-index: 99999 !important;
    }
    .chatbot-btn {
        right: 16px !important; /* Allineato specularmente ai margini */
    }
    .chat-bubble {
        right: 16px !important;
        max-width: 250px;
    }

    /* 5. Ridimensionamento proporzionale del video di introduzione (Risolve clipping) */
    .intro-video {
        object-fit: contain !important;
    }
    
    /* 5. Transizioni fluide di orientamento */
    .chat-window, .promo-form-wrap, .container, .hero-content {
        transition: all 0.25s ease-out;
    }
}
