/*
Theme Name: ASSIDIPOST
Theme URI: https://www.assidipost.com
Description: Tema su misura per ASSIDIPOST-Federmanager: archivio documenti con filtri, news, convenzioni, eventi, media (foto e video) e pagine di sezione. Richiede il plugin "ASSIDIPOST · Contenuti".
Author: Davide Tedesco
Version: 0.5.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: assidipost
License: GPL-2.0-or-later
*/

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
	--navy: #12306b; --navy-deep: #0b1f4a; --blue: #1e4db7; --blue-soft: #e7eefb;
	--yellow: #ffd200; --yellow-soft: #fff3b0; --yellow-ink: #6b5300;
	--ink: #1b1f2a; --muted: #5c6470; --line: #e2e6ee; --bg: #f5f7fb; --white: #fff;
	--green: #0a7a3d; --red: #b32d2e;
	--r: 14px; --shadow: 0 10px 30px rgba(18, 48, 107, .10);
	--wrap: 1200px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--navy-deep); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--yellow); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; white-space: nowrap; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn.primary { background: var(--yellow); color: var(--navy-deep); }
.btn.primary:hover { background: #ffdc33; color: var(--navy-deep); }
.btn.ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.line { border-color: var(--line); color: var(--navy); background: #fff; }
.btn.line:hover { border-color: var(--navy); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.link { font-weight: 700; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); text-decoration: none; line-height: 1.4; }
a.chip:hover { background: var(--navy); color: #fff; }
.chip.y { background: var(--yellow-soft); color: var(--yellow-ink); }
.chip.muted { background: var(--bg); color: var(--muted); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ topbar e header */
.topbar { background: var(--navy-deep); color: #c9d4ee; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar .right { display: flex; gap: 22px; }
.topbar a { color: #c9d4ee; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mark { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); position: relative; overflow: hidden; flex: none; }
.logo .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--yellow); }
.logo .mark::before { content: "A"; position: absolute; inset: 0; color: #fff; font-weight: 900; font-size: 26px; display: flex; align-items: center; justify-content: center; padding-bottom: 8px; }
.logo .name { line-height: 1; }
.logo .name b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--navy); }
.logo .name span { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--yellow); color: var(--navy-deep); padding: 2px 8px; border-radius: 4px; }
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a, .main-nav .current-page-ancestor > a { color: var(--blue); box-shadow: 0 -3px 0 var(--yellow) inset; }
.main-nav .sub-menu { display: none; }
.hdr-cta { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--bg); }
.search-panel[hidden] { display: none; }
.search-panel form { display: flex; gap: 12px; padding: 16px 0; }
.field { flex: 1 1 auto; height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; min-width: 0; }
.field:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }

/* ------------------------------------------------------------------ home */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(30, 77, 183, .55), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero .kicker { color: var(--yellow); }
.hero h1 { color: #fff; font-size: 54px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: 19px; color: #d6def3; max-width: 560px; margin: 0; }
.hero .ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 28px; margin-top: 40px; font-size: 13px; color: #b9c6e6; }
.hero .trust b { display: block; color: #fff; font-size: 15px; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); display: block; text-decoration: none; }
.hero-card img { width: 100%; height: 270px; object-fit: cover; display: block; background: var(--bg); }
.hero-card .body { display: block; padding: 22px 24px 24px; }
.hero-card h2 { font-size: 20px; font-weight: 800; margin: 10px 0 8px; line-height: 1.25; }
.hero-card p { font-size: 15px; color: var(--muted); margin: 0; }
.hero-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); gap: 12px; }
.targets { margin-top: -46px; position: relative; }
.targets .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 18px; box-shadow: var(--shadow); }
.tcard .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; margin-bottom: 16px; }
.tcard h2 { font-size: 20px; font-weight: 800; margin: 0; }
.tcard h2 a { color: inherit; text-decoration: none; }
.tcard p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.tcard ul { list-style: none; font-size: 15px; font-weight: 600; margin: 0; padding: 0; }
.tcard li { border-top: 1px solid var(--line); }
.tcard li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; }
.tcard li a:hover { color: var(--blue); }
.tcard li a span { color: var(--blue); }
.tcard li a .t { color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sec { padding: 72px 0; }
.sec.tint { background: var(--bg); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: 32px; font-weight: 800; margin: 4px 0 0; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 8px 0 0; }
.news-home { display: grid; grid-template-columns: 1.35fr .65fr; gap: 36px; }
.nlist { display: grid; gap: 14px; }
.nitem { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.nitem .date { font-weight: 800; color: var(--navy); line-height: 1.1; font-size: 18px; }
.nitem .date small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; margin-top: 4px; }
.nitem h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 6px 0; }
.nitem h3 a { color: var(--ink); text-decoration: none; }
.nitem h3 a:hover { color: var(--blue); }
.nitem p { font-size: 14.5px; color: var(--muted); margin: 0; }
.nitem .att { margin-top: 10px; font-size: 13px; color: var(--blue); font-weight: 700; }
.nitem .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.side { display: grid; gap: 18px; align-content: start; }
.scard { background: var(--bg); border-radius: var(--r); padding: 22px; }
.scard h2, .scard h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.scard p { margin: 0; }
.scard.yellow { background: var(--yellow); }
.scard.yellow h2, .scard.yellow h3 { color: var(--yellow-ink); }
.scard.yellow p { font-size: 15px; font-weight: 600; color: var(--navy-deep); }
.scard.yellow a { color: var(--navy-deep); }
.scard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.scard ul a { color: var(--ink); text-decoration: none; }
.scard ul a:hover { color: var(--blue); }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.event + .event { margin-top: 14px; }
.event .d { background: var(--navy); color: #fff; border-radius: 12px; text-align: center; padding: 8px 0; line-height: 1; }
.event .d b { display: block; font-size: 22px; }
.event .d small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.event .d small + small { margin-top: 2px; opacity: .85; letter-spacing: .02em; }
.event .d.past { background: #5c6470; }
.event h4 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; }
.event h4 a { color: var(--ink); text-decoration: none; }
.event p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--navy); }
.doc h3 { font-size: 16px; font-weight: 700; line-height: 1.3; flex: 1; margin: 0; color: var(--ink); }
.doc .m { font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ficon { width: 40px; height: 48px; border-radius: 6px; background: linear-gradient(#e94b4b, #c92626); color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: end; justify-content: center; padding-bottom: 6px; letter-spacing: .05em; flex: none; }
.ficon.doc-w { background: linear-gradient(#3b7ddd, #1e4db7); }
.ficon.ppt { background: linear-gradient(#f08a4b, #c75a1a); }
.ficon.img { background: linear-gradient(#27a57a, #0d7a55); }
.ficon.none { background: #c3cad8; }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.conv { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.conv:hover { border-color: var(--navy); }
.conv .logo-img { height: 48px; margin-bottom: 12px; }
.conv .logo-img img { max-height: 48px; width: auto; }
.conv .tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.conv h3 { font-size: 18px; font-weight: 800; margin: 8px 0 6px; }
.conv p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.conv .st { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--green); }
.conv .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.conv .st.off { color: var(--muted); }
.conv .st.off::before { background: var(--muted); }
.band { background: var(--navy); color: #fff; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; }
.band h2 { color: #fff; font-size: 28px; margin: 0; }
.band p { color: #c9d4ee; margin: 6px 0 0; }

/* ------------------------------------------------------------------ pagine interne */
.pagehead { background: var(--bg); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding: 36px 0 30px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.crumb b { color: var(--navy); font-weight: 600; }
.pagehead h1 { font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.pagehead .lead { color: var(--muted); margin: 10px 0 0; max-width: 760px; font-size: 17px; }
.pagehead .meta { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-top: 14px; color: var(--muted); font-size: 14px; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; padding: 40px 0 72px; }
.layout.right { grid-template-columns: 1fr 300px; }
.content-wrap { padding: 40px 0 72px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose h2.adp-section { font-size: 30px; font-weight: 900; border-top: 3px solid var(--yellow); padding-top: 24px; margin-top: 1.8em; }
.prose h2.adp-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); color: var(--navy-deep); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--yellow); color: var(--muted); }
.prose img { border-radius: 10px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose a { word-break: break-word; }
.featured { margin: 0 0 28px; }
.featured { background: var(--bg); border-radius: var(--r); overflow: hidden; }
.featured img { width: 100%; max-height: 560px; object-fit: contain; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; height: 260px; object-fit: contain; border-radius: 10px; display: block; background: var(--bg); border: 1px solid var(--line); }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.box + .box { margin-top: 18px; }
.box h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.subnav { list-style: none; margin: 0 -12px; padding: 0; display: grid; gap: 2px; }
.subnav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.subnav a:hover { background: var(--bg); }
.subnav .on a { background: var(--blue-soft); color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--navy); }
.card h3 { font-size: 18px; margin: 0; }
.card .link { margin-top: auto; }
.cards.top { align-items: start; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.hub-sec { margin-top: 44px; }
.hub-sec > h2 { font-size: 24px; margin: 0 0 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hub-sec > h2 a { font-size: 15px; font-weight: 700; }

/* documenti */
.searchbar { display: flex; gap: 12px; margin-top: 22px; }
.searchbar .btn { height: 52px; border-radius: 12px; }
.filters { display: grid; gap: 22px; align-content: start; }
.fgroup h2 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fgroup label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.fgroup label[hidden] { display: none; }
.fgroup label span { flex: 1; }
.fgroup label small { color: var(--muted); }
.fgroup input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.fgroup select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; }
.fgroup .more { font-size: 13px; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: inherit; }
.filters .actions { display: flex; gap: 14px; align-items: center; }
.reset { font-size: 13px; color: var(--blue); font-weight: 700; }
.results .bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.results .bar b { color: var(--ink); }
.results .bar select { height: 36px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; padding: 0 8px; }
.active-chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.active-chips a { background: var(--navy); color: #fff; }
.active-chips a::after { content: " ✕"; opacity: .7; }
.rlist { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.row h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--blue); }
.row .m { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 4px 10px; flex-wrap: wrap; }
.row .m span:not(:last-child)::after { content: "·"; margin-left: 10px; }
.row .chips { margin-top: 8px; }
.row .dl { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.row .dl small { font-size: 12px; color: var(--muted); }
.row.compact { padding: 14px 16px; grid-template-columns: 44px 1fr auto; }
.row.compact .ficon { width: 36px; height: 44px; }
.row.compact h3 { font-size: 16px; }
.help { margin-top: 26px; background: var(--bg); border-radius: var(--r); padding: 20px; font-size: 14px; color: var(--muted); }
.help b { color: var(--ink); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.docmeta { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.docmeta dt { color: var(--muted); }
.docmeta dd { margin: 0; overflow-wrap: anywhere; }
aside .docmeta { grid-template-columns: 1fr; gap: 0; }
aside .docmeta dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; }
aside .docmeta dt:first-child { margin-top: 0; }
aside .docmeta dd { margin-top: 2px; }
.download-box { display: flex; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); margin-bottom: 28px; flex-wrap: wrap; }
.download-box .ficon { width: 52px; height: 62px; font-size: 12px; }
.download-box .info { flex: 1; min-width: 200px; }
.download-box .info b { display: block; font-size: 16px; }
.download-box .info small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.warn { padding: 16px 18px; border-radius: 12px; background: #fdecec; color: var(--red); font-weight: 600; }
.attachments { margin-top: 40px; }
.attachments h2 { font-size: 22px; margin: 0 0 14px; }

/* news */
.newslist { display: grid; gap: 14px; }
.catbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.catbar a { font-size: 14px; text-transform: none; letter-spacing: 0; padding: 7px 14px; }
.catbar a.on { background: var(--navy); color: #fff; }
.catbar a.on .muted { color: rgba(255, 255, 255, .78); }
.yearbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-top: 12px; font-size: 14px; }
.yearbar > .muted { padding: 4px 4px 4px 0; }
.yearbar a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.yearbar a:hover, .yearbar a.on { background: var(--blue-soft); color: var(--navy); }
.article-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.postnav a { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.postnav a small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.postnav .next { text-align: right; }

/* riquadri richiudibili su telefono (filtri dell'archivio, menu della sezione): su schermo largo sempre aperti */
details[data-collapse-mobile] > summary { display: none; }
.secnav h2 { margin-bottom: 12px; }

/* risultati della ricerca */
.row.result { grid-template-columns: 1fr; }
.row.result .rhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.row.result .rtext { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }

/* Iscriviti: moduli in evidenza prima del testo */
.forms-box { max-width: 760px; margin: 0 0 36px; padding: 22px; border-radius: var(--r); background: var(--yellow-soft); border: 1px solid #f2dc7a; }
.forms-box h2 { font-size: 20px; margin: 0 0 4px; }
.forms-box > p { margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.narrow { max-width: 760px; }

/* contatti: testo della pagina e modulo (plugin "Modulo contatti") */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; padding: 40px 0 72px; align-items: start; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.contact-card > h2 { font-size: 24px; margin: 0 0 4px; }
.contact-card > p { margin: 0 0 20px; font-size: 15px; }
.cform { display: grid; gap: 18px; }
.cform-row label { display: block; font-weight: 700; font-size: 15px; color: var(--navy-deep); margin-bottom: 6px; }
.cform .req { color: var(--red); }
.cform .opt { font-weight: 500; color: var(--muted); }
.cform input[type=text], .cform input[type=email], .cform select, .cform textarea { display: block; width: 100%; border: 1px solid #c3cad8; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.cform input[type=text], .cform input[type=email], .cform select { height: 50px; }
.cform textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.cform input:hover, .cform select:hover, .cform textarea:hover { border-color: var(--muted); }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--navy); }
.cform [aria-invalid=true] { border-color: var(--red); background: #fffafa; }
.cform-msg { color: var(--red); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.cform-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.cform-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.cform-check label { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--ink); margin: 0; }
.cform-check .cform-msg { grid-column: 2; margin: 0; }
.cform-note { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.cform-summary { background: #fdecec; border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 18px; }
.cform-summary h3 { margin: 0 0 6px; font-size: 16px; color: var(--red); }
.cform-summary ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.cform-summary a { color: var(--ink); }
.cform-ok { background: #e8f5ee; border-left: 4px solid var(--green); border-radius: 10px; padding: 18px 20px; }
.cform-ok h3 { margin: 0 0 6px; color: var(--green); font-size: 18px; }
.cform-ok p { margin: 0 0 8px; }
.cform-ok p:last-child { margin: 0; }

/* paginazione */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; }
.pager .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .page-numbers.dots { border: 0; }

/* footer */
.site-footer { background: var(--navy-deep); color: #b9c6e6; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.site-footer h2 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.site-footer a { color: #b9c6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo .name b { color: #fff; }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.7; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; padding: 18px 0; font-size: 13px; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 1080px) {
	.main-nav ul { gap: 16px; font-size: 14px; }
	.hdr-cta .btn { display: none; }
}
/* ------------------------------------------------------------------ media: album, foto, video, visore */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.album { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); }
.album:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.album .cover { display: block; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.album:hover .cover img { transform: scale(1.03); }
.album .ph { display: grid; place-items: center; height: 100%; font-size: 40px; color: var(--muted); }
.album .info { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.album .d { font-size: 13px; color: var(--muted); font-weight: 600; }
.album h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.album .n { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.hub-sec.first-of-list:first-child { margin-top: 0; }
.album-intro { max-width: 820px; margin-bottom: 20px; }
.album-event { margin: 0 0 8px; color: var(--muted); }
.album-back { margin-top: 40px; }
.credit { font-size: 13px; margin: 14px 0 0; }
.hub-sec h2 small { font-size: 16px; font-weight: 600; margin-left: 6px; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.photos li { margin: 0; }
.photos a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--bg); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photos a:hover img { transform: scale(1.04); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.video { margin: 0; }
.video figcaption { font-weight: 600; margin-top: 8px; font-size: 15px; }
.video video, .video iframe, .video .frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: var(--navy-deep); display: block; }
.video .frame { position: relative; overflow: hidden; }
.video .play { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.video .play:hover .ic { transform: scale(1.08); }
.video .play .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); display: grid; place-items: center; font-size: 22px; padding-left: 4px; transition: transform .2s; }
.video .play .t { text-align: left; display: flex; flex-direction: column; }
.video .play .t b { font-size: 18px; }
.video .play .t small { font-size: 13px; color: #c9d4ee; }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(6, 14, 34, .97); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lb[hidden] { display: none; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; }
.lb .bar .r { display: flex; gap: 8px; align-items: center; }
.lb button, .lb .dl { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; min-width: 44px; height: 44px; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.lb button:hover, .lb .dl:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.lb .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb .stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; padding: 0; width: 48px; }
.lb .prev { left: 8px; }
.lb .next { right: 8px; }
.lb .cap { text-align: center; padding: 10px 18px 16px; font-size: 14px; color: #c9d4ee; min-height: 1.5em; }
body.lb-open { overflow: hidden; }
@media (max-width: 900px) {
	.albums { grid-template-columns: 1fr; }
	.photos { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.photos a { border-radius: 6px; }
	.videos { grid-template-columns: 1fr; }
	.lb .stage { padding: 0 8px; }
	.lb .nav { top: auto; bottom: 8px; transform: none; }
	.lb .cap { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.album .cover img, .photos img, .video .play .ic { transition: none; }
	.album:hover .cover img, .photos a:hover img { transform: none; }
}

@media (max-width: 900px) {
	.wrap { width: min(100% - 32px, var(--wrap)); }
	.topbar .right, .topbar .long { display: none; }
	.site-header .wrap { height: 68px; }
	.burger { display: inline-flex; flex-direction: column; gap: 5px; border-radius: 10px; }
	.burger i { width: 18px; height: 2px; background: var(--navy); display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; font-size: 16px; }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { display: block; padding: 14px 4px; }
	.main-nav a:hover, .main-nav .current-menu-item > a { box-shadow: none; }
	.hero .wrap { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 72px; }
	.hero h1 { font-size: 36px; }
	.hero p { font-size: 17px; }
	.hero .trust { gap: 18px; flex-wrap: wrap; }
	.hero-card img { height: 180px; }
	.targets { margin-top: -40px; }
	.targets .grid, .dgrid, .cgrid { grid-template-columns: 1fr; }
	.sec { padding: 48px 0; }
	.sec-head { flex-direction: column; align-items: start; gap: 8px; }
	.sec-head h2 { font-size: 26px; }
	.news-home { grid-template-columns: 1fr; }
	.nitem { grid-template-columns: 1fr; gap: 6px; }
	.band .wrap { flex-direction: column; align-items: start; }
	.pagehead h1 { font-size: 30px; }
	.searchbar { flex-direction: column; }
	.layout, .layout.right { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 48px; }
	.filters { grid-template-columns: 1fr 1fr; gap: 16px; }
	.filters .actions { grid-column: 1 / -1; }
	.row { grid-template-columns: 44px 1fr; }
	.row .dl { grid-column: 2; align-items: start; flex-direction: row; align-items: center; }
	.docmeta { grid-template-columns: 1fr; gap: 2px 0; }
	.docmeta dd { margin-bottom: 8px; }
	.postnav { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 48px; }
	.contact-card { padding: 20px; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 0 28px; }
	.site-footer .cols > div:first-child { grid-column: 1 / -1; }
	details[data-collapse-mobile] > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-deep); }
	details[data-collapse-mobile] > summary::-webkit-details-marker { display: none; }
	details[data-collapse-mobile] > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
	details[data-collapse-mobile][open] > summary::after { content: "–"; }
	.filters-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
	.filters-box > summary { padding: 14px 18px; }
	.filters-box[open] > summary { border-bottom: 1px solid var(--line); }
	.filters-box > .filters { padding: 16px 18px 18px; }
	.secnav { padding: 0; }
	.secnav summary { padding: 14px 18px; }
	.secnav h2 { display: none; }
	.secnav .subnav { margin: 0; padding: 0 8px 10px; }
	.gallery-grid { grid-template-columns: 1fr; }
	.gallery-grid img { height: auto; max-height: 560px; }
	.site-footer .bottom .wrap { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
	.topbar { display: none; }
	.filters { grid-template-columns: 1fr; }
	.search-panel form { flex-direction: column; }
}
@media print {
	.topbar, .site-header, .site-footer, .band, .filters, .pager, .lb { display: none !important; }
}

/* ------------------------------------------------------------------ stampa: rassegne stampa */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.press-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.press-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.press-card .cover { display: block; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.press-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-card .info { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.press-card .d { font-size: 13px; color: var(--muted); font-weight: 600; }
.press-card h3 { font-size: 19px; margin: 0; line-height: 1.3; }
.press-card h3 a { color: var(--ink); text-decoration: none; }
.press-card h3 a:hover { color: var(--blue); }
.press-card p { margin: 0; color: var(--muted); font-size: 15px; }
.press-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.press-card .n { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: auto; }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.press-list li { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px 18px; align-items: baseline; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.press-list .outlet { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.press-list .art { font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.press-list .art:hover { color: var(--blue); text-decoration: underline; }
.press-list .ext { margin-left: 6px; color: var(--blue); }
.press-list .d { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.press-pdf { margin: 22px 0 0; }
.press-others { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 0 20px; }
.press-others summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--navy); }
.press-others ul { list-style: none; margin: 0; padding: 0 0 18px; columns: 3 220px; column-gap: 26px; font-size: 14.5px; }
.press-others li { break-inside: avoid; padding: 3px 0; display: flex; gap: 8px; justify-content: space-between; }
.press-others li time { font-size: 12.5px; white-space: nowrap; }
@media (max-width: 700px) {
	.press-grid { grid-template-columns: 1fr; }
	.press-list li { grid-template-columns: 1fr; gap: 4px; }
}
