@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,700;1,6..96,400;1,6..96,700&family=Archivo:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   Cena con Delitto - giallo editoriale vintage
   Tipografia: Bodoni Moda (display) / Archivo (testo) / Space Mono (label)
   ============================================================ */

:root {
  /* Token storici: il pannello "Colori" del CMS scrive su questi */
  --bg: #c89b19;
  --bg-2: #24130f;
  --panel-strong: #611620;
  --accent: #edc534;
  --accent-2: #981824;
  --text: #211507;
  --muted: #664c14;

  /* Token del design, derivati dai precedenti */
  --k-ink: var(--bg);
  --k-surf: var(--bg-2);
  --k-gold: var(--accent);
  --k-blood: var(--accent-2);
  --k-text: var(--text);
  --k-muted: var(--muted);
  --k-line: rgba(35, 22, 5, 0.18);
  --k-line-strong: rgba(74, 35, 8, 0.4);
  --stroke: var(--k-line);

  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

  --wrap: min(1240px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--k-ink);
  background-image:
    radial-gradient(circle at 12% 5%, rgba(255, 224, 91, 0.52), transparent 28rem),
    radial-gradient(circle at 88% 38%, rgba(152, 24, 36, 0.24), transparent 34rem),
    linear-gradient(145deg, #dfb52d 0%, #c89b19 58%, #a96e0c 100%);
  color: var(--k-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

::selection {
  background: var(--k-gold);
  color: #171008;
}

img {
  max-width: 100%;
}

/* ---------- Layout ---------- */

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.rule {
  border-bottom: 1px solid var(--k-line);
}

.section {
  width: var(--wrap);
  margin: 0 auto;
  padding: 92px 0 0;
}

.section--last {
  padding-bottom: 100px;
}

.section--tight {
  padding-top: 0;
}

/* Griglia a filo: i separatori sono le ombre di 1px che cadono nel gap.
   Rispetto al gap colorato, cosi le celle mancanti di una riga incompleta
   restano invisibili e i bordi esterni vengono tagliati da overflow:hidden. */
.hair {
  display: grid;
  gap: 1px;
  background: var(--k-ink);
  overflow: hidden;
}

.hair > * {
  background: var(--k-ink);
  box-shadow: -1px 0 0 var(--k-line), 0 -1px 0 var(--k-line);
}

.hair--edges {
  border-top: 1px solid var(--k-line);
  border-bottom: 1px solid var(--k-line);
}

.hair--top {
  border-top: 1px solid var(--k-line);
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---------- Tipografia ---------- */

.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.mono--gold {
  color: var(--k-gold);
}

.mono--wide {
  letter-spacing: 0.28em;
}

.display,
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--k-muted);
  line-height: 1.65;
}

.lead {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--k-muted);
}

.lead--bright {
  color: #e7d9ba;
}

.italic-gold {
  font-style: italic;
  color: var(--k-gold);
}

.serif-lg {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 13, 11, 0.93);
  color: #f5e7c5;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--k-line);
}

.site-header .brand-tag,
.site-header .nav a {
  color: #c8b586;
}

.site-header .nav a:hover,
.site-header .nav a.active {
  color: #fff3ce;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--k-text);
}

.nav a.active {
  color: var(--k-text);
  border-bottom-color: var(--k-gold);
}

.nav .btn {
  margin-left: 10px;
  border-bottom-width: 1px;
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid var(--k-line-strong);
  background: transparent;
  color: var(--k-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  border-color: var(--k-gold);
  color: var(--k-text);
}

.btn--gold {
  border-color: var(--k-blood);
  background: var(--k-blood);
  color: #fff0c6;
  font-weight: 700;
}

.btn--gold:hover {
  background: transparent;
  color: var(--k-blood);
}

.btn--sm {
  padding: 12px 18px;
  font-size: 10px;
}

.btn--lg {
  padding: 16px 24px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn[disabled]:hover {
  background: transparent;
  color: var(--k-muted);
  border-color: var(--k-line-strong);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Intestazione di sezione numerata ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(152, 24, 36, 0.42);
  flex-wrap: wrap;
}

.section-head .num {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--k-gold);
}

.section-head .label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.section-head .more {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-gold);
}

/* ---------- Hero pagina interna ---------- */

.page-hero {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: 82px 0 60px;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(180px, 28vw, 390px);
  aspect-ratio: 1;
  right: -6vw;
  top: 24px;
  border: 2px solid rgba(162, 31, 24, 0.6);
  border-radius: 50%;
  background: rgba(162, 31, 24, 0.07);
}

.page-hero .eyebrow {
  display: block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--k-gold);
}

.page-hero h1 {
  max-width: 21ch;
}

/* ---------- Hero home (manifesto) ---------- */

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--k-line);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.03);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(239, 198, 49, 0.98) 0%, rgba(239, 198, 49, 0.86) 38%, rgba(239, 198, 49, 0.18) 66%, transparent 84%),
    linear-gradient(0deg, rgba(152, 24, 36, 0.24) 0%, transparent 44%);
}

.hero-copy {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: 120px 0 56px;
  color: #211507;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--k-blood);
  flex: none;
}

.hero-eyebrow span {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--k-blood);
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(46px, 8.4vw, 124px);
  line-height: 0.92;
}

.hero .italic-gold {
  color: var(--k-blood);
}

.hero .lead {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 19px;
  line-height: 1.6;
  color: #2d210c;
}

.hero .btn-row {
  margin-top: 36px;
}

/* ---------- Ticker sotto l'hero ---------- */

.ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ticker > div {
  padding: 22px 24px;
  border-right: 1px solid var(--k-line);
}

.ticker > div:first-child {
  padding-left: 0;
}

.ticker > div:last-child {
  border-right: 0;
}

.ticker .k {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.ticker .v {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
}

/* ---------- Elenco lettera + testo ---------- */

.lettered {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--k-line);
}

.lettered > div {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--k-line);
  font-size: 17px;
  line-height: 1.5;
}

.lettered > div:last-child {
  border-bottom: 0;
}

.lettered .mark {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  color: var(--k-gold);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  padding-top: 44px;
}

/* ---------- Home Action Event ---------- */

.story-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
  padding: 48px 0 56px;
}

.story-intro h2 {
  max-width: 13ch;
  font-size: clamp(34px, 4.4vw, 58px);
}

.story-intro p,
.investigation-intro > p {
  max-width: 62ch;
  color: #402c0b;
  font-size: 18px;
  line-height: 1.85;
}

.investigation-section {
  position: relative;
}

.investigation-section::before {
  content: "";
  position: absolute;
  inset: 72px 0 -80px;
  z-index: -1;
  background:
    radial-gradient(circle at 75% 35%, rgba(152, 24, 36, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(226, 183, 45, 0.08), transparent);
  pointer-events: none;
}

.investigation-intro {
  align-items: end;
  padding-top: 52px;
}

.investigation-intro h2 {
  max-width: 13ch;
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 68px);
}

.case-file {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1.45fr);
  gap: clamp(36px, 7vw, 96px);
  margin-top: 70px;
  padding: 38px 0;
  border-top: 1px solid var(--k-line-strong);
  border-bottom: 1px solid var(--k-line-strong);
}

.case-file-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.case-file .lettered {
  border-top: 0;
}

.case-file .lettered > div:first-child {
  padding-top: 0;
}

.case-file .lettered > div:last-child {
  padding-bottom: 0;
}

.case-file strong {
  color: var(--k-text);
  font-weight: 600;
}

.events-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 42px 0 30px;
}

.events-heading h2 {
  max-width: 15ch;
}

.events-heading p {
  max-width: 46ch;
  text-align: right;
}

/* ---------- Card evento ---------- */

.event-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--k-blood);
}

.event-shot {
  position: relative;
  overflow: hidden;
}

.event-shot img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.45s ease;
}

.event-card:hover .event-shot img {
  transform: scale(1.025);
}

.date-chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 15px;
  text-align: center;
  background: var(--k-blood);
  border-right: 1px solid var(--k-line);
  border-bottom: 1px solid var(--k-line);
}

.date-chip .d {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--k-gold);
}

.date-chip .m {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5e7c5;
}

.event-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.event-place {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.event-meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--k-muted);
}

.event-meta strong {
  color: var(--k-text);
  font-weight: 700;
}

.event-price-standard {
  color: var(--k-text);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.06em;
}

.event-offer {
  position: relative;
  overflow: hidden;
  margin: 4px 0 6px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 183, 45, 0.58);
  background: linear-gradient(135deg, rgba(152, 24, 36, 0.92), rgba(73, 10, 18, 0.95));
  box-shadow: 7px 7px 0 rgba(226, 183, 45, 0.16);
}

.event-offer::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -36px;
  top: -40px;
  border: 2px solid rgba(226, 183, 45, 0.46);
  border-radius: 50%;
}

.event-offer-label,
.event-offer-deadline {
  position: relative;
  z-index: 1;
  color: var(--k-gold);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-offer-prices {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 7px 0 5px;
  flex-wrap: wrap;
}

.event-offer-prices del {
  color: rgba(245, 231, 197, 0.66);
  font-family: var(--serif);
  font-size: 19px;
}

.event-offer-prices strong {
  color: #fff0b5;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
}

.event-offer--compact {
  padding: 13px 15px;
}

.event-offer--compact .event-offer-prices strong {
  font-size: 21px;
}

.fact-price .event-price-standard {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.fact-price .event-offer {
  margin: 0;
}

.event-menu {
  margin: 4px 0 8px;
  padding: 18px 20px;
  border-left: 3px solid var(--k-gold);
  background: linear-gradient(135deg, rgba(226, 183, 45, 0.12), rgba(152, 24, 36, 0.14));
}

.event-menu--with-image {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.event-menu-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--k-line-strong);
}

.event-menu-label {
  margin-bottom: 8px;
  color: var(--k-gold);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.event-menu p {
  margin: 0;
  color: var(--k-text);
  font-size: 14px;
  line-height: 1.65;
}

.event-menu--compact {
  padding: 12px 14px;
}

.event-menu--compact p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-card .btn {
  margin-top: auto;
  justify-content: center;
}

.event-card .btn:hover:not([disabled]) {
  background: var(--k-gold);
  border-color: var(--k-gold);
  color: #171008;
}

.is-few {
  color: var(--k-gold);
}

.is-sold {
  color: #7d1714;
}

.is-free {
  color: #355e2e;
}

/* ---------- Riga evento estesa (pagina Eventi) ---------- */

.event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--k-line);
  align-items: stretch;
}

.event-row .shot {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.event-row .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.event-row .shot .date-chip {
  padding: 14px 17px;
}

.event-row .shot .date-chip .d {
  font-size: 30px;
}

.event-row .body {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-row .body > .event-place {
  color: var(--k-gold);
  letter-spacing: 0.2em;
}

.event-row .body h2 {
  font-size: clamp(28px, 3.2vw, 38px);
}

.event-row .body p {
  max-width: 52ch;
  font-size: 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--k-ink);
  overflow: hidden;
  margin-top: 6px;
}

.facts > div {
  background: var(--k-ink);
  box-shadow: -1px 0 0 var(--k-line);
  padding: 12px;
}

.facts > div:first-child {
  padding-left: 0;
}

.facts .k {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.facts .v {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.empty-state {
  padding: 70px 0;
  text-align: center;
  border-bottom: 1px solid var(--k-line);
  grid-column: 1 / -1;
}

.empty-state .t {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
}

.empty-state p {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Filtri ---------- */

.filters > div {
  padding: 22px 24px;
}

.filters > div:first-child {
  padding-left: 0;
}

.filters label,
.filters .k {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.filters select,
.filters .v {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(35, 22, 5, 0.34);
  color: var(--k-text);
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  cursor: pointer;
}

.filters .v {
  border-bottom-color: transparent;
  cursor: default;
}

.filters option {
  background: var(--k-surf);
  color: var(--k-text);
}

.filters .results {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-right: 0;
  padding-left: 24px;
}

/* ---------- Campi form ---------- */

.field {
  padding: 24px 0 0;
}

.field label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(35, 22, 5, 0.34);
  color: var(--k-text);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--k-gold);
}

/* ---------- Newsletter ---------- */

.newsletter {
  border: 1px solid var(--k-line);
  padding: clamp(28px, 5vw, 64px);
  background: var(--k-surf);
  box-shadow: 12px 12px 0 rgba(152, 24, 36, 0.38);
  color: #f5e7c5;
}

.newsletter h2 {
  margin: 22px 0 0;
  max-width: 24ch;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.newsletter p {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 17px;
}

.newsletter form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: stretch;
}

.newsletter input[type="email"] {
  flex: 1 1 280px;
  max-width: 420px;
  background: transparent;
  border: 1px solid rgba(245, 231, 197, 0.28);
  color: #f5e7c5;
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 15px;
}

.newsletter input[type="email"]::placeholder {
  color: #a99569;
}

.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--k-gold);
}

.newsletter .btn {
  padding: 15px 26px;
}

/* ---------- Blocchi editoriali ---------- */

.figure-strip figure {
  margin: 0;
}

.figure-strip img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(1.08);
}

.figure-strip figcaption {
  padding: 15px 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.pull-quote {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-linear {
  max-width: 880px;
  margin: 0 auto;
  padding-left: clamp(22px, 4vw, 52px);
  border-left: 3px solid var(--k-blood);
}

.about-linear p {
  margin-top: 28px;
  color: #402c0b;
  font-size: 18px;
  line-height: 1.85;
}

.about-linear .about-opening {
  margin-top: 0;
  color: var(--k-text);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.about-principles {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: about-principle;
}

.about-principles li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(152, 24, 36, 0.34);
  color: #402c0b;
  font-size: 18px;
  line-height: 1.6;
  counter-increment: about-principle;
}

.about-principles li:last-child {
  border-bottom: 1px solid rgba(152, 24, 36, 0.34);
}

.about-principles li::before {
  content: "0" counter(about-principle);
  color: var(--k-blood);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-principles strong {
  color: var(--k-text);
}

.about-linear .about-closing {
  margin-top: 44px;
  padding: 26px 0;
  border-top: 2px solid var(--k-blood);
  border-bottom: 2px solid var(--k-blood);
  color: var(--k-text);
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.35;
}

.prose-cols > article {
  padding: 44px 34px;
}

.prose-cols > article:first-child {
  padding-left: 0;
}

.prose-cols p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.numbered {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}

.numbered > div {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--k-line);
  font-size: 16px;
  line-height: 1.5;
}

.numbered .n {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  color: var(--k-gold);
}

.stats > div {
  padding: 30px 20px;
}

.stats > div:first-child {
  padding-left: 0;
}

.stats .n {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--k-gold);
}

.stats .k {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.closing {
  margin-top: 60px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

.closing h2 {
  max-width: 26ch;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
}

.closing .btn-row {
  margin-top: 0;
}

/* ---------- Righe chiave/valore (contatti) ---------- */

.kv {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
}

.kv > * {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid var(--k-line);
}

.kv > *:last-child {
  border-bottom: 1px solid var(--k-line);
}

.kv .k {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.kv .v {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  text-align: right;
}

.kv a:hover .v {
  color: var(--k-gold);
}

.panel-cols > article {
  padding: 52px 34px;
}

.panel-cols > article:first-child {
  padding-left: 0;
}

/* ---------- Admin login ---------- */

.login-main {
  width: min(560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.login-main h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1;
}

.login-main .lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
}

.login-main form {
  margin-top: 38px;
  border-top: 1px solid var(--k-line);
}

.msg {
  display: none;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--k-line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msg.show {
  display: block;
}

.msg.ok {
  border-color: rgba(214, 165, 75, 0.6);
  color: var(--k-gold);
}

.msg.err {
  border-color: rgba(143, 19, 47, 0.6);
  color: #e0a3ae;
}

.actions {
  display: none;
  margin-top: 34px;
  border-top: 1px solid var(--k-line);
  padding-top: 30px;
}

.actions h2 {
  font-size: 34px;
}

.actions p {
  margin-top: 14px;
  font-size: 16px;
}

.hint {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--k-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--k-line);
  background: linear-gradient(135deg, rgba(152, 24, 36, 0.18), rgba(9, 8, 8, 0.72));
  color: #f5e7c5;
}

.site-footer .footer-nav a,
.site-footer .footer-nav button,
.site-footer .footer-contact {
  color: #c8b586;
}

.site-footer .wrap {
  padding: 56px 0 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  align-items: start;
}

.site-footer .brand-name {
  font-size: 26px;
}

.site-footer p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
  cursor: pointer;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--k-gold);
}

.footer-nav .admin-access-link {
  margin-top: 5px;
  color: rgba(245, 231, 197, 0.48);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.footer-nav .admin-access-link:hover {
  color: #f5e7c5;
}

.footer-contact {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--k-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: clamp(54px, 8vw, 82px);
  }
}

@media (max-width: 860px) {
  :root {
    --wrap: calc(100% - 32px);
  }

  .cols-2,
  .cols-3,
  .cols-4,
  .facts {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 1fr;
  }

  .event-menu--with-image {
    grid-template-columns: 1fr;
  }

  .event-menu-image {
    max-height: 340px;
  }

  .section {
    padding-top: 64px;
  }

  .section--last {
    padding-bottom: 72px;
  }

  .page-hero {
    padding: 56px 0 44px;
  }

  .page-hero::after {
    right: 0;
  }

  .hero-copy {
    padding: 96px 0 44px;
  }

  .split {
    gap: 34px;
  }

  .story-intro,
  .case-file {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-intro h2,
  .investigation-intro h2 {
    max-width: 18ch;
  }

  .events-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-heading p {
    text-align: left;
  }

  /* Le celle a filo tornano a padding uniforme quando impilate */
  .prose-cols > article,
  .panel-cols > article,
  .stats > div,
  .filters > div,
  .facts > div,
  .ticker > div {
    padding-left: 0;
    padding-right: 0;
  }

  .filters .results {
    padding-left: 0;
  }

  .ticker > div {
    border-right: 0;
    border-bottom: 1px solid var(--k-line);
  }

  .ticker > div:last-child {
    border-bottom: 0;
  }

  .kv .v,
  .event-row .body {
    text-align: left;
  }

  .event-row .body {
    padding: 28px 0;
  }

  .kv > * {
    flex-direction: column;
    gap: 6px;
  }

  .kv .v {
    text-align: left;
  }

  .closing {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 0;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ============================================================
   Chrome del CMS generato da cms-frontend.js
   Gli elementi sono creati via JS con stili inline: qui li
   riallineiamo al noir editoriale (serve !important per vincere
   sull'attributo style).
   ============================================================ */

[data-cms-ignore="true"] {
  font-family: var(--mono) !important;
  border-radius: 0 !important;
  border-color: var(--k-line) !important;
  color: var(--k-text) !important;
  box-shadow: none !important;
}

[data-cms-ignore="true"] > div,
[data-cms-ignore="true"] > form {
  border-radius: 0 !important;
  background: var(--k-surf) !important;
  border-color: var(--k-line) !important;
  color: var(--k-text) !important;
  box-shadow: none !important;
}

[data-cms-ignore="true"] h2,
[data-cms-ignore="true"] h3 {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

[data-cms-ignore="true"] p,
[data-cms-ignore="true"] label,
[data-cms-ignore="true"] [data-cms-user],
[data-cms-ignore="true"] [data-cms-image-status] {
  color: var(--k-muted) !important;
}

[data-cms-ignore="true"] label {
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
}

[data-cms-ignore="true"] button {
  border-radius: 0 !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 11px 16px !important;
  background: transparent !important;
  color: var(--k-text) !important;
  border: 1px solid var(--k-line-strong) !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

[data-cms-ignore="true"] button:hover:not(:disabled) {
  border-color: var(--k-gold) !important;
}

/* I bottoni oro del CMS si riconoscono dal fondo #e9c349 inline */
[data-cms-ignore="true"] button[style*="e9c349"] {
  background: var(--k-gold) !important;
  border-color: var(--k-gold) !important;
  color: #12100a !important;
  font-weight: 700 !important;
}

[data-cms-ignore="true"] button[style*="e9c349"]:hover:not(:disabled) {
  background: transparent !important;
  color: var(--k-gold) !important;
}

[data-cms-ignore="true"] button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

[data-cms-ignore="true"] input,
[data-cms-ignore="true"] textarea {
  border-radius: 0 !important;
  background: var(--k-ink) !important;
  border: 1px solid rgba(242, 239, 233, 0.22) !important;
  color: var(--k-text) !important;
  font-family: var(--sans) !important;
}

[data-cms-ignore="true"] input:focus,
[data-cms-ignore="true"] textarea:focus {
  outline: none;
  border-color: var(--k-gold) !important;
}

[data-cms-ignore="true"] input[type="color"] {
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

[data-cms-ignore="true"] [data-cms-login-error] {
  background: transparent !important;
  border-color: rgba(143, 19, 47, 0.6) !important;
  color: #e0a3ae !important;
}

[data-cms-ignore="true"] a {
  color: var(--k-gold) !important;
}

/* Pannello editor in basso a destra */
[data-cms-toolbar] {
  right: 18px !important;
  bottom: 18px !important;
  min-width: 262px !important;
  padding: 12px 14px !important;
  gap: 8px !important;
  background: rgba(16, 16, 18, 0.96) !important;
  backdrop-filter: blur(8px);
}

[data-cms-toolbar] [data-cms-user] {
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--k-line);
}

[data-cms-toolbar] button {
  padding: 11px 12px !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

/* Banner cookie in basso a sinistra, senza sovrapporsi all'editor */
[data-cms-cookie-banner] {
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  width: min(420px, calc(100% - 320px)) !important;
  min-width: 240px !important;
  padding: 18px !important;
  background: rgba(16, 16, 18, 0.97) !important;
  backdrop-filter: blur(8px);
}

[data-cms-cookie-banner] p {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

@media (max-width: 720px) {
  [data-cms-cookie-banner] {
    width: calc(100% - 36px) !important;
    bottom: 96px !important;
  }
}

/* Badge "backend" accanto al link Eventi in modalita modifica */
[data-cms-eventi-badge-for] {
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid var(--k-gold) !important;
  color: var(--k-gold) !important;
  font-family: var(--mono) !important;
  letter-spacing: 0.14em !important;
}

/* Contorno tratteggiato degli elementi editabili */
body.cms-edit-mode [data-edit] {
  cursor: pointer;
}
