/*
Theme Name: Jacopo Perfetti Blog
Theme URI: https://www.jacopoperfetti.com/blog/
Author: Jacopo Perfetti
Author URI: https://www.jacopoperfetti.com/
Description: Tema minimale per il Notebook digitale di Jacopo Perfetti. Stesso linguaggio visivo della landing page: Inter + Caudex, tre colori, liste editoriali e micro-interazioni curate.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jpblog
Tags: blog, one-column, minimal, editorial
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --red:   #fc0d1b;
  --back:  #efefef;
  --black: #161616;

  --serif: 'Caudex', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --pad:   clamp(20px, 5vw, 72px);
  --maxw:  1180px;
  --nav-h: 76px;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --line:  rgba(22, 22, 22, 0.14);
  --line-inv: rgba(239, 239, 239, 0.16);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--black);
  background: var(--back);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--back); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.screen-reader-text,
.assistive-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(239, 239, 239, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .5s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 28px; height: 18px; position: relative; border: none; background: none; cursor: pointer; }
.nav__toggle span {
  position: absolute; left: 0;
  width: 100%; height: 1.6px;
  background: var(--black);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }
body.menu-open .nav__toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh; height: 100dvh;
  z-index: 1;
  background: var(--back);
  padding: calc(var(--nav-h) + clamp(20px, 7vw, 46px)) var(--pad) clamp(30px, 8vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform .55s var(--ease);
}
body.menu-open .nav__drawer { transform: translateY(0); pointer-events: auto; }
.nav__drawer a {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.nav__drawer a:hover { color: var(--red); padding-left: 12px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--black);
  border-radius: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--black);
  background: none;
  cursor: pointer;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--back); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }

.btn--red { border-color: var(--red); color: var(--red); }
.btn--red::before { background: var(--red); }
.btn--red:hover { color: var(--back); }

.btn--solid { background: var(--black); color: var(--back); }
.btn--solid::before { background: var(--red); }
.btn--solid:hover { color: var(--back); border-color: var(--red); }

/* =========================================================
   SITE LAYOUT
   ========================================================= */
.site-main { padding-top: var(--nav-h); }
.section { padding-block: clamp(44px, 7vw, 80px); }

/* =========================================================
   HOME INTRO
   ========================================================= */
.intro {
  padding-top: clamp(40px, 8vw, 90px);
  padding-bottom: clamp(28px, 4vw, 46px);
  max-width: 780px;
}
.intro__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.intro__eyebrow .mark { color: var(--red); margin-right: 8px; }

.intro__text {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.34;
  letter-spacing: -0.005em;
}
.intro__text a {
  color: inherit;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  transition: color .3s var(--ease);
}
.intro__text a:hover { color: var(--red); }

/* =========================================================
   SEARCH FORM
   ========================================================= */
.searchform {
  max-width: 780px;
  padding-bottom: clamp(30px, 5vw, 54px);
}
.searchform__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--black);
  transition: border-color .35s var(--ease);
}
.searchform__row:focus-within { border-color: var(--red); }
.searchform input[type="search"],
.searchform input.field {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
  color: var(--black);
  padding: 12px 0;
  -webkit-appearance: none;
  appearance: none;
}
.searchform input[type="search"]::placeholder { color: rgba(22, 22, 22, 0.34); }
.searchform input[type="search"]::-webkit-search-cancel-button { display: none; }
.searchform__submit {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 4px 0 20px;
  color: var(--black);
  transition: color .3s var(--ease);
}
.searchform__submit:hover { color: var(--red); }

.searchform__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.55);
}
.searchform__links a { transition: color .3s var(--ease); }
.searchform__links a:hover { color: var(--red); }
.searchform__links .div { margin: 0 10px; color: rgba(22, 22, 22, 0.3); }

/* =========================================================
   POST LIST  (stile "Conferenze selezionate")
   ========================================================= */
.list-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.5);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.post-list { display: block; }

.post-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.post-item:hover { padding-left: 10px; }

.post-item__main { flex: 1; min-width: 0; }

.post-item__date {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.45);
  margin-bottom: 9px;
  transition: color .35s var(--ease);
}
.post-item:hover .post-item__date { color: var(--red); }

.post-item__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.post-item__title a { transition: color .35s var(--ease); }
.post-item__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-item:hover .post-item__title a { color: var(--red); }

.post-item__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.62);
  max-width: 72ch;
  margin-bottom: 10px;
}

.post-item__tags {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(22, 22, 22, 0.42);
}
.post-item__tags a {
  position: relative;
  z-index: 2;
  color: rgba(22, 22, 22, 0.62);
  transition: color .3s var(--ease);
}
.post-item__tags a:hover { color: var(--red); }

.post-item__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 15px;
  line-height: 1;
  color: rgba(22, 22, 22, 0.35);
  transition: color .35s var(--ease), transform .45s var(--ease);
}
.post-item:hover .post-item__arrow { color: var(--red); transform: translate(3px, -3px); }

/* =========================================================
   PAGINA TEMI
   ========================================================= */
.tema-item .post-item__title { margin-bottom: 0; }
.tema-item .post-item__excerpt { margin-top: 9px; margin-bottom: 0; }

.tema-item__count {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(22, 22, 22, 0.45);
  margin-left: 10px;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.tema-item:hover .tema-item__count { color: var(--red); }

.tema-item__cta {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;                    /* prima 8px */
  font-size: 9.5px;            /* prima 11px */
  font-weight: 600;
  letter-spacing: 0.1em;       /* prima 0.12em */
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(22, 22, 22, 0.38);
  transition: color .35s var(--ease), transform .45s var(--ease);
}
.tema-item:hover .tema-item__cta { color: var(--red); transform: translateX(3px); }

/* Load more */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: clamp(34px, 5vw, 52px);
}
.load-more-wrap.is-done { display: none; }
#loadMore.is-loading { opacity: .5; pointer-events: none; }
.load-more-end {
  padding-top: clamp(30px, 4vw, 44px);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.4);
}

/* =========================================================
   PAGE HEADER (archivi, ricerca)
   ========================================================= */
.page-header {
  padding-top: clamp(36px, 6vw, 70px);
  padding-bottom: clamp(22px, 3vw, 34px);
  max-width: 860px;
}
.page-header .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.page-title span { color: var(--red); }

.page-intro,
.nessunrisultato {
  max-width: 780px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(22, 22, 22, 0.78);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.page-intro a,
.nessunrisultato a {
  color: inherit;
  border-bottom: 1px solid var(--red);
  transition: color .3s var(--ease);
}
.page-intro a:hover,
.nessunrisultato a:hover { color: var(--red); }
.nessunrisultato hr { display: none; }
.nessunrisultato span { color: var(--red); font-style: italic; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-entry {
  max-width: 720px;
  margin-inline: auto;
  padding-top: clamp(36px, 6vw, 76px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.entry-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.45);
  margin-bottom: 20px;
}
.entry-meta a { color: var(--red); }

.entry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

/* Avviso post datato — stesso trattamento del blockquote, ma in piccolo */
.single-entry .entry-notice {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(22, 22, 22, 0.55);
  border-left: 2px solid var(--red);
  padding-left: clamp(18px, 3vw, 30px);
  margin: 0 0 clamp(26px, 3.5vw, 42px);
  max-width: 62ch;
}

.entry-content {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
  color: rgba(22, 22, 22, 0.88);
}
.entry-content p { margin-bottom: 1.35em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 1.8em 0 .6em;
}
.entry-content h2 { font-size: clamp(23px, 2.6vw, 32px); }
.entry-content h3 { font-size: clamp(20px, 2.1vw, 26px); }
.entry-content h4 { font-size: clamp(18px, 1.8vw, 22px); }
.entry-content a {
  color: inherit;
  border-bottom: 1px solid var(--red);
  transition: color .3s var(--ease);
}
.entry-content a:hover { color: var(--red); }
.entry-content ul,
.entry-content ol { margin: 0 0 1.35em 1.2em; }
.entry-content ul li { list-style: disc; margin-bottom: .4em; }
.entry-content ol li { list-style: decimal; margin-bottom: .4em; }
.entry-content blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  border-left: 2px solid var(--red);
  padding-left: clamp(18px, 3vw, 30px);
  margin: 1.8em 0;
  color: var(--black);
}
.entry-content blockquote p { margin-bottom: .5em; }
.entry-content img { margin: 1.6em 0; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: rgba(22, 22, 22, 0.06);
  padding: 2px 6px;
}
.entry-content pre {
  background: var(--black);
  color: var(--back);
  padding: 22px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  font-size: 14px;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.entry-content iframe { max-width: 100%; }

/* Articoli correlati: nessuna linea rossa */
.entry-content .yarpp-related a,
.entry-content .crp_related a,
.entry-content .related-posts a,
#jp-relatedposts a {
  border-bottom: none;
  transition: color .3s var(--ease);
}
.entry-content .yarpp-related a:hover,
.entry-content .crp_related a:hover,
.entry-content .related-posts a:hover,
#jp-relatedposts a:hover {
  color: var(--red);
}

.page-links {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.5);
}
.page-links a {
  border: 1px solid var(--line);
  padding: 5px 11px;
  margin-left: 5px;
  color: var(--black);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.page-links a:hover { background: var(--black); color: var(--back); border-color: var(--black); }

.entry-tags {
  margin-top: clamp(16px, 2vw, 22px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(22, 22, 22, 0.45);
}

/* Riduce lo spazio lasciato in fondo dal blocco degli articoli correlati */
.entry-content .yarpp-related,
.entry-content .crp_related,
.entry-content .related-posts,
#jp-relatedposts { margin-bottom: 0; }
.entry-content .yarpp-related > *:last-child,
.entry-content .crp_related > *:last-child,
.entry-content .related-posts > *:last-child,
#jp-relatedposts > *:last-child { margin-bottom: 0; padding-bottom: 0; }
.entry-tags a {
  color: rgba(22, 22, 22, 0.7);
  transition: color .3s var(--ease);
}
.entry-tags a:hover { color: var(--red); }

/* Newsletter box */
.newsletter-box {
  max-width: 720px;
  margin: clamp(24px, 3vw, 34px) auto 0;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}
.newsletter-box__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.newsletter-box p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: rgba(22, 22, 22, 0.8);
  margin-bottom: 8px;
}
.newsletter-box a { color: inherit; border-bottom: 1px solid var(--red); }
.newsletter-box a:hover { color: var(--red); }
.newsletter-box iframe { display: block; margin-top: 10px; }

/* Utilizzo dei materiali */
.entry-rights {
  max-width: 720px;
  margin: clamp(24px, 3vw, 34px) auto 0;
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.entry-rights p {
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(22, 22, 22, 0.45);
  margin: 0;
}
.entry-rights a {
  color: rgba(22, 22, 22, 0.6);
  border-bottom: 1px solid var(--red);
  transition: color .3s var(--ease);
}
.entry-rights a:hover { color: var(--red); }

/* Post navigation */
.post-nav {
  max-width: 720px;
  margin: clamp(24px, 3vw, 34px) auto 0;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.post-nav__item { max-width: 46%; }
.post-nav__item--next { text-align: right; margin-left: auto; }
.post-nav__label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.42);
  margin-bottom: 8px;
}
.post-nav__title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.22;
  transition: color .3s var(--ease);
}
.post-nav a:hover .post-nav__title { color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: var(--back);
  padding-block: clamp(44px, 6vw, 72px);
  margin-top: clamp(50px, 8vw, 100px);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: clamp(34px, 5vw, 52px);
  border-bottom: 1px solid var(--line-inv);
}
.footer__brand {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 14px;
  font-weight: 500;
}
.footer__nav a { position: relative; transition: color .3s var(--ease); }
.footer__nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.footer__nav a:hover { color: var(--red); }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__bottom {
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(239, 239, 239, 0.5);
}
.footer__bottom a { color: rgba(239, 239, 239, 0.75); }
.footer__bottom a:hover { color: var(--red); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   COMMENTS (minimal)
   ========================================================= */
.comments-area {
  max-width: 720px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding-top: clamp(26px, 4vw, 38px);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.comments-title { font-family: var(--serif); font-size: 24px; margin-bottom: 20px; }
.comment-list li { margin-bottom: 22px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .post-item { gap: 16px; }
  .post-nav__item { max-width: 100%; }
  .post-nav__item--next { text-align: left; margin-left: 0; }
}

@media (max-width: 560px) {
  .footer__top { flex-direction: column; }
  .btn { padding: 13px 24px; font-size: 11.5px; }
  .post-item__excerpt { font-size: 13.5px; }
  /* su schermi stretti resta solo la freccia */
  .tema-item__cta-label { display: none; }
  .tema-item__count { display: block; margin-left: 0; margin-top: 7px; }
}
