/* =========================================================================
 * CAF CISL Toscana - Home: sezione «I numeri veri» della campagna fiscale 2026.
 * Stessa grafica della sezione «Tre numeri, nessun arrotondamento» della landing
 * /grazie-730.html. Tutto e' isolato sotto .cafnum: la sezione non eredita gli
 * stili del tema e non ne modifica nessuno. Caricato solo in home page.
 * Markup: towngov_child_home_numeri_markup() in functions.php.
 * ========================================================================= */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/fraunces-normal-300_800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/fraunces-italic-300_800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Hanken Grotesk";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/hanken-grotesk-normal-400_800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-mono-normal-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cafnum {
    --paper: #F4EFE3;
    --ink: #13261D;
    --ink-soft: #3F5147;
    --ink-faint: #5A6A60;
    --green-900: #0E3325;
    --green-800: #114532;
    --green-700: #1A6346;
    --green-600: #2A8A61;
    --gold: #BC8A38;
    --gold-text: #8A6418;
    --line: rgba(14, 51, 37, .14);
    --line-strong: rgba(14, 51, 37, .26);
    --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --maxw: 1180px;
    --gut: clamp(16px, 4.4vw, 32px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: clamp(64px, 9.4vw, 128px) 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.62 var(--sans);
    letter-spacing: .004em;
    text-align: start;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}
/* grana della carta, come nella landing */
.cafnum::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .05;
    pointer-events: none;
}
.cafnum *,
.cafnum *::before,
.cafnum *::after {
    box-sizing: border-box;
}
.cafnum .cafnum__wrap {
    width: 100%;
    max-width: calc(var(--maxw) + 2 * var(--gut));
    margin: 0 auto;
    padding: 0 var(--gut);
}
.cafnum .cafnum__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    font: 400 12px/1.4 var(--mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-700);
}
.cafnum .cafnum__eyebrow::before {
    content: "";
    flex: none;
    width: 30px;
    height: 1.5px;
    background: var(--green-600);
}
.cafnum .cafnum__title {
    margin: 0;
    padding: 0;
    font: 500 clamp(33.6px, 4.7vw, 56px)/1.04 var(--serif);
    letter-spacing: -.02em;
    text-transform: none;
    color: var(--green-900);
    text-wrap: balance;
}
.cafnum .cafnum__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--green-700);
}
.cafnum .cafnum__sub {
    margin: 18px 0 0;
    padding: 0;
    max-width: 38em;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.08em;
    line-height: 1.55;
    color: var(--ink-soft);
    text-wrap: pretty;
}
.cafnum .cafnum__ledger {
    display: grid;
    margin: clamp(32px, 5vw, 60px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--green-900);
    border-bottom: 1px solid var(--line-strong);
}
.cafnum .cafnum__item {
    margin: 0;
    padding: clamp(24px, 3vw, 36px) 0 clamp(26px, 3vw, 38px);
    list-style: none;
    background: none;
}
.cafnum .cafnum__item::before,
.cafnum .cafnum__item::after {
    content: none;
}
.cafnum .cafnum__item + .cafnum__item {
    border-top: 1px solid var(--line);
}
.cafnum .cafnum__fig {
    display: block;
    margin: 0 0 0 -.03em;
    font: 400 clamp(73.6px, 10.2vw, 129.6px)/.9 var(--serif);
    font-variation-settings: "opsz" 144;
    letter-spacing: -.04em;
    color: var(--green-900);
}
.cafnum .cafnum__unit {
    display: block;
    margin-top: 14px;
    font: 400 12.5px/1.3 var(--mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.cafnum .cafnum__inl {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 7px;
    border-bottom: 1.5px dotted var(--line-strong);
}
.cafnum .cafnum__inl span {
    flex: none;
    font: 400 10.5px/1.3 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.cafnum .cafnum__inl i {
    min-width: 0;
    font: italic 400 18.88px/1.25 var(--serif);
    letter-spacing: inherit;
    color: var(--green-800);
}
.cafnum .cafnum__txt {
    margin: 14px 0 0;
    padding: 0;
    max-width: 30em;
    font-family: var(--sans);
    font-weight: 400;
    font-size: .96em;
    line-height: 1.52;
    color: var(--ink-soft);
    text-wrap: pretty;
}
.cafnum .cafnum__more {
    margin: 22px 0 0;
    padding: 0;
}
.cafnum .cafnum__more a,
.cafnum .cafnum__more a:visited {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font: 700 1em/1.3 var(--sans);
    color: var(--green-800);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.cafnum .cafnum__more a:hover {
    color: var(--green-600);
}
.cafnum .cafnum__more a:focus-visible {
    outline: 3px solid var(--green-700);
    outline-offset: 3px;
    border-radius: 6px;
}
@media (min-width: 900px) {
    .cafnum .cafnum__ledger {
        grid-template-columns: 1.6fr 1fr 1fr;
    }
    .cafnum .cafnum__item {
        padding-right: clamp(20px, 2.6vw, 40px);
    }
    .cafnum .cafnum__item + .cafnum__item {
        border-top: 0;
        border-left: 1px solid var(--line);
        padding-left: clamp(20px, 2.6vw, 40px);
    }
    .cafnum .cafnum__item:last-child {
        padding-right: 0;
    }
}
/* Da 1400px il tema alza di 140px la prima foto della sezione successiva
 * («.about-image .img-one»: 80px oltre il bordo superiore della sua sezione).
 * Lo spazio bianco sotto la fascia la lascia sporgere sul bianco e la tiene a
 * 60px dalla fascia, la stessa distanza che ha sotto i 1400px. */
@media (min-width: 1400px) {
    .cafnum {
        margin-bottom: 140px;
    }
}
/* comparsa morbida allo scorrimento (solo con JS e senza «riduci movimento») */
@media (prefers-reduced-motion: no-preference) {
    .cafnum.is-anim .cafnum__rv {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .6s var(--ease), transform .6s var(--ease);
        transition-delay: var(--d, 0s);
    }
    .cafnum.is-anim .cafnum__rv.is-in {
        opacity: 1;
        transform: none;
    }
}
@media print {
    .cafnum {
        background: #fff;
    }
    .cafnum::before {
        display: none;
    }
    .cafnum .cafnum__rv {
        opacity: 1 !important;
        transform: none !important;
    }
}
