/*
Theme Name: Istituto Italo Calvino
Theme URI: https://calvino.edu.it/
Author: Istituto Italo Calvino
Description: Tema istituzionale per il sito dell'Istituto Italo Calvino — design pulito, accessibile, light/dark mode, role-based quick access.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calvino
Tags: education, accessibility-ready, custom-colors, custom-menu, dark-mode, responsive
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --blue-50:  oklch(0.97 0.02 250);
  --blue-100: oklch(0.93 0.04 250);
  --blue-200: oklch(0.85 0.08 250);
  --blue-300: oklch(0.72 0.13 250);
  --blue-500: oklch(0.55 0.18 250);
  --blue-600: oklch(0.47 0.18 250);
  --blue-700: oklch(0.38 0.15 250);
  --blue-800: oklch(0.28 0.11 250);
  --blue-900: oklch(0.20 0.07 250);

  --amber-500: oklch(0.75 0.14 75);
  --amber-100: oklch(0.95 0.05 80);
  --rose-500:  oklch(0.62 0.17 20);
  --rose-100:  oklch(0.95 0.04 25);
  --green-500: oklch(0.62 0.13 150);
  --green-100: oklch(0.94 0.05 150);

  --n-0:   oklch(1.00 0 0);
  --n-50:  oklch(0.985 0.003 80);
  --n-100: oklch(0.965 0.005 80);
  --n-150: oklch(0.94 0.006 80);
  --n-200: oklch(0.90 0.008 80);
  --n-300: oklch(0.83 0.010 80);
  --n-400: oklch(0.68 0.012 80);
  --n-500: oklch(0.55 0.013 80);
  --n-600: oklch(0.44 0.012 80);
  --n-700: oklch(0.33 0.010 80);
  --n-800: oklch(0.22 0.008 80);
  --n-900: oklch(0.15 0.006 80);
  --n-950: oklch(0.09 0.005 80);

  --bg:        var(--n-50);
  --surface:   var(--n-0);
  --surface-2: var(--n-100);
  --surface-3: var(--n-150);
  --border:    var(--n-200);
  --border-strong: var(--n-300);
  --text:      var(--n-900);
  --text-muted: var(--n-600);
  --text-subtle: var(--n-500);
  --primary:   var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-bg: var(--blue-50);
  --on-primary: #fff;

  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.04), 0 1px 1px rgba(20, 30, 50, 0.03);
  --shadow-md: 0 4px 10px -2px rgba(20, 30, 50, 0.06), 0 2px 4px -1px rgba(20, 30, 50, 0.04);
  --shadow-lg: 0 12px 28px -8px rgba(20, 30, 50, 0.12), 0 4px 8px -2px rgba(20, 30, 50, 0.06);
}

[data-theme="dark"] {
  --bg:        var(--n-950);
  --surface:   oklch(0.14 0.008 250);
  --surface-2: oklch(0.18 0.010 250);
  --surface-3: oklch(0.22 0.012 250);
  --border:    oklch(0.25 0.012 250);
  --border-strong: oklch(0.32 0.015 250);
  --text:      oklch(0.97 0.005 80);
  --text-muted: oklch(0.72 0.010 80);
  --text-subtle: oklch(0.55 0.012 80);
  --primary:   oklch(0.72 0.15 250);
  --primary-hover: oklch(0.80 0.14 250);
  --primary-bg: oklch(0.22 0.06 250);
  --on-primary: oklch(0.12 0.02 250);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   2. Base
   ============================================================ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: clip;
  touch-action: pan-y;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   3. Utility
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.grow { flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ============================================================
   5. Cards & badges
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card-hover {
  transition: border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card-flush { padding: 0; overflow: hidden; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-primary { background: var(--primary-bg); color: var(--primary); border-color: transparent; }
.badge-amber { background: var(--amber-100); color: oklch(0.45 0.12 75); border-color: transparent; }
.badge-rose { background: var(--rose-100); color: oklch(0.45 0.15 20); border-color: transparent; }
.badge-green { background: var(--green-100); color: oklch(0.40 0.10 150); border-color: transparent; }

[data-theme="dark"] .badge-amber { background: oklch(0.28 0.08 75); color: oklch(0.85 0.12 75); }
[data-theme="dark"] .badge-rose { background: oklch(0.28 0.10 20); color: oklch(0.85 0.12 20); }
[data-theme="dark"] .badge-green { background: oklch(0.25 0.06 150); color: oklch(0.80 0.11 150); }

/* ============================================================
   6. Section chrome
   ============================================================ */
.section { padding: 56px 0 8px; }
.section-tight { padding: 48px 0 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.section-head h2 { font-size: 20px; font-weight: 600; }
.section-head .link { font-size: 14px; color: var(--primary); font-weight: 500; }
.section-head .link .link-short { display: none; }
.section-head .subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   7. Topbar / header
   ============================================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  flex-wrap: nowrap;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name { font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--text); white-space: nowrap; }
.brand-name-short { display: none; }
.brand-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Mobile search overlay (visibile solo via media query mobile) */
.topbar-search { display: none; }

.topbar-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.topbar-nav a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.topbar-nav a:hover { background: var(--surface-2); text-decoration: none; }
.topbar-nav a.active { background: var(--primary-bg); color: var(--primary); }

/* Theme toggle e divisore nel drawer (visibili solo su mobile, vedi media query) */
.topbar-nav-divider { display: none; }
.topbar-nav-theme   { display: none; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn-mobile { display: none; }

/* ============================================================
   8. Alert ribbon
   ============================================================ */
.alert-bar {
  background: var(--amber-100);
  color: oklch(0.35 0.12 75);
  border-bottom: 1px solid oklch(0.85 0.08 75);
  font-size: 14px;
}
[data-theme="dark"] .alert-bar {
  background: oklch(0.25 0.06 75);
  color: oklch(0.88 0.10 75);
  border-color: oklch(0.35 0.08 75);
}
.alert-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-bar-inner .link-arrow { margin-left: auto; font-weight: 500; color: inherit; }

/* ============================================================
   9. Hero
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--blue-50), var(--bg));
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .hero {
  background: linear-gradient(180deg, oklch(0.18 0.04 250), var(--bg));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 32px 56px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-family: var(--font-serif);
}
.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 500px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-role-block { margin-top: 36px; }
.hero-role-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-visual { position: relative; }
.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 220px;
}
.hero-card-eyebrow { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.hero-card-title { font-weight: 600; font-size: 15px; }
.hero-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hero-card-link { font-size: 13px; font-weight: 500; margin-top: 8px; display: inline-block; }

/* ============================================================
   10. Role chips
   ============================================================ */
.role-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.role-chip:hover { border-color: var(--border-strong); }
.role-chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ============================================================
   11. Highlights
   ============================================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.highlight {
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top-width: 3px;
  border-top-style: solid;
  position: relative;
  overflow: hidden;
}
.highlight:hover { text-decoration: none; color: inherit; }
.highlight-blob {
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  opacity: 0.6;
}
.highlight-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.highlight-body { position: relative; z-index: 1; }
.highlight-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.highlight-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 6px;
  line-height: 1.25;
  color: var(--text);
}
.highlight-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.highlight-cta {
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.highlight-blue { border-top-color: oklch(0.55 0.16 230); }
.highlight-blue .highlight-icon,
.highlight-blue .highlight-blob { background: oklch(0.96 0.02 230); color: oklch(0.55 0.16 230); }
.highlight-blue .highlight-tag,
.highlight-blue .highlight-cta { color: oklch(0.55 0.16 230); }

.highlight-rose { border-top-color: oklch(0.55 0.15 30); }
.highlight-rose .highlight-icon,
.highlight-rose .highlight-blob { background: oklch(0.96 0.02 30); color: oklch(0.55 0.15 30); }
.highlight-rose .highlight-tag,
.highlight-rose .highlight-cta { color: oklch(0.55 0.15 30); }

.highlight-green { border-top-color: oklch(0.55 0.15 150); }
.highlight-green .highlight-icon,
.highlight-green .highlight-blob { background: oklch(0.96 0.03 150); color: oklch(0.55 0.15 150); }
.highlight-green .highlight-tag,
.highlight-green .highlight-cta { color: oklch(0.55 0.15 150); }

[data-theme="dark"] .highlight-blue .highlight-icon,
[data-theme="dark"] .highlight-blue .highlight-blob { background: oklch(0.22 0.06 230); }
[data-theme="dark"] .highlight-rose .highlight-icon,
[data-theme="dark"] .highlight-rose .highlight-blob { background: oklch(0.22 0.06 30); }
[data-theme="dark"] .highlight-green .highlight-icon,
[data-theme="dark"] .highlight-green .highlight-blob { background: oklch(0.22 0.05 150); }

/* ============================================================
   12. Quick access tiles
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-tile {
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.quick-tile:hover { text-decoration: none; color: inherit; }
.quick-tile-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.quick-tile-body { min-width: 0; flex: 1; }
.quick-tile-label { font-weight: 600; font-size: 15px; }
.quick-tile-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.quick-tile-arrow { color: var(--text-subtle); }

/* ============================================================
   13. News
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.news-card:hover { text-decoration: none; color: inherit; }
.news-image {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.news-body { padding: 18px; }
.news-meta { display: flex; gap: 8px; align-items: center; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-title {
  font-weight: 600;
  font-size: 17px;
  margin-top: 10px;
  line-height: 1.35;
  font-family: var(--font-serif);
  color: var(--text);
}
.news-link { margin-top: 12px; font-size: 14px; color: var(--primary); font-weight: 500; }

/* ============================================================
   14. Circolari (full-width list with category labels)
   ============================================================ */
.circ-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.circ-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.circ-tab .count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.circ-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.circ-tab.active .count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.circ-list { padding: 0; overflow: hidden; }
.circ-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.circ-item:last-child { border-bottom: none; }
.circ-item:hover { background: var(--surface-2); text-decoration: none; color: inherit; }
.circ-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.circ-item-body { min-width: 0; flex: 1; }
.circ-item-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.circ-item-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.circ-item-sep { font-size: 12px; color: var(--text-subtle); }
.circ-item-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.circ-new {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: oklch(0.55 0.18 25);
  color: #fff;
}
.circ-item-title { font-weight: 500; font-size: 15px; line-height: 1.4; }

.circ-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.circ-cat .dot { width: 6px; height: 6px; border-radius: 50%; }
.circ-cat-docenti  { background: oklch(0.94 0.04 250); color: oklch(0.40 0.14 250); }
.circ-cat-docenti  .dot { background: var(--primary); }
.circ-cat-studenti { background: oklch(0.95 0.06 75);  color: oklch(0.42 0.14 60); }
.circ-cat-studenti .dot { background: oklch(0.70 0.16 60); }
.circ-cat-altro    { background: oklch(0.94 0 0);      color: oklch(0.38 0 0); }
.circ-cat-altro    .dot { background: oklch(0.65 0 0); }

[data-theme="dark"] .circ-cat-docenti  { background: oklch(0.25 0.07 250); color: oklch(0.85 0.12 250); }
[data-theme="dark"] .circ-cat-studenti { background: oklch(0.25 0.07 60);  color: oklch(0.85 0.12 60); }
[data-theme="dark"] .circ-cat-altro    { background: oklch(0.25 0 0);      color: oklch(0.85 0 0); }

/* ============================================================
   14b. Pagina Notizie (notizie.html)
   ============================================================ */
.news-page { padding: 8px 32px 64px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb-sep { opacity: 0.6; color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

.page-title-block {
  display: flex;
  align-items: end;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-title-text { flex: 1; min-width: 0; }
.page-title-block h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-title-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 640px;
  line-height: 1.5;
}
.page-title-action { flex-shrink: 0; }

.news-featured {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 32px;
}
.news-featured:hover { text-decoration: none; color: inherit; }
.news-featured-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.news-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured-eyebrow {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 12px;
}
.news-featured-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
.news-featured-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  margin: 16px 0 0;
  line-height: 1.55;
}
.news-featured-meta {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.news-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.filter-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.filter-chip:hover { background: var(--surface-2); }
.filter-chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.news-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.news-sort-label { font-size: 13px; color: var(--text-muted); }
.news-sort {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card-page {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.news-card-page:hover { text-decoration: none; color: inherit; }
.news-card-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.news-card-body { padding: 18px; }
.news-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.news-card-meta .news-date { font-size: 12px; color: var(--text-muted); }
.news-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin: 12px 0 0;
  letter-spacing: -0.015em;
  color: var(--text);
}

.news-loadmore {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .news-page-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-body { padding: 24px; }
  .news-featured-title { font-size: 26px; }
}
@media (max-width: 720px) {
  .news-page { padding: 4px 16px 48px; }
  .page-title-block {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .page-title-block h1 { font-size: 30px; }
  .news-filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .news-sort-wrap { width: 100%; }
  .news-sort { flex: 1; }
  .news-page-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   14c. Pagina Contatti (contatti.html)
   ============================================================ */
.contacts-page { padding: 8px 32px 64px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.contact-info-card { padding: 24px; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.contact-info-eyebrow {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-info-primary {
  font-size: 17px;
  font-weight: 600;
  margin-top: 6px;
  word-break: break-word;
}
.contact-info-secondary {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-word;
}
.contact-info-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}

.contacts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.offices-card { padding: 0; overflow: hidden; }
.offices-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.office-row {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}
.office-row:last-child { border-bottom: none; }
.office-name > div:first-child { font-weight: 600; font-size: 14px; }
.office-name .office-person {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.office-email { font-size: 13px; word-break: break-word; }
.office-hours { font-size: 12px; color: var(--text-muted); }

.contacts-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-card { padding: 0; overflow: hidden; }
.map-canvas {
  height: 240px;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}
.map-canvas iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
[data-theme="dark"] .map-canvas iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.6); }

.map-body { padding: 16px; }
.map-title { font-weight: 600; font-size: 14px; }
.map-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.map-body .btn { margin-top: 12px; }

.emergency-card {
  background: var(--rose-100);
  border-color: transparent;
}
[data-theme="dark"] .emergency-card { background: oklch(0.25 0.07 20); }
.emergency-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: oklch(0.35 0.15 20);
}
[data-theme="dark"] .emergency-header { color: oklch(0.85 0.12 20); }
.emergency-body {
  font-size: 13px;
  color: oklch(0.35 0.12 20);
  line-height: 1.6;
}
[data-theme="dark"] .emergency-body { color: oklch(0.80 0.10 20); }

.contact-form-card { padding: 32px; margin-top: 32px; }
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.contact-form-text h2 {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.contact-form-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.6;
}
.contact-form { display: grid; gap: 12px; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label > span {
  font-size: 12px;
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: 4px; }

@media (max-width: 960px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .contacts-row { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .contacts-page { padding: 4px 16px 48px; }
  .office-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
  }
  .offices-header { padding: 14px 18px; }
  .contact-form-card { padding: 24px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   14d. Pagina Orario (orario.html)
   ============================================================ */
.orario-page { padding: 8px 32px 64px; }

.action-group { display: inline-flex; gap: 8px; }

.class-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.class-bar-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.class-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.class-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.class-chip:hover { background: var(--surface-2); }
.class-chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.class-bar-filters {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

/* Timetable card */
.tt-card { padding: 0; overflow: hidden; }
.tt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tt-grid {
  display: grid;
  grid-template-columns: 80px repeat(6, minmax(110px, 1fr));
  min-width: 760px;
}
.tt-corner {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.tt-day-header {
  padding: 14px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.tt-hour-cell {
  padding: 10px 12px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-muted);
}
.tt-hour-label { font-weight: 600; color: var(--text); }
.tt-hour-time { margin-top: 2px; }
.tt-cell {
  padding: 6px;
  border-bottom: 1px solid var(--border);
}
.tt-cell.tt-break { background: var(--surface-2); }
.tt-cell.tt-empty { background: var(--surface-2); }
.tt-grid > .tt-cell:last-child,
.tt-grid > .tt-hour-cell:last-of-type { /* drop last row's bottom border via specific selector below */ }

.break-pill {
  height: 100%;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text-subtle);
  min-height: 40px;
}

.subj {
  padding: 10px;
  border-radius: 6px;
  height: 100%;
  min-height: 56px;
}
.subj-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.subj-room { font-size: 11px; opacity: 0.85; margin-top: 2px; line-height: 1.2; }

.subj-bl { background: oklch(0.55 0.18 250); color: #fff; }
.subj-ro { background: oklch(0.62 0.17 25);  color: #fff; }
.subj-am { background: oklch(0.72 0.14 75);  color: #3a2810; }
.subj-gr { background: oklch(0.55 0.13 150); color: #fff; }
.subj-tl { background: oklch(0.58 0.14 200); color: #fff; }
.subj-pu { background: oklch(0.55 0.17 300); color: #fff; }
.subj-or { background: oklch(0.65 0.16 50);  color: #3a2810; }
.subj-pk { background: oklch(0.68 0.15 340); color: #fff; }
.subj-cy { background: oklch(0.62 0.13 220); color: #fff; }
.subj-gy { background: oklch(0.55 0.04 250); color: #fff; }
.subj-pe { background: oklch(0.78 0.05 60);  color: oklch(0.35 0.10 60); }

.orario-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.legend-title { font-weight: 600; margin-bottom: 12px; }
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 13px;
}
.legend-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.legend-chip {
  width: 64px;
  padding: 3px 0;
  text-align: center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.variations-card {
  background: var(--amber-100);
  border-color: transparent;
}
[data-theme="dark"] .variations-card { background: oklch(0.25 0.07 75); }
.variations-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: oklch(0.35 0.12 75);
}
[data-theme="dark"] .variations-header { color: oklch(0.85 0.12 75); }
.variations-body {
  font-size: 13px;
  color: oklch(0.35 0.10 75);
  line-height: 1.6;
}
[data-theme="dark"] .variations-body { color: oklch(0.78 0.09 75); }

@media (max-width: 960px) {
  .orario-bottom { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .orario-page { padding: 4px 16px 48px; }
  .class-bar { gap: 10px; }
  .class-bar-filters { margin-left: 0; width: 100%; }
  .tt-day-header { padding: 10px 6px; font-size: 11px; }
  .tt-hour-cell { padding: 8px; }
  .subj { padding: 8px; min-height: 48px; }
}

/* ============================================================
   14e. Pagina Indirizzo (informatica.html)
   ============================================================ */
.indirizzo-page { padding: 8px 32px 64px; }

.indirizzo-section { margin-top: 56px; }
.indirizzo-section:first-of-type { margin-top: 24px; }
.indirizzo-section h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.indirizzo-section .section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.indirizzo-section .section-eyebrow {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* Hero indirizzo */
.indirizzo-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
}
.indirizzo-hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 18px;
}
.indirizzo-hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}
.indirizzo-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.indirizzo-hero-image {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.indirizzo-hero-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* Stats strip */
.indirizzo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.stat-card .stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Articolazioni split */
.articolazioni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.articolazione {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.articolazione-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.articolazione h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.articolazione-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.articolazione-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.articolazione-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  align-items: flex-start;
}
.articolazione-list li::before {
  content: "→";
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
.articolazione-inf .articolazione-icon {
  background: var(--primary-bg);
  color: var(--primary);
}
.articolazione-tlc .articolazione-icon {
  background: oklch(0.93 0.05 200);
  color: oklch(0.42 0.14 200);
}
[data-theme="dark"] .articolazione-tlc .articolazione-icon {
  background: oklch(0.25 0.07 200);
  color: oklch(0.85 0.12 200);
}

/* Modern profile (AI/Cyber/Cloud/IoT) */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.modern-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.modern-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--primary-bg);
  color: var(--primary);
}
.modern-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.modern-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Quadro orario summary line */
.orario-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.orario-summary strong { color: var(--text); font-weight: 600; }

/* Tabella materie × 5 anni */
.quadro-card { padding: 0; overflow: hidden; }
.quadro-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.quadro-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  width: 60px;
}
.quadro-table thead th.quadro-subj-col {
  text-align: left;
  padding-left: 24px;
  width: auto;
}
.quadro-table tbody td,
.quadro-table tfoot td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 500;
}
.quadro-table tbody td.quadro-subj,
.quadro-table tfoot td.quadro-subj {
  text-align: left;
  padding-left: 24px;
  font-weight: 500;
  color: var(--text);
}
.quadro-lab {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.quadro-empty {
  color: var(--text-subtle);
  font-weight: 400;
}
.quadro-section-row td {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .quadro-section-row td { background: oklch(0.22 0.06 250); }

.quadro-table tbody tr.quadro-highlight td:not(.quadro-subj) {
  background: oklch(0.97 0.02 250);
  color: var(--primary);
  font-weight: 600;
}
[data-theme="dark"] .quadro-table tbody tr.quadro-highlight td:not(.quadro-subj) {
  background: oklch(0.22 0.04 250);
}

.quadro-total-row td {
  background: var(--surface-2);
  font-weight: 700 !important;
  font-size: 14px;
  border-top: 2px solid var(--border-strong);
  border-bottom: none;
  padding: 14px 10px !important;
}
.quadro-total-row td.quadro-subj {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.orario-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.orario-meta-item {
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.orario-meta-item strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

@media (max-width: 960px) {
  .orario-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .quadro-table thead th { padding: 10px 6px; }
  .quadro-table tbody td,
  .quadro-table tfoot td { padding: 10px 6px; }
  .quadro-table tbody td.quadro-subj,
  .quadro-table tfoot td.quadro-subj { padding-left: 16px; font-size: 13px; }
  .quadro-section-row td { padding: 8px 16px !important; }
  .orario-meta { grid-template-columns: 1fr; }
}

/* Lab grid */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lab-card {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lab-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--primary);
  flex-shrink: 0;
}
.lab-card-body { min-width: 0; }
.lab-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
.lab-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Cert grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert-card {
  padding: 24px;
  text-align: left;
}
.cert-card-name {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cert-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.cert-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Career cards (Dopo il diploma) */
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.career-card { padding: 28px; }
.career-card-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.career-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.career-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Final CTA */
.indirizzo-cta {
  background: var(--primary-bg);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
}
[data-theme="dark"] .indirizzo-cta { background: oklch(0.22 0.06 250); }
.indirizzo-cta h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.indirizzo-cta p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.indirizzo-cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 960px) {
  .indirizzo-hero { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 32px; }
  .indirizzo-hero h1 { font-size: 36px; }
  .indirizzo-stats { grid-template-columns: repeat(2, 1fr); }
  .articolazioni-grid { grid-template-columns: 1fr; }
  .modern-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .indirizzo-page { padding: 4px 16px 48px; }
  .indirizzo-section { margin-top: 40px; }
  .indirizzo-section h2 { font-size: 24px; }
  .indirizzo-hero h1 { font-size: 30px; }
  .indirizzo-hero-lead { font-size: 15px; }
  .stat-card { padding: 16px 18px; }
  .stat-card .stat-num { font-size: 26px; }
  .articolazione { padding: 22px; }
  .modern-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px;
  }
  .modern-icon { width: 44px; height: 44px; }
  .lab-grid { grid-template-columns: 1fr; }
  .indirizzo-cta { padding: 32px 20px; }
  .indirizzo-cta h2 { font-size: 24px; }
}

/* ============================================================
   15. Timetable / appointments
   ============================================================ */
.timetable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tt-card { padding: 0; overflow: hidden; }
.tt-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tt-header .icon { color: var(--primary); }
.tt-header-title { font-weight: 600; }
.tt-header-meta { margin-left: auto; font-size: 13px; }

.tt-row {
  display: flex;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tt-row:last-child { border-bottom: none; }
.tt-row.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.tt-row-label { width: 80px; }
.tt-row-time { font-variant-numeric: tabular-nums; }
.tt-row-now { margin-left: auto; font-size: 12px; }

.appt-row {
  display: flex;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.appt-row:last-child { border-bottom: none; }
.appt-date {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  text-align: center;
}
.appt-date-d {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.appt-date-m {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.appt-body { flex: 1; min-width: 0; }
.appt-title { font-weight: 500; font-size: 14px; }
.appt-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   16. Offer / tracks
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.offer-card {
  padding: 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.offer-card:hover { text-decoration: none; color: inherit; }
.offer-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.offer-icon-blue  { background: oklch(0.55 0.15 230); }
.offer-icon-rose  { background: oklch(0.55 0.15 30); }
.offer-icon-green { background: oklch(0.55 0.15 150); }
.offer-name {
  font-weight: 600;
  font-size: 18px;
  font-family: var(--font-serif);
}
.offer-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.offer-cta { margin-top: 18px; font-size: 13px; color: var(--primary); font-weight: 500; }

/* ============================================================
   17. Projects
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.project-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title { font-weight: 600; font-size: 16px; margin-top: 10px; }
.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  flex: 1;
}

/* ============================================================
   18. Footer
   ============================================================ */
.site-footer {
  background: var(--blue-900);
  color: oklch(0.85 0.04 250);
  padding: 48px 0 28px;
  margin-top: 64px;
}
[data-theme="dark"] .site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-stats {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid oklch(0.30 0.08 250);
}
[data-theme="dark"] .footer-stats { border-color: var(--border); }
.footer-stat .n {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  font-family: var(--font-serif);
}
.footer-stat .label {
  font-size: 13px;
  color: oklch(0.75 0.05 250);
  margin-top: 4px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
}
.footer-cols h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  color: oklch(0.82 0.04 250);
  font-size: 13px;
  padding: 3px 0;
  text-decoration: none;
}
.footer-cols a:hover { color: #fff; }
.footer-about {
  font-size: 13px;
  line-height: 1.6;
  color: oklch(0.80 0.04 250);
  max-width: 320px;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid oklch(0.30 0.08 250);
  font-size: 12px;
  color: oklch(0.70 0.04 250);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
[data-theme="dark"] .footer-bottom { border-color: var(--border); }

/* ============================================================
   19. Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 420px; }
  .highlights-grid,
  .quick-grid,
  .news-grid,
  .offer-grid,
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .timetable-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Show hamburger, hide secondary icons; brand subtitle hidden to save space */
  .icon-btn-desktop { display: none; }
  .icon-btn-mobile { display: grid; }
  .brand-sub { display: none; }

  /* Nome istituto: nascondiamo la versione completa, mostriamo l'abbreviata */
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }

  /* Riallineamento: hamburger primo a sinistra, brand subito dopo, actions spinte a destra */
  .topbar-actions { margin-left: auto; }

  /* Nav becomes a dropdown panel under the topbar */
  .topbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .topbar-nav.is-open { display: flex; }
  .topbar-nav a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--r-sm);
  }

  .topbar-nav-divider {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 8px 4px;
  }
  .topbar-nav-theme {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--r-sm);
    cursor: pointer;
    text-align: left;
  }
  .topbar-nav-theme:hover { background: var(--surface-2); }
  .topbar-nav-theme-icon {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    color: var(--text-muted);
  }

  /* ---- Search overlay mobile ----
     Si sovrappone alla riga della topbar, slide da sinistra,
     mentre gli altri elementi (burger / brand / actions) sfumano via */
  .topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    inset: 0;
    padding: 12px 16px;
    background: var(--surface);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(.4,.2,.2,1), opacity 0.18s ease;
    z-index: 2;
  }
  .topbar-search-icon { color: var(--text-muted); flex-shrink: 0; }
  .topbar-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    padding: 0 12px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
  }
  .topbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
  }
  .topbar-search-close { flex-shrink: 0; }

  /* Stato aperto: slide-in del form, fade-out degli altri */
  .topbar.is-search-open .topbar-search {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar.is-search-open .topbar-burger,
  .topbar.is-search-open .brand,
  .topbar.is-search-open .topbar-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
}

@media (max-width: 720px) {
  .topbar-row { padding: 12px 16px; gap: 12px; }
  .container { padding: 0 16px; }
  .alert-bar-inner { padding: 10px 16px; flex-wrap: wrap; }
  .alert-bar-inner .link-arrow { margin-left: 0; }
  .hero-inner { padding: 32px 16px 40px; }
  .hero h1 { font-size: 34px; }
  .site-footer-inner { padding: 0 16px; }
  .footer-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .highlights-grid,
  .quick-grid,
  .news-grid,
  .offer-grid,
  .projects-grid { grid-template-columns: 1fr; }

  /* Section head — link a fianco del titolo, testo accorciato a "Tutto →" */
  .section-head { gap: 12px; }
  .section-head > :first-child { min-width: 0; }
  .section-head .link { flex-shrink: 0; white-space: nowrap; }
  .section-head .link .link-full  { display: none; }
  .section-head .link .link-short { display: inline; }

  /* Circolari — mobile: tab scrollabili, layout item compatto su due righe */
  .circ-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 0 16px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .circ-tabs::-webkit-scrollbar { display: none; }
  .circ-tab { flex-shrink: 0; }

  .circ-item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 12px;
    padding: 14px 16px;
  }
  .circ-item-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
  }
  .circ-item-body { flex: 1 1 calc(100% - 48px); }
  .circ-item-meta { gap: 6px 10px; margin-bottom: 4px; }
  .circ-item-title { font-size: 14.5px; line-height: 1.35; }

  .circ-cat {
    order: 3;
    margin: 6px 0 0 48px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .circ-item .quick-tile-arrow { display: none; }
}

/* ============================================================
   N. Pagina articolo (notizia.html)
   ============================================================ */
.article-page {
  padding-top: 28px;
  padding-bottom: 80px;
}

/* Layout a due colonne: contenuto + sidebar sticky */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
  margin-top: 24px;
}
.article-main { min-width: 0; max-width: 740px; }

.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.sidebar-card-title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* Sommario (TOC) */
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc li { margin: 0; padding: 0; }
.toc li::before { content: none; }
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .12s, background .12s, border-color .12s;
}
.toc a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.toc a.is-active {
  color: var(--primary);
  background: var(--primary-bg);
  border-left-color: var(--primary);
  font-weight: 600;
}
.toc .toc-h3 a { padding-left: 24px; font-size: 13px; }

/* Sidebar share */
.sidebar-share { display: flex; flex-direction: column; gap: 8px; }
.sidebar-share .btn { justify-content: center; width: 100%; }

/* Sidebar tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Newsletter mini */
.sidebar-newsletter {
  background: var(--primary-bg);
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
}
.sidebar-newsletter .sidebar-card-title { color: var(--primary); }
.sidebar-newsletter-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 12px;
}

/* --- Header articolo --- */
.article-header { margin: 18px 0 28px; }
.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-kicker-sep { color: var(--text-subtle); }
.article-section { font-weight: 500; }
.article-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0 18px;
}
.article-deck {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 64ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta-author { display: flex; align-items: center; gap: 12px; }
.article-meta-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.article-meta-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.article-meta-role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.article-meta-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.article-meta-sep { color: var(--text-subtle); }

/* --- Cover --- */
.article-cover { margin: 0 0 32px; }
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-cover-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 4px 0;
  line-height: 1.45;
}

/* --- Corpo articolo: tipografia editoriale --- */
.article-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.article-body > * + * { margin-top: 1.2em; }
.article-body p { margin: 0; }
.article-body p strong { font-weight: 600; color: var(--text); }
.article-body p em { font-style: italic; }
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--primary-hover); }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.article-body h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
}
.article-body pre {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}
.article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}
.article-body small { font-size: 0.85em; color: var(--text-muted); }
.article-body kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--text);
}

/* --- Liste --- */
.article-body ul,
.article-body ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-body li { margin: 8px 0; line-height: 1.6; }
.article-body ul li {
  position: relative;
  padding-left: 28px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.article-body ol { counter-reset: list; }
.article-body ol li {
  position: relative;
  padding-left: 38px;
  counter-increment: list;
  min-height: 24px;
}
.article-body ol li::before {
  content: counter(list);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin-top: 6px;
  margin-bottom: 0;
}
.article-body ul ul li::before { background: var(--text-subtle); }

/* --- Citazione --- */
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: var(--r-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}
.article-body blockquote p { margin: 0; }
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--text-muted);
}

/* --- Figura inline --- */
.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; border-radius: var(--r-md); }
.article-body figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.45;
  font-family: var(--font-sans);
}

/* --- Tabella --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 24px 0;
}
.article-body th,
.article-body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.article-body thead th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-body tbody tr:hover { background: var(--surface-2); }

/* --- Callout / nota informativa --- */
.article-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--primary-bg);
  border: 1px solid color-mix(in oklch, var(--primary) 25%, var(--border));
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}
.article-callout-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.article-callout-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.article-callout-body { color: var(--text-muted); }
.article-callout-body strong { color: var(--text); font-weight: 600; }

/* --- File allegati --- */
.attachments { margin: 36px 0 0; }
.attachments-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.attachments-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .15s;
  font-family: var(--font-sans);
}
.attachment:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.attachment-icon {
  width: 40px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.attachment-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(225deg, var(--surface) 0%, var(--surface) 50%, transparent 50%);
  border-bottom-left-radius: 3px;
}
.attachment-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-bottom-left-radius: 3px;
}
.attachment-icon-pdf { background: oklch(0.55 0.18 25); }
.attachment-icon-doc { background: oklch(0.50 0.16 250); }
.attachment-icon-other { background: var(--n-500); }
.attachment-body {
  flex: 1;
  min-width: 0;
}
.attachment-name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--text);
}
.attachment-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}
.attachment-meta-sep { color: var(--text-subtle); margin: 0 4px; }
.attachment-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}
.attachment:hover .attachment-action { color: var(--primary); }

/* --- Tag (riusato in sidebar) --- */
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: border-color .15s, background .15s, color .15s;
}
.article-tag:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* --- Navigazione articolo prev/next --- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.article-nav-card {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
}
.article-nav-card:hover { text-decoration: none; }
.article-nav-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.article-nav-card[data-dir="next"] { text-align: right; }
.article-nav-card[data-dir="next"] .article-nav-eyebrow { justify-content: flex-end; }
.article-nav-title {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--text);
}

/* --- Articoli correlati --- */
.article-related { margin-top: 64px; }
.article-related-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  line-height: 1.2;
}

/* Tablet: la sidebar passa sotto il contenuto */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-main { max-width: none; }
  .article-sidebar {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .article-sidebar .sidebar-card { flex: 1 1 280px; }
  /* Su tablet nascondiamo il sommario, perde valore senza lo sticky */
  .article-sidebar .sidebar-card-toc { display: none; }
}

/* Mobile */
@media (max-width: 720px) {
  .article-page { padding-top: 16px; padding-bottom: 60px; }
  .article-title { font-size: 30px; }
  .article-deck { font-size: 17px; }
  .article-body { font-size: 17px; line-height: 1.65; }
  .article-body h2 { font-size: 23px; }
  .article-body h3 { font-size: 19px; }
  .article-body blockquote { font-size: 17px; padding: 16px 18px; }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .article-sidebar { flex-direction: column; }
  .article-sidebar .sidebar-card { flex: 1 1 auto; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-card[data-dir="next"] { text-align: left; }
  .article-nav-card[data-dir="next"] .article-nav-eyebrow { justify-content: flex-start; }
  .attachment { padding: 12px 14px; gap: 12px; }
  .attachment-action-label { display: none; }
}

/* ============================================================
   N+1. Pagina evento (evento-panarese.html)
   ============================================================ */
.event-page {
  --accent:        oklch(0.75 0.14 75);
  --accent-soft:   oklch(0.93 0.06 80);
  --accent-strong: oklch(0.55 0.14 70);
  --accent-on:     oklch(0.20 0.07 70);
}
[data-theme="dark"] .event-page {
  --accent:        oklch(0.80 0.14 80);
  --accent-soft:   oklch(0.24 0.05 75);
  --accent-strong: oklch(0.85 0.13 80);
  --accent-on:     oklch(0.12 0.03 70);
}

/* Bottone large condiviso */
.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
  border-radius: var(--r-md);
}
.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.2); }

/* --- Hero full-bleed --- */
.event-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.event-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
}
.event-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, transparent 80%),
    radial-gradient(circle at 80% 20%, oklch(0.30 0.10 70 / 0.40), transparent 60%);
  z-index: -1;
}
.event-hero-inner {
  padding: 100px 32px 80px;
  max-width: 1200px;
  width: 100%;
}
.event-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.event-hero-badge-edition { color: #fff; }
.event-hero-badge-sep { color: rgba(255, 255, 255, 0.4); }
.event-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.event-hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.event-hero-deck {
  font-size: 20px;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
}
.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.event-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.event-hero-meta-sep { color: rgba(255, 255, 255, 0.35); }
.event-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Stats strip --- */
.event-stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.event-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.event-stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-stat:last-child { border-right: 0; }
.event-stat-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.event-stat-num span {
  font-size: 0.6em;
  color: var(--accent);
  margin-left: 2px;
}
.event-stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}
.event-stat-countdown { background: var(--accent-soft); }
.event-stat-countdown .event-stat-num { color: var(--accent-strong); }

/* --- Sezione base --- */
.event-section { padding: 80px 0; }
.event-section-alt { background: var(--surface-2); }
.event-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.event-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.event-section-head { margin-bottom: 44px; max-width: 720px; }
.event-section-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 4px 0 0;
  max-width: 60ch;
}
.event-section-lead code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 1px 6px;
  border-radius: 4px;
}

/* --- About --- */
.event-about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.event-about-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}
.event-about-text p strong { font-weight: 600; }
.event-quote {
  margin: 28px 0 0;
  padding: 24px 26px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  position: relative;
}
.event-quote-mark {
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 8px;
}
.event-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text);
}
.event-quote cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
}
.event-about-figure {
  margin: 0;
  position: sticky;
  top: 88px;
}
.event-about-figure img {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.event-about-figure figcaption {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* --- Categorie --- */
.event-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.event-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.event-category:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.event-category-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.event-category-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.event-category h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.event-category p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* --- Programma --- */
.event-program-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}
.event-program-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  transition: background .15s, color .15s;
}
.event-program-tab:hover { color: var(--text); background: var(--surface-2); }
.event-program-tab.is-active {
  background: var(--accent);
  color: var(--accent-on);
}
.event-program-tab-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.event-program-tab-date { font-size: 15px; font-weight: 600; }

.event-program-day { display: none; }
.event-program-day.is-active {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.event-program-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.event-program-item:first-child { border-top: 0; }
.event-program-time {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
}
.event-program-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.event-program-tag-gold { background: var(--accent); color: var(--accent-on); }
.event-program-content h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 6px;
}
.event-program-content p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 8px;
}
.event-program-where {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-subtle);
}
.event-program-content-highlight {
  position: relative;
}
.event-program-content-highlight::before {
  content: '';
  position: absolute;
  inset: -22px -24px;
  background: var(--accent-soft);
  z-index: -1;
}

/* --- Galleria mosaico --- */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.event-gallery-item {
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.event-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity .2s;
}
.event-gallery-item:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}
.event-gallery-item:hover::after { opacity: 1; }
.event-gallery-tall { grid-row: span 2; }
.event-gallery-wide { grid-column: span 2; }
.event-gallery-cta {
  margin-top: 20px;
  text-align: right;
}

/* --- Video & progetti --- */
.event-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event-video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.event-video-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.event-video-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}
.event-video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform .2s;
}
.event-video-card:hover .event-video-play { transform: translate(-50%, -50%) scale(1.08); }
.event-video-duration {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.event-video-body { padding: 18px 20px 22px; }
.event-video-eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.event-video-body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 6px;
}
.event-video-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Albo d'oro: sezione scura --- */
.event-section-dark {
  --bg:        oklch(0.14 0.012 250);
  --surface:   oklch(0.18 0.012 250);
  --surface-2: oklch(0.22 0.014 250);
  --border:    oklch(0.28 0.014 250);
  --border-strong: oklch(0.36 0.018 250);
  --text:      oklch(0.97 0.005 80);
  --text-muted: oklch(0.72 0.010 80);
  --text-subtle: oklch(0.58 0.012 80);
  --accent:        oklch(0.80 0.14 80);
  --accent-soft:   oklch(0.24 0.05 75);
  --accent-strong: oklch(0.85 0.13 80);
  --accent-on:     oklch(0.12 0.03 70);
  background: var(--bg);
  color: var(--text);
}
.event-section-dark .event-eyebrow { color: var(--accent); }
.event-section-dark .event-section-lead { color: var(--text-muted); }
.event-honors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.event-honor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.event-honor-year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.event-honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-honor-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  align-items: baseline;
}
.event-honor-list li:first-child { border-top: 0; padding-top: 0; }
.event-honor-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-honor-project {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.event-honor-school {
  display: block;
  grid-column: 2;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.event-honor-collapsed { background: transparent; }
.event-honor-collapsed .event-honor-archive {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.link-on-dark {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 14px;
  text-decoration: none;
}
.link-on-dark:hover { color: #fff; text-decoration: none; }

/* --- Giuria --- */
.event-jury-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event-jury-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s, transform .15s;
}
.event-jury-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.event-jury-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  border: 2px solid var(--accent-soft);
}
.event-jury-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.event-jury-role {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Partner --- */
.event-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.event-partner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: color .15s, border-color .15s;
}
.event-partner:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* --- FAQ --- */
.event-faq-wrap { max-width: 820px; }
.event-faq {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.event-faq-item { border-top: 1px solid var(--border); }
.event-faq-item:first-child { border-top: 0; }
.event-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s;
}
.event-faq-item summary::-webkit-details-marker { display: none; }
.event-faq-item summary:hover { background: var(--surface-2); }
.event-faq-marker {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  position: relative;
  flex-shrink: 0;
  transition: transform .2s, background .15s;
}
.event-faq-marker::before,
.event-faq-marker::after {
  content: '';
  position: absolute;
  background: currentColor;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.event-faq-marker::before { width: 10px; height: 2px; }
.event-faq-marker::after  { width: 2px; height: 10px; transition: transform .2s; }
.event-faq-item[open] .event-faq-marker {
  background: var(--accent);
  color: var(--accent-on);
}
.event-faq-item[open] .event-faq-marker::after { transform: translate(-50%, -50%) scaleY(0); }
.event-faq-body {
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.event-faq-body p { margin: 0; }
.event-faq-body strong { color: var(--text); font-weight: 600; }

/* --- CTA finale --- */
.event-cta {
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.event-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.event-eyebrow-on-accent { color: var(--accent-strong); }
.event-cta-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 6px 0 24px;
  max-width: 56ch;
}
.event-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.event-cta-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-cta-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.event-cta-info-row svg { color: var(--accent-strong); flex-shrink: 0; margin-top: 2px; }
.event-cta-info-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.event-cta-info-value {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.45;
}
.event-cta-info-value a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.event-cta-info-value a:hover { color: var(--accent-strong); }

/* --- Banner promo (riusato in notizie.html e index.html) --- */
.event-banner {
  --eb-accent: oklch(0.80 0.14 80);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 0% 100%, oklch(0.30 0.10 75) 0%, transparent 50%),
    linear-gradient(135deg, oklch(0.18 0.07 70) 0%, oklch(0.22 0.05 250) 100%);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .2s, box-shadow .2s;
}
.event-banner:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.event-banner-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
}
.event-banner-eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--eb-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.event-banner-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 4px 0 0;
}
.event-banner-title em { font-style: italic; color: var(--eb-accent); font-weight: 500; }
.event-banner-deck {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 6px 0 0;
  max-width: 38ch;
}
.event-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
}
.event-banner-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--eb-accent);
  margin-top: 14px;
  transition: gap .2s, color .15s;
}
.event-banner:hover .event-banner-cta { gap: 10px; color: #fff; }
.event-banner-image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.event-banner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, oklch(0.18 0.07 70) 0%, transparent 30%);
  pointer-events: none;
}

/* Variante compatta usata in home */
.event-banner-compact .event-banner-body {
  padding: 28px 32px;
  min-height: 180px;
}
.event-banner-compact .event-banner-title { font-size: 30px; }
.event-banner-compact .event-banner-deck { font-size: 14px; }

/* Sezione di chiusura pagina (più aria sotto, prima del footer) */
.section-end { padding: 64px 0 88px; }
@media (max-width: 720px) {
  .section-end { padding: 48px 0 64px; }
}

@media (max-width: 720px) {
  .event-banner { grid-template-columns: 1fr; }
  .event-banner-image { aspect-ratio: 16 / 9; order: -1; }
  .event-banner-image::before {
    background: linear-gradient(180deg, transparent 50%, oklch(0.18 0.07 70) 100%);
  }
  .event-banner-body { padding: 24px 22px; min-height: 0; }
  .event-banner-title { font-size: 30px; }
}

/* --- Tablet (≤ 1024) --- */
@media (max-width: 1024px) {
  .event-hero { min-height: 480px; }
  .event-hero-inner { padding: 80px 32px 60px; }
  .event-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .event-stat:nth-child(2) { border-right: 0; }
  .event-stat:nth-child(1), .event-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .event-about { grid-template-columns: 1fr; gap: 40px; }
  .event-about-figure { position: static; max-width: 480px; }
  .event-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .event-jury-grid { grid-template-columns: repeat(2, 1fr); }
  .event-videos-grid { grid-template-columns: repeat(2, 1fr); }
  .event-videos-grid > :last-child { grid-column: span 2; max-width: 50%; }
  .event-honors { grid-template-columns: 1fr; }
  .event-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .event-partners-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mobile (≤ 720) --- */
@media (max-width: 720px) {
  .event-hero { min-height: 460px; }
  .event-hero-inner { padding: 64px 16px 48px; }
  .event-hero-deck { font-size: 17px; }
  .event-hero-meta { font-size: 13px; gap: 8px 12px; }
  .event-hero-meta-sep { display: none; }
  .event-section { padding: 56px 0; }
  .event-h2 { font-size: 28px; }
  .event-section-head { margin-bottom: 28px; }
  .event-stats-grid { grid-template-columns: 1fr 1fr; }
  .event-stat { padding: 22px 18px; }
  .event-stat-num { font-size: 36px; }
  .event-categories-grid { grid-template-columns: 1fr; }
  .event-program-tabs { width: 100%; display: flex; }
  .event-program-tab { flex: 1; padding: 8px 6px; }
  .event-program-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px;
  }
  .event-program-time { font-size: 12.5px; }
  .event-program-content-highlight::before { inset: -18px -18px; }
  .event-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .event-gallery-wide { grid-column: span 2; }
  .event-videos-grid { grid-template-columns: 1fr; }
  .event-videos-grid > :last-child { grid-column: span 1; max-width: none; }
  .event-honor-list li { grid-template-columns: 1fr; gap: 4px; }
  .event-honor-school { grid-column: 1; }
  .event-jury-grid { grid-template-columns: 1fr; }
  .event-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .event-cta { padding: 56px 0; }
}

/* === Timeline "La storia" (pagina La Scuola) ====================== */
.calvino-timeline { position: relative; margin-top: 28px; padding-left: 8px; }
.calvino-timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding: 0 0 30px 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}
.tl-year {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--primary);
}
.tl-title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600; margin: 2px 0 6px; color: var(--text);
}
.tl-text { color: var(--text-muted); font-size: 15px; line-height: 1.65; max-width: 62ch; }

/* === Pagina progetto: contenuti a piena larghezza (no colonna vuota) ===== */
.progetto-page .section-lead { max-width: none; }

/* === Orario pubblico per classe ========================================== */
.orario-page .tt-grid { grid-template-columns: 80px repeat(5, minmax(120px, 1fr)); min-width: 680px; }
.orario-select {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  min-width: 160px;
  cursor: pointer;
}
.orario-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
#orario-grid { margin-top: 4px; }
/* Indicatore ora corrente */
.tt-day-header.tt-day-now { background: var(--primary-bg); color: var(--primary); }
.tt-hour-cell.tt-hour-now { background: var(--primary-bg); }
.tt-hour-cell.tt-hour-now .tt-hour-label { color: var(--primary); }
.tt-cell.tt-now { box-shadow: inset 0 0 0 2px var(--primary); }
.subj-now { font-size: 10px; font-weight: 700; margin-top: 4px; letter-spacing: .03em; opacity: .95; }
/* Combobox di ricerca classe */
.orario-combo { position: relative; }
.orario-combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
  margin: 0; padding: 4px; list-style: none;
  width: 220px; max-height: 280px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.15));
}
.orario-combo-opt {
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.orario-combo-opt:hover, .orario-combo-opt.active { background: var(--primary-bg); color: var(--primary); }
.orario-combo-empty { padding: 10px 12px; color: var(--text-muted); font-size: 14px; }
