/* ============================================================
   lanzilotta.it — Theme CSS (portato da index.html)
   Versione: 1.0.0
   I design tokens (colori, font, spaziature, radius) sono in tokens.css
   ============================================================ */

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

html {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body { margin: 0; overflow-x: clip; }

/* Dot texture on ::before so the drift animation uses composited transform */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 28px 28px;
  z-index: -1;
  pointer-events: none;
}

body[data-texture="drift"]::before {
  inset: -310px; /* oversized: allows translate(280px,140px) without edge gaps */
  animation: tx-drift 80s linear infinite;
  will-change: transform;
}
@keyframes tx-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(280px, 140px); }
}
body[data-texture="clean"]::before { display: none; }

/* ── WordPress admin bar override ── */
body.admin-bar .sidenav { top: calc(50% + 16px); }

/* ── Scroll animations ── */
.scroll-anim { will-change: opacity, transform, clip-path; }

body[data-scroll="fade"] .scroll-anim { opacity: 0; transition: opacity .9s ease; }
body[data-scroll="fade"] .scroll-anim.in-view { opacity: 1; }

body[data-scroll="rise"] .scroll-anim {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,.7,.2,1);
}
body[data-scroll="rise"] .scroll-anim.in-view { opacity: 1; transform: none; }

body[data-scroll="blur"] .scroll-anim {
  opacity: 0; filter: blur(14px);
  will-change: filter, opacity;
  transition: opacity .9s ease, filter 1.1s ease;
}
body[data-scroll="blur"] .scroll-anim.in-view { opacity: 1; filter: blur(0); }

a { color: inherit; }
::selection { background: var(--accent); color: var(--white); }

/* ── Classi font inline (usate dall'editor) ── */
.f-body    { font-family: var(--f-body); }
.f-display { font-family: var(--f-display); font-weight: 600; }
.f-serif   { font-family: var(--f-serif); font-style: italic; }
.f-mono    { font-family: var(--f-mono); font-size: .82em; letter-spacing: .04em; }
.accent    { color: var(--accent); }

/* ── Page chrome ── */
.frame {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px 18px;
  max-width: 1480px; margin: 0 auto;
  border-top: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .brand { font-weight: 600; text-decoration: none; color: inherit; }

.topbar .navlinks { display: flex; gap: 22px; align-items: center; }
.topbar .navlinks a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.topbar .navlinks a:hover { color: var(--ink); }
.topbar .navlinks a.current { color: var(--accent); }
.topbar .navlinks a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1.5px; background: var(--accent);
}
@media (max-width: 768px) {
  .topbar .navlinks { gap: 14px; }
  .topbar .navlinks a { font-size: 11px; }
}
@media (max-width: 480px) {
  .topbar .navlinks { gap: 12px; }
}

/* ── Section label ── */
.seclabel {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 18px;
  color: var(--ink);
}
.seclabel .num { font-weight: 600; }
.seclabel .line { width: 88px; height: 1px; background: var(--ink); }

/* ── Icons ── */
.ico {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: inline-block; vertical-align: -2px;
}
.ico-sm { width: 11px; height: 11px; stroke-width: 1.8; }
.ico-lg { width: 18px; height: 18px; }

.micon {
  font-family: 'Material Symbols Outlined';
  font-size: 17px; line-height: 1; vertical-align: -3px;
  font-weight: normal; font-style: normal;
  letter-spacing: normal; text-transform: none;
  display: inline-block; direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 20;
  flex-shrink: 0;
}
.micon-sm { font-size: 13px; vertical-align: -2px; }
body[data-icons="full"] .micon { font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; }

.brand-ico { display: inline-block; line-height: 0; vertical-align: -3px; }
.brand-ico svg { width: 14px; height: 14px; }
.brand-ico .brand-fill { display: none; fill: currentColor; }
body[data-icons="full"] .brand-ico .brand-outline { display: none; }
body[data-icons="full"] .brand-ico .brand-fill { display: inline-block; }

/* ── Shared atoms ── */
.kicker {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; gap: 10px; align-items: center;
}
.kicker .dot { width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--accent); flex-shrink: 0; }

.chip,
.row .tag,
.talk .rl {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--accent-line);
  padding: 5px 10px; border-radius: var(--radius-pill);
  color: var(--accent);
  background: var(--accent-tint);
  display: inline-block;
  transition: background .2s, color .2s, border-color .2s;
}
.chip.solid,
.row:hover .tag,
.card:hover .chip,
.pub:hover .chip,
.art-card:hover .chip,
.talk:hover .rl {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.chip.ghost { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; }

/* ── Side dot nav ── */
.sidenav {
  position: fixed;
  top: 50%; right: 22px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 30;
  pointer-events: none;
}
.sidenav a {
  width: 9px; height: 9px;
  display: block; position: relative;
  transition: transform .2s;
  pointer-events: auto;
}
.sidenav a::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-circle);
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: background .25s ease;
}
.sidenav a.on-dark::before { background: rgba(255,255,255,.55); }
.sidenav a:hover::before { background: color-mix(in srgb, var(--ink) 80%, transparent); }
.sidenav a.on-dark:hover::before { background: var(--white); }
.sidenav a:hover { transform: scale(1.35); }
.sidenav a.active { transform: scale(1.55); }
.sidenav a.active::before,
.sidenav a.active.on-dark::before,
.sidenav a.active:hover::before { background: var(--accent); }
.sidenav a::after {
  content: attr(data-label);
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink); color: var(--bg);
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--radius-pill);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.sidenav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ── HERO ── */
.hero-rule { display: none; }
.hero-photo-circle {
  width: 100%; aspect-ratio: 1 / 1; max-width: 520px;
  border-radius: var(--radius-circle); background: var(--peach);
  position: relative; margin: 24px auto 0; overflow: visible;
}
.hero-photo-circle img {
  position: absolute;
  inset: -10% 4% -18% 4%;
  width: 92%; height: 128%;
  object-fit: contain; object-position: bottom center;
  filter: grayscale(1) contrast(1.04);
  border-radius: var(--radius-none); mix-blend-mode: normal;
}
.hero-photo-tag { display: none; }
.hero-marks { position: absolute; inset: 0; pointer-events: none; }
.hero-marks .plus {
  position: absolute;
  font-family: var(--f-mono); font-size: 14px; color: var(--ink);
}
.hero-marks .plus.tl { top: 0; left: -8px; }
.hero-marks .plus.tr { top: 0; right: -8px; }
.hero-marks .plus.bl { bottom: 0; left: -8px; }
.hero-marks .plus.br { bottom: 0; right: -8px; }
.hero-quote {
  margin-top: 36px;
  font-family: var(--f-serif); font-style: italic;
  font-size: 22px; line-height: 1.3; color: var(--ink);
  max-width: 380px; text-align: center;
  margin-left: auto; margin-right: auto;
  position: relative; padding-top: 22px;
}
.hero-quote::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 1px; background: var(--accent);
}
.hero-quote .src {
  display: block;
  font-family: var(--f-mono); font-style: normal;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 14px;
}

/* ── MARQUEE BAR ── */
.marquee {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: var(--panel-bg); color: var(--panel-fg);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Generic section ── */
section.block {
  padding-top: 96px; padding-bottom: 96px;
  border-top: 1px solid var(--ink);
}
section.block:first-of-type { border-top: none; }
.block-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 56px; max-width: 1000px;
}
.block-head h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0; max-width: 16ch; text-wrap: balance;
}
.block-head h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.block-head .lede {
  font-size: 17px; line-height: 1.55;
  max-width: 48ch; color: var(--ink-2);
  margin: 6px 0 0; text-wrap: pretty;
}
.block-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  padding: 13px 26px; border-radius: var(--radius-pill);
  transition: background .2s, color .2s, border-color .2s, gap .2s;
}
.block-cta:hover { background: var(--accent); color: var(--white); border-color: var(--accent); gap: 14px; }
button.block-cta { cursor: pointer; font-size: 12px; border-style: solid; }
.block-cta-row { display: flex; justify-content: center; margin-top: 48px; }
.back-cta {
  margin-top: 72px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 6px;
}
.back-cta:hover { color: var(--accent); }

/* ── PERCORSO TIMELINE ── */
.timeline { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 110px 1.5fr 2fr minmax(120px, max-content);
  gap: 32px; align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: 15px; position: relative;
}
.row::before {
  content: "";
  position: absolute; inset: 4px -16px;
  background: var(--accent-soft); border-radius: var(--radius-md);
  opacity: 0; transition: opacity .18s ease; z-index: 0;
}
.row > * { position: relative; z-index: 1; }
.row:hover::before { opacity: 1; }
.row .year { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.row .role { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.row .where { color: var(--muted); line-height: 1.5; max-width: 48ch; }
.row .end-col { justify-self: end; display: flex; align-items: center; gap: 10px; }
.row .tag { white-space: nowrap; }
.row-link-arrow {
  color: var(--muted); text-decoration: none;
  font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center;
  opacity: .45;
  transition: color .18s ease, opacity .18s ease;
}
.row:hover .row-link-arrow,
.row-link-arrow:hover { color: var(--accent); opacity: 1; }

/* ── CITY VISION FEATURE ── */
.feature {
  background: var(--panel-bg); color: var(--panel-fg);
  border-radius: var(--radius-sm);
  padding: 56px 56px 60px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; position: relative; overflow: hidden;
}
.feature .eyebrow {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 22px;
  display: flex; gap: 14px; align-items: center;
}
.feature .eyebrow .pulse {
  width: 8px; height: 8px; border-radius: var(--radius-circle); background: var(--accent);
  position: relative;
}
.feature .eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-glow);
  animation: pulse 1.8s infinite;
  will-change: transform, opacity;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(3.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}
.feature h3 {
  font-family: var(--f-display); font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  margin: 0 0 20px;
}
.feature h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--peach); }
.feature p {
  font-size: 16px; line-height: 1.6;
  color: color-mix(in srgb, var(--panel-fg) 82%, transparent);
  max-width: 40ch; margin: 0 0 12px;
}
.feature p:last-of-type { margin-bottom: 24px; }
.feature .stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px; align-self: end;
}
.stat { border-top: 1px solid color-mix(in srgb, var(--panel-fg) 18%, transparent); padding-top: 16px; }
.stat .n {
  font-family: var(--f-display); font-weight: 700;
  font-size: 52px; line-height: 1; letter-spacing: -0.04em;
  color: var(--panel-fg);
}
.stat .n .accent { color: var(--accent); }
.stat .l {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--peach); margin-top: 10px;
  max-width: 22ch; line-height: 1.4;
}
.feature .corner {
  position: absolute; bottom: -120px; right: -120px;
  width: 360px; height: 360px; border-radius: var(--radius-circle);
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.feature .cta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--panel-fg);
  border-bottom: 1px solid var(--peach); padding-bottom: 6px;
  text-decoration: none; width: max-content;
}
.feature .cta:hover { color: var(--accent); border-color: var(--accent); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.feature-stamp {
  position: absolute; top: 28px; right: 28px;
  background: var(--peach); border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  z-index: 2; transform: rotate(2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.feature-stamp img { height: 36px; width: auto; display: block; }
.feature-stamp .l {
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.3;
  border-left: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  padding-left: 10px;
}
.feature-stamp .l strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.feature-chips .chip { color: var(--peach); border-color: rgba(244,214,197,.35); background: rgba(244,214,197,.06); }
.feature:hover .chip { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── LAVORO CARDS ── */
.twoup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--ink);
  padding: 0; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--panel-bg); }
.card-media {
  aspect-ratio: 16/9; border-bottom: 1px solid var(--ink);
  position: relative; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(.15) contrast(1.02);
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-media.type {
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 32px 28px;
  background: var(--peach); color: var(--ink); position: relative;
}
.card-media.type::before {
  content: "\201C";
  position: absolute; top: 0; left: 18px;
  font-family: var(--f-serif); font-size: 90px; color: var(--accent); line-height: 1;
}
.card-media.type .quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.01em;
  max-width: 18ch; margin: 0;
}
.card-media.type.logo { background: var(--peach); align-items: center; justify-content: center; padding: 24px; }
.card-media.type.logo::before { display: none; }
.card-media.type.logo img { max-height: 100%; max-width: 60%; object-fit: contain; filter: none; }
.card-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card-brand img { height: 14px; width: auto; }
.card-media.type .quote .accent { color: var(--accent); }
.card-body { padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.card .kicker .dot { width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--accent); }
.card h3 {
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.card h3 .sub {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--accent); font-size: 17px;
}
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.card .meta {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ── PUBBLICAZIONI ── */
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pub {
  background: var(--paper); border: 1px solid var(--ink);
  padding: 0; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pub:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--panel-bg); }
.pub-media {
  aspect-ratio: 4/3; border-bottom: 1px solid var(--ink);
  position: relative; overflow: hidden;
}
.pub-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pub:hover .pub-media img { transform: scale(1.04); }
.pub-media.type { display: flex; align-items: flex-end; padding: 28px 24px; position: relative; }
.pub-media.type.peach { background: var(--peach); }
.pub-media.type.dark { background: var(--panel-bg); color: var(--panel-fg); }
.pub-media.type::before { content: "\201C"; position: absolute; top: 0; left: 16px; font-family: var(--f-serif); font-size: 80px; color: var(--accent); line-height: 1; }
.pub-media.type .quote { font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.18; margin: 0; max-width: 18ch; letter-spacing: -0.01em; }
.pub-media.type.dark .quote { color: var(--peach); }
.pub-media.type .quote .accent { color: var(--accent); }
.pub-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pub .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.pub .kicker .dot { width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--accent); }
.pub h4 { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.pub h4 .sub { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 15px; margin-top: 2px; letter-spacing: 0; }
.pub p.desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 32ch; }
.pub .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pub .pubmeta {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex; justify-content: flex-start; gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.pub .pubmeta .arr { margin-left: auto; }
a.pub { text-decoration: none; color: inherit; }

/* ── NEWS CARDS ── */
.pubs.news-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pub-news .pub-media {
  aspect-ratio: 5/4; background: var(--accent); border-color: var(--accent);
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start;
  padding: 22px; color: var(--white); position: relative;
}
.pub-news .pub-media::before { display: none; }
.pub-news .news-tag {
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--accent); font-weight: 600;
}
.pub-news .news-date { margin: 0; line-height: 1; }
.pub-news .news-date .d { display: block; font-family: var(--f-display); font-weight: 700; font-size: 56px; letter-spacing: -0.04em; color: var(--white); }
.pub-news .news-date .m { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pub-news .pub-body { padding: 20px 22px 22px; gap: 10px; }
.pub-news h4 { font-size: 16px; line-height: 1.3; }
.pub-news .pubmeta { padding-top: 14px; font-size: 10px; }
.pub-news.alt .pub-media { background: var(--panel-bg); border-color: var(--panel-bg); }
.pub-news.alt .news-tag { background: var(--accent); color: var(--white); }
.pub-news.alt .news-date .d { color: var(--peach); }
.pub-news.alt .news-date .m { color: color-mix(in srgb, var(--panel-fg) 75%, transparent); }

/* News card con immagine in evidenza */
.pub-news .pub-media.has-thumb {
  padding: 0; background: transparent; border-color: transparent;
  display: block; overflow: hidden; position: relative;
}
.pub-news .pub-media.has-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-news .news-tag--over {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--white); font-weight: 600;
}

/* ── ART-CARD — design unificato Lavoro / Articoli / News ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.art-grid--news { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.art-card {
  display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 12px; overflow: hidden;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none; color: inherit;
}
a.art-card { cursor: pointer; }
.art-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

/* Media area */
.art-card-media { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; }
.art-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.art-card:hover .art-card-media img { transform: scale(1.04); }

/* Logo area (lavoro) */
.art-card-media.art-card-logo {
  background: var(--peach); display: flex;
  align-items: center; justify-content: center; padding: 32px;
}
.art-card-media.art-card-logo img { max-height: 80px; max-width: 60%; object-fit: contain; transform: none !important; }

/* Placeholder neutro quando manca la thumbnail (no-news) */
.art-card-media.art-card-placeholder { background: var(--peach); }

/* News date area */
.art-card--news .art-card-media.art-card-date {
  background: var(--accent); aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start;
  padding: 18px 20px; color: var(--white);
}
.art-news-badge {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill); background: var(--white); color: var(--accent); font-weight: 600;
}
.art-news-badge--over {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: var(--white);
}
.art-news-date { margin: 0; line-height: 1; }
.art-news-date .d { display: block; font-family: var(--f-display); font-weight: 700; font-size: 48px; letter-spacing: -0.04em; color: var(--white); }
.art-news-date .m { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }

/* Body */
.art-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art-card-kicker {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2);
}
.art-card-title {
  font-family: var(--f-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.18; margin: 0;
}
.art-card--news .art-card-title { font-size: 16px; }
.art-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.art-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }

/* Footer */
.art-card-footer {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.art-card-fonte { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.art-card-fonte .fonte-logo { height: 16px; width: auto; object-fit: contain; flex-shrink: 0; }
.art-card-fonte span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-card-footer .arr { margin-left: auto; flex-shrink: 0; }

/* ── INTERVENTI ── */
.talks { border-top: 1px solid var(--ink); }
.talk {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.2fr 140px 28px;
  gap: 24px; padding: 22px 4px; align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: pointer; position: relative;
}
.talk::before {
  content: "";
  position: absolute; inset: 4px -16px;
  background: var(--accent-soft); border-radius: var(--radius-md);
  opacity: 0; transition: opacity .18s ease; z-index: 0;
}
.talk > * { position: relative; z-index: 1; }
.talk:hover::before { opacity: 1; }
.talk:hover .arr { color: var(--accent); transform: translateX(4px); }
.talk .yr { font-family: var(--f-mono); font-size: 12.5px; }
.talk .ti { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.talk .ti em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.talk .ve { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.talk .rl { justify-self: end; white-space: nowrap; }
.talk .arr { text-align: right; font-family: var(--f-mono); font-size: 16px; transition: .2s; }

/* ── MANIFESTO ── */
.manifesto-body { max-width: 1080px; margin: 0 auto; }
.manifesto-pullquote { text-align: center; margin: 0 0 56px; padding: 0 24px; position: relative; }
.manifesto-pullquote::before { content: "\201C"; display: block; font-family: var(--f-serif); font-size: clamp(80px, 9vw, 130px); line-height: .55; color: var(--accent); margin-bottom: 18px; }
.manifesto-pullquote p { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.24; margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -0.01em; }
.manifesto-pullquote p .accent { color: var(--accent); font-style: italic; }
.manifesto-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.manifesto-point { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 0; display: flex; flex-direction: column; gap: 8px; }
.manifesto-point .manifesto-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 400; line-height: 1.3; flex-shrink: 0; }
.manifesto-point strong { color: var(--ink); font-weight: 600; }
.manifesto-sig { text-align: center; margin-top: 56px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.manifesto-star { display: block; font-size: 16px; color: var(--accent); margin-bottom: 12px; line-height: 1; text-transform: none; }

/* ── CONTATTI ── */
.contact {
  padding-top: 96px; padding-bottom: 64px;
  border-top: 1px solid var(--ink);
  background: var(--panel-bg); color: var(--panel-fg);
  position: relative; overflow: hidden;
}
.contact.as-footer { margin-top: 96px; }
.contact .seclabel { color: var(--peach); }
.contact .seclabel .line { background: var(--peach); }
.contact h2 {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.005em; line-height: 1.18;
  margin: 28px 0 0; max-width: 22ch; color: var(--panel-fg);
}
.contact h2::before { content: "\201C"; color: var(--accent); font-family: var(--f-serif); margin-right: 4px; }
.contact h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.contact .row2 {
  margin-top: 56px; display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
  border-top: 1px solid color-mix(in srgb, var(--panel-fg) 20%, transparent);
  padding-top: 40px;
}
.contact .row2 h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); margin: 0 0 22px; font-weight: 500; }
.contact .row2 a { display: block; text-decoration: none; font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; padding: 10px 0; line-height: 1.4; border-bottom: 1px solid color-mix(in srgb, var(--panel-fg) 15%, transparent); }
.contact .row2 a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Contact form ── */
.contact-form { margin: 72px auto 64px; padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 720px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field.full { grid-column: 1 / -1; }
.cf-field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.cf-field input,
.cf-field textarea { font-family: var(--f-body); font-size: 16px; color: var(--panel-fg); background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--panel-fg) 28%, transparent); padding: 10px 2px; transition: border-color .2s; width: 100%; resize: none; }
.cf-field textarea { min-height: 92px; line-height: 1.5; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: color-mix(in srgb, var(--panel-fg) 40%, transparent); }
.cf-field input:focus,
.cf-field textarea:focus { outline: none; border-color: var(--accent); }
.cf-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.cf-submit { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--panel-bg); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-pill); padding: 13px 26px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform .2s, background .2s, color .2s; }
.cf-submit:hover { transform: translateY(-2px); }
.cf-submit .micon { font-size: 16px; }
.cf-note { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--panel-fg) 55%, transparent); }
.contact .footnote { margin-top: 80px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--panel-fg) 20%, transparent); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--panel-fg) 60%, transparent); }
.contact .footnote > :nth-child(2) { text-align: center; }
.contact .footnote > :nth-child(3) { text-align: right; }
.contact .footnote .accent-dot { color: var(--accent); margin: 0 6px; }

/* ── CF7 override per stile tema ── */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea { font-family: var(--f-body); font-size: 16px; color: var(--panel-fg); background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--panel-fg) 28%, transparent); padding: 10px 2px; width: 100%; resize: none; }
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus { outline: none; border-color: var(--accent); }
.wpcf7-form .wpcf7-submit { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--panel-bg); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-pill); padding: 13px 26px; cursor: pointer; }
.wpcf7-form .wpcf7-submit:focus { outline: none; }
.wpcf7-response-output { font-family: var(--f-mono); font-size: 12px; color: var(--peach); border: none !important; margin-top: 12px; padding: 0 !important; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .frame, .topbar { padding-left: 48px; padding-right: 48px; }
  .feature { padding: 48px 44px 52px; gap: 44px; }
  .feature .stats { gap: 20px 28px; }
  .stat .n { font-size: 44px; }
  .feature-stamp { top: 20px; right: 20px; padding: 12px 14px; }
  .feature-stamp img { height: 30px; }
  .sidenav { right: 14px; }
}
@media (max-width: 1024px) {
  .frame, .topbar { padding-left: 36px; padding-right: 36px; }
  .topbar { padding-top: 18px; padding-bottom: 14px; }
  .hero-photo-circle { max-width: 420px; }
  .hero-quote { font-size: 18px; }
  section.block { padding-top: 72px; padding-bottom: 72px; }
  .block-head { margin-bottom: 44px; gap: 16px; }
  .block-head h2, :is(h1, h2).dl-mod-secheading, .dl-mod-title.dl-style-block-head { font-size: clamp(34px, 5.2vw, 64px); }
  .dl-mod-seclabel, :is(h1, h2).dl-mod-secheading, .dl-mod-title.dl-style-block-head { margin-bottom: 16px; }
  .row { grid-template-columns: 80px 1fr 1.5fr 90px; gap: 20px; padding: 20px 0; }
  .feature { grid-template-columns: 1fr; padding: 44px; }
  .feature h3 { font-size: clamp(30px, 4.6vw, 44px); }
  .feature .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; align-self: start; }
  .feature-stamp { position: static; transform: none; margin-bottom: 24px; align-self: start; width: max-content; }
  .twoup { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card-body { padding: 22px 24px 24px; }
  .pubs { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pub-body { padding: 20px 22px 22px; }
  .art-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .art-grid--news { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .talk { grid-template-columns: 70px 1.4fr 1fr 120px 24px; gap: 16px; padding: 20px 4px; }
  .talk .ti { font-size: 17px; }
  .contact { padding-top: 72px; }
  .contact h2 { font-size: clamp(28px, 4vw, 44px); }
  .contact .row2 { gap: 32px; margin-top: 44px; padding-top: 32px; }
  .contact .row2 a { font-size: 17px; }
  .sidenav { display: none; }
  .pubs.news-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-points { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
}
@media (max-width: 768px) {
  .frame, .topbar { padding-left: 24px; padding-right: 24px; }
  .topbar { font-size: 11px; padding-top: 14px; padding-bottom: 12px; }
  .hero-photo-circle { max-width: 320px; overflow: hidden; }
  .hero-photo-circle img { inset: 0; filter: grayscale(1) contrast(1.04); object-fit: cover; object-position: 50% 0%; }
  .hero-quote { margin-top: 24px; font-size: 17px; }
  .marquee { padding: 11px 0; }
  .marquee-track { font-size: 11px; gap: 36px; animation-duration: 28s; }
  .marquee-track span { gap: 36px; }
  section.block { padding-top: 60px; padding-bottom: 60px; }
  .block-head { margin-bottom: 32px; gap: 14px; }
  .block-head h2, :is(h1, h2).dl-mod-secheading, .dl-mod-title.dl-style-block-head { font-size: clamp(30px, 7vw, 48px); }
  .block-head .lede, .dl-mod-seclede, .dl-mod-text.dl-style-lede { font-size: 16px; }
  .dl-mod-seclabel, :is(h1, h2).dl-mod-secheading, .dl-mod-title.dl-style-block-head { margin-bottom: 14px; }
  .seclabel .line { width: 48px; }
  .timeline { border-top: none; }
  .row { grid-template-columns: max-content 1fr; gap: 4px 16px; padding: 18px 0; align-items: start; }
  .row .year { padding-top: 2px; white-space: nowrap; }
  .row .where { grid-column: 2; font-size: 14px; }
  .row .end-col { display: none; }
  .row .role { font-size: 16px; }
  .feature { padding: 32px 24px; gap: 28px; }
  .feature h3 { font-size: clamp(26px, 6.6vw, 38px); margin-bottom: 16px; }
  .feature p { font-size: 15px; }
  .feature .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat .n { font-size: 38px; }
  .feature-stamp { padding: 10px 12px; }
  .feature-stamp img { height: 26px; }
  .twoup { grid-template-columns: 1fr; gap: 16px; }
  .card-media { aspect-ratio: 16/8; }
  .card-body { padding: 22px 22px 22px; }
  .card h3 { font-size: 24px; }
  .pubs { grid-template-columns: 1fr; gap: 16px; }
  .pub-media { aspect-ratio: 16/9; }
  .art-grid, .art-grid--news { grid-template-columns: 1fr; gap: 14px; }
  .art-card-title { font-size: 17px; }
  .art-news-date .d { font-size: 40px; }
  .talk { grid-template-columns: 56px 1fr 24px; gap: 6px 14px; padding: 18px 0; }
  .talk .yr { font-size: 11.5px; }
  .talk .ti { font-size: 16px; line-height: 1.3; }
  .talk .ve { grid-column: 2; font-size: 12.5px; padding-top: 4px; }
  .talk .rl { display: none; }
  .talk .arr { font-size: 14px; }
  .contact { padding-top: 60px; padding-bottom: 48px; }
  .contact h2 { font-size: clamp(24px, 6vw, 36px); margin-top: 18px; max-width: none; }
  .pubs.news-grid { grid-template-columns: 1fr; gap: 12px; }
  .pub-news .news-date .d { font-size: 44px; }
  .manifesto-pullquote p { font-size: clamp(22px, 5.8vw, 30px); }
  .manifesto-points { gap: 22px; }
  .manifesto-point { font-size: 16px; }
  .contact .row2 { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 26px; }
  .contact .row2 h3 { margin-bottom: 14px; }
  .contact .row2 a { font-size: 16px; padding: 8px 0; }
  .contact-form { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; padding-top: 32px; }
  .contact .footnote { margin-top: 44px; grid-template-columns: 1fr; justify-items: start; gap: 8px; font-size: 10px; }
  .contact .footnote > :nth-child(2),
  .contact .footnote > :nth-child(3) { text-align: left; }
}
@media (max-width: 480px) {
  .frame, .topbar { padding-left: 18px; padding-right: 18px; }
  .topbar { padding-top: 12px; padding-bottom: 10px; }
  .topbar .brand { font-size: 11px; }
  .hero-photo-circle { max-width: 240px; overflow: hidden; }
  .hero-photo-circle img { inset: 0; object-fit: cover; object-position: 50% 0%; }
  .hero-quote { font-size: 16px; padding-top: 18px; }
  .hero-quote::before { width: 22px; }
  section.block { padding-top: 48px; padding-bottom: 48px; }
  .block-head { margin-bottom: 26px; }
  .block-head h2, :is(h1, h2).dl-mod-secheading, .dl-mod-title.dl-style-block-head { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }
  .block-head .lede, .dl-mod-seclede, .dl-mod-text.dl-style-lede { font-size: 15px; }
  .seclabel { font-size: 10.5px; gap: 12px; }
  .seclabel .line { width: 32px; }
  .row { grid-template-columns: max-content 1fr; gap: 4px 12px; padding: 16px 0; }
  .row .year { font-size: 11.5px; }
  .row .role { font-size: 15.5px; }
  .row .where { font-size: 13.5px; }
  .feature { padding: 26px 20px; gap: 22px; }
  .feature h3 { font-size: clamp(24px, 7.4vw, 32px); }
  .feature h3 br { display: none; }
  .feature p { font-size: 14.5px; line-height: 1.55; }
  .feature .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat .n { font-size: 34px; }
  .feature-stamp { display: inline-flex; padding: 8px 10px; margin-bottom: 18px; }
  .feature-stamp img { height: 22px; }
  .feature .cta { font-size: 11px; }
  .card-media { aspect-ratio: 4/3; }
  .card-body { padding: 18px 20px 20px; gap: 12px; }
  .card .kicker { font-size: 10px; gap: 6px; }
  .card h3 { font-size: 22px; }
  .card h3 .sub { display: block; font-size: 15px; margin-top: 2px; }
  .card p { font-size: 14.5px; }
  .chip { font-size: 10px; padding: 4px 8px; }
  .card .chips, .pub .chips { gap: 5px; }
  .card .meta, .pub .pubmeta { font-size: 10px; padding-top: 12px; }
  .pub-media { aspect-ratio: 4/3; }
  .pub-body { padding: 18px 20px 20px; }
  .pub h4 { font-size: 18px; }
  .pub h4 .sub { font-size: 14px; }
  .pub p.desc { font-size: 13.5px; }
  .talk { padding: 14px 0; grid-template-columns: 50px 1fr 20px; }
  .talk .yr { font-size: 11px; }
  .talk .ti { font-size: 15px; }
  .talk .ve { font-size: 12px; }
  .contact { padding-top: 48px; }
  .contact h2 { font-size: clamp(22px, 6.8vw, 30px); }
  .contact .row2 a { font-size: 15px; }
}

/* ── TWEAK VARIANTS ── */
body[data-font="bricolage"] { --f-display: "Bricolage Grotesque", "Space Grotesk", system-ui; }
body[data-font="serif"]     { --f-display: "DM Serif Display", "Instrument Serif", "Times New Roman", serif; }
body[data-font="serif"] .hero h1,
body[data-font="serif"] .block-head h2,
body[data-font="serif"] :is(h1, h2).dl-mod-secheading,
body[data-font="serif"] .dl-mod-title.dl-style-block-head,
body[data-font="serif"] .feature h3,
body[data-font="serif"] .contact h2 { font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; }
body[data-font="serif"] .card h3,
body[data-font="serif"] .pub h4 { font-weight: 400; letter-spacing: -0.01em; }

body[data-vibe="brutalist"] .card,
body[data-vibe="brutalist"] .pub { border-width: 2.5px; border-radius: var(--radius-none); }
body[data-vibe="brutalist"] .card:hover,
body[data-vibe="brutalist"] .pub:hover { box-shadow: 12px 12px 0 var(--panel-bg); transform: translateY(-4px); }
body[data-vibe="brutalist"] .feature { border-radius: var(--radius-none); border: 2.5px solid var(--ink); }
body[data-vibe="brutalist"] .chip,
body[data-vibe="brutalist"] .row .tag,
body[data-vibe="brutalist"] .talk .rl { border-radius: var(--radius-none); border-width: 1.5px; }
body[data-vibe="brutalist"] section.block,
body[data-vibe="brutalist"] .contact { border-top-width: 2.5px; }
body[data-vibe="brutalist"] .topbar { border-top-width: 2.5px; }
body[data-vibe="brutalist"] .marquee { border-top-width: 2.5px; border-bottom-width: 2.5px; }
body[data-vibe="brutalist"] .cf-submit { border-radius: var(--radius-none); border-width: 2px; }
body[data-vibe="brutalist"] .cf-submit:hover { box-shadow: 5px 5px 0 var(--panel-fg); transform: translateY(-2px); }
body[data-vibe="brutalist"] .feature-stamp { border-radius: var(--radius-none); }
body[data-vibe="brutalist"] .cf-field input,
body[data-vibe="brutalist"] .cf-field textarea { border-bottom-width: 2px; }

body[data-vibe="soft"] .card,
body[data-vibe="soft"] .pub { border: none; border-radius: 18px; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06); }
body[data-vibe="soft"] .card:hover,
body[data-vibe="soft"] .pub:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 20px 48px rgba(0,0,0,.10); }
body[data-vibe="soft"] .feature { border-radius: 24px; }
body[data-vibe="soft"] .card-media,
body[data-vibe="soft"] .pub-media { border-bottom: none; }
body[data-vibe="soft"] .pub-media,
body[data-vibe="soft"] .card-media { border-top-left-radius: 18px; border-top-right-radius: 18px; overflow: hidden; }
body[data-vibe="soft"] section.block,
body[data-vibe="soft"] .contact { border-top-color: transparent; }
body[data-vibe="soft"] .timeline { border-top-color: color-mix(in srgb, var(--ink) 12%, transparent); }
body[data-vibe="soft"] .topbar { border-top-color: transparent; }
body[data-vibe="soft"] .marquee { border-top-color: transparent; border-bottom-color: transparent; border-radius: 24px; margin: 0 64px; }
body[data-vibe="soft"] .cf-submit { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
body[data-vibe="soft"] .cf-submit:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 45%, transparent); }

body[data-density="compact"] section.block,
body[data-density="compact"] .contact { padding-top: 64px; padding-bottom: 64px; }
body[data-density="compact"] .hero { padding-top: 56px; padding-bottom: 64px; }
body[data-density="compact"] .block-head { margin-bottom: 36px; }
body[data-density="roomy"] section.block,
body[data-density="roomy"] .contact { padding-top: 140px; padding-bottom: 140px; }
body[data-density="roomy"] .hero { padding-top: 120px; padding-bottom: 140px; }
body[data-density="roomy"] .block-head { margin-bottom: 84px; }

body[data-mode="dark"] .feature,
body[data-mode="dark"] .contact,
body[data-mode="dark"] .marquee,
body[data-mode="dark"] .pub-media.type.dark { background: var(--paper); }
body[data-mode="dark"] .card:hover,
body[data-mode="dark"] .pub:hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--panel-fg) 22%, transparent); }
body[data-mode="dark"][data-vibe="brutalist"] .card:hover,
body[data-mode="dark"][data-vibe="brutalist"] .pub:hover { box-shadow: 12px 12px 0 color-mix(in srgb, var(--panel-fg) 22%, transparent); }
body[data-mode="dark"][data-vibe="soft"] .card:hover,
body[data-mode="dark"][data-vibe="soft"] .pub:hover { box-shadow: 0 4px 12px rgba(0,0,0,.5), 0 20px 48px rgba(0,0,0,.6); }
body[data-mode="dark"][data-vibe="brutalist"] .cf-submit:hover { box-shadow: 5px 5px 0 color-mix(in srgb, var(--panel-fg) 30%, transparent); }

/* ── Single articolo/news — stile editorial portato da html-design/article1.html ── */
.article-wrap { padding-top: 56px; padding-bottom: 64px; }
.article-head { max-width: 820px; margin: 0 auto 40px; }
.article-kicker {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.article-kicker .cat { color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-tint); padding: 4px 11px; border-radius: var(--radius-pill); }
.article-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 24px; text-wrap: balance;
}
.article-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.article-standfirst {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 27px); line-height: 1.4; color: var(--ink-2);
  margin: 0 0 32px; max-width: 42ch;
}
.article-byline {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.article-byline .author { color: var(--ink); font-weight: 500; }
.article-byline .sep { color: var(--accent); }
.article-cover {
  max-width: 1100px; margin: 0 auto 56px; aspect-ratio: 16/7;
  border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--peach);
}
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 26px; }
.prose p { margin: 0; text-wrap: pretty; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 48px 0 0; }
.prose h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.prose h3 { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.prose a:hover { border-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 8px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink);
}
.prose ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { display: grid; grid-template-columns: 24px 1fr; align-items: baseline; }
.prose ul li::before { content: "↳"; color: var(--accent); font-family: var(--f-mono); }
.article-tags {
  max-width: 720px; margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.article-tags .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.article-ext-link { max-width: 720px; margin: 48px auto 0; }
@media (max-width: 768px) {
  .article-wrap { padding-top: 36px; }
  .article-cover { aspect-ratio: 4/3; }
  .prose { font-size: 16.5px; }
}

/* ── Single generico (page.php) ── */
.single-body { max-width: 640px; }
.single-body p { font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.single-body h2, .single-body h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 36px 0 12px; }
.single-body h2 { font-size: 26px; }
.single-body h3 { font-size: 20px; }
.single-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; color: var(--ink-2); font-style: italic; }

.dl-archive { padding-top: 80px; padding-bottom: 120px; }
.dl-archive .archive-header { margin-bottom: 64px; }
.dl-archive .archive-header h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.03em; line-height: 1.02; margin: 16px 0 0; }
.dl-archive .archive-header h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.dl-archive-edit-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.dl-archive-edit-link:hover { color: var(--accent); }

/* Messaggio "nessun contenuto" — card grid e archivi */
.dl-no-results { color: var(--muted); font-family: var(--f-mono); font-size: 12px; padding: 32px 0; }
.dl-no-results--grid { grid-column: 1 / -1; }

/* section-secheader (intestazione standalone) */
.dl-sec-secheader { padding-bottom: 0; }
.dl-sec-secheader .block-head { margin-bottom: 0; padding-bottom: 0; }

/* ── Filter bar — articoli ── */
.filter-bar { margin-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius-pill);
  background: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { border-color: var(--accent); background: var(--accent); color: var(--white); }
.filter-chip--tag { font-size: 10px; padding: 4px 12px; border-style: dashed; }
.filter-chip--tag.active { border-style: solid; }
.dl-articles-grid.dl-loading,
#dl-articles-grid.dl-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }
.dl-no-results { color: var(--muted); font-family: var(--f-mono); font-size: 13px; padding: 48px 0; letter-spacing: .08em; }

/* ============================================================
   Moduli (section-custom)
   ============================================================ */

/* Sezione custom */
.dl-section-custom { padding-top: 72px; padding-bottom: 72px; }
.dl-sec-dark  { background: var(--panel-bg); color: var(--panel-fg); }
.dl-sec-paper { background: var(--paper); }
.dl-sec-accent{ background: var(--accent); color: var(--white); }
.dl-frame-full { width: 100%; max-width: none; padding: 0 64px; }

/* Base modulo */
.dl-module-wrap { position: relative; margin-bottom: 0; }
.dl-align-center { text-align: center; }
.dl-align-right  { text-align: right; }

/* Titolo */
.dl-mod-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
h1.dl-mod-title { font-size: clamp(44px, 6.4vw, 116px); }
h2.dl-mod-title { font-size: clamp(36px, 4.8vw, 76px); }
h3.dl-mod-title { font-size: clamp(28px, 3.2vw, 52px); }
h4.dl-mod-title { font-size: clamp(22px, 2.4vw, 36px); }
h5.dl-mod-title { font-size: clamp(18px, 1.8vw, 28px); }
h6.dl-mod-title { font-size: clamp(15px, 1.4vw, 22px); }
p.dl-mod-title-p {
  font-family: var(--f-sans, inherit); font-weight: 400; letter-spacing: normal;
  line-height: 1.6; font-size: 16px; color: var(--ink-2);
}
.dl-mod-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* Titolo — variante block-head (titolo grande di sezione) */
.dl-mod-title.dl-style-block-head {
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.02; margin: 0 0 18px; max-width: 16ch; text-wrap: balance;
}

/* Titolo — variante eyebrow (etichetta mono uppercase) */
.dl-mod-title.dl-style-eyebrow {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  color: var(--muted); margin: 0 0 8px;
}

/* Numero + nome sezione (stile seclabel del block-head) */
.dl-mod-seclabel { margin-bottom: 18px; }
.dl-sec-dark .dl-mod-seclabel { color: var(--panel-fg); }
.dl-sec-dark .dl-mod-seclabel .line { background: var(--panel-fg); }

/* Titolo sezione (stile h2 del block-head) — legacy mod-secheading, vedi Fase 5 */
:is(h1, h2).dl-mod-secheading {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 18px; max-width: 16ch; text-wrap: balance;
}
.dl-mod-secheading em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.dl-sec-dark .dl-mod-secheading { color: var(--panel-fg); }

/* Descrizione sezione (stile .lede del block-head) — legacy mod-seclede, vedi Fase 5 */
.dl-mod-seclede {
  font-size: 17px; line-height: 1.55;
  max-width: 48ch; color: var(--ink-2);
  margin: 6px 0 18px;
}
.dl-sec-dark .dl-mod-seclede { color: color-mix(in srgb, var(--panel-fg) 80%, transparent); }

/* Sottotitolo — legacy mod-subtitle, vedi Fase 5 */
.dl-mod-subtitle { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Testo */
.dl-mod-text { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.dl-mod-text.dl-align-center, .dl-mod-text.dl-align-right { max-width: none; }
.dl-sec-dark .dl-mod-text { color: color-mix(in srgb, var(--panel-fg) 80%, transparent); }
.dl-mod-text p  { margin: 0 0 1em; }
.dl-mod-text p:last-child { margin-bottom: 0; }
.dl-mod-text strong { color: var(--ink); font-weight: 600; }
.dl-sec-dark .dl-mod-text strong { color: var(--panel-fg); }

/* Testo — variante lede (sottotitolo descrittivo del block-head) */
.dl-mod-text.dl-style-lede {
  font-size: 17px; line-height: 1.55;
  max-width: 48ch; margin: 6px 0 18px;
}
.dl-mod-text.dl-style-lede.dl-align-center,
.dl-mod-text.dl-style-lede.dl-align-right { max-width: none; }

/* Bottone */
.dl-mod-button { margin-bottom: 24px; }
.dl-mod-btn-el {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, gap .2s;
  border: 1px solid transparent;
}
.dl-btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.dl-btn-primary:hover { opacity: .88; gap: 14px; }
.dl-btn-ghost   { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-line); }
.dl-btn-ghost:hover { background: var(--accent); color: var(--white); border-color: var(--accent); gap: 14px; }
.dl-btn-dark    { background: var(--panel-bg); color: var(--panel-fg); border-color: var(--panel-bg); }
.dl-btn-dark:hover { background: var(--ink-2); gap: 14px; }
.dl-mod-btn-url-hint { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-left: 12px; }

/* Immagine */
.dl-mod-image { overflow: hidden; }
.dl-mod-image img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.dl-mod-image-full img { border-radius: var(--radius-none); }
.dl-mod-image-thumb img { max-width: 280px; }
.dl-mod-image.dl-align-center img,
.dl-mod-image.dl-align-center > a { margin-left: auto; margin-right: auto; }
.dl-mod-image.dl-align-right img,
.dl-mod-image.dl-align-right > a { margin-left: auto; margin-right: 0; }
.dl-mod-image.dl-align-center > a,
.dl-mod-image.dl-align-right > a { display: block; width: max-content; max-width: 100%; }
.dl-mod-image-caption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: 10px; display: block; }
.dl-image-placeholder {
  width: 100%; min-height: 180px; border: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius-md); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-family: var(--f-mono); font-size: 12px; cursor: pointer;
}
.dl-image-placeholder .micon { font-size: 32px; }

/* Shortcode */
.dl-mod-shortcode-empty {
  padding: 24px; text-align: center; margin: 0;
  border: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius-md); background: var(--paper);
  color: var(--muted); font-family: var(--f-mono); font-size: 12px;
}

/* Divisore */
.dl-mod-divider { margin: 8px 0; }
.dl-divider-line   { border-top: 1px solid var(--ink); }
.dl-divider-dashed { border-top: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.dl-divider-dots   { border-top: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); }
.dl-divider-stars  { border: none; text-align: center; color: var(--accent); font-size: 14px; letter-spacing: 8px; }
.dl-divider-stars::before { content: "✦ ✦ ✦"; }
.dl-divider-inner {
  display: flex; align-items: center; gap: 16px;
}
.dl-divider-inner::before, .dl-divider-inner::after {
  content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent);
}
.dl-divider-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Badge */
.dl-mod-badge { margin-bottom: 16px; }

/* Citazione */
.dl-mod-quote { margin: 0 0 24px; padding: 32px 40px; border-left: 4px solid var(--accent); position: relative; }
.dl-quote-light { background: var(--paper); }
.dl-quote-dark  { background: var(--panel-bg); color: var(--panel-fg); }
.dl-quote-peach { background: var(--peach); }
.dl-quote-text { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; margin: 0 0 12px; }
.dl-quote-dark .dl-quote-text { color: var(--peach); }
.dl-quote-source { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* Statistica */
.dl-mod-stat { padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.dl-stat-number { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.dl-stat-label  { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; max-width: 24ch; line-height: 1.4; }
.dl-sec-dark .dl-stat-number { color: var(--panel-fg); }
.dl-sec-dark .dl-stat-label  { color: var(--peach); }

/* Spazio */
.dl-mod-spacer { display: block; width: 100%; }
.dl-mod-spacer-edit { background: repeating-linear-gradient(45deg, rgba(255,59,31,.04) 0, rgba(255,59,31,.04) 2px, transparent 2px, transparent 8px); display: flex; align-items: center; justify-content: center; }
.dl-spacer-hint { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,59,31,.5); }

/* Colonna — contenitore singolo annidabile */
.dl-mod-cols.dl-maxw-narrow { max-width: 720px; }
.dl-mod-cols.dl-maxw-medium { max-width: 1080px; }
.dl-mod-cols.dl-maxw-wide   { max-width: 1200px; }
.dl-mod-cols.dl-align-center { margin-left: auto; margin-right: auto; }
.dl-mod-cols.dl-align-right  { margin-left: auto; margin-right: 0; }
.dl-gap-tight  { gap: 20px; }
.dl-gap-normal { gap: 40px; }
.dl-gap-wide   { gap: 64px; }

/* Riga flessibile (mod-row) — layout a griglia stile builder, colonne annidabili */
.dl-row {
  display: flex;
  align-items: stretch;
}
.dl-row.dl-dir-row-reverse { flex-direction: row-reverse; }
.dl-row.dl-valign-start   { align-items: flex-start; }
.dl-row.dl-valign-center  { align-items: center; }
.dl-row.dl-valign-end     { align-items: flex-end; }
.dl-row > .dl-col {
  flex: 0 0 var(--dl-col-w, 100%);
  max-width: var(--dl-col-w, 100%);
  min-width: 0;
}
.dl-row > .dl-col > .dl-modules-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Empty section hint */
.dl-section-empty-hint {
  padding: 48px; text-align: center;
  border: 2px dashed rgba(255,59,31,.25); border-radius: var(--radius-md);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}

/* Responsive moduli */
@media (max-width: 768px) {
  .dl-cols-2, .dl-cols-3 { grid-template-columns: 1fr; }
  .dl-row.dl-row-stack { flex-direction: column; }
  .dl-row.dl-row-stack > .dl-col { flex: 1 1 auto; max-width: 100%; }
  .dl-frame-full { padding: 0 24px; }
  .dl-section-custom { padding-top: 48px; padding-bottom: 48px; }
}

/* ============================================================
   Hero composable (sotto-moduli v3.11.0)
   ============================================================ */
.hero.dl-section-custom { padding-top: 80px; padding-bottom: 96px; position: relative; }
.hero-grid.dl-row {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: start;
}
.hero-grid.dl-row > .dl-col { flex: initial; max-width: none; min-width: 0; }

.hero .dl-mod-text {
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  color: var(--ink-2); max-width: 44ch; margin: 0;
}
.hero .dl-mod-text .accent { color: var(--accent); font-weight: 600; }
.hero .dl-mod-text a { border-bottom: 1px solid var(--ink); text-decoration: none; padding-bottom: 1px; color: var(--ink); }
.hero .dl-mod-text a:hover { color: var(--accent); border-color: var(--accent); }

.hero .dl-mod-badge { margin-top: 28px; margin-bottom: 0; }
.hero .dl-mod-badge .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--ink); border-radius: var(--radius-pill);
  color: var(--ink); background: transparent;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.hero .dl-mod-badge .chip::before {
  content: ''; width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--accent); flex-shrink: 0;
}

.hero-photo-circle.dl-mod-image-circle { overflow: visible; }
.hero-photo-circle.dl-mod-image-circle img {
  position: absolute; inset: -10% 4% -18% 4%;
  width: 92%; height: 128%;
  object-fit: contain; object-position: bottom center;
  filter: grayscale(1) contrast(1.04);
  border-radius: var(--radius-none); mix-blend-mode: normal; display: block;
}

@media (max-width: 1200px) {
  .hero-grid.dl-row { gap: 48px; }
}
@media (max-width: 1024px) {
  .hero.dl-section-custom { padding-top: 64px; padding-bottom: 80px; }
  .hero-grid.dl-row { grid-template-columns: 1.05fr .95fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero.dl-section-custom { padding-top: 24px; padding-bottom: 64px; }
  .hero-grid.dl-row { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
  .hero-grid.dl-row > .dl-col { width: 100%; }
  .hero-grid.dl-row > .dl-col:last-child { order: -1; margin-top: 4px; }
  .hero-photo-circle { margin-top: 12px; }
  .hero-photo-circle.dl-mod-image-circle { max-width: 320px; overflow: hidden; }
  .hero-photo-circle.dl-mod-image-circle img { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.04); object-fit: cover; object-position: 50% 0%; }
  .hero .dl-mod-text { font-size: 16px; }
  .hero .dl-mod-badge { margin-top: 22px; }
}
@media (max-width: 480px) {
  .hero-grid.dl-row { gap: 24px; }
  .hero-photo-circle.dl-mod-image-circle { max-width: 240px; overflow: hidden; }
  .hero-photo-circle.dl-mod-image-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
  .hero .dl-mod-text { font-size: 15px; line-height: 1.55; }
  .hero .dl-mod-badge { gap: 10px; }
  .hero .dl-mod-badge .chip { padding: 5px 10px; font-size: 10px; }
}

/* ============================================================
   Contatti + Footer composable (sotto-moduli v3.11.0)
   ============================================================ */
.contact.dl-section-custom {
  padding-top: 96px; padding-bottom: 64px;
  border-top: 1px solid var(--ink);
  position: relative; overflow: hidden;
}
.contact .dl-mod-seclabel { color: var(--peach); }
.contact .dl-mod-seclabel .line { background: var(--peach); }
.contact :is(h1, h2).dl-mod-secheading,
.contact .dl-mod-title.dl-style-block-head {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.005em; line-height: 1.18;
  margin: 28px 0 0; max-width: 22ch; text-wrap: wrap;
}

.contact.site-footer.dl-section-custom {
  padding-top: 32px; padding-bottom: 32px;
  border-top: 1px solid var(--ink);
}
.contact.site-footer .row2 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.contact.site-footer .footnote {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--panel-fg) 20%, transparent);
}

@media (max-width: 1024px) {
  .contact.dl-section-custom { padding-top: 72px; }
  .contact :is(h1, h2).dl-mod-secheading,
  .contact .dl-mod-title.dl-style-block-head { font-size: clamp(28px, 4vw, 44px); }
}
@media (max-width: 768px) {
  .contact.dl-section-custom { padding-top: 60px; padding-bottom: 48px; }
  .contact :is(h1, h2).dl-mod-secheading,
  .contact .dl-mod-title.dl-style-block-head { font-size: clamp(24px, 6vw, 36px); margin-top: 18px; max-width: none; }
}
