:root {
    --bg: #ffffff;
    --bg-dashboard: #f8fbeb;

    --ink: #0f172a;
    --muted: #475569;
    --muted-2: #64748b;

    /* PALETTE UFFICIALE (WordFlow) */
    --brand-900: #033d92;
    --brand-800: #045b9c;
    --brand-600: #16a0a9;
    --brand-500: #50b18d;
    --brand-400: #8bc45d;

    --tint-blue: #c2dbfc;
    --tint-teal: #c1fdf0;
    --tint-mint: #ccfab9;

    --border: rgba(15, 23, 42, 0.10);
    --border-soft: rgba(15, 23, 42, 0.08);

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-soft: rgba(239, 68, 68, .35);
    --danger-bg-hover: #fee2e2;
    --danger-shadow: rgba(239, 68, 68, .22);


    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --shadow-sm: 0 10px 26px rgba(2, 6, 23, .06);
    --shadow-md: 0 12px 32px rgba(2, 6, 23, .12);
    --shadow-hover: 0 14px 40px rgba(2, 6, 23, .14);

    --panel: #ffffff;
    --panel-alt: #fafafa;

    --muted2: var(--muted-2);
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MATERIAL SYMBOLS (icone) ===== */
.msr {
    font-family: "Material Symbols Rounded";
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

.msr--lg {
    font-size: 20px;
}

.msr--xl {
    font-size: 46px;
}

/* Skip link - nascondi ma mantieni accessibile */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand-600);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Reduce motion for users who prefer it */
@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;
    }

    * {
        transition: none !important;
    }
}