/* ============================================
   CSS Reset - Social Facile Onboarding
   ============================================ */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin/padding */
* {
    margin: 0;
    padding: 0;
}

/* HTML & Body */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;   /* altezza visibile reale (Safari iPhone con le barre); 100vh come ripiego */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    line-height: 1.2;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove outline on focus (accessibility: ripristinare con custom style) */
:focus {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
