/* La tipografia mantiene alternative locali quando i caratteri non sono disponibili. */
@font-face {
    font-family: Inter;
    src: url('../fonts/inter.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url('../fonts/cormorant-garamond.ttf') format('truetype');
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

body {
    background: var(--smc-bg);
    color: var(--smc-text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

h1, h2, h3, .main-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
}

a {
    color: var(--smc-accent);
    text-underline-offset: .22em;
}

a:hover {
    color: var(--smc-accent-dark);
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--smc-blue);
    outline-offset: 5px;
}

img {
    max-width: 100%;
    height: auto;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content iframe {
    max-width: 100%;
}

.smc-home *, .smc-home *::before, .smc-home *::after {
    box-sizing: border-box;
}

.smc-home h2 {
    font-size: clamp(36px, 3.5vw, 52px);
    line-height: 1.15;
    margin-bottom: 30px;
}

.smc-home h3 {
    line-height: 1.25;
}

.smc-home p:last-child {
    margin-bottom: 0;
}

.smc-home [id] {
    scroll-margin-top: 32px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

}
