html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

:root {
  --ink: #0e0e0e;
  --paper: #f8f5ef;
  --blue: #0052a5;
  --blue-light: #e8f0fb;
  --rule: #d4c9b0;
  --accent: #c9363b;
  --max: 1180px;
  --radius: 10px;
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14, 14, 14, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--blue);
  transition: box-shadow .25s ease, background .25s ease;
}

header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  position: relative;
  transition: transform .35s var(--ease-smooth), text-shadow .35s var(--ease-smooth);
}

.logo span {
  color: var(--blue);
}

.logo:hover {
  transform: translateY(-1px);
  text-shadow: 0 10px 24px rgba(0, 82, 165, .35);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .25s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #3c84d0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-smooth);
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  transform: scaleX(1);
}

.auth-link {
  min-height: 36px;
  background: var(--blue);
  color: #fff;
  padding: 0 12px;
  border-radius: 6px;
}

.auth-link::after {
  display: none;
}

.auth-link:hover {
  background: #003d80;
}

.auth-link.auth-link-active {
  background: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.subpage-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  padding: 5rem 1.5rem 4rem;
  isolation: isolate;
}

.subpage-hero .hero-content {
  max-width: 880px;
}

.subpage-hero .hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.subpage-hero .hero-content p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.subpage-hero-editorial {
  --subpage-start: #0a1930;
  --subpage-end: #101010;
  --subpage-glow: rgba(0, 82, 165, .28);
  --subpage-glow-2: rgba(201, 54, 59, .18);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .08), transparent 18rem),
    radial-gradient(circle at 82% 20%, var(--subpage-glow), transparent 20rem),
    linear-gradient(135deg, var(--subpage-start) 0%, #11284b 42%, var(--subpage-end) 100%);
}

.subpage-hero-editorial::before,
.subpage-hero-editorial::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.subpage-hero-editorial::before {
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  right: -6rem;
  top: -7rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 28%),
    radial-gradient(circle at 60% 60%, var(--subpage-glow-2), transparent 60%);
  opacity: .95;
}

.subpage-hero-editorial::after {
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 54px,
      rgba(255, 255, 255, .03) 54px,
      rgba(255, 255, 255, .03) 55px
    );
  z-index: 0;
}

.subpage-hero-editorial .hero-content {
  z-index: 1;
}

.subpage-hero-news {
  --subpage-start: #081629;
  --subpage-end: #151515;
  --subpage-glow: rgba(0, 82, 165, .35);
}

.subpage-hero-archive {
  --subpage-start: #20150e;
  --subpage-end: #0f1622;
  --subpage-glow: rgba(212, 201, 176, .24);
  --subpage-glow-2: rgba(201, 54, 59, .16);
}

.subpage-hero-podcast {
  --subpage-start: #101728;
  --subpage-end: #190d18;
  --subpage-glow: rgba(93, 163, 255, .26);
  --subpage-glow-2: rgba(201, 54, 59, .20);
}

.subpage-hero-team {
  --subpage-start: #0a1830;
  --subpage-end: #161616;
  --subpage-glow: rgba(69, 145, 231, .30);
}

.subpage-hero-profile {
  --subpage-start: #0b172d;
  --subpage-end: #090909;
  --subpage-glow: rgba(0, 82, 165, .33);
  --subpage-glow-2: rgba(255, 255, 255, .10);
}

.subpage-hero-auth {
  --subpage-start: #111825;
  --subpage-end: #111111;
  --subpage-glow: rgba(0, 82, 165, .24);
  --subpage-glow-2: rgba(201, 54, 59, .16);
}

.subpage-hero-editor {
  --subpage-start: #13233b;
  --subpage-end: #15110f;
  --subpage-glow: rgba(0, 82, 165, .30);
  --subpage-glow-2: rgba(212, 201, 176, .16);
}

.subpage-hero-story {
  --subpage-start: #17191f;
  --subpage-end: #10253b;
  --subpage-glow: rgba(212, 201, 176, .18);
  --subpage-glow-2: rgba(0, 82, 165, .26);
}

.hero img.hero-bg,
.subpage-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(.8);
  transform: scale(1.08) translateY(calc(var(--hero-parallax, 0px) * .8));
  transition: transform .2s linear;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-eyebrow,
.hero-content h1,
.hero-content p,
.hero-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise .95s var(--ease-smooth) forwards;
}

.hero-eyebrow { animation-delay: .1s; }
.hero-content h1 { animation-delay: .22s; }
.hero-content p { animation-delay: .34s; }
.hero-cta { animation-delay: .46s; }

.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  color: #fff;
  line-height: .95;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.hero-content p {
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 13px 32px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  transition: background .22s, transform .22s, box-shadow .22s;
  box-shadow: 0 8px 22px rgba(0, 82, 165, .28);
}

.hero-cta:hover {
  background: #003d80;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 82, 165, .35);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .5);
  font-size: 22px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  filter: blur(6px);
  transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth), filter .9s var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Section header */
.section-hd {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.section-hd .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.section-hd h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section-hd .rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .7s var(--ease-smooth) .12s;
}

.section-hd.is-visible .rule {
  transform: scaleX(1);
}

/* News */
.news-section {
  background: var(--paper);
  padding-bottom: 3rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  border: 1px solid var(--rule);
  transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth);
  transform: perspective(1200px) rotateX(0) rotateY(0);
}

.article-card:hover {
  transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .13);
}

.article-img-wrap {
  position: relative;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.04);
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.article-date-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}

.article-info {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.35;
}

.article-info p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.article-info .author {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}

.article-info .author a,
.hero-content p a {
  color: inherit;
}

.article-info .author a:hover,
.hero-content p a:hover,
.comment-username:hover,
.profile-activity-card h4 a:hover {
  text-decoration: underline;
}

.btn-read {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  transition: background .22s, color .22s, transform .22s;
}

.btn-read:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.articles-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-main {
  display: inline-block;
  padding: 12px 32px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  font-size: 15px;
  transition: background .22s, transform .22s, box-shadow .22s;
  box-shadow: 0 10px 24px rgba(0, 82, 165, .24);
}

.btn-main:hover {
  background: #003d80;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 82, 165, .32);
}

.btn-small {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  background: #6a727a;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  font-size: 12px;
  transition: background .22s, transform .22s, box-shadow .22s;
  box-shadow: 0 10px 24px rgba(0, 82, 165, .24);
}

.btn-small:hover {
  background: #475869;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 82, 165, .32);
}

/* Edizioni */
.editions-section {
  background: var(--ink);
  padding-bottom: 4rem;
}

.editions-section .section-hd .label {
  color: #a0b8d8;
}

.editions-section .section-hd h2 {
  color: #fff;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.edition-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}

.edition-card:hover {
  transform: translateY(-6px) rotateX(1.5deg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
}

.edition-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.edition-card:hover .edition-cover {
  transform: scale(1.03);
}

.edition-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}

.edition-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: .5rem;
  align-self: flex-start;
}

.edition-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: .3rem;
}

.edition-date {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.edition-flip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
}

.edition-card:hover .edition-flip-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Flip modal */
.flip-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .85);
  align-items: center;
  justify-content: center;
}

.flip-modal.open {
  display: flex;
}

.flip-modal-inner {
  position: relative;
  width: 95vw;
  max-width: 1100px;
  height: 85vh;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

.flip-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.flip-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s;
}

.flip-close:hover {
  background: #a02025;
}

/* Podcast */
.podcast-section {
  background: #f0ece3;
  padding-bottom: 3rem;
}

.podcast-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.podcast-wrap iframe {
  width: 100%;
  height: 232px;
  border-radius: var(--radius);
  display: block;
  border: none;
}

/* Chi siamo */
.who-section {
  padding-bottom: 4rem;
  background: var(--paper);
}

.who {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.who-photo {
  width: 50%;
  border-radius: var(--radius);
  overflow: hidden;
}

.who-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.who-text {
  width: 50%;
}

.who-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.who-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.who-text .btn-main {
  margin-top: .5rem;
}

.article-body-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  color: #333;
  line-height: 1.85;
}

.article-body-container p {
  margin-bottom: 1rem;
}

.article-body-container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
}

.article-body-container a:not(.btn-main) {
  color: var(--blue);
}

.article-body-container .btn-main {
  color: #fff;
}

.article-body-container ul,
.article-body-container ol,
.article-body-container blockquote,
.article-body-container pre,
.article-body-container h1,
.article-body-container h2,
.article-body-container h3,
.article-body-container h4 {
  margin-bottom: 1rem;
}

.comment-section {
  background: #f2eee5;
  padding-bottom: 3rem;
}

.comment-box,
.comment-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.comment-form,
.auth-form,
.editor-form {
  display: grid;
  gap: .8rem;
}

.comment-form label,
.auth-form label,
.editor-form label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.comment-form textarea,
.auth-form input,
.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  border: 1px solid #d7cfbe;
  border-radius: 8px;
  padding: .75rem .85rem;
  font: inherit;
  background: #fff;
  color: #1a1a1a;
}

.form-help {
  font-size: 13px;
  color: #666;
  margin-top: -.35rem;
}

.form-help code {
  font-size: 12px;
  background: #f4f0e8;
  border-radius: 6px;
  padding: .15rem .35rem;
}

.password-field {
  position: relative;
}

.auth-form .password-field input {
  padding-right: 6rem;
}

.password-toggle {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: .2rem .3rem;
}

.password-toggle:hover {
  color: #0f4f8a;
}

.comment-form textarea,
.editor-form textarea {
  resize: vertical;
  min-height: 140px;
}

.editor-form select {
  min-height: 180px;
}

.form-error,
.form-success {
  border-radius: 8px;
  padding: .65rem .9rem;
  margin-bottom: 1rem;
  font-size: 14px;
}

.form-error {
  background: #ffe6e6;
  color: #8d1f1f;
  border: 1px solid #f1b2b2;
}

.form-success {
  background: #e8f7e8;
  color: #1f6d2b;
  border: 1px solid #a6d8ac;
}

.comment-login-note {
  color: #555;
  font-size: 14px;
}

.comment-login-note a,
.auth-alt-link a {
  color: var(--blue);
  font-weight: 600;
}

.comment-list {
  margin-top: 2rem;
}

.comment-item {
  background: #fff;
  border: 1px solid #ddd4c0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .9rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  margin-bottom: .45rem;
}

.comment-author {
  font-weight: 700;
}

.comment-username {
  color: var(--blue);
  font-size: 13px;
}

.comment-date {
  color: #666;
  font-size: 12px;
}

.comment-text {
  color: #2a2a2a;
  line-height: 1.65;
}

.comment-text > *:first-child {
  margin-top: 0;
}

.comment-text > *:last-child {
  margin-bottom: 0;
}

.comment-empty {
  color: #666;
  font-style: italic;
}

.subpage-hero-not-found {
  --subpage-start: #130f22;
  --subpage-end: #0f1218;
  --subpage-glow: rgba(201, 54, 59, .25);
  --subpage-glow-2: rgba(0, 82, 165, .22);
}

.missing-path {
  color: #ffd79c;
  word-break: break-word;
}

.not-found-section {
  padding: 4rem 1.5rem 5rem;
}

.not-found-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.not-found-copy {
  display: grid;
  gap: 1rem;
}

.not-found-copy .label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}

.not-found-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: .95;
}

.not-found-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #434343;
  max-width: 34ch;
}

.not-found-copy .btn-main {
  justify-self: start;
}

.not-found-suggestion {
  display: grid;
  gap: .65rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 82, 165, .08), rgba(201, 54, 59, .08));
  border: 1px solid rgba(0, 82, 165, .14);
}

.not-found-suggestion-text {
  max-width: none;
  color: #2a2a2a;
  font-weight: 600;
}

.not-found-suggestion-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 82, 165, .12);
  transition: transform .22s, box-shadow .22s, color .22s;
}

.not-found-suggestion-link:hover {
  color: #003d80;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 82, 165, .18);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.not-found-status {
  min-height: 1.5rem;
  font-size: .95rem;
  color: #666;
}

.meme-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .4), transparent 35%),
    linear-gradient(160deg, #141414 0%, #050505 100%);
  border-radius: 26px;
  padding: 1rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
  color: #fff;
}

.meme-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meme-frame img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.meme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .35rem .25rem;
}

.meme-meta p {
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  flex: 1;
}

.meme-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff6a5e);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.meme-link {
  display: inline-flex;
  margin-top: .85rem;
  color: #a8d1ff;
  font-size: .92rem;
  font-weight: 600;
}

.meme-link:hover {
  color: #fff;
}

.meme-card[data-loading="true"] .meme-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  animation: meme-shimmer 1.2s infinite;
}

.meme-card[data-loading="true"] .meme-frame {
  min-height: 540px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(0, 82, 165, .24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .22s, background .22s, color .22s, transform .22s;
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--blue);
  background: rgba(0, 82, 165, .08);
  transform: translateY(-2px);
}

.btn-ghost:disabled {
  opacity: .6;
  cursor: wait;
}

@keyframes meme-shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.auth-section,
.editor-section,
.account-section {
  padding: 2.5rem 1rem 4rem;
  background: var(--paper);
}

.auth-card,
.editor-card,
.account-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd4c0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.auth-card-wide,
.editor-card {
  max-width: 760px;
}

.auth-card h2,
.editor-card h2,
.account-card h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.2rem;
}

.auth-alt-link {
  margin-top: 1rem;
  font-size: 14px;
  color: #555;
}

.account-photo-wrap {
  text-align: center;
  margin-bottom: 1.2rem;
}

.account-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.account-field {
  background: #f4f0e8;
  border-radius: 8px;
  padding: .8rem;
}

.account-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: .35rem;
}

.account-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.profile-card {
  max-width: var(--max);
}

.profile-info-grid {
  margin-top: 1.2rem;
}

.profile-activity-section {
  padding-bottom: 4rem;
}

.profile-activity-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.profile-activity-column h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.profile-article-list {
  display: grid;
  gap: 1rem;
}

.profile-article-card .article-info h3 a {
  color: inherit;
  text-decoration: none;
}

.profile-article-card .article-info h3 a:hover {
  text-decoration: underline;
}

.profile-activity-card {
  background: #fff;
  border: 1px solid #ddd4c0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.profile-activity-card + .profile-activity-card {
  margin-top: .9rem;
}

.profile-activity-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: .55rem;
}

.profile-activity-card p {
  color: #4b4b4b;
  line-height: 1.6;
}

.profile-activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .75rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.profile-date {
  font-size: 12px;
  color: #666;
}

.profile-empty {
  color: #666;
  font-style: italic;
}

.btn-danger {
  background: var(--accent);
  box-shadow: none;
}

.btn-danger:hover {
  background: #a02025;
}

/* Redazione */
.redazione-section {
  background: #fff;
  padding-bottom: 3rem;
  overflow: hidden;
}

.redazione-track-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem 2rem 1.5rem;
}

.redazione-track-wrap::-webkit-scrollbar {
  display: none;
}

.redazione-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
}

.member-card {
  display: block;
  background: #222;
  border-radius: var(--radius);
  width: 180px;
  padding: 2rem 1.2rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: box-shadow .32s var(--ease-smooth), transform .32s var(--ease-smooth);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
}

.member-card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--blue), #003d80);
  z-index: 0;
  transition: top .45s;
}

.member-card:hover::before {
  top: 0;
}

.member-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .8rem;
  display: block;
  border: 3px solid #fff;
  position: relative;
  z-index: 1;
}

.member-card h3 {
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.member-card .role {
  font-size: 12px;
  color: var(--blue);
  position: relative;
  z-index: 1;
  transition: color .4s;
}

.member-card:hover .role {
  color: #a0d0ff;
}

/* Footer */
footer {
  background: #0a0a0a;
  color: #888;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: .5rem;
}

.footer-col a {
  color: #888;
  font-size: 13px;
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  text-align: center;
  padding: 1.2rem;
  font-size: 12px;
  color: #444;
}

.footer-bottom a {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 768px) {
  .subpage-hero {
    min-height: 280px;
    padding: 4rem 1.25rem 3rem;
  }

  .subpage-hero-editorial::after {
    inset: 14px;
    border-radius: 18px;
  }

  .who {
    flex-direction: column;
  }

  .who-photo,
  .who-text {
    width: 100%;
  }

  .who-photo img {
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-activity-grid {
    grid-template-columns: 1fr;
  }

  .not-found-shell {
    grid-template-columns: 1fr;
  }

  .meme-card[data-loading="true"] .meme-frame {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  nav {
    gap: 1rem;
    justify-content: center;
  }

  nav a {
    font-size: 11px;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: .6rem;
    padding-bottom: .6rem;
    row-gap: .4rem;
  }

  .not-found-section {
    padding: 3rem 1rem 4rem;
  }

  .meme-card {
    padding: .8rem;
    border-radius: 20px;
  }

  .meme-card[data-loading="true"] .meme-frame {
    min-height: 360px;
  }

  .meme-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

#editions-swiper {
  max-width: 680px;
}