/* Tema Istituzionale – stili principali */
:root {
	--ti-primary: #0b4f8a;
	--ti-primary-dark: #083a66;
	--ti-text: #1c2733;
	--ti-muted: #5b6b7b;
	--ti-line: #d9e0e7;
	--ti-soft: #f2f5f8;
	--ti-white: #fff;
	--ti-radius: 6px;
	--ti-max: 1160px;
	--logo: var(--ti-logo-h, 52px);
	--ti-content-pct: 80%;
	--ti-font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--ti-font-head: var(--ti-font-body);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; color: var(--ti-text); background: var(--ti-white);
	font: 17px/1.6 var(--ti-font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ti-primary); text-underline-offset: 2px; }
a:hover { color: var(--ti-primary-dark); }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6, .brand__name, .nav .menu a { font-family: var(--ti-font-head); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
html { scroll-padding-top: 90px; }
.container { width: 100%; max-width: var(--ti-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.topbar { background: var(--ti-primary-dark); color: #b9cde1; font-size: 13px; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 8px 16px; }
.topbar__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar__ente { white-space: nowrap; }
.topbar__contact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__contact svg { opacity: .8; flex-shrink: 0; }
.topbar a { color: #e4eef8; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar__nav { min-width: 0; }
.topbar__menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; }
.topbar__menu li + li { border-left: 1px solid rgba(255,255,255,.22); }
.topbar__menu a { display: block; padding: 0 12px; white-space: nowrap; }
.topbar__account { display: flex; gap: 14px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); white-space: nowrap; font-weight: 600; }
.topbar__account a { color: #fff; }
.mainbar { background: var(--ti-white); border-bottom: 1px solid var(--ti-line); position: relative; z-index: 50; transition: box-shadow .2s; }
.has-sticky .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(10,30,50,.12); }
.site-header.is-scrolled .mainbar__row { min-height: 60px; }
.site-header.is-scrolled .brand__logo { height: calc(var(--logo) * .78); }
.mainbar__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; transition: min-height .2s; }
.brand { display: flex; align-items: center; gap: var(--ti-brand-gap, 12px); text-decoration: none; color: var(--ti-text); }
.brand--destra { flex-direction: row-reverse; justify-content: flex-end; }
.brand--sopra { flex-direction: column; align-items: flex-start; }
.brand--sopra-centro { flex-direction: column; align-items: center; text-align: center; }
.brand--sopra .brand__name, .brand--sopra-centro .brand__name { font-size: 18px; }
.brand__logo { height: var(--logo); width: auto; max-width: 60vw; object-fit: contain; transition: height .2s; }
.brand__mark { width: calc(var(--logo) * .77); height: calc(var(--logo) * .77); flex-shrink: 0; border-radius: 50%; background: var(--ti-primary); box-shadow: inset 0 0 0 8px var(--ti-primary), inset 0 0 0 11px #fff; }
.brand__name { font-size: 19px; font-weight: 700; line-height: 1.15; }

.nav { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nav .menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; margin: 0; padding: 0; }
.nav .menu a { display: block; padding: 10px 12px; color: var(--ti-text); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav .menu a:hover, .nav .menu .current-menu-item > a, .nav .menu .current-menu-ancestor > a { color: var(--ti-primary); border-bottom-color: var(--ti-primary); }
.nav .menu li { position: relative; }
.nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--ti-line); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.nav .menu li:hover > .sub-menu, .nav .menu li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { border: 0; font-weight: 400; }
.nav__search input { width: 140px; transition: width .2s; padding: 8px 12px; border: 1px solid var(--ti-line); border-radius: 999px; font: inherit; font-size: 15px; }
.nav__search input:focus { width: 200px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ti-text); margin: 0 auto; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }

/* ---------- Menu secondario (striscia sotto il principale) ---------- */
.subbar { background: var(--ti-soft); border-bottom: 1px solid var(--ti-line); font-size: 14px; }
.subbar__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; }
.subbar__menu a { display: block; padding: 9px 12px; color: var(--ti-muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subbar__menu a:hover, .subbar__menu .current-menu-item > a { color: var(--ti-primary); border-bottom-color: var(--ti-primary); }

/* ---------- Hero ---------- */
.hero {
	position: relative; display: flex; align-items: center;
	min-height: var(--hero-h, 450px);
	background-color: var(--ti-primary); color: #fff;
	background-image: var(--hero-img, none); background-size: cover; background-position: var(--hero-pos, center);
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-ov, transparent); }
.hero__row {
	position: relative; width: 100%;
	display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 40px;
	padding-top: 40px; padding-bottom: 40px;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 0; max-width: 760px; }
.hero__title { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.12; overflow-wrap: anywhere; }
.hero__sub { margin: 0; color: #d9e7f4; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; }
/* Box a destra dell'hero */
.hero__box { flex: 0 0 380px; width: 380px; max-width: 100%; background: #fff; color: var(--ti-text); border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.28); overflow: hidden; }
.hero__box-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__box-body { padding: 20px 22px 22px; }
.hero__box-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ti-primary); }
.hero__box-title { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.hero__box-title a { color: var(--ti-text); text-decoration: none; }
.hero__box-title a:hover { color: var(--ti-primary); text-decoration: underline; }
.hero__box-text { font-size: 16px; color: var(--ti-muted); margin-bottom: 14px; }
.hero__box-text > :first-child { margin-top: 0; }
.hero__box-text > :last-child { margin-bottom: 0; }
.hero__box--image { background: transparent; box-shadow: none; flex-basis: 420px; width: 420px; }
.hero__box--image img { display: block; width: 100%; height: auto; max-height: calc(var(--hero-h, 450px) - 80px); object-fit: cover; border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
/* Animazione d'ingresso del titolo (solo CSS, nessun JavaScript) */
@keyframes ti-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ti-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__title--split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title--split .w > span { display: inline-block; animation: ti-rise .85s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(200ms + var(--i) * var(--step, 110ms)); }
.hero__title--fade { animation: ti-fade-up .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero--anim .hero__sub { animation: ti-fade-up .8s ease-out both; animation-delay: var(--sub-delay, 600ms); }
.hero--anim .hero__box { animation: ti-fade-up .9s ease-out both; animation-delay: calc(var(--sub-delay, 600ms) + 150ms); }
@media (prefers-reduced-motion: reduce) {
	.hero__title--split .w > span, .hero__title--fade, .hero--anim .hero__sub, .hero--anim .hero__box { animation: none !important; }
}
/* Con sovraimpressione chiara il testo passa allo scuro */
.hero--light { color: var(--ti-primary-dark); }
.hero--light .hero__sub { color: #2b4257; }

/* ---------- Sezioni ---------- */
.section { padding: 56px 0; }
.section--soft { background: var(--ti-soft); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--ti-line); padding-bottom: 10px; }
.section__title { font-size: 28px; margin: 0; position: relative; }
.section__title::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 56px; height: 3px; background: var(--ti-primary); }
.section__all { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__all:hover { text-decoration: underline; }
.container.section > .section__title { margin-bottom: 28px; }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(11,79,138,.12); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--ti-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ti-soft), #dfe8f1); }
.card__body { padding: 18px 20px 22px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--ti-muted); }
.card__title { font-size: 20px; margin: 0 0 8px; }
.card__title a { color: var(--ti-text); text-decoration: none; }
.card__title a:hover { color: var(--ti-primary); text-decoration: underline; }
.card__text { margin: 0; color: var(--ti-muted); font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ti-primary); background: #e4eef8; padding: 2px 8px; border-radius: 3px; }
.tag--lock { background: #fdf0d5; color: #7a5200; }

.rows { display: grid; gap: 12px; }
.row-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); padding: 14px 20px; }
.row-item__date { flex: 0 0 72px; text-align: center; background: var(--ti-primary); color: #fff; border-radius: var(--ti-radius); padding: 8px 4px; line-height: 1.1; }
.row-item__day { display: block; font-size: 28px; font-weight: 700; }
.row-item__month { display: block; font-size: 12px; text-transform: uppercase; }
.row-item__body { flex: 1; min-width: 0; }
.row-item__title { margin: 0 0 4px; font-size: 20px; }
.row-item__title a { color: var(--ti-text); text-decoration: none; }
.row-item__title a:hover { color: var(--ti-primary); text-decoration: underline; }
.row-item__meta { margin: 0; color: var(--ti-muted); font-size: 15px; }
.row-item__go { font-size: 24px; text-decoration: none; padding: 4px 10px; }

.band { background: var(--ti-primary-dark); color: #fff; padding: 36px 0; }
.band__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.band__title { margin: 0 0 4px; font-size: 26px; }
.band p { margin: 0; color: #cfe0f1; }

.btn { display: inline-block; background: var(--ti-primary); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: var(--ti-radius); border: 2px solid var(--ti-primary); cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--ti-primary-dark); border-color: var(--ti-primary-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ti-primary-dark); border-color: #fff; }
.btn--light:hover { background: #e9f1f9; color: var(--ti-primary-dark); border-color: #e9f1f9; }

/* ---------- Aree tematiche (home) ---------- */
.section__intro { margin: -8px 0 24px; color: var(--ti-muted); max-width: 720px; }
.aree { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
.area { background: #fff; border: 1px solid var(--ti-line); border-top: 4px solid var(--ti-primary); border-radius: var(--ti-radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s; }
.area:hover { box-shadow: 0 6px 22px rgba(11,79,138,.12); }
.area__head { display: flex; align-items: center; gap: 14px; }
.area__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.area__img--ph { display: flex; align-items: center; justify-content: center; background: #e4eef8; color: var(--ti-primary); font-size: 28px; font-weight: 700; }
.area__title { margin: 0; font-size: 19px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.area__title a { color: var(--ti-text); text-decoration: none; }
.area__title a:hover { color: var(--ti-primary); text-decoration: underline; }
.area__text { margin: 0; color: var(--ti-muted); font-size: 16px; }
.area__topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.area__topics li { position: relative; padding-left: 18px; }
.area__topics li::before { content: "›"; position: absolute; left: 4px; top: -1px; color: var(--ti-primary); font-weight: 700; }
.area__go { margin-top: auto; font-weight: 700; text-decoration: none; }
.area__go:hover { text-decoration: underline; }
.area--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.area--wide .area__head { flex: 0 0 320px; }
.area--wide .area__text { flex: 1 1 280px; }
.area--wide .area__go { margin-top: 0; }
.area--wide .area__go:hover { text-decoration: none; }

/* ---------- Pagine interne ---------- */
.page-head { background: var(--ti-soft); border-bottom: 1px solid var(--ti-line); padding: 28px 0 24px; }
.page-head__title { margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px); }
.page-head__meta { margin: 8px 0 0; color: var(--ti-muted); }
.breadcrumb { font-size: 14px; color: var(--ti-muted); }
.breadcrumb a { color: var(--ti-muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips a { display: inline-block; padding: 6px 16px; border: 1px solid var(--ti-line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ti-text); font-size: 15px; }
.chips a:hover, .chips a[aria-current] { background: var(--ti-primary); border-color: var(--ti-primary); color: #fff; }

.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry img { border-radius: var(--ti-radius); }
.entry blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--ti-primary); color: var(--ti-muted); }
.entry table { border-collapse: collapse; width: 100%; }
.entry th, .entry td { border: 1px solid var(--ti-line); padding: 8px 12px; text-align: left; }

.navigation.pagination, .post-navigation { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); text-decoration: none; }
.page-numbers.current { background: var(--ti-primary); color: #fff; border-color: var(--ti-primary); }

/* ---------- Testata con immagine in evidenza (posizione 1) ----------
   Titolo a sinistra; immagine alta, a metà schermo, fino al bordo destro. */
.page-head__split { width: 100%; max-width: var(--ti-max); margin: 0 auto; padding: 0 20px; }
.page-head__text { min-width: 0; }
.page-head__media { margin: 0; }
.page-head--img { background: #fff; border-bottom: 0; padding: 20px 0 0; }
.page-head--img .page-head__split { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; container-type: inline-size; }
.page-head--img .page-head__text {
	align-self: center; padding: 32px 40px 40px max(20px, calc((100vw - var(--ti-max)) / 2 + 20px));
	padding-left: max(20px, calc((100cqw - var(--ti-max)) / 2 + 20px));
}
.page-head__img { display: block; width: 100%; height: var(--ti-headimg-h, 360px); object-fit: var(--ti-headimg-fit, cover); object-position: center; background: #fff; }

/* ---------- Layout unico: contenuto in un box centrato, senza colonne laterali ---------- */
.page-body { background: var(--ti-soft); padding: 36px 0 72px; }
.entry-box { width: var(--ti-content-pct, 80%); margin: 0 auto; background: #fff; border: 1px solid var(--ti-line); border-radius: 8px; box-shadow: 0 2px 14px rgba(10,30,50,.06); padding: 40px 48px; overflow-wrap: anywhere; }
.entry-box__img { margin: -40px -48px 32px; }
.entry-box__img img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px 8px 0 0; }
.entry-box > .search-form { max-width: none; }
.entry .alignwide, .entry .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
.entry table { display: block; max-width: 100%; overflow-x: auto; }
.entry iframe, .entry video { max-width: 100%; }
.facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; background: var(--ti-soft); border: 1px solid var(--ti-line); border-left: 4px solid var(--ti-primary); border-radius: var(--ti-radius); padding: 20px 22px; margin: 0 0 32px; }
.facts dl { flex: 1 1 340px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 28px; margin: 0; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ti-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Area riservata ---------- */
.login { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--ti-line); border-top: 4px solid var(--ti-primary); border-radius: var(--ti-radius); padding: 28px; }
.login__title { margin-bottom: 16px; }
.login form p { margin: 0 0 16px; }
.login label { display: block; font-weight: 600; margin-bottom: 4px; }
.login input[type="text"], .login input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #aab6c2; border-radius: var(--ti-radius); font: inherit; }
.login .login-remember label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.login input[type="submit"] { width: 100%; background: var(--ti-primary); color: #fff; border: 0; border-radius: var(--ti-radius); padding: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.login input[type="submit"]:hover { background: var(--ti-primary-dark); }
.login__help { text-align: center; margin: 16px 0 0; font-size: 15px; }
.notice { padding: 10px 14px; border-radius: var(--ti-radius); margin: 0 0 16px; }
.notice--error { background: #fde8e8; color: #8a1c1c; border: 1px solid #f3b9b9; }
.welcome { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: var(--ti-soft); border: 1px solid var(--ti-line); border-radius: var(--ti-radius); padding: 14px 20px; margin-bottom: 32px; }
.welcome p { margin: 0; }
.entry--intro { margin-bottom: 32px; }
.reserved-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ti-line); }
.reserved-list li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--ti-line); }
.reserved-list a { flex: 1; font-weight: 600; }
.reserved-list time { color: var(--ti-muted); font-size: 14px; }

/* ---------- Barra dei loghi (sopra il footer) ---------- */
.logobar { border-top: 1px solid var(--ti-line); padding: 18px 0; background: #fff; color: var(--ti-text); }
.logobar--chiara { background: var(--ti-soft); }
.logobar--scura { background: #1a2b3c; color: #c5d0db; border-top-color: rgba(255,255,255,.12); }
.logobar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.logobar--spaziata .logobar__row { justify-content: space-between; }
.logobar--centro .logobar__row { justify-content: center; text-align: center; }
.logobar--sinistra .logobar__row { justify-content: flex-start; }
.logobar__text { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.logobar--scura .logobar__text a { color: #fff; }
.logobar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.logobar--centro .logobar__list { justify-content: center; }
.logobar__list li { display: flex; align-items: center; max-width: 100%; }
.logobar__list a { display: flex; }
.logobar__img { height: var(--logobar-h, 44px); width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
	.logobar__row { flex-direction: column; align-items: center; text-align: center; }
	.logobar__list { justify-content: center; }
}

.ti-embed { margin: 1.4em 0; }
.ti-embed .doc-group:first-child { margin-top: 0; }
.ti-empty { color: var(--ti-muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: #14212e; color: #c5d0db; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer__title { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer a { color: #fff; }
.footer__menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.footer__menu li, .site-footer .menu li { margin: 0 0 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 14px; }
.footer__bottom-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; }
.footer__credits { color: #9fb2c4; }

/* ---------- Ricerca ---------- */
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 16px 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 10px 12px; border: 1px solid #aab6c2; border-radius: var(--ti-radius); font: inherit; }
.search-form .search-submit { background: var(--ti-primary); color: #fff; border: 0; border-radius: var(--ti-radius); padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 782px) { .admin-bar.has-sticky .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.has-sticky .site-header { top: 0; } }
@media (max-width: 760px) {
	.page-head--img .page-head__split { grid-template-columns: 1fr; }
	.page-head--img .page-head__text { padding: 8px 20px 24px; }
	.page-head__img { height: auto; max-height: 300px; }
}
@media (max-width: 980px) {
	.entry-box { width: 100%; }
	.aree { grid-template-columns: repeat(2, 1fr); }
	.area--wide .area__head { flex-basis: 100%; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ti-line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
	.nav.is-open { display: flex; }
	.nav .menu { flex-direction: column; }
	.nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding-left: 16px; }
	.nav__search input { width: 100%; }
}
@media (max-width: 640px) {
	.brand--sopra, .brand--sopra-centro { flex-direction: row; align-items: center; text-align: left; }
	.page-body { padding: 20px 0 48px; }
	.entry-box { padding: 24px 20px; }
	.entry-box__img { margin: -24px -20px 24px; }
	:root { --logo: var(--ti-logo-h-m, 52px); }
	body { font-size: 16px; }
	.grid--3, .footer__grid, .aree { grid-template-columns: 1fr; }
	.section { padding: 40px 0; }
	.band__row { flex-direction: column; align-items: flex-start; }
	.row-item { gap: 12px; padding: 12px; }
	.row-item__date { flex-basis: 60px; }
	.topbar__row { flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
	.topbar__ente { display: none; }
	.topbar__contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.topbar__contact svg { width: 18px; height: 18px; }
	.topbar__right { flex: 1; justify-content: flex-end; }
	/* Hero su schermi stretti: testo sopra, link in un'unica riga scorrevole sotto */
	.hero__row { flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
	.hero { min-height: var(--hero-h-m, 450px); }
	.hero__text { max-width: 100%; flex: none; }
	.hero__box, .hero__box--image { flex: none; width: 100%; }
	.hero__box--image img { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .topbar, .mainbar, .site-footer, .hero__box { display: none; } }

/* ---------- Registrazione e documenti ---------- */
.login-grid { display: grid; gap: 28px; }
.login-grid--two { grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; }
.login-grid .login { width: 100%; margin: 0; }
.login-grid:not(.login-grid--two) .login { margin: 0 auto; }
.login input[type="email"], .login textarea { width: 100%; padding: 10px 12px; border: 1px solid #aab6c2; border-radius: var(--ti-radius); font: inherit; }
.login .hp { position: absolute; left: -9999px; }
.notice--ok { background: #e6f4ea; color: #1b5e2f; border: 1px solid #b7dfc3; }
.notice--info { background: #e4eef8; color: var(--ti-primary-dark); border: 1px solid #bcd3ea; }
.doc-group { font-size: 18px; margin: 28px 0 8px; color: var(--ti-muted); text-transform: uppercase; letter-spacing: .04em; }
.doc-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--ti-line); }
.doc-list li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--ti-line); }
.doc-list__name { flex: 1; font-weight: 600; }
.doc-list__name small { display: block; font-weight: 400; color: var(--ti-muted); font-size: 14px; }
.doc-list__size { color: var(--ti-muted); font-size: 14px; white-space: nowrap; }
.btn--sm { padding: 6px 16px; font-size: 15px; }
@media (max-width: 760px) {
	.login-grid--two { grid-template-columns: 1fr; }
	.doc-list li { flex-wrap: wrap; }
}
