/* Ottimizzazioni base */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Stili base del corpo */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #1a1a1a;
}

/* Stili per i titoli */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", system-ui;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Inter funziona meglio con un tracking leggermente più stretto */
}

/* Sistema di scale tipografiche */
.text-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Ottimizzazioni per la leggibilità */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
}

/* Miglioramenti per il contrasto e la leggibilità */
@media (prefers-color-scheme: dark) {
    body {
        color: #f3f4f6;
    }
}