/* ==========================================================================
   Ateneo24 — sistema visivo "Universitario classico contemporaneo"
   Nessuna dipendenza esterna: font self-hosted (SIL OFL), niente CDN.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.f94a697b1650.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.e97067eb043b.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.30164609c163.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.71c881907d08.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

/* ---------- Token ---------- */
:root {
  /* colore */
  --notte: #0B2545;        /* blu notte del brand: testata, titoli, superfici scure */
  --notte-2: #13315C;      /* hover su superfici scure */
  --ateneo: #1D4E89;       /* link e azioni secondarie */
  --bordeaux: #8A1C2B;     /* etichette di sezione, scadenze ravvicinate */
  --verde: #1B6B45;        /* scadenza lontana / importi */
  --pietra: #E9ECF0;       /* fasce di sezione */
  --pietra-2: #F4F5F7;     /* campi, note */
  --carta: #FFFFFF;
  --grafite: #2E3846;      /* testo corrente */
  --muto: #556172;         /* testo secondario (AA su bianco e pietra) */
  --filo: #C9D0D9;         /* filetti */
  --filo-2: #DDE2E8;
  --focus: #1D4E89;

  /* tipografia */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* misure */
  --wrap: 1240px;
  --gutter: 16px;
  --r: 2px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol[role="list"], ul[role="list"], .list-reset { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  color: var(--grafite);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }

/* ---------- Link e focus ---------- */
a { color: var(--ateneo); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--notte); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 1px; }
.on-dark { --focus: #F5C96B; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--carta); color: var(--notte); font-weight: 600;
  padding: 10px 16px; border: 2px solid var(--notte); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }
.wrap--mid { max-width: calc(64rem + 2 * var(--gutter)); }
.band { padding-block: 56px; }
.band--stone { background: var(--pietra); }
.band--tight { padding-block: 40px; }
@media (min-width: 1024px) { .band { padding-block: 72px; } }
.stack > * + * { margin-top: 1rem; }

/* ---------- Tipografia ---------- */
.display, .h1, .h2, .h3, .serif { font-family: var(--serif); color: var(--notte); }
.display {
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  max-width: 13ch; text-wrap: balance;
}
.h1 { font-weight: 500; font-size: clamp(2.125rem, 1.6rem + 2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em; }
.h3 { font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--grafite); max-width: 38em; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.muted { color: var(--muto); }
.small { font-size: .9375rem; }
.xsmall { font-size: .875rem; }
.kicker { font-size: .9375rem; font-weight: 600; color: var(--bordeaux); }

/* titolo di sezione con collegamento all'archivio */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; margin-bottom: 28px;
}
.sec-head p { flex-basis: 100%; color: var(--muto); max-width: 44em; }
.sec-link { font-weight: 600; font-size: 1rem; white-space: nowrap; }

/* ---------- Pulsanti e campi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid var(--notte);
  background: var(--notte); color: #fff; font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--r); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--notte-2); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--notte); }
.btn--ghost:hover { background: var(--notte); color: #fff; }
.btn--light { background: #fff; color: var(--notte); border-color: #fff; }
.btn--light:hover { background: var(--pietra); color: var(--notte); }
.btn[disabled] { background: var(--pietra-2); color: var(--muto); border-color: var(--filo); cursor: not-allowed; }
.btn--block { width: 100%; }

.label { display: block; font-weight: 600; font-size: .9375rem; color: var(--notte); margin-bottom: 6px; }
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #7A8594; border-radius: var(--r); background: #fff;
  font-size: 1rem; color: var(--grafite);
}
.input::placeholder { color: #6B7685; }
.input:focus, .select:focus { border-color: var(--notte); outline: 3px solid rgba(29, 78, 137, .25); outline-offset: 0; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230B2545' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.select::-ms-expand { display: none; }
input[type="checkbox"] { accent-color: var(--notte); width: 18px; height: 18px; flex-shrink: 0; }
.field-error { color: var(--bordeaux); font-size: .9375rem; margin-top: 6px; font-weight: 600; }

/* ricerca con pulsante */
.search { display: flex; max-width: 560px; }
.search .input { border-color: var(--notte); border-right: 0; border-radius: var(--r) 0 0 var(--r); min-height: 56px; font-size: 1.0625rem; }
.search .btn { min-height: 56px; border-radius: 0 var(--r) var(--r) 0; padding: 0 26px; }

/* ---------- Barra superiore e testata ---------- */
.util { background: var(--notte); color: #C9D3E0; font-size: .875rem; }
.util .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 36px; }
.util a { color: #fff; text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util nav { display: flex; gap: 22px; }
@media (max-width: 639px) { .util { display: none; } }

.masthead { background: var(--carta); border-bottom: 1px solid var(--filo); position: relative; z-index: 30; }
.masthead > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
@media (min-width: 1024px) { .masthead > .wrap { align-items: flex-end; padding-block: 22px 18px; } }
.brand { text-decoration: none; color: var(--notte); display: block; }
.brand:hover { color: var(--notte); text-decoration: none; }
.brand__logo { display: block; height: 38px; width: auto; }
.brand__tag {
  display: none; font-family: var(--serif); font-size: .9375rem; letter-spacing: .02em;
  color: var(--notte); margin-top: 8px; line-height: 1.3; white-space: nowrap;
  padding-left: 21.5%; /* allineata alla scritta, dopo il capitello */
}
@media (min-width: 640px) { .brand__logo { height: 46px; } .brand__tag { display: block; font-size: .875rem; } }
@media (min-width: 1024px) { .brand__logo { height: 58px; } .brand__tag { font-size: .9375rem; } }

.nav-main { display: none; }
.nav-main ul { display: flex; gap: 4px 26px; }
.nav-main a {
  display: inline-block; padding: 6px 0 5px; font-weight: 600; font-size: 1rem;
  color: var(--notte); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-main a:hover { border-bottom-color: var(--filo); }
.nav-main a[aria-current="page"] { border-bottom-color: var(--bordeaux); }
@media (min-width: 1024px) { .nav-main { display: block; } }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--notte); background: #fff; color: var(--notte);
  font-weight: 600; border-radius: var(--r); cursor: pointer; flex-shrink: 0;
}
.menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ---------- Menu mobile: pannello laterale (dialog modale) ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto;
  width: min(88vw, 380px); height: 100%; max-height: none; max-width: none;
  padding: 0 var(--gutter) 32px; border: 0; border-left: 3px solid var(--notte);
  background: var(--carta); color: var(--grafite); overflow-y: auto; overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(11, 37, 69, .55); }
html:has(.drawer[open]) { overflow: hidden; }
.drawer__head {
  position: sticky; top: 0; z-index: 1; background: var(--carta);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; border-bottom: 1px solid var(--filo);
}
.drawer__logo { height: 32px; width: auto; }
.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--notte); border-radius: var(--r);
  background: #fff; color: var(--notte); cursor: pointer; flex-shrink: 0;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__search { margin-top: 20px; }
.drawer__search .input, .drawer__search .btn { min-height: 48px; font-size: 1rem; }
.drawer__search .btn { padding: 0 16px; }
.drawer__nav { margin-top: 20px; border-top: 2px solid var(--notte); }
.drawer__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--filo-2);
  font-family: var(--serif); font-size: 1.375rem; color: var(--notte); text-decoration: none;
}
.drawer__nav a:hover { color: var(--ateneo); }
.drawer__nav a[aria-current="page"] { color: var(--bordeaux); box-shadow: inset 3px 0 0 var(--bordeaux); padding-left: 12px; }
.drawer__meta { margin-top: 24px; display: grid; gap: 10px; font-size: 1rem; }
.drawer__meta a { font-weight: 600; }
.drawer__tag { margin-top: 28px; font-family: var(--serif); font-size: .9375rem; color: var(--muto); }
@media (min-width: 1024px) { .drawer { display: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .26s cubic-bezier(.2, .7, .2, 1); }
  .drawer[open]::backdrop { animation: backdrop-in .26s ease-out; }
  .drawer.is-closing { animation: drawer-out .2s ease-in forwards; }
  .drawer.is-closing::backdrop { animation: backdrop-out .2s ease-in forwards; }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
  @keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
  @keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
}

.messages { margin-top: 20px; }
.message { border-left: 4px solid var(--ateneo); background: var(--pietra-2); padding: 12px 16px; color: var(--notte); }

/* ---------- Home: apertura ---------- */
.opening { padding-block: 40px 56px; }
.opening__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .opening { padding-block: 64px 72px; }
  .opening__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
}
.opening .lede { margin: 22px 0 30px; }
.search-hint { margin-top: 10px; font-size: .9375rem; color: var(--muto); }

.paths { margin-top: 36px; border-top: 1px solid var(--filo); display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (min-width: 640px) and (max-width: 1023px) { .paths { grid-template-columns: repeat(4, 1fr); } }
.paths a { display: block; padding: 16px 0 14px; border-bottom: 1px solid var(--filo-2); text-decoration: none; color: var(--notte); }
.paths a:hover .paths__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.paths__t { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.paths__d { display: block; font-size: .9375rem; color: var(--muto); line-height: 1.4; margin-top: 2px; }

/* colonna "ultime notizie" accanto all'apertura */
.front { border-top: 3px solid var(--notte); padding-top: 14px; }
.front__label { display: block; font-size: .9375rem; font-weight: 600; color: var(--bordeaux); margin-bottom: 12px; }

/* ---------- Notizie ---------- */
.story { display: flex; flex-direction: column; }
.story__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pietra); margin-bottom: 14px; }
.story__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.story__media.img-failed { display: block !important; }
.story__media.img-failed img { display: none; }
/* Segnaposto: sigla dell'ateneo su fondo del brand, sotto la copertina */
.story__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 8% 9%; background: var(--notte); color: #fff; text-decoration: none; }
.story__ph::before { content: ""; width: 44px; height: 3px; background: #C9A227; margin-bottom: 14px; }
.story__ph-code { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: .01em; }
.story__ph--long .story__ph-code { font-size: clamp(1.25rem, 1rem + .9vw, 1.625rem); }
.story__ph-name { margin-top: 10px; font-size: .875rem; line-height: 1.35; color: #C9D3E2; max-width: 26ch; }
.story__credit { margin-top: -8px; margin-bottom: 12px; font-size: .8125rem; color: var(--muto); }
.story__meta { font-size: .875rem; color: var(--muto); margin-bottom: 6px; }
.story__meta a { color: inherit; text-decoration-color: var(--filo); }
.story__meta .cat { color: var(--bordeaux); font-weight: 600; }
.story__title { font-family: var(--serif); font-weight: 500; color: var(--notte); font-size: 1.375rem; line-height: 1.2; }
.story__title a { color: inherit; text-decoration: none; }
.story__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.story__sum { margin-top: 8px; color: var(--grafite); font-size: 1rem; line-height: 1.55; }
.story__foot { margin-top: 10px; font-size: .875rem; color: var(--muto); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.story--lead .story__media { aspect-ratio: 16 / 10; }
.story--lead .story__title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.15; }
.story.no-media .story__media { display: none; }
@media (min-width: 640px) and (max-width: 1023px) {
  .front .story--lead:not(.no-media) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
  .front .story--lead:not(.no-media) .story__media { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
  .front .story--lead:not(.no-media) > :not(.story__media) { grid-column: 2; }
}

.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tags a { color: var(--muto); font-size: .875rem; text-decoration-color: var(--filo); }
.tags a:hover { color: var(--notte); }

.flag { font-size: .8125rem; color: var(--muto); border: 1px solid var(--filo); padding: 0 6px; border-radius: var(--r); }

.headlines { margin-top: 20px; border-top: 1px solid var(--filo); }
.headlines li { border-bottom: 1px solid var(--filo); }
.headlines a { display: block; padding: 12px 0; text-decoration: none; color: var(--notte); }
.headlines a:hover .headlines__t { text-decoration: underline; }
.headlines__m { display: block; font-size: .875rem; color: var(--muto); }
.headlines__t { display: block; font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }

.news-grid { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-grid > .story { border-top: 1px solid var(--filo); padding-top: 18px; }

/* ---------- Indice atenei ---------- */
.atenei { column-gap: 48px; }
.atenei > section { break-inside: avoid; margin-bottom: 40px; }
@media (min-width: 768px) { .atenei { columns: 2; } }
@media (min-width: 1100px) { .atenei { columns: 3; } }
.atenei__reg { font-size: 1rem; font-weight: 700; color: var(--bordeaux); padding-bottom: 10px; border-bottom: 2px solid var(--notte); }
.atenei__reg a { color: inherit; text-decoration: none; }
.atenei__reg a:hover { text-decoration: underline; }
.uni-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filo); text-decoration: none; }
.uni-row:hover .uni-row__n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.uni-row__n { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--notte); }
.uni-row__c { display: block; font-size: .9375rem; color: var(--muto); margin-top: 2px; }
.uni-row__y { font-family: var(--serif); font-size: 1.125rem; color: var(--grafite); white-space: nowrap; font-variant-numeric: oldstyle-nums; }

/* ---------- Bandi e concorsi: registro ---------- */
.registry { border-top: 2px solid var(--notte); }
.registry li { border-bottom: 1px solid var(--filo); }
.reg-row { display: grid; gap: 6px 24px; padding: 16px 0; text-decoration: none; color: var(--grafite); }
.reg-row:hover .reg-row__t { text-decoration: underline; }
.reg-row__type { font-size: .875rem; font-weight: 600; color: var(--bordeaux); }
.reg-row__t { display: block; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; color: var(--notte); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.reg-row__org { display: block; font-size: .9375rem; color: var(--muto); margin-top: 2px; }
.reg-row__due { font-size: .9375rem; }
@media (min-width: 768px) {
  .reg-row { grid-template-columns: 9.5rem 1fr 12.5rem; align-items: baseline; padding: 18px 0; }
  .reg-row__due { text-align: right; }
}
.registry--compact .reg-row { grid-template-columns: 1fr; }
.registry--compact .reg-row__due { text-align: left; }

.two-col { display: grid; gap: 56px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* stato della scadenza: sempre testo, mai solo colore */
.due { font-weight: 600; }
.due--soon { color: var(--bordeaux); }
.due__sub { display: block; font-weight: 500; font-size: .875rem; }
.due--date { color: var(--grafite); font-weight: 500; }
.due--open { color: var(--verde); }
.due--closed { color: var(--muto); font-weight: 500; }
.amount { color: var(--verde); font-weight: 600; }

/* ---------- Agenda eventi ---------- */
.agenda li { display: grid; grid-template-columns: 4.25rem 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--filo); }
.agenda li:first-child { border-top: 2px solid var(--notte); }
.agenda__d { text-align: center; line-height: 1; color: var(--notte); }
.agenda__day { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; }
.agenda__mon { display: block; font-size: .875rem; font-weight: 600; margin-top: 4px; color: var(--bordeaux); }
.agenda__t { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; color: var(--notte); }
.agenda__t a { color: inherit; text-decoration: none; }
.agenda__t a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.agenda__m { font-size: .9375rem; color: var(--muto); margin-top: 2px; }

/* ---------- Ricerca ---------- */
.entries { display: grid; gap: 0 48px; }
@media (min-width: 768px) { .entries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .entries--3 { grid-template-columns: repeat(3, 1fr); } }
.entry { padding: 18px 0; border-top: 1px solid var(--filo); }
.entry__prog { font-size: .875rem; font-weight: 600; color: var(--bordeaux); }
.entry__t { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; color: var(--notte); margin-top: 4px; font-weight: 500; }
.entry__u { font-size: .9375rem; color: var(--muto); margin-top: 4px; }
.entry__t a { color: inherit; text-decoration: none; }
.entry__t a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.entry__d { font-size: 1rem; margin-top: 8px; }
.entry__l { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9375rem; }

/* ---------- Metodo, network, newsletter ---------- */
.method { display: grid; gap: 32px; }
@media (min-width: 900px) { .method { grid-template-columns: 5fr 7fr; gap: 64px; } }
.method__cols { display: grid; gap: 28px; }
@media (min-width: 640px) { .method__cols { grid-template-columns: 1fr 1fr; } }
.method__cols h3 { font-family: var(--serif); font-size: 1.3125rem; font-weight: 600; color: var(--notte); margin-bottom: 6px; }
.method__cols div { border-top: 2px solid var(--notte); padding-top: 14px; }

.network { display: grid; gap: 16px 48px; align-items: center; border-top: 1px solid var(--filo); border-bottom: 1px solid var(--filo); padding-block: 28px; }
@media (min-width: 900px) { .network { grid-template-columns: 12rem 1fr auto; } }
.network__mark { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: #B3122E; line-height: 1; }
.network__label { display: block; font-size: .875rem; color: var(--muto); margin-bottom: 6px; }
.network p { max-width: 42em; }

.newsletter-band { background: var(--notte); color: #E3E9F1; }
.newsletter-band .wrap { display: grid; gap: 24px; padding-block: 48px; align-items: center; }
@media (min-width: 900px) { .newsletter-band .wrap { grid-template-columns: 1fr auto; gap: 48px; } }
.newsletter-band h2 { font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.15; }
.newsletter-band p { margin-top: 8px; max-width: 40em; }

/* ---------- Pagine interne ---------- */
.page-body { padding-bottom: 72px; }
.page-head { padding-block: 28px 32px; border-bottom: 1px solid var(--filo); }
@media (min-width: 1024px) { .page-body { padding-bottom: 72px; }
.page-head { padding-block: 36px 40px; } }
.page-head .lede { margin-top: 12px; }
.page-head--stone { background: var(--pietra); border-bottom: 0; }

.crumbs { font-size: .9375rem; color: var(--muto); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 0; }
.crumbs li { display: flex; gap: 8px; align-items: baseline; }
.crumbs li + li::before { content: "/"; color: #8F9AA8; }
.crumbs a { color: var(--muto); }
.crumbs a:hover { color: var(--notte); }
.crumbs [aria-current] { color: var(--grafite); }

.filters { display: grid; gap: 14px; padding: 20px; background: var(--pietra-2); border: 1px solid var(--filo-2); margin-block: 28px 20px; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: end; } .filters .span-2 { grid-column: span 2; } }
.filters .actions { display: flex; gap: 12px; align-items: end; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 24px; font-size: .9375rem; }
.chip { border: 1px solid var(--filo); background: #fff; padding: 2px 10px; border-radius: var(--r); color: var(--notte); }
.note-small { font-size: .9375rem; color: var(--muto); max-width: 52em; margin-bottom: 28px; }
.result-count { font-size: .9375rem; color: var(--muto); margin-bottom: 8px; }

.empty { padding: 48px 0; border-top: 1px solid var(--filo); }
.empty h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--notte); }
.empty p { margin-top: 8px; color: var(--muto); max-width: 40em; }
.empty a { display: inline-block; margin-top: 14px; font-weight: 600; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--filo); font-size: .9375rem; }
.pager a { font-weight: 600; }
.pager span { color: var(--muto); }

/* lista atenei (pagina Università) */
.uni-list { border-top: 2px solid var(--notte); }
.uni-item { display: grid; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--filo); }
@media (min-width: 900px) { .uni-item { grid-template-columns: 1fr 15rem; } }
.uni-item__n { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 500; }
.uni-item__n a { color: var(--notte); text-decoration: none; }
.uni-item__n a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.uni-item__p { color: var(--muto); margin-top: 4px; font-size: .9375rem; }
.uni-item__news { margin-top: 10px; display: grid; gap: 4px; font-size: .9375rem; }
.uni-item__news a { color: var(--grafite); }
.uni-item__news a:hover { color: var(--notte); }
.facts { display: grid; grid-template-columns: 8.5rem 1fr; gap: 2px 14px; font-size: .9375rem; align-content: start; }
.facts dt { color: var(--muto); }
.facts dd { color: var(--grafite); font-variant-numeric: tabular-nums; }

/* scheda ateneo */
.uni-head { background: var(--pietra); padding-block: 28px 40px; }
.uni-head__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .uni-head__grid { grid-template-columns: 1fr 22rem; gap: 64px; align-items: start; } }
.uni-head__logo { width: 72px; height: 72px; object-fit: contain; background: #fff; padding: 6px; margin-bottom: 18px; }
.uni-head .place { color: var(--grafite); margin-top: 10px; font-size: 1.0625rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .9375rem; }
.links-row a { font-weight: 600; }
.factsheet { border-top: 2px solid var(--notte); }
.factsheet div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filo); }
.factsheet dt { color: var(--muto); }
.factsheet dd { font-family: var(--serif); font-size: 1.25rem; color: var(--notte); font-variant-numeric: lining-nums tabular-nums; }

.layout-aside { display: grid; gap: 56px; padding-block: 48px 64px; }
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 20rem; gap: 72px; } }
.layout-aside section + section { margin-top: 48px; }
.aside-block + .aside-block { margin-top: 40px; }
.aside-title { font-size: 1rem; font-weight: 700; color: var(--notte); padding-bottom: 8px; border-bottom: 2px solid var(--notte); }
.sec-title { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; color: var(--notte); margin-bottom: 14px; line-height: 1.15; }

.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--filo-2); }
.plain-list--cols { display: grid; gap: 0 32px; }
@media (min-width: 640px) { .plain-list--cols { grid-template-columns: 1fr 1fr; } }
.plain-list a { color: var(--notte); text-decoration-color: #9AA5B3; }
.plain-list a:hover { text-decoration-color: currentColor; }
.plain-list .sub { color: var(--muto); font-size: .9375rem; }

.data-table { width: 100%; font-size: .9375rem; }
.table-scroll { overflow-x: auto; border-top: 2px solid var(--notte); }
.data-table th { text-align: left; font-weight: 600; color: var(--notte); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filo); white-space: nowrap; }
.data-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filo-2); vertical-align: top; }
.data-table td.muted { color: var(--muto); }
.data-table code { font-size: .875rem; }
details.more-rows summary { cursor: pointer; font-weight: 600; color: var(--ateneo); padding: 12px 0; }

/* articolo */
.article-head { padding-block: 28px 8px; }
.article-head .h1 { margin-top: 8px; }
.article-head .sub { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--grafite); margin-top: 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-block: 12px; margin-top: 20px; border-top: 1px solid var(--filo); border-bottom: 1px solid var(--filo); font-size: .9375rem; color: var(--muto); }
.byline a { font-weight: 600; }
.note { background: var(--pietra-2); border-left: 3px solid var(--notte); padding: 12px 16px; font-size: .9375rem; color: var(--grafite); }
.figure { margin-block: 28px; }
.figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pietra); }
.figure figcaption { font-size: .875rem; color: var(--muto); margin-top: 8px; }
.prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; color: #222C38; }
.prose p + p { margin-top: 1.1em; }
.prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose li + li { margin-top: .45em; }
.prose strong { font-weight: 600; color: var(--notte); }
.source-box { margin-top: 36px; padding: 16px 0; border-top: 2px solid var(--notte); border-bottom: 1px solid var(--filo); }
.source-box strong { color: var(--notte); }

/* scheda opportunità */
.opp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 2px solid var(--notte); margin-block: 28px; }
.opp-facts div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--filo); }
.opp-facts dt { font-size: .875rem; color: var(--muto); }
.opp-facts dd { font-family: var(--serif); font-size: 1.25rem; color: var(--notte); margin-top: 2px; }
.ai-note { border: 1px solid var(--filo); padding: 16px 18px; margin-bottom: 28px; }
.ai-note h2 { font-size: 1rem; font-weight: 700; color: var(--notte); margin-bottom: 4px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 32px; }

/* documenti (privacy, cookie, note legali, pagina AI) */
.doc { font-size: 1.0625rem; line-height: 1.7; }
.doc section + section { margin-top: 36px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 1.625rem; line-height: 1.2; color: var(--notte); margin-bottom: 10px; }
.doc p + p, .doc p + .table-scroll, .doc .table-scroll + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.25em; margin-top: 10px; }
.doc strong { color: var(--notte); }
.doc-meta { font-size: .9375rem; color: var(--muto); margin-top: 10px; }

/* modulo newsletter */
.form-panel { border-top: 2px solid var(--notte); padding-top: 24px; margin-top: 28px; }
.form-panel > * + * { margin-top: 22px; }
.checks { display: grid; gap: 8px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--filo); cursor: pointer; font-size: 1rem; }
.check:hover { border-color: var(--notte); }
.check:has(input:checked) { border-color: var(--notte); background: var(--pietra-2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--grafite); }
.consent input { margin-top: 3px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { padding: 0; }

/* stato (404, 500, conferme) */
.status { padding-block: 72px 96px; }
.status__code { font-family: var(--serif); font-size: 1.125rem; color: var(--bordeaux); font-weight: 600; }
.status .h1 { margin-top: 8px; }
.status p { margin-top: 12px; }
.status .actions-row { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--notte); color: #C9D3E0; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; padding-block: 56px 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; } }
.footer-grid .footer-brand { margin-top: 0; display: block; }
.footer-logo { height: 44px; width: auto; }
.footer-grid p { margin-top: 14px; max-width: 34em; font-size: 1rem; }
.footer-grid h2 { font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-grid li + li { margin-top: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.18); }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; font-size: .875rem; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* varianti senza filetto iniziale (sotto un titolo già filettato) */
.headlines--flush { margin-top: 0; border-top: 0; }
.registry--flush, .table-scroll--flush { border-top: 0; }
.agenda--aside li:first-child { border-top: 0; }
.agenda--aside li { grid-template-columns: 3rem 1fr; gap: 12px; }
.agenda--aside .agenda__day { font-size: 1.75rem; }

/* ---------- Utilità ---------- */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.mb-m { margin-bottom: 24px; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: initial; } }

/* email protetta: forma leggibile prima che lo script la trasformi in link */
.email-protetta { white-space: nowrap; }

/* immagini esterne non caricate: il blocco si chiude */
.img-failed { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .util, .masthead nav, .menu-btn, .newsletter-band, .site-footer, .filters { display: none !important; }
  body { font-size: 12pt; }
}
.actions-row__note { align-self: center; }

/* ---------- Pubblicità (AdSense) ----------
   Massimo tre unità per pagina, solo in schede notizia e schede ateneo.
   Spazio riservato in anticipo per evitare salti di layout (CLS). */
.ad { margin-block: 40px; font-family: var(--sans); }
.ad__label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muto); margin: 0 0 6px; }
.ad__unit { display: block; min-height: 250px; background: var(--pietra-2); }
.ad--inline { padding-block: 16px; border-block: 1px solid var(--filo); }
.ad--inline .ad__unit { min-height: 200px; }
.ad--side { margin-block: 0 40px; }
.ad__placeholder { display: grid; place-content: center; text-align: center; color: var(--muto); font-size: .875rem; border: 1px dashed var(--filo); }
.ad__placeholder small { font-size: .75rem; }
.prose .ad { font-size: 1rem; line-height: 1.4; }
.aside-col { min-width: 0; }
.aside-col > aside + .aside-sticky, .aside-col > section + .aside-sticky { margin-top: 40px; }
@media (min-width: 1024px) {
  .aside-sticky { position: sticky; top: 24px; }
  .ad--side .ad__unit { min-height: 600px; }
}
.layout-aside--article { padding-top: 0; }
.layout-aside--article .article-head { padding-top: 28px; }
.layout-aside--article .aside-col { padding-top: 32px; }
.article-body { max-width: 46rem; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
