/* Festa del Porcino e dei Sapori del Sottobosco — foglio di stile
   Palette e caratteri derivati dai materiali ufficiali (logo e locandina). */

/* Caratteri ospitati sul sito (licenza SIL OFL), nessuna chiamata a servizi esterni. */
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-serif-display-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-serif-display-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }

:root {
  --paper: #fdf8ec;
  --paper-deep: #f5ecd8;
  --cream: #f3e2c4;
  --ink: #273d2a;
  --ink-soft: #4b5a45;
  --forest: #13281a;
  --forest-mid: #1d3a26;
  --olive: #424928;
  --olive-light: #8a8a4e;
  --ochre: #c48a2e;
  --ochre-ink: #8a5a14;
  --brown: #7a4120;
  --on-forest: #f6efdc;
  --on-forest-soft: #c9cdb3;
  --rule: rgba(39, 61, 42, 0.18);
  --rule-forest: rgba(246, 239, 220, 0.2);

  --serif: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --wrap: 1240px;
  --space-section: clamp(88px, 11vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--ochre); }
::selection { background: var(--ochre); color: var(--forest); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--olive-light) var(--paper-deep); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--forest); color: var(--on-forest); padding: 10px 16px; z-index: 50; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.h-section { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.h-sub { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.45; letter-spacing: -0.005em; text-wrap: pretty; }
.prose p { margin: 0 0 1.1em; max-width: 64ch; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; max-width: 64ch; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--ochre); }
.footer__bottom > span:nth-of-type(2) { order: 3; flex-basis: 100%; }
.muted { color: var(--ink-soft); }
.tbd { color: var(--ink-soft); font-style: italic; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Testata ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.btn) { padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--ochre-ink); }
.nav .btn { font-size: 0.82rem; }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 0; row-gap: 6px; }
  .brand img { height: 34px; }
  .nav { order: 3; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { display: none; }
}
@media (min-width: 861px) { .btn.header-cta { display: none; } }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
  text-decoration: none; line-height: 1;
  padding: 0.95em 1.45em; border-radius: 999px;
  background: var(--forest); color: var(--on-forest);
  border: 1px solid var(--forest);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { padding: 0.75em 1.15em; font-size: 0.8rem; }
.btn--ochre { background: var(--ochre); border-color: var(--ochre); color: var(--forest); }
.btn--ochre:hover { background: var(--on-forest); border-color: var(--on-forest); color: var(--forest); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(24px, 4vw, 56px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero__copy { padding-bottom: clamp(140px, 13vw, 210px); position: relative; z-index: 3; }
.hero__logo { width: min(100%, 600px); margin: 0 0 clamp(36px, 4.5vw, 60px) -0.4%; }
.hero__dates { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 56px); margin: 0 0 clamp(14px, 1.6vw, 22px); }
.hero__date { display: flex; flex-direction: column; align-items: center; }
.hero__date b {
  font-family: var(--serif); font-weight: 700; line-height: 0.95;
  font-size: clamp(3.4rem, 6.6vw, 6rem); letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.hero__date span { font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.4rem); margin-top: 0.2em; }
.hero__place { font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 clamp(22px, 2.4vw, 32px); }
.hero__intro { max-width: 34ch; margin: 0 0 clamp(26px, 3vw, 38px); font-size: clamp(1.02rem, 1.2vw, 1.15rem); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero__window {
  position: relative; z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  overflow: hidden;
  margin-bottom: clamp(36px, 4vw, 64px);
  background: var(--forest);
}
.hero__window img { position: absolute; left: 0; bottom: 0; width: 100%; height: 108%; object-fit: cover; object-position: 52% 100%; }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(110px, 13vw, 210px); z-index: 2; pointer-events: none; }
.hills .h-back { fill: var(--olive); }
.hills .h-mid { fill: var(--forest-mid); }
.hills .h-front { fill: var(--forest); }

@media (prefers-reduced-motion: no-preference) {
  .hero__window { animation: rise 1.4s var(--ease-out) 0.1s both; }
  .hero__window img { animation: settle 2.2s var(--ease-out) 0.1s both; }
  .hills .h-back { animation: rise-soft 1.6s var(--ease-out) 0.05s both; }
  .hills .h-mid { animation: rise-soft 1.6s var(--ease-out) 0.15s both; }
  @keyframes rise { from { transform: translateY(14%); clip-path: inset(20% 0 0 0 round 50% 50% 0 0); } to { transform: none; clip-path: inset(0 0 0 0 round 0); } }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
  @keyframes rise-soft { from { transform: translateY(40px); } to { transform: none; } }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding-bottom: 40px; }
  .hero__logo { width: min(100%, 460px); }
  .hero__window { aspect-ratio: 5 / 4; width: 100%; margin: 0 auto 56px; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
  .hills { height: 96px; }
}

/* ---------- Sezioni ---------- */
.section { padding: var(--space-section) 0; position: relative; }
.section--forest { background: var(--forest); color: var(--on-forest); }
.section--forest .muted, .section--forest .tbd { color: var(--on-forest-soft); }
.section--deep { background: var(--paper-deep); }
.section--cream { background: var(--cream); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head p { margin: 0; max-width: 44ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Concept */
.concept { padding-top: clamp(40px, 6vw, 96px); }
.concept__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.concept__title { font-size: clamp(3rem, 7.6vw, 7rem); font-weight: 500; margin-bottom: clamp(32px, 4vw, 56px); }
.concept__title em { font-style: italic; color: var(--ochre); font-weight: 500; }
.concept .lead { color: var(--on-forest); margin: 0 0 1.2em; max-width: 30ch; }
.concept .prose p { color: var(--on-forest-soft); }
.poster { margin: 0; }
.poster img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55); }
.poster figcaption { margin-top: 14px; font-size: 0.8rem; color: var(--on-forest-soft); letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .concept__grid { grid-template-columns: 1fr; }
  .poster { max-width: 380px; }
}

/* Esperienze: tre modi */
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.way {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 16px clamp(24px, 5vw, 80px); align-items: baseline;
  padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--rule);
}
.way h3 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.way:nth-child(1) h3 { color: var(--olive); }
.way:nth-child(2) h3 { color: var(--brown); }
.way:nth-child(3) h3 { color: var(--ink); }
.way p { margin: 0; max-width: 46ch; }
@media (max-width: 860px) { .way { grid-template-columns: 1fr; } }

/* Programma */
.daynav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 3vw, 44px); }
.daynav a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.daynav a b { font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.daynav a:hover { background: var(--forest); color: var(--on-forest); }
.days { border-top: 2px solid var(--ink); }
.day { display: grid; grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.day__head { position: sticky; top: 104px; align-self: start; display: flex; align-items: baseline; gap: 14px; margin: 0; }
.day__num { font-family: var(--serif); font-weight: 700; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.day__name { display: flex; flex-direction: column; line-height: 1.25; }
.day__name b { font-weight: 700; font-size: 1.05rem; }
.day__name span { font-size: 0.9rem; color: var(--ink-soft); }
.day__theme { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 0 0 20px; color: var(--olive); }
.band + .band { margin-top: clamp(28px, 3vw, 40px); }
.band__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--olive); margin: 0 0 6px; }
.slots { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.slot__time { font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot a, .slot__title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.slot a { text-decoration: underline; text-decoration-color: rgba(39, 61, 42, 0.3); text-underline-offset: 0.18em; }
.slot a:hover { text-decoration-color: var(--ochre); }
.slot__meta { display: block; margin-top: 3px; font-size: 0.86rem; color: var(--ink-soft); max-width: 70ch; }
.slot--key .slot__time { color: var(--brown); }
.slot--key .slot__title, .slot--key a { color: var(--brown); }
.day__empty { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; }
.prog-note { margin: 24px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.undated { margin-top: clamp(48px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: baseline; }
.undated h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0; }
.undated ul { list-style: none; margin: 0; padding: 0; }
.undated li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.undated li a { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
@media (max-width: 860px) {
  .day { grid-template-columns: 1fr; }
  .day__head { position: static; }
  .slot { grid-template-columns: 1fr; gap: 2px; }
  .undated { grid-template-columns: 1fr; }
}

/* Elenco esperienze senza copertina */
.xlist { margin-top: clamp(56px, 6vw, 88px); }
.xlist__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2vw, 1.9rem); margin: 0 0 18px; }
.xlist ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.xlist li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 4px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.xlist li a { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; text-decoration: none; }
.xlist li a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.xlist__meta { font-size: 0.9rem; color: var(--ink-soft); }
.xlist__when { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .xlist li { grid-template-columns: 1fr; } }

/* Catalogo */
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(28px, 4vw, 56px); }
.card { position: relative; margin: 0; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--paper-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.025); }
.card__body { padding-top: 22px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.card__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card:has(a:focus-visible) .card__media { outline: 2px solid var(--ochre); outline-offset: 4px; }
.card__text { margin: 0 0 14px; max-width: 52ch; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--prenotazioni-aperte { color: #2f6b3a; }
.status--confermato { color: var(--ink); }
.status--in-aggiornamento { color: var(--ochre-ink); }
.status--prenotazioni-chiuse { color: var(--brown); }
.catalog__note { align-self: start; border-top: 1px solid var(--rule); padding-top: 22px; max-width: 40ch; }
.catalog__note h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0 0 10px; }
.catalog__note p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .catalog { grid-template-columns: 1fr; } }

/* Viggiano */
.viggiano__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.viggiano .lead { margin: 28px 0 0; max-width: 28ch; }
.facts { margin: 0; border-top: 1px solid rgba(39, 61, 42, 0.28); }
.fact { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid rgba(39, 61, 42, 0.28); }
.fact dt { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--brown); }
.fact dd { margin: 0; }
.viggiano__note { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .viggiano__grid { grid-template-columns: 1fr; } .fact { grid-template-columns: 1fr; } }

/* Info pratiche */
.info { padding-bottom: clamp(72px, 8vw, 120px); }
.info .section-head h2 { color: var(--on-forest); }
.info__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.info__item { border-top: 1px solid var(--rule-forest); padding-top: 22px; }
.info__item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 10px; color: var(--on-forest); }
.info__item p { margin: 0; color: var(--on-forest-soft); font-size: 0.97rem; }
.info__grid + .contacts { margin-top: clamp(56px, 6vw, 88px); }
.contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding-top: 28px; border-top: 1px solid var(--rule-forest); }
.contacts h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0; color: var(--on-forest); }
.contacts a { color: var(--on-forest); }
.contacts span { color: var(--on-forest-soft); }
@media (max-width: 960px) { .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--paper); padding: clamp(64px, 7vw, 104px) 0 40px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.footer__logo { width: min(100%, 380px); }
.footer__when { margin: 22px 0 0; font-weight: 600; }
.footer__marks { display: flex; align-items: flex-end; justify-content: flex-end; gap: 32px; }
.footer__marks figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__marks img { height: 76px; width: auto; }
.footer__marks figcaption { font-size: 0.74rem; color: var(--ink-soft); text-align: center; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 0.82rem; color: var(--ink-soft); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; } .footer__marks { justify-content: flex-start; } }

/* ---------- Pagina attività ---------- */
.activity { padding: clamp(24px, 3.5vw, 48px) 0 clamp(24px, 3vw, 40px); }
.back { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.88rem; font-weight: 700; text-decoration: none; margin-bottom: clamp(24px, 3vw, 40px); }
.back svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out); }
.back:hover svg { transform: translateX(-3px); }
.activity__cover { margin: 0 0 clamp(40px, 5vw, 72px); }
.activity__cover img { width: 100%; border-radius: 8px; }
.activity__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(40px, 7vw, 112px); align-items: start; }
.activity__cat { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.activity__title { font-size: clamp(2.6rem, 5.6vw, 5rem); margin-bottom: clamp(16px, 2vw, 24px); }
.activity__by { margin: 0 0 clamp(24px, 3vw, 36px); color: var(--ink-soft); }
.activity__by b { color: var(--ink); }
.activity__grid--plain { padding-top: clamp(8px, 2vw, 32px); }
.when { list-style: none; margin: 0; padding: 0; }
.when { font-size: 0.95rem; }
.when li + li { margin-top: 6px; }
.when li { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 2px 0; }
.when li span { font-weight: 500; }
.when li b { font-weight: 700; }
.when li em { flex-basis: 100%; font-style: normal; font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }
.activity__body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.facts-card { position: sticky; top: 104px; background: var(--paper-deep); border-radius: 14px; padding: 28px 28px 30px; }
.facts-card dl { margin: 0 0 24px; }
.facts-card .row { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts-card .row:first-child { padding-top: 0; }
.facts-card dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2em; }
.facts-card dd { margin: 0; font-weight: 600; }
.facts-card .btn { width: 100%; justify-content: center; }
.facts-card__note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.activity__foot { margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--rule); }
@media (max-width: 900px) {
  .activity__grid { grid-template-columns: 1fr; }
  .facts-card { position: static; }
}

/* Indice esperienze e 404 */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.page-head .lead { margin: 20px 0 0; max-width: 40ch; }
.notfound { padding: clamp(80px, 12vw, 180px) 0; }
.notfound p { margin: 20px 0 32px; }
