/* ============================================================================
   ATLATECH SRL — DESIGN SYSTEM PRINCIPALE
   ============================================================================
   Design system unificato. NON inserire mai valori hardcoded: ogni colore,
   spaziatura, raggio, ombra, durata è una Custom Property qui sotto.

   Struttura del file:
     1. @import font
     2. Tokens (CSS custom properties) — TEMA DARK (default)
     3. Reset / Normalize
     4. Base Typography
     5. Layout primitives (container, grid, section)
     6. Components (btn, card, badge, form fields, section-header)
     7. Glassmorphism + glow utilities
     8. Helpers utility
   ============================================================================ */

@import url('../fonts/clash-display.css');
@import url('../fonts/geist.css');

/* ==========================================================================
   1. DESIGN TOKENS — Tema Dark (default)
   ========================================================================== */
:root {
    /* -------- PALETTE BASE -------- */
    --color-bg:              #0E0E0E;   /* Deep charcoal (base) */
    --color-bg-alt:          #141414;   /* Superficie elevata */
    --color-bg-card:         #1A1A1A;   /* Card base */
    --color-bg-card-hover:   #1F1F1F;   /* Card hover */
    --color-surface:         #171717;   /* Sezioni alternate */
    --color-border:          rgba(255, 255, 255, 0.08);
    --color-border-hover:    rgba(201, 168, 76, 0.35);
    --color-border-strong:   rgba(255, 255, 255, 0.16);

    /* -------- ACCENT -------- */
    --color-primary:         #C9A84C;   /* Oro tenue — brand primario */
    --color-primary-hover:   #D4B45C;
    --color-primary-glow:    rgba(201, 168, 76, 0.40);
    --color-primary-soft:    rgba(201, 168, 76, 0.12);

    --color-secondary:       #2D4A3E;   /* Verde salvia profondo */
    --color-secondary-hover: #36594A;
    --color-secondary-glow:  rgba(45, 74, 62, 0.40);

    --color-accent-1:        #8B5CF6;   /* Viola — dati / innovation */
    --color-accent-1-glow:   rgba(139, 92, 246, 0.35);
    --color-accent-2:        #06B6D4;   /* Ciano — tecnologia */
    --color-accent-2-glow:   rgba(6, 182, 212, 0.35);

    /* -------- TEXT -------- */
    --color-text:            #F0EDE8;   /* Off-white caldo */
    --color-text-muted:      #9B9590;   /* Warm grey */
    --color-text-dim:        #6B6560;   /* Muted */
    --color-text-inverse:    #0E0E0E;

    /* -------- STATUS -------- */
    --color-success:         #3FB950;
    --color-warning:         #E3B341;
    --color-danger:          #F85149;
    --color-info:            #58A6FF;

    /* -------- GRADIENTS -------- */
    --gradient-primary:      linear-gradient(135deg, #C9A84C 0%, #D4B45C 100%);
    --gradient-secondary:    linear-gradient(135deg, #2D4A3E 0%, #3A5A4B 100%);
    --gradient-accent-tech:  linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-hero:
        radial-gradient(ellipse at 20% 20%, rgba(201, 168, 76, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #0E0E0E 0%, #141414 100%);
    --gradient-cta:          linear-gradient(135deg, #141414 0%, #1A1A1A 100%);
    --gradient-card:         linear-gradient(135deg, rgba(26,26,26,0.80) 0%, rgba(20,20,20,0.60) 100%);
    --gradient-border:       linear-gradient(135deg, rgba(201,168,76,0.60), rgba(139,92,246,0.40));
    --gradient-shimmer:      linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);

    /* -------- TIPOGRAFIA -------- */
    --font-display:          'Clash Display', 'Geist', system-ui, -apple-system, sans-serif;
    --font-body:             'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:             'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* Scale tipografica (fluid) */
    --fs-xs:     0.75rem;    /* 12 */
    --fs-sm:     0.875rem;   /* 14 */
    --fs-base:   1rem;       /* 16 */
    --fs-md:     1.125rem;   /* 18 */
    --fs-lg:     1.25rem;    /* 20 */
    --fs-xl:     1.5rem;     /* 24 */
    --fs-2xl:    2rem;       /* 32 */
    --fs-3xl:    2.5rem;     /* 40 */
    --fs-4xl:    clamp(2.5rem, 5vw, 3.75rem);     /* h1 desktop */
    --fs-5xl:    clamp(3rem, 7vw, 5.5rem);        /* hero display */
    --fs-hero:   clamp(3.5rem, 8vw, 7rem);        /* hero oversize */

    --lh-tight:     1.1;
    --lh-heading:   1.2;
    --lh-base:      1.6;
    --lh-relaxed:   1.75;

    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;

    --letter-tight:  -0.02em;
    --letter-normal: 0;
    --letter-wide:   0.02em;
    --letter-wider:  0.12em;

    /* -------- SPAZIATURA (scale 4px) -------- */
    --space-0:   0;
    --space-1:   0.25rem;    /* 4 */
    --space-2:   0.5rem;     /* 8 */
    --space-3:   0.75rem;    /* 12 */
    --space-4:   1rem;       /* 16 */
    --space-5:   1.5rem;     /* 24 */
    --space-6:   2rem;       /* 32 */
    --space-7:   2.5rem;     /* 40 */
    --space-8:   3rem;       /* 48 */
    --space-9:   4rem;       /* 64 */
    --space-10:  5rem;       /* 80 */
    --space-11:  6rem;       /* 96 */
    --space-12:  8rem;       /* 128 */

    /* -------- LAYOUT -------- */
    --container-max:     1280px;
    --container-wide:    1440px;
    --container-narrow:  960px;
    --container-pad:     clamp(1.25rem, 4vw, 2rem);
    --section-py:        clamp(4rem, 10vw, 8rem);

    /* -------- RADIUS -------- */
    --r-xs:  4px;
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  20px;
    --r-2xl: 28px;
    --r-full: 9999px;

    /* -------- SHADOWS -------- */
    --shadow-xs:   0 1px 2px rgba(0, 0, 0, 0.40);
    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md:   0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg:   0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl:   0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-glow:       0 0 28px var(--color-primary-glow);
    --shadow-glow-soft:  0 0 14px rgba(201, 168, 76, 0.20);
    --shadow-accent-glow: 0 0 28px var(--color-accent-1-glow);

    /* -------- GLASSMORPHISM -------- */
    --glass-bg:        rgba(26, 26, 26, 0.65);
    --glass-bg-strong: rgba(26, 26, 26, 0.85);
    --glass-border:    rgba(255, 255, 255, 0.06);
    --glass-blur:      22px;
    --glass-blur-lg:   40px;

    /* -------- TRANSITIONS -------- */
    --ease-standard:  cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:        cubic-bezier(0.4, 0, 1, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

    --dur-fast:    0.15s;
    --dur-base:    0.30s;
    --dur-slow:    0.55s;
    --dur-slower:  0.80s;

    --transition-base: color var(--dur-base) var(--ease-standard),
                       background-color var(--dur-base) var(--ease-standard),
                       border-color var(--dur-base) var(--ease-standard),
                       box-shadow var(--dur-base) var(--ease-standard),
                       transform var(--dur-base) var(--ease-standard),
                       opacity var(--dur-base) var(--ease-standard);

    /* -------- Z-INDEX -------- */
    --z-base:    1;
    --z-raised:  10;
    --z-cursor:  50;
    --z-header:  100;
    --z-overlay: 900;
    --z-menu:    950;
    --z-modal:   1000;
    --z-toast:   1100;

    /* Scrollbar */
    --scrollbar-width: 10px;
    color-scheme: dark;
}

/* ==========================================================================
   2. RESET / NORMALIZE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg);
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    background: var(--color-bg);
    background-image: var(--gradient-hero);
    background-attachment: fixed;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--dur-slow) var(--ease-standard),
                color var(--dur-slow) var(--ease-standard);
}

/* Scrollbar custom */
::-webkit-scrollbar { width: var(--scrollbar-width); height: var(--scrollbar-width); }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent-1));
    border-radius: var(--r-full);
    border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

img, svg, video, canvas, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--color-primary-hover);
}

ul, ol {
    list-style: none;
}

hr {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-6) 0;
}

::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* Focus visibile (accessibilità) */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

/* Riduce movimento per chi lo richiede */
@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;
    }
}

/* ==========================================================================
   3. TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--letter-tight);
    color: var(--color-text);
    text-wrap: balance;
}

h1, .h1 {
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
}
h2, .h2 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-4);
}
h3, .h3 { font-size: var(--fs-2xl); }
h4, .h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
}

.display {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
    max-width: 68ch;
    text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

.lead {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
}

small, .small {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-tech {
    background: var(--gradient-accent-tech);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.95em;
}

code {
    padding: 0.15em 0.4em;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--r-xs);
    color: var(--color-primary);
}

/* ==========================================================================
   4. LAYOUT — container, grid, section
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}
.container-wide   { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

.section {
    position: relative;
    padding-block: var(--section-py);
    overflow: hidden;
}
.section-alt     { background: var(--color-bg-alt); }
.section-surface { background: var(--color-surface); }

.section-header {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: var(--space-9);
    text-align: center;
}
.section-header .label { margin-bottom: var(--space-3); }
.section-header h2     { margin-bottom: var(--space-4); }
.section-header p      {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin-inline: auto;
}

.section-divider {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 20%, 260px);
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.35;
    pointer-events: none;
}
.section-divider--top    { top: 0; }
.section-divider--bottom { bottom: 0; }

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-5);
}
.grid-2  { grid-template-columns: repeat(2,  minmax(0, 1fr)); }
.grid-3  { grid-template-columns: repeat(3,  minmax(0, 1fr)); }
.grid-4  { grid-template-columns: repeat(4,  minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-auto-fit-lg {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Flex helpers */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ==========================================================================
   5. COMPONENTS — Buttons
   ========================================================================== */
.btn {
    --btn-bg:          transparent;
    --btn-color:       var(--color-text);
    --btn-border:      var(--color-border);
    --btn-shadow:      none;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.9em 1.8em;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--letter-wide);
    line-height: 1;
    color: var(--btn-color);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--r-full);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: var(--transition-base);
}

/* Shine sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-shimmer);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease-out);
    z-index: -1;
    pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    --btn-bg:     var(--gradient-primary);
    --btn-color:  var(--color-bg);
    --btn-border: transparent;
    --btn-shadow: var(--shadow-glow-soft);
    font-weight: var(--fw-semibold);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-bg);
}

.btn-outline {
    --btn-bg:     rgba(201, 168, 76, 0.04);
    --btn-color:  var(--color-primary);
    --btn-border: rgba(201, 168, 76, 0.45);
}
.btn-outline:hover {
    --btn-bg:     rgba(201, 168, 76, 0.10);
    --btn-border: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-soft);
}

.btn-ghost {
    --btn-bg:     transparent;
    --btn-color:  var(--color-text-muted);
    --btn-border: transparent;
}
.btn-ghost:hover {
    --btn-color: var(--color-text);
    --btn-bg:    rgba(255, 255, 255, 0.04);
}

.btn-sm { padding: 0.65em 1.3em; font-size: var(--fs-xs); }
.btn-lg { padding: 1.1em 2.2em; font-size: var(--fs-base); }

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
}

.btn-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ==========================================================================
   6. COMPONENTS — Cards
   ========================================================================== */
.card {
    position: relative;
    padding: var(--space-6);
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition-base);
    overflow: hidden;
    isolation: isolate;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-border);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-standard);
    z-index: -2;
    border-radius: inherit;
}

.card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--color-bg-card);
    border-radius: inherit;
    z-index: -1;
}

.card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
    background: var(--color-primary-soft);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--r-md);
    color: var(--color-primary);
    transition: var(--transition-base);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon {
    background: rgba(201, 168, 76, 0.18);
    box-shadow: var(--shadow-glow-soft);
}

.card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.card p  { font-size: var(--fs-sm); margin-bottom: 0; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-primary);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   7. COMPONENTS — Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.35em 0.9em;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--letter-wide);
    border-radius: var(--r-full);
    background: var(--color-primary-soft);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--color-primary);
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.badge-secondary {
    background: rgba(45, 74, 62, 0.20);
    border-color: rgba(45, 74, 62, 0.40);
    color: #5A8874;
}
.badge-accent {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--color-accent-1);
}

/* ==========================================================================
   8. COMPONENTS — Form fields
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
.form-label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}
.form-label .req { color: var(--color-primary); }

.form-control {
    width: 100%;
    padding: 0.9em 1.1em;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    transition: var(--transition-base);
}
.form-control::placeholder { color: var(--color-text-dim); }
.form-control:hover { border-color: var(--color-border-strong); }
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.form-control.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.10);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.form-hint  { font-size: var(--fs-xs); color: var(--color-text-dim); }
.form-error { font-size: var(--fs-xs); color: var(--color-danger); }

/* Checkbox/radio custom */
.form-check {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}
.form-check input[type="radio"] { border-radius: 50%; }
.form-check input:checked {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
}
.form-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%230E0E0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-6'/></svg>") no-repeat center / contain;
}
.form-check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--color-bg);
}

/* ==========================================================================
   9. COMPONENTS — Glow orbs (decorative)
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
    opacity: 0.55;
    z-index: 0;
}
.glow-orb--primary   { background: var(--color-primary-glow); }
.glow-orb--accent-1  { background: var(--color-accent-1-glow); }
.glow-orb--accent-2  { background: var(--color-accent-2-glow); }
.glow-orb--secondary { background: var(--color-secondary-glow); }

/* ==========================================================================
   10. UTILITY
   ========================================================================== */
.hidden { display: none !important; }
.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;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-primary   { color: var(--color-primary); }
.text-muted     { color: var(--color-text-muted); }
.text-dim       { color: var(--color-text-dim); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.py-section { padding-block: var(--section-py); }

.relative { position: relative; }
.absolute { position: absolute; }

.full-width { width: 100%; }
.no-scroll  { overflow: hidden !important; }

/* Skip link (accessibilità) */
.skip-link {
    position: absolute;
    top: -60px;
    left: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: var(--r-sm);
    font-weight: var(--fw-semibold);
    z-index: var(--z-toast);
    transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: var(--color-bg); }

/* Loading state */
.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Custom cursor area — disabilitato, si usa il cursore di default del browser */
/* body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
} */
