/* ============================================================
   main.css — Blog stylesheet
   Fonts: Playfair Display (headings) + Lora (body)
   Colors: purple #780987, teal rgb(31,209,182), beige #FAF8F4
   ============================================================ */

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

:root {
  --beige:     #f6efe3e7;
  --beige-mid: #f6efe3e7;
  --purple:    rgb(120, 9, 135);
  --purple-dk: rgb(88, 5, 100);
  --teal:      rgb(40, 190, 177);
  --teal-dk:   rgb(20, 138, 122);
  --ink:       #1a1a1a;
  --ink-soft:  #4a4a4a;
  --ink-muted: #888;
  --rule:      #e0dbd2;
}

.text-center {
  text-align: center; 
}

.post-body centerleft{
  margin: 1.8rem 0;
}

html { font-size: 16px; }

body {
  background: var(--beige);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}


/* ── NAV ────────────────────────────────────────── */

nav {
  background: var(--beige);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover  { color: var(--purple); }
.nav-links a.active {
  color: var(--purple);
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 2px;
}


/* ── HOME BANNER ────────────────────────────────── */

.banner {
  justify-items: center;
  position: relative;
  background: var(--purple);
  overflow: hidden;
  display: grid;
  padding-left: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 240px;
  gap: 1rem;
}

.banner-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}

.banner-content { position: relative; z-index: 1; }

.banner-eyebrow {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.8rem, 3vw, 2.0rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.banner-title em {
  font-style: italic;
  color: var(--teal);
}

.banner-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.banner-svg {
  width: 100%;
  height: 220px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
}


/* ── HOME MAIN LAYOUT ───────────────────────────── */

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ── ABOUT SIDEBAR ──────────────────────────────── */

.about {
  position: sticky;
  top: 80px;
}

.about-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  font-family: 'Lora', serif;
  margin-bottom: 1rem;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.about-divider {
  width: 40px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 1.1rem;
}

.about-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-text p:first-child::first-letter {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  float: left;
  line-height: 1;
  margin-right: 0.1em;
  color: var(--purple);
}


.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  font-family: 'Lora', serif;
}


.tag-ai   { background: rgba(120,9,135,0.08); color: var(--purple); border: 1px solid rgba(120,9,135,0.2); }
.tag-lang { background: rgba(31,209,182,0.08); color: var(--teal-dk); border: 1px solid rgba(31,209,182,0.3); }

.about-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.about-link:hover { opacity: 0.7; }


/* ── POST LIST (home) ───────────────────────────── */

.posts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}

.posts-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.posts-all {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.posts-all:hover { color: var(--purple); }

.post-list { display: flex; flex-direction: column; }

.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.post-date {
  justify-self: end;
  align-self: start;
}

.post-item:hover .post-title { color: var(--purple); }

.post-item.featured {
  padding: 1.8rem 0;
  /* keep two columns so the date stays beside the title */
  grid-template-columns: 1fr auto;
}

.post-item.featured .post-title { font-size: 1.45rem; margin-bottom: 0.5rem; }
.post-item.featured .post-excerpt { font-size: 0.9rem; }

.post-category {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
  font-family: 'Lora', serif;
}

.post-category-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative; top: -1px;
}

.category-item {
  margin-right: 1rem;  /* aumenta per più spazio */
}


.category-item:last-child {
  margin-right: 0;
}

.dot-ai   { background: var(--purple); }
.dot-lang { background: var(--teal); }

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
  text-decoration: none;
}

.post-subtitle {
  margin: 0.2rem 0 0.6rem;
  font-style: italic;
  font-size: 1.2rem;        /* o 1.1rem, regola a piacere */
  font-weight: normal;
  color: var(--text-muted);
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover { color: var(--purple); }

.post-excerpt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.post-date {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  margin: 0; /* reset so it won't shift downward */
  font-family: 'Lora', serif;
  align-self: start; /* keep at the top of grid cell */
}

.centered-image {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.post-item {
  position: relative; /* allow future absolute positioning if needed */
}


/* ── POST BANNER ────────────────────────────────── */

.post-banner {
  position: relative;
  background: var(--purple);
  overflow: hidden;
  padding: 2.5rem 3rem 2.8rem;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.post-banner-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}

.post-banner-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Subtle geometric bg on post banner */
.post-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.1;
}

.post-banner-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.post-back {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.post-back:hover { color: var(--teal); }

.post-banner-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
}

.post-category-pill {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  font-family: 'Lora', serif;
}

.pill-ai   { background: rgba(120,9,135,0.5);  color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.pill-book { background: rgba(31,209,182,0.25); color: var(--teal); border: 1px solid rgba(31,209,182,0.4); }

.post-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.post-banner-subtitle {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.post-banner-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-banner-author,
.post-banner-date,
.post-banner-read {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Lora', serif;
  font-style: italic;
}

.post-banner-read {
  margin-left: auto;
}

.post-banner-dot { color: rgba(255,255,255,0.3); }


/* ── POST BODY ──────────────────────────────────── */

.post-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

/* If no TOC, article spans full width */
.post-wrap:not(:has(.post-toc)) { grid-template-columns: 1fr; }

.post-toc {
  position: sticky;
  top: 80px;
}

.post-toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dk);
  font-family: 'Lora', serif;
  margin-bottom: 0.8rem;
}

.post-toc ul {
  list-style: none;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}

.post-toc li { margin-bottom: 0.5rem; }

.post-toc a {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.post-toc a:hover { color: var(--purple); }

.post-body {
  min-width: 0;
  text-align: justify;
  hyphens: auto;
}

.post-body p:first-child::first-letter {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  float: left;
  line-height: 1;
  margin-right: 0.1em;
  color: var(--purple);
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.post-body a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(120,9,135,0.3);
  transition: border-color 0.2s;
}

.post-body a:hover { border-color: var(--teal); }

.post-body strong { color: var(--ink); font-weight: 700; }

.post-body em { font-style: italic; }

.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1.25rem;
  margin: 1.8rem 0;
  background: rgba(31,209,182,0.05);
}

.post-body blockquote p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--beige-mid);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--purple-dk);
}

.post-body pre {
  background: #1a1a1a;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.8rem 0;
}

.post-body pre code {
  background: none;
  color: #e8e0f0;
  font-size: 0.88rem;
  padding: 0;
}

.post-body img {
  max-width: 100%;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-body li {
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Tables within articles */
.post-body table,
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
}

.post-body th,
.page-body th,
.post-body td,
.page-body td {
  border: 1px solid var(--rule);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.post-body th,
.page-body th {
  background: var(--beige-mid);
  font-weight: 700;
}

.post-body tr:nth-child(even),
.page-body tr:nth-child(even) {
  background: rgba(0,0,0,0.03);
}

/* Post tags at end of article */
.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


/* ── PAGE BANNER ────────────────────────────────── */

.page-banner {
  position: relative;
  background: var(--purple);
  overflow: hidden;
  padding: 2.5rem 3rem 2.8rem;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.page-banner-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* ── PAGE BODY ──────────────────────────────────── */

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

/* If no TOC, article spans full width */
.page-wrap:not(:has(.page-toc)) { grid-template-columns: 1fr; }

.page-toc {
  position: sticky;
  top: 80px;
}

.page-toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dk);
  font-family: 'Lora', serif;
  margin-bottom: 0.8rem;
}

.page-toc ul {
  list-style: none;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}

.page-toc li { margin-bottom: 0.5rem; }

.page-toc a {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.page-toc a:hover { color: var(--purple); }

/* Article prose */
.page-body { min-width: 0; }

.page-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.page-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.page-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.page-body a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(120,9,135,0.3);
  transition: border-color 0.2s;
}

.page-body a:hover { border-color: var(--teal); }

.page-body strong { color: var(--ink); font-weight: 700; }

.page-body em { font-style: italic; }

.page-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1.25rem;
  margin: 1.8rem 0;
  background: rgba(31,209,182,0.05);
}

.page-body blockquote p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.page-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--beige-mid);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--purple-dk);
}

.page-body pre {
  background: #1a1a1a;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.8rem 0;
}

.page-body pre code {
  background: none;
  color: #e8e0f0;
  font-size: 0.88rem;
  padding: 0;
}

.page-body img {
  max-width: 100%;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.page-body ul,
.page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.page-body li {
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.page-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}


/* ── RELATED POSTS ──────────────────────────────── */

.post-related {
  background: var(--beige-mid);
  border-top: 1px solid var(--rule);
  padding: 3rem 2rem;
}

.post-related-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.post-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
}

.post-related-title em {
  font-style: italic;
  color: var(--purple);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.post-related-item {
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--rule);
  padding-top: 1rem;
  transition: border-color 0.2s;
}

.post-related-item:hover { border-color: var(--teal); }
.post-related-item:hover .post-related-item-title { color: var(--purple); }

.post-related-date {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0.4rem 0 0.5rem;
  font-family: 'Lora', serif;
}

.post-related-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.post-related-excerpt {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
}


/* ── FOOTER ─────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  background: var(--beige-mid);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-note {
  font-size: 1.08rem;
  color: var(--ink-muted);
  align-items: center;
  display: flex;
  gap: 2.0rem;}

.footer-teal {
  width: 30px; height: 3px;
  background: var(--teal);
  border-radius: 2px;
}


/* ── ANIMATIONS ─────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.banner-content        { animation: fadeUp 0.6s ease both; }
.about                 { animation: fadeUp 0.6s 0.15s ease both; }
.post-banner-content   { animation: fadeUp 0.5s ease both; }
.page-banner-content   { animation: fadeUp 0.5s ease both; }

.post-item:nth-child(1) { animation: fadeUp 0.5s 0.20s ease both; }
.post-item:nth-child(2) { animation: fadeUp 0.5s 0.30s ease both; }
.post-item:nth-child(3) { animation: fadeUp 0.5s 0.40s ease both; }
.post-item:nth-child(4) { animation: fadeUp 0.5s 0.50s ease both; }
.post-item:nth-child(5) { animation: fadeUp 0.5s 0.55s ease both; }
.post-item:nth-child(6) { animation: fadeUp 0.5s 0.60s ease both; }


/* ── IN EVIDENZA SIDEBAR ────────────────────────── */

.in-evidenza {
  position: sticky;
  top: 80px;
}

.in-evidenza-label {
  font-size: 1.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: bold;
  color: var(--purple);
  font-family: 'Lora', serif;
  margin-bottom: 1rem;
}

.in-evidenza-divider {
  width: 40px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 1.5rem;
}

.in-evidenza-item {
  padding-bottom: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.in-evidenza-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.in-evidenza-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0.4rem 0;
  transition: color 0.2s;
}

.in-evidenza-title a {
  color: inherit;
  text-decoration: none;
}

.in-evidenza-title a:hover {
  color: var(--purple);
}


/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 900px) {
  .banner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 2rem;
  }
  .banner-svg { display: none; }

  .main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem 3rem;
  }
  .about { position: static; }
  .in-evidenza { position: static; }

  .post-wrap {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 3rem;
    gap: 2rem;
  }
  .post-toc { display: none; }

  .page-wrap {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 3rem;
    gap: 2rem;
  }
  .page-toc { display: none; }

  nav { padding: 0 1.5rem; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 600px) {
  .post-banner { padding: 2rem 1.5rem; }
  .post-related-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 2rem 1.5rem; }
  .nav-links { gap: 1rem; }
}
