:root {
    --deep-navy: #020617;
    --royal-purple: #4338ca;
    --electric-indigo: #6366f1;
    --accent-cyan: #22d3ee;
    --soft-white: #f8fafc;
    --muted-text: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── ACCESSIBILITÀ ──────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent-cyan);
    color: var(--deep-navy);
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--deep-navy);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus visibili globali */
:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--deep-navy);
    color: var(--soft-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1000;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.9);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--soft-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0.6;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

.nav-cta {
    background: var(--electric-indigo);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: var(--accent-cyan) !important;
    color: var(--deep-navy) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.97);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--soft-white);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    opacity: 0.8;
}

.mobile-menu a:hover { opacity: 1; color: var(--accent-cyan); }

.mobile-menu .nav-cta {
    background: var(--electric-indigo);
    padding: 14px 32px;
    border-radius: 6px;
    opacity: 1;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMidYMid slice'%3E%3Cg stroke='%2322d3ee' stroke-width='0.6' fill='none' opacity='0.55'%3E%3Cline x1='600' y1='700' x2='0' y2='0'/%3E%3Cline x1='600' y1='700' x2='120' y2='0'/%3E%3Cline x1='600' y1='700' x2='240' y2='0'/%3E%3Cline x1='600' y1='700' x2='360' y2='0'/%3E%3Cline x1='600' y1='700' x2='480' y2='0'/%3E%3Cline x1='600' y1='700' x2='600' y2='0'/%3E%3Cline x1='600' y1='700' x2='720' y2='0'/%3E%3Cline x1='600' y1='700' x2='840' y2='0'/%3E%3Cline x1='600' y1='700' x2='960' y2='0'/%3E%3Cline x1='600' y1='700' x2='1080' y2='0'/%3E%3Cline x1='600' y1='700' x2='1200' y2='0'/%3E%3Cline x1='0' y1='560' x2='1200' y2='560'/%3E%3Cline x1='0' y1='420' x2='1200' y2='420'/%3E%3Cline x1='0' y1='280' x2='1200' y2='280'/%3E%3Cline x1='0' y1='140' x2='1200' y2='140'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    opacity: 0.08;
    animation: heroGridPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGridPulse {
    from { opacity: 0.05; }
    to   { opacity: 0.12; }
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -30%;
    right: -20%;
    z-index: -1;
}

.hero-content {
    max-width: 850px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    margin-bottom: 24px;
}

/* Typewriter span */
.hero h1 span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.8em;
    min-height: 1.2em;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, #818cf8 50%, var(--accent-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: typewriterGradient 3s linear infinite;
}

@keyframes typewriterGradient {
    from { background-position: 0% center; }
    to   { background-position: 200% center; }
}

/* Cursore inline — usa -webkit-text-fill-color per sovrastare il gradient */
.hero h1 span::after {
    content: '|';
    -webkit-text-fill-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 300;
    margin-left: 2px;
    animation: blink 0.75s step-end infinite;
}

.hero h1 span.typing::after {
    animation: none;
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--muted-text);
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-lg {
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--deep-navy);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--deep-navy);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats-bar {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.stat-item .label {
    color: var(--muted-text);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ─── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
    padding: 48px 0;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.trust-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--muted-text);
    margin-bottom: 28px;
    font-weight: 500;
}

.trust-track-wrapper {
    overflow: hidden;
    position: relative;
}

/* fade edges */
.trust-track-wrapper::before,
.trust-track-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trust-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--deep-navy), transparent);
}

.trust-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--deep-navy), transparent);
}

.trust-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.trust-track:hover {
    animation-play-state: paused;
}

.trust-logo {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted-text);
    padding: 12px 28px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--glass-bg);
    white-space: nowrap;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
    cursor: default;
}

.trust-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.section-header p {
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid transparent;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.service-row:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.08), inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}

/* animated corner glow on hover */
.service-row::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34,211,238,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.service-row:hover::before {
    opacity: 1;
}

.service-visual {
    flex: 0 0 45%;
    position: relative;
    padding-bottom: 52%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--glass-bg);
    z-index: 1;
}

.service-visual img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: contrast(1.1);
}

.service-row:hover .service-visual img {
    transform: scale(1.04);
}

.service-text {
    flex: 1;
    padding-top: 10px;
    z-index: 1;
}

.service-text h3 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    margin-bottom: 20px;
    color: white;
    transition: color 0.3s ease;
}

.service-row:hover .service-text h3 {
    color: var(--accent-cyan);
}

.service-text ul {
    list-style: none;
}

.service-text li {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 300;
}

.service-text li::before {
    content: "⚡";
    color: var(--accent-cyan);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ─── PROCESS TIMELINE ───────────────────────────────────── */
.process {
    padding: 120px 0;
    background: #0a0f22;
}

.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 48px;
}

.timeline-line {
    position: absolute;
    left: 18px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--electric-indigo), transparent);
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.timeline-line.drawn {
    transform: scaleY(1);
}

.timeline-item {
    display: flex;
    gap: 36px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--deep-navy);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.timeline-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 32px 36px;
    flex: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.06);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--muted-text);
    font-weight: 300;
    line-height: 1.7;
}

/* ─── AI FLUENCY ────────────────────────────────────────── */
.ai-fluency {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0f22 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.ai-fluency::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.ai-fluency-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--electric-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.fluency-slogans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.fluency-slogan {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fluency-slogan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-indigo), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fluency-slogan:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.fluency-slogan:hover::before {
    opacity: 1;
}

.fluency-slogan-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.fluency-quote {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: normal;
    color: var(--soft-white);
    line-height: 1.35;
    margin-bottom: 16px;
    border-left: 3px solid var(--electric-indigo);
    padding-left: 16px;
}

.fluency-desc {
    color: var(--muted-text);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
}

.fluency-cta-row {
    display: flex;
    justify-content: center;
}

.fluency-cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 52px 60px;
    text-align: center;
    max-width: 680px;
    width: 100%;
}

.fluency-cta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--electric-indigo);
    margin-bottom: 16px;
}

.fluency-cta-card h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 32px;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .fluency-slogans {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fluency-cta-card {
        padding: 36px 24px;
    }

    .ai-fluency { padding: 80px 0; }
}

/* ─── CONVERSION / FORMS ─────────────────────────────────── */
/* ─── NEWSLETTER STRIP ───────────────────────────────────── */
.newsletter-strip {
    padding: 64px 0;
    background: #050a18;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.newsletter-strip::before {
    content: '';
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.newsletter-left {
    flex: 1;
    min-width: 0;
}

.newsletter-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.newsletter-left h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.newsletter-left p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-right {
    flex: 0 0 400px;
}

.newsletter-form-inline {
    display: flex;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.newsletter-form-inline:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.newsletter-form-inline input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    padding: 14px 18px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    min-width: 0;
}

.newsletter-form-inline input:focus {
    outline: none;
}

.newsletter-form-inline input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.newsletter-form-inline button {
    background: var(--accent-cyan);
    color: var(--deep-navy);
    border: none;
    padding: 14px 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.newsletter-form-inline button:hover {
    background: white;
}

.newsletter-disclaimer {
    margin-top: 10px;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.45);
    text-align: right;
}

/* ─── AUDIT CTA ──────────────────────────────────────────── */
.audit-cta {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: #030814;
    /* griglia sottile decorativa */
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.audit-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Glow radiale principale */
.audit-cta-bg::before {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
    pointer-events: none;
}

/* Glow secondario in basso a sinistra */
.audit-cta-bg::after {
    content: '';
    position: absolute;
    left: -150px;
    bottom: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.audit-cta-bg-img {
    display: none;
}

.audit-cta-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.audit-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.audit-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 28px;
}

.audit-cta-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.audit-cta-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.audit-cta-title em {
    font-style: normal;
    color: var(--accent-cyan);
    position: relative;
}

.audit-cta-desc {
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 500px;
}

.audit-form-wrap {
    background: rgba(5, 10, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(24px);
    max-width: 560px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.audit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


.audit-submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background: var(--accent-cyan);
    color: var(--deep-navy);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.audit-submit-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-text);
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: 6px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-group select option {
    background-color: var(--deep-navy);
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
}


.form-status {
    margin-top: 12px;
    font-size: 0.8rem;
    text-align: center;
    min-height: 1.2em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--muted-text);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-grid {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

.social-icon:hover {
    background: var(--accent-cyan);
    color: var(--deep-navy);
    border-color: var(--accent-cyan);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soft-white);
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
}

.copyright {
    color: var(--muted-text);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 500;
    width: calc(100% - 48px);
    max-width: 780px;
    background: rgba(5, 10, 24, 0.97);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.06);
    backdrop-filter: blur(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner:not([hidden]) {
    opacity: 1;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 24px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 4px;
}

.cookie-banner-text p:last-child {
    font-size: 0.82rem;
    color: var(--muted-text);
    line-height: 1.6;
    font-weight: 300;
}

.cookie-banner-text a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--muted-text);
    border: 1px solid var(--glass-border);
}

.cookie-btn-reject:hover {
    border-color: var(--soft-white);
    color: var(--soft-white);
}

.cookie-btn-accept {
    background: var(--accent-cyan);
    color: var(--deep-navy);
}

.cookie-btn-accept:hover {
    background: white;
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 18px;
    }

    .cookie-banner-actions {
        flex-direction: row-reverse;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ─── FLOATING CTA ───────────────────────────────────────── */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--electric-indigo);
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    background: var(--accent-cyan);
    color: var(--deep-navy);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.floating-cta-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg { text-align: center; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .services { padding: 80px 0; }

    .service-row {
        flex-direction: column;
        padding: 16px;
    }

    .service-visual {
        width: 100%;
        flex: 0 0 auto;
        padding-bottom: 60%;
    }

    .process { padding: 80px 0; }

    .timeline {
        padding-left: 40px;
    }

    .newsletter-strip { padding: 48px 0; }
    .newsletter-inner { flex-direction: column; gap: 32px; }
    .newsletter-right { flex: none; width: 100%; }
    .newsletter-disclaimer { text-align: left; }
    .audit-cta { padding: 100px 0; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand { grid-column: auto; }

    .floating-cta-text { display: none; }
    .floating-cta { padding: 14px 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .section-header { margin-bottom: 48px; }
    .audit-form-row { grid-template-columns: 1fr; }
    .audit-form-wrap { padding: 24px 18px; }

    .timeline::before { left: 14px; }
    .timeline { padding-left: 36px; }
    .timeline-marker { left: -38px; width: 28px; height: 28px; }
    .timeline-content { padding: 24px 20px; }

    .trust-track-wrapper::before,
    .trust-track-wrapper::after { width: 60px; }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
}

/* ─── PREFERS-REDUCED-MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-content {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero h1 span {
        animation: none;
        background: none;
        -webkit-text-fill-color: var(--accent-cyan);
        color: var(--accent-cyan);
    }

    .hero h1 span::after {
        animation: none;
        opacity: 1;
    }

    .trust-track {
        animation: none;
    }

    .timeline-line {
        transform: scaleY(1);
        transition: none;
    }
}
