:root {
  --ink: #1b2330;
  --blue: #005496;
  --blue-deep: #2a457a;
  --lime: #cedd49;
  --green: #008b44;
  --cyan: #00a0e3;
  --paper: #f3efe4;
  --white: #fffcf6;
  --muted: #5e6772;
  --line: rgba(23, 32, 51, 0.14);
  --shadow: 0 22px 50px rgba(18, 32, 54, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section { scroll-margin-top: 130px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green) 58%, var(--lime));
}

.issue-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 6px 16px;
  background: var(--blue-deep);
  color: #f6f1e6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
}

.brand { display: flex; }

.brand img { height: 58px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--blue); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero, .stories, .colophon, .news-banner-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero { padding: 48px 0 20px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 420px);
  gap: 40px;
  align-items: start;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, .feat-page, .toc button > span:first-child {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
}

h1 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.dek {
  max-width: 38rem;
  margin: 0 0 20px;
  font-size: 1.12rem;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.dates li {
  min-width: 48px;
  padding: 10px 8px;
  background: var(--lime);
  color: #16180c;
  font-weight: 700;
  text-align: center;
}

.dates-label {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn-lime { background: var(--lime); color: #16180d; }
.btn-lime:hover { background: #c5d428; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 22px 0 0;
}

.hero-meta div { margin: 0; }

.hero-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta dd { margin: 2px 0 0; font-weight: 600; }

.cover-btn {
  display: block;
  width: min(420px, 100%);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cover-btn img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.cover-btn:hover img { transform: translateY(-6px); }

.cover-btn span { display: inline-block; margin-top: 10px; }

.quote-band {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 10px;
}

.quote-band blockquote {
  margin: 0;
  padding: 28px 28px 22px;
  background: var(--blue-deep);
  color: #f6f1e6;
}

.quote-band p {
  margin: 0 0 16px;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
}

.quote-band footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 241, 230, 0.78);
  font-size: 0.92rem;
}

.quote-band button {
  padding: 8px 12px;
  border: 0;
  background: var(--lime);
  color: #16180d;
  font-weight: 700;
  cursor: pointer;
}

.stories { padding: 48px 0 64px; }

.section-head { margin-bottom: 22px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

#notizie, #numero, #articoli, #sfoglia, #redazione { scroll-margin-top: 108px; }

.featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.featured article { display: flex; }

.featured button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.featured article:first-child button {
  background: var(--blue-deep);
  color: #f6f1e6;
  border-color: transparent;
}

.featured article:first-child .kicker,
.featured article:first-child .feat-page { color: var(--lime); }

.featured button:hover { outline: 2px solid var(--lime); outline-offset: -2px; }

.feat-page {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.featured h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.featured p { margin: 0; }

.toc {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.toc button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.toc button:hover { background: rgba(212, 226, 58, 0.4); }

.toc button > span:first-child {
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1;
}

.toc small {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader {
  padding: 52px 20px 36px;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 160, 214, 0.16), transparent 32%),
    radial-gradient(circle at 90% 100%, rgba(20, 133, 61, 0.12), transparent 28%),
    #e6e0d2;
}

.reader-head, .reader-tools, .range-label, .thumbs, .pdf-line, #page-range {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.reader-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.reader-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

.reader-note { max-width: 28rem; margin: 0; color: #3d4654; }

.reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.reader-tools button, .pdf-line a {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 32, 51, 0.22);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.reader-tools button:hover, .pdf-line a:hover { border-color: var(--blue); color: var(--blue); }

.reader-tools button:disabled { opacity: 0.4; cursor: default; }

#pager { margin: 0 8px 0 auto; font-weight: 600; }

.stage { display: flex; justify-content: center; }

.book {
  position: relative;
  width: min(440px, calc(100vw - 36px));
  aspect-ratio: 1200 / 1697;
  background: white;
  box-shadow: var(--shadow);
  perspective: 2600px;
  cursor: pointer;
}

.book.is-spread {
  width: min(960px, calc(100vw - 36px));
  aspect-ratio: 2400 / 1697;
}

.sheet {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  overflow: hidden;
  background: white;
}

.book.is-spread .sheet { width: 50%; }
.book.is-spread .sheet-right { left: 50%; }

.sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet img[hidden] { display: none; }

.gutter {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 26px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.2) 48%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.book.is-spread .gutter { display: block; }

.leaf {
  position: absolute;
  top: 0;
  z-index: 4;
  height: 100%;
  transform-style: preserve-3d;
  visibility: hidden;
  pointer-events: none;
}

.leaf.is-active {
  visibility: visible;
  transition: transform 0.72s cubic-bezier(0.45, 0.02, 0.15, 1);
}

.leaf.dir-next {
  right: 0;
  left: auto;
  width: 50%;
  transform-origin: left center;
  transform: rotateY(0deg);
}

.leaf.dir-prev {
  left: 0;
  right: auto;
  width: 50%;
  transform-origin: right center;
  transform: rotateY(0deg);
}

.book:not(.is-spread) .leaf.dir-next,
.book:not(.is-spread) .leaf.dir-prev {
  width: 100%;
  transform-origin: left center;
}

.book:not(.is-spread) .leaf.dir-prev { transform-origin: right center; }

.leaf.dir-next.is-turned { transform: rotateY(-180deg); }

.leaf.dir-prev.is-turned { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  background-color: white;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  backface-visibility: hidden;
}

.face-back { transform: rotateY(180deg); }

.range-label {
  display: block;
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

#page-range {
  display: block;
  accent-color: var(--blue);
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.thumb {
  flex: 0 0 64px;
  padding: 0 0 4px;
  border: 2px solid transparent;
  background: white;
  cursor: pointer;
}

.thumb.is-on { border-color: var(--blue); }

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 1697;
  object-fit: cover;
  background: #ddd;
}

.thumb span {
  display: block;
  font-size: 0.72rem;
  text-align: center;
}

.pdf-line { margin-top: 14px; margin-bottom: 0; }

.pdf-line a { display: inline-flex; align-items: center; }

.colophon { padding: 56px 0 64px; }

.colo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.colo-grid h3 { margin: 0 0 8px; font-size: 1.6rem; }

.colo-grid p { margin: 0 0 10px; }

.colo-grid a { color: var(--blue); }

.site-footer {
  padding: 28px 16px 36px;
  border-top: 7px solid var(--lime);
  text-align: center;
}

.site-footer img { height: 52px; width: auto; }

.site-footer p { margin: 8px 0; }

.site-footer a { color: var(--blue); font-weight: 600; }

.reader:fullscreen,
.reader.is-overlay {
  overflow: auto;
  background: #e6e0d2;
}

.reader:fullscreen .book.is-spread,
.reader.is-overlay .book.is-spread {
  width: min(1100px, calc(100vw - 40px));
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--lime);
  color: #16180d;
  font-weight: 700;
}

.skip-link:focus { top: 8px; }

.news-banner {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 26px;
}

.news-banner-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-banner-bar a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.news-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.news-rotator,
.news-side { min-width: 0; }

.news-rotator {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
}

.news-viewport { overflow: hidden; }

.news-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.45, 0.02, 0.15, 1);
}

.news-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.news-slide a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-slide a:hover h2 { color: var(--blue); }

.news-slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue) 62%, var(--green));
}

.news-slide-media img,
.news-item-media img,
.archive-row img,
.article-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-slide-media img {
  position: absolute;
  inset: 0;
}

.admin-bar .site-header { top: 32px; }

.news-slide-body { padding: 16px 18px 8px; }

.news-slide h2 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.news-excerpt { margin: 0; }

.news-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-rotator-ui {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
}

.news-rotator-ui button,
.news-dot {
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.news-rotator-ui button {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.news-dots {
  display: flex;
  gap: 6px;
  margin-right: auto;
}

.news-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.22);
}

.news-dot.is-on {
  background: var(--blue);
  border-color: var(--blue);
}

.news-side {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.news-side-label {
  margin: 0;
  padding: 10px 12px;
  background: var(--blue-deep);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.news-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.news-item:hover,
.news-item.is-current { background: rgba(206, 221, 73, 0.4); }

.news-item-media {
  width: 86px;
  height: 72px;
  background: var(--blue-deep);
}

.news-item small {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-item strong {
  display: block;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.2;
}

.news-item-date {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.news-empty { margin: 0; padding: 22px 16px; }

.archive-list { border-top: 1px solid var(--line); }

.archive-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.archive-row img {
  width: 168px;
  height: 112px;
}

.archive-row h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.archive-row p { margin: 0; }

.archive-row:hover h2 { color: var(--blue); }

.pagination { margin-top: 22px; }

.pagination .nav-links,
.post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.pagination .page-numbers.current {
  border-color: transparent;
  background: var(--blue-deep);
  color: var(--lime);
}

.post-navigation { margin-top: 28px; }

.post-navigation .nav-links { justify-content: space-between; }

.post-navigation a { color: var(--blue); font-weight: 600; }

.page-main,
.article-main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.page-elementor { width: 100%; }

.article-main h1,
.page-main h1 {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.article-meta {
  margin: 0 0 8px;
  color: var(--muted);
}

.article-figure { margin: 18px 0 8px; }

.article-figure img { height: auto; }

.article-body { font-size: 1.05rem; }

.article-body p,
.entry-content p { margin: 0 0 1em; }

.landing-extra .entry-content:not(:has(.elementor)) {
  width: min(760px, calc(100% - 40px));
  margin: 28px auto 64px;
}

.landing-extra .entry-content:has(.elementor),
.page-elementor .entry-content {
  width: 100%;
  margin: 0;
}

.not-found { padding-bottom: 72px; }

@media (max-width: 900px) {
  .hero-grid, .featured, .colo-grid, .news-split { grid-template-columns: 1fr; }
  .featured button { min-height: 0; }
  .menu-btn { display: block; }
  .header-row { flex-wrap: wrap; width: min(1180px, calc(100% - 24px)); }
  .site-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px 0 12px;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .site-nav a { padding: 10px 0; }
  .reader-head { align-items: start; flex-direction: column; }
  #pager { margin-left: 0; }
}

@media (max-width: 640px) {
  .issue-bar {
    gap: 8px;
    padding-inline: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .admin-bar .site-header { top: 46px; }
  .brand img, .site-footer img { height: 46px; }
  .hero, .stories, .colophon, .quote-band, .news-banner-inner { width: min(1180px, calc(100% - 28px)); }
  .hero { padding-top: 28px; }
  .quote-band blockquote { padding: 20px 16px; }
  .archive-row { grid-template-columns: 1fr; }
  .archive-row img { width: 100%; height: 190px; }
  .page-main, .article-main { width: min(760px, calc(100% - 28px)); }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-btn img, .leaf.is-turned, .news-track { transition: none; }
}

