/* Pagine evento: stile chiaro e leggibile per un pubblico 50-70 (direzione "C, bianco con l'app al centro").
   Usato solo da _build/lib/templates.mjs > eventPage(). Il resto del sito usa ancora style.css. */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/lexend-var.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-700.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --panel: #e9f0f8;
  --panel-line: #c9d8ea;
  --ink: #0f1b2d;        /* 17:1 su bianco */
  --ink-2: #2b3a50;      /* 11:1 su bianco */
  --navy: #0d1624;
  --navy-2: #1c3150;
  --steel: #4a76a8;      /* solo icone e decorazioni */
  --link: #24507f;       /* 8.5:1 su bianco */
  --gold: #ffc43d;
  --gold-soft: #fff3d1;
  --line: #d3dce8;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow: 0 18px 40px -18px rgba(28, 49, 80, .35);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 19px; line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.wrap {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--gold); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* icone Phosphor colorabili (le classi .i-* sono in fondo al file) */
.ic {
  display: inline-block; flex: none; width: 1.3em; height: 1.3em; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* bottoni: a pillola, minimo 56px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px;
  border-radius: var(--pill); font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd266; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--steel); background: var(--bg-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); font-family: var(--font-head); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ===== Fascia del marchio ===== */
.band {
  position: relative; color: #fff; padding-bottom: 64px; padding-top: env(safe-area-inset-top, 0px);
  background:
    radial-gradient(900px 320px at 50% 120%, rgba(74, 118, 168, .55), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav a {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 18px; border-radius: var(--pill);
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 18px;
}
.mainnav a:hover { background: rgba(255, 255, 255, .1); }
.mainnav a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.menu-btn { display: none; }
.brand { text-align: center; padding-top: 8px; }
.brand a { display: inline-block; border-radius: 12px; }
.brand img { width: 380px; height: auto; margin: 0 auto; }
.promise { margin-top: 14px; font-size: 21px; color: #e3ebf5; font-family: var(--font-head); font-weight: 500; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; }

/* ===== Prima schermata: evento + pannello app ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; font-size: 17px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #4f5d72; }
.crumbs a { color: var(--link); }
.crumbs [aria-current] { color: var(--ink-2); }

.past-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 16px 20px;
  background: var(--gold-soft); border: 2px solid #f3d27a; border-radius: 16px; font-size: 18px;
}
.past-note .ic { color: var(--navy-2); margin-top: 3px; }
.past-note a { font-weight: 700; }

.event { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; }
.cover { margin: 0 0 24px; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.cover img { width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0 auto; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--navy);
  border-radius: var(--pill); padding: 6px 16px; font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none;
}
.event h1 { font-size: 44px; font-weight: 700; margin-top: 16px; overflow-wrap: anywhere; }
.lead { margin-top: 14px; font-size: 21px; color: var(--ink-2); max-width: 60ch; }

.when {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  margin-top: 28px; padding-top: 28px; border-top: 2px solid var(--bg-soft);
}
.cal { width: 118px; border-radius: 16px; overflow: hidden; text-align: center; border: 2px solid var(--navy-2); background: #fff; box-shadow: var(--shadow); }
.cal-m { background: var(--navy-2); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 17px; padding: 6px 0; }
.cal-d { font-family: var(--font-head); font-weight: 700; font-size: 52px; line-height: 1; padding: 10px 0 2px; color: var(--ink); }
.cal-w { font-size: 17px; color: var(--ink-2); padding-bottom: 10px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ic { color: var(--steel); margin-top: 4px; }
.facts b { font-family: var(--font-head); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* pannello app */
.app { background: var(--panel); border: 2px solid var(--panel-line); border-radius: var(--radius-lg); padding: 36px; position: relative; scroll-margin-top: 16px; }
.app h2 { font-size: 34px; font-weight: 700; }
.app h2 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); }
.app-sub { margin-top: 14px; font-size: 20px; color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; min-height: 56px; border-radius: 14px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 64px; width: auto; }
.store.is-mine { order: -1; }
.free { margin-top: 12px; font-size: 18px; color: var(--ink-2); }

.how { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--panel-line); }
.phone {
  align-self: start; width: 200px; padding: 9px; border-radius: 36px; background: var(--navy); position: relative;
  box-shadow: 0 30px 50px -24px rgba(13, 22, 36, .6), inset 0 0 0 2px #2d4466;
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 56px; height: 6px; margin-left: -28px; border-radius: 6px; background: #2d4466; z-index: 1; }
.screen { aspect-ratio: 9 / 19; border-radius: 28px; background: var(--bg-soft); overflow: hidden; display: flex; flex-direction: column; }
.scr-top { background: linear-gradient(180deg, var(--navy-2), var(--navy)); padding: 26px 10px 10px; }
.scr-top img { width: 120px; height: auto; margin: 0 auto; }
.scr-title { font: 700 12px/1.2 var(--font-head); color: var(--ink); padding: 10px 10px 6px; }
.scr-ev { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; background: #fff; margin: 0 8px 6px; padding: 7px; border-radius: 10px; border: 1px solid var(--line); }
.scr-ev .d { background: var(--navy-2); color: #fff; border-radius: 7px; text-align: center; font: 700 13px/1.05 var(--font-head); padding: 4px 0; }
.scr-ev .d small { display: block; font: 500 8px/1 var(--font-body); color: var(--gold); text-transform: uppercase; }
.scr-ev b { display: block; font: 600 10.5px/1.25 var(--font-head); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scr-ev span { display: block; font-size: 9px; line-height: 1.3; color: var(--ink-2); }
.scr-ev.hl { border: 2px solid var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 21px;
}
.steps b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; margin-top: 8px; }
.steps span { display: block; color: var(--ink-2); font-size: 18px; line-height: 1.55; margin-top: 2px; }

.qr { display: flex; gap: 20px; align-items: center; margin-top: 28px; padding: 18px; background: #fff; border-radius: var(--radius); }
.qr img { width: 112px; height: 112px; flex: none; }
.qr p { font-size: 18px; }
.qr b { font-family: var(--font-head); font-weight: 600; }

.trust { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; flex-direction: column; gap: 6px; font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.trust strong { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.2; }

/* ===== Compagnia (vantaggio secondario) ===== */
.company { background: var(--bg-soft); margin-top: 72px; padding: 80px 0; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.company-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.company h2 { font-size: 38px; font-weight: 700; }
.company p { margin-top: 18px; max-width: 56ch; }
.kinds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.kinds li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: var(--pill); padding: 8px 16px; font-size: 18px; }
.kinds .ic { color: var(--steel); }
.company .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.company .pc { margin-top: 0; font-size: 18px; color: var(--ink-2); }

/* ===== Informazioni ===== */
.info { padding-top: 88px; }
.info h2, .faq h2, .related h2 { font-size: 36px; font-weight: 700; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 28px; align-items: start; }
.info-text p + p { margin-top: 16px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.details div { background: var(--bg-soft); border-radius: 16px; padding: 16px 20px; }
.details dt { font-size: 17px; color: var(--ink-2); }
.details dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.details .wide { grid-column: 1 / -1; }
.note { margin-top: 24px; padding: 18px 22px; border: 2px solid #f3d27a; background: #fffaf0; border-radius: 16px; font-size: 18px; color: var(--ink-2); }

/* ===== FAQ ===== */
.faq { padding-top: 88px; }
.faq-list { margin-top: 24px; max-width: 860px; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 14px 4px; font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft); font-size: 28px; font-weight: 500; color: var(--navy-2);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 24px; max-width: 70ch; color: var(--ink-2); }

/* ===== Correlati e altre edizioni ===== */
.related { padding-top: 88px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.rel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: center; min-height: 56px; padding: 20px 22px;
  border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.rel:hover { border-color: var(--steel); transform: translateY(-2px); }
.rel.is-past { background: var(--bg-soft); }
.rel-d {
  grid-row: 1 / 3; width: 60px; border-radius: 12px; background: var(--navy-2); color: #fff; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1; padding: 9px 0 8px;
}
.rel-d small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.rel h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.rel-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 17px; color: var(--ink-2); }
.rel-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rel-meta .ic { color: var(--steel); }
.rel-go { grid-column: 3; grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); }
.more { margin-top: 24px; }
.more .btn { white-space: normal; text-align: left; padding-top: 12px; padding-bottom: 12px; }

/* ===== Chiusura ===== */
.final { margin-top: 88px; }
.final-box {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: center;
  background: var(--gold-soft); border-radius: var(--radius-lg); padding: 48px;
}
.final h2 { font-size: 36px; font-weight: 700; }
.final p { margin-top: 12px; font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.final .qr { margin-top: 0; flex-direction: column; text-align: center; max-width: 220px; }
.final .qr img { width: 150px; height: 150px; }
.final .qr p { margin-top: 0; font-size: 17px; }

/* ===== Footer ===== */
.foot { margin-top: 96px; background: var(--navy); color: #dbe4f0; padding: 56px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; }
.foot-logo { display: inline-block; border-radius: 12px; }
.foot-logo img { width: 240px; height: auto; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.foot ul a { color: #fff; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px; border-radius: var(--pill); text-decoration: none; font-size: 18px; }
.foot ul a:hover { background: rgba(255, 255, 255, .1); }
.foot small { display: block; margin-top: 28px; padding-top: 24px; border-top: 1px solid #2d4466; font-size: 17px; color: #c4d0e0; }

/* ===== Barra fissa mobile ===== */
.sticky { display: none; }

/* ===== Banner cookie (assets/js/consent.js), versione chiara ===== */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 0 16px 16px; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-box {
  position: relative; pointer-events: auto; max-width: 780px; margin: 0 auto; padding: 22px 56px 22px 24px;
  border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 18px 50px rgba(13, 22, 36, .25);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
}
.cookie-box:focus { outline: none; }
.cookie-t { margin: 0; font-family: var(--font-head); font-weight: 600; grid-column: 1; }
.cookie-d { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); grid-column: 1; }
.cookie-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; }
/* stesso peso visivo per Accetta e Rifiuta (Garante privacy) */
.cookie-actions .btn { min-width: 120px; background: #fff; color: var(--ink); border-color: var(--navy-2); }
.cookie-actions .btn:hover { background: var(--bg-soft); }
.cookie-x {
  position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: 26px; line-height: 1; cursor: pointer;
}
.cookie-x:hover, .cookie-x:focus-visible { color: var(--ink); background: var(--bg-soft); }

/* ===== Tablet ===== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .company-grid, .info-grid { grid-template-columns: 1fr; gap: 36px; }
  .company-photo { max-width: 640px; }
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  body { font-size: 18px; padding-bottom: 96px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar { min-height: 72px; }
  .mainnav {
    position: absolute; left: 16px; right: 16px; top: 72px; z-index: 20; background: var(--navy-2); border-radius: var(--radius);
    padding: 8px; box-shadow: var(--shadow); border: 1px solid #2d4466;
  }
  .mainnav[hidden] { display: none; }
  .mainnav ul { flex-direction: column; }
  .mainnav a { width: 100%; font-size: 19px; }
  .menu-btn { display: inline-flex; }
  .topbar .btn { padding: 0 20px; }
  .brand img { width: min(250px, 64vw); }
  .promise { font-size: 18px; margin: 12px auto 0; max-width: 30ch; line-height: 1.45; }
  .band { padding-bottom: 44px; }
  .hills { height: 36px; }
  .hero { gap: 28px; margin-top: 4px; }
  .event { padding: 22px; }
  .event h1 { font-size: 32px; }
  .lead { font-size: 19px; }
  .when { grid-template-columns: 1fr; gap: 18px; }
  .cal { display: grid; grid-template-columns: auto 1fr; width: auto; align-items: center; text-align: left; }
  .cal-m { grid-row: 1 / 3; padding: 14px; height: 100%; display: grid; place-items: center; }
  .cal-d { font-size: 34px; padding: 8px 14px 0; }
  .cal-w { padding: 0 14px 8px; }
  .actions .btn { width: 100%; justify-content: flex-start; }
  .app { padding: 24px 20px; border-radius: var(--radius); }
  .app h2 { font-size: 28px; }
  .app-sub { font-size: 18px; }
  .store img { height: 58px; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .phone { width: 180px; margin: 0 auto; }
  .qr { display: none; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .trust li { flex-direction: row; align-items: baseline; gap: 10px; }
  .trust strong { font-size: 19px; white-space: nowrap; }
  .company { margin-top: 56px; padding: 56px 0; }
  .company h2, .info h2, .faq h2, .related h2, .final h2 { font-size: 28px; }
  .info, .faq, .related { padding-top: 64px; }
  .details { grid-template-columns: 1fr; }
  .faq summary { font-size: 19px; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel { padding: 16px; gap: 6px 14px; }
  .rel-d { width: 54px; font-size: 21px; }
  .rel h3 { font-size: 19px; }
  .rel-go { display: none; }
  .final { margin-top: 64px; }
  .final-box { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .foot { margin-top: 64px; }
  .foot-logo img { width: 210px; }
  .cookie-box { grid-template-columns: 1fr; padding: 20px 18px; }
  .cookie-actions { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .cookie-actions .btn { flex: 1; }

  .sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 2px solid var(--line);
    box-shadow: 0 -10px 30px -12px rgba(13, 22, 36, .3); transition: transform .25s ease;
  }
  .sticky p { flex: 1; font-size: 17px; line-height: 1.35; font-family: var(--font-head); font-weight: 500; }
  .sticky .btn { flex: none; padding: 0 20px; }
  .sticky.is-hidden { transform: translateY(110%); }
}
@media (max-width: 360px) {
  .topbar .btn { padding: 0 14px; font-size: 17px; }
  .sticky p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Pagine elenco, guide, città, testo (stesse classi generate da _build/lib)
   ===================================================================== */
.ev-hero { padding: 8px 0; }
.ev-h1 { font-size: 48px; font-weight: 700; margin-top: 8px; max-width: 24ch; overflow-wrap: anywhere; }
.ev-h1 em, .section-title em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); }
.ev-hero .lead { margin-top: 16px; max-width: 62ch; }
.ev-cat {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--navy);
  border-radius: var(--pill); padding: 6px 16px; font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none;
}
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 24px; }
.sub { color: var(--ink-2); margin-top: 8px; }
.ev-list { padding-top: 56px; }
.ev-info { padding-top: 40px; }
.ev-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn:not(.btn-gold):not(.btn-line):not(.btn-ghost) { background: #fff; color: var(--ink); border-color: var(--line); white-space: normal; text-align: left; }
.btn:not(.btn-gold):not(.btn-line):not(.btn-ghost):hover { border-color: var(--steel); background: var(--bg-soft); }
.ev-empty { padding: 28px; background: var(--bg-soft); border-radius: var(--radius); font-size: 20px; }
.ev-note { color: var(--ink-2); margin-bottom: 20px; }

/* filtri a pillola */
.filters { margin-top: 28px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); }
.filters-t { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin: 0 0 12px; color: var(--ink); }
.chips + .filters-t { margin-top: 22px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: var(--pill);
  background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px;
}
.chip:hover { border-color: var(--steel); }
.chip .ic { color: var(--steel); }
.chip .n { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--pill); padding: 1px 9px; }
.chip.is-current { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.chip.is-current .ic { color: var(--gold); }
.chip.is-current .n { background: rgba(255, 255, 255, .15); color: #fff; }

/* gruppi per mese */
.ev-group + .ev-group { margin-top: 56px; }
.ev-month { font-size: 30px; font-weight: 700; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ev-month .n { font-family: var(--font-body); font-weight: 400; font-size: 18px; color: var(--ink-2); }

/* schede evento negli elenchi */
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; min-height: 56px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.ev-card:hover { border-color: var(--steel); transform: translateY(-2px); }
.ev-card.is-past { background: var(--bg-soft); }
.ev-date {
  flex: none; width: 64px; border-radius: 12px; background: var(--navy-2); color: #fff; text-align: center; padding: 10px 0 9px;
  font-family: var(--font-head); line-height: 1;
}
.ev-d { display: block; font-weight: 700; font-size: 26px; }
.ev-m { display: block; margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.ev-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-card .ev-cat { background: none; padding: 0; font-size: 16px; color: var(--ink-2); }
.ev-card .ev-cat .ic { color: var(--steel); }
.ev-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--ink); }
.ev-meta, .ev-when { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.ev-when { font-weight: 700; color: var(--ink); }

/* schede guida e città */
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.guide-card .ev-body { padding: 20px 22px 24px; }
.guide-thumb { display: block; width: 100%; }
.guide-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* pagina guida e città */
.guide-byline { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.guide-figure { margin: 32px 0 0; }
.guide-figure img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius-lg); }
.guide-figure figcaption { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.guide-cols { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 48px; }
.guide-cols > .guide-body:only-child { grid-column: 1 / -1; }
.guide-toc { position: sticky; top: 24px; background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; }
.guide-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 17px; line-height: 1.4; }
.guide-author { margin-top: 48px; padding: 22px 24px; background: var(--gold-soft); border-radius: 16px; font-size: 18px; }
.guide-events { margin: 48px 0; padding: 32px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.guide-events .ev-grid { grid-template-columns: 1fr; }
.guide-events .section-title { font-size: 28px; margin-bottom: 12px; }

/* testo lungo */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; font-weight: 700; margin-top: 48px; scroll-margin-top: 24px; }
.prose h3 { font-size: 23px; font-weight: 600; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin-left: 0; padding: 16px 22px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.prose code { font-size: .9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.prose img { border-radius: var(--radius); }
.ev-table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 17px; }
.ev-table th, .ev-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.ev-table th { font-family: var(--font-head); font-weight: 600; background: var(--bg-soft); }
.ev-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ev-dl div { background: var(--bg-soft); border-radius: 16px; padding: 16px 20px; }
.ev-dl dt { font-size: 17px; color: var(--ink-2); }
.ev-dl dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; overflow-wrap: anywhere; }
.final .pc { margin-top: 16px; font-size: 18px; }

@media (max-width: 1080px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cols { grid-template-columns: 1fr; gap: 32px; }
  .guide-toc { position: static; }
}
@media (max-width: 760px) {
  .ev-h1 { font-size: 34px; }
  .section-title { font-size: 28px; }
  .ev-month { font-size: 24px; }
  .ev-list { padding-top: 40px; }
  .filters { padding: 18px 16px; }
  .ev-grid, .guide-grid { grid-template-columns: 1fr; }
  .ev-card { padding: 16px; gap: 14px; }
  .ev-date { width: 56px; }
  .ev-d { font-size: 22px; }
  .ev-title { font-size: 19px; }
  .guide-card { padding: 0; }
  .guide-events { padding: 22px 16px; }
  .prose h2 { font-size: 26px; }
  .ev-dl { grid-template-columns: 1fr; }
}

/* ---------- icone (Phosphor), stesse di style.css ---------- */
.i-arrow-up-right { --i: url(../img/icons/arrow-up-right.svg); }
.i-fork-knife { --i: url(../img/icons/fork-knife.svg); }
.i-confetti { --i: url(../img/icons/confetti.svg); }
.i-mountains { --i: url(../img/icons/mountains.svg); }
.i-music-notes { --i: url(../img/icons/music-notes.svg); }
.i-chats-circle { --i: url(../img/icons/chats-circle.svg); }
.i-users-three { --i: url(../img/icons/users-three.svg); }
.i-bell-ringing { --i: url(../img/icons/bell-ringing.svg); }
.i-heart { --i: url(../img/icons/heart.svg); }
.i-play-fill { --i: url(../img/icons/play-fill.svg); }
.i-facebook-logo { --i: url(../img/icons/facebook-logo.svg); }
.i-mask-happy { --i: url(../img/icons/mask-happy.svg); }
.i-image { --i: url(../img/icons/image.svg); }
.i-film-strip { --i: url(../img/icons/film-strip.svg); }
.i-storefront { --i: url(../img/icons/storefront.svg); }
.i-trophy { --i: url(../img/icons/trophy.svg); }
.i-book-open { --i: url(../img/icons/book-open.svg); }
.i-star { --i: url(../img/icons/star.svg); }
.i-calendar-blank { --i: url(../img/icons/calendar-blank.svg); }
.i-calendar-plus { --i: url(../img/icons/calendar-plus.svg); }
.i-map-pin { --i: url(../img/icons/map-pin.svg); }
.i-clock { --i: url(../img/icons/clock.svg); }
.i-compass { --i: url(../img/icons/compass.svg); }
.i-link { --i: url(../img/icons/link.svg); }
.i-arrow-right { --i: url(../img/icons/arrow-right.svg); }
.i-arrow-left { --i: url(../img/icons/arrow-left.svg); }
