*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-principale);
    background-color: var(--colore-sfondo-pagina);
    color: var(--colore-testo-principale);
    line-height: var(--interlinea-normale);
    font-weight: var(--peso-normale);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-titoli);
    font-weight: var(--peso-grassetto);
    color: var(--colore-testo-principale);
    margin-bottom: var(--spazio-4);
    line-height: var(--interlinea-stretta);
}

h1 {
    font-size: var(--dimensione-font-4xl);
}

h2 {
    font-size: var(--dimensione-font-3xl);
}

h3 {
    font-size: var(--dimensione-font-2xl);
}

h4 {
    font-size: var(--dimensione-font-xl);
}

h5 {
    font-size: var(--dimensione-font-lg);
}

h6 {
    font-size: var(--dimensione-font-md);
}

p {
    margin-bottom: var(--spazio-4);
    max-width: 70ch;
}

a {
    color: var(--colore-primario);
    text-decoration: none;
    transition: var(--transizione-veloce);
}

a:hover {
    color: var(--colore-primario-scuro);
    text-decoration: none;
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--colore-sfondo-pagina);
}

::-webkit-scrollbar-thumb {
    background: var(--colore-testo-chiaro);
    border-radius: var(--raggio-tondo);
    border: 2px solid var(--colore-sfondo-pagina);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--colore-primario);
}

::selection {
    background-color: var(--colore-primario-trasparente);
    color: var(--colore-primario-scuro);
}