/**
 * Artsupp MAG - Complete Official Stylesheet
 * Reconciled 100% with Jacopo's HTML prototypes:
 * - Dark Theme Predefinito (#011019) + Light Mode alternativo (◐)
 * - Fira Sans (Headings, Logo, Badges, Bottoni) + Inter (Body, Meta)
 * - Header 80px sticky + Drawer + Search Overlay
 * - Single Post (Hero Cover, Sticky Rail, TOC, Schede Mostra .show, CTA artsupp.com, Correlati)
 * - Categoria Archive (.top, Breadcrumb, Chips Città, Lead Post 16:10, Grid Card 3:2, SEO text)
 * - Home Page (In Evidenza 2/3 + 1/3, Mostre da non perdere 4 card, 6 Città quadrate, Artsupp ti racconta)
 * - Zero Bloat, Zero Banner sopra la piega, Google Discover compliant
 */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --nero: #011218;
  --blu_notte: #011019;
  --blu_dark: #031F30;
  --blu: #052C43;
  --azzuro: #479FD3;
  --verde: #32D583;
  --teal: #01D8C0;
  --teal-d: #01D8C0;
  --arancio: #FB6514;
  --bg: #011019;
  --soft: #031F30;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);
  --txt: #ffffff;
  --body: rgba(255, 255, 255, 0.86);
  --mut: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.45);
  --hdr: rgba(1, 16, 25, 0.92);
  --btn-ink: #011218;
  --tagd-bg: rgba(1, 216, 192, 0.14);
  --tagd-fg: #01D8C0;
  --display: 'Fira Sans', system-ui, -apple-system, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --page-max: 1180px;
  --page-pad: 24px;
  --side-w: 340px;
  --col-gap: 32px;
  --gap-blocchi: 64px;
  --gap-card: 16px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --soft: #f4f6f7;
  --line: #e3e8ea;
  --line2: #cfd8dc;
  --txt: #1a2328;
  --body: #1a2328;
  --mut: #5d6b72;
  --faint: #8a979d;
  --teal-d: #008576;
  --hdr: rgba(255, 255, 255, 0.94);
  --tagd-bg: #e6fbf8;
  --tagd-fg: #006357;
}

@media (max-width: 700px) {
  :root {
    --gap-blocchi: 48px;
  }
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ui) !important;
  color: var(--body) !important;
  background: var(--bg) !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img, .img {
  -webkit-user-drag: none;
  user-select: none;
}

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

/* Legacy Theme and Elementor overrides */
#header, .tmnf_header_wrap, .wrapper_main, .wrapper_inn, .header_fix, .main_part,
#footer, .footer-below, .scrollup,
header.elementor-location-header, .elementor-location-header, .elementor-96185,
div[data-elementor-type="header"], div[data-elementor-type="footer"] {
  display: none !important;
}

/* ==========================================================================
   HEADER (80px sticky, stile artsupp.com / Xceed)
   ========================================================================== */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--hdr);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
}

header.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 80px;
  max-width: none;
  padding: 0 32px;
}

@media (max-width: 900px) {
  header.site-header .wrap {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 700px) {
  header.site-header .wrap {
    padding: 0 16px;
  }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teal);
  flex-shrink: 0;
}

:root[data-theme="light"] .logo {
  color: var(--teal-d);
}

.logo .lg {
  height: 28px;
  width: auto;
  display: block;
}

.logo .sep {
  width: 1px;
  height: 20px;
  background: var(--line2);
  display: block;
}

.logo .mag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--txt);
  margin-left: -2px;
}

/* Nav */
header.site-header nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header.site-header nav a {
  text-decoration: none;
  color: var(--mut);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

header.site-header nav a:hover,
header.site-header nav a.on {
  color: var(--txt);
  border-bottom-color: var(--teal);
}

@media (max-width: 900px) {
  header.site-header nav {
    display: none;
  }
}

/* Header Right Actions */
.hd-r {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-self: end;
  font-size: 13px;
  color: var(--mut);
}

.hd-r .lang {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mut);
}

@media (max-width: 900px) {
  .hd-r .lang {
    display: none;
  }
}

.tg {
  background: none;
  border: 1px solid var(--line2);
  color: var(--txt);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: border-color 0.15s;
}

.tg:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.srch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: none;
  color: var(--txt);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s;
}

.srch svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.srch:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sito {
  background: var(--teal);
  color: var(--btn-ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-sito:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hd-r .btn-sito {
    display: none;
  }
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: none;
  color: var(--txt);
  cursor: pointer;
  place-items: center;
}

.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 3px 0;
}

@media (max-width: 900px) {
  .burger {
    display: grid;
  }
}

/* ==========================================================================
   SEARCH OVERLAY (.sp)
   ========================================================================== */
.sp {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--hdr);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 36px var(--page-pad) 44px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
}

:root:not([data-theme="light"]) .sp {
  background: rgba(1, 16, 25, 0.97);
}

body.sp-open .sp {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.sp .in {
  max-width: 780px;
  margin: 0 auto;
}

.sp form {
  display: flex;
  gap: 12px;
}

.sp .f {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] .sp .f {
  background: var(--soft);
  border-color: var(--line2);
}

.sp .f:focus-within {
  border-color: rgba(1, 216, 192, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(1, 216, 192, 0.12);
}

.sp .f svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--mut);
  stroke-width: 2;
  stroke-linecap: round;
  flex: none;
}

.sp input {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--txt);
  font: inherit;
  font-size: 16px;
}

.sp input::placeholder {
  color: var(--mut);
}

.sp button[type="submit"] {
  background: var(--teal);
  color: #011218;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sp button[type="submit"]:hover {
  opacity: 0.9;
}

.sp h2 {
  font-family: var(--display);
  font-size: 18px;
  color: var(--txt);
  margin: 28px 0 14px;
}

.sp .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp .tags a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--txt);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 7px 12px;
  background: var(--soft);
  transition: all 0.15s;
}

.sp .tags a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

@media (max-width: 560px) {
  .sp form {
    flex-direction: column;
  }
  .sp button[type="submit"] {
    height: 48px;
  }
}

/* ==========================================================================
   DRAWER MOBILE (.drawer & .dr-ov)
   ========================================================================== */
.dr-ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 400px);
  background: #011218;
  color: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 61;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
}

body.dr-open {
  overflow: hidden;
}

body.dr-open .drawer {
  transform: none;
}

body.dr-open .dr-ov {
  opacity: 1;
  visibility: visible;
}

.dr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}

.dr-top .logo {
  color: #01D8C0;
}

.dr-top .logo .mag {
  color: #ffffff;
}

.dr-x {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dr-list {
  list-style: none;
  padding: 12px 24px 0;
  margin: 0;
}

.dr-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dr-list > li:last-child {
  border: 0;
}

.dr-list a,
.dr-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.dr-list summary::-webkit-details-marker {
  display: none;
}

.dr-list summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  margin: -4px 4px 0 0;
  transition: transform 0.2s;
}

.dr-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.dr-sub {
  padding: 0 0 14px 14px;
  display: grid;
}

.dr-sub a {
  padding: 11px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: none;
  letter-spacing: normal;
}

.dr-cta {
  margin: 20px 24px 0;
  display: block;
  text-align: center;
  background: #01D8C0;
  color: #011218;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px;
  border-radius: 999px;
}

.dr-soc {
  margin-top: auto;
  padding: 32px 24px 28px;
}

.dr-soc .t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #ffffff;
}

.dr-soc .row2 {
  display: flex;
  gap: 8px;
  background: #1c2830;
  border-radius: 12px;
  padding: 8px 12px;
}

.dr-soc a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  transition: color 0.15s;
}

.dr-soc a:hover {
  color: #01D8C0;
}

.dr-soc svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   SINGLE POST (.hero, .layout, .rail, .col, .side)
   ========================================================================== */
.hero {
  position: relative;
  height: calc(100svh - 80px);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blu_dark);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1, 16, 25, 0.94) 0%,
    rgba(1, 16, 25, 0.65) 40%,
    rgba(1, 16, 25, 0.20) 75%,
    rgba(1, 16, 25, 0.35) 100%
  );
}

.hero .in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 56px;
}

.hero h1 {
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 14px 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero .sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.5;
  max-width: 760px;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 900px;
}

.hero .meta b {
  color: #ffffff;
  font-weight: 600;
}

.hero .cc {
  position: absolute;
  right: var(--page-pad);
  top: 16px;
  z-index: 2;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(1, 16, 25, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Category badge pill */
.cat {
  display: inline-flex;
  font-family: var(--display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1;
  background: rgba(1, 216, 192, 0.14);
  color: #01D8C0;
  border: 1px solid rgba(1, 216, 192, 0.35);
  text-decoration: none;
}

:root[data-theme="light"] .cat {
  color: #008576;
  background: #e6fbf8;
  border-color: rgba(0, 133, 118, 0.25);
}

/* Layout Grid */
.layout {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  gap: var(--col-gap);
  width: 100%;
}

@media (min-width: 1100px) {
  .layout {
    grid-template-columns: 48px minmax(0, 1fr) var(--side-w);
  }
  .rail {
    display: block !important;
    padding-top: 40px;
  }
  .share.top, .share.end {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    padding-top: 0 !important;
  }
  .side {
    position: static !important;
  }
}

.rail {
  display: none;
}

.col {
  max-width: 720px;
  width: 100%;
}

/* Sticky Social Share Rail */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share .lbl {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin-right: 6px;
}

.share a, .share button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--soft);
  color: var(--txt);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  font: inherit;
}

.share a:hover, .share button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.share svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.share .copy {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

.share.top {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.share.end {
  margin-top: var(--gap-blocchi);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share.v {
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 112px;
  padding-top: 0;
}

.share.v [data-copy] {
  width: 38px;
  padding: 0;
  border-radius: 50%;
}

.share.v [data-copy].ok {
  border-color: var(--teal);
  color: var(--teal);
}

/* Table of Contents (.toc) */
.toc {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 40px 0 var(--gap-blocchi);
}

.toc .t {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--txt);
}

.toc ol {
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.toc a {
  text-decoration: none;
  color: var(--txt);
  border-bottom: 1px solid var(--line2);
  transition: border-color 0.15s;
}

.toc a:hover {
  border-color: var(--teal-d);
  color: var(--teal-d);
}

/* Article Body typography */
.body {
  font-size: 17.5px;
  line-height: 1.6;
}

.body p {
  margin: 0 0 16px;
  color: var(--body);
}

.body p strong {
  color: var(--txt);
}

.body h2 {
  color: var(--txt);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: var(--gap-blocchi) 0 16px;
}

.body ul {
  margin: 0 0 18px 24px;
  font-size: 17.5px;
  line-height: 1.6;
}

.body li {
  margin-bottom: 8px;
}

/* Scheda mostra (.show) */
.show {
  margin: var(--gap-blocchi) 0;
}

.show .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--teal-d);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.show h3 {
  color: var(--txt);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.show .img {
  aspect-ratio: 3/2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--soft);
}

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

.cred {
  font-size: 10px;
  color: var(--mut);
  margin: 8px 0 16px;
}

.info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--txt);
}

.tag.d {
  background: var(--tagd-bg);
  color: var(--tagd-fg);
}

.vai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--txt);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  transition: color 0.15s;
}

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

/* Adv Slots */
.adv {
  margin: var(--gap-blocchi) 0;
  text-align: center;
}

.adv small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 8px;
}

.adv .slot {
  min-height: 250px;
  border: 1px dashed var(--line2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--mut);
  font-size: 13px;
  background: var(--soft);
}

/* Conversion CTA Box (.cta) */
.cta {
  background: #011218;
  border: 1px solid var(--line);
  color: #ffffff;
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin: var(--gap-blocchi) 0;
}

:root[data-theme="light"] .cta {
  background: #011218;
  color: #ffffff;
}

.cta .t {
  font-weight: 700;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff;
}

.cta p {
  font-size: 15px;
  color: #b8c7cd;
  margin: 0 0 18px;
}

.cta .b {
  display: inline-block;
  background: var(--teal);
  color: #011218;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  transition: opacity 0.15s;
}

.cta .b:hover {
  opacity: 0.9;
}

/* Related articles (.rel) */
.rel {
  border-top: 1px solid var(--line);
  margin-top: var(--gap-blocchi);
  padding-top: var(--gap-blocchi);
}

.rel h2 {
  color: var(--txt);
  font-family: var(--display);
  font-size: 26px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  text-decoration: none;
  display: block;
}

.card .img {
  aspect-ratio: 3/2;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--soft);
}

.card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.card:hover .img img {
  transform: scale(1.03);
}

.card .cat {
  margin: 12px 0 6px;
}

.card h3 {
  color: var(--txt);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  margin-top: 6px;
}

.card p {
  font-size: 13px;
  color: var(--mut);
  margin-top: 6px;
}

/* Sidebar (aside .side) */
aside {
  padding-top: var(--gap-blocchi);
}

.side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: var(--gap-card);
}

.box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.box .t {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--txt);
}

.box a.l {
  display: block;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
  color: var(--txt);
  transition: color 0.15s;
}

.box a.l:hover {
  color: var(--teal);
}

.box.cs {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu_dark) 100%);
  color: #ffffff;
  border: 1px solid var(--line2);
}

.box.cs p {
  font-size: 14px;
  color: #b8c7cd;
  margin: 0 0 14px;
  line-height: 1.5;
}

.box.cs a.b {
  display: block;
  text-align: center;
  background: var(--teal);
  color: #011218;
  font-weight: 700;
  text-decoration: none;
  padding: 11px;
  border-radius: 999px;
  font-size: 14px;
}

/* ==========================================================================
   CATEGORY & ARCHIVE (.top, .chips, .list, .lead, .seo)
   ========================================================================== */
.top .wrap {
  padding-top: 40px;
  padding-bottom: 0;
}

.crumb {
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 14px;
}

.crumb a {
  text-decoration: none;
}

.crumb a:hover {
  color: var(--teal);
}

.top h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--txt);
}

.intro {
  max-width: 760px;
  font-size: 18px;
  color: var(--body);
  margin: 14px 0 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  text-decoration: none;
  color: var(--txt);
  background: transparent;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.chip.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #011218;
}

.num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line2);
  color: var(--txt);
}

main.wrap {
  padding-top: var(--gap-blocchi);
}

.list {
  display: grid;
  gap: 48px;
}

.lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
  text-decoration: none;
}

.lead .ph {
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu_dark) 100%);
}

.lead .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.lead:hover .ph img {
  transform: scale(1.03);
}

.lead h3 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin: 14px 0 12px;
}

.lead p {
  font-size: 16.5px;
  margin-bottom: 14px;
  color: var(--body);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

@media (max-width: 820px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.sect {
  margin-top: var(--gap-blocchi);
}

.sect > h2 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--txt);
  margin-bottom: 20px;
}

.seo {
  max-width: 760px;
  margin-top: var(--gap-blocchi);
}

.seo h2 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--txt);
  margin-bottom: 14px;
}

.seo p {
  font-size: 17.5px;
  line-height: 1.58;
  margin-bottom: 14px;
}

.seo ul {
  margin: 0 0 14px 20px;
  font-size: 17.5px;
}

.seo li {
  margin-bottom: 6px;
}

.seo a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
}

/* ==========================================================================
   HOMEPAGE & ARCHIVE COMPONENTS (Reconciled with Jacopo 2026-11-06)
   ========================================================================== */
.intro {
  padding-top: 0;
}
body.home .intro {
  padding-top: 28px;
}

.intro h1,
.home-intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--txt);
  max-width: 820px;
}

.intro p,
.home-intro p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mut);
  max-width: 820px;
}

main.wrap {
  padding-top: 28px;
}

.sect {
  margin-top: var(--gap-blocchi);
}

.sh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.sh h2 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--txt);
}

.sh a {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  white-space: nowrap;
  transition: color 0.15s;
}

.sh a:hover {
  color: var(--teal);
}

/* Evidenza (2fr / 1fr) */
body.home .hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-card);
}

.big {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  min-height: 520px;
  background: var(--blu_dark);
}

.big img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  transition: transform 0.4s;
}

.big:hover img {
  transform: scale(1.03);
}

.big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1, 16, 25, 0.92) 0%,
    rgba(1, 16, 25, 0.50) 40%,
    rgba(1, 16, 25, 0.00) 70%
  );
}

.big .tx {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
  color: #ffffff;
}

.big h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
  max-width: 640px;
  color: #ffffff;
}

.big p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 10px;
}

.big .meta {
  color: rgba(255, 255, 255, 0.7);
}

.stack {
  display: grid;
  gap: var(--gap-card);
}

@media (max-width: 980px) {
  body.home .hero {
    grid-template-columns: 1fr;
  }
  .big {
    min-height: 420px;
  }
  .stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .stack {
    grid-template-columns: 1fr;
  }
  .big .tx {
    padding: 20px;
  }
}

/* 4 Card Grid (Mostre da non perdere) */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
}

@media (max-width: 1060px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

.grid4 .card h3 {
  font-size: 18px;
}

/* 6 Card Destinazioni culturali più popolari (Quadrate) */
.cities {
  display: grid;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: var(--gap-card);
}

@media (max-width: 980px) {
  .cities {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .cities {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.city {
  position: relative;
  display: block;
  aspect-ratio: 1/1 !important;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--blu_dark);
}

.city img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.city:hover img {
  transform: scale(1.04);
}

.city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1, 16, 25, 0.90) 0%,
    rgba(1, 16, 25, 0.10) 60%
  );
}

.city .tx {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
}

.city .tx span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 2px;
}

.city b {
  display: block;
  font-family: var(--display);
  font-size: 22px !important;
  line-height: 1.1;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: #011218;
  border-top: 1px solid var(--line);
  color: var(--mut);
  margin-top: auto;
  padding: 48px 0 36px;
  font-size: 13px;
  width: 100%;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: center;
}

footer.site-footer .logo {
  color: #01D8C0;
}

footer.site-footer .logo .mag {
  color: #ffffff;
}

footer.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer .links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s;
}

footer.site-footer .links a:hover {
  color: var(--teal);
}

/* ==========================================================================
   ALLINEAMENTO HOME ALL'ANTEPRIMA DI JACOPO (2026-11-06)
   Regole limitate a body.home per non toccare articolo e archivio.
   ========================================================================== */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Intro: non deve ereditare .intro dell'archivio */
body.home .intro {
  max-width: var(--page-max);
  margin: 0 auto;
  font-size: inherit;
  color: inherit;
}

/* Evidenza: annulla le regole dell'hero dell'articolo */
body.home .hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: stretch;
  background: none;
}
body.home .hero::after {
  content: none;
}
@media (max-width: 980px) {
  body.home .hero { grid-template-columns: 1fr; }
}

/* Card (markup home: .ph + .b) */
body.home .card {
  display: flex;
  flex-direction: column;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
body.home .card:hover { border-color: var(--line2); }
body.home .card .ph {
  aspect-ratio: 3/2;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu_dark) 100%);
  position: relative;
}
body.home .card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
body.home .card:hover .ph img { transform: scale(1.03); }
body.home .card .b {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
body.home .card h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  margin-top: 0;
  color: var(--txt);
}
body.home .grid4 .card h3 { font-size: 18px; }
body.home .card p {
  font-size: 14.5px;
  color: var(--mut);
  flex: 1;
  margin: 0;
}
body.home .card .meta { font-size: 13px; color: var(--mut); }
body.home .card .cat { margin: 0; }

/* Grandi mostre */
body.home .list { gap: var(--gap-card); }
body.home .lead h3 {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}
body.home .lead p { font-size: 17px; }

/* Titoli di sezione */
.sh h2 { font-weight: 700; }

/* Pubblicità */
body.home .adv { margin: var(--gap-blocchi) 0 0; }
body.home .adv .slot { min-height: 120px; }

/* Box finale */
body.home .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin: var(--gap-blocchi) 0 0;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu_dark) 100%);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
}
body.home .cta .t { max-width: 560px; margin: 0; }
body.home .cta > a {
  background: var(--teal);
  color: #011218;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
}

/* Header e footer */
header.site-header nav a { color: var(--txt); }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; }
footer.site-footer { padding: 40px 0; margin-top: var(--gap-blocchi); }

/* ==========================================================================
   ALLINEAMENTO ARTICOLO ALL'ANTEPRIMA DI JACOPO (2026-11-06)
   Limitato a body.single. Il contenuto reale e' Gutenberg (wp-block-*),
   non il markup .show/.img dell'anteprima.
   ========================================================================== */
body.single .hero .meta {
  font-family: var(--ui);
  margin: 20px 0 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
body.single .hero .cc { font-size: 8.5px; padding: 4px 9px; }
body.single .hero .cat { padding: 5px 11px; }

body.single .toc { padding: 22px 24px; }
body.single .toc .t {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
body.single .toc a {
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
  line-height: 1.55;
}
body.single .toc a:hover { border-color: var(--teal-d); }

/* Corpo */
body.single .body { font-size: 16px; line-height: 1.55; }
body.single .body p,
body.single .body li { font-size: 17.5px; line-height: 1.58; }
body.single .body p { margin: 0 0 14px; }
body.single .body ul,
body.single .body ol { margin: 0 0 18px 20px; line-height: 1.55; }
body.single .body li { margin-bottom: 8px; }
body.single .body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin: var(--gap-blocchi) 0 16px;
}
body.single .body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--txt);
  margin: var(--gap-blocchi) 0 16px;
}
body.single .body > h2 + h3,
body.single .body > h2 + .wp-block-spacer + h3 { margin-top: 32px; }
/* Gli spazi sono gestiti dal CSS, non dai blocchi "spacer" */
body.single .body .wp-block-spacer { display: none; }

/* Link nel testo: teal, non pulsanti */
body.single .body p a,
body.single .body li a {
  color: var(--teal);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline;
  text-decoration: underline;
  text-underline-offset: 2px;
}
:root[data-theme="light"] body.single .body p a,
:root[data-theme="light"] body.single .body li a { color: var(--teal-d); }

/* Immagini del testo: larghe come la colonna, angoli 16px */
body.single .body figure,
body.single .body .wp-block-image { margin: 0 0 16px; }
body.single .body figure img,
body.single .body .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  -webkit-user-drag: none;
  user-select: none;
}
body.single .body figcaption {
  font-size: 9.5px;
  color: var(--mut);
  margin: 8px 0 16px;
  text-align: left;
}

/* Pulsanti legacy (wp-block-button) e pulsante "Vai alla mostra completa" */
body.single .body .wp-block-buttons { margin: 18px 0 0; }
body.single .body .wp-block-button__link,
body.single .body .btn-mostra {
  display: inline-block;
  background: none;
  border: 1px solid var(--line);
  color: var(--txt);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 20px;
  border-radius: 999px;
  transition: border-color 0.2s;
}
body.single .body .wp-block-button__link:hover,
body.single .body .btn-mostra:hover { border-color: var(--txt); background: none; color: var(--txt); }
body.single .body p.more { margin: 18px 0 0; }

/* Box finale */
body.single .cta { margin: var(--gap-blocchi) 0 0; }
body.single .cta .t { font-size: 26px; line-height: 1.2; }
body.single .cta p { font-size: 15px; margin: 0 0 18px; line-height: 1.5; }
body.single .cta .b { padding: 12px 22px; }
body.single .body > .adv { margin: var(--gap-blocchi) 0 0; }
body.single .share.end { margin-top: var(--gap-blocchi); }

/* Correlati */
body.single .rel h2 { font-weight: 700; }
body.single .rel .card h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0; }
body.single .rel .card .cat { margin: 12px 0 6px; }
body.single .rel .card .img { aspect-ratio: 3/2; border-radius: var(--r-md); overflow: hidden; }

/* Sidebar */
body.single .box { padding: 18px; }
body.single .box .t { font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
body.single .box a.l { padding: 8px 0; line-height: 1.35; }
body.single .box.cs p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }

/* ==========================================================================
   ALLINEAMENTO CATEGORIA / ARCHIVIO ALL'ANTEPRIMA DI JACOPO (2026-11-06)
   ========================================================================== */
body.archive main.wrap,
body.search main.wrap { padding-top: 64px; }
body.archive .lead,
body.search .lead { color: inherit; }
body.archive .lead h3,
body.search .lead h3 {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}
body.archive .lead p,
body.search .lead p { font-size: 17px; }
body.archive .lead .row,
body.search .lead .row { margin-bottom: 0; }
body.archive .lead .meta,
body.search .lead .meta {
  display: inline;
  font-family: var(--ui);
  font-size: 13px;
  line-height: inherit;
  color: var(--mut);
}
body.archive .lead .meta b,
body.search .lead .meta b { font-weight: 400; color: inherit; }
body.archive .seo h2 { font-weight: 700; }
body.archive .adv .slot { min-height: 120px; }
body.archive .adv { margin: var(--gap-blocchi) 0 0; }

/* ==========================================================================
   COLONNA LATERALE ARTICOLO (Jacopo 2026-11-06, punto 3)
   "Più letti" in flusso normale; sotto, un contenitore sticky con box Artsupp
   + adv 300x250, alto al massimo quanto lo schermo meno 100px.
   ========================================================================== */
body.single .side { position: static; top: auto; display: grid; gap: var(--gap-card); }
body.single .side-sticky {
  position: sticky;
  top: 100px;
  display: grid;
  gap: var(--gap-card);
  max-height: calc(100vh - 100px);
  align-content: start;
}
@media (max-width: 980px) {
  body.single .side-sticky { position: static; max-height: none; }
  /* Su mobile resta solo il box finale dell'articolo */
  body.single .side-sticky .box.cs { display: none; }
}
body.single aside { display: block; }
body.single .side-sticky { margin-top: var(--gap-card); }
