:root {
    --bg-dark: #0A0F1C;
    --bg-dark-2: #111A2E;
    --bg-card: #16223A;
    --primary: #6366F1;
    --primary-2: #8B5CF6;
    --accent: #22D3EE;
    --accent-2: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --border: rgba(148, 163, 184, 0.15);
    --gradient-1: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #22D3EE 100%);
    --gradient-2: linear-gradient(135deg, #0EA5E9, #10B981);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 14px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

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

/* ============ NAVBAR ============ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: #fff; }
.brand-logo {
    width: 38px; height: 38px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--gradient-1);
    transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem;
    border: 0; cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5); }
.btn-accent {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--primary); color:#fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============ ALERTS ============ */
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius-sm);
    margin-bottom: 1.25rem; font-weight: 500; font-size: .95rem;
    border-left: 4px solid;
}
.alert-success { background: rgba(16, 185, 129, 0.1); color: #6EE7B7; border-color: #10B981; }
.alert-error, .alert-danger { background: rgba(239, 68, 68, 0.1); color: #FCA5A5; border-color: #EF4444; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #FCD34D; border-color: #F59E0B; }
.alert-info { background: rgba(34, 211, 238, 0.1); color: #67E8F9; border-color: #22D3EE; }

/* ============ HERO ============ */
.hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
    filter: blur(40px);
}
.hero::after {
    content: ''; position: absolute; bottom: -150px; left: -50px;
    width: 450px; height: 450px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%);
    filter: blur(40px);
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
    align-items: center; position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .85rem;
    background: rgba(99,102,241,.1);
    color: #A5B4FC;
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 999px;
    font-size: .85rem;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1; font-weight: 800; color: #fff;
    margin-bottom: 1.25rem;
}
.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 550px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-num small { font-size: 1.25rem; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: .9rem; }
.hero-visual {
    background: var(--gradient-1);
    border-radius: 24px;
    padding: 3px;
    box-shadow: var(--shadow-lg);
}
.hero-visual-inner {
    background: var(--bg-dark-2);
    border-radius: 22px;
    padding: 1.75rem;
    min-height: 340px;
}
.ai-feature { display: flex; align-items: flex-start; gap: 1rem; padding: .9rem; background: rgba(255,255,255,.03); border-radius: 10px; margin-bottom: .75rem; border: 1px solid var(--border); }
.ai-feature-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ai-feature-title { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .15rem; }
.ai-feature-desc { color: var(--text-muted); font-size: .85rem; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
    display: inline-block; color: var(--accent);
    font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; font-size: .85rem;
    margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.section-subtitle { color: var(--text-muted); max-width: 650px; margin: 0 auto; font-size: 1.05rem; }
.section-alt { background: var(--bg-dark-2); }

/* ============ GRIGLIA SERVIZI ============ */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .25s ease;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-1); transform: scaleX(0); transition: transform .3s;
    transform-origin: left;
}
.card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,.4); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--gradient-1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(99,102,241,.3);
}
.service-title { font-size: 1.25rem; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.service-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; }
.service-price { color: var(--accent-2); font-weight: 700; font-size: 1.1rem; }

/* ============ PREZZI ============ */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    transition: all .25s ease;
    display: flex; flex-direction: column;
    position: relative;
}
.pricing-card.featured {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--gradient-1);
    background-origin: border-box; background-clip: padding-box, border-box;
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}
.pricing-badge {
    position: absolute; top: -13px; right: 1.75rem;
    background: var(--gradient-1); color: #fff;
    padding: .25rem .75rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.pricing-name { font-weight: 700; color: #fff; font-size: 1.1rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: #fff; margin: .75rem 0 0; line-height: 1; }
.pricing-price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-period { color: var(--text-muted); margin-bottom: 1.75rem; font-size: .9rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.pricing-features li {
    padding: .55rem 0; color: var(--text);
    font-size: .95rem; display: flex; align-items: flex-start; gap: .65rem;
}
.pricing-features li::before {
    content: '✓';
    color: var(--accent-2);
    font-weight: 800;
    width: 20px; flex-shrink: 0;
    display: inline-flex; justify-content: center;
}
.pricing-features li.muted { color: var(--text-muted); }
.pricing-features li.muted::before { content: '✗'; color: #64748B; }

/* ============ FORM ============ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; color: var(--text); font-weight: 600;
    margin-bottom: .5rem; font-size: .9rem;
}
.form-label small { color: var(--text-muted); font-weight: 400; }
.form-control, .form-select, textarea {
    width: 100%;
    padding: .8rem 1rem;
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-control::placeholder { color: #64748B; }
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.form-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-check label { color: var(--text-muted); font-size: .9rem; cursor: pointer; }

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}
.form-hint { color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }
.auth-wrapper {
    flex-grow: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.25rem;
}
.auth-card { width: 100%; max-width: 780px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.75rem; color: #fff; margin-bottom: .5rem; }
.auth-header p { color: var(--text-muted); }

/* ============ DASHBOARD ============ */
.dashboard { flex-grow: 1; display: flex; min-height: calc(100vh - 70px - 220px); }
.dash-sidebar {
    width: 240px; background: var(--bg-dark-2);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem; flex-shrink: 0;
}
.dash-user {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem; background: rgba(255,255,255,.03);
    border-radius: var(--radius-sm); margin-bottom: 1.5rem;
}
.dash-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gradient-1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.dash-user-name { color: #fff; font-weight: 600; font-size: .95rem; }
.dash-user-email { color: var(--text-muted); font-size: .8rem; }
.dash-menu { list-style: none; }
.dash-menu li { margin-bottom: .25rem; }
.dash-menu a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem; border-radius: var(--radius-sm);
    color: var(--text); font-size: .92rem; font-weight: 500;
}
.dash-menu a:hover, .dash-menu a.active {
    background: rgba(99,102,241,.15); color: #fff;
}
.dash-content { flex-grow: 1; padding: 2rem; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dash-header h1 { font-size: 1.65rem; color: #fff; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.dash-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.dash-stat-label { color: var(--text-muted); font-size: .85rem; margin-bottom: .5rem; }
.dash-stat-value { font-size: 2rem; color: #fff; font-weight: 800; }
.dash-stat-trend { color: var(--accent-2); font-size: .85rem; margin-top: .25rem; }

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.panel-title { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ============ FOOTER ============ */
.footer {
    margin-top: auto;
    background: #060914;
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: var(--text-muted); font-size: .9rem; margin-bottom: .55rem; list-style: none; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: .85rem; flex-wrap: wrap; gap: 1rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; margin-bottom: 2rem; }
    .pricing-card.featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: block; }
    .nav-open .nav-links {
        display: flex; flex-direction: column; gap: .5rem;
        position: absolute; top: 70px; left: 0; right: 0;
        background: var(--bg-dark-2); border-bottom: 1px solid var(--border);
        padding: 1rem 1.25rem;
    }
    .nav-open .nav-actions { display: flex; flex-direction: column; gap: .5rem; padding: 0 1.25rem 1rem; background: var(--bg-dark-2); border-bottom: 1px solid var(--border); }
    .hero { padding: 3rem 0 2rem; }
    .section { padding: 3rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
    .dashboard { flex-direction: column; }
    .dash-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); padding: 1rem; }
    .dash-content { padding: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--accent-2); }
.gradient-text {
    background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.csseof
