/* ==========================================================================
   PsicoDesk Network — Design System (Static Demo)
   Implementazione 1:1 dei mockup di Claude Design.
   ========================================================================== */

/* --- TOKENS ---------------------------------------------------------------- */

:root {
  /* Neutri condivisi */
  --bg: #FAF8F4;
  --ink-1: #1B1814;
  --ink-2: #6B6357;
  --ink-3: #9B9384;
  --rule: #E8E2D6;

  /* Accent per testata */
  --psicolab: #1E3A5F;
  --neuro: #155E63;
  --giornale: #C2410C;

  /* Soft accent (~+38% lightness, low saturation) */
  --psicolab-soft: #E8EDF3;
  --neuro-soft: #E5EFEF;
  --giornale-soft: #FBE8DC;

  /* Tipografia */
  --font-h: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* Accent per testata (override su body) */
body.psicolab     { --accent: var(--psicolab); --accent-soft: var(--psicolab-soft); }
body.neuroscienze { --accent: var(--neuro);    --accent-soft: var(--neuro-soft); }
body.giornale     { --accent: var(--giornale); --accent-soft: var(--giornale-soft); }

/* --- RESET ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-h); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

/* --- UTILITY --------------------------------------------------------------- */

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.kicker {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker--muted { color: var(--ink-3); }

.text-mono {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.txt-balance { text-wrap: balance; }
.txt-pretty  { text-wrap: pretty; }

/* --- MICROBAND DI RETE ---------------------------------------------------- */

.microband {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-b);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.005em;
}
.microband strong {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-1);
}
.microband .word-psicolab { color: var(--psicolab); }
.microband .word-neuro    { color: var(--neuro); }
.microband .word-giornale { color: var(--giornale); }

/* --- HEADER ---------------------------------------------------------------- */

.site-header {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo svg { flex: 0 0 auto; }
.logo .wordmark {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { color: var(--ink-1); }
.site-nav a.active, .site-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.btn-search svg { stroke: var(--ink-2); }

/* Search bar nell'header — visibile, compatta */
.header-search {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 10px 6px 8px;
  gap: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.header-search svg { flex-shrink: 0; }
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink-1);
  width: 180px;
  outline: none;
}
.header-search input::placeholder { color: var(--ink-3); }

@media (max-width: 1100px) {
  .header-search input { width: 130px; }
}
@media (max-width: 900px) {
  .header-search { padding: 6px; }
  .header-search input { display: none; }
}

.btn-newsletter {
  background: transparent;
  color: var(--accent);
  padding: 7px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-newsletter:hover,
.btn-newsletter:focus {
  background: var(--accent);
  color: var(--bg);
}

/* --- FOOTER DI RETE -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 48px 32px 24px;
  margin-top: 64px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col-title {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col a, .footer-col span {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink-1);
  display: block;
  padding: 4px 0;
}
.footer-col span { color: var(--ink-2); }

.footer-col .testata-symbol {
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  font-weight: bold;
}
.footer-col .testata-symbol.psicolab { color: var(--psicolab); }
.footer-col .testata-symbol.neuro    { color: var(--neuro); }
.footer-col .testata-symbol.giornale { color: var(--giornale); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-network-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-network-logo .symbols {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.footer-network-logo .text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-network-logo .name {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: var(--ink-1);
  line-height: 1;
}
.footer-network-logo .payoff {
  font-family: var(--font-b);
  font-style: italic;
  font-size: 7px;
  color: var(--ink-2);
  line-height: 1;
}

.footer-bottom .copy {
  font-size: 11px;
  color: var(--ink-3);
}

/* --- IMAGE PLACEHOLDER (silent: solo riquadro accent-soft) ----------------- */

.img-placeholder {
  background: var(--accent-soft);
  border-radius: 4px;
  width: 100%;
  display: block;
}
.img-placeholder.r-16-9  { aspect-ratio: 16 / 9; }
.img-placeholder.r-4-3   { aspect-ratio: 4 / 3; }
.img-placeholder.r-1-1   { aspect-ratio: 1 / 1; }
.img-placeholder.r-3-4   { aspect-ratio: 3 / 4; }

/* --- COMMON COMPONENTS ----------------------------------------------------- */

.tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}
.tag.outlined {
  background: #FFFFFF;
  border: 1px solid var(--accent);
  color: var(--ink-1);
}

main { display: block; }

/* ==========================================================================
   PSICOLAB — Magazine layout
   ========================================================================== */

.psicolab main { padding: 40px 0 48px; }

.hero-magazine {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: center;
}
.hero-magazine > a,
.hero-magazine > a img,
.hero-magazine .img-placeholder {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
}

.hero-magazine .hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-magazine h1 {
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-magazine .lead {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
}

.hero-magazine .byline {
  font-size: 13px;
  color: var(--ink-3);
}
.hero-magazine .byline .author {
  color: var(--ink-1);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-h);
}

.newsletter-inline {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #FFFFFF;
}
.newsletter-inline .copy { max-width: 520px; }
.newsletter-inline .title {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.newsletter-inline .desc {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}
.newsletter-inline form { display: flex; gap: 8px; }
.newsletter-inline input {
  border: 1px solid #C3C4C7;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  width: 240px;
  background: #fff;
}
.newsletter-inline button {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}

.section-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section-title-bar h2 {
  font-size: 22px;
  margin: 0;
}
.section-title-bar a {
  font-size: 13px;
  color: var(--accent);
}

.cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.card-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-article h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-article p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.card-article .byline {
  font-size: 12px;
  color: var(--ink-3);
}
.card-article .byline .author {
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-h);
}

/* Sezione "Dai nostri autori PRO" — 3-col grid con badge PRO */
.cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.card-article.compact h3 {
  font-size: 18px;
}
.card-article.compact p {
  font-size: 13px;
}
.author-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.author-pro .name {
  color: var(--ink-1);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-h);
}
.author-pro .badge-pro {
  background: var(--accent);
  color: #FAF8F4;
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
}
.author-pro .date {
  color: var(--ink-3);
  margin-left: 4px;
}

@media (max-width: 900px) {
  .cards-3col { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .cards-3col { grid-template-columns: 1fr; gap: 20px; }
}

.dossier-strip {
  background: var(--psicolab);
  color: #FAF8F4;
  border-radius: 8px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
}
.dossier-strip .label {
  font-family: var(--font-m);
  font-size: 10px;
  color: #A7B5C7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dossier-strip h3 {
  font-size: 26px;
  margin: 8px 0 0;
  line-height: 1.2;
  color: #FAF8F4;
}
.dossier-strip .desc {
  font-size: 14px;
  color: #D4D9E1;
  line-height: 1.6;
}

/* ==========================================================================
   NEUROSCIENZE — Rivista scientifica divulgativa
   ========================================================================== */

.neuroscienze main { padding: 40px 0 48px; }

.hero-scientific {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.hero-scientific h1 {
  font-size: 38px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
.hero-scientific .tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-scientific .lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
}
.hero-scientific .meta {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.hero-scientific .authors {
  font-size: 15px;
  color: var(--ink-1);
  font-weight: 600;
  font-family: var(--font-h);
}

.filters-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
}
.filters-sidebar .filters-label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.filters-sidebar .filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filters-sidebar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-1);
  cursor: pointer;
}
.filters-sidebar input[type="checkbox"],
.filters-sidebar input[type="radio"] {
  accent-color: var(--accent);
}
.filters-sidebar .sep {
  height: 1px;
  background: var(--rule);
  margin: 16px 0;
}

.article-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.article-row .row-img {
  width: 120px;
  flex-shrink: 0;
}
.article-row .row-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
@media (max-width: 600px) {
  .article-row { grid-template-columns: 80px 1fr; gap: 16px; }
  .article-row .row-img { width: 80px; }
}
.article-row .row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.article-row .row-meta .date {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--ink-3);
  margin-left: auto;
}
.article-row h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.article-row .abstract {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.article-row .credits {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.article-row .authors {
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 600;
  font-family: var(--font-h);
}
.article-row .doi {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-3);
}

/* ==========================================================================
   GIORNALE DI PSICOLOGIA — Quotidiano (stile Il Post)
   ========================================================================== */

.giornale main { padding: 32px 0 48px; }

.section-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.section-tabs button {
  padding: 12px 18px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.section-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.giornale-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.giornale-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.giornale-hero > div:first-child > a,
.giornale-hero > div:first-child > a img,
.giornale-hero > div:first-child > .img-placeholder {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.giornale-hero .text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.giornale-hero h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.giornale-hero .lead {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.giornale-hero .byline {
  font-size: 13px;
  color: var(--ink-3);
}
.giornale-hero .byline a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  font-family: var(--font-h);
}
.giornale-hero .meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.news-row .img-wrap { width: 120px; flex-shrink: 0; }
.news-row .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-row .meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.news-row h3 {
  font-size: 18px;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0;
}
.news-row .byline {
  font-size: 12px;
  color: var(--ink-3);
}
.news-row .byline a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  font-family: var(--font-h);
}

.time-stamp {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.sponsored-block {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px;
}
.sponsored-block .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sponsored-block .head h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0;
}
.sponsored-block .head .label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sponsored-block .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sponsored-block .item {
  display: flex;
  gap: 14px;
}
.sponsored-block .item .img-wrap { width: 80px; flex-shrink: 0; }
.sponsored-block .item h3 {
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-section .label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.event-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.event-item:last-child { border-bottom: none; }
.event-item .date-badge {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-item .date-badge .day {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}
.event-item .date-badge .month {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.event-item .info .title {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.event-item .info .sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.book-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.book-item .img-wrap { width: 56px; height: 80px; flex-shrink: 0; }
.book-item .info .title {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.book-item .info .author {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}
.book-item .info .year {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ==========================================================================
   MOBILE DRAWER + HAMBURGER
   ========================================================================== */

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.nav-toggle .hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.drawer-open .nav-toggle .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.drawer-open .nav-toggle .hamburger-line:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
body.drawer-open .mobile-drawer {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.drawer-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.drawer-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 8px;
}
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav li { margin: 0; }
.drawer-nav a {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.drawer-nav a:hover,
.drawer-nav a:focus {
  background: var(--accent-soft);
  color: var(--accent);
}
.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
}
.drawer-foot .btn-newsletter {
  display: block;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .site-header { height: 56px; padding: 0 16px; }
  .site-nav, .header-actions .btn-search-text, .header-actions .btn-newsletter { display: none; }
  .nav-toggle { display: flex; }
  .hero-magazine { grid-template-columns: 1fr; gap: 24px; }
  .hero-magazine h1 { font-size: 30px; }
  .hero-scientific { grid-template-columns: 1fr; gap: 24px; }
  .hero-scientific h1 { font-size: 28px; }
  .cards-2col { grid-template-columns: 1fr; gap: 28px; }
  .dossier-strip { grid-template-columns: 1fr; padding: 24px; }
  .dossier-strip h3 { font-size: 22px; }
  .giornale-layout { grid-template-columns: 1fr; gap: 32px; }
  .giornale-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .newsletter-inline { flex-direction: column; align-items: stretch; }
  .newsletter-inline form { flex-wrap: wrap; }
  .newsletter-inline input { flex: 1; min-width: 200px; }
  .sponsored-block .grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
