/* ==========================================================================
   SUPSI Open Science — design system
   Estetica: scientifica, sobria, accessibile. Nessuna dipendenza esterna.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #16202e;          /* testo principale, quasi nero-blu */
  --ink-soft: #45505f;     /* testo secondario */
  --paper: #fcfcfb;        /* sfondo pagina */
  --surface: #ffffff;      /* sfondo card */
  --surface-alt: #f4f5f3;  /* sezioni alternate */
  --accent: #d6001c;       /* rosso SUPSI */
  --accent-dark: #a80016;
  --accent-soft: #fdeef0;
  --link: #0b5394;         /* blu scientifico */
  --link-hover: #083b69;
  --border: #e2e4e7;
  --ok: #1a7f4e;
  --warn: #9a6700;

  /* Tipografia */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Ritmo */
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 46, .06);
  --shadow-md: 0 6px 24px rgba(22, 32, 46, .09);
  --container: 1180px;
}

/* Reset essenziale ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 820px; }
.center-block { text-align: center; padding: 5rem 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: .01em;
}
.brand-supsi {
  font-size: 1.3rem; letter-spacing: .08em;
}
.brand-divider {
  width: 1px; height: 22px; background: var(--accent);
}
.brand-site { font-weight: 500; color: var(--ink-soft); font-size: 1.05rem; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.dropdown { list-style: none; margin: 0; }
.main-nav a, .main-nav button {
  display: block; padding: .5rem .8rem;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav button:hover { background: var(--surface-alt); color: var(--ink); }
.nav-more { position: relative; }
.nav-more .caret { font-size: .7em; }
.dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .4rem !important; min-width: 220px;
  flex-direction: column; gap: 0 !important;
}
.nav-more.open .dropdown { display: flex; }
.dropdown a { padding: .5rem .8rem; }

.search-form input {
  border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .95rem; font-size: .9rem; width: 150px;
  background: var(--surface-alt); transition: width .2s ease;
  font-family: inherit;
}
.search-form input:focus { width: 210px; outline: 2px solid var(--link); outline-offset: 1px; background: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, #fad3d9 0%, transparent 60%),
    radial-gradient(900px 420px at -5% 115%, #d9e6f4 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7f3ef 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; z-index: 1; }
.hero-rocket {
  position: absolute;
  z-index: 0;
  left: 2%;
  top: 118%;
  width: clamp(72px, 8.5vw, 116px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(20, 32, 63, .25));
  /* a steady rocket launch: climbs diagonally up-right across the hero, then loops */
  animation: hero-rocket-fly 9s linear infinite;
  will-change: left, top, opacity;
}
@keyframes hero-rocket-fly {
  0%   { left: 2%;  top: 118%; opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 64%; top: -86%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rocket {
    animation: none;
    left: auto; right: 6%; top: auto; bottom: -8px; opacity: 1;
  }
}
@media (max-width: 560px) {
  .hero-rocket { width: 60px; }
}
.hero-inner { padding: 4.5rem 1.25rem 4rem; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 1.25rem; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* Bottoni --------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; font-family: inherit; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Card / pilastri --------------------------------------------------------------- */
.pillars { padding: 4rem 0 4.5rem; }
.section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 1.6rem;
}
.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.card {
  display: block; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd3d8; color: var(--ink); }
.card h3 { margin: .9rem 0 .4rem; font-size: 1.12rem; }
.card p { margin: 0 0 1.6rem; color: var(--ink-soft); font-size: .94rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--accent-soft);
}
.card-icon img { width: 30px; height: 30px; }
.card-more {
  position: absolute; bottom: 1.1rem; left: 1.5rem;
  font-size: .85rem; font-weight: 600; color: var(--accent);
}
.card-compact { padding: 1.15rem 1.3rem; }
.card-compact h3 { margin-top: 0; font-size: 1.02rem; }
.card-compact p { margin-bottom: 1.4rem; }
.card-compact .card-more { left: 1.3rem; bottom: .9rem; }

/* News ----------------------------------------------------------------------------- */
.home-news { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 4rem 0 4.5rem; }
.news-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3.5rem; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.news-list time {
  display: block; font-size: .82rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem;
  font-variant-numeric: tabular-nums;
}
.news-list a { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1.02rem; }
.news-list a:hover { color: var(--link); text-decoration: underline; }
.news-summary { margin: .25rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.news-list-large li { padding: 1.3rem 0; }
.news-date { font-size: .85rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.quick-links ul { list-style: none; margin: 0; padding: 0; }
.quick-links li { margin-bottom: .55rem; }
.quick-links a {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1rem; text-decoration: none; font-weight: 500;
  color: var(--ink); font-size: .94rem; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.quick-links a:hover { border-color: var(--accent); transform: translateX(3px); }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  background: var(--accent-soft); color: var(--accent-dark); border-radius: 4px;
  padding: .1rem .4rem; vertical-align: middle; margin-left: .3rem;
}

/* Layout pagina interna ---------------------------------------------------------- */
.page-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: 3.5rem; padding-top: 2.5rem; padding-bottom: 4rem;
}
.page-content-wide { grid-column: 1 / -1; max-width: 820px; }

.sidebar { position: sticky; top: 84px; align-self: start; }
.sidebar-title { margin: 0 0 .6rem; font-weight: 700; font-size: .95rem; }
.sidebar-title a { text-decoration: none; color: var(--ink); }
.sidebar-nav { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.sidebar-nav > li > a {
  display: block; padding: .42rem .9rem; color: var(--ink-soft);
  text-decoration: none; font-size: .92rem; border-left: 2px solid transparent; margin-left: -2px;
}
.sidebar-nav a:hover { color: var(--ink); }
.sidebar-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0 0 .3rem; display: none; }
.sidebar-nav li.open > ul { display: block; }
.sidebar-nav ul a {
  display: block; padding: .3rem .9rem .3rem 1.9rem; color: var(--ink-soft);
  text-decoration: none; font-size: .88rem; border-left: 2px solid transparent; margin-left: -2px;
}

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 500; }

.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15;
  margin: 0 0 .6rem; letter-spacing: -.02em; font-weight: 800;
}
.page-summary { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 640px; }

.child-cards {
  display: grid; gap: 1rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.page-meta {
  margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--ink-soft);
}

/* Prose (contenuto markdown) ----------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: 1.45rem; margin: 2.4rem 0 .8rem; letter-spacing: -.01em;
  padding-bottom: .35rem; border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.prose h4 { font-size: 1rem; margin: 1.4rem 0 .5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.4rem 0; padding: .9rem 1.3rem;
  border-left: 3px solid var(--accent); background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 4px; padding: .08em .35em;
}
.prose pre {
  background: #1d2530; color: #e8ecf1; padding: 1.1rem 1.3rem;
  border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.55;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { padding: .6rem .9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-alt); font-weight: 600; }
.prose tbody tr:nth-child(even) { background: #fafbfa; }

/* Callout --------------------------------------------------------------------------- */
.callout {
  margin: 1.4rem 0; padding: 1rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--border); border-left-width: 4px; background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin: 0 0 .4rem; }
.callout-note, .callout-info { border-left-color: var(--link); background: #f2f7fc; }
.callout-warning { border-left-color: var(--warn); background: #fdf6e7; }
.callout-success, .callout-tip { border-left-color: var(--ok); background: #eef8f2; }

/* Ricerca ----------------------------------------------------------------------------- */
.search-form-page { display: flex; gap: .6rem; margin-bottom: 2rem; }
.search-form-page input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 8px;
  padding: .7rem 1rem; font-size: 1rem; font-family: inherit;
}
.search-form-page input:focus { outline: 2px solid var(--link); }
.search-count { color: var(--ink-soft); font-size: .92rem; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.search-results a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.search-results p { margin: .3rem 0; color: var(--ink-soft); font-size: .93rem; }
.search-path { font-size: .8rem; color: #8a93a0; font-family: var(--font-mono); }

/* Footer -------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c6cdd6; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2.5rem;
  padding: 3.2rem 1.25rem 2.2rem;
}
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .06em; margin: 0 0 1rem; }
.footer-brand span { display: block; font-size: .8rem; font-weight: 400; letter-spacing: .01em; color: #97a1ad; margin-top: .3rem; }
.footer-title { font-weight: 700; color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.site-footer a { color: #c6cdd6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid #2b3644;
  padding-top: 1.4rem; padding-bottom: 1.6rem; font-size: .85rem; color: #97a1ad;
}
.admin-link { opacity: .7; }

/* Responsive -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .news-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .sidebar { position: static; order: 2; border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .search-form { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); margin: 0; padding: .6rem 1rem 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .dropdown { position: static; border: 0; box-shadow: none; padding-left: 1rem !important; }
  .hero-inner { padding: 3rem 1.25rem 2.6rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  body { font-size: 1rem; }
}

/* Rinfresco visivo ------------------------------------------------------------------ */
.site-header { border-top: 3px solid var(--accent); }

.section-title::before {
  content: ""; display: inline-block; width: 26px; height: 4px;
  background: var(--accent); border-radius: 2px;
  margin-right: .6rem; vertical-align: .22em;
}

.pillars { background: linear-gradient(180deg, var(--paper) 0%, #eef2f7 100%); }
.card { border-top: 3px solid #f0c8ce; }
.card:hover { border-top-color: var(--accent); }
.card-icon { background: linear-gradient(135deg, var(--accent-soft), #fbd9de); }

/* Banda strumenti (home) */
.tools-band {
  background:
    radial-gradient(900px 380px at 90% -30%, rgba(214, 0, 28, .25) 0%, transparent 55%),
    linear-gradient(135deg, #16202e 0%, #1d3149 60%, #0b5394 130%);
  padding: 4rem 0 4.5rem;
}
.section-title--invert { color: #fff; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tool-card {
  display: block; position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 2.9rem;
  color: #e8edf3; text-decoration: none;
  backdrop-filter: blur(4px);
  transition: transform .15s ease, background .15s ease;
}
.tool-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); color: #fff; }
.tool-card h3 { color: #fff; margin: .65rem 0 .4rem; font-size: 1.15rem; }
.tool-card p { margin: 0; font-size: .94rem; color: #c4cedb; }
.tool-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: .18rem .6rem;
}
.tool-card .card-more { position: absolute; left: 1.6rem; bottom: 1.1rem; color: #fff; font-size: .9rem; font-weight: 600; }

/* Card RDM che raggruppa autovalutazione + mappa + stampabile */
.tool-card--group { padding-bottom: 1.5rem; }
.tool-links { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.tool-links a { color: #fff; font-size: .92rem; font-weight: 600; text-decoration: none; width: fit-content; }
.tool-links a:hover { text-decoration: underline; }

/* Area Progetti (hub ricercatore) */
.proj-wrap { padding: 2.5rem 0 3.5rem; }
.proj-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.proj-head h1 { margin: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.proj-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.proj-card h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.proj-card .proj-meta { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .9rem; }
.proj-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.proj-badge { font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.proj-badge.is-on { background: #eaf6ee; color: #1a6b36; border-color: #bfe3cb; }
.proj-badge.is-final { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.proj-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.proj-field { margin-bottom: 1rem; }
.proj-field label { display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.proj-field input, .proj-field textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.proj-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.proj-status { background: #eaf6ee; border: 1px solid #bfe3cb; color: #1a6b36; border-radius: 8px; padding: .6rem .85rem; margin-bottom: 1.25rem; }
.proj-error { background: #fdecec; border: 1px solid #f3c2c2; color: #a11; border-radius: 8px; padding: .6rem .85rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .proj-row2 { grid-template-columns: 1fr; } }

.dropdown-sep { border-top: 1px solid var(--border); margin: .3rem .4rem; }

@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* Stampa ---------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .sidebar, .nav-toggle, .search-form { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* Banner anteprima bozza (visibile solo allo staff autenticato) */
.preview-banner {
  background: #fff4cf; border: 1px solid #e6c200; color: #6b5300;
  border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1.3rem;
  font-size: .92rem;
}
.preview-banner strong { color: #7a4f00; }
.preview-banner a { color: var(--accent-dark); font-weight: 600; }

/* Accesso area riservata (header) */
.header-access{display:flex;align-items:center;gap:.4rem;margin-left:.5rem}
.header-access form{margin:0}
.header-access .btn{padding:.42rem .9rem;font-size:.88rem;white-space:nowrap}
