/* Tema "Rete Splash" — palette di marchio: Royal Blue #082caf, Sky Blue #1464f4, Mint Green #1ed6bb, Graphite #232323. */
/* Font del sito: Nunito self-hosted (font variabile 200-1000, solo latino). */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('/assets/fonts/nunito/nunito-latin.woff2') format('woff2');
}

body.theme-splash {
    --font: 'Nunito', -apple-system, "Segoe UI", Arial, sans-serif;
    --brand: #082caf;
    --brand-dark: #061f7d;
    --brand-ink: #ffffff;
    --accent: #1ed6bb;
    --sea: #1464f4;
    --ink: #061f7d;
    --ink-mid: #082caf;
    --paper: #ffffff;
    --paper-alt: #ffffff;
    --surface: #ffffff;
    --text: #061f7d; /* blu del fondo del footer */
    --muted: #061f7d;
    --text-light: #f4f7fb;
    --muted-light: rgba(244,247,251,.85);
    --radius: 0; /* angoli quadrati ovunque */
}

/* Pagine corte: il footer resta in fondo alla finestra, niente striscia bianca sotto. */
html:has(body.theme-splash), body.theme-splash { background: #fff; }
body.theme-splash { min-height: 100vh; display: flex; flex-direction: column; }
body.theme-splash > main { flex: 1 0 auto; }

/* Sito senza negozio */
.theme-splash .nav-cart { display: none; }

/* Focus sempre visibile */
.theme-splash a:focus-visible,
.theme-splash button:focus-visible,
.theme-splash input:focus-visible,
.theme-splash textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--brand-dark);
}
/* Link: niente sottolineatura, grassetto + colore di evidenza
   (Royal Blue sui fondi chiari, Mint Green sui fondi blu). */
.theme-splash a { text-decoration: none; }
.theme-splash .body a, .theme-splash .splash-recapiti a, .theme-splash .splash-privacy a,
.theme-splash .splash-back a { color: var(--brand); font-weight: 700; }
.theme-splash .body a:hover, .theme-splash .splash-recapiti a:hover, .theme-splash .splash-privacy a:hover,
.theme-splash .splash-back a:hover { color: var(--sea); }
.theme-splash h2 { color: var(--brand); font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Salta al contenuto */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--brand-dark); padding: 10px 16px; border-radius: 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---- Menu: sopra la testata, voci in maiuscolo separate da "|" ---- */
.theme-splash .site-nav { position: absolute; inset: 0 0 auto 0; z-index: 40; background: transparent; }
.theme-splash .site-nav .nav-inner { padding: 20px 24px; }
.theme-splash .site-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.theme-splash .site-nav .brand img { height: 92px; width: auto; }
@media (max-width: 900px) { .theme-splash .site-nav .brand img { height: 60px; } }
.theme-splash .site-nav .brand span { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.theme-splash .site-nav .nav-links { gap: 0; justify-content: flex-end; }
.theme-splash .site-nav .nav-links a {
    color: #fff; opacity: 1; text-transform: uppercase; font-size: .9rem; letter-spacing: .06em;
    padding: 6px 14px; position: relative; text-decoration: none;
}
.theme-splash .site-nav .nav-links a + a::before {
    content: "|"; position: absolute; left: -3px; top: 5px; color: rgba(255,255,255,.55); font-weight: 400;
}
.theme-splash .site-nav .nav-links a:hover { color: var(--accent); }
.theme-splash .site-nav .nav-links a[aria-current="page"] { font-weight: 800; color: var(--accent); }
.theme-splash .site-nav .nav-ctas:empty { display: none; }
@media (max-width: 900px) {
    .theme-splash .site-nav.nav-open .nav-links a + a::before { content: none; }
    .theme-splash .site-nav.nav-open .nav-inner { background: var(--brand-dark); padding-top: 110px; }
    /* Menu mobile aperto: voci in alto, grandi e facili da toccare (il flex-end del desktop le spingeva in fondo). */
    .theme-splash .site-nav.nav-open .nav-links { flex: 0 0 auto; justify-content: flex-start; gap: 0; }
    .theme-splash .site-nav.nav-open .nav-links a,
    .theme-splash .site-nav.nav-open .nav-links a[aria-current="page"] { font-size: 1.6rem; font-weight: 300; letter-spacing: -.01em; line-height: 1.2; padding: 6px 0; }
    .theme-splash .site-nav.nav-open .brand { position: absolute; top: 20px; left: 24px; }
}

/* ---- Testata FOTO/GRAFICA ---- */
.section-splash-hero {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    min-height: 380px; display: flex; align-items: flex-end;
    /* In alto Royal Blue pieno: il Mint del menu resta leggibile (contrasto ≥ 4.5:1). */
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 38%, var(--sea) 100%);
    padding-top: 140px;
}
.page-home .section-splash-hero { min-height: 100vh; min-height: 100svh; align-items: center; }
/* Freccia centrale della testata Home: scorre ai contenuti. */
.splash-hero-scroll {
    position: absolute; left: 50%; bottom: 46px; z-index: 4; transform: translateX(-50%);
    width: 52px; height: 52px; border: 2px solid #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem; text-decoration: none;
    animation: splash-scroll-bounce 2s ease-in-out infinite;
}
.splash-hero-scroll:hover { background: #fff; color: var(--brand); }
.splash-hero-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes splash-scroll-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .splash-hero-scroll { animation: none; } }
html.acw-noanim .splash-hero-scroll { animation: none; }
html:has(#dopo-testata) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(#dopo-testata) { scroll-behavior: auto; } }
/* Pagina Carbon footprint: testata che sfuma nel Mint; in alto resta blu per il menu, titolo blu scuro sul Mint. */
.page-carbon-footprint .section-splash-hero { background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 28%, var(--accent) 72%, var(--accent) 100%); }
.page-carbon-footprint .splash-hero-content h1, .page-carbon-footprint .splash-hero-sub { color: var(--brand-dark); text-shadow: none; }
.page-carbon-footprint .splash-hero-waves .w2 { fill: rgba(255,255,255,.3); }
.splash-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-splash-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,31,125,.75) 0%, rgba(6,31,125,.35) 45%, rgba(6,31,125,.8) 100%); }
.splash-hero-fx {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
    mix-blend-mode: screen;
}
.section-splash-hero.has-image .splash-hero-fx { display: none; }
.splash-hero-waves { position: absolute; left: 0; right: 0; bottom: -4px; width: 100%; height: 124px; z-index: 2; } /* sborda: niente filo blu sul bordo */
.splash-hero-waves .w1 { fill: rgba(255,255,255,.12); animation: splashWave 14s ease-in-out infinite alternate; }
.splash-hero-waves .w2 { fill: rgba(30,214,187,.35); animation: splashWave 10s ease-in-out infinite alternate-reverse; }
.splash-hero-waves .w3 { fill: var(--paper-alt); }
@keyframes splashWave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.splash-hero-content { position: relative; z-index: 3; padding-top: 24px; padding-bottom: 110px; }
.splash-hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 12px; max-width: 820px; }
.splash-hero-sub { font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.3; font-weight: 600; max-width: 900px; margin: 0; color: #fff; }
/* Ombra leggera sulle lettere: il testo resta leggibile sopra le onde chiare. */
.splash-hero-content h1, .splash-hero-sub { text-shadow: 0 1px 2px rgba(6,31,125,.65), 0 2px 14px rgba(6,31,125,.55); }
/* Titoli della testata: entrano ingranditi e sfocati e si dissolvono a fuoco (come "vanishIn"). */
@keyframes splash-vanish-in {
    from { opacity: 0; transform: scale(2); filter: blur(40px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.splash-hero-content h1, .splash-hero-sub { transform-origin: center; animation: splash-vanish-in 1s ease-out both; }
.has-logo-anim .splash-hero-content h1, .has-logo-anim .splash-hero-sub { transform-origin: left center; }
.splash-hero-sub { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) { .splash-hero-content h1, .splash-hero-sub { animation: none; } }
html.acw-noanim .splash-hero-content h1, html.acw-noanim .splash-hero-sub { animation: none; }
@media (prefers-reduced-motion: reduce) { .splash-hero-waves path { animation: none; } }

/* Logo animato della testata (Home): a destra, centrato nella sua metà; sopra al titolo su mobile. */
.has-logo-anim .splash-hero-content { width: 100%; }
.has-logo-anim .splash-hero-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.has-logo-anim .splash-logo-anim { justify-self: center; }
.splash-logo-anim { flex: 0 0 auto; width: clamp(170px, 28vw, 340px); height: auto; cursor: pointer; }
.splash-logo-anim .logo-disc { fill: url(#splash-logo-grad); }
.splash-logo-anim--flat .logo-disc { fill: var(--sea); } /* variante monocolore */
.splash-logo-anim .goo { fill: #fff; }
.splash-logo-anim .logo-shape { fill: #fff; }
.splash-logo-anim.is-anim .logo-shape { opacity: 0; } /* senza JS il logo resta intero */
@media (max-width: 700px) {
    .has-logo-anim .splash-hero-content { grid-template-columns: 1fr; gap: 16px; }
    .has-logo-anim .splash-logo-anim { order: -1; justify-self: start; }
    .splash-logo-anim { width: 130px; }
}

/* ---- Testo sintetico di introduzione ---- */
.section-splash-intro { background: var(--paper-alt); text-align: left; }
.section-splash-intro .container { padding-top: 40px; }
.section-splash-intro .body { font-size: 1.2rem; color: var(--text); }

/* ---- Infografica ---- */
/* Titolo sopra il fondo originale dell'immagine (spazio libero in alto nel ritaglio). */
.section-splash-infografica { position: relative; padding: 0; background: #2e3a8f; color: #fff; }
.section-splash-infografica > .container { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding-top: clamp(14px, 3.2vw, 56px); padding-bottom: 0; pointer-events: none; }
.section-splash-infografica h2 { margin: 0; }
@media (max-width: 560px) { .section-splash-infografica h2 { font-size: 1.15rem; } }
.section-splash-infografica h2 { color: #fff; text-align: center; }
.section-splash-infografica .body { margin: 0 0 24px; text-align: center; }
.splash-infografica { margin: 0; }
.splash-infografica svg { display: block; width: 100%; height: auto; }
/* Fasi in sequenza (ciclo di 24 s): compaiono una dopo l'altra, restano accese insieme, poi ripartono. */
.splash-infografica .p1 { animation: splashP1 24s linear infinite; }
.splash-infografica .p2 { animation: splashP2 24s linear infinite; }
.splash-infografica .p3 { animation: splashP3 24s linear infinite; }
.splash-infografica .p4 { animation: splashP4 24s linear infinite; }
@keyframes splashP1 { 0%,2% {opacity:0} 6%,92% {opacity:1} 98%,100% {opacity:0} }
@keyframes splashP2 { 0%,20% {opacity:0} 24%,92% {opacity:1} 98%,100% {opacity:0} }
@keyframes splashP3 { 0%,38% {opacity:0} 42%,92% {opacity:1} 98%,100% {opacity:0} }
@keyframes splashP4 { 0%,56% {opacity:0} 60%,92% {opacity:1} 98%,100% {opacity:0} }
/* Anello del processo: scia luminosa che gira in senso orario + pacchetti di dati. */
.splash-infografica .loop-glow { fill: none; stroke: #7fe3ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40 960; animation: splashLoop 12s linear infinite; opacity: .85; }
@keyframes splashLoop { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
.splash-infografica .beat { fill: none; stroke: #ffffff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: splashBeat 3s ease-out infinite; }
.splash-infografica .b2 { animation-delay: .75s; }
.splash-infografica .b3 { animation-delay: 1.5s; }
.splash-infografica .b4 { animation-delay: 2.25s; }
@keyframes splashBeat { 0% { opacity: .7; transform: scale(.4); } 60%,100% { opacity: 0; transform: scale(1.2); } }
.splash-infografica .out { fill: none; stroke: #ffd21f; stroke-width: 3; stroke-dasharray: 6 8; animation: splashDash 1s linear infinite; }
@keyframes splashDash { to { stroke-dashoffset: -14; } }
.splash-infografica .ring { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: splashRing 2.2s ease-out infinite; }
.splash-infografica .d2 { animation-delay: .7s; }
.splash-infografica .d3 { animation-delay: 1.4s; }
@keyframes splashRing { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.6); } }
/* Traliccio: luce in cima e onde radio. */
.splash-infografica .beacon { fill: #ff4d4d; animation: splashBeacon 1.2s steps(1) infinite; }
@keyframes splashBeacon { 0% { opacity: 1; } 50% { opacity: .15; } }
.splash-infografica .signal { fill: none; stroke: #ffd21f; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: splashSignal 2.4s ease-out infinite; }
.splash-infografica .s2 { animation-delay: .8s; }
.splash-infografica .s3 { animation-delay: 1.6s; }
@keyframes splashSignal { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.2); } }
/* Monitor della postazione di elaborazione. */
.splash-infografica .screen { mix-blend-mode: screen; animation: splashBlink 1.4s ease-in-out infinite alternate; }
@keyframes splashBlink { from { opacity: .1; } to { opacity: .75; } }
.splash-infografica .pk { fill: #ffd21f; }
.splash-infografica .pky { fill: #ffd21f; }
/* In pausa (widget accessibilità o preferenza di sistema): tutto visibile e fermo. */
.splash-infografica.is-paused * { animation: none !important; }
.splash-infografica.is-paused .ring, .splash-infografica.is-paused .beat, .splash-infografica.is-paused .signal { opacity: 0; }
.splash-infografica.is-paused .pk, .splash-infografica.is-paused .pky { display: none; }

/* ---- Banner fiera / chiusura ferie ---- */
.section-splash-banner { background: #e2e4e8; color: var(--brand-dark); }
.splash-banner-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.splash-banner-icon { font-size: 2.4rem; }
.splash-banner-text { flex: 1 1 320px; }
.splash-banner-text h2 { color: var(--brand-dark); margin: 0 0 6px; font-size: 1.5rem; }
.splash-banner-text p { margin: 0; }
/* Banner con immagine: al vivo, senza fondo grigio né margini (il grigio resta per il banner di solo testo). */
.section-splash-banner.has-image { background: none; padding: 0; }
.splash-banner-link { display: block; }
.splash-banner-img { display: block; width: 100%; height: auto; }
.splash-banner-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.btn-accent { background: var(--brand-dark); color: #fff; }
.btn-accent:hover { background: var(--brand); }

/* ---- Chi siamo: testo + immagine ---- */
.theme-splash .section-text-image { background: var(--paper-alt); }
/* Testo a piena larghezza della colonna, giustificato. */
.theme-splash .section-text-image .body { text-align: left; }
.theme-splash .section-text-image .col-image img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* ---- Loghi della rete ---- */
.section-splash-loghi { background: var(--paper-alt); }
.section-splash-loghi .container { padding-top: 16px; }
.splash-loghi-parallax { min-height: 380px; margin-bottom: 56px; }
.section-splash-loghi h2 { font-size: 1.6rem; text-align: center; }
.splash-loghi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 72px; }
.splash-azienda { display: flex; flex-direction: column; gap: 18px; }
/* Logo in alto, centrato in uno spazio di altezza fissa: le tre colonne partono allineate. */
.splash-azienda-logo { height: 130px; display: flex; align-items: center; justify-content: center; }
.splash-azienda-logo img { max-height: 115px; max-width: 96%; width: auto; height: auto; object-fit: contain; }
.splash-logo-name { font-weight: 800; color: var(--brand); font-size: 1.25rem; margin: 0; }
.splash-logo-name a { color: inherit; }
.splash-logo-name a:hover { color: var(--sea); }
.splash-azienda-text { color: var(--text); font-size: .98rem; line-height: 1.6; text-align: left; }

/* ---- Attività ---- */
.section-splash-servizi { background: var(--paper-alt); }
.splash-lead { font-size: 1.1rem; color: var(--muted); }
.splash-indice { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 40px; display: inline-block; min-width: min(100%, 420px); }
.splash-indice-title { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; color: var(--accent); }
.splash-indice ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.splash-indice a { color: var(--accent); font-weight: 700; }
.splash-indice a:hover { color: #fff; }
.splash-servizi-list { display: grid; gap: 0; }
.splash-servizio { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; padding: 40px 0; border-bottom: 1px solid #c8d1ee; scroll-margin-top: 24px; }
.splash-servizio:last-child { border-bottom: 0; }
/* Citizen science: blocco su fondo verde (Mint del marchio) */
/* Fondo al vivo (fino ai bordi della finestra) senza allargare il blocco: il testo resta allineato alla pagina. */
#citizen-science-formazione-e-coinvolgimento-della-comunita { background: var(--accent); box-shadow: 0 0 0 100vmax var(--accent); clip-path: inset(0 -100vmax); padding: 48px 0 56px; margin-top: 40px; border-bottom: 0; }
/* Ultimo blocco: attaccato al footer */
.section-splash-servizi .container:has(> .splash-servizi-list > #citizen-science-formazione-e-coinvolgimento-della-comunita:last-child) { padding-bottom: 0; }
#citizen-science-formazione-e-coinvolgimento-della-comunita :is(h2, h3) { color: var(--brand-dark); }
.splash-servizio:has(+ #citizen-science-formazione-e-coinvolgimento-della-comunita) { border-bottom: 0; }
@media (max-width: 700px) { #citizen-science-formazione-e-coinvolgimento-della-comunita { padding: 32px 0 40px; } }
.splash-servizio :is(h2,h3) { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--brand); display: flex; gap: 10px; align-items: baseline; }
.splash-servizio :is(h2,h3) i { color: var(--sea); }
.splash-servizio-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
/* Parallax tra il testo introduttivo e l'elenco delle attività */
.splash-servizi-parallax { min-height: 380px; margin: 32px 0 8px; }
.section-splash-servizi .splash-lead { margin-bottom: 0; }
.section-splash-servizi .splash-lead p { margin: 0 0 1em; }
.section-splash-servizi .splash-lead p:last-child { margin-bottom: 0; }
.splash-media-placeholder {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border-radius: var(--radius);
    background: linear-gradient(150deg, var(--brand), var(--sea)); color: rgba(255,255,255,.9); font-size: 3.4rem;
}
.splash-pdf { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; color: var(--brand); text-decoration: none; border: 2px solid var(--brand); border-radius: 0; padding: 9px 18px; }
.splash-pdf:hover { background: var(--brand); color: #fff; }
.splash-pdf i { color: #c0392b; }
.splash-pdf:hover i { color: #fff; }
.splash-pdf-meta { font-weight: 400; font-size: .85em; }
.splash-back { margin: 16px 0 0; }
.splash-empty { color: var(--muted); }
@media (max-width: 760px) {
    .splash-servizio { grid-template-columns: 1fr; gap: 20px; }
}

/* Dissolvenza in entrata allo scroll (assets/reveal.js aggiunge .js-reveal e .is-visible).
   Senza JS, con animazioni ridotte o con "Ferma animazioni" del widget: tutto visibile subito. */
.js-reveal .splash-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .splash-reveal .splash-servizio-media { opacity: 0; transform: translateX(-28px); transition: opacity .9s ease .15s, transform .9s ease .15s; }
.js-reveal .splash-reveal.is-visible,
.js-reveal .splash-reveal.is-visible .splash-servizio-media { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal .splash-reveal, .js-reveal .splash-reveal .splash-servizio-media { opacity: 1; transform: none; transition: none; }
}
html.acw-noanim .splash-reveal, html.acw-noanim .splash-reveal .splash-servizio-media { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---- Progetti: card a 3 colonne ---- */
.section-splash-progetti { background: var(--paper-alt); }
.splash-progetti-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .splash-progetti-grid { grid-template-columns: 1fr; gap: 24px; } }
/* Card come Stripe: parte alta chiara con sfumatura pastello tenue, che si intensifica al passaggio del mouse. */
.splash-progetto-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(6,31,125,.06), 0 12px 32px rgba(6,31,125,.08); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.splash-progetto-card:hover, .splash-progetto-card:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(6,31,125,.06), 0 22px 48px rgba(6,31,125,.14); }
.splash-progetto-media { position: relative; overflow: hidden; background: #f3f6fb; }
.splash-progetto-media::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; transition: opacity .6s ease;
    background:
        radial-gradient(60% 85% at 88% 0%, rgba(30,214,187,.55), rgba(30,214,187,0) 70%),
        radial-gradient(55% 75% at 0% 100%, rgba(150,140,255,.38), rgba(150,140,255,0) 70%),
        radial-gradient(45% 60% at 45% 45%, rgba(20,100,244,.14), rgba(20,100,244,0) 70%);
}
.splash-progetto-card:hover .splash-progetto-media::before, .splash-progetto-card:focus-within .splash-progetto-media::before { opacity: 1; }
.splash-progetto-media img, .splash-progetto-media .splash-media-placeholder { position: relative; z-index: 1; display: flex; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.splash-progetto-media .splash-media-placeholder { flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: transparent; color: var(--brand); font-size: 3.6rem; transition: transform .6s ease; }
.splash-progetto-sigla { font-size: 1.85rem; font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--brand-dark); }
.splash-progetto-card:hover .splash-media-placeholder, .splash-progetto-card:focus-within .splash-media-placeholder { transform: translateY(-6px); }
.splash-progetto-card :is(h2,h3) { margin: 28px 32px 10px; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.splash-progetto-card :is(h2,h3) a { color: var(--brand); text-decoration: none; }
.splash-progetto-card :is(h2,h3) a::after { content: ""; position: absolute; inset: 0; }
.splash-progetto-card p { margin: 0 32px 16px; color: var(--muted); flex: 1; }
.splash-continua { margin: 0 32px 28px; font-weight: 700; color: var(--brand); }
.splash-continua i { transition: transform .35s ease; }
.splash-progetto-card:hover .splash-continua i, .splash-progetto-card:focus-within .splash-continua i { transform: translateX(5px); }
@media (max-width: 760px) { .splash-progetto-card :is(h2,h3) { margin: 22px 22px 8px; } .splash-progetto-card p { margin: 0 22px 14px; } .splash-continua { margin: 0 22px 22px; } }
@media (prefers-reduced-motion: reduce) { .splash-progetto-card, .splash-progetto-card * , .splash-progetto-media::before { transition: none !important; } .splash-progetto-card:hover { transform: none; } }

/* ---- Dettaglio progetto ---- */
.section-splash-progetto { background: var(--paper); padding-top: 140px; }
.page-progetto-detail .site-nav { background: var(--brand-dark); }
.section-splash-progetto .splash-back { margin: 0 0 24px; }
.splash-progetto-cover { width: 100%; max-width: 560px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.section-splash-progetto h1 { color: var(--brand); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.splash-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.splash-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

/* ---- Contatti ---- */
.section-splash-contatti { background: var(--paper-alt); }
.splash-contatti-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.splash-company { font-weight: 800; font-size: 1.15rem; margin: 0 0 12px; }
.splash-recapiti { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.splash-recapiti li { display: flex; gap: 12px; align-items: flex-start; }
.splash-recapiti i { color: var(--brand); width: 20px; margin-top: 4px; text-align: center; }
.btn-outline-brand { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.splash-form-wrap { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: 0 6px 22px rgba(8,44,175,.08); }
.splash-form-title { font-size: 1.4rem; }
.splash-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.splash-form-full { grid-column: 1 / -1; }
.splash-form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; }
.splash-form-row { display: flex; flex-direction: column; gap: 6px; }
.splash-form-row label { font-weight: 600; font-size: .95rem; }
.splash-form input[type=text], .splash-form input[type=email], .splash-form input[type=tel], .splash-form textarea {
    padding: 12px 14px; border: 1px solid #7a879c; border-radius: 0; font-size: 1rem; background: #fff; color: var(--text);
}
.splash-form textarea { resize: vertical; }
.splash-privacy { display: flex; gap: 10px; align-items: flex-start; }
.splash-privacy input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.splash-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.theme-splash .form-success { color: #0f5132; background: #d1e7dd; }
.theme-splash .form-success i { color: #0f5132; }
.theme-splash .form-error { color: #842029; background: #f8d7da; }
.theme-splash .form-error i { color: #842029; }
@media (max-width: 760px) {
    .splash-contatti-grid, .splash-form { grid-template-columns: 1fr; }
    .splash-form-wrap { padding: 22px; }
}

/* ---- Privacy e cookie: testo legale in colonna a sinistra, interlinea compatta ---- */
.theme-splash .legal-text { line-height: 1.5; }
.theme-splash .legal-text h2 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.theme-splash .legal-text h2:first-child { margin-top: 0; }
.theme-splash .legal-text p { margin: 0 0 .7em; }
.theme-splash .legal-text ul { margin: 0 0 .8em; padding-left: 1.2em; }
.theme-splash .legal-text li { margin-bottom: .35em; }
.page-privacy .section-intro-cta .body, .page-cookie .section-intro-cta .body { text-align: left; }

/* ---- Privacy (pagina di testo) ---- */
.theme-splash .section-intro-cta { background: var(--paper-alt); color: var(--text); text-align: left; }
.theme-splash .section-intro-cta h2 { color: var(--brand); margin-left: 0; max-width: none; }
.theme-splash .section-intro-cta .body { opacity: 1; margin-left: 0; max-width: none; } /* testi a tutta larghezza del contenitore */

/* ---- Footer ---- */
.section-splash-footer { background: var(--brand-dark); color: var(--text-light); font-size: .95rem; }
.section-splash-footer .container { padding-top: 48px; padding-bottom: 28px; }
/* Fascia con le onde, sotto la riga della privacy. */
.splash-footer-waves { position: relative; height: 130px; overflow: hidden; isolation: isolate; --sea: #14a9f4; }
/* Firma in alto a sinistra nella fascia delle onde, in bianco sporco, non in grassetto. */
.splash-signature { position: relative; z-index: 1; margin: 0 auto; padding-top: 8px; padding-bottom: 0; font-size: .82rem; line-height: 1.4; color: #dfe4ee; display: flex; flex-wrap: wrap; gap: 6px; }
.section-splash-footer .splash-signature { padding-top: 8px; padding-bottom: 0; }
.section-splash-footer .splash-signature a { color: #dfe4ee; font-weight: 400; }
.section-splash-footer .splash-signature a:hover { color: #fff; text-decoration: underline; }
.splash-footer-waves .waves-fx {
    position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px);
    mask-image: linear-gradient(180deg, transparent 0, #000 28px);
}
.section-splash-footer a { color: var(--accent); font-weight: 700; }
.section-splash-footer a:hover { color: #fff; }
.splash-footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr auto; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.2); }
.splash-footer-company { font-weight: 800; margin: 0 0 6px; color: #fff; }
.splash-footer-col p, .splash-footer-col address { margin: 0 0 6px; font-style: normal; }
.splash-footer-col i { color: var(--accent); width: 18px; }
.splash-footer-col .splash-footer-label { margin: 0 0 2px; font-weight: 700; color: #fff; }
.splash-footer-col .splash-footer-label + address { margin-bottom: 12px; }
.splash-linkedin { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 0; background: rgba(255,255,255,.12); font-size: 1.2rem; }
.section-splash-footer .splash-linkedin:hover { background: var(--accent); color: var(--brand-dark); }
.splash-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 22px; }
.splash-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.splash-footer-links a { font-size: .9rem; }
.splash-funding { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1 1 100%; order: 3; font-size: .85rem; }
.splash-funding p { margin: 0; }
/* Loghi della programmazione 2021-2027 (versione negativa del kit regionale): riga a sé, leggibili anche su mobile. */
.splash-funding picture { display: block; width: min(100%, 535px); }
.splash-funding img { display: block; width: 100%; height: auto; }
.section-splash-footer .splash-carbon, .splash-carbon { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(255,255,255,.8); border-radius: 0; padding: 8px 16px; color: #fff; font-size: .9rem; font-weight: 400; text-decoration: none; }
.splash-carbon .carbon-leaf { flex: none; color: #7ee2a8; }
.splash-carbon sub { font-size: .7em; vertical-align: baseline; position: relative; top: .25em; }
.section-splash-footer .splash-carbon:hover, .section-splash-footer .splash-carbon:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 699px) { .splash-funding picture { width: min(100%, 560px); } .section-splash-footer .splash-carbon { margin-left: 0; } }
@media (max-width: 900px) { .splash-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .splash-footer-grid { grid-template-columns: 1fr; } }

/* Il widget accessibilità sta in basso a sinistra: "torna su" resta a destra. */
.theme-splash .back-to-top { background: var(--brand); color: #fff; }
.theme-splash .back-to-top:hover { background: var(--brand-dark); }

/* Angoli quadrati anche sugli elementi del foglio base usati dal sito. */
.theme-splash .back-to-top,
.theme-splash .form-success,
.theme-splash .form-error,
.theme-splash .x0lb__btn { border-radius: 0; }

/* ---- Carbon footprint (pagina di dettaglio): colori Splash sul foglio base ---- */
.theme-splash .section-carbon { color: var(--text); }
.theme-splash .section-carbon h2 { color: var(--brand); }

/* ---- Corpo unico per i testi del sito (come l'introduzione della home), footer e testata esclusi ---- */
.theme-splash main :is(p, li, address, dd, td, label, .body, .splash-lead, .splash-azienda-text, .splash-form-note, input, textarea, select):not(.section-splash-hero *, .section-splash-footer *, .splash-hero-sub, .carbon-badge-p, .carbon-badge *) { font-size: 1.2rem; }

/* Modulo contatti disattivato dal pannello: visibile ma non compilabile */
.splash-form-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: contents; }
.splash-form.is-disabled { opacity: .5; pointer-events: none; user-select: none; }
.splash-form-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.theme-splash .form-paused { color: var(--brand-dark); background: #e2e4e8; padding: 12px 16px; margin: 0 0 16px; }
