/* Design tokens — viral image hub (pink / purple gradient + serif headings) */
:root {
  --viral-pink: #c2185b;
  --viral-purple: #7b1fa2;
  --viral-gradient: linear-gradient(135deg, var(--viral-purple) 0%, var(--viral-pink) 52%, #ad1457 100%);
  --viral-gradient-soft: linear-gradient(160deg, rgba(123, 31, 162, 0.12) 0%, rgba(194, 24, 91, 0.1) 100%);
  --color-bg-deep: #eee8f2;
  --color-bg: #f8f4fb;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-border: rgba(90, 40, 70, 0.12);
  --color-text: #1a0f1f;
  --color-muted: #4a3d52;
  --color-accent: var(--viral-pink);
  --color-accent-2: #9c1460;
  --color-accent-strong: #880e4f;
  --color-brand: var(--viral-pink);
  --color-brand-deep: #560f3a;
  --color-rose: #e91e8c;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 36px rgba(40, 12, 35, 0.1);
  --shadow-soft: 0 4px 20px rgba(80, 30, 55, 0.08);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.75rem;
  --space-12: 3.5rem;
  --space-16: 4.5rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.65rem;
  --text-3xl: clamp(1.85rem, 4vw, 2.5rem);
  --text-hero: clamp(2.25rem, 5.5vw, 3.25rem);
  --leading-tight: 1.15;
  --leading-snug: 1.4;
  --leading-normal: 1.65;
  --max-content: 640px;
  --max-read: 34rem;
  --max-wide: 1180px;
  --post-image-max: min(1020px, 94vw);
  --section-gap: clamp(2.5rem, 5vw, 3.75rem);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --motion-duration: 0.35s;
  /* Unified image tiles site-wide (grids, hero, thumbs, hover preview) — 2:3 frame everywhere */
  --site-media-aspect: 2 / 3;
  --site-media-radius: var(--radius-md);
  --site-media-border: 1px solid var(--color-border);
  --site-media-shadow: var(--shadow-card);
  --site-media-object-fit: cover;

  /* Italian tricolor — accents only (~5–10% of UI); keep primary pink/purple */
  --it-green: #009246;
  --it-white: #ffffff;
  --it-red: #ce2b37;
  --it-green-soft: color-mix(in srgb, var(--it-green) 22%, transparent);
  --it-red-soft: color-mix(in srgb, var(--it-red) 22%, transparent);
  --it-line: linear-gradient(90deg, var(--it-green), color-mix(in srgb, var(--it-white) 88%, transparent), var(--it-red));
  --it-line-strong: linear-gradient(115deg, var(--it-green), var(--it-white), var(--it-red));
  --it-accent-dur: 0.26s;
  --it-accent-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Viral share pills — scale down on narrow viewports, cap at post desktop size */
  --share-pill-size: clamp(2rem, 11vw, 3rem);
  --share-pill-gap: clamp(0.2rem, 2vw, 0.75rem);
  --share-svg-size: clamp(14px, 4vw, 22px);
}

/* Portrait tile: same frame everywhere; image scales inside without cropping */
.site-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--site-media-aspect);
  overflow: hidden;
  border-radius: var(--site-media-radius);
  background:
    radial-gradient(100% 80% at 50% 120%, rgba(120, 60, 100, 0.35), transparent 52%),
    linear-gradient(168deg, #1c1224 0%, #2a1830 42%, #0f0814 100%);
}

.site-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--site-media-object-fit);
  object-position: center;
  display: block;
}

/* Outer card already clips corners — avoid double radius */
.home-feature__link > .site-media,
.pin-card__link > .site-media,
.related-card__stack .site-media {
  border-radius: 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Reserve scrollbar width so layout does not “jump” when the bar appears */
  scrollbar-gutter: stable;
  /* Full-bleed sections use 100vw; without this, a vertical scrollbar can cause a brief horizontal overflow/reflow */
  overflow-x: hidden;
}

body.theme-magazine {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: #f7f5f9;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -8%, rgba(123, 31, 162, 0.06), transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 12%, rgba(194, 24, 91, 0.04), transparent 48%),
    linear-gradient(180deg, #faf9fb 0%, #f7f5f9 42%, #f2f0f5 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-brand-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-4);
}

/* Header — sticky editorial strip (flat, high-trust) */
.site-header--magazine {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(26, 15, 31, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset;
}

html.site-nav-is-open {
  overflow: hidden;
}

html.site-nav-is-open body {
  overflow: hidden;
  touch-action: none;
}

.site-header--magazine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(86, 15, 58, 0.35) 18%, rgba(194, 24, 91, 0.45) 50%, rgba(86, 15, 58, 0.35) 82%, transparent 100%);
  pointer-events: none;
  opacity: 0.85;
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Magazine header: edge-to-edge bar; inner padding respects safe areas */
.site-header--magazine .site-header__inner {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: max(var(--space-5), env(safe-area-inset-left));
  padding-right: max(var(--space-5), env(safe-area-inset-right));
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
}

/* Narrow viewports: header search + desktop nav are hidden; keep a single header row
   (logo + menu) so we do not reserve a second flex line for an empty .site-header__end). */
@media (max-width: 899.98px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-header__end {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    gap: 0;
    overflow: visible;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .site-header--magazine .logo.logo--magazine {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 5.75rem);
  }
}

.logo--magazine {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  padding: var(--space-2) var(--space-3);
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-3));
  border-radius: var(--radius-md);
  transition:
    transform var(--motion-duration) var(--ease-out),
    box-shadow var(--motion-duration) var(--ease-out),
    background 0.25s ease;
}

.logo--magazine:hover {
  background: rgba(26, 15, 31, 0.04);
  box-shadow: none;
  transform: none;
}

.logo--magazine:active {
  transform: none;
}

.logo__serif {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1.12;
}

.logo__heart {
  color: var(--color-brand);
  font-size: 0.72em;
  opacity: 0.88;
}

.logo__sans {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.logo.logo--magazine:hover .logo__serif {
  color: var(--color-brand-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search-form {
  display: none;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  box-shadow: 0 1px 4px rgba(60, 20, 45, 0.06);
}

@media (min-width: 900px) {
  .header-search-form {
    display: inline-flex;
    max-width: 14rem;
  }
}

.header-search-form__input {
  width: 8.5rem;
  min-width: 0;
  flex: 1 1 auto;
  padding: var(--space-2) var(--space-3);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.header-search-form__input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

/* Drop mouse-click ring only; keyboard uses :focus-visible rule below */
.header-search-form__input:focus:not(:focus-visible) {
  outline: none;
}

.header-search-form:focus-within {
  border-color: rgba(194, 24, 91, 0.35);
  box-shadow: 0 2px 10px rgba(80, 30, 55, 0.1);
}

.site-header--magazine .header-search-form {
  border-color: rgba(26, 15, 31, 0.12);
  border-radius: 999px;
  box-shadow: none;
  background: #fafafa;
}

.site-header--magazine .header-search-form:focus-within {
  border-color: rgba(86, 15, 58, 0.28);
  box-shadow: 0 0 0 2px rgba(86, 15, 58, 0.08);
  background: #fff;
}

.header-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  color: var(--color-brand);
  background: linear-gradient(180deg, #fff 0%, #faf5f9 100%);
  border: none;
  border-left: 1px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
}

.header-search-form__submit:hover {
  color: var(--color-brand-deep);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff 0%, #f5eef4 100%);
  border: 1px solid rgba(194, 24, 91, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(60, 20, 45, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(194, 24, 91, 0.35);
  box-shadow: 0 4px 16px rgba(80, 30, 55, 0.1);
}

.site-header--magazine .nav-toggle {
  font-weight: 600;
  background: #fafafa;
  border: 1px solid rgba(26, 15, 31, 0.12);
  box-shadow: none;
}

.site-header--magazine .nav-toggle:hover {
  background: #f3f3f5;
  border-color: rgba(26, 15, 31, 0.2);
  box-shadow: none;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.125rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.nav-toggle__line {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__text {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav-backdrop {
  display: none;
}

@media (max-width: 899.98px) {
  .site-nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(18, 6, 22, 0.45);
    backdrop-filter: blur(2px);
  }
}

/* Header nav: single horizontal list (desktop), compact drawer (mobile) */
.site-nav.site-nav--simple {
  display: none;
  width: 100%;
  padding: 0;
}

.site-nav.site-nav--simple.is-open {
  display: block;
}

.site-nav--simple .site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav--simple .site-nav__list > li {
  margin: 0;
}

@media (max-width: 899.98px) {
  .site-nav.site-nav--simple.is-open {
    position: fixed;
    left: max(var(--space-3), env(safe-area-inset-left));
    right: max(var(--space-3), env(safe-area-inset-right));
    top: calc(4.25rem + var(--space-2));
    z-index: 55;
    max-height: min(78vh, 32rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fffefb 0%, #faf5fb 100%);
    border: 1px solid rgba(194, 24, 91, 0.18);
    box-shadow:
      0 20px 60px rgba(40, 12, 35, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    -webkit-overflow-scrolling: touch;
  }

  .site-header--magazine .site-nav.site-nav--simple.is-open {
    background: #ffffff;
    border: 1px solid rgba(26, 15, 31, 0.1);
    box-shadow:
      0 16px 48px rgba(15, 8, 20, 0.12),
      0 0 0 1px rgba(255, 255, 255, 1) inset;
  }

  .site-nav--simple .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .site-nav--simple .site-nav__list a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
  }

  .site-header--magazine .site-nav--simple .site-nav__list a {
    font-weight: 500;
    color: rgba(26, 15, 31, 0.88);
    border-radius: var(--radius-sm);
  }

  .site-header--magazine .site-nav--simple .site-nav__list a:active {
    background: rgba(26, 15, 31, 0.05);
  }
}

@media (min-width: 900px) {
  .site-header--magazine .site-header__inner {
    padding-block: var(--space-5);
    padding-inline: clamp(var(--space-4), 3.5vw, var(--space-10));
    gap: clamp(var(--space-4), 2.5vw, var(--space-8));
    align-items: center;
    flex-wrap: nowrap;
  }

  .site-header--magazine .logo--magazine {
    flex-shrink: 0;
  }

  .site-header--magazine .site-header__end {
    flex: 1 1 0%;
    min-width: 0;
    gap: clamp(var(--space-4), 2.5vw, var(--space-8));
    align-items: center;
  }

  .site-header--magazine .site-nav.site-nav--simple {
    display: flex;
    align-items: stretch;
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  /* Primary nav: horizontal editorial row (wraps on mid-width viewports) */
  .site-header--magazine .site-nav--simple .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    column-gap: clamp(0.2rem, 1.2vw, 1.1rem);
    row-gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-header--magazine .site-nav--simple .site-nav__list > li {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
  }

  .site-header--magazine .site-nav__item--mobile-only {
    display: none !important;
  }

  .site-header--magazine .site-nav--simple .site-nav__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) clamp(0.35rem, 0.8vw, 0.65rem);
    min-height: 2.5rem;
    font-size: clamp(0.8125rem, 0.78rem + 0.25vw, 0.9375rem);
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: var(--leading-snug);
    color: rgba(26, 15, 31, 0.82);
    border-radius: var(--radius-sm);
    background: transparent;
    max-width: none;
    width: auto;
    white-space: normal;
    text-align: left;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
  }

  .site-header--magazine .site-nav--simple .site-nav__list a:focus-visible {
    outline: 2px solid rgba(86, 15, 58, 0.35);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }

  .site-header--magazine .site-nav--simple .site-nav__list a:hover {
    color: var(--color-text);
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(86, 15, 58, 0.45);
    transform: none;
    box-shadow: none;
  }

  .site-header--magazine .site-nav--simple .site-nav__list > li:first-child a {
    font-weight: 600;
    color: var(--color-text);
  }

  .site-header--magazine .header-search-form {
    flex-shrink: 0;
    max-width: min(16rem, 28vw);
  }

  .site-header--magazine .header-search-form__input {
    width: auto;
    min-width: 5rem;
  }
}

.site-nav--simple a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav--simple a:hover {
  color: var(--color-brand);
  background: rgba(142, 36, 88, 0.06);
}

@media (min-width: 900px) {
  .site-nav--simple a:hover {
    background: transparent;
  }
}

/* Main */
.site-main {
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-10) var(--space-5) var(--space-16);
  background: var(--color-bg-elevated);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(80, 40, 60, 0.04);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .site-main {
    margin-top: var(--space-4);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-md);
  }
}

/* Widen canvas for image-first posts (SEO markup unchanged) */
@supports selector(:has(*)) {
  .site-main:has(.post-page--image-first) {
    max-width: min(var(--max-wide), 1120px);
    padding-top: var(--space-10);
    padding-bottom: calc(var(--space-16) + var(--space-4)));
  }

  .site-main:has(.home-magazine) {
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    padding-top: 0;
  }
}

.site-main--narrow {
  max-width: calc(var(--max-content) + var(--space-10) * 2);
}

@media (max-width: 639.98px) {
  .site-main {
    padding: var(--space-6) var(--space-3) var(--space-12);
  }

  .site-header--magazine .site-header__inner {
    padding-left: max(var(--space-3), env(safe-area-inset-left));
    padding-right: max(var(--space-3), env(safe-area-inset-right));
  }

  .site-footer__inner {
    padding-inline: var(--space-3);
  }

  .share-row--viral {
    padding-inline: var(--space-2);
    margin-bottom: var(--space-8);
    max-width: 100%;
  }

  @supports selector(:has(*)) {
    .site-main:has(.post-page--image-first) {
      padding-left: var(--space-3);
      padding-right: var(--space-3);
    }
  }
}

/* Footer — deep strip + multi-column menus */
.site-footer {
  border-top: none;
  background: linear-gradient(180deg, var(--viral-purple) 0%, var(--color-brand-deep) 55%, #2d0a1f 100%);
  margin-top: var(--space-12);
  color: #fdf8fc;
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5) var(--space-8);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8) var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns:
      minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-5);
  }

  .site-footer__col--brand {
    grid-column: auto;
  }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

.site-footer__brand {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.03em;
}

.site-footer__tagline {
  margin: 0;
  max-width: 26rem;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: rgba(255, 248, 252, 0.78);
}

.site-footer__note {
  margin: var(--space-4) 0 0;
  max-width: 28rem;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: rgba(255, 248, 252, 0.62);
}

.site-footer__heading {
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 214, 232, 0.95);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__list a {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 250, 252, 0.92);
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__list a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 200, 220, 0.45);
}

.site-footer__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.site-footer__base {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 248, 252, 0.14);
}

.site-footer__disclaimer {
  margin: 0 0 var(--space-4);
  max-width: 52rem;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: rgba(255, 248, 252, 0.58);
}

.site-footer__base .site-footer__copy {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: rgba(255, 248, 252, 0.7);
}

/* Home — viral image hub */
.home-magazine {
  margin: 0;
}

.home-magazine--viral {
  padding-bottom: var(--space-8);
  max-width: 100%;
  overflow-x: clip;
}

.home-hero-viral {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 16px 24px;
  max-height: 160px;
  text-align: center;
  background: var(--viral-gradient);
  box-shadow:
    0 20px 60px rgba(74, 20, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.home-hero-viral__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.home-hero-viral__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.home-hero-viral__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fffefd;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.home-hero-viral__tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1.0rem);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: rgba(255, 250, 252, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.home-hero-viral__tagline strong {
  font-weight: 800;
  color: #fff;
}

@media (max-width: 768px) {
  /* 100vw + negative margins overflow when scrollbar consumes width — stay inside main */
  .home-hero-viral {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
    position: relative;
    max-height: 120px;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .home-hero-viral__tagline {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }

  .home-hero-viral__title {
    overflow-wrap: anywhere;
  }
}

.home-columns {
  display: grid;
  gap: var(--space-8);
  padding-top: var(--space-10);
}

.home-columns--viral {
  padding-top: var(--space-8);
}

/* Grid track must shrink so masonry columns get a stable width (avoids lopsided tiles) */
.home-columns__main,
.home-columns__main--viral {
  min-width: 0;
}

@media (min-width: 1024px) {
  .home-columns {
    grid-template-columns: 1fr min(320px, 34%);
    gap: var(--space-10);
    align-items: start;
  }

  /* Viral home: full-width, no sidebar — maximises image grid density */
  .home-columns--viral {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home-columns--viral .home-rail__sticky {
    align-items: flex-end;
    width: 100%;
  }

  .home-columns--viral .home-rail__sticky > .ad-region,
  .home-columns--viral .home-rail__block {
    width: 100%;
    max-width: min(320px, 100%);
    margin-inline-start: auto;
  }

  .home-columns--viral .home-rail__block-title {
    text-align: end;
  }
}

.home-band {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-band__head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.home-band__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-brand-deep);
  background: linear-gradient(90deg, var(--color-brand-deep), var(--viral-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .home-band__title {
    color: var(--color-brand-deep);
    background: none;
  }
}

.home-band__sub {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
  max-width: 36rem;
}

/* Single-stream home masonry (unified clusters); no per-band H2 chrome */
.home-masonry-feed {
  margin: 0 0 var(--space-8);
}

.home-masonry-feed .home-masonry--unified-feed {
  margin-top: 0;
}

/* perf: browser may skip layout/paint for far-off tiles (no visual change for in-view cards) */
.home-masonry--unified-feed .pin-card--masonry {
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.home-feed-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-8) 0 var(--space-4);
}

.home-feed-more__btn {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fffefd;
  background: linear-gradient(135deg, var(--color-brand-deep), var(--viral-pink));
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(74, 20, 60, 0.2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.home-feed-more__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 20, 60, 0.28);
}

.home-feed-more__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.home-feed-more__sentinel {
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.home-band--after-feed {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(90, 40, 70, 0.08);
}

.home-band__head--soft {
  margin-bottom: var(--space-3);
}

.home-band__title--soft {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-band__sub--soft {
  font-size: 0.875rem;
  color: rgba(74, 61, 82, 0.82);
}

.home-raccolta-band__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-brand-deep);
}

.home-raccolta-band__more {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
}

.home-raccolta-band__more a {
  color: var(--color-brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Italian accent: section badges (trend / share) —— */
.home-band__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.home-band__title-row .home-band__title {
  margin-bottom: 0;
}

.it-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.45rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(90, 40, 70, 0.1);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.it-badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--it-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--it-green) 25%, transparent);
}

.it-badge--trend::before {
  background: var(--it-green);
  box-shadow: 0 0 0 2px var(--it-green-soft);
}

.it-badge--heart {
  padding-left: 0.55rem;
  border-color: color-mix(in srgb, var(--it-red) 18%, rgba(90, 40, 70, 0.12));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--it-red-soft);
}

.it-badge--heart::before {
  display: none;
}

.home-masonry .pin-card__media--zoom > img,
.category-masonry--viral .pin-card__media--zoom > img {
  object-fit: cover;
}

/* Home “Categorie”: uniform tiles (grid, not masonry columns) — one column on phones */
.home-cat-grid.pin-grid.pin-grid--cats {
  display: grid;
  column-count: unset;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .home-cat-grid.pin-grid.pin-grid--cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

@media (min-width: 900px) {
  .home-cat-grid.pin-grid.pin-grid--cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .home-cat-grid.pin-grid.pin-grid--cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pin-card.pin-card--cat-tile {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pin-card.pin-card--cat-tile .pin-card__link--cat {
  flex: 1 1 auto;
  min-height: 12.5rem;
  height: 100%;
}

.pin-card__link--cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-card);
}

.pin-card__cat-gradient {
  position: absolute;
  inset: 0;
  background: var(--viral-gradient-soft), linear-gradient(165deg, rgba(194, 24, 91, 0.2) 0%, rgba(123, 31, 162, 0.35) 100%);
}

.pin-card__body--cat {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  color: var(--color-text);
}

.pin-card__body--cat strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-brand-deep);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pin-card__body--cat p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.pin-card__link--cat .pin-card__meta {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--viral-pink);
}

.home-seo-deferred {
  margin-top: var(--space-12);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--color-border);
}

.prose-flow .home-intro:first-child {
  margin-top: 0;
}

/* Sticky rail (desktop) */
.home-rail {
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.home-rail__sticky {
  position: sticky;
  top: calc(4.5rem + var(--space-4));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-2);
}

.home-rail__block {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #fff 0%, #faf5fb 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.home-rail__block-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--viral-pink);
}

.home-rail__empty {
  color: var(--color-muted) !important;
}

.rail-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rail-mini-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(194, 24, 91, 0.1);
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.rail-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 24, 91, 0.28);
  box-shadow: 0 8px 22px rgba(80, 20, 55, 0.1);
}

.rail-mini-card__thumb.site-media {
  width: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.rail-mini-card__thumb.site-media > img {
  object-fit: cover;
}

.rail-mini-card__text {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-snug);
  flex: 1;
  min-width: 0;
}

.rail-mini-card--hub {
  padding: var(--space-3) var(--space-4);
}

.rail-mini-card__badge {
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
  color: var(--viral-purple);
  font-size: 0.9rem;
}

.rail-mini-card--collection {
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
}

.rail-mini-card__collection-icon {
  flex-shrink: 0;
  color: var(--viral-pink);
  font-size: 1rem;
  line-height: 1.4;
}

.rail-mini-card__col-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.rail-mini-card__hint {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* Mobile bottom rail */
.home-rail-mobile {
  display: none;
  margin-top: var(--space-10);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--color-border);
}

.home-rail-mobile__section {
  margin-bottom: var(--space-10);
}

.home-rail-mobile__section:last-child {
  margin-bottom: 0;
}

@media (max-width: 1023.98px) {
  .home-rail-mobile {
    display: block;
  }
}

.related-grid--mobile-2 {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .related-grid--mobile-2 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-5);
  }
}

.related-card--hub-pill .related-card__stack--hub {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  background: var(--viral-gradient-soft);
  border: 1px solid rgba(194, 24, 91, 0.2);
}

.related-card--hub-pill .related-card__label {
  position: static;
  color: var(--color-brand-deep);
  text-shadow: none;
  font-size: var(--text-xs);
}

.home-intro {
  margin: 0 0 var(--space-8);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-muted);
  max-width: 46rem;
  overflow-wrap: anywhere;
}

.home-intro a {
  color: var(--color-brand);
  font-weight: 700;
  text-decoration: none;
}

.home-intro a:hover {
  text-decoration: underline;
}

.home-intro--count {
  margin-top: calc(-1 * var(--space-4));
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.home-intro--count strong {
  color: var(--color-brand);
}

.home-freshness {
  margin: var(--space-8) 0 var(--space-10);
  padding: var(--space-6) var(--space-6);
  max-width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 252, 254, 0.98), rgba(244, 232, 248, 0.55));
  border: 1px solid rgba(142, 36, 88, 0.14);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 639.98px) {
  .home-freshness {
    padding-inline: var(--space-4);
  }
}

.home-freshness__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-brand-deep);
  letter-spacing: 0.03em;
}

.home-freshness__text {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-muted);
}

.home-freshness__meta {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand);
}

.home-section-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #9b2f5c 0%, #5c1a3d 50%, #3d1230 100%);
  box-shadow: var(--shadow-soft);
}

.home-section-bar__label {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.home-feature {
  margin-bottom: var(--space-12);
}

.home-feature__link {
  display: block;
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow: var(--site-media-shadow);
  line-height: 0;
}

.home-feature__meta {
  padding: var(--space-5) 0 0;
}

.home-feature__heading {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
}

.home-feature__heading a {
  color: var(--color-text);
  text-decoration: none;
}

.home-feature__heading a:hover {
  color: var(--color-brand);
}

.home-feature__lead {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.home-featured-cats {
  margin-top: var(--space-4);
}

.section-head--home {
  margin-bottom: var(--space-6);
}

/* Legacy sidebar skin (unused when .home-rail is present) */
.home-sidebar:not(.home-rail) {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #6a2045 0%, #42122c 55%, #2a0c1c 100%);
  color: #fffefd;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1023.98px) {
  .home-rail.home-sidebar--rail {
    display: none;
  }
}

.home-recent-mobile__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-8);
  letter-spacing: 0.04em;
  color: var(--color-brand-deep);
}

.home-recent-mobile__grid {
  margin-top: 0;
}

.home-recent-mobile__empty {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: var(--leading-snug);
}

.home-sidebar__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 250, 252, 0.85);
}

.home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-recent-list__item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.home-recent-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  text-decoration: none;
  color: #fffefd;
}

.home-recent-list__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.home-recent-list__text {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--leading-snug);
  flex: 1;
  min-width: 0;
}

.home-recent-list__thumb.site-media {
  flex-shrink: 0;
  width: 52px;
  max-width: 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.home-sidebar__empty {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: rgba(255, 250, 252, 0.7);
}

.home-rail .home-sidebar__empty {
  color: var(--color-muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.section-head--compact {
  margin-bottom: var(--space-6);
}

.section-head--compact h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 28rem;
}

/* Pinterest-style masonry — one column on narrow phones; 2+ from small tablet */
.pin-grid {
  width: 100%;
  min-width: 0;
}

.pin-grid:not(.pin-grid--cats) {
  column-count: 1;
  column-gap: 8px;
}

.pin-grid--masonry {
  column-gap: 8px;
}

.category-masonry--viral.pin-grid {
  column-count: 1;
  column-gap: 8px;
}

@media (min-width: 640px) {
  .pin-grid:not(.pin-grid--cats),
  .category-masonry--viral.pin-grid {
    column-count: 2;
    column-gap: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pin-grid:not(.pin-grid--cats),
  .category-masonry--viral.pin-grid {
    column-count: 3;
    column-gap: 12px;
  }
}

@media (min-width: 1025px) {
  .pin-grid:not(.pin-grid--cats),
  .category-masonry--viral.pin-grid {
    column-count: 4;
    column-gap: 14px;
  }
}

@media (min-width: 1280px) {
  .pin-grid:not(.pin-grid--cats),
  .category-masonry--viral.pin-grid {
    column-count: 5;
    column-gap: 14px;
  }
}

@media (min-width: 1200px) {
  .pin-grid--cats {
    column-count: 4;
  }
}

/*
 * Home masonry — placed AFTER generic .pin-grid column rules so it always wins.
 * Extra ancestor (.home-magazine) raises specificity past a lone .pin-grid media override.
 */
.home-magazine .pin-grid.pin-grid--masonry.home-masonry {
  width: 100%;
  min-width: 0;
  column-count: 1;
  column-gap: var(--space-3);
}

@media (max-width: 479.98px) {
  .pin-grid:not(.pin-grid--cats),
  .category-masonry--viral.pin-grid {
    column-count: 1;
    column-gap: 8px;
  }

  .home-magazine .pin-grid.pin-grid--masonry.home-masonry {
    column-count: 1;
    column-gap: 8px;
  }

  .pin-grid--masonry > .pin-card--masonry .pin-card__shell {
    padding: 6px;
  }

  /* Share strip under the image instead of over it (touch targets stay large, photo stays visible) */
  .pin-card--share-on-image .pin-card__image-stack {
    display: flex;
    flex-direction: column;
  }

  .pin-card--share-on-image .pin-card__image-stack > .pin-card__toolbar {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    opacity: 1;
    transform: none;
    border-top: 1px solid rgba(30, 18, 40, 0.08);
    background: rgba(252, 250, 253, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-block: var(--space-2);
  }

  .pin-card--with-actions.pin-card--share-on-image .pin-card__overlay-title {
    padding-bottom: var(--space-3);
  }
}

@media (min-width: 640px) {
  .home-magazine .pin-grid.pin-grid--masonry.home-masonry {
    column-count: 2;
    column-gap: 10px;
  }
}

@media (min-width: 769px) {
  .home-magazine .pin-grid.pin-grid--masonry.home-masonry {
    column-count: 3;
    column-gap: 12px;
  }
}

@media (min-width: 1025px) {
  .home-magazine .pin-grid.pin-grid--masonry.home-masonry {
    column-count: 4;
    column-gap: 14px;
  }
}

@media (min-width: 1280px) {
  .home-magazine .pin-grid.pin-grid--masonry.home-masonry {
    column-count: 5;
    column-gap: 14px;
  }
}

.pin-card {
  break-inside: avoid;
  margin-bottom: var(--space-5);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Multi-column masonry: inline-block + full width avoids uneven inset in WebKit/Chromium */
.pin-grid--masonry > .pin-card {
  display: inline-block;
  vertical-align: top;
}

.pin-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow: var(--site-media-shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.pin-card__link:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 170, 230, 0.35);
  box-shadow: var(--shadow-card), var(--shadow-soft);
}

.pin-card__link--overlay {
  background: transparent;
}

.pin-card__media {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--color-bg-elevated);
}

.pin-card__media--zoom {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.pin-card__media--zoom > img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pin-card__link--overlay:hover .pin-card__media--zoom img,
.pin-card__link--overlay:focus-visible .pin-card__media--zoom img {
  transform: scale(1.09);
}

/* Home grids: no hover zoom on tiles (category / entity grids unchanged) */
.home-masonry .pin-card__media--zoom > img {
  transition: none;
  will-change: auto;
}

.home-masonry .pin-card__link--overlay:hover .pin-card__media--zoom img,
.home-masonry .pin-card__link--overlay:focus-visible .pin-card__media--zoom img {
  transform: none;
}

/* Pin cards: overlay toolbar (WhatsApp / download / copy / save) */
.pin-card--with-actions .pin-card__shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow: var(--site-media-shadow);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.pin-card--with-actions .pin-card__link {
  display: block;
  width: 100%;
  max-width: 100%;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.pin-card--with-actions:hover .pin-card__shell,
.pin-card--with-actions:focus-within .pin-card__shell {
  transform: translateY(-3px);
  border-color: rgba(200, 170, 230, 0.35);
  box-shadow: var(--shadow-card), var(--shadow-soft);
}

.pin-card--with-actions:hover .pin-card__link,
.pin-card--with-actions:focus-within .pin-card__link {
  transform: none;
}

/* Italian accent: thin tricolor ring on cards (mask border; behind content) */
/* Home-only: wraps link + toolbar so share row layers on the image */
.pin-card__image-stack {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/*
 * Shell ::before uses z-index: 0. Without a z-index here, the stack stays "auto"
 * and the ring can paint above the image + toolbar in column/masonry layouts.
 */
.pin-card--share-on-image .pin-card__image-stack {
  z-index: 1;
  isolation: isolate;
}

.pin-card--share-on-image .pin-card__image-stack > .pin-card__link {
  position: relative;
  z-index: 1;
}

.pin-card--share-on-image .pin-card__image-stack > .pin-card__toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 3;
}

.pin-card--with-actions:not(.pin-card--share-on-image) .pin-card__shell > .pin-card__link,
.pin-card--with-actions:not(.pin-card--share-on-image) .pin-card__shell > .pin-card__toolbar {
  position: relative;
  z-index: 1;
}

.pin-card--with-actions .pin-card__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--it-line-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--it-accent-dur) var(--it-accent-ease);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@media (hover: hover) and (pointer: fine) {
  .pin-card--with-actions:hover .pin-card__shell::before,
  .pin-card--with-actions:focus-within .pin-card__shell::before {
    opacity: 0.92;
  }

  .pin-card--it-featured .pin-card__shell::before {
    opacity: 0.42;
  }

  .pin-card--it-featured:hover .pin-card__shell::before,
  .pin-card--it-featured:focus-within .pin-card__shell::before {
    opacity: 0.95;
  }
}

@media (hover: none), (pointer: coarse) {
  .pin-card--with-actions .pin-card__shell::before {
    opacity: 0.2;
  }

  .pin-card--with-actions:focus-within .pin-card__shell::before,
  .pin-card--with-actions:active .pin-card__shell::before {
    opacity: 0.95;
  }

  .pin-card--it-featured .pin-card__shell::before {
    opacity: 0.48;
  }

  .pin-card--it-featured:focus-within .pin-card__shell::before,
  .pin-card--it-featured:active .pin-card__shell::before {
    opacity: 0.98;
  }
}

/* Download count — top-left over image (outside bottom toolbar) */
.pin-card__media {
  position: relative;
}

.pin-card__dl-stat {
  position: absolute;
  z-index: 3;
  top: var(--space-2);
  left: var(--space-2);
  max-width: calc(100% - var(--space-4));
  padding: 0.2rem 0.45rem 0.2rem 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fffefd;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  pointer-events: none;
  border-radius: var(--radius-sm);
  background: rgba(12, 6, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pin-card__dl-stat--on-empty {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
}

.pin-card__toolbar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-block: max(var(--space-2), env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
  /* Light glass strip; hidden on fine-pointer until hover / focus-within shell */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(12, 6, 18, 0.22) 100%
  );
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.65rem);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.pin-card--with-actions:hover .pin-card__toolbar,
.pin-card--with-actions:focus-within .pin-card__toolbar {
  opacity: 1;
  transform: translateY(0);
}

/* Card overlay: equal visual inset from card left/right (space-evenly + symmetric padding) */
.pin-card__toolbar .share-row.share-row--pin-card {
  margin: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.pin-card__toolbar .share-row--pin-card .share-btn {
  pointer-events: none;
}

.pin-card--with-actions:hover .pin-card__toolbar .share-row--pin-card .share-btn,
.pin-card--with-actions:focus-within .pin-card__toolbar .share-row--pin-card .share-btn {
  pointer-events: auto;
}

/* Touch / coarse: keep actions visible and tappable (no hover-only) */
@media (hover: none), (pointer: coarse) {
  .pin-card--with-actions .pin-card__toolbar {
    opacity: 1;
    transform: none;
  }

  .pin-card--with-actions .pin-card__toolbar .share-row--pin-card .share-btn {
    pointer-events: auto;
  }
}

/* Keep all four pills on one row; global .share-btn / .share-btn--* match the post page */
.pin-card__toolbar .share-row--pin-card .share-btn {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pin-card--with-actions .pin-card__shell {
    transition: none;
  }

  .pin-card--with-actions .pin-card__shell::before {
    transition: none;
  }

  .pin-card__toolbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
}

.home-rail__frasi-lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-muted);
}

.home-rail-mobile__frasi-lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.chip-row--rail-mobile {
  margin-bottom: 0;
}

.pin-card__media--empty {
  aspect-ratio: var(--site-media-aspect);
  min-height: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, rgba(180, 100, 130, 0.45), rgba(70, 20, 45, 0.92));
}

.pin-card--no-image .pin-card__media--empty {
  align-items: center;
  justify-content: center;
  min-height: min(200px, 55vw);
  aspect-ratio: var(--site-media-aspect);
  background: linear-gradient(135deg, #4a0030 0%, #8b1a4a 50%, #c0436a 100%);
}

.pin-card--no-image .pin-card__placeholder-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Masonry grids: 2:3 via .site-media on tile; 8px card inset */
.pin-grid--masonry > .pin-card--masonry {
  margin-bottom: 8px;
}

.pin-grid--masonry > .pin-card--masonry .pin-card__shell {
  padding: 8px;
}

.home-masonry--unified-feed .pin-card--masonry {
  contain-intrinsic-size: auto 420px;
}

.pin-card--masonry .pin-card__media--zoom > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pin-card--masonry .pin-card__overlay-title {
  font-size: 0.8rem;
}

.pin-card__overlay-title {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--space-10) var(--space-3) var(--space-3);
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: var(--leading-snug);
  color: #fffefd;
  letter-spacing: 0.02em;
  text-align: start;
  background: linear-gradient(transparent, rgba(18, 12, 28, 0.88));
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-card--with-actions .pin-card__overlay-title {
  padding-inline: var(--space-3);
  padding-bottom: calc(var(--space-3) + 2.85rem);
}

.pin-card__body {
  padding: var(--space-5);
}

.pin-card__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}

.pin-card__body p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.pin-card__meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-3);
}

/* Category hub */
.category-hub .lead,
.post-page .lead,
.entity-page .lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 40rem;
  line-height: var(--leading-snug);
}

.breadcrumbs {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-brand);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.category-hero-viral {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--space-5);
  margin-bottom: var(--space-8);
  text-align: center;
  background: var(--viral-gradient);
  box-shadow: 0 16px 48px rgba(60, 15, 45, 0.22);
}

@media (max-width: 768px) {
  .category-hero-viral {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
    position: relative;
    box-sizing: border-box;
    padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
  }
}

.category-hero-viral__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.category-hero-viral__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fffefd;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.category-hero-viral__meta {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 250, 252, 0.9);
}

.category-hero-viral__meta a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-hero-viral__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: var(--leading-snug);
  color: rgba(255, 250, 252, 0.78);
}

.category-hero-viral__lead-ellipsis {
  color: rgba(255, 250, 252, 0.65);
}

.category-hero-viral__lead-more {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  color: rgba(255, 250, 252, 0.88);
}

.category-hero-viral__lead-more-summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(255, 250, 252, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.category-hero-viral__lead-more-summary::-webkit-details-marker {
  display: none;
}

.category-hero-viral__lead-more-full {
  margin: var(--space-3) 0 0;
  line-height: var(--leading-snug);
  color: rgba(255, 250, 252, 0.88);
}

.category-grid-section--above-fold {
  margin-top: 0;
}

.section-head--viral-grid {
  margin-bottom: var(--space-5);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.section-head__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand-deep);
  letter-spacing: 0.03em;
}

.section-head__meta {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--viral-pink);
}

.hub-block--after-grid {
  margin-top: var(--space-12);
  background: linear-gradient(180deg, #fff 0%, #faf7fc 100%);
  box-shadow: var(--shadow-soft);
}

.pagination--viral {
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.pagination__btn--primary {
  padding: var(--space-3) var(--space-8);
  font-weight: 800;
  color: #fffefd !important;
  background: var(--viral-gradient) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(123, 31, 162, 0.35);
}

.pagination__btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.pagination__meta--pill {
  padding: var(--space-2) var(--space-5);
  border-radius: 999px;
  background: rgba(194, 24, 91, 0.08);
  border: 1px solid rgba(194, 24, 91, 0.2);
  font-weight: 800;
  color: var(--color-brand-deep);
}

.back-home--viral {
  margin-top: var(--space-10);
  text-align: center;
}

.back-home--viral a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-brand);
  box-shadow: var(--shadow-soft);
}

.back-home--viral a:hover {
  border-color: rgba(194, 24, 91, 0.35);
}

.category-hub__title,
.category-hub h1,
.entity-page h1 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-5);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.category-hub__lead {
  margin-bottom: var(--space-10);
}

.parent-entity {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.parent-entity a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.parent-entity a:hover {
  text-decoration: underline;
}

.hub-block {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.hub-block h2,
.hub-block__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: var(--leading-tight);
  color: var(--color-brand-deep);
}

.hub-block--variations {
  background: linear-gradient(165deg, rgba(255, 252, 254, 0.98) 0%, rgba(248, 242, 252, 0.92) 48%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(142, 36, 88, 0.12);
  box-shadow: 0 4px 24px rgba(74, 20, 60, 0.06);
}

.hub-block dl dt {
  font-weight: 600;
  margin-top: var(--space-4);
}

.hub-block dl dd {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
}

.hub-block .hub-block__linklist,
.hub-block .hub-block__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-block .hub-block__linklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: var(--space-2) var(--space-3);
  align-items: stretch;
  justify-items: stretch;
}

.hub-block .hub-block__linklist li {
  display: flex;
  margin: 0;
  min-width: 0;
}

.hub-block .hub-block__linklist a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: var(--color-brand-deep);
  background: linear-gradient(180deg, #fff 0%, #faf7fc 100%);
  border: 1px solid rgba(90, 40, 70, 0.14);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(40, 15, 35, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-out);
  overflow-wrap: anywhere;
}

.hub-block .hub-block__linklist a:hover {
  border-color: rgba(194, 24, 91, 0.38);
  color: var(--viral-pink);
  box-shadow: 0 4px 16px rgba(123, 31, 162, 0.12);
  transform: translateY(-1px);
}

.hub-block .hub-block__linklist a:focus-visible {
  outline: 2px solid rgba(194, 24, 91, 0.55);
  outline-offset: 2px;
}

.hub-block .hub-block__bullets li {
  position: relative;
  margin: 0 0 var(--space-2);
  padding-left: 1.15em;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-muted);
}

.hub-block .hub-block__bullets li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.55em;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--viral-pink);
  opacity: 0.85;
}

@media (max-width: 639.98px) {
  .hub-block {
    padding: var(--space-4) var(--space-4);
    margin-inline: 0;
  }

  .hub-block .hub-block__linklist {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    gap: var(--space-2);
  }

  .hub-block .hub-block__linklist a {
    min-height: 2.5rem;
    padding: 0.42rem 0.65rem;
    font-size: 0.78rem;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.pagination--pills {
  justify-content: center;
  gap: var(--space-5);
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.2s;
}

.pagination__btn:hover {
  border-color: rgba(200, 170, 230, 0.45);
  transform: translateY(-1px);
}

.pagination__meta {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.pagination a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

.back-home {
  margin-top: var(--space-8);
}

.back-home a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.back-home a:hover {
  color: var(--color-accent);
}

/* Post — image-first (hero before title) */
.post-page {
  max-width: var(--max-content);
  margin: 0 auto;
}

.post-page--image-first {
  max-width: none;
}

/* Mobile: end-nav before related grid (both after supplementary content) */
@media (max-width: 1023.98px) {
  .post-shell {
    display: flex;
    flex-direction: column;
  }

  .post-shell .post-end-nav {
    order: 1;
  }

  .post-shell .related-strip {
    order: 2;
  }
}

/* Post shell: hero + engagement rail (not inside article prose) */
.post-shell__hero-band {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-8);
}

.post-shell__hero-col {
  min-width: 0;
}

.post-shell__hero-col .post-visual {
  margin-bottom: 0;
}

.post-engage-rail {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.post-engage-rail--solo {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.post-engage-rail .post-engage-meta {
  text-align: left;
  margin-bottom: var(--space-3);
}

.post-engage-rail .share-row--viral {
  justify-content: flex-start;
  margin-bottom: var(--space-4);
  max-width: none;
}

.post-engage-rail .post-share-hint {
  text-align: left;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
}

@media (min-width: 900px) {
  .post-shell__hero-band {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: var(--space-8);
  }

  .post-engage-rail {
    position: sticky;
    top: calc(var(--space-4) + env(safe-area-inset-top, 0px));
  }
}

/* Post page: larger tap targets; WhatsApp green + burgundy download (narrow = stacked full-width) */
.post-page--image-first .post-engage-rail .share-row--viral {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.post-page--image-first .post-engage-rail .share-btn {
  width: 100%;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
  justify-content: center;
  gap: 8px;
}

.post-page--image-first .post-engage-rail .share-btn__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-page--image-first .post-engage-rail .share-btn--wa {
  background: #25d366;
  color: #fff;
  border-color: rgba(18, 120, 90, 0.35);
}

.post-page--image-first .post-engage-rail .share-btn--wa:hover {
  background: #20bd5a;
  color: #fff;
}

.post-page--image-first .post-engage-rail .share-btn--dl {
  background: var(--color-brand-deep);
  color: #fff;
  border-color: rgba(74, 15, 46, 0.45);
}

.post-page--image-first .post-engage-rail .share-btn--dl:hover {
  background: var(--color-brand);
  color: #fff;
}

@media (min-width: 900px) {
  .post-page--image-first .post-engage-rail .share-row--viral {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .post-page--image-first .post-engage-rail .share-btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 44px;
  }
}

.post-article {
  max-width: var(--max-content);
  margin: 0 auto;
}

.post-supplementary {
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  max-width: min(var(--max-wide), 1120px);
  margin-left: auto;
  margin-right: auto;
}

.post-supplementary__micro {
  margin-bottom: var(--space-8);
}

.post-explore {
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(14, 165, 233, 0.05));
  border: 1px solid var(--color-border);
}

.post-explore__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.post-explore__intro {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: var(--leading-snug);
  max-width: 40rem;
}

.post-explore .chip-row:last-child {
  margin-bottom: 0;
}

.post-explore .chip-row--group .chip--link {
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.post-explore .chip-row--group .chip--link:hover {
  background: rgba(142, 36, 88, 0.1);
  border-color: rgba(142, 36, 88, 0.38);
}

.post-related-region {
  scroll-margin-top: var(--space-6);
}

.post-breadcrumbs {
  font-size: var(--text-xs);
  opacity: 0.85;
  margin-bottom: var(--space-6);
}

.breadcrumbs__current {
  color: var(--color-muted);
}

.post-visual {
  display: flex;
  justify-content: center;
  margin: 0 auto var(--space-10);
}

.post-hero--focus {
  margin: 0;
  width: 100%;
  max-width: var(--post-image-max);
  background: transparent;
}

.post-hero__frame {
  position: relative;
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow:
    var(--site-media-shadow),
    0 24px 60px rgba(35, 12, 40, 0.18);
}

.post-hero__media.site-media {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.post-hero__media > img {
  transition: transform calc(var(--motion-duration) + 0.15s) var(--ease-out);
}

.post-hero__frame:hover .post-hero__media > img {
  transform: scale(1.03);
}

.post-hero__scrim {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 14, 0) 35%,
    rgba(12, 6, 20, 0.45) 72%,
    rgba(10, 4, 16, 0.82) 100%
  );
  z-index: 1;
}

.post-hero__caption--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: #fff9fd;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, transparent, rgba(6, 2, 12, 0.75));
}

.post-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto var(--space-8);
}

.post-title {
  font-family: var(--font-display);
  margin: 0 0 var(--space-5);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-brand-deep);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

.post-lead {
  margin: 0 auto;
  max-width: 32rem;
  font-size: var(--text-lg);
  font-weight: 500;
  color: #5c4f6a;
  line-height: var(--leading-snug);
}

.post-share-hint {
  max-width: 36rem;
  margin: calc(-1 * var(--space-2)) auto var(--space-8);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.post-context-micro {
  max-width: 38rem;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: #6b5f78;
}

.post-story__divider {
  width: 4rem;
  height: 3px;
  margin: 0 auto var(--space-10);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--color-rose), var(--color-brand), transparent);
  opacity: 0.85;
}

.post-story {
  max-width: var(--max-read);
  margin: 0 auto var(--space-12);
  padding-top: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-muted);
  font-weight: 400;
}

.post-story :where(h2) {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-10);
}

.share-row--viral {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: 0 auto var(--space-12);
  max-width: 42rem;
}

.share-row--viral-trio {
  max-width: 38rem;
  gap: var(--space-3);
}

.share-row--viral-trio .share-btn {
  flex: 1 1 8rem;
  justify-content: center;
}

.share-row--icons.share-row--viral-trio .share-btn {
  flex: 0 0 auto;
  width: var(--share-pill-size);
  height: var(--share-pill-size);
  min-height: var(--share-pill-size);
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

.share-row--icons.share-row--viral-trio,
.share-row--icons.share-row--viral-quad {
  gap: var(--share-pill-gap);
}

.share-row--viral-quad {
  max-width: 44rem;
  gap: var(--space-3);
}

.share-row--viral-quad .share-btn {
  flex: 1 1 7rem;
  justify-content: center;
}

.share-row--icons.share-row--viral-quad .share-btn {
  flex: 0 0 auto;
  width: var(--share-pill-size);
  height: var(--share-pill-size);
  min-height: var(--share-pill-size);
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

.share-row--icons .share-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.share-btn__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  min-height: 2.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1228;
  border: 1px solid rgba(30, 18, 40, 0.08);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 15, 35, 0.08);
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    background 0.25s ease;
}

.share-btn__icon {
  display: flex;
  flex-shrink: 0;
  opacity: 0.92;
}

.share-btn__icon svg {
  display: block;
}

.share-row--icons .share-btn__icon svg {
  width: var(--share-svg-size);
  height: var(--share-svg-size);
}

/* Outline “f” reads smaller than filled glyphs — match weight to WhatsApp / Pinterest */
.share-btn--fb .share-btn__icon--stroke svg {
  width: var(--share-svg-size);
  height: var(--share-svg-size);
  margin: -1px;
}

@media (hover: hover) and (pointer: fine) {
  .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(40, 15, 35, 0.14);
  }
}

.share-btn--wa {
  background: linear-gradient(145deg, #d4f8e0, #8be0a8);
}

.share-btn--wa:hover {
  background: linear-gradient(145deg, color-mix(in srgb, var(--it-green) 92%, #128c7e), #128c7e);
  color: #fff;
  border-color: color-mix(in srgb, var(--it-green) 55%, rgba(18, 120, 90, 0.35));
  box-shadow:
    0 10px 26px rgba(40, 15, 35, 0.14),
    0 0 28px color-mix(in srgb, var(--it-red) 32%, transparent);
}

.share-btn--dl {
  background: linear-gradient(145deg, #e8f4ff, #c8dcf8);
  color: #1a2a44;
}

.share-btn--dl:hover {
  background: linear-gradient(145deg, color-mix(in srgb, var(--it-green) 35%, #e8fdf0), color-mix(in srgb, var(--it-green) 55%, #0d5c3a));
  color: #fff;
  border-color: color-mix(in srgb, var(--it-green) 40%, rgba(30, 60, 120, 0.25));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.1),
    0 0 0 1px color-mix(in srgb, var(--it-green) 28%, transparent);
}

.share-btn--pin {
  background: linear-gradient(145deg, #ffe0ec, #ffb3c9);
}

.share-btn--pin:hover {
  background: linear-gradient(145deg, color-mix(in srgb, var(--it-red) 88%, #bd081c), #9a1f28);
  color: #fff;
  border-color: color-mix(in srgb, var(--it-red) 45%, rgba(160, 8, 28, 0.45));
  box-shadow: 0 0 22px color-mix(in srgb, var(--it-red) 22%, transparent);
}

.share-btn--fb {
  background: linear-gradient(145deg, #dce6ff, #a8c0ff);
}

.share-btn--fb:hover {
  background: linear-gradient(145deg, #1877f2, #0c63d4);
  color: #fff;
  border-color: rgba(12, 80, 180, 0.4);
}

.share-btn--copy {
  background: linear-gradient(145deg, #f0e8f8, #dcccf0);
  color: #2a2238;
}

.share-btn--copy:hover {
  background: linear-gradient(145deg, var(--color-brand), var(--color-brand-deep));
  color: #fff;
  border-color: rgba(74, 15, 46, 0.45);
}

.prose {
  font-size: var(--text-base);
  color: var(--color-muted);
}

.prose :where(h2) {
  color: var(--color-text);
  font-size: var(--text-xl);
  margin-top: var(--space-8);
}

/* Italian accent: content links — gradient underline draws on hover/focus */
.theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)),
.theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)),
.theme-magazine .post-intent-links :where(a[href]),
.theme-magazine .post-explore :where(a[href]),
.theme-magazine .home-seo-intro :where(a[href]),
.theme-magazine .post-seo-landing :where(a[href]),
.theme-magazine .collection-intro :where(a[href]) {
  text-decoration: none;
  color: var(--color-accent-strong);
  background-image: var(--it-line);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--it-accent-dur) var(--it-accent-ease), color var(--it-accent-dur) var(--it-accent-ease);
}

.theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)):hover,
.theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)):focus-visible,
.theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)):hover,
.theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)):focus-visible,
.theme-magazine .post-intent-links :where(a[href]):hover,
.theme-magazine .post-intent-links :where(a[href]):focus-visible,
.theme-magazine .post-explore :where(a[href]):hover,
.theme-magazine .post-explore :where(a[href]):focus-visible,
.theme-magazine .home-seo-intro :where(a[href]):hover,
.theme-magazine .home-seo-intro :where(a[href]):focus-visible,
.theme-magazine .post-seo-landing :where(a[href]):hover,
.theme-magazine .post-seo-landing :where(a[href]):focus-visible,
.theme-magazine .collection-intro :where(a[href]):hover,
.theme-magazine .collection-intro :where(a[href]):focus-visible {
  background-size: 100% 2px;
  color: var(--color-brand-deep);
}

@media (hover: none), (pointer: coarse) {
  .theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)),
  .theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)),
  .theme-magazine .post-intent-links :where(a[href]),
  .theme-magazine .post-explore :where(a[href]),
  .theme-magazine .home-seo-intro :where(a[href]),
  .theme-magazine .post-seo-landing :where(a[href]),
  .theme-magazine .collection-intro :where(a[href]) {
    background-size: 55% 1px;
    opacity: 1;
  }

  .theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)):active,
  .theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)):active,
  .theme-magazine .post-intent-links :where(a[href]):active,
  .theme-magazine .post-explore :where(a[href]):active,
  .theme-magazine .home-seo-intro :where(a[href]):active,
  .theme-magazine .post-seo-landing :where(a[href]):active,
  .theme-magazine .collection-intro :where(a[href]):active {
    background-size: 100% 2px;
  }
}

.discover {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--color-border);
}

.discover__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  letter-spacing: 0.06em;
  color: var(--color-brand-deep);
}

.discover__intro {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 30rem;
  margin: 0 0 var(--space-10);
  line-height: var(--leading-snug);
}

.related-strip {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--color-border);
}

.related-strip__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin: 0 0 var(--space-8);
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.related-strip__sub {
  font-family: var(--font-sans);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--viral-pink);
  vertical-align: middle;
}

.related-strip--viral .related-strip__heading {
  font-weight: 700;
  color: var(--color-brand-deep);
}

.related-strip__fallback {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
}

.related-strip__fallback a {
  color: var(--color-accent-2);
  font-weight: 600;
  text-decoration: none;
}

.related-strip__fallback a:hover {
  text-decoration: underline;
}

.related-strip__more-wrap {
  margin-top: var(--space-5);
  text-align: center;
}

.related-strip__more-btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-brand-deep);
  cursor: pointer;
}

.related-strip__more-btn:hover {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong);
}

.related-strip__group + .related-strip__group {
  margin-top: var(--space-8);
}

.related-strip__subhead {
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
}

.category-cluster-links {
  margin-bottom: var(--space-10);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border);
  background: rgba(255, 250, 252, 0.65);
}

.category-cluster-links__lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 42rem;
  line-height: var(--leading-snug);
}

.category-cluster-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.category-cluster-links__a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-brand-deep);
  border: 1px solid rgba(74, 15, 46, 0.2);
  background: #fffefd;
}

.category-cluster-links__a:hover {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong);
}

.entity-semantic-stack {
  margin-bottom: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.entity-semantic-section__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand-deep);
  letter-spacing: 0.03em;
}

.entity-contextual-links {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

.entity-contextual-links a {
  color: var(--color-accent-2);
  font-weight: 600;
  text-decoration: none;
}

.entity-contextual-links a:hover {
  text-decoration: underline;
}

.semantic-taxonomy-link {
  text-decoration-thickness: 1px;
}

.category-hub-depth {
  margin-bottom: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.category-hub-depth__block {
  padding: var(--space-5) var(--space-5);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border);
  background: rgba(255, 252, 254, 0.85);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.chip-row--group {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 252, 254, 0.95), rgba(244, 236, 248, 0.75));
  border: 1px solid rgba(142, 36, 88, 0.12);
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.chip--link:hover {
  border-color: rgba(142, 36, 88, 0.45);
  color: var(--color-brand);
  background: rgba(194, 24, 91, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(80, 30, 55, 0.12);
}

.chip--muted {
  color: var(--color-muted);
  font-weight: 600;
}

.chip--tag {
  background: rgba(142, 36, 88, 0.08);
  border-color: rgba(142, 36, 88, 0.15);
  color: var(--color-brand-deep);
}

.chip__glyph {
  font-size: 0.75em;
  opacity: 0.75;
}

.related-grid--lush {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: var(--space-6);
}

@media (max-width: 639.98px) {
  .related-grid--lush {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: calc(var(--site-media-radius) + 2px);
  transition: transform 0.28s var(--ease-out), filter 0.25s ease;
}

.related-card:hover {
  transform: translateY(-6px);
}

.related-card__stack {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--site-media-radius);
  border: var(--site-media-border);
  box-shadow:
    var(--site-media-shadow),
    0 16px 40px rgba(35, 12, 40, 0.12);
  background: #120a18;
  transition: border-color 0.25s ease, box-shadow 0.28s var(--ease-out);
}

.related-card:hover .related-card__stack {
  border-color: rgba(200, 140, 180, 0.45);
  box-shadow:
    var(--site-media-shadow),
    0 22px 50px rgba(60, 20, 50, 0.22);
}

.related-card__media {
  display: block;
  overflow: hidden;
}

.related-card__media > img {
  transition: transform 0.5s var(--ease-out);
}

.related-card:hover .related-card__media > img {
  transform: scale(1.08);
}

.related-card__stack::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 3, 14, 0.5) 100%);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.related-card:hover .related-card__stack::after {
  opacity: 1;
}

.related-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5) var(--space-4) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: #fff9fd;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.related-card__stack:not(:has(.related-card__media)) .related-card__label {
  position: static;
  color: var(--color-text);
  text-shadow: none;
  padding: var(--space-5);
  background: var(--color-surface);
}

.post-end-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
}

.post-end-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: #fffefd;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 22px rgba(74, 15, 46, 0.35);
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.post-end-nav__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(74, 15, 46, 0.42);
}

.post-end-nav__btn--ghost {
  color: var(--color-brand-deep);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.post-end-nav__btn--ghost:hover {
  border-color: rgba(142, 36, 88, 0.35);
  color: var(--color-brand);
}

/* Entity */
.entity-page .entity-desc {
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.entity-no-posts {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.entity-no-posts p {
  margin: 0;
}

.entity-no-posts a {
  color: var(--color-brand);
  font-weight: 600;
}

.entity-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .entity-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.entity-cards .card-link {
  display: block;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.entity-cards .card-link:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.entity-cards strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.entity-cards p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.section-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: calc(-1 * var(--space-2)) 0 var(--space-5);
}

.entity-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 639.98px) {
  .entity-rel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.entity-rel-grid a {
  display: block;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.entity-rel-grid a:hover {
  color: var(--color-brand);
  border-color: rgba(142, 36, 88, 0.35);
}

/* 404 */
.not-found {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  max-width: 42rem;
  margin: 0 auto;
}

.not-found h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.not-found__lead {
  color: var(--color-muted);
  margin: 0 auto var(--space-4);
  max-width: 36rem;
}

.not-found__warm {
  margin: var(--space-8) auto var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  max-width: 36rem;
}

.not-found__grid {
  list-style: none;
  margin: 0 auto var(--space-10);
  padding: 0;
  max-width: 40rem;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .not-found__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.not-found__cell {
  margin: 0;
}

.not-found__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.not-found__card:hover {
  border-color: rgba(142, 36, 88, 0.35);
  box-shadow: 0 12px 40px rgba(40, 12, 35, 0.14);
}

.not-found__thumb {
  max-width: 100%;
}

.not-found__card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.not-found__actions {
  margin-top: var(--space-6);
  font-weight: 600;
}

.not-found__actions a {
  text-decoration: none;
}

.not-found__actions a:hover {
  text-decoration: underline;
}

.not-found p {
  color: var(--color-muted);
}

.not-found a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Category masonry — desktop hover preview */
.category-hover-preview {
  position: fixed;
  z-index: 400;
  width: 280px;
  display: flex;
  flex-direction: column;
  /* Container + descendants: otherwise img/title still capture clicks over action buttons */
  pointer-events: none;
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow: var(--site-media-shadow), 0 0 60px rgba(40, 20, 60, 0.5);
  background: var(--color-bg-elevated);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.category-hover-preview.is-on {
  opacity: 1;
}

.category-hover-preview * {
  pointer-events: none;
}

.category-hover-preview .site-media {
  border-radius: 0;
  flex: 0 0 auto;
}

.category-hover-preview__title {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  background: rgba(12, 8, 20, 0.88);
}

@media (max-width: 1023.98px) {
  .category-hover-preview {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-card__media--zoom img,
  .related-card__media > img,
  .post-hero__media > img,
  .pin-card__link,
  .related-card,
  .post-hero__frame,
  .share-btn,
  .chip,
  .post-end-nav__btn {
    transition: none !important;
  }

  .share-btn:hover {
    transform: none !important;
  }

  .theme-magazine .post-story :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.post-end-nav__btn):not(.related-card):not(.empty-state__btn)),
  .theme-magazine .prose :where(a[href]):where(:not(.chip):not(.pagination__btn):not(.empty-state__btn)),
  .theme-magazine .post-intent-links :where(a[href]),
  .theme-magazine .post-explore :where(a[href]),
  .theme-magazine .home-seo-intro :where(a[href]),
  .theme-magazine .post-seo-landing :where(a[href]),
  .theme-magazine .collection-intro :where(a[href]) {
    transition: none !important;
    background-size: 100% 1px;
  }

  .pin-card__link--overlay:hover .pin-card__media--zoom img,
  .pin-card__link--overlay:focus-visible .pin-card__media--zoom img,
  .related-card:hover .related-card__media > img,
  .post-hero__frame:hover .post-hero__media > img {
    transform: none;
  }

  .related-card:hover,
  .post-hero__frame:hover {
    transform: none;
  }
}

/* —— Accessibility: visible focus (WCAG 2.x) —— */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
.header-search-form__submit:focus-visible,
.header-search-form__input:focus-visible,
.search-page__input:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

.site-nav a:focus-visible {
  outline-offset: 4px;
}

/* —— Search —— */
.search-page {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-16);
}

.search-page__hero {
  margin-bottom: var(--space-8);
}

.search-page__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.search-page__lead {
  max-width: 42rem;
  margin: 0 0 var(--space-6);
  color: var(--color-muted);
  line-height: var(--leading-normal);
}

.search-page__form {
  max-width: 36rem;
}

.search-page__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.search-page__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: stretch;
}

.search-page__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
}

.search-page__submit {
  padding: var(--space-3) var(--space-6);
  font: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
  background: var(--viral-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.search-page__submit:hover {
  filter: brightness(1.03);
}

.search-page__hint,
.search-page__empty {
  max-width: 40rem;
  color: var(--color-muted);
  line-height: var(--leading-normal);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.search-result {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result__link {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.search-result__link:hover .search-result__title {
  color: var(--color-brand);
}

.search-result__media {
  flex: 0 0 auto;
  width: 7.5rem;
  border-radius: var(--site-media-radius);
  overflow: hidden;
  border: var(--site-media-border);
  box-shadow: var(--site-media-shadow);
}

.search-result__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--site-media-aspect);
  object-fit: var(--site-media-object-fit);
}

.search-result__body {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.search-result__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.search-result__snippet {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.search-result__hub {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.search-result__topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-left: 0;
}

@media (min-width: 640px) {
  .search-result__topics {
    padding-left: calc(7.5rem + var(--space-4));
  }
}

/* —— Legal static pages —— */
.legal-page {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-16);
}

.legal-page__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.legal-page__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-muted);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  color: var(--color-brand-deep);
}

.legal-page__back {
  margin-top: var(--space-12);
  font-size: var(--text-sm);
}

.legal-page__back a {
  color: var(--color-accent-2);
  font-weight: 600;
}

/* —— Toast (copy / engagement feedback) —— */
.bn-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--space-4) + 4.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(90vw, 22rem);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  color: #fffefd;
  background: rgba(24, 10, 28, 0.92);
  border: 1px solid rgba(255, 200, 220, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.post-engage-meta {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0 auto var(--space-4);
  max-width: 36rem;
}

/* —— Cookie consent strip —— */
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: calc(var(--space-4) + env(safe-area-inset-left, 0px));
  right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fdf8fc;
  background: linear-gradient(145deg, rgba(36, 14, 32, 0.97) 0%, rgba(18, 6, 16, 0.98) 100%);
  border: 1px solid rgba(255, 200, 220, 0.12);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(40, 10, 30, 0.45);
}

.cookie-banner__inner {
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 260px;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: rgba(255, 248, 252, 0.92);
}

.cookie-banner__text a {
  color: #ffd6e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__btn {
  flex: 0 0 auto;
  padding: var(--space-3) var(--space-8);
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(135deg, #fff 0%, #fce8f2 100%);
  color: var(--color-brand-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

.cookie-banner__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cookie-banner__btn:focus-visible {
  outline-color: #fff;
}

/* —— Home empty states —— */
.empty-state {
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.empty-state--inline {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.empty-state__title {
  font-family: var(--font-display);
  margin: 0 0 var(--space-3);
  color: var(--color-brand-deep);
}

.empty-state__text {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.empty-state__cta {
  margin: 0;
}

.empty-state__btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.empty-state__btn:focus-visible {
  outline-color: var(--color-accent-strong);
}

/* —— Post SEO landing + intent links —— */
.post-seo-landing {
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.post-seo-landing h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--color-brand-deep);
}

.post-seo-landing h2:first-child {
  margin-top: 0;
}

.post-seo-landing__quote {
  font-style: italic;
  color: var(--color-muted);
}

.post-intent-links {
  margin: var(--space-8) 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(14, 165, 233, 0.05));
  border: 1px solid var(--color-border);
}

.post-intent-links__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 var(--space-2);
}

.post-intent-links__intro {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* —— Home SEO intro —— */
.home-seo-intro {
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.home-seo-intro h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

/* —— Collection (raccolta) pages —— */
.collection-page {
  max-width: var(--content-max, 72rem);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-10);
}

.collection-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: var(--space-4) 0;
}

.collection-header__mode-note {
  max-width: 42rem;
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-muted, #5c4a58);
}

.collection-toolbar {
  position: sticky;
  top: calc(4.25rem + var(--space-2));
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-8);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #fff 0%, #faf5fb 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.collection-toolbar__label {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  flex: 1 1 12rem;
}

.collection-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.collection-toolbar__btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(194, 24, 91, 0.25);
  background: #fff;
  color: var(--color-brand-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.collection-toolbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-toolbar__icon svg {
  display: block;
}

.collection-toolbar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(40, 12, 35, 0.1);
}

.collection-toolbar__btn--copy {
  background: linear-gradient(145deg, #f0e8f8, #dcccf0);
}

.collection-toolbar__btn--copy:hover {
  background: linear-gradient(145deg, var(--color-brand), var(--color-brand-deep));
  color: #fff;
  border-color: rgba(74, 15, 46, 0.45);
}

.collection-toolbar__btn--wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-color: transparent;
}

.collection-toolbar__btn--wa:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(18, 120, 90, 0.35);
}

.collection-intro {
  margin-bottom: var(--space-8);
}

.collection-grid-section__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 var(--space-4);
}

.collection-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-4);
}

@media (max-width: 639.98px) {
  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.collection-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.collection-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.collection-card__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: var(--site-media-aspect);
  object-fit: cover;
}

.collection-card__title {
  display: block;
  padding: var(--space-3) var(--space-3) 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.collection-card__hint {
  display: block;
  padding: 0 var(--space-3) var(--space-3);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-muted);
  font-weight: 500;
}

.collection-empty {
  color: var(--color-muted);
}

/* —— Ad regions: AdSense / GAM / Ezoic ——
   Stable ids (bn-ad-*). Reserved geometry reduces CLS when networks inject late.
   .ad-region uses contain:layout so reflows inside slots are less likely to shift the page shell. */
.ad-region {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  box-sizing: border-box;
  contain: layout;
}

/* When ads are disabled the container renders empty — collapse it to zero height */
.ad-region:not([data-ad-active]) {
  padding: 0;
  min-height: 0 !important;
}

.ad-region--leaderboard {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, rgba(255, 252, 254, 0.92), rgba(248, 242, 250, 0.85));
  border-bottom: 1px solid var(--color-border);
  /* Reserve ~90px band (IAB leaderboard); mobile often 320×50 — clamp keeps a floor without huge empty chrome */
  min-height: clamp(3.25rem, 10vw, 5.75rem);
}

.ad-region--footer-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(180deg, rgba(250, 245, 252, 0.9), rgba(240, 232, 246, 0.75));
  border-top: 1px solid var(--color-border);
  min-height: clamp(3.25rem, 10vw, 6rem);
}

.ad-region__label {
  margin: 0 0 var(--space-2);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-muted);
}

.ad-region__slot {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: min(100%, 280px);
  max-width: 100%;
  min-height: 3.125rem;
  border-radius: var(--radius-md);
  background: rgba(30, 15, 35, 0.03);
  border: 1px dashed rgba(90, 40, 70, 0.12);
  box-sizing: border-box;
  contain-intrinsic-size: 300px 250px;
}

.ad-region--leaderboard .ad-region__slot,
.ad-region--footer-wide .ad-region__slot {
  width: min(100%, 970px);
  min-height: clamp(3.125rem, 11vw, 5.75rem);
  max-height: 5.75rem;
  aspect-ratio: 728 / 90;
  max-width: min(100%, 970px);
  contain-intrinsic-size: 728px 90px;
}

@media (max-width: 759.98px) {
  .ad-region--leaderboard .ad-region__slot,
  .ad-region--footer-wide .ad-region__slot {
    aspect-ratio: auto;
    max-height: none;
    min-height: clamp(3.125rem, 18vw, 5.75rem);
    contain-intrinsic-size: 320px 100px;
  }
}

.ad-region--mpu .ad-region__slot,
.ad-region--rail-mpu .ad-region__slot {
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  aspect-ratio: 300 / 250;
  contain-intrinsic-size: 300px 250px;
}

.ad-region--in-article .ad-region__slot,
.ad-region--responsive .ad-region__slot {
  width: min(100%, 720px);
  min-height: 17.5rem;
  max-width: min(100%, 720px);
  contain-intrinsic-size: 336px 280px;
}

@media (max-width: 599.98px) {
  .ad-region--in-article .ad-region__slot,
  .ad-region--responsive .ad-region__slot {
    min-height: 15.75rem;
    contain-intrinsic-size: 320px 252px;
  }
}

.ad-region__slot .adsbygoogle {
  display: block !important;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

.ad-region__slot iframe {
  display: block;
  max-width: 100%;
}

.home-magazine--viral > .ad-region,
.category-hub--viral > .ad-region {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023.98px) {
  .home-rail .ad-region--rail-mpu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
 * PERF: content-visibility for below-fold sections.
 * Tells browser to skip rendering until they approach the viewport.
 * ============================================================ */
.site-footer,
.post-related-region,
.related-strip,
.home-band--categorie,
.home-freshness,
.home-seo-deferred,
.entity-semantic-section,
.hub-block,
.category-hub-depth,
.post-supplementary,
.post-explore {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ======================================================================
 * Copy-frase button (post page). Zaraz-tracked on click.
 * ====================================================================== */
.btn-copia-frase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--soft, #faf7fb);
  border: 1px solid var(--line, #ece6f0);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--fg, #1a1625);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 8px;
}
.btn-copia-frase:hover {
  background: var(--line, #ece6f0);
}
.btn-copia-frase--copied {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}
