/* ============================================================
   InfoComuni — /news.html stile JobCon Hub
   v2.0 — 2026-05-27 — Layout 3 colonne
   ============================================================ */

:root {
  --nt-emerald-1: #0d4f3f;
  --nt-emerald-2: #1f8763;
  --nt-emerald-3: #14a169;
  --nt-gold: #f3b840;
  --nt-gold-soft: #ffd57a;
  --nt-brand-navy: #0b2340;
  --nt-text: #0b2340;
  --nt-muted: #6b7585;
  --nt-bg: #f6f8fb;
  --nt-card: #ffffff;
  --nt-border: #e5e7eb;
  --nt-shadow: 0 8px 24px rgba(11,35,64,0.08);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.55 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--nt-text);
  background: var(--nt-bg);
}

/* === TOPBAR === */
.nt-topbar {
  background: var(--nt-brand-navy);
  color: #fff;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.nt-brand { display: flex; align-items: center; min-height: 36px; text-decoration: none; }
.nt-brand__logo {
  height: 32px; width: auto; max-width: 180px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
.nt-topnav { display: flex; gap: 18px; margin-left: auto; margin-right: auto; }
.nt-topnav a {
  color: #d8dbe5; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 6px 10px; border-radius: 6px;
  transition: background-color 150ms, color 150ms;
}
.nt-topnav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nt-topnav a.is-active { color: var(--nt-gold); }
.nt-saved-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(243,184,64,0.15); color: var(--nt-gold-soft);
  border: 1px solid rgba(243,184,64,0.35);
  padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background-color 180ms, color 180ms;
}
.nt-saved-btn:hover { background: var(--nt-gold); color: var(--nt-brand-navy); }
.nt-saved-btn[data-active="true"] { background: var(--nt-gold); color: var(--nt-brand-navy); }

/* === HERO HUB === */
.nt-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(243,184,64,0.10) 0%, transparent 50%),
    radial-gradient(circle at 12% 80%, rgba(20,161,105,0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0a1a2f 0%, #0b2340 60%, #0d3050 100%);
  color: #fff;
  padding: 32px 32px 28px;
  position: relative; overflow: hidden;
}
.nt-hero__inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.nt-hero__title-block { flex: 1 1 460px; }
.nt-hero__kicker {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--nt-gold);
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(243,184,64,0.12);
  border: 1px solid rgba(243,184,64,0.32);
  border-radius: 999px;
}
.nt-hero__title {
  margin: 0 0 10px;
  font-size: 40px; font-weight: 900;
  letter-spacing: -0.018em;
  color: #fff !important;
  line-height: 1.05;
}
.nt-hero__sub {
  margin: 0;
  font-size: 16px; line-height: 1.55;
  color: #cfd6e2; max-width: 720px;
}
.nt-hero__counters {
  display: flex; gap: 12px; flex-wrap: wrap;
  flex: 0 0 auto;
}
.nt-hero__counter {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: #fff;
}
.nt-hero__counter strong { font-size: 16px; }
.nt-hero__counter--green { background: rgba(20,161,105,0.18); border-color: rgba(20,161,105,0.5); }
.nt-hero__counter--green::before { content: "●"; color: #14a169; font-size: 10px; }
.nt-hero__counter--gold { background: rgba(243,184,64,0.15); border-color: rgba(243,184,64,0.45); color: var(--nt-gold); }
.nt-hero__counter--gold::before { content: "↗"; }

/* === TOOLBAR (search + tabs + fonti) === */
.nt-toolbar {
  background: #0a1a2f;
  padding: 0 32px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
.nt-toolbar__inner { max-width: 1400px; margin: 0 auto; }
.nt-search {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px 14px 48px;
  font: inherit; font-size: 15px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px 18px;
  margin-bottom: 14px;
}
.nt-search::placeholder { color: rgba(255,255,255,0.55); }
.nt-search:focus { outline: 2px solid var(--nt-gold); outline-offset: 1px; }

.nt-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.nt-tab {
  background: transparent;
  color: #cfd6e2;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.nt-tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nt-tab.is-active {
  background: #fff;
  color: var(--nt-brand-navy);
  border-color: #fff;
}

.nt-statusbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12.5px;
  color: #94a3b8;
}
.nt-statusbar__label { letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: #cfd6e2; }
.nt-source-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #d8dbe5;
}
.nt-source-chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #16a571;
}

/* === LAYOUT 3 COLONNE === */
.nt-shell-3col {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 24px;
  align-items: flex-start;
}

/* === SIDEBAR SX (accordion multi-select) === */
.nt-side {
  background: #fff;
  border: 1px solid var(--nt-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--nt-shadow);
  position: sticky; top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.nt-side::-webkit-scrollbar { width: 6px; }
.nt-side::-webkit-scrollbar-thumb { background: #d4d8df; border-radius: 3px; }
.nt-side__lead {
  margin: 0 4px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--nt-muted);
}

/* Accordion */
.nt-acc {
  border-bottom: 1px solid #eef0f4;
  padding: 0;
}
.nt-acc:last-of-type { border-bottom: 0; }
.nt-acc__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 8px;
  transition: background-color .12s;
}
.nt-acc__head:hover { background: #f6f8fb; }
.nt-acc__head::-webkit-details-marker { display: none; }
.nt-acc__title {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--nt-text);
  flex: 1;
}
.nt-acc__count {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--nt-muted);
  background: #f0f2f5;
  padding: 2px 8px;
  border-radius: 999px;
}
.nt-acc__count[data-active="true"] {
  background: var(--nt-emerald-2);
  color: #fff;
}
.nt-acc__chev {
  font-size: 18px;
  color: var(--nt-muted);
  font-weight: 700;
  transition: transform .15s;
  line-height: 0.5;
}
.nt-acc[open] > .nt-acc__head .nt-acc__chev { transform: rotate(180deg); }
.nt-acc__body { padding: 2px 4px 12px; }

/* Lista filtri sidebar */
.nt-fl {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.nt-fl li {
  padding: 0;
}
.nt-fl label {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--nt-text);
  line-height: 1.3;
  transition: background-color .1s;
}
.nt-fl label:hover { background: #f3f4f7; }
.nt-fl label input { display: none; }
.nt-fl label::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  transition: border-color .1s, background .1s;
}
.nt-fl label:has(input[type="radio"])::before { border-radius: 50%; }
.nt-fl label:has(input:checked)::before {
  background: var(--nt-emerald-2);
  border-color: var(--nt-emerald-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.nt-fl label:has(input[type="radio"]:checked)::before {
  background: var(--nt-emerald-2);
  border-color: var(--nt-emerald-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='4' fill='white'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.nt-fl label:has(input:checked) { background: #e8f5ef; color: var(--nt-emerald-1); font-weight: 600; }

.nt-side__actions {
  position: sticky; bottom: -16px;
  background: #fff;
  margin: 16px -16px -16px;
  padding: 14px 16px;
  border-top: 1px solid var(--nt-border);
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.nt-btn-mini {
  background: transparent;
  border: 1px solid var(--nt-border);
  color: var(--nt-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  flex: 1;
}
.nt-btn-mini:hover { background: #f3f4f7; color: var(--nt-text); }
.nt-btn-mini--save {
  background: var(--nt-gold);
  border-color: var(--nt-gold);
  color: var(--nt-brand-navy);
  font-weight: 700;
}

/* === SIDEBAR DX (filtri faceted) === */
.nt-filters {
  background: #fff;
  border: 1px solid var(--nt-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--nt-shadow);
  position: sticky; top: 24px;
}
.nt-filters__group { margin-bottom: 20px; }
.nt-filters__group:last-child { margin-bottom: 0; }
.nt-filters__title {
  font-size: 12.5px; font-weight: 800;
  color: var(--nt-text);
  margin: 0 0 10px;
}
.nt-filters__list {
  list-style: none; margin: 0; padding: 0;
  max-height: 200px; overflow-y: auto;
  font-size: 13px;
}
.nt-filters__list::-webkit-scrollbar { width: 6px; }
.nt-filters__list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.nt-filters__list li { padding: 4px 0; }
.nt-filters__list label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  width: 100%;
  color: var(--nt-text);
}
.nt-filters__list label:hover { color: var(--nt-emerald-2); }
.nt-filters__list input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--nt-emerald-2);
  cursor: pointer;
}
.nt-filters__list label .nt-filters__n {
  margin-left: auto;
  color: var(--nt-muted);
  font-size: 12px;
  font-weight: 500;
}
.nt-filters__reset {
  width: 100%;
  background: transparent;
  border: 1px solid var(--nt-border);
  color: var(--nt-muted);
  padding: 8px;
  border-radius: 8px;
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  margin-top: 8px;
}
.nt-filters__reset:hover { background: #f3f4f7; color: var(--nt-text); }

/* === CENTRE === */
.nt-center { min-width: 0; }
.nt-results__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.nt-results__head h2 {
  margin: 0;
  font-size: 18px; font-weight: 800;
  color: var(--nt-text);
}
.nt-results__head h2 strong { color: var(--nt-emerald-2); }
.nt-sort {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--nt-muted);
}
.nt-sort select {
  font: inherit; font-size: 13px;
  border: 1px solid var(--nt-border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--nt-text);
  cursor: pointer;
}

.nt-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  list-style: none; margin: 0; padding: 0;
}

.nt-empty {
  background: #fff;
  border: 1px dashed var(--nt-border);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--nt-muted);
}
.nt-empty__icon { font-size: 40px; margin: 0 0 8px; }
.nt-empty h3 { font-size: 17px; margin: 4px 0 8px; color: var(--nt-text); }
.nt-empty__btn {
  background: var(--nt-gold); border: 0;
  color: var(--nt-brand-navy);
  padding: 8px 16px; border-radius: 8px;
  font: inherit; font-weight: 700;
  cursor: pointer; margin-left: 4px;
}

/* === Footer === */
.nt-footer {
  background: var(--nt-brand-navy);
  color: #cfd6e2;
  padding: 28px 32px;
  text-align: center;
  font-size: 13px;
  margin-top: 64px;
}
.nt-footer a { color: var(--nt-gold); text-decoration: none; }
.nt-footer p { margin: 4px 0; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .nt-shell-3col { grid-template-columns: 260px 1fr; }
  .nt-filters { display: none; }
}
@media (max-width: 880px) {
  .nt-shell-3col { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .nt-cards { grid-template-columns: 1fr; gap: 14px; }
  .nt-side { position: static; }
  .nt-hero__title { font-size: 28px; }
  .nt-hero { padding: 24px 20px 20px; }
  .nt-toolbar { padding: 0 20px 20px; }
  .nt-hero__counters { width: 100%; }
}
@media (max-width: 640px) {
  .nt-topbar { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .nt-topnav { order: 3; width: 100%; margin: 0; justify-content: center; }
  .nt-saved-btn { margin-left: auto; }
  .nt-brand__logo { height: 26px; max-width: 140px; }
}
