/* Naqah ETS – foglio di stile del sito pubblico. Pensato prima per il telefono. */

/* Carattere del sito: Bricolage Grotesque, ospitato sul sito stesso (nessun collegamento a Google). */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-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;
}


:root {
  --blue: #040A73;
  --blue-2: #1a2190;
  --blue-soft: #e9eaf7;
  --lime: #DBFF02;
  --lime-soft: #f6ffc2;
  --ink: #040A73;
  --text: #1b1d3a;
  --muted: #5a5d7c;
  --line: #dcdef0;
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(4, 10, 115, .06), 0 8px 24px rgba(4, 10, 115, .08);
  --wrap: 1180px;
  --gutter: 16px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.tone-blue :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--lime); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--lime); color: var(--blue); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico.big { width: 32px; height: 32px; }

.display { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 900; letter-spacing: -.025em; }
.h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 900; letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--text); max-width: 46ch; }
.eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin: 0 0 .35em; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--blue); border-color: var(--lime); }
.btn-lime:hover { box-shadow: 0 6px 20px rgba(219, 255, 2, .35); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-disabled { background: var(--line); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: .3em .75em; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.badge-lime { background: var(--lime); color: var(--blue); }
.badge-dark { background: var(--blue); color: #fff; }

/* ---------- barra in alto ---------- */
.topbar { display: none; background: var(--blue); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-info { margin: 0; display: flex; align-items: center; gap: .4em; color: rgba(255,255,255,.85); }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar a { color: #fff; text-decoration: none; }
.tb-socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tb-socials a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; }
.tb-socials a:hover { background: rgba(255,255,255,.15); }
.tb-socials .ico { width: 16px; height: 16px; }
.tb-wa { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.tb-wa:hover { color: var(--lime); }
.tb-lang { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; font-size: .78rem; letter-spacing: .05em; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 2px 10px; }
.tb-lang:hover { background: var(--lime); color: var(--blue); border-color: var(--lime); }
@media (min-width: 1200px) { .topbar { display: block; } }

/* ---------- testata ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-donate { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn-donate .ico { width: 1em; height: 1em; }
@media (max-width: 340px) { .btn-donate span { display: none; } .btn-donate { width: 44px; padding: 0; } }
.nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.nav-extra .tb-socials a { width: 44px; height: 44px; background: rgba(255,255,255,.12); color: #fff; }
.nav-extra .tb-socials .ico { width: 20px; height: 20px; }
.nav-extra .tb-lang { color: var(--blue); background: var(--lime); border-color: var(--lime); padding: 10px 18px; font-size: .95rem; text-decoration: none; }
.brand { display: inline-flex; color: var(--blue); }
.logo { height: 30px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: var(--lime); color: var(--blue); border-radius: 999px; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

.nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--blue); color: #fff; padding: 16px var(--gutter) 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
.nav.is-open { transform: none; visibility: visible; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.nav-list a, .sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; color: #fff; text-decoration: none;
  font-size: 1.35rem; font-weight: 800; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.nav-list a[aria-current="page"] { color: var(--lime); }
.sub-toggle .chev { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0 0 10px 12px; display: none; }
.sub.is-open { display: block; }
.sub a { font-size: 1.1rem; font-weight: 600; padding: 10px 4px; justify-content: flex-start; gap: .4em; }
.sub .ext { width: .9em; height: .9em; opacity: .7; }
.lang-switch { display: inline-flex; align-items: center; gap: .5em; margin-top: 24px; color: var(--blue); background: var(--lime); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; }
body.nav-open { overflow: hidden; }

@media (min-width: 1200px) {
  :root { --header-h: 76px; }
  .logo { height: 34px; }
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; visibility: visible; background: none; color: var(--blue); padding: 0; overflow: visible; display: flex; align-items: center; gap: 8px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .sub-toggle { color: var(--blue); font-size: .98rem; font-weight: 700; padding: 10px 12px; border-radius: 999px; gap: .3em; }
  .nav-list > li > a:hover, .sub-toggle:hover { background: var(--blue-soft); }
  .nav-list a[aria-current="page"] { color: var(--blue); background: var(--lime); }
  .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; border: 1px solid var(--line); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .has-sub:hover .chev { transform: rotate(180deg); }
  .sub a { font-size: .95rem; padding: 10px 12px; color: var(--blue); }
  .sub a:hover { background: var(--blue-soft); }
  .header-inner { gap: 12px; }
  .brand { order: 0; }
  .nav { order: 1; margin-left: auto; }
  .header-actions { order: 2; }
  .nav-extra { display: none; }
  .nav-list a, .sub-toggle, .btn-donate { white-space: nowrap; }
  .nav-list a, .sub-toggle { font-size: .94rem; padding: 10px 9px; }
  .sub a { white-space: normal; }
  .has-sub.is-active > .sub-toggle { background: var(--lime); }
}

/* ---------- sezioni ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.tone-alt { background: var(--bg-alt); }
.tone-blue { background: var(--blue); color: #fff; }
.tone-blue h2, .tone-blue h3, .tone-blue .h2 { color: #fff; }
.tone-blue a:not(.btn) { color: var(--lime); }
.tone-blue .muted, .tone-blue .eyebrow { color: rgba(255, 255, 255, .75); }
.tone-lime { background: var(--lime); color: var(--blue); }
.tone-lime .btn-lime { background: var(--blue); color: #fff; border-color: var(--blue); }
.tone-lime .btn-outline { border-color: var(--blue); }

.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-foot { margin: 32px 0 0; }
.group-title { font-size: 1.25rem; font-weight: 900; margin: 36px 0 16px; display: flex; align-items: center; gap: 10px; }
.group-title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--lime); box-shadow: inset 0 0 0 2px var(--blue); }
.sec-head + div > .group-title:first-child, .filters + div > .group-title:first-child { margin-top: 0; }
.empty { padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.tone-blue .empty { border-color: rgba(255,255,255,.3); color: #fff; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 6px solid var(--lime); font-size: 1.15rem; color: var(--blue); }
.tone-blue .prose blockquote { color: #fff; }
.tone-blue .prose h3 { color: var(--lime); }

/* intestazione delle pagine interne */
.page-head { padding: 48px 0 40px; background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head .lead { color: rgba(255, 255, 255, .9); }
.page-head h1::after { content: ""; display: block; width: 56px; height: 8px; background: var(--lime); border-radius: 6px; margin-top: 14px; }
.page-head::after { content: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head.has-image { padding-top: 0; }
.page-head-img img { width: 100%; height: 34vh; min-height: 200px; max-height: 420px; object-fit: cover; margin-bottom: 32px; }
@media (min-width: 900px) {
  .page-head { padding: 80px 0 64px; }
  .page-head h1::after { content: none; }
  .page-head .lead { max-width: min(46ch, calc(100% - 340px)); }
  .page-head::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -140px; border-radius: 50%; background: var(--lime); }
}

/* home: presentazione */
.sec-hero { padding: 0; }
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--blue); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,115,.15) 0%, rgba(4,10,115,.55) 50%, rgba(4,10,115,.92) 100%); }
.hero-pattern { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-logo { width: 140%; max-width: none; color: var(--blue-2); transform: rotate(-8deg); opacity: .7; }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 10vw, 5.6rem); font-weight: 900; letter-spacing: -.03em; line-height: .98; max-width: 14ch; }
.hero-title::after { content: ""; display: block; width: 72px; height: 10px; background: var(--lime); border-radius: 6px; margin-top: 20px; }
.hero-text { font-size: clamp(1.1rem, 2.8vw, 1.4rem); max-width: 40ch; }
.hero-text p { margin: 0 0 .5em; }

/* griglie e schede */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--text); position: relative; }
.tone-alt .card { box-shadow: none; border: 1px solid var(--line); }
.tone-blue .card { color: var(--text); }
.tone-blue .card h3, .tone-blue .card a:not(.btn) { color: var(--blue); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--blue-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.3rem; font-weight: 900; margin: 0 0 .4em; }
.card-title a { text-decoration: none; color: inherit; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-text { color: var(--muted); margin: 0 0 1em; }
.card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--blue); text-decoration: none; position: relative; z-index: 1; }
.card-cta .ico { transition: transform .15s; }
.card:hover .card-cta .ico { transform: translateX(4px); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--blue); }
.ph-logo { width: 60%; color: var(--blue-2); }

.tile.no-img { padding-top: 8px; }
.tile-num { display: inline-flex; margin: 20px 20px 0; width: 52px; height: 52px; border-radius: 14px; background: var(--lime); color: var(--blue); font-weight: 900; font-size: 1.2rem; align-items: center; justify-content: center; }

.datebox { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--blue); border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.datebox .d { display: block; font-size: 1.6rem; font-weight: 900; }
.datebox .m { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.meta { list-style: none; padding: 0; margin: 0 0 .8em; font-size: .9rem; color: var(--muted); }
.meta li { display: flex; align-items: center; gap: .45em; margin: .2em 0; }
.is-past .card { opacity: .85; }
.is-past .datebox { background: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { border: 2px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.chip.is-on { background: var(--blue); color: #fff; }
.filters-sep { width: 100%; height: 0; }
@media (min-width: 900px) { .filters-sep { width: 1px; height: 28px; background: var(--line); margin: 6px 6px; } }
.act-card.is-hidden { display: none; }

/* passi */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 2px solid var(--blue); position: relative; }
.steps li::before { content: counter(s); display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--blue); font-weight: 900; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* testo con immagine */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .section:nth-of-type(even) .split .split-img { order: -1; } }
.split-img { margin: 0; }
.split-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* galleria */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery figure { margin: 0; position: relative; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius-sm); }
.ph-photo { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.gallery figure, .grid > *, .stats li { min-width: 0; }
.ph .ph-logo { max-width: 60%; width: 60%; height: auto; }
.ph-wide { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery-n2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery-n4 { grid-template-columns: repeat(4, 1fr); } .gallery-n2 { grid-template-columns: repeat(2, 1fr); } }
.gallery-n3 figure:first-child, .gallery-n5 figure:first-child { grid-column: 1 / -1; }
.gallery-n3 figure:first-child img, .gallery-n3 figure:first-child .ph-photo, .gallery-n5 figure:first-child img, .gallery-n5 figure:first-child .ph-photo { aspect-ratio: 16 / 7; }
@media (min-width: 900px) { .gallery-n3 figure:first-child, .gallery-n5 figure:first-child { grid-column: auto; } .gallery-n3 figure:first-child img, .gallery-n3 figure:first-child .ph-photo, .gallery-n5 figure:first-child img, .gallery-n5 figure:first-child .ph-photo { aspect-ratio: 1; } }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* persone */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person { text-align: center; }
.avatar { width: 128px; height: 128px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--lime); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--blue); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: 3rem; font-weight: 900; color: var(--blue); }
.person-name { font-size: 1.1rem; margin: 0 0 .15em; }
.person-role { font-weight: 700; font-size: .9rem; margin: 0 0 .3em; }
.person-line { font-size: .9rem; color: var(--muted); margin: 0; font-style: italic; }
.tone-blue .person-line { color: rgba(255,255,255,.8); }

/* loghi */
.logos { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 32px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* logo, traccia orizzontale, nome: niente riquadro */
.logo-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--blue); }
.logo-box { height: 132px; display: flex; align-items: flex-end; justify-content: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--blue); transition: border-color .18s ease, box-shadow .18s ease; }
.logo-box img { display: block; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; object-position: left bottom; }
.logo-word { font-weight: 800; letter-spacing: -.01em; font-size: 1.6rem; line-height: 1.05; color: var(--blue); }
@media (max-width: 699px) { .logo-box { height: 100px; } }
.logo-name { font-weight: 800; color: var(--blue); line-height: 1.25; }
a.logo-link:hover .logo-box, a.logo-link:focus-visible .logo-box { border-bottom-color: var(--lime); box-shadow: 0 4px 0 var(--lime); }
a.logo-link:hover .logo-name { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.logo-item small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.tone-blue .logo-box { border-bottom-color: #fff; }
.tone-blue .logo-box img { filter: brightness(0) invert(1); }
.tone-blue .logo-name, .tone-blue .logo-word { color: #fff; }
.tone-blue .logo-item small { color: rgba(255, 255, 255, .8); }

/* contatti, mappa, tabelle */
.contact-card { padding: 24px; text-decoration: none; gap: 6px; align-items: flex-start; color: var(--blue); }
.contact-card span { color: var(--text); word-break: break-word; }
.map { border-radius: var(--radius); background: var(--blue-soft); min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; overflow: hidden; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }
.map.is-loaded { padding: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; background: #fff; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--blue); color: #fff; font-weight: 700; }
.table tfoot th { background: var(--lime-soft); }
.table .num { text-align: right; white-space: nowrap; }
.datalist { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.datalist div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .datalist div { grid-template-columns: 220px 1fr; gap: 16px; } }
.datalist dt { font-weight: 800; color: var(--blue); }
.datalist dd { margin: 0; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid var(--blue); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.docs a span { flex: 1; }
.docs a:hover { background: var(--lime); }

.eu-box { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-top: 24px; color: var(--text); }
.eu-flag { width: 72px; height: auto; flex: none; }
.eu-box p { margin: 0 0 .3em; }

/* scheda attività */
.act-hero { background: var(--blue-soft); padding: 32px 0 28px; }
.crumbs { margin: 0 0 12px; font-weight: 700; font-size: .9rem; }
.act-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 1000px) { .act-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } .act-side { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.act-img { margin: 0 0 24px; }
.act-img img { border-radius: var(--radius); width: 100%; }
.factbox { background: #fff; border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.factbox dl { margin: 0 0 8px; }
.factbox dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.factbox dt { display: flex; align-items: center; gap: .4em; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.factbox dd { margin: 2px 0 0; font-weight: 700; color: var(--blue); overflow-wrap: anywhere; }
.factbox .small { margin: 0; color: var(--muted); }
.back { font-weight: 700; }

/* piè di pagina */
.site-footer { background: var(--blue); color: #fff; padding: 56px 0 24px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; } }
.f-brand .brand { color: var(--lime); margin-bottom: 14px; }
.f-brand .logo { height: 36px; }
.f-brand p { color: rgba(255,255,255,.85); max-width: 36ch; }
.f-title { color: var(--lime); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-list li { display: flex; gap: .5em; align-items: flex-start; }
.f-list .ico { margin-top: .25em; }
.f-legal { font-size: .875rem; color: rgba(255,255,255,.85); gap: 4px; }
.f-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 700; }
.socials { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px; }
.socials a { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.socials a:hover { background: var(--lime); color: var(--blue); }
.f-eu { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.f-eu p { margin: 0; color: rgba(255,255,255,.85); }
.f-eu small { font-size: .75rem; display: block; margin-top: 4px; max-width: 90ch; }
.f-eu .eu-flag { width: 60px; }
.f-bottom { margin-top: 24px; color: rgba(255,255,255,.6); }

/* slide iniziali */
.sec-slider { padding: 0; }
.slider { position: relative; min-height: min(86vh, 760px); background: var(--blue); color: #fff; overflow: hidden; display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media { position: absolute; inset: 0; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media::after { content: ""; position: absolute; inset: 0; background: rgba(4,10,115,.55); }
.slide-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.slide-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; }
.slide .hero-title { margin-left: auto; margin-right: auto; max-width: 18ch; font-size: clamp(2.2rem, 7vw, 4.6rem); }
.slide .hero-title::after { margin-left: auto; margin-right: auto; }
.slide .hero-text { margin: 0 auto; }
.slide .btn-row { justify-content: center; }
.slider-dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; transition: width .3s; }
.dot.is-active { background: var(--lime); border-color: var(--lime); width: 32px; }
/* area da toccare più grande del pallino (almeno 24 px, comoda col dito) */
.dot, .slider-pause { position: relative; }
.dot::before { content: ""; position: absolute; inset: -10px -5px; }
.slider-dots { align-items: center; }
.slider-pause { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 6px; border: 2px solid #fff; border-radius: 999px; background: rgba(4,10,115,.5); color: #fff; padding: 0; cursor: pointer; }
.slider-pause[hidden] { display: none; }
.slider-pause .ico { width: 14px; height: 14px; }
.slider-pause .ico-play, .slider.is-paused .slider-pause .ico-pause { display: none; }
.slider.is-paused .slider-pause .ico-play { display: block; }
.ph-label { position: absolute; bottom: 12px; right: 12px; font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.85); color: var(--blue); padding: 3px 10px; border-radius: 999px; }
.ph { position: relative; }

/* numeri in evidenza */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.stats-n1 { grid-template-columns: 1fr; }
.stats-wrap { display: grid; gap: 32px; }
.stats-wrap .sec-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .stats-wrap { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .stats-wrap.no-stats { grid-template-columns: 1fr; }
}
.stats li:nth-child(even) { background: var(--blue); color: #fff; }
.stats li:nth-child(even) .stat-num { color: var(--lime); }
.stats li { background: var(--lime); color: var(--blue); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stat-label { font-weight: 700; }

/* linea del tempo */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 4px solid var(--lime); display: grid; gap: 28px; max-width: 820px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--lime); }
.tone-blue .timeline li::before { background: #fff; }
.tl-when { display: inline-block; font-weight: 900; font-size: 1.2rem; color: var(--blue); margin-bottom: 4px; }
.tone-blue .tl-when { color: var(--lime); }
.tl-body p { margin: 0 0 .5em; }
.tl-img { border-radius: var(--radius-sm); max-width: 400px; margin-top: 8px; }

/* domande frequenti */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; color: var(--blue); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { background: var(--lime); border-radius: 8px 8px 0 0; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 4px 18px 8px; color: var(--text); }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 16px; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--blue); border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 800; cursor: pointer; }
.play-ico { font-size: .9rem; }
.video-note { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.85); }
.video.is-loaded { padding: 0; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* indice della pagina */
.sec-toc { padding: 32px 0 0; }
.toc { border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px 24px; }
.toc-title { font-weight: 900; color: var(--blue); margin: 0 0 10px; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: inline-flex; gap: .4em; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); text-decoration: none; font-weight: 700; font-size: .92rem; }
.toc a::before { content: counter(t); color: var(--muted); }
.toc a:hover { background: var(--lime); }

/* progetti */
.projects { display: grid; gap: 24px; }
.project-card { display: grid; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 900px) { .project-card { grid-template-columns: 1fr 1.1fr; } }
.pc-media { display: grid; gap: 4px; background: var(--blue-soft); min-height: 220px; }
.pc-media.pc-n2, .pc-media.pc-n3 { grid-template-columns: 1fr 1fr; }
.pc-media.pc-n3 img:first-child { grid-column: 1 / -1; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pc-media .ph { min-height: 220px; }
.pc-body { padding: 24px; }
.pc-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.pc-logo { width: 72px; height: auto; }
.eu-box { flex-direction: column; }
.eu-visual { display: flex; align-items: center; gap: 12px; }
.eu-logo { max-width: 260px; height: auto; }
.eu-text { color: var(--blue); }
.eu-box .small { margin: 0; color: var(--muted); }

/* campagne */
.campaign { display: grid; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
@media (min-width: 900px) { .campaign { grid-template-columns: 1fr 1fr; } }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-body { padding: 28px; }

/* donazioni e 5x1000 */
.donate-ways { display: grid; gap: 16px; justify-items: start; }
.donate-box { background: #fff; border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 560px; color: var(--text); }
.copylist { margin: 0; display: grid; gap: 10px; }
.copylist dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.copylist dd { margin: 2px 0 0; font-weight: 700; color: var(--blue); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copylist code { font-size: 1rem; word-break: break-all; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 800; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.btn.copy-btn { font-size: 1rem; padding: .7em 1.4em; }
.copy-btn.is-copied { background: var(--lime); border-color: var(--lime); }
.sec-cinque { overflow-x: clip; }
.cinque-steps { padding-left: 1.3em; display: grid; gap: 10px; font-size: 1.05rem; }
.cinque-box { background: #fff; color: #222; border: 2px solid #222; border-radius: 6px; padding: 18px; font-family: "Courier New", monospace; font-size: .85rem; box-shadow: 8px 8px 0 var(--blue); transform: rotate(-1.5deg); }
.cb-title { font-weight: 700; margin: 0 0 14px; }
.cb-row { display: grid; gap: 4px; margin-bottom: 12px; }
.cb-label { font-size: .7rem; text-transform: uppercase; }
.cb-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; color: var(--blue); border-bottom: 1px solid #222; padding: 2px 6px; }
.cb-cf { display: flex; gap: 2px; }
.cb-cf i { font-style: normal; font-weight: 700; color: var(--blue); width: 1.6em; height: 1.9em; border: 1px solid #222; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* condivisione */
.share { display: inline-flex; align-items: center; gap: 6px; }
.share-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.share a, .share button { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); border: 0; cursor: pointer; }
.share a:hover, .share button:hover, .share .is-copied { background: var(--lime); }

/* attività a righe (home) */
.act-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.act-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px 16px; align-items: start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tone-alt .act-row { box-shadow: none; border: 1px solid var(--line); }
.row-date { width: 64px; min-height: 64px; border-radius: 14px; background: var(--lime); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; }
.row-date .d { font-size: 1.7rem; font-weight: 900; }
.row-date .m { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.row-date-tbd { background: var(--blue-soft); padding: 6px; }
.row-main { min-width: 0; }
.row-main .badges { margin-bottom: 4px; }
.row-title { font-size: 1.25rem; font-weight: 900; margin: 0 0 4px; }
.row-title a { text-decoration: none; color: var(--blue); }
.row-title a:hover { text-decoration: underline; }
.meta-inline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.meta-inline li { margin: 0; }
.row-more { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.row-more p { margin: 0 0 .6em; }
.row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .9rem; }
.row-actions .share { margin-left: auto; }
[data-more] .chev { transition: transform .2s; }
[data-more][aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (min-width: 900px) {
  .act-row { grid-template-columns: 76px 1fr auto; align-items: center; padding: 18px 22px; gap: 20px; }
  .row-date { width: 76px; min-height: 76px; }
  .row-actions { grid-column: auto; justify-content: flex-end; max-width: 360px; }
  .row-actions .share { margin-left: 0; }
}

/* riquadri grandi (Fai la tua parte) */
.cards-big .card { border-radius: 24px; }
.cards-big .card-body { padding: 32px 28px; }
.cards-big .card-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.cards-big .card-text { font-size: 1.05rem; color: var(--text); }
.cards-big .tile-num { display: none; }
.cards-big .card-cta { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--lime); justify-content: center; margin-top: 12px; }
.cards-big .card-cta .ico { width: 24px; height: 24px; }
.cards-big .card:hover { transform: translateY(-4px); }
.cards-big .card { transition: transform .2s ease; }
.tone-blue .tile-num { background: var(--lime); }
.sec-campaigns.tone-lime { padding-top: 0; }

/* Coordinamento giovanile: più libero e vivace */
.page-coordinamento .page-head { background: var(--lime); }
.page-coordinamento .page-head h1, .page-coordinamento .page-head .lead { color: var(--blue); }
.page-coordinamento .page-head h1::after { background: var(--blue); }
.page-coordinamento .page-head::after { background: var(--blue); border-radius: 40% 60% 55% 45%; transform: rotate(-12deg); }
.page-coordinamento .sec-cards .card { transform: rotate(-1.5deg); }
.page-coordinamento .sec-cards .card:nth-child(even) { transform: rotate(1.5deg); }
.page-coordinamento .sec-cards .tile-num { background: var(--blue); color: var(--lime); border-radius: 50%; }
.page-coordinamento .h2 { transform: rotate(-1deg); display: inline-block; }

/* Percorsi per adulti: più calmo e rassicurante */
.page-adulti .page-head { background: var(--blue-soft); }
.page-adulti .page-head h1, .page-adulti .page-head .lead { color: var(--blue); }
.page-adulti .page-head::after { width: 220px; height: 220px; opacity: .55; }
.page-adulti .sec-cards .tile-num { background: var(--blue-soft); }
.page-adulti .section { padding-top: 72px; padding-bottom: 72px; }

/* schede attività */
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; z-index: 1; }
.card-actions .share { margin-left: auto; }
.act-card .card-title a::after { content: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-past .card-body { padding: 14px; }
.is-past .card-title { font-size: 1.05rem; }
.is-past .card-media { aspect-ratio: 16 / 10; }
.is-past .datebox { transform: scale(.8); transform-origin: top left; }
.is-past .card-actions .btn { min-height: 36px; font-size: .85rem; }
.act-row.is-hidden { display: none; }
.empty-big { padding: 32px; text-align: center; background: #fff; }
.empty-big p { margin: 0 0 .5em; }

/* contatti */
.contact-card strong { font-size: 1.1rem; }
.contact-card a { color: var(--blue); font-weight: 700; word-break: break-word; }
a.contact-card:hover { transform: translateY(-2px); }
.contact-wa { background: var(--lime); }
.socials-light { margin-top: 24px; }
.socials-light a { background: var(--blue); color: #fff; }
.socials-light a:hover { background: var(--lime); color: var(--blue); }

/* pulsante WhatsApp, solo su schermi piccoli */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--blue);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(4,10,115,.35); border: 2px solid var(--blue); }
.wa-float .ico { width: 28px; height: 28px; }
@media (min-width: 1200px) { .wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   PARTE 6 – Grafica generale: più vivace, meno istituzionale.
   Stesse regole di colore: blu #040A73, lime #DBFF02, mai testo lime su bianco
   né testo bianco su lime.
   ===================================================================== */
:root {
  --radius: 22px;
  --shadow-pop: 4px 4px 0 var(--blue);
  --shadow-pop-lg: 6px 6px 0 var(--blue);
}
body { font-size: 1.075rem; }
h1, h2, h3, .display, .h2, .hero-title, .card-title, .row-title { font-weight: 900; letter-spacing: -.035em; }
.display { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: .95; }
.h2 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }

/* titoli di sezione con evidenziatore */
.sec-head .h2, .split-text > .h2, .stats-text .h2 {
  display: inline; padding: 0 .08em;
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sec-head .h2 + *, .split-text > .h2 + * { margin-top: .9em; }
.sec-head { margin-bottom: 40px; }
.tone-blue .sec-head .h2, .tone-blue .split-text > .h2 { background: none; color: #fff; }
.tone-blue .sec-head .h2::after, .tone-blue .split-text > .h2::after { content: ""; display: block; width: 64px; height: 8px; border-radius: 6px; background: var(--lime); margin-top: 14px; }
.tone-lime .sec-head .h2, .tone-lime .split-text > .h2 { background: linear-gradient(transparent 62%, #fff 62%, #fff 92%, transparent 92%); }
.sec-head .prose, .split-text .prose { margin-top: 1em; }

/* pulsanti "a timbro" */
.btn { border-width: 2px; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.btn-lime { border-color: var(--blue); box-shadow: var(--shadow-pop); }
.btn-lime:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.btn-lime:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--blue); }
.tone-blue .btn-lime, .hero .btn-lime, .slider .btn-lime, .page-head .btn-lime, .site-footer .btn-lime { border-color: var(--lime); box-shadow: 4px 4px 0 rgba(255,255,255,.9); }
.tone-blue .btn-lime:hover, .slider .btn-lime:hover { box-shadow: 6px 6px 0 #fff; }
.btn-outline { box-shadow: none; }
.btn-outline:hover { box-shadow: var(--shadow-pop); transform: translate(-2px, -2px); background: #fff; color: var(--blue); }
.btn-donate { box-shadow: 3px 3px 0 var(--blue); }

/* schede */
.card { border: 2px solid var(--blue); box-shadow: none; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-pop-lg); }
.tone-alt .card { border: 2px solid var(--blue); }
.tone-blue .card { border-color: #fff; }
.tone-blue .card:hover { box-shadow: 6px 6px 0 var(--lime); }
.tone-lime .card:hover { box-shadow: 6px 6px 0 var(--blue); }
.contact-card, .project-card, .campaign, .act-row { border: 2px solid var(--blue); box-shadow: none; }
.project-card, .campaign { border-radius: var(--radius); }
.act-row { transition: transform .18s ease, box-shadow .18s ease; }
.act-row:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); }
.tile-num { transform: rotate(-6deg); border: 2px solid var(--blue); box-shadow: 3px 3px 0 var(--blue); }
.card:nth-child(even) .tile-num { transform: rotate(5deg); }
.datebox { border: 2px solid var(--blue); box-shadow: 3px 3px 0 var(--blue); transform: rotate(-4deg); }
.badge { border: 1.5px solid var(--blue); }
.badge-dark { border-color: var(--blue); }
.card-cta { text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.eyebrow { color: var(--blue); opacity: .7; }

/* sezioni colorate come grandi pannelli arrotondati */
@media (min-width: 900px) {
  .section.tone-blue, .section.tone-lime { margin: 24px 16px; border-radius: 40px; }
  .is-home .sec-slider + .section { margin-top: 0; }
}
.tone-blue { background: var(--blue) radial-gradient(circle at 100% 0, rgba(219,255,2,.14) 0, transparent 38%); }

/* intestazione delle pagine interne: più energia */
.page-head { padding-bottom: 56px; }
.page-head .display { max-width: 16ch; }
.page-head .lead { font-size: clamp(1.15rem, 2.8vw, 1.45rem); font-weight: 500; }
.page-head::before { content: ""; position: absolute; left: -40px; top: -40px; width: 140px; height: 140px; border: 3px dashed rgba(219,255,2,.45); border-radius: 50%; }
@media (min-width: 900px) { .page-head::before { left: auto; right: 60px; top: 28px; width: 76px; height: 76px; } }
.page-coordinamento .page-head::before { border-color: rgba(4,10,115,.35); }
.page-adulti .page-head::before { border-color: rgba(4,10,115,.25); }

/* slide iniziali */
.slider { min-height: min(92vh, 820px); }
.slide .hero-title { font-size: clamp(2.6rem, 8.5vw, 5.6rem); line-height: .95; text-wrap: balance; }
.slide .hero-text { font-size: clamp(1.1rem, 2.6vw, 1.45rem); max-width: 46ch; text-wrap: pretty; }
.slide-media img { transform: scale(1.06); transition: transform 8s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }

/* striscia scorrevole di parole */
.sec-ticker { padding: 0; overflow-x: clip; }
.ticker { background: var(--lime); color: var(--blue); border-top: 3px solid var(--blue); border-bottom: 3px solid var(--blue); overflow: hidden; transform: rotate(-1.2deg); margin: -18px -10px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 14px 0; }
.ticker li { font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.6rem); letter-spacing: -.02em; white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.ticker li::after { content: "✺"; font-size: .8em; }
.ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* numeri */
.stats li { border: 2px solid var(--blue); box-shadow: var(--shadow-pop); transform: rotate(-1.5deg); }
.stats li:nth-child(even) { transform: rotate(1.5deg); }

/* testata: si stacca quando scorri */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(4, 10, 115, .12); }
.nav-list > li > a, .sub-toggle { position: relative; }

/* foto nelle sezioni di testo e nelle gallerie */
.split-img img, .split-img .ph-photo { border: 2px solid var(--blue); box-shadow: 10px 10px 0 var(--lime); }
.tone-alt .split-img img { box-shadow: 10px 10px 0 var(--blue); }
.gallery img, .gallery .ph-photo { border: 2px solid var(--blue); }
.gallery figure:nth-child(3n+1) { transform: rotate(-1deg); }
.gallery figure:nth-child(3n+2) { transform: rotate(1deg); }

/* indice, domande, linea del tempo */
.toc { box-shadow: var(--shadow-pop); }
.faq details { transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow-pop); }
.timeline { border-left-width: 5px; }

/* piè di pagina con il logo grande in filigrana */
.site-footer { position: relative; overflow: hidden; padding-top: 72px; }
.site-footer::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 420px; height: 125px; background: var(--blue-2); -webkit-mask: url(../img/logo.svg) no-repeat center / contain; mask: url(../img/logo.svg) no-repeat center / contain; opacity: .7; pointer-events: none; }
.site-footer .wrap { position: relative; z-index: 1; }

/* pulsante WhatsApp */
.wa-float { box-shadow: 4px 4px 0 var(--blue); }

/* con Bricolage Grotesque lo spessore massimo è 800 */
h1, h2, h3, .display, .h2, .hero-title, .card-title, .row-title, .stat-num, .ticker li, .datebox .d, .row-date .d { font-weight: 800; }
.btn, .badge, .chip, .eyebrow, .card-cta, .group-title { font-weight: 700; }
button, input, select, textarea { font-family: inherit; }

/* =====================================================================
   Pagina di manutenzione (minimalismo pop: bianco, blu, lime, arancia)
   ===================================================================== */
:root { --orange: #FF7A3D; }
body.mnt { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; color: var(--blue); overflow-x: hidden; position: relative; }
.mnt-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.mnt-shapes span { position: absolute; display: block; }
.mnt-c1 { width: 46vmin; height: 46vmin; border-radius: 50%; background: var(--blue); right: -12vmin; top: 14vh; }
.mnt-c2 { width: 26vmin; height: 13vmin; border-radius: 26vmin 26vmin 0 0; background: var(--lime); right: 18vmin; bottom: 0; }
.mnt-c3 { width: 9vmin; height: 9vmin; border-radius: 50%; background: var(--lime); right: 40vmin; top: 12vh; }
.mnt-c4 { width: 14vmin; height: 14vmin; border-radius: 0 14vmin 0 0; background: var(--orange); left: 0; bottom: 0; opacity: .9; }
.mnt-top, .mnt-main, .mnt-foot { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mnt-top { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.mnt-logo { height: 34px; width: auto; color: var(--blue); }
.mnt-lang { font-weight: 500; color: var(--blue); text-decoration: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--blue); }
.mnt-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.mnt-title { font-size: clamp(2.6rem, 9vw, 6rem); line-height: .95; letter-spacing: -.045em; margin: 0 0 .35em; max-width: 12ch; }
.mnt-light { display: block; font-weight: 300; }
.mnt-bold { display: inline; font-weight: 800; background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.mnt-text { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 300; max-width: 34ch; margin: 0 0 32px; }
.mnt-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mnt-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 500; text-decoration: none; color: var(--blue); background: #fff; }
.mnt-btn a { color: inherit; text-decoration: none; }
.mnt-btn-lime { background: var(--lime); }
.mnt-btn-line { border: 1.5px solid var(--blue); }
.mnt-btn:hover, .mnt-btn:focus-within { background: var(--blue); color: #fff; }
.mnt-socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 10px; }
.mnt-socials a { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; }
.mnt-socials a:hover { background: var(--orange); color: var(--blue); }
.mnt-foot { padding-top: 20px; padding-bottom: 24px; padding-left: calc(24px + 10vmin); font-size: .9rem; font-weight: 300; }
.mnt-foot p { margin: 0; background: rgba(255,255,255,.85); display: inline; }
@media (max-width: 700px) {
  .mnt-c1 { width: 60vmin; height: 60vmin; right: -30vmin; top: auto; bottom: 18vh; opacity: .12; }
  .mnt-c3 { right: 10vmin; top: 90px; }
  .mnt-c2 { right: 8vmin; }
}

/* avviso per chi gestisce il sito durante la manutenzione */
.mnt-bar { position: relative; z-index: 60; margin: 0; background: var(--orange); color: var(--blue); font-size: .9rem; font-weight: 500; text-align: center; padding: 8px 16px; }
.mnt-bar a { color: var(--blue); font-weight: 700; }

/* =====================================================================
   PARTE 7 (9 ottobre 2026) – stile del sito + sfumature, senza bordi,
   angoli meno arrotondati. Prevale sulle parti precedenti.
   Regole di colore invariate: mai testo lime su bianco, mai testo bianco su lime.
   ===================================================================== */
:root {
  --radius: 10px;
  --radius-sm: 6px;
  --r-btn: 8px;
  --card-bg: #F1F2FA;
  --cobalto: #3155ED;
  --smeraldo: #008B73;
  --magenta: #812B64;
  --giallo: #FFD448;
  --notte: #070B3A;
  /* G1 Connessioni: blu + cobalto + un tocco di smeraldo */
  --g1: radial-gradient(110% 90% at 0% 0%, rgba(49, 85, 237, .95) 0%, transparent 55%),
        radial-gradient(80% 80% at 100% 100%, rgba(0, 139, 115, .85) 0%, transparent 60%),
        var(--blue);
  /* G2 Comunità: lime + smeraldo su blu (per forme e immagini, mai dietro testi lunghi) */
  --g2: radial-gradient(70% 70% at 25% 25%, var(--lime) 0%, transparent 60%),
        radial-gradient(80% 80% at 85% 80%, var(--smeraldo) 0%, transparent 65%),
        var(--blue);
  /* G3 Espressione: magenta + cobalto con un punto di giallo */
  --g3: radial-gradient(80% 80% at 20% 20%, var(--magenta) 0%, transparent 60%),
        radial-gradient(70% 70% at 90% 85%, var(--cobalto) 0%, transparent 60%),
        radial-gradient(16% 16% at 72% 28%, rgba(255, 212, 72, .6) 0%, transparent 100%),
        var(--notte);
  /* G4 Luce morbida: per le sezioni da leggere */
  --g4: radial-gradient(60% 70% at 0% 0%, rgba(49, 85, 237, .07) 0%, transparent 70%),
        radial-gradient(60% 70% at 100% 100%, rgba(0, 139, 115, .08) 0%, transparent 70%),
        #fff;
}

/* ---------- niente bordi intorno ai riquadri: li distingue il fondo ---------- */
.card, .tone-alt .card, .contact-card, .project-card, .campaign, .act-row, .tone-alt .act-row,
.steps li, .faq details, .toc, .donate-box, .factbox, .docs a, .stats li, .tile-num, .datebox, .badge,
.split-img img, .split-img .ph-photo, .gallery img, .gallery .ph-photo, .eu-box {
  border: 0;
}
.card, .contact-card, .project-card, .campaign, .act-row, .steps li, .faq details, .toc,
.donate-box, .factbox, .docs a, .eu-box { background: var(--card-bg); box-shadow: none; }
.tone-blue .card, .tone-blue .act-row, .tone-blue .steps li, .tone-blue .faq details,
.tone-lime .card, .tone-lime .act-row, .tone-lime .steps li, .tone-lime .faq details, .tone-lime .donate-box { background: #fff; }
.docs a:hover { background: var(--lime); }
.split-img img, .split-img .ph-photo { box-shadow: 10px 10px 0 var(--lime); }
.tone-alt .split-img img { box-shadow: 10px 10px 0 var(--blue); }
.stats li { box-shadow: none; }
.tile-num, .datebox { box-shadow: none; }
.wa-float { border: 0; box-shadow: 4px 4px 0 var(--blue); }

/* ---------- angoli meno arrotondati ---------- */
.btn, .chip, .copy-btn, .video-play, .toc a, .tb-lang, .lang-switch, .nav-toggle, .skip { border-radius: var(--r-btn); }
.badge { border-radius: 4px; }
.nav-list a, .sub-toggle { border-radius: var(--r-btn); }
.cards-big .card, .project-card, .campaign, .card, .act-row, .steps li, .faq details, .toc, .video, .map, .map iframe, .split-img img { border-radius: var(--radius); }
.row-date, .tile-num { border-radius: var(--radius-sm); }
.faq details[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.page-coordinamento .sec-cards .tile-num { border-radius: var(--radius-sm); }
@media (min-width: 900px) { .section.tone-blue, .section.tone-lime { border-radius: 16px; } }
.cards-big .card-cta { border-radius: var(--r-btn); }

/* ---------- sfumature ---------- */
.tone-blue { background: var(--g1); }
.tone-alt { background: var(--bg-alt); } /* colore pieno: con gli aloni il bordo del blocco sembrava sfocato (14/10) */
.tone-lime { background: radial-gradient(70% 90% at 100% 0%, rgba(0, 139, 115, .28) 0%, transparent 60%),
                         radial-gradient(50% 60% at 0% 100%, rgba(255, 255, 255, .55) 0%, transparent 70%), var(--lime); }
.page-head { background: var(--g1); }
.page-coordinamento .page-head { background: radial-gradient(70% 90% at 100% 0%, rgba(0, 139, 115, .3) 0%, transparent 60%), var(--lime); }
.slide-media::after { background: linear-gradient(160deg, rgba(49, 85, 237, .55) 0%, rgba(4, 10, 115, .6) 45%, rgba(0, 139, 115, .55) 100%); }
.stats li:nth-child(even) { background: var(--g1); }
.site-footer { background: var(--g1); }
.site-footer::after { background: rgba(255, 255, 255, .06); }
.ph, .slide-ph { background: var(--g1); }
.ph-logo, .hero-logo { color: rgba(255, 255, 255, .12); }

/* forma fluida decorativa: si muove piano, si ferma con "riduci movimento" */
.fluido { position: absolute; pointer-events: none; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; animation: fluido 24s ease-in-out infinite alternate; }
@keyframes fluido {
  0%   { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; transform: rotate(0deg); }
  50%  { border-radius: 44% 56% 58% 42% / 46% 58% 42% 54%; }
  100% { border-radius: 52% 48% 40% 60% / 58% 42% 58% 42%; transform: rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) { .fluido { animation: none; } }
.page-head::before { border: 0; background: var(--g2); opacity: .35; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; animation: fluido 24s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .page-head::before { animation: none; } }

/* ---------- menu: Erasmus+ Hosting in evidenza ---------- */
.nav-list > li.nav-evid > a { color: var(--lime); }
@media (min-width: 1200px) {
  .nav-list > li.nav-evid > a { background: var(--g1); color: #fff; padding-left: 14px; padding-right: 14px; }
  .nav-list > li.nav-evid > a:hover { background: var(--blue); }
}

/* ---------- piè di pagina: firma dei valori ---------- */
.firma-valori { display: flex; gap: 16px; align-items: center; padding: 18px 22px; margin-bottom: 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); }
.firma-valori .goccia { width: 40px; height: 40px; flex: none; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; background: var(--g3); box-shadow: 0 0 0 2px var(--lime); }
.firma-valori p { margin: 0; }
.firma-valori a { color: var(--lime); font-weight: 800; }

/* ---------- blocchi nuovi (usati da più pagine) ---------- */
/* immagini provvisorie a sfumatura */
.sfondo-g1 { background: var(--g1); }
.sfondo-g2 { background: var(--g2); }
.sfondo-g3 { background: var(--g3); }
.badge-corso { background: rgba(0, 139, 115, .14); color: #005A4A; }
.badge-attivazione { background: rgba(255, 212, 72, .35); color: #5C4300; }

/* blocco scuro dei valori */
.sec-valori { position: relative; overflow: hidden; background: var(--notte); color: #fff; }
@media (min-width: 900px) { .sec-valori { margin: 24px 16px; border-radius: 16px; } }
.sec-valori .fluido { width: min(64vw, 640px); aspect-ratio: 1; right: -12%; top: -25%; background: var(--g3); }
.sec-valori .wrap { position: relative; }
.sec-valori h2, .sec-valori .h2 { color: #fff; }
.sec-valori .lead, .sec-valori .prose { color: rgba(255, 255, 255, .9); }
.sec-valori a:not(.btn) { color: var(--lime); }
.principi { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.principi li { padding: 8px 16px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .1); font-weight: 700; }
.principi li.forte { background: var(--lime); color: var(--blue); }

.sec-valori .valori-titolo { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: .95; max-width: 12ch; background: none; }
.sec-valori .lead { max-width: 46ch; margin: 24px 0 28px; }
.sec-valori .lead p { margin: 0; }
.tile.no-num .card-body { padding-top: 22px; }

/* niente figure geometriche decorative (cerchi, macchie, gocce): restano solo le sfumature di sfondo */
.fluido, .mnt-shapes, .firma-valori .goccia { display: none !important; }
.page-head::before, .page-head::after, .page-coordinamento .page-head::after { content: none !important; display: none !important; }
@media (min-width: 900px) { .page-head .lead { max-width: 52ch; } }

/* ambiti di lavoro (Cosa facciamo) */
.ambiti-list { display: grid; gap: 16px; }
.ambito { display: grid; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--card-bg); }
@media (min-width: 900px) { .ambito { grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 32px 36px; } }
.ambito:nth-child(4n+1) { background: var(--g4); background-color: var(--card-bg); }
.ambito-titolo { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .4em; }
.ambito-testo p { margin: 0 0 1em; }
.ambito-label { font-size: .85rem; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.ambito-progetti ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ambito-progetti a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--blue); }
.ambito-progetti a:hover { background: var(--lime); }
.ambito-progetti a span { font-size: .85rem; color: var(--muted); text-align: right; }
.ambito-progetti a:hover span { color: var(--blue); }

/* archivio dei progetti */
.pj-filters { display: grid; gap: 12px; margin: 0 0 12px; padding: 18px; border-radius: var(--radius); background: var(--card-bg); }
@media (min-width: 700px) { .pj-filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pj-filters { grid-template-columns: 1.4fr repeat(4, 1fr); align-items: end; } }
.pj-f { display: grid; gap: 4px; font-size: .85rem; font-weight: 800; color: var(--blue); }
.pj-f input, .pj-f select { font: inherit; font-size: 1rem; font-weight: 500; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.pj-f input:focus-visible, .pj-f select:focus-visible { outline: 3px solid var(--blue); }
.pj-count { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.pj-card[hidden] { display: none; }
.pj-card .card-media { aspect-ratio: 16 / 9; }
.pj-meta { margin: 0 0 1em; }
.card-cta { gap: .4em; }
/* pagina del progetto */
.pj-cover { aspect-ratio: 16 / 7; border-radius: var(--radius); margin-bottom: 28px; }
.pj-block { margin: 0 0 32px; }
.pj-block .h3 { font-size: 1.5rem; margin: 0 0 .5em; }
.pj-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pj-acts a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card-bg); text-decoration: none; color: var(--blue); }
.pj-acts a:hover { background: var(--lime); }
.pj-acts span { color: var(--muted); font-size: .9rem; }
.factbox .pc-logo { width: auto; max-width: 200px; max-height: 96px; height: auto; margin-bottom: 4px; }
.pf-program { margin: 0 0 6px; }
.pf-program img { display: block; width: 100%; max-width: 240px; height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
/* indicatori di impatto */
.impatto { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .impatto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .impatto { grid-template-columns: repeat(4, 1fr); } }
.impatto li { background: var(--card-bg); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.impatto li:nth-child(even) { background: var(--g1); color: #fff; }
.impatto .stat-num { color: var(--blue); }
.impatto li:nth-child(even) .stat-num { color: var(--lime); }
.impatto .stat-label { font-weight: 700; }
.impatto .periodo { font-size: .85rem; font-weight: 800; }
.impatto .fonte { font-size: .85rem; color: var(--muted); }
.impatto li:nth-child(even) .fonte { color: rgba(255, 255, 255, .8); }
@media (min-width: 1100px) { .pj-filters { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.pj-f input, .pj-f select { width: 100%; min-width: 0; }
.empty { border: 0; background: var(--card-bg); }

/* biblioteca delle risorse */
.risorse { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .risorse { grid-template-columns: repeat(2, 1fr); } }
.risorsa.is-hidden { display: none; }
.risorsa a { display: grid; gap: 4px; height: 100%; padding: 20px 22px; border-radius: var(--radius); background: var(--card-bg); text-decoration: none; color: var(--text); }
.tone-alt .risorsa a { background: #fff; }
.risorsa a:hover { background: var(--lime); }
.risorsa strong { font-size: 1.25rem; color: var(--blue); font-weight: 800; }
.risorsa-tipo { font-size: .8rem; font-weight: 800; color: var(--magenta); }
.risorsa-desc { color: var(--muted); }
.risorsa-meta { font-size: .85rem; color: var(--muted); }
.risorsa-azione { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--blue); margin-top: 6px; }
.post-body { padding-top: 32px; padding-bottom: 48px; }
.post-links { margin: 24px 0; }

/* foto grande a tutta larghezza */
.sec-foto { padding: 0; }
.foto-grande { margin: 0; }
.foto-grande img, .foto-grande-vuota { width: 100%; height: clamp(260px, 62vh, 680px); object-fit: cover; display: block; }
.foto-grande-vuota { display: flex; align-items: flex-end; padding: 20px; }
.foto-grande-vuota span { background: rgba(255, 255, 255, .9); color: var(--blue); font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-sm); }
.foto-grande figcaption { font-size: .9rem; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }

/* =====================================================================
   PARTE 8 (13 ottobre 2026) – bordi sfumati, sfumature animate in home,
   barra in alto più grande con la bandiera Progress Pride, icone nei riquadri.
   ===================================================================== */

/* ---------- blocchi colorati: a tutta larghezza, bordi netti (le sfumature sui bordi sono state tolte il 14/10) ---------- */
@media (min-width: 900px) { .section.tone-blue, .section.tone-lime, .sec-valori { border-radius: 0; margin-left: 0; margin-right: 0; } }

/* ---------- home: le sfumature si muovono piano (ferme con "riduci movimento") ---------- */
@keyframes sfuma-muovi {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 30% 100%; }
}
.is-home .section.tone-blue, .is-home .section.tone-lime, .is-home .slide-media::after, .is-home .ph, .is-home .slide-ph {
  background-size: 180% 180%;
  animation: sfuma-muovi 22s ease-in-out infinite alternate;
}
/* logo della home: la sfumatura scorre dentro le lettere */
.brand-anima { display: inline-block; line-height: 0;
  background: linear-gradient(110deg, var(--blue) 0%, var(--cobalto) 30%, var(--smeraldo) 55%, var(--blue) 80%, var(--cobalto) 100%);
  background-size: 300% 100%;
  -webkit-mask: url(../img/logo.svg) no-repeat center / contain; mask: url(../img/logo.svg) no-repeat center / contain;
  animation: logo-scorre 14s ease-in-out infinite alternate; }
.brand-anima .logo { opacity: 0; }
@keyframes logo-scorre { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .is-home .section.tone-blue, .is-home .section.tone-lime, .is-home .slide-media::after, .is-home .ph, .is-home .slide-ph, .brand-anima { animation: none; }
}

/* ---------- barra in alto (14/10): sfumatura in movimento come il logo, linguetta Progress Pride ---------- */
.topbar { display: block; font-size: .92rem; overflow: hidden;
  background: linear-gradient(110deg, var(--blue) 0%, var(--cobalto) 30%, var(--smeraldo) 55%, var(--blue) 80%, var(--cobalto) 100%);
  background-size: 300% 100%; animation: logo-scorre 14s ease-in-out infinite alternate; }
.topbar-inner { min-height: 40px; align-items: stretch; }
.topbar-links { gap: 18px; }
@media (min-width: 900px) { .topbar-inner { min-height: 48px; } }
/* la linguetta: la bandiera parte dal bordo dello schermo e finisce a coda di rondine */
.tb-pride { display: flex; align-items: center; gap: 14px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.tb-flag { position: relative; align-self: stretch; flex: none;
  width: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2) + 56px);
  margin-left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wrap)) / 2)));
  background: linear-gradient(to bottom, #E40303 0 16.67%, #FF8C00 0 33.33%, #FFED00 0 50%, #008026 0 66.67%, #24408E 0 83.33%, #732982 0);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  transition: width .25s ease; }
.tb-pride-text { white-space: nowrap; }
@media (max-width: 899px) {
  .topbar { font-size: .84rem; }
  .tb-pride { gap: 10px; }
  .tb-flag { width: calc(var(--gutter) + 38px); }
  a.tb-pride:hover .tb-flag { width: calc(var(--gutter) + 38px); }
}
.tb-chevron { position: absolute; left: 0; top: 0; height: 100%; width: auto; aspect-ratio: 36 / 24; display: block; }
a.tb-pride:hover .tb-flag { width: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2) + 72px); }
a.tb-pride:hover .tb-pride-text { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tb-hours, .tb-socials { display: none; }
.tb-hours { align-items: center; gap: .5em; color: #fff; }
@media (min-width: 900px) { .tb-socials { display: flex; align-items: center; } }
@media (min-width: 1100px) { .tb-hours { display: inline-flex; } }
.topbar-links { align-items: center; }
.tb-langs { display: inline-flex; border-radius: var(--r-btn); overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); font-weight: 800; letter-spacing: .04em; font-size: .85rem; }
.tb-langs > * { padding: 3px 11px; }
.tb-langs .is-on { background: var(--lime); color: var(--blue); }
.tb-langs a:hover { background: rgba(255, 255, 255, .15); }
@media (prefers-reduced-motion: reduce) { .topbar { animation: none; } .tb-flag { transition: none; } }
.pride { width: 30px; height: 20px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.pride-lg { width: 48px; height: 32px; border-radius: 4px; }

/* ---------- icone nei riquadri ---------- */
.tile-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--lime); color: var(--blue); }
.tile-ico .ico { width: 28px; height: 28px; }
.tone-lime .tile-ico { background: var(--blue); color: var(--lime); }
/* testata sul telefono: logo, bandiera, Dona e menu sulla stessa riga */
.btn-donate { white-space: nowrap; }
@media (max-width: 899px) {
  .header-actions { gap: 6px; }
}
@media (max-width: 400px) {
  .btn-donate { padding-left: 12px; padding-right: 12px; }
  .site-header .logo { height: 26px; }
}

/* ---------- progetti: Naqah partner, galleria, finanziamento in fondo ---------- */
.badge-partner { background: var(--blue); color: #fff; }
.pj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .pj-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pj-gallery figure { margin: 0; }
.pj-gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.pj-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.pj-gallery a:hover img { transform: scale(1.04); }
.pj-funding .pf-program { margin: 0 0 16px; }
.pj-funding .pf-program img { max-width: 320px; max-height: 64px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(7, 11, 58, .9); }
dialog.lightbox img { display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-sm); }
dialog.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: var(--r-btn); background: var(--lime); color: var(--blue); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--blue); }
.lb-close { top: -56px; right: 0; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
/* numeri su sfondo lime: i riquadri chiari diventano bianchi, altrimenti spariscono */
.tone-lime .stats li:nth-child(odd) { background: #fff; }
/* archivio attività: un titolo per ogni anno */
.year-title { margin: 32px 0 14px; font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.year-title span { font-size: .9rem; font-weight: 700; color: var(--muted); }
.pf-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 0 0 14px; }
.pf-logos img { width: auto; height: auto; max-height: 56px; max-width: 200px; }

/* ---------- carosello dei progetti (home, 14/10): nastro continuo a tutta larghezza ---------- */
.pj-loop { overflow: hidden; padding: 6px 0 18px; }
.pj-belt { display: flex; gap: 20px; width: max-content; animation: nastro var(--dur, 60s) linear infinite; }
.pj-belt > .pj-card { flex: 0 0 min(80vw, 340px); }
@media (min-width: 1000px) { .pj-belt > .pj-card { flex-basis: 370px; } }
/* metà nastro = un giro completo di schede: spostandosi della metà (più metà spazio) torna identico */
@keyframes nastro { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
.pj-loop:hover .pj-belt, .pj-loop:focus-within .pj-belt, .pj-loop.is-paused .pj-belt { animation-play-state: paused; }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.car-foot .sec-foot { margin: 0; }
.car-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; margin-left: auto;
  border: 2px solid var(--blue); background: #fff; color: var(--blue); transition: background .15s ease, color .15s ease; }
.car-btn:hover { background: var(--blue); color: #fff; }
.car-btn .ico { width: 20px; height: 20px; }
.car-pause .ico-play, .car-pause[aria-pressed="true"] .ico-pause { display: none; }
.car-pause[aria-pressed="true"] .ico-play { display: block; }
/* chi ha chiesto meno movimento: niente nastro, la fila si scorre a mano */
@media (prefers-reduced-motion: reduce) {
  .pj-belt { animation: none; width: auto; overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x mandatory; }
  .pj-belt > .pj-card { scroll-snap-align: start; }
  .pj-belt > .pj-dup, .car-pause { display: none; }
}

/* home: "Da dove vuoi iniziare" e "Cosa puoi fare adesso" stanno nella stessa fascia */
.is-home #inizia { padding-bottom: 24px; }
.is-home #inizia + .sec-activities { padding-top: 40px; }

/* una galleria senza titolo che segue una sezione dello stesso colore fa parte della stessa fascia */
.section.tone-light + .section.tone-light.sec-gallery, .section.tone-alt + .section.tone-alt.sec-gallery { padding-top: 0; }
/* sui blocchi grigi i riquadri sono bianchi, così si staccano dal fondo */
.tone-alt .card, .tone-alt .ambito { background: #fff; }

/* =====================================================================
   PARTE 9 (14 ottobre 2026) – Erasmus+ Hosting: testata con foto, dati in evidenza,
   settori a linguette, schede con dettagli, programmi giorno per giorno, ricerca nelle FAQ
   ===================================================================== */

/* testata con foto: la foto sta dietro, coperta a sinistra dal blu */
.page-head.has-image { padding: 0; min-height: clamp(420px, 62vh, 600px); display: flex; align-items: flex-end; }
.page-head.has-image .page-head-img { position: absolute; inset: 0; }
.page-head.has-image .page-head-img img { width: 100%; height: 100%; max-height: none; min-height: 0; margin: 0; object-fit: cover; }
.page-head.has-image .page-head-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 10, 115, .94) 0%, rgba(4, 10, 115, .8) 42%, rgba(49, 85, 237, .28) 76%, rgba(0, 139, 115, .22) 100%); }
.page-head.has-image .wrap { padding-top: 96px; padding-bottom: 96px; }
.page-head.has-image .lead { max-width: 640px; }

/* dati in evidenza (sotto la testata, a cavallo) */
.sec-fatti { padding-top: 0; }
.fatti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: -48px; position: relative; z-index: 2; margin-bottom: 48px; }
@media (min-width: 900px) { .fatti { grid-template-columns: repeat(4, 1fr); } }
.fatto { background: #fff; border: 2px solid var(--blue); border-radius: 14px; padding: 16px 18px; box-shadow: 6px 6px 0 var(--blue); min-width: 0; }
.fatto b { display: block; font-size: clamp(1.05rem, 3.4vw, 1.35rem); color: var(--blue); line-height: 1.2; }
.fatto span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) { .fatti-testo .prose { columns: 2; column-gap: 40px; } .fatti-testo .prose p { break-inside: avoid; } }
.fatti-testo .prose { font-size: 1.1rem; }

/* settori a linguette */
.settori-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .settori-tabs { grid-template-columns: repeat(4, 1fr); } }
.settori-tabs[hidden] { display: none; }
.settori-tabs [role="tab"] { font: inherit; text-align: left; cursor: pointer; border: 2px solid var(--blue); background: #fff; color: var(--blue);
  border-radius: 14px; padding: 16px 18px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; min-width: 0; }
.settori-tabs [role="tab"] b { display: block; font-size: 1.2rem; line-height: 1.2; }
.settori-tabs [role="tab"] small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.settori-tabs [role="tab"]:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); }
.settori-tabs [aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 6px 6px 0 var(--lime); transform: translate(-2px, -2px); }
.settori-tabs [aria-selected="true"] small { color: var(--lime); }
.settori-vuoto { margin: 18px 0 0; }
.settore-pan { margin-top: 22px; background: var(--card-bg); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 24px; animation: entra .3s ease; }
.settore-pan[hidden] { display: none; }
@media (min-width: 900px) { .settore-pan { grid-template-columns: 1fr 1.6fr; } .settore-dett { columns: 2; column-gap: 28px; } .settore-dett h3:not(:first-child) { break-before: column; } }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.settore-intro h3 { font-size: 1.25rem; }
.settore-intro > p:first-of-type { font-weight: 700; }
.settore-dett h3 { font-size: 1rem; margin: 0 0 10px; }
.settore-dett ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; break-inside: avoid; }
.settore-dett li { position: relative; padding-left: 28px; font-size: .97rem; }
.settore-dett li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #d7f2ea; color: #00614f; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.settore-dett ul:nth-of-type(2) li::before { content: "!"; background: #ffe8d6; color: #9a3412; }

/* schede con dettagli */
.sch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 7px 16px; border: 2px solid var(--blue); background: #fff; color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--lime); }
.sch { transition: opacity .2s ease, transform .2s ease; }
.sch[hidden] { display: none; }
.sch.is-off { opacity: .35; }
.sch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.sch-top .tile-ico { margin-bottom: 0; }
.sch .badge { white-space: normal; }
.badge-ok { background: #d7f2ea; color: #00614f; }
.badge-lime { background: var(--lime); color: var(--blue); }
.sch-sub { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); }
.sch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.sch-tags span { font-size: .72rem; font-weight: 800; background: var(--card-bg); color: var(--blue); padding: 2px 9px; border-radius: 999px; }
.sch-foto .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sch-durata { font-size: .88rem; font-weight: 700; color: var(--blue); margin: 6px 0 0; }
.sch-num { position: absolute; left: 14px; top: 14px; background: var(--lime); color: var(--blue); font-weight: 800; border-radius: 10px; padding: 4px 12px; transform: rotate(-3deg); }
.sch-grid-foto .sch { transition: transform .2s ease, box-shadow .2s ease; }
.sch-grid-foto .sch:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--blue); }
.sch-more { margin-top: auto; padding-top: 10px; }
.sch-more > summary { list-style: none; cursor: pointer; font-weight: 800; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.sch-more > summary::-webkit-details-marker { display: none; }
.sch-more > summary .ico { width: 18px; height: 18px; }
.sch-more > summary:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sch-dett { margin-top: 12px; }
.sch-dett > .lead { display: none; }
.sch-dialog .sch-dett > .lead, .sch-dialog-body > .lead { display: block; }
.sch-dialog { border: 0; border-radius: 22px; padding: 0; width: min(860px, 94vw); max-height: 90vh; box-shadow: 10px 10px 0 var(--blue); color: var(--text); }
.sch-dialog::backdrop { background: rgba(4, 10, 115, .55); }
.sch-chiudi { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--blue); }
.sch-dialog-img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.sch-dialog-body { padding: 26px clamp(20px, 4vw, 34px) 32px; }
.sch-dialog-body .sch-top { margin-bottom: 10px; }
.sch-dialog-body .prose h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 4px; }
.sch-dialog-body .prose p, .sch-dialog-body .prose ul { margin-top: 0; }
.sch-cta { margin-top: 22px; }

/* programmi giorno per giorno */
.gt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .gt-tabs { grid-template-columns: repeat(4, 1fr); } }
.gt-tabs [role="tab"] { font: inherit; text-align: left; cursor: pointer; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.gt-tabs [role="tab"] b { display: block; }
.gt-tabs [role="tab"] small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.gt-tabs [aria-selected="true"] { background: var(--lime); box-shadow: 5px 5px 0 var(--blue); transform: translate(-2px, -2px); }
.gt-pan { margin-top: 22px; background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); animation: entra .3s ease; }
.tone-light .gt-pan { background: var(--card-bg); }
.gt-pan[hidden] { display: none; }
.gt-head { display: grid; gap: 18px; }
@media (min-width: 900px) { .gt-head { grid-template-columns: 1.2fr 1fr; } }
.gt-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 4px 0 8px; }
.gt-nota { background: var(--card-bg); border-left: 5px solid var(--lime); padding: 12px 16px; border-radius: 8px; font-size: .93rem; }
.gt-nota p { margin: 0 0 8px; }
.gt-ore { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 10px 0 4px; }
.gt-ore span { flex: 1 1 0; background: var(--blue); border-right: 2px solid #fff; }
.gt-ore span:nth-child(even) { background: var(--cobalto); }
.gt-giorni { margin-top: 22px; display: grid; gap: 10px; }
.gt-giorno { border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.gt-giorno[open] { border-color: var(--blue); }
.gt-giorno > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 14px; font-weight: 800; color: var(--blue); }
.gt-giorno > summary::-webkit-details-marker { display: none; }
.gt-num { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--blue); color: var(--lime); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .6rem; line-height: 1; text-transform: uppercase; letter-spacing: .05em; }
.gt-num strong { font-size: 1.3rem; }
.gt-giorno[open] .gt-num { background: var(--lime); color: var(--blue); }
.gt-tit { flex: 1; min-width: 0; }
.gt-h { font-size: .8rem; background: var(--card-bg); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gt-dett { padding: 0 18px 18px 80px; font-size: .95rem; }
@media (max-width: 600px) { .gt-dett { padding-left: 18px; } }
@media (min-width: 900px) { .gt-dett { columns: 2; column-gap: 28px; } .gt-dett p { break-inside: avoid; } }
.gt-dett p { margin: 0 0 10px; }

/* riquadri colorati (per esempio "Da dove parti?") */
.cards-colori .card { background: var(--blue); color: #fff; }
.cards-colori .card:nth-child(3n+2) { background: var(--cobalto); }
.cards-colori .card:nth-child(3n+3) { background: var(--smeraldo); }
.cards-colori .card-title, .cards-colori .card-title a, .cards-colori .card-text { color: #fff; }
.cards-colori .tile-ico { background: #fff; color: var(--blue); }
.cards-colori .card-cta { color: var(--lime); }
.cards-colori .card:hover { box-shadow: 6px 6px 0 var(--lime); }

/* FAQ con ricerca */
.faq-tools { margin: 0 0 18px; display: grid; gap: 12px; }
.faq-tools[hidden] { display: none; }
.faq-tools .sch-chips { margin: 0; }
.faq-cerca { font: inherit; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--blue); width: 100%; background: #fff; }
.faq details[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .settore-pan, .gt-pan { animation: none; } }

/* =====================================================================
   PARTE 10 (14 ottobre 2026) – Opportunità: sezioni vicine, schede aperte, posizioni aperte
   ===================================================================== */
/* due sezioni di fila con lo stesso fondo non raddoppiano lo spazio in mezzo */
.section.tone-light + .section.tone-light, .section.tone-alt + .section.tone-alt { padding-top: 8px; }
/* schede con i dettagli sempre visibili */
.sch-aperta { margin-top: 10px; font-size: .96rem; }
.sch-aperta h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.sch-aperta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sch-aperta li { position: relative; padding-left: 26px; }
.sch-aperta li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--blue); font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* posizioni aperte */
.jobs { display: grid; gap: 18px; }
.job .job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.job-dove { margin: 0 0 10px; }
.job-liste { display: grid; gap: 18px; margin: 10px 0; }
@media (min-width: 800px) { .job-liste { grid-template-columns: 1fr 1fr; } }
.job-liste h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; color: var(--blue); }
.job-liste ul { margin: 0; padding-left: 18px; }
/* dati in evidenza: il testo sotto usa tutta la larghezza, su due colonne */
.sec-fatti .sec-head.fatti-testo { max-width: none; }
.sec-fatti .fatti-testo .prose { max-width: none; }

/* =====================================================================
   PARTE 11 (14 ottobre 2026) – allineamento unico: tutte le sezioni partono dallo stesso bordo sinistro
   (prima i testi erano in una colonna centrata, i riquadri invece a sinistra)
   ===================================================================== */
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 820px; }
.wrap.narrow > .faq, .wrap.narrow > .faq-tools, .wrap.narrow > .docs { max-width: 900px; }

/* linguetta Progress Pride più piccola (14/10): più bassa della barra e più corta */
.tb-flag { align-self: center; height: 26px; width: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2) + 34px); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); }
a.tb-pride:hover .tb-flag { width: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2) + 46px); }
@media (max-width: 899px) { .tb-flag, a.tb-pride:hover .tb-flag { height: 22px; width: calc(var(--gutter) + 26px); } }
.tb-pride { gap: 10px; font-weight: 700; }

/* =====================================================================
   PARTE 12 (14 ottobre 2026) – scala tipografica e spaziature su griglia da 8 px
   Testo 16 px con interlinea 1,55; righe al massimo ~75–90 caratteri; spazi esterni ≥ spazi interni.
   ===================================================================== */
body { font-size: 1rem; line-height: 1.55; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); line-height: 1.5; }
.display { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.05; }
h3 { line-height: 1.2; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: .85em; }
.prose > :last-child { margin-bottom: 0; }

/* sezioni: 48 px sul telefono, 72 px su computer; due sezioni con lo stesso fondo si toccano */
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section.tone-light + .section.tone-light, .section.tone-alt + .section.tone-alt { padding-top: 0; }
.page-adulti .section { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 900px) { .page-adulti .section { padding-top: 72px; padding-bottom: 72px; } }

/* titolo e contenuto di una sezione */
.sec-head { max-width: 880px; margin-bottom: 28px; }
.sec-head .h2 + *, .split-text > .h2 + * { margin-top: .6em; }
.sec-head .prose, .split-text .prose { margin-top: .6em; }
.sec-foot { margin-top: 24px; }

/* riquadri: 16 px tra l'uno e l'altro sul telefono, 24 px su computer */
.grid { gap: 16px; }
@media (min-width: 900px) { .grid { gap: 24px; } }
.card-body { padding: 20px 22px; }

/* testata delle pagine e dati in evidenza più compatti */
.page-head { padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .page-head { padding-top: 56px; padding-bottom: 64px; } }
.fatti { margin-bottom: 40px; }

/* testi senza foto: titolo a sinistra, testo a destra (da 1000 px in su) */
.tx-grid .tx-head .h2 { display: inline; }
.tx-grid .tx-body { margin-top: .9em; }
@media (min-width: 1000px) {
  .wrap.narrow > .tx-grid { max-width: none; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.3fr); column-gap: 56px; align-items: start; }
  .tx-grid .tx-head .h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
  .tx-grid .tx-body { margin-top: 0; }
  .tx-grid .prose { max-width: 72ch; }
  .tone-blue .tx-grid .tx-head .h2::after { margin-top: 12px; }
}
@media (min-width: 1000px) { .tx-grid .tx-head { position: sticky; top: calc(var(--header-h) + 24px); } }
/* eccezioni alla regola degli spazi: slide, striscia, foto grandi e indice stanno attaccati come prima */
.section.sec-slider, .section.sec-hero, .section.sec-ticker, .section.sec-foto { padding: 0; }
.section.sec-toc { padding: 32px 0 0; }
.section.sec-fatti { padding-top: 0; }
/* dopo la striscia, le slide o una foto grande la sezione successiva riprende il suo spazio, anche se ha lo stesso fondo */
.section.sec-slider + .section.section, .section.sec-hero + .section.section, .section.sec-ticker + .section.section, .section.sec-foto + .section.section { padding-top: 48px; }
@media (min-width: 900px) { .section.sec-slider + .section.section, .section.sec-hero + .section.section, .section.sec-ticker + .section.section, .section.sec-foto + .section.section { padding-top: 72px; } }
/* la striscia resta attaccata alle slide */
.section.sec-slider + .section.sec-ticker.section, .section.sec-hero + .section.sec-ticker.section { padding-top: 0; }

/* menu su computer (14/10): la tendina non sparisce scendendo col mouse (ponte invisibile e chiusura ritardata),
   ne resta aperta una sola, e da tastiera si apre con il fuoco visibile */
@media (min-width: 1200px) {
  .sub { display: block; visibility: hidden; opacity: 0; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .25s; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover .sub, .has-sub:has(.sub :focus-visible) .sub, .has-sub .sub.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .has-sub:has(.sub.is-open) .chev { transform: rotate(180deg); }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) { .sub { transition: none; } }
/* schede aperte con i limiti (codice "limiti"): punto di attenzione al posto della spunta */
.sch[data-tags*=",limiti,"] .sch-aperta li::before { content: "!"; background: #ffe8d6; color: #9a3412; }
/* scheda progetto: riquadro della campagna di crowdfunding collegata */
.pj-camp { background: var(--lime-soft); border-radius: var(--radius); padding: 20px 22px; }
.pj-camp .badge { margin-bottom: 8px; }

/* stile delle foto scelto in Impostazioni (16/10): solo le foto, mai loghi, emblemi UE e documenti */
.look-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.has-look img.foto { filter: url(#naqah-look); }
.has-look .logos img, .has-look .pf-logos img, .has-look .pc-logo img, .has-look .pf-program img, .has-look .eu-box img, .has-look .brand img { filter: none; }

/* =====================================================================
   PARTE 13 (16 ottobre 2026) – schede progetto: etichette sulla foto, titolo grande, ambiti, pulsante
   ===================================================================== */
.pj-card { transition: transform .2s ease, box-shadow .2s ease; }
.pj-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--blue); }
.pj-card .card-media { position: relative; }
.pj-tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; pointer-events: none; }
.pj-tags .badge { background: #fff; color: var(--blue); border: 0; box-shadow: 0 2px 8px rgba(4, 10, 115, .18); font-size: .74rem; }
.pj-tags .badge-corso { background: var(--lime); color: var(--blue); }
.pj-tags .badge-lime { background: #fff; }
.pj-tags .badge-attivazione { background: #ffe8d6; color: #9a3412; }
.pj-tags .badge-partner { background: var(--blue); color: #fff; }
.pj-card .card-body { padding: 18px 22px 22px; gap: 0; }
.pj-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cobalto); }
.pj-title { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.12; margin: 0 0 10px; }
.pj-card .card-text { color: var(--text); font-size: .97rem; margin: 0 0 14px; }
.pj-themes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pj-themes li { font-size: .74rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 10px; }
.pj-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: .9rem;
  padding: 10px 16px; border-radius: var(--r-btn); border: 2px solid var(--blue); color: var(--blue); background: #fff; transition: background .15s ease, color .15s ease; }
.pj-btn .ico { width: 18px; height: 18px; transition: transform .15s ease; }
.pj-card:hover .pj-btn { background: var(--blue); color: var(--lime); }
.pj-card:hover .pj-btn .ico { transform: translateX(3px); }
.pj-card .pj-meta, .pj-card > .card-body > .badges { display: none; }
.pj-eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* testi lunghi chiusi ("Leggi il testo completo") */
.tx-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; font-weight: 800; color: var(--blue);
  padding: 10px 16px; border: 2px solid var(--blue); border-radius: var(--r-btn); background: #fff; }
.tx-more > summary::-webkit-details-marker { display: none; }
.tx-more > summary:hover { background: var(--blue); color: var(--lime); }
.tx-more[open] > summary { margin-bottom: 18px; }
.tx-more[open] > summary .chev { transform: rotate(180deg); }
.tone-blue .tx-more > summary { background: transparent; color: #fff; border-color: #fff; }

/* piè di pagina: "Fa parte di" (loghi in bianco sul fondo blu) */
.f-net { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 24px; margin-top: 8px; }
.f-net-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; }
.f-net-list a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; opacity: .9; transition: opacity .15s ease; color: #fff; text-decoration: none; }
.f-net-list a:hover { opacity: 1; }
.f-net-logo { display: flex; align-items: flex-end; min-height: 52px; }
.f-net-list img { max-width: 100%; filter: brightness(0) invert(1); }
.f-net-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.f-net-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--r-btn); padding: 6px 12px; }

/* =====================================================================
   PARTE 14 (18 ottobre 2026) – modulo di iscrizione alle attività
   ===================================================================== */
.reg { margin-top: 40px; background: var(--card-bg); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); scroll-margin-top: calc(var(--header-h) + 16px); }
.reg-head h2 { margin: 0 0 4px; }
.reg-head { margin-bottom: 18px; }
.reg-grid { display: grid; gap: 14px 18px; }
@media (min-width: 700px) { .reg-grid { grid-template-columns: 1fr 1fr; } }
.reg-f { display: grid; gap: 6px; font-weight: 700; color: var(--blue); font-size: .92rem; min-width: 0; }
.reg-f input, .reg-f select, .reg-f textarea { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; min-width: 0; }
.reg-f input:focus, .reg-f select:focus, .reg-f textarea:focus { border-color: var(--blue); outline: 3px solid var(--lime); outline-offset: 0; }
.reg-f [aria-invalid="true"] { border-color: #c2410c; }
.reg-wide { margin-top: 14px; }
.reg-altro { margin-top: 6px; }
.js .reg-altro[hidden] { display: none; }
.reg-minor { border: 2px dashed var(--blue); border-radius: 12px; padding: 14px 16px; margin: 18px 0 0; }
.reg-minor legend { font-weight: 800; color: var(--blue); padding: 0 6px; }
.js .reg-minor[hidden] { display: none; }
.reg-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .93rem; }
.reg-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.reg-err { color: #9a3412; font-size: .86rem; font-weight: 700; margin: 2px 0 0; }
.reg-err-top { background: #ffe8d6; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.reg-submit { margin: 22px 0 8px; }
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-done { text-align: left; }
.reg-done h2::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--blue); margin-right: 10px; font-size: 1.1rem; }
.reg-left { margin: 8px 0 0; font-weight: 700; color: var(--blue); }
/* anteprime delle attività: posti e gratuità ben visibili (18/10) */
.badge-seats { display: inline-flex; align-items: center; gap: .35em; }
.badge-seats .ico { width: 14px; height: 14px; }
.badge-free { background: #d7f2ea; color: #00614f; border-color: #00614f; }
.badge-price { background: #fff4d6; color: #8a5a00; border-color: #8a5a00; }
.reg-price { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; background: #fff; border-left: 4px solid var(--lime); border-radius: 8px; padding: 10px 14px; margin: 10px 0 0; }
.reg-price .ico { width: 18px; height: 18px; color: var(--blue); }
.reg-price .small { flex-basis: 100%; color: var(--muted); }

/* Slide delle attività in evidenza (spunta nell'attività) */
.slide-eyebrow { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); }
.slide-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.slide-badges .badge { font-size: .85rem; }
.slide-act .hero-title { font-size: clamp(2rem, 6vw, 4rem); max-width: 20ch; }

/* banner dei cookie e video di sfondo: valgono per entrambi gli stili (19/10) */
/* ---------- video di sfondo nelle slide (dopo il consenso): copre la foto, senza controlli ---------- */
.slide-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; z-index: 0; }
.slide-video iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.18); border: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide-video.is-playing iframe { opacity: 1; }

/* ---------- banner dei cookie ---------- */
.consenso { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; }
.consenso[hidden] { display: none; }
.consenso-in { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 22px; border-radius: 22px;
  background: #fff; color: #24233A; box-shadow: 0 18px 48px rgba(13, 11, 43, .25); border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #3D3BF3, #7C3AED, #DB2777) border-box; }
.consenso-txt { flex: 1 1 420px; margin: 0; font-size: .98rem; line-height: 1.5; }
.consenso-txt strong { display: block; color: #0D0B2B; margin-bottom: 2px; }
.consenso-txt a { color: #7C3AED; }
.consenso-btn { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.f2-legal-links .link-btn { color: #fff; text-decoration: none; }
.f2-legal-links .link-btn:hover { text-decoration: underline; }
/* video caricati nel sito (19/10): testata sul telefono e reel */
.page-head-img .video-file { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; display: none; }
@media (max-width: 700px) { .page-head-img .video-file.solo-telefono { display: block; } }
.page-head-img .video-file.is-playing { opacity: 1; }
.video-grid.is-reel { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); justify-content: start; }
.reel-card .video-file { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #2a1f4a; }

/* muro di foto (19/10): due file che scorrono in direzioni opposte */
.mosaico { display: grid; gap: 12px; overflow: hidden; padding: 4px 0; }
.mosaico-riga { overflow: hidden; }
.mosaico-nastro { display: flex; width: max-content; animation: mosaico-scorre 90s linear infinite; }
.mosaico-riga.al-contrario .mosaico-nastro { animation-direction: reverse; animation-duration: 110s; }
.mosaico:hover .mosaico-nastro { animation-play-state: paused; }
.mosaico-foto { margin: 0 12px 0 0; flex: none; height: clamp(170px, 24vw, 280px); border-radius: 18px; overflow: hidden; }
.mosaico-foto img { height: 100%; width: auto; max-width: none; display: block; object-fit: cover; transition: transform .8s ease; }
.mosaico-foto:hover img { transform: scale(1.06); }
@keyframes mosaico-scorre { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mosaico-nastro { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .mosaico-foto[aria-hidden="true"] { display: none; }
}

/* ---------- Etichetta "Sito in costruzione" (versione beta) ---------- */
.beta { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 100px));
  padding: 10px 10px 10px 16px; border-radius: 999px; background: #0D0B2B; color: #fff; font-size: .86rem; line-height: 1.3; box-shadow: 0 12px 30px rgba(13, 11, 43, .3); }
.beta[hidden] { display: none; }
.beta strong { font-weight: 700; }
.beta-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }
.beta-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.beta-x:hover { background: rgba(255, 255, 255, .25); }
.beta-x .ico { width: 16px; height: 16px; }
body:has(.consenso:not([hidden])) .beta { display: none; }
@media (max-width: 599px) { .beta { left: 10px; bottom: 12px; font-size: .78rem; border-radius: 18px; } }
