:root {
  --ink: #11130f;
  --ink-soft: #23261f;
  --muted: #55594f;
  --line: #d8dbd2;
  --line-strong: #9ea495;
  --lime: #d4fa48;
  --lime-ink: #274900;
  --coral: #ff775e;
  --coral-soft: #fff1ee;
  --aqua: #c9f1ea;
  --aqua-soft: #eefaf7;
  --amber-soft: #f7fbe6;
  --surface: #f6f7f2;
  --evening-bg: #161913;
  --evening-card: #20241b;
  --evening-line: #343a2d;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd {
  margin: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
}

a, button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #386900;
  outline-offset: 4px;
}

[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

.shell {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 14px;
}

/* Header */
.site-header {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 1px solid #2a2e24;
}

.header-inner {
  min-height: 88px;
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img {
  width: 180px;
  height: 51px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #e4e7dc;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--lime);
}

.site-nav a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
  font-weight: 700;
}

.edition {
  font-size: 12px;
  text-align: right;
  color: #d6d9ce;
  line-height: 1.4;
}

.edition strong {
  display: block;
  color: var(--lime);
  letter-spacing: 0.03em;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Typography helpers */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  font: 700 clamp(52px, 7vw, 90px)/0.96 var(--display);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h2 {
  font: 700 clamp(36px, 4.5vw, 52px)/1.03 var(--display);
  overflow-wrap: break-word;
}

h3 {
  font: 700 clamp(24px, 2.6vw, 31px)/1.12 var(--display);
  overflow-wrap: break-word;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button img {
  width: 18px;
  height: 18px;
  filter: invert(1);
  flex: 0 0 auto;
}

.button.lime {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}

.button.lime img,
.button.outline img {
  filter: none;
}

.button.outline {
  background: #ffffff;
  color: var(--ink);
}

.button.hero-outline {
  background: rgb(17 19 15 / 0.62);
  border-color: rgb(255 255 255 / 0.85);
  color: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 480px;
  color: #ffffff;
  isolation: isolate;
  background: #1b1e17;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgb(14 16 12 / 0.90) 0%, rgb(14 16 12 / 0.72) 55%, rgb(14 16 12 / 0.34) 100%);
  z-index: -1;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  z-index: -2;
}

.hero-copy {
  padding-block: 52px;
  max-width: 920px;
}

.hero-copy .eyebrow {
  color: var(--lime);
  margin-bottom: 14px;
}

.hero-copy .lead {
  max-width: 700px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.58;
  color: #f1f3eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Facts strip */
.facts-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 24px;
}

.fact {
  padding-inline: 24px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fact strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.fact span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.direction-strip {
  border-top: 1px solid var(--line);
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--muted);
}

.direction-strip strong {
  color: var(--ink);
}

/* Rhythm overview (Mattina / Pomeriggio / Sera) */
.rhythm-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}

.section-heading > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rhythm-card {
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rhythm-card.morning {
  border-top: 5px solid #2b8a78;
}

.rhythm-card.afternoon {
  border-top: 5px solid var(--coral);
}

.rhythm-card.evening {
  background: var(--evening-bg);
  color: #ffffff;
  border-color: var(--evening-bg);
  border-top: 5px solid var(--lime);
}

.rhythm-card .eyebrow {
  color: var(--muted);
}

.rhythm-card.evening .eyebrow {
  color: var(--lime);
}

.rhythm-card p {
  font-size: 14px;
  color: var(--muted);
}

.rhythm-card.evening p {
  color: #dfe3d6;
}

.download-bar {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--amber-soft);
  border: 1px solid #b5c768;
  border-left: 5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 14px;
}

.download-bar strong {
  font-weight: 700;
}

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

/* Filter & Day jump bar */
.schedule-section {
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}

.filter-panel {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  display: grid;
  gap: 16px;
}

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

.filter-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 110px;
}

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

.filter-chip {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.reset-btn {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Day cards */
.days-stack {
  display: grid;
  gap: 40px;
}

.day-card {
  border: 1px solid var(--ink);
  background: #ffffff;
}

.day-header {
  background: var(--ink);
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.day-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
}

.day-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day-header h3 {
  font-size: clamp(30px, 3.6vw, 42px);
  color: #ffffff;
}

.day-summary {
  font-size: 13px;
  color: #d6d9ce;
}

/* 3 Time Blocks inside each Day */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.time-block {
  padding: 26px 26px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.time-block:first-child {
  border-left: 0;
}

.time-block.block-mattina {
  background: var(--aqua-soft);
}

.time-block.block-pomeriggio {
  background: #ffffff;
}

.time-block.block-sera {
  background: var(--evening-bg);
  color: #ffffff;
}

.block-head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.time-block.block-sera .block-head {
  border-bottom-color: var(--lime);
}

.block-tag {
  font: 700 24px/1.05 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.time-block.block-sera .block-tag {
  color: var(--lime);
}

.block-window {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.time-block.block-sera .block-window {
  color: #d5d9cc;
}

.slot-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}

.slot-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(17 19 15 / 0.12);
}

.slot-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.time-block.block-sera .slot-item {
  border-bottom-color: var(--evening-line);
}

.slot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slot-time {
  display: inline-block;
  padding: 3px 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.time-block.block-sera .slot-time {
  background: var(--lime);
  color: var(--ink);
}

.slot-section-pill {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgb(17 19 15 / 0.28);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.time-block.block-sera .slot-section-pill {
  border-color: rgb(212 250 72 / 0.55);
  color: var(--lime);
}

.slot-title {
  font: 700 23px/1.14 var(--display);
  margin-bottom: 6px;
}

.slot-desc {
  font-size: 14px;
  line-height: 1.56;
  color: #2f332b;
}

.time-block.block-sera .slot-desc {
  color: #e3e6dc;
}

.slot-awards {
  margin-top: 10px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #2f332b;
}

.time-block.block-sera .slot-awards {
  color: #e8ebe2;
}

.time-block.block-sera .slot-awards li::marker {
  color: var(--lime);
}

.time-block.block-sera .slot-awards li strong {
  color: #ffffff;
}

.slot-films {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 0.72);
  border: 1px solid rgb(17 19 15 / 0.14);
  font-size: 13px;
  line-height: 1.55;
  color: #2f332b;
}

.slot-people {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--evening-card);
  border-left: 3px solid var(--lime);
  font-size: 12.5px;
  line-height: 1.55;
  color: #e3e6dc;
  display: grid;
  gap: 4px;
}

.slot-people-light {
  background: rgb(17 19 15 / 0.05);
  border-left-color: var(--ink);
  color: var(--ink-soft);
}

.slot-venue {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.time-block.block-sera .slot-venue {
  color: #c8cdbe;
}

.slot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}

.time-block.block-sera .slot-link {
  color: var(--lime);
}

/* Venues & Info section */
.venues-band {
  padding-block: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.venue-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.venue-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.venue-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}

.mobility-bar {
  margin-top: 22px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 14px;
}

/* Participation / Links CTA */
.cta-band {
  padding-block: 54px;
  background: var(--aqua);
  border-bottom: 1px solid var(--ink);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta-copy {
  margin-top: 12px;
  max-width: 620px;
}

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

/* Footer */
.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding-block: 34px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-meta {
  color: #c7cbbe;
  max-width: 620px;
}

.footer-title {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #e4e7dc;
}

@media (max-width: 1080px) {
  .blocks-grid,
  .rhythm-grid,
  .venues-grid {
    grid-template-columns: 1fr;
  }

  .time-block {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .time-block:first-child {
    border-top: 0;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 148px;
    height: 42px;
  }

  .edition {
    text-align: left;
  }

  .hero {
    min-height: 400px;
  }

  .hero-copy {
    padding-block: 36px;
  }

  .hero-copy .lead {
    font-size: 16px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fact,
  .fact:first-child,
  .fact:nth-child(3) {
    padding: 0 0 0 14px;
    border-left: 2px solid var(--line);
  }

  .rhythm-band,
  .schedule-section,
  .venues-band,
  .cta-band {
    padding-block: 40px;
  }

  .day-header {
    padding: 20px;
  }

  .time-block {
    padding: 22px 20px;
  }

  .filter-panel {
    padding: 16px;
  }

  .filter-group-label {
    min-width: 100%;
  }
}
