/* =============================================================
   BASE — Reset, Custom Properties, Typography
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    /* Colors */
    --color-bg:       #ffffff;
    --color-text:     #1a1a1a;
    --color-muted:    #6b7280;
    --color-border:   #e5e7eb;
    --color-accent:   #2563eb;

    /* Typography */
    --font-sans:  system-ui, -apple-system, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-mono:  ui-monospace, SFMono-Regular, monospace;

    --text-sm:   0.875rem;   /*  14px */
    --text-base: 1rem;       /*  16px */
    --text-lg:   1.125rem;   /*  18px */
    --text-xl:   1.25rem;    /*  20px */
    --text-2xl:  1.5rem;     /*  24px */
    --text-3xl:  2rem;       /*  32px */
    --text-4xl:  2.5rem;     /*  40px */

    --leading-tight:  1.25;
    --leading-normal: 1.6;
    --leading-prose:  1.8;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --container-max:    1200px;
    --container-narrow: 760px;
    --container-pad:    clamp(1rem, 4vw, 2rem);
    --header-height:    80px;   /* aggiorna se cambia il logo */

    /* Transitions */
    --transition: 150ms ease;

    /* Border radius */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;
}

/* ── Modern Reset ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--leading-tight);
    font-weight: 700;
}
