/* ==========================================================================
   www.gestionaleoratorio.it — foglio di stile unico
   SGOL per gli oratori: stessi colori, font e motivo a pixel di www.sgol.app.
   Titoli Bricolage Grotesque, testo Figtree, etichette in maiuscolo light.
   ========================================================================== */

:root {
    --ink: #0E1F16;
    --ink-2: #17301F;
    --ink-line: #2D4237;
    --green: #0A7A2F;
    --green-dark: #003D15;
    --lime: #C6F432;
    --paper: #F6F7F2;
    --surface: #FFFFFF;
    --line: #DDE3DA;
    --line-soft: #EEF1EC;
    --text: #0E1F16;
    --text-2: #3C4B42;
    --muted: #4A5A50;
    --on-dark: #F6F7F2;
    --on-dark-2: #C9D4CC;
    --on-dark-3: #A9B6AC;

    /* declinazioni: solo nelle rispettive schede */
    --oratorio: #C2335F;
    --oratorio-dark: #A4284C;
    --centroestivo: #1F7A8C;
    --centroestivo-dark: #155B68;
    --sgolia: #6A5FD8;
    --sgolia-dark: #4F45B8;

    /* semaforo */
    --ok: #0A7A2F;
    --warn: #E8A317;
    --warn-text: #7A4F00;
    --ko: #C23B22;
    --ko-text: #A12F1A;

    --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-s: 12px;
    --radius-m: 18px;
    --radius-l: 28px;
    --wrap: 1200px;
    --gutter: 24px;
    --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--lime); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.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: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- etichette e ambiti (maiuscolo light) ---------- */
.eyebrow {
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.on-dark .eyebrow { color: var(--on-dark-3); }

.ambiti {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    font-weight: 300; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.ambiti li { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.ambiti li::before { content: ""; width: 6px; height: 6px; background: var(--green); flex: none; }
.ambiti li { gap: 10px; }
.on-dark .ambiti { color: var(--on-dark-3); }
.on-dark .ambiti li::before { background: var(--lime); }

/* ---------- bottoni ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border-radius: 999px;
    font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--lime { background: var(--lime); color: var(--ink); font-weight: 700; }
.btn--lime:hover { background: #fff; color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(246, 247, 242, .5); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--ink); }
.btn--sgolia { background: var(--sgolia); color: #fff; }
.btn--sgolia:hover { background: var(--sgolia-dark); color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

.badge {
    display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
    padding: 6px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); letter-spacing: .02em;
}
.badge--soft { background: var(--line-soft); color: var(--muted); }

/* ---------- navigazione ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 247, 242, .88);
    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;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 35px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.brand-name small { font-weight: 500; font-size: inherit; color: var(--green); }
.brand:hover { color: var(--ink); }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px;
}
.nav-links a:not(.btn):hover { background: var(--line-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav-links .nav-ai img { width: 30px; height: auto; }
.nav-links .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; margin-left: 8px; }

.nav-toggle {
    display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
    border-radius: 10px; padding: 12px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a:not(.btn) { min-height: 48px; font-size: 17px; }
    .nav-links .btn { margin: 10px 0 0; }
}

/* nav su pagine scure (sport) */
.site-nav--dark { background: rgba(14, 31, 22, .9); }
.site-nav--dark.is-scrolled { border-bottom-color: var(--ink-line); }
.site-nav--dark .brand,
.site-nav--dark .brand:hover { color: var(--on-dark); }
.site-nav--dark .brand img { background: var(--paper); border-radius: 8px; padding: 3px; }

/* ---------- sezioni ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; }
.section-head p.lead { font-size: 19px; color: var(--text-2); max-width: 60ch; }
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark .section-head p.lead { color: var(--on-dark-2); }
.on-dark a:not(.btn) { color: var(--lime); }
.on-dark a:not(.btn):hover { color: #fff; }


/* ---------- CTA finale ---------- */
.cta-box {
    background: var(--ink); color: var(--on-dark); border-radius: var(--radius-l);
    padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.cta-box h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.cta-box p { color: var(--on-dark-2); font-size: 18px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-alt { font-size: 15px; color: var(--on-dark-3) !important; }
.cta-alt a { color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font: 300 12px/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--green); text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand p { max-width: 34ch; }
.footer-motto { font: 700 15px/1 var(--font-display); color: var(--green); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; }
.footer-bottom a { color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- modale contatto ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal[aria-hidden="false"] { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(14, 31, 22, .6); }
.modal-content {
    position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--surface); border-radius: var(--radius-m); padding: clamp(22px, 4vw, 36px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal-content h2 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.modal-desc { color: var(--text-2); margin-bottom: 20px; }
.modal-close {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink);
}
.modal-close:hover { background: var(--line-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
    font: 400 16px/1.4 var(--font-body); color: var(--ink);
    padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form-field .field-error { border-color: var(--ko); }
.error-msg { font-size: 13px; color: var(--ko-text); min-height: 0; }
.form-actions { margin-top: 20px; }
.form-legal, .form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- comparsa allo scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js:not(.static) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .js .reveal.is-visible { opacity: 1; transform: none; }
}


/* ==========================================================================
   Pagina SgolIA
   ========================================================================== */
.ai-page { background: #FBFAFF; }
.ai-hero { padding: 56px 0 88px; text-align: center; position: relative; overflow: hidden; }
.ai-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ai-hero .ai-logo { width: min(420px, 80%); }
.ai-hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; }
.ai-hero h1 span { color: var(--sgolia); }
.ai-hero p.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); max-width: 58ch; }
.ai-hero .hero-actions { justify-content: center; }
.ai-dots span { position: absolute; border-radius: 50%; opacity: .55; pointer-events: none; }

.chat-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; }
.chat { background: var(--surface); border: 1px solid #E4E1F7; border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.chat h2, .asks h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--sgolia); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #F3F1FE; color: var(--ink); border-bottom-left-radius: 4px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.msg.ai img { width: 36px; height: 36px; }
.msg.ai small { display: block; margin-top: 6px; font-size: 13px; color: #5A5480; }
.msg .ctx { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .22); margin-bottom: 6px; }
.asks { background: var(--surface); border: 1px solid #E4E1F7; border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.asks .group { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 300; margin-top: 8px; }
.asks span.q { display: block; font-size: 15px; padding: 10px 14px; border-radius: 12px; background: #F3F1FE; color: #3A3196; }
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; } .msg { max-width: 100%; } }

.priv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--surface); border: 1px solid #E4E1F7; border-radius: var(--radius-l); padding: clamp(26px, 4vw, 44px); }
.priv h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.priv ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.priv li { position: relative; padding-left: 28px; color: var(--text-2); }
.priv li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--sgolia); }
.priv li b { color: var(--ink); }
@media (max-width: 760px) { .priv { grid-template-columns: 1fr; } .priv img { width: 120px; } }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit { background: var(--surface); border: 1px solid #E4E1F7; border-radius: var(--radius-m); padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.benefit img { width: 96px; height: 96px; }
.benefit h3 { font-size: 20px; font-weight: 800; }
.benefit p { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

.where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.where a { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; text-decoration: none; color: var(--ink); }
.where a:hover { border-color: var(--ink); color: var(--ink); }
.where img { height: 44px; width: auto; align-self: flex-start; }
.where .sport-mark { display: flex; align-items: center; gap: 10px; height: 44px; font: 800 22px/1 var(--font-display); }
.where .sport-mark img { height: 34px; }
.where span { font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pagine legali e 404
   ========================================================================== */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin-bottom: 18px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 34px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal .updated { margin-top: 36px; font-size: 14px; color: var(--muted); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.notfound h1 { font-size: clamp(56px, 10vw, 120px); font-weight: 800; color: var(--green); letter-spacing: -0.05em; }
.notfound p { font-size: 19px; color: var(--text-2); max-width: 40ch; }

/* ==========================================================================
   SGOL per gli oratori
   ========================================================================== */
.brand-sub {
    font-weight: 300; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
    color: var(--text-2); border-left: 1px solid #A9B6AC; padding-left: 10px; white-space: nowrap;
}
@media (max-width: 440px) { .site-nav .brand-sub { white-space: normal; max-width: 11ch; letter-spacing: .12em; } }
.section--white { background: var(--surface); }
.lead-link { font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -0.04em; }
.hero h1 .accent { color: var(--green); display: block; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--text-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-since { font-weight: 300; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.ambiti-band { border-block: 1px solid var(--line); padding: 16px 0; }
.ambiti-band .ambiti { justify-content: center; }

/* ---------- schermate illustrative ---------- */
.tablet { background: var(--ink); border-radius: 26px; padding: 14px; }
.screen { background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 15px; line-height: 1.4; }
.screen-bar { background: var(--green); color: #fff; padding: 12px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-weight: 600; }
.screen-bar span { background: #fff; color: var(--ink); border-radius: 999px; padding: 2px 11px; font-size: 13px; }
.screen-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.person-pic { width: 46px; height: 46px; border-radius: 50%; background: var(--line); flex: none; }
.person-name { flex: 1 1 180px; min-width: 0; }
.person-name small { display: block; font-size: 14px; color: var(--muted); }
.pill-ok { background: #E4F2E7; color: var(--green-dark); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.pill-warn { background: #FBF0D5; color: var(--warn-text); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.screen-label { font-weight: 300; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 7px; font-size: 14px; font-weight: 600; }
.opts span { border: 1px solid #A9B6AC; border-radius: 9px; padding: 8px 12px; }
.opts .on { background: var(--green); border-color: var(--green); color: #fff; }
.opts--soft span { background: var(--line-soft); border-color: transparent; }
.screen-go { background: var(--green); color: #fff; border-radius: 11px; padding: 13px; text-align: center; font-weight: 700; letter-spacing: .03em; }
.mock-note { font-size: 13px; color: var(--muted); text-align: right; margin-top: 8px; padding-right: 6px; }
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); }
.rows > div:last-child { border-bottom: 0; }
.rows b { font-variant-numeric: tabular-nums; }
.rows .tot { font-weight: 700; background: var(--paper); padding-inline: 10px; border-radius: 8px; border-bottom: 0; }
.rows .warn { background: #FBF0D5; color: var(--warn-text); padding-inline: 10px; border-radius: 8px; border-bottom: 0; }
.screen-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .screen-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- griglia moduli ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mod-tile {
    display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 22px; border-radius: var(--radius-m);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.mod-tile:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.mod-tile b { font: 800 23px/1.1 var(--font-display); letter-spacing: -0.02em; }
.mod-tile span { color: var(--text-2); font-size: 16px; line-height: 1.45; }
.mod-tile em { margin-top: auto; font-style: normal; font-weight: 600; font-size: 15px; color: var(--green); }
.mod-tile--ink { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.mod-tile--ink:hover { color: var(--on-dark); border-color: var(--green); }
.mod-tile--ink span { color: var(--on-dark-2); }
.mod-tile--ink em { color: var(--lime); }
.mod-tile--green { background: var(--green); border-color: var(--green); color: #fff; }
.mod-tile--green:hover { color: #fff; border-color: var(--green-dark); }
.mod-tile--green span, .mod-tile--green em { color: #fff; }
.mod-tile--lime { background: var(--lime); border-color: var(--lime); }
.mod-tile--lime span, .mod-tile--lime em { color: var(--ink); }
.mod-tile--ai { background: #EDEBFB; border-color: #E4E1F7; }
.mod-tile--ai img { width: 62px; height: auto; }
.mod-tile--ai em { color: var(--sgolia-dark); }
@media (max-width: 1040px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: minmax(0, 1fr); } .mod-tile { min-height: 0; } }

/* ---------- l'anno pastorale ---------- */
.anno .section-head { margin-bottom: 32px; }
.anno-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.anno-tabs[hidden] { display: none; }
.anno-tab {
    min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--ink-line); cursor: pointer;
    background: var(--ink-2); color: var(--on-dark); font: 600 16px/1.2 var(--font-body);
}
.anno-tab:hover { border-color: var(--lime); }
.anno-tab[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.anno-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.anno-panel[hidden] { display: none; }
.anno-panel + .anno-panel { margin-top: 40px; }
.anno-panel h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; line-height: 1.08; }
.anno-mods { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; list-style: none; padding: 0; }
.anno-mods li { font-size: 13px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--ink-line); border-radius: 6px; color: var(--on-dark-2); }
.anno-foot { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--ink-line); color: var(--on-dark-2); }
.anno-foot a { color: var(--lime); font-weight: 600; white-space: nowrap; }
.anno-foot a:hover { color: #fff; }
@media (max-width: 800px) { .anno-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; } .anno-tab { flex: 1 1 auto; } }

/* ---------- elenchi con pixel ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 24px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; background: var(--green); }
.on-dark .checks li { color: var(--on-dark-2); }
.on-dark .checks li::before { background: var(--lime); }

/* ---------- blocchi affiancati ---------- */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature--flip > :first-child { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature-copy h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.feature-copy > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; }
.feature-copy > p.fineprint { font-size: 14px; color: var(--muted); }
.shot { width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
@media (max-width: 900px) {
    .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .feature--flip > :first-child { order: 0; }
    .feature + .feature { margin-top: 64px; }
}

/* ---------- fondamenta ---------- */
.found { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.found > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.section--white .found > div, .module:nth-of-type(even) .found > div { background: var(--paper); }
.found b { display: block; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.015em; margin-bottom: 6px; }
.found span { color: var(--text-2); font-size: 16px; }
@media (max-width: 900px) { .found { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .found { grid-template-columns: minmax(0, 1fr); } }

/* ---------- SgolIA in home ---------- */
.ai-band { background: #F3F1FE; }
.ai-band .feature-copy img { width: 170px; height: auto; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips span { background: #fff; border: 1px solid #E4E1F7; color: #3A3196; border-radius: 999px; padding: 6px 13px; font-size: 15px; }

/* ---------- è SGOL ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { min-height: 118px; border-radius: 16px; padding: 16px; display: flex; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); font-weight: 600; line-height: 1.25; }
.tile--logo { grid-column: span 2; background: var(--paper); border-color: var(--line); align-items: center; justify-content: center; }
.tile--logo img { width: 124px; height: auto; }
.tile--year { background: var(--lime); border-color: var(--lime); font: 800 36px/1 var(--font-display); letter-spacing: -0.03em; }
.tile--green { background: var(--green); border-color: var(--green); color: #fff; }
.tile--ink { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.feature-copy > p.motto { font: 800 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--green); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 8px; font: 800 20px/1 var(--font-display); margin-bottom: 6px; }
.steps h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- domande ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); }
.faq summary { cursor: pointer; padding: 14px 20px; min-height: 48px; font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq details[open] summary { color: var(--green-dark); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- pagina moduli ---------- */
.page-hero { padding: 64px 0 56px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -0.04em; max-width: 16em; }
.page-hero h1 span { color: var(--lime); }
.page-hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--on-dark-2); max-width: 44em; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.jump a { color: var(--on-dark); }
.on-dark .jump a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.module { padding: 80px 0; }
.module:nth-of-type(even) { background: var(--surface); }
.module-head { max-width: 760px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.module-head h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; }
.module-head p:not(.eyebrow) { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); }
.module-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.panel { border-radius: 22px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.module:nth-of-type(even) .panel { background: var(--paper); }
.panel h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.module .panel--ink, .module:nth-of-type(even) .panel--ink { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.situations { display: flex; flex-direction: column; gap: 12px; color: var(--on-dark-2); }
.situations b { color: var(--on-dark); }
.module-side { display: flex; flex-direction: column; gap: 12px; }
.ask-panel { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; background: #EDEBFB; border-radius: 22px; padding: 20px 24px; }
.ask-panel img { width: 42px; height: 42px; }
.ask-panel b { color: var(--sgolia-dark); }
.ask-panel p { color: var(--text-2); font-size: 16px; }
.ask-panel p + p { margin-top: 4px; }
.tag-next { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--sgolia-dark); }
.module-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.module-link { margin-top: 16px; font-weight: 600; }
@media (max-width: 860px) { .module-grid { grid-template-columns: minmax(0, 1fr); } .module { padding: 60px 0; } }

.scenari { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.scenario { background: var(--ink-2); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.scenario h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.scenario q { color: var(--lime); font-size: 16px; margin-top: auto; }
.scenario .checks { font-size: 16px; gap: 6px; }
.scenario--cta { background: var(--lime); color: var(--ink); align-items: flex-start; }
.scenario--cta p { color: var(--ink); }
.scenario--cta .btn { margin-top: auto; }

/* ---------- pagina SgolIA ---------- */
.ai-page .section { padding: 64px 0; }
.ai-hero .eyebrow { color: var(--sgolia-dark); }
.ai-demo-note { margin-top: 2px; font-size: 13px; color: var(--muted); text-align: right; }
