/* ==========================================================================
   Valentina Semeraro – Logopedista
   Foglio di stile principale
   --------------------------------------------------------------------------
   1. Font
   2. Variabili (colori, spaziature, tipografia)
   3. Reset e base
   4. Utilità e accessibilità
   5. Layout
   6. Header e navigazione
   7. Pulsanti
   8. Home
   9. Pagine interne (hero, breadcrumb, testo, sidebar)
   10. Componenti (liste, note, embed, eventi…)
   11. Contatti e modulo
   12. Footer
   13. Movimento ridotto e stampa
   ========================================================================== */

/* 1. Font – ospitati sul sito (niente richieste a Google Fonts: più privacy e velocità) */
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-var.woff2") format("woff2-variations");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* 2. Variabili */
:root {
    color-scheme: light;

    --c-bg: #fbf9f5;
    --c-surface: #ffffff;
    --c-tint: #eef3f1;
    --c-tint-2: #e2ebe7;
    --c-ink: #1c2a30;
    --c-muted: #4f5f66;
    --c-line: #dbe2de;
    --c-primary: #1f5c66;
    --c-primary-hover: #164a53;
    --c-primary-soft: #d8e8ea;
    --c-accent: #a8573a;
    --c-accent-soft: #f6e7df;
    --c-focus: #d4851f;
    --c-success: #1e6b43;
    --c-success-bg: #e6f3eb;
    --c-error: #a3262e;
    --c-error-bg: #fbeaea;

    --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-head: "Fraunces", Georgia, "Times New Roman", serif;

    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
    --fs-h2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
    --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
    --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);

    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(28, 42, 48, .06), 0 8px 24px rgba(28, 42, 48, .06);
    --shadow-lg: 0 2px 4px rgba(28, 42, 48, .06), 0 20px 48px rgba(28, 42, 48, .10);

    --container: 1180px;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    --header-h: 76px;
}

/* 3. Reset e base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, h4 {
    font-family: var(--f-head);
    font-weight: 560;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 520; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p, ul, ol, dl {
    margin: 0 0 1.1em;
}

a {
    color: var(--c-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color .15s ease, text-decoration-color .15s ease;
}

a:hover {
    color: var(--c-primary-hover);
    text-decoration-thickness: 2px;
}

strong { font-weight: 700; }

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

address { font-style: normal; }

/* 4. Utilità e accessibilità */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: .75rem 1.25rem;
    background: var(--c-ink);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

main:focus { outline: none; }

/* 5. Layout */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section);
}

.section-tinted {
    background: var(--c-tint);
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: .4em;
}

.section-lead {
    font-size: var(--fs-lead);
    color: var(--c-muted);
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

/* 6. Header e navigazione */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--c-line);
    box-shadow: 0 4px 20px rgba(28, 42, 48, .05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--c-ink);
    flex-shrink: 0;
}

.brand:hover { color: var(--c-ink); }

.brand-logo {
    width: auto;
    height: 52px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-role {
    font-size: .8125rem;
    color: var(--c-muted);
    letter-spacing: .02em;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a:not(.btn) {
    display: block;
    color: var(--c-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: .9375rem;
    border-radius: 8px;
}

.main-nav a[aria-current="page"],
.main-nav a.is-parent {
    color: var(--c-primary);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem .9rem;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-ink);
    font: 700 .9375rem var(--f-body);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu desktop */
@media (min-width: 1100px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .main-nav ul {
        display: flex;
        gap: .15rem;
    }

    .main-nav a:not(.btn) {
        padding: .5rem .6rem;
        position: relative;
        white-space: nowrap;
    }

    .btn-call { white-space: nowrap; }
}

@media (min-width: 1100px) and (max-width: 1299.98px) {
    .brand-text { display: none; }
}

@media (min-width: 1100px) {

    .main-nav a:not(.btn)::after {
        content: "";
        position: absolute;
        left: .7rem;
        right: .7rem;
        bottom: .3rem;
        height: 2px;
        background: var(--c-primary);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
    }

    .main-nav a:not(.btn):hover::after,
    .main-nav a[aria-current="page"]::after,
    .main-nav a.is-parent::after {
        transform: scaleX(1);
    }
}

/* Menu mobile */
@media (max-width: 1099.98px) {
    .js .nav-toggle { display: inline-flex; }

    .js .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .js .main-nav.is-open { display: block; }

    .main-nav a:not(.btn) {
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--c-line);
        font-size: 1.0625rem;
    }

    .main-nav .btn-call {
        margin-top: 1.25rem;
        width: 100%;
        justify-content: center;
    }

    /* Senza JavaScript il menu resta visibile sotto il logo */
    html:not(.js) .header-inner { flex-wrap: wrap; }
    html:not(.js) .main-nav { width: 100%; padding-bottom: 1rem; }
}

@media (max-width: 420px) {
    .brand-logo { height: 42px; }
    .brand-name { font-size: 1.05rem; }
    .nav-toggle-label { display: none; }
}

/* 7. Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--f-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(31, 92, 102, .22);
}

.btn-primary:hover {
    background: var(--c-primary-hover);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.btn-ghost:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary-hover);
}

.btn-call {
    background: var(--c-primary-soft);
    color: var(--c-primary-hover);
    min-height: 44px;
    padding: .55rem 1.1rem;
    font-size: .9375rem;
}

.btn-call:hover {
    background: var(--c-primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--c-primary-hover);
}

.btn-light:hover {
    background: var(--c-bg);
    color: var(--c-primary-hover);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: #fff;
}

.btn-block { width: 100%; }

/* 8. Home */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--section);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -35% 45%;
    height: 90%;
    background: radial-gradient(closest-side, var(--c-tint-2), transparent);
    z-index: -1;
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.hero h1 {
    font-size: var(--fs-display);
    font-weight: 480;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: .5em;
}

.hero .h1-sub {
    display: block;
    margin-top: .35em;
    font-size: .42em;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0;
    color: var(--c-primary);
}

.hero-lead {
    font-size: var(--fs-lead);
    color: var(--c-muted);
    max-width: 56ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.25rem;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    padding: 1.5rem 0 0;
    margin: 0;
    border-top: 1px solid var(--c-line);
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.hero-facts li { max-width: 17rem; line-height: 1.45; }

.hero-facts strong {
    display: block;
    font-family: var(--f-head);
    font-size: 1.5rem;
    font-weight: 560;
    color: var(--c-ink);
}

.hero-media {
    position: relative;
    margin: 0;
    padding: clamp(1rem, .5rem + 2vw, 2rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--c-surface), var(--c-tint));
    box-shadow: var(--shadow-lg);
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: calc(var(--radius-lg) - 8px);
}

.hero-signature {
    position: absolute;
    left: clamp(-.5rem, -2vw, -1.5rem);
    bottom: clamp(-1.5rem, -3vw, -2rem);
    width: min(62%, 300px);
    padding: .75rem 1.1rem;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 899.98px) {
    .hero-media { margin-bottom: 1.5rem; }
    .hero-signature { left: 1rem; bottom: -1.5rem; }
}

.intro-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 800px) {
    .intro-grid { grid-template-columns: repeat(3, 1fr); }
}

.intro-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s ease, transform .2s ease;
}

.intro-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.intro-card h3 { font-size: 1.5rem; }

.intro-card h3 a {
    color: var(--c-ink);
    text-decoration: none;
}

.intro-card h3 a:hover { color: var(--c-primary); }

.intro-card p {
    color: var(--c-muted);
    flex-grow: 1;
}

.more {
    align-self: flex-start;
    font-weight: 700;
    text-decoration: none;
}

.more::after {
    content: " →";
    display: inline-block;
    transition: transform .15s ease;
}

.more:hover::after { transform: translateX(3px); }

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.4rem;
    background: var(--c-surface);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--c-ink);
    border: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.area-card:hover {
    color: var(--c-ink);
    border-color: var(--c-primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.area-num {
    font-family: var(--f-head);
    font-size: 1.75rem;
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.area-card-title {
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-weight: 560;
    line-height: 1.3;
    margin-bottom: .4rem;
}

.area-card-hint {
    font-size: var(--fs-sm);
    color: var(--c-muted);
    line-height: 1.5;
}

.method-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .method-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 4.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-muted);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.25rem;
    top: 1.15rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary-hover);
    font-weight: 700;
}

.steps strong {
    display: block;
    color: var(--c-ink);
}

.cta-band {
    background: var(--c-primary);
    color: #fff;
    padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.cta-inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .cta-inner { grid-template-columns: 1.5fr auto; }
}

.cta-band h2 {
    color: #fff;
    margin-bottom: .3em;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    max-width: 60ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* 9. Pagine interne */
.page-hero {
    padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
    background: var(--c-tint);
    border-bottom: 1px solid var(--c-line);
}

.page-hero h1 {
    margin: 0;
    max-width: 22ch;
}

.h1-sub {
    display: block;
    margin-top: .4rem;
    font-family: var(--f-body);
    font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--c-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: .35rem;
    color: #8a9a9f;
}

.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

.page-layout {
    display: grid;
    gap: 3rem;
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section);
}

@media (min-width: 960px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 4rem;
        align-items: start;
    }
}

.page-full {
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section);
}

.prose {
    max-width: 72ch;
}

.prose > h2 {
    margin-top: 2.2em;
    padding-top: .2em;
}

.prose > h2:first-child { margin-top: 0; }

.prose h3 {
    margin-top: 1.6em;
    font-size: 1.25rem;
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--c-ink);
}

.prose .lead + .lead {
    margin-top: -.25em;
}

.sidebar {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .sidebar {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.card {
    padding: 1.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list a {
    display: block;
    padding: .7rem .8rem;
    margin-inline: -.8rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-ink);
    line-height: 1.35;
}

.area-list a:hover { background: var(--c-tint); color: var(--c-ink); }

.area-list a[aria-current="page"] {
    background: var(--c-primary-soft);
    box-shadow: inset 3px 0 0 var(--c-primary);
}

.area-name {
    display: block;
    font-weight: 700;
}

.area-hint {
    display: block;
    font-size: .875rem;
    color: var(--c-muted);
}

.card-contact {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.card-contact .card-title { color: #fff; }

.card-contact p { color: rgba(255, 255, 255, .9); }

.card-contact-links a {
    display: block;
    color: #fff;
    font-weight: 700;
    word-break: break-word;
}

.card-contact-links a:hover { color: #fff; }

.card-contact .btn-primary {
    background: #fff;
    color: var(--c-primary-hover);
    box-shadow: none;
}

.card-contact .btn-primary:hover { background: var(--c-bg); }

.card-contact :focus-visible { outline-color: #fff; }

/* 10. Componenti */
.list-check,
.list-dash,
.list-links {
    list-style: none;
    padding: 0;
}

.list-check li,
.list-dash li,
.list-links li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .6rem;
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f5c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.list-dash li::before {
    content: "";
    position: absolute;
    left: .2rem;
    top: .8em;
    width: .9rem;
    height: 2px;
    background: var(--c-accent);
}

.list-links li::before {
    content: "↗";
    position: absolute;
    left: .15rem;
    top: 0;
    color: var(--c-accent);
    font-weight: 700;
}

.list-links a { word-break: break-word; }

.file-hint {
    font-size: .875rem;
    color: var(--c-muted);
}

.list-numbered {
    counter-reset: n;
    list-style: none;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.list-numbered li {
    counter-increment: n;
    position: relative;
    padding: 1rem 1.25rem 1rem 3.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    line-height: 1.55;
}

.list-numbered li::before {
    content: counter(n);
    position: absolute;
    left: 1.1rem;
    top: 1rem;
    font-family: var(--f-head);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--c-accent);
    width: 1.75rem;
    text-align: center;
}

.source {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.note {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--c-tint);
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

.split {
    display: grid;
    gap: 1rem 2.5rem;
}

@media (min-width: 720px) {
    .split { grid-template-columns: 1fr 1fr; }
}

.split h2 {
    font-size: 1.35rem;
    margin-top: 1rem;
}

.links-grid section h2 {
    font-size: 1.35rem;
    margin-top: 2em;
}

.link-cards {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: .75rem;
}

.link-cards a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-ink);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.35;
}

.link-cards a::after {
    content: "→";
    color: var(--c-primary);
}

.link-cards a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary-hover);
}

.definitions div {
    padding: 1.1rem 1.4rem;
    margin-bottom: .75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.definitions dt {
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-weight: 560;
    margin-bottom: .2rem;
}

.definitions dd {
    margin: 0;
    color: var(--c-muted);
}

.people {
    list-style: none;
    padding: 0;
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.people li {
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1.4;
}

.people-role {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-accent);
}

/* Contenuti esterni caricati solo su richiesta (YouTube, Google Maps) */
.embed {
    position: relative;
    margin: 1.5rem 0 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-tint);
    border: 1px solid var(--c-line);
}

.embed-video { aspect-ratio: 16 / 9; }
.embed-map { aspect-ratio: 4 / 3; margin-bottom: 0; }

.embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.embed-consent p { max-width: 44ch; }

.embed-icon {
    color: var(--c-primary);
    margin-bottom: .75rem;
}

.embed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin: 0;
}

.empty-state {
    padding: 2rem;
    background: var(--c-surface);
    border: 1px dashed var(--c-line);
    border-radius: var(--radius-lg);
}

.empty-state p:last-child { margin: 0; }

.events {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.event {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
}

.event-date {
    display: grid;
    place-content: center;
    min-width: 5rem;
    padding: .75rem;
    border-radius: var(--radius);
    background: var(--c-primary-soft);
    color: var(--c-primary-hover);
    text-align: center;
    line-height: 1.1;
}

.event-day {
    font-family: var(--f-head);
    font-size: 2rem;
}

.event-month { font-size: .875rem; font-weight: 700; }

.event-title { font-size: 1.3rem; margin-bottom: .25rem; }
.event-meta { color: var(--c-muted); font-size: var(--fs-sm); }
.event-body p:last-child { margin-bottom: 0; }

.updated {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-line);
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.not-found { max-width: 60ch; }

/* 11. Contatti e modulo */
.page-intro {
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

.contact-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 3.5rem;
        align-items: start;
    }
}

.contact-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .75rem;
}

.contact-card {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.contact-card svg {
    grid-row: span 2;
    width: 2.75rem;
    height: 2.75rem;
    padding: .6rem;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.contact-card h3 {
    margin: 0;
    font-family: var(--f-body);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.contact-card p {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.contact-form-wrap {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-note {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.field { margin-bottom: 1.25rem; }

.field-row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 560px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.optional {
    font-weight: 400;
    color: var(--c-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .75rem .9rem;
    border: 2px solid #b9c5c0;
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink);
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:hover,
.field textarea:hover { border-color: #8fa39b; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(31, 92, 102, .18);
}

.field [aria-invalid="true"] {
    border-color: var(--c-error);
}

.field-error {
    margin: .35rem 0 0;
    color: var(--c-error);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.field-error::before { content: "⚠ "; }

.field-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .75rem;
    align-items: start;
}

.field-check input {
    width: 1.35rem;
    height: 1.35rem;
    margin: .2rem 0 0;
    accent-color: var(--c-primary);
}

.field-check label {
    font-weight: 400;
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin: 0;
}

.field-check .field-error { grid-column: 2; }

.hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-submit { width: 100%; }

@media (min-width: 560px) {
    .btn-submit { width: auto; }
}

.alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid;
}

.alert p:last-child,
.alert ul:last-child { margin-bottom: 0; }

.alert ul { padding-left: 1.2rem; }

.alert-success {
    background: var(--c-success-bg);
    border-color: var(--c-success);
    color: var(--c-success);
}

.alert-error {
    background: var(--c-error-bg);
    border-color: var(--c-error);
    color: var(--c-error);
}

.alert-error a { color: var(--c-error); }

/* 12. Footer */
.site-footer {
    background: var(--c-ink);
    color: #cfd8dc;
    font-size: var(--fs-sm);
}

.site-footer a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, .35);
}

.site-footer a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.site-footer :focus-visible { outline-color: #f2b35e; }

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.1fr 1.2fr 1fr 1.1fr; }
}

.footer-logo {
    display: inline-block;
    padding: .5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
}

.footer-claim { line-height: 1.6; }

.footer-claim strong {
    font-family: var(--f-head);
    font-size: 1.15rem;
    font-weight: 560;
    color: #fff;
}

.footer-title {
    font-family: var(--f-body);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9fb1b8;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: .6rem;
    line-height: 1.35;
}

.footer-nav a {
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-hint {
    display: block;
    font-size: .8125rem;
    color: #9fb1b8;
}

.footer-contact address { line-height: 1.9; }

.footer-vat { color: #9fb1b8; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: 1.25rem;
    font-size: .875rem;
    color: #9fb1b8;
}

.footer-bottom p { margin: 0; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 13. Movimento ridotto e stampa */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .btn { border: 2px solid ButtonText; }
    .list-check li::before { forced-color-adjust: none; }
}

@media print {
    .site-header,
    .sidebar,
    .cta-band,
    .embed,
    .contact-form-wrap,
    .skip-link,
    .footer-nav { display: none !important; }

    body { background: #fff; font-size: 11pt; }
    .page-hero { background: none; border: 0; padding: 0 0 1rem; }
    .page-layout { display: block; padding: 0; }
    .site-footer { background: none; color: #000; }
    .site-footer a { color: #000; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
