/* WELL DONE ETS – stile del tema (sopra Blocksy). Componenti dati: plugin welldone-core/assets/core.css */

@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-latin-700-normal.woff2") format("woff2"); }

:root {
	--wd-font: "Titillium Web", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--wd-navy: #0f2d4e;
	--wd-blue: #1e6fb8;
	--wd-teal: #16897b;
	--wd-yellow: #f2c230;
	--wd-red: #d7263d;
	--wd-magenta: #b4488f;
	--wd-orange: #ee8434;
	--wd-ink: #1a2433;
	--wd-muted: #556274;
	--wd-line: #dde3ea;
	--wd-soft: #f3f6f9;
}

body, button, input, select, textarea,
.elementor-widget-text-editor, .elementor-heading-title, .elementor-button {
	font-family: var(--wd-font);
}
body { color: var(--wd-ink); font-size: 17px; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, .elementor-heading-title { font-family: var(--wd-font); font-weight: 700; color: var(--wd-navy); letter-spacing: -.005em; }

a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--wd-yellow) !important; outline-offset: 2px; }

/* Barra arcobaleno sotto l'header: richiamo al logo */
.ct-header::after {
	content: ""; display: block; height: 4px;
	background: linear-gradient(90deg, var(--wd-blue) 0 16.6%, var(--wd-magenta) 0 33.3%, var(--wd-red) 0 50%, var(--wd-yellow) 0 66.6%, var(--wd-teal) 0 83.3%, var(--wd-orange) 0);
}
[data-id="logo"] .site-logo-container img { max-height: 46px; width: auto; }

/* Hero pagine interne (Blocksy) */
.hero-section[data-type="type-2"] { background: var(--wd-navy); }
.hero-section[data-type="type-2"] .page-title,
.hero-section[data-type="type-2"] .ct-breadcrumbs,
.hero-section[data-type="type-2"] .ct-breadcrumbs a { color: #fff; }
.hero-section[data-type="type-2"] .page-description { color: rgba(255, 255, 255, .85); }

/* ---------- Classi di utilità per le sezioni Elementor ---------- */
.wd-eyebrow .elementor-heading-title { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--wd-teal) !important; font-weight: 700; }
.wd-on-dark .wd-eyebrow .elementor-heading-title { color: var(--wd-yellow) !important; }
.wd-lead { font-size: 1.2rem; color: var(--wd-muted); }
.wd-on-dark, .wd-on-dark .elementor-heading-title, .wd-on-dark .elementor-widget-text-editor { color: #fff; }
.wd-on-dark .wd-lead { color: rgba(255, 255, 255, .88); }

.wd-hero .elementor-heading-title { text-wrap: balance; }
.wd-hero-title .elementor-heading-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; color: #fff; }

.wd-panel {
	background: #fff; border: 1px solid var(--wd-line); border-radius: 12px; padding: 28px;
	box-shadow: 0 1px 2px rgba(15, 45, 78, .06), 0 6px 18px rgba(15, 45, 78, .07);
}
.wd-panel--accent { border-top: 5px solid var(--wd-teal); }
.wd-panel--blue { border-top: 5px solid var(--wd-blue); }
.wd-panel--red { border-top: 5px solid var(--wd-red); }
.wd-panel--yellow { border-top: 5px solid var(--wd-yellow); }

.wd-quote .elementor-widget-container { border-left: 5px solid var(--wd-yellow); padding: 6px 0 6px 22px; font-size: 1.25rem; font-style: italic; color: var(--wd-navy); }

.elementor-widget-icon-box .elementor-icon { color: var(--wd-blue); }
.elementor-widget-icon-box .elementor-icon-box-title { color: var(--wd-navy); font-weight: 700; }

.elementor-button { border-radius: 6px; font-weight: 600; }
.wd-btn-primary .elementor-button { background: var(--wd-yellow); color: var(--wd-navy); }
.wd-btn-primary .elementor-button:hover { background: #fff; color: var(--wd-navy); }
.wd-btn-ghost .elementor-button { background: transparent; color: #fff; border: 2px solid #fff; }
.wd-btn-ghost .elementor-button:hover { background: #fff; color: var(--wd-navy); }
.wd-btn-navy .elementor-button { background: var(--wd-navy); color: #fff; }
.wd-btn-navy .elementor-button:hover { background: var(--wd-blue); }

.wd-checklist ul { list-style: none; padding: 0; }
.wd-checklist li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.wd-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wd-teal); font-weight: 700; }
.wd-crosslist li::before { content: "✕"; color: var(--wd-red); }

.wd-img-rounded img { border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 45, 78, .18); }

/* ---------- Footer istituzionale ---------- */
.wd-footer { background: var(--wd-navy); color: rgba(255, 255, 255, .86); padding: 56px 0 28px; font-size: .95rem; }
.wd-footer a { color: #fff; }
.wd-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 32px; }
@media (max-width: 900px) { .wd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wd-footer__grid { grid-template-columns: 1fr; } }
.wd-footer__name { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.wd-footer__motto { font-style: italic; color: var(--wd-yellow); margin: 0 0 12px; }
.wd-footer__title { color: #fff !important; font-size: .82rem !important; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.wd-footer__list { list-style: none; margin: 0; padding: 0; }
.wd-footer__list li { margin-bottom: 6px; }
.wd-footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wd-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }

/* Barra di copyright di Blocksy, allineata al footer istituzionale */
.ct-footer [data-row="bottom"] { background: #0a2038; color: rgba(255, 255, 255, .7); }
.ct-footer [data-row="bottom"] a { color: #fff; }

/* Pagine della Trasparenza: contenuto a tutta larghezza del contenitore */
.wd-trasparenza .entry-content > .wd-at { max-width: none; }
.wd-trasparenza [data-vertical-spacing] { --theme-content-vertical-spacing: 48px; }

/* Timeline (Chi siamo) */
.wd-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--wd-line); }
.wd-timeline li { position: relative; margin: 0 0 16px; padding-left: 14px; font-size: .95rem; }
.wd-timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--wd-yellow); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--wd-line); }
.wd-timeline strong { display: block; color: var(--wd-navy); }

/* Logo: il nome del sito è già nell'immagine (resta nel testo alternativo) */
[data-id="logo"] .site-title-container { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.elementor-widget-icon-box .elementor-icon-box-title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 6px; }
.wd-buttons .elementor-widget-button { width: auto; }

/* Iniziative: la data di pubblicazione non è un'informazione utile */
.single-iniziativa .entry-meta, .single-iniziativa .hero-section .ct-meta-element-date { display: none; }

/* Barra di copyright Blocksy e separazione cromatica dal contenuto */
.ct-footer { background: #0a2038 !important; }
.ct-footer, .ct-footer .ct-footer-copyright { color: rgba(255, 255, 255, .72) !important; }
.ct-footer a { color: #fff !important; }
.wd-footer { position: relative; }
.wd-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--wd-blue) 0 16.6%, var(--wd-magenta) 0 33.3%, var(--wd-red) 0 50%, var(--wd-yellow) 0 66.6%, var(--wd-teal) 0 83.3%, var(--wd-orange) 0);
}
