/* Distretto del Cibo – stili front-end (scope .dc-app) */
.dc-app {
	--dc-primary: #0b6e4f;
	--dc-primary-d: #08523b;
	--dc-ink: #1d2a2f;
	--dc-muted: #5b6b73;
	--dc-line: #dfe5e8;
	--dc-bg: #f5f7f6;
	--dc-card: #fff;
	--dc-ok: #2e7d32;
	--dc-warn: #b26a00;
	--dc-err: #c62828;
	--dc-radius: 10px;
	font-family: "Titillium Web", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
	color: var(--dc-ink);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.dc-app *, .dc-app *::before, .dc-app *::after { box-sizing: inherit; }
.dc-app h1, .dc-app h2, .dc-app h3 { font-family: inherit; color: var(--dc-ink); line-height: 1.2; margin: 0 0 .5em; }
.dc-app h1 { font-size: 1.9rem; font-weight: 700; }
.dc-app h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.4em; }
.dc-app h3 { font-size: 1.05rem; font-weight: 600; }
.dc-app a { color: var(--dc-primary); }
.dc-app code { background: #eef2f1; padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-all; }
.dc-lead { font-size: 1.08rem; color: var(--dc-muted); max-width: 70ch; }
.dc-muted { color: var(--dc-muted); }
.dc-small { font-size: .85rem; color: var(--dc-muted); }
.dc-note { font-size: .82rem; color: var(--dc-muted); margin: .6em 0 0; }
.dc-red { color: var(--dc-err); }
.dc-empty { color: var(--dc-muted); font-style: italic; padding: 1.5em 0; text-align: center; }

/* Bottoni */
.dc-btn { display: inline-flex; align-items: center; gap: .4em; background: var(--dc-primary); color: #fff !important; border: 0; border-radius: 6px; padding: .6em 1.1em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.dc-btn:hover { background: var(--dc-primary-d); }
.dc-btn:focus-visible, .dc-app button:focus-visible, .dc-app a:focus-visible, .dc-app input:focus-visible, .dc-app select:focus-visible, .dc-app textarea:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
.dc-btn-sec, .dc-app .dc-btn-sec { background: #fff; color: var(--dc-primary) !important; border: 1.5px solid var(--dc-primary); }
.dc-btn-sec:hover { background: #eef6f2; }
.dc-btn-ok { background: var(--dc-ok); }
.dc-btn-danger { background: var(--dc-err); }
.dc-btn-sm { padding: .35em .75em; font-size: .85rem; }
.dc-link-danger { background: none; border: 0; color: var(--dc-err); cursor: pointer; font: inherit; font-size: .88rem; text-decoration: underline; padding: 0 .3em; }
.dc-inline-form { display: inline; margin: 0; }

/* Avvisi */
.dc-notice { border-left: 4px solid var(--dc-primary); background: #eaf5f0; padding: .8em 1em; border-radius: 6px; margin: 0 0 1em; }
.dc-notice-err { border-color: var(--dc-err); background: #fdecea; }
.dc-notice-warn { border-color: #f9a825; background: #fff8e1; }
.dc-notice-info { border-color: #1565c0; background: #e8f1fb; }

/* Form */
.dc-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dc-group { background: var(--dc-card); border: 1px solid var(--dc-line) !important; border-radius: var(--dc-radius); padding: 1.1em 1.2em 1.2em !important; margin: 0 0 1.1em !important; }
.dc-group > legend { font-weight: 700; padding: 0 .4em; font-size: 1.02rem; }
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em 1.1em; }
.dc-span2 { grid-column: span 2; }
.dc-span3 { grid-column: 1 / -1; }
.dc-field label, .dc-field .dc-label, .dc-field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25em; }
.dc-app input[type=text], .dc-app input[type=email], .dc-app input[type=url], .dc-app input[type=number], .dc-app input[type=date], .dc-app input[type=month], .dc-app input[type=search], .dc-app input[type=password], .dc-app input:not([type]), .dc-app select, .dc-app textarea {
	width: 100%; border: 1px solid #b8c4ca; border-radius: 6px; padding: .5em .65em; font: inherit; background: #fff; color: var(--dc-ink); min-height: 2.4em;
}
.dc-app textarea { resize: vertical; }
.dc-check { display: flex !important; gap: .45em; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.dc-check input { margin-top: .3em; flex: 0 0 auto; }
.dc-inline { display: inline-flex !important; margin: 0 1.1em .35em 0; }
.dc-checks { display: flex; flex-wrap: wrap; }
.dc-input-unit { display: flex; align-items: stretch; }
.dc-input-unit input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.dc-input-unit span, .dc-input-unit select { border: 1px solid #b8c4ca; border-left: 0; border-radius: 0 6px 6px 0; background: #f1f4f5; padding: .5em .6em; font-size: .9rem; white-space: nowrap; width: auto !important; }
.dc-input-btn { display: flex; gap: .5em; }
.dc-form-actions { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; margin: 1em 0; }
.dc-mesi { display: flex; flex-wrap: wrap; gap: 4px; }
.dc-mesi label { margin: 0; }
.dc-mesi input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-mesi span { display: inline-block; min-width: 3.1em; text-align: center; padding: .35em .3em; border: 1.5px solid #b8c4ca; border-radius: 6px; cursor: pointer; font-size: .85rem; font-weight: 600; background: #fff; color: var(--dc-muted); }
.dc-mesi input:checked + span { background: var(--dc-primary); border-color: var(--dc-primary); color: #fff; }
.dc-mesi input:focus-visible + span { outline: 3px solid #ffb300; }
.dc-mappicker { height: 300px; border-radius: 8px; border: 1px solid var(--dc-line); margin-top: .8em; }
.dc-periodo { max-width: 260px; margin-bottom: 1em; }
.dc-hp { position: absolute !important; left: -9999px; }
.dc-radios { display: flex; flex-direction: column; gap: .3em; }
.dc-q { margin: 1.2em 0 !important; }
.dc-q > legend { font-weight: 700; margin-bottom: .4em; }
.dc-filters { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; margin: 0 0 1em; }
.dc-filters select, .dc-filters input { width: auto !important; }
.dc-public-form { max-width: 900px; }

/* Tabelle */
.dc-table-wrap { overflow-x: auto; }
.dc-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; margin: 0 0 1em; }
.dc-table th, .dc-table td { padding: .55em .7em; border-bottom: 1px solid var(--dc-line); text-align: left; vertical-align: top; }
.dc-table thead th { background: #f1f4f5; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; color: #455a64; }
.dc-table .num { text-align: right; white-space: nowrap; }
.dc-table-compact th, .dc-table-compact td { padding: .4em .55em; font-size: .86rem; }
.dc-table-form td { vertical-align: middle; }
.dc-row-group th { background: #e8f1ec !important; text-transform: none !important; color: var(--dc-primary-d) !important; }
.dc-actions { white-space: nowrap; }
.dc-actions > * { margin-right: .4em; }

/* Elementi grafici */
.dc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8em; margin: 1em 0 1.4em; }
.dc-kpi { background: #fff; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: .9em 1em; border-top: 4px solid var(--dc-primary); }
.dc-kpi b { display: block; font-size: 1.65rem; line-height: 1.1; font-weight: 700; color: var(--dc-ink); }
.dc-kpi span { display: block; font-size: .86rem; color: var(--dc-muted); margin-top: .25em; }
.dc-kpi small { display: block; font-size: .76rem; color: #78909c; margin-top: .2em; }
.dc-kpi-accent { border-top-color: #ef6c00; background: #fff8f1; }
.dc-bar { display: inline-block; width: 70px; height: 7px; background: #e6ecee; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-left: .45em; }
.dc-bar i { display: block; height: 100%; background: var(--dc-primary); border-radius: 4px; }
.dc-bars { list-style: none; margin: 0; padding: 0; }
.dc-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 40% 3.2em; gap: .6em; align-items: center; padding: .3em 0; border-bottom: 1px dashed var(--dc-line); font-size: .9rem; }
.dc-bars .dc-bar { width: 100%; margin: 0; height: 9px; }
.dc-bars b { text-align: right; }
.dc-score { --s: 50; display: inline-flex; align-items: center; justify-content: center; min-width: 2.4em; padding: .15em .4em; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff;
	background: hsl(calc(var(--s) * 1.2), 62%, 38%); }
.dc-chip { display: inline-block; background: #eef2f1; border-radius: 999px; padding: .1em .6em; font-size: .78rem; margin: 0 .2em .2em 0; }
.dc-chip-oh { background: #e3f2fd; color: #0d47a1; }
.dc-chip-dm { background: #f1f8e9; color: #33691e; }
.dc-tag, .dc-tag-med { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: .05em .35em; vertical-align: middle; }
.dc-tag { background: #e3f2fd; color: #0d47a1; }
.dc-tag-med { background: #f1f8e9; color: #33691e; border: 1px solid #c5e1a5; }
.dc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dc-progress { height: 10px; background: #e6ecee; border-radius: 5px; overflow: hidden; max-width: 480px; }
.dc-progress span { display: block; height: 100%; background: var(--dc-primary); }
.dc-badge { display: inline-block; background: #ef6c00; color: #fff; border-radius: 999px; font-size: .72rem; padding: .05em .5em; margin-left: .3em; font-weight: 700; }
.dc-stato { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12em .55em; border-radius: 999px; vertical-align: middle; }
.dc-stato-pubblicato { background: #e8f5e9; color: #1b5e20; }
.dc-stato-bozza { background: #eceff1; color: #455a64; }
.dc-stato-in_revisione { background: #fff3e0; color: #e65100; }
.dc-stato-respinto { background: #fdecea; color: #b71c1c; }
.dc-stato-archiviato { background: #eceff1; color: #78909c; }
.dc-card { background: #fff; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: 1.1em 1.2em; margin: 0 0 1em; }
.dc-card > summary { cursor: pointer; }
.dc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1em; }
.dc-todo { list-style: none; padding: 0; margin: .5em 0 1em; }
.dc-todo li { padding: .3em 0 .3em 1.6em; position: relative; }
.dc-todo li::before { content: "○"; position: absolute; left: 0; color: #90a4ae; font-weight: 700; }
.dc-todo li.ok::before { content: "✓"; color: var(--dc-ok); }
.dc-iam ul { list-style: none; padding: 0; }
.dc-iam li { display: grid; grid-template-columns: minmax(0, 1fr) 45% 2.5em; gap: .6em; align-items: center; padding: .2em 0; font-size: .9rem; }
.dc-iam .dc-bar { width: 100%; height: 9px; margin: 0; }
.dc-cover { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8em; }
.dc-cover-item { border: 1px solid var(--dc-line); border-left: 5px solid var(--c); border-radius: 8px; padding: .8em; background: #fff; }
.dc-cover-item b { font-size: 1.5rem; display: block; }
.dc-cover-item span { display: block; font-size: .85rem; color: var(--dc-muted); min-height: 2.6em; }
.dc-review { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; align-items: center; }
.dc-review-form { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; }
.dc-review-form input { width: 260px !important; }
.dc-danger { margin: 2em 0 1em; padding-top: 1em; border-top: 1px solid var(--dc-line); display: flex; gap: .8em; flex-wrap: wrap; }
.dc-warn-ico { color: #ef6c00; }

/* Area riservata */
.dc-area { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; background: var(--dc-bg); border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; min-height: 70vh; }
.dc-area-nav { background: #12352a; color: #d8e8e1; padding: 1.2em 0; display: flex; flex-direction: column; }
.dc-area-brand { color: #fff; font-weight: 700; font-size: 1.05rem; padding: 0 1.2em 1em; border-bottom: 1px solid rgba(255,255,255,.12); line-height: 1.25; }
.dc-area-brand small, .dc-area-user small { display: block; font-weight: 400; color: #9fc2b4; font-size: .78rem; margin-top: .2em; }
.dc-area-user { padding: 1em 1.2em; font-weight: 600; color: #fff; font-size: .92rem; }
.dc-scope { padding: 0 1.2em 1em; }
.dc-scope label { font-size: .78rem; color: #9fc2b4; display: block; }
.dc-scope select { margin-top: .3em; font-size: .88rem !important; }
.dc-area-nav ul { list-style: none; margin: 0; padding: 0; }
.dc-area-nav li a { display: block; padding: .6em 1.2em; color: #d8e8e1; text-decoration: none; font-size: .94rem; border-left: 4px solid transparent; }
.dc-area-nav li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dc-area-nav li a.active { background: rgba(255,255,255,.1); border-left-color: #8bd3b3; color: #fff; font-weight: 600; }
.dc-area-links { margin-top: auto; padding: 1.2em; display: flex; flex-direction: column; gap: .4em; font-size: .85rem; }
.dc-area-links a { color: #9fc2b4; }
.dc-area-main { padding: 1.6em 2em 2em; min-width: 0; }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; }
.dc-subhead p { color: var(--dc-muted); margin: -.3em 0 .8em; }
.dc-tabs { display: flex; gap: .2em; border-bottom: 2px solid var(--dc-line); margin: 0 0 1.2em; flex-wrap: wrap; }
.dc-tabs a { padding: .55em 1em; text-decoration: none; color: var(--dc-muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dc-tabs a.active { color: var(--dc-primary); border-bottom-color: var(--dc-primary); }
.dc-login { max-width: 520px; margin: 2em auto; }
.dc-login input[type=text], .dc-login input[type=password] { width: 100%; }
.dc-login .login-submit input { background: var(--dc-primary); color: #fff; border: 0; border-radius: 6px; padding: .6em 1.4em; font-weight: 600; cursor: pointer; }

/* Dashboard */
.dc-dash { background: var(--dc-bg); border-radius: 14px; padding: 1.6em; }
.dc-dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5em; flex-wrap: wrap; margin-bottom: 1.2em; }
.dc-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--dc-primary); margin: 0 0 .3em; }
.dc-dash-head h1 { font-size: 2.1rem; margin: 0 0 .2em; }
.dc-dash-head .dc-lead { margin: 0; }
.dc-dash-filter label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dc-muted); }
.dc-dash-filter select { min-width: 240px; font-weight: 600; }
.dc-dash-tabs { display: flex; gap: .35em; overflow-x: auto; padding-bottom: .4em; margin: 0 0 1.2em; border-bottom: 1px solid var(--dc-line); scrollbar-width: thin; }
.dc-dash-tabs button { flex: 0 0 auto; background: #fff; border: 1px solid var(--dc-line); color: var(--dc-ink); border-radius: 999px; padding: .5em 1em; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .45em; align-items: center; }
.dc-dash-tabs button span { display: inline-flex; width: 1.5em; height: 1.5em; border-radius: 50%; background: #e8f1ec; color: var(--dc-primary); align-items: center; justify-content: center; font-size: .78rem; }
.dc-dash-tabs button[aria-selected=true] { background: var(--dc-primary); color: #fff; border-color: var(--dc-primary); }
.dc-dash-tabs button[aria-selected=true] span { background: rgba(255,255,255,.2); color: #fff; }
.dc-loading { padding: 4em 0; text-align: center; color: var(--dc-muted); }
.dc-gridc { display: grid; gap: 1em; margin: 0 0 1em; }
.dc-g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dc-panel { background: #fff; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: 1em 1.1em; min-width: 0; }
.dc-panel > h3 { font-size: 1rem; margin-bottom: .7em; }
.dc-sec { margin: 1.4em 0; }
.dc-sec > h2 { margin-top: 0; }
.dc-map { height: 380px; border-radius: 8px; z-index: 0; }
.dc-map-lg { height: 480px; }
.dc-map-md { height: 400px; }
.dc-chart { position: relative; height: 300px; }
.dc-chart-tall { height: 440px; }
.dc-heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .82rem; background: #fff; }
.dc-heat th { text-align: left; font-weight: 600; white-space: nowrap; padding: .3em .5em; }
.dc-heat thead th { text-align: center; font-size: .75rem; color: var(--dc-muted); }
.dc-heat td { text-align: center; padding: .4em .2em; border-radius: 4px; min-width: 2.6em; font-weight: 600; }
.dc-heat td.dc-small, .dc-heat td.num { background: none; text-align: left; font-weight: 400; }
.dc-heat td.dc-na { background: #f1f4f5; color: #b0bec5; }
.dc-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8em; }
.dc-question { text-align: left; background: #fff; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: 1em 1.1em 1em 3.6em; position: relative; cursor: pointer; font: inherit; color: var(--dc-ink); transition: transform .12s, box-shadow .12s; }
.dc-question:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.07); border-color: var(--dc-primary); }
.dc-question strong { display: block; margin-bottom: .3em; }
.dc-question > span:last-child { color: var(--dc-muted); font-size: .88rem; }
.dc-qn { position: absolute; left: 1em; top: 1em; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--dc-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dc-inline-ctl { display: flex; align-items: center; gap: .5em; margin: 0 0 .7em; font-size: .9rem; }
.dc-inline-ctl select { width: auto !important; max-width: 100%; }
.dc-legend-grad { display: flex; align-items: center; gap: .6em; font-size: .8rem; color: var(--dc-muted); margin-top: .5em; }
.dc-legend-grad i { flex: 0 1 200px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(46,125,50), rgb(249,168,37), rgb(198,40,40)); }
.dc-network { position: relative; }
.dc-net-tip { position: absolute; background: #263238; color: #fff; font-size: .8rem; padding: .3em .6em; border-radius: 4px; pointer-events: none; max-width: 280px; }
.dc-ini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9em; }
.dc-ini { background: #fff; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); padding: 1em 1.1em; }
.dc-ini header { display: flex; flex-wrap: wrap; gap: .2em; align-items: center; margin-bottom: .5em; }
.dc-ini h3 { margin: 0 0 .2em; }
.dc-ini p { margin: .3em 0; font-size: .92rem; }
.dc-ini-stato { margin-left: auto; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--dc-muted); }
.dc-ini-in_corso { color: var(--dc-ok); }
.dc-dm-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.2em; align-items: center; }
.dc-dm-top .dc-kpis { margin: 0; }
.dc-gauge { --v: 0; --c: #0b6e4f; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), #e6ecee 0); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; text-align: center; }
.dc-gauge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.dc-gauge > * { position: relative; }
.dc-gauge b { font-size: 3rem; line-height: 1; }
.dc-gauge span { font-size: .78rem; color: var(--dc-muted); margin-top: .3em; padding: 0 30px; line-height: 1.3; }
.dc-chips-lg { display: flex; flex-wrap: wrap; gap: .5em; }
.dc-chip-lg { display: inline-flex; align-items: center; gap: .5em; background: #f1f8e9; border: 1px solid #c5e1a5; border-radius: 999px; padding: .35em .9em .35em .35em; font-size: .9rem; }
.dc-chip-lg b { background: #558b2f; color: #fff; border-radius: 999px; min-width: 1.9em; height: 1.9em; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; }
.dc-chip-lg.dc-off { background: #fafafa; border-style: dashed; border-color: #cfd8dc; color: #90a4ae; }
.dc-chip-lg.dc-off b { background: #cfd8dc; }
.dc-updated, .dc-dash-foot { font-size: .8rem; color: var(--dc-muted); }
.dc-dash-foot { border-top: 1px solid var(--dc-line); margin-top: 1.5em; padding-top: 1em; }
.dc-app .leaflet-popup-content { font-size: .88rem; line-height: 1.4; }
.dc-app .leaflet-popup-content p { margin: .4em 0; }
.dc-app .leaflet-control-layers { font-size: .8rem; }

@media (max-width: 960px) {
	.dc-area { grid-template-columns: 1fr; }
	.dc-area-nav ul { display: flex; flex-wrap: wrap; }
	.dc-area-nav li a { border-left: 0; border-bottom: 3px solid transparent; }
	.dc-area-links { flex-direction: row; flex-wrap: wrap; }
	.dc-g-2, .dc-g-2-1, .dc-dm-top { grid-template-columns: 1fr; }
	.dc-grid { grid-template-columns: 1fr 1fr; }
	.dc-area-main { padding: 1.2em; }
	.dc-dash { padding: 1em; }
}
@media (max-width: 600px) {
	.dc-grid { grid-template-columns: 1fr; }
	.dc-span2 { grid-column: auto; }
	.dc-dash-head h1 { font-size: 1.6rem; }
	.dc-map-lg, .dc-map-md { height: 360px; }
}

/* ===== Modello di pagina a piena larghezza ===== */
.dc-page { background: #fff; padding: 1.5rem 0 3rem; }
.dc-page-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.dc-breadcrumb { font-family: "Titillium Web", system-ui, sans-serif; font-size: 15px; color: #5b6b73; margin: 0 0 1rem; }
.dc-breadcrumb a { color: inherit; }
.dc-page-title { font-family: "Titillium Web", system-ui, sans-serif; font-size: 2.4rem; font-weight: 700; margin: 0 0 1.5rem; }
.dc-template-full .dc-dash.alignwide, .dc-template-full .dc-area.alignwide { margin-left: 0; margin-right: 0; max-width: none; width: auto; }

/* ===== Protezione dagli stili del tema (Bootstrap Italia / Design Comuni Italia e altri) ===== */
.dc-app legend { float: none; width: auto; font-size: 1rem; line-height: 1.3; padding: 0 .4em; margin: 0 0 .4em; color: var(--dc-ink); font-weight: 700; }
.dc-app fieldset { min-width: 0; }
.dc-app label { position: static; transform: none; font-size: .9rem; color: var(--dc-ink); background: none; padding: 0; width: auto; max-width: none; white-space: normal; }
.dc-app .dc-check { font-size: .95rem; }
.dc-app input[type=checkbox], .dc-app input[type=radio] { position: static !important; opacity: 1 !important; width: 1.05em !important; height: 1.05em !important; min-width: 1.05em; margin: .25em 0 0 !important; padding: 0 !important; appearance: auto !important; -webkit-appearance: auto !important; display: inline-block !important; border: initial; background: initial; accent-color: var(--dc-primary); clip: auto !important; }
.dc-app .dc-mesi input[type=checkbox] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; min-width: 0; }
.dc-app input[type=text], .dc-app input[type=email], .dc-app input[type=url], .dc-app input[type=number], .dc-app input[type=date], .dc-app input[type=month], .dc-app input[type=search], .dc-app input[type=password], .dc-app select, .dc-app textarea { box-shadow: none; height: auto; font-size: 1rem; line-height: 1.4; border: 1px solid #b8c4ca; border-radius: 6px; }
.dc-app select { appearance: auto; -webkit-appearance: menulist; background-image: none; padding-right: .65em; }
.dc-app table { margin-bottom: 1em; }
.dc-app table th, .dc-app table td { border-top: 0; }
.dc-app p { font-size: inherit; line-height: 1.5; margin: 0 0 .8em; }
.dc-app ul { padding-left: 0; }
.dc-app .dc-panel h3, .dc-app .dc-kpi b, .dc-app h1, .dc-app h2 { font-family: "Titillium Web", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; }
.dc-app button { text-transform: none; letter-spacing: 0; }
.dc-app img { max-width: none; }
.dc-app .leaflet-container { font: 13px/1.4 "Titillium Web", system-ui, sans-serif; }
.dc-app .leaflet-container img, .dc-app .leaflet-tile { max-width: none !important; max-height: none !important; }
.dc-app .leaflet-control-layers label { display: flex; align-items: center; gap: .3em; font-size: 12.5px; margin: 0; }
.dc-app .leaflet-control-layers input { margin: 0 .2em 0 0; }
.dc-app canvas { max-width: 100%; }

/* ===== Adattamento alla larghezza effettiva del contenitore (colonne strette, barre laterali) ===== */
.dc-dash, .dc-area-main { container-type: inline-size; }
@container (max-width: 900px) {
	.dc-g-2, .dc-g-2-1, .dc-dm-top { grid-template-columns: minmax(0, 1fr); }
	.dc-map-lg { height: 400px; }
	.dc-chart-tall { height: 380px; }
	.dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-dash-head { flex-direction: column; align-items: stretch; }
	.dc-dash-filter select { width: 100%; }
}
@container (max-width: 560px) {
	.dc-grid { grid-template-columns: minmax(0, 1fr); }
	.dc-span2 { grid-column: auto; }
	.dc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-kpi b { font-size: 1.3rem; }
	.dc-map-lg, .dc-map-md { height: 340px; }
	.dc-gauge { width: 180px; height: 180px; margin: 0 auto; }
	.dc-questions { grid-template-columns: minmax(0, 1fr); }
	.dc-ini-list, .dc-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.dc-page-wrap { padding: 0 12px; }
	.dc-page-title { font-size: 1.8rem; }
	.dc-dash { padding: .8em; border-radius: 0; }
}
.dc-inline-ctl { flex-wrap: wrap; }
.dc-inline-ctl select { min-width: 0; flex: 1 1 220px; }
