/* ==========================================================================
   PartyNow — Redesign pagina Evento + Container (kit "A desktop / B mobile")
   Sorgente: design claude.ai "Scelta - A desktop, B mobile".
   Tutto scoped sotto .pn2 per non toccare header/footer/home globali.
   Desktop (>=861px) = Layout A (split editoriale). Mobile (<=860px) = Layout B
   (hero immersivo col colore accento + barra azione fissa).
   Accento = colore dominante evento (eventColor, parità con home) via --acc.
   ========================================================================== */

/* Sticky della colonna locandina (desktop): style.css mette overflow-x:hidden su
   html,body, che rompe position:sticky. Sulla pagina evento non c'è overflow
   orizzontale, quindi lo riportiamo a visible (forzato anche via JS per i browser
   che non supportano :has). */
html:has(body.event-detail-page), body.event-detail-page { overflow-x: visible; }

.pn2 {
    /* palette categorie (allineata a home-seo.css) */
    --pn-red: #F24B3F;
    --pn-yellow: #FECD3F;
    --pn-green: #5CCC6B;
    --pn-blue: #4A91F2;
    --pn-purple: #A44CCF;

    --pn-bg: #FFFFFF;
    --pn-bg-soft: #F9FAFB;
    --pn-ink: #0E0F13;
    --pn-ink-2: #5A6072;
    --pn-ink-3: #9AA0AE;
    --pn-line: #ECEDF1;
    --pn-heart-off: #C4C7D0;

    --pn-radius: 24px;
    --pn-font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --pn-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

    /* accent per pagina — sovrascritto inline da JS (colore dominante evento) */
    --acc: var(--event-accent, var(--pn-red));
    --acc-rgb: 242, 75, 63;

    font-family: var(--pn-font);
    font-weight: 500;
    color: var(--pn-ink);
    background: var(--pn-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.4;
    display: block;
}
.pn2 * { box-sizing: border-box; }
.pn2 a { color: inherit; text-decoration: none; }
.pn2 img { display: block; max-width: 100%; }
.pn2 ul { list-style: none; margin: 0; padding: 0; }
.pn2 button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Accent per categoria (fallback se manca il colore dominante) */
.pn2[data-cat="club"],      .pn2 [data-cat="club"]      { --acc: var(--pn-red);    --acc-rgb: 242,75,63; }
.pn2[data-cat="concerti"],  .pn2 [data-cat="concerti"]  { --acc: var(--pn-blue);   --acc-rgb: 74,145,242; }
.pn2[data-cat="aperitivi"], .pn2 [data-cat="aperitivi"] { --acc: var(--pn-green);  --acc-rgb: 92,204,107; }
.pn2[data-cat="arte"],      .pn2 [data-cat="arte"]      { --acc: var(--pn-purple); --acc-rgb: 164,76,207; }
.pn2[data-cat="social"],    .pn2 [data-cat="social"]    { --acc: var(--pn-yellow); --acc-rgb: 254,205,63; }

/* ---------------- Typography helpers ---------------- */
.pn2 .pn-display { font-family: var(--pn-display); font-weight: 900; letter-spacing: -0.01em; line-height: .96; margin: 0; }
.pn2 .pn-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--acc); }

/* ---------------- Buttons ---------------- */
.pn2 .pn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--pn-font); font-weight: 800; font-size: 15px;
    border-radius: 999px; padding: 13px 22px; white-space: nowrap;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.pn2 .pn-btn:active { transform: translateY(1px); }
.pn2 .pn-btn-primary { background: var(--acc); color: #fff; box-shadow: 0 8px 22px rgba(var(--acc-rgb), .30); }
.pn2 .pn-btn-primary:hover { box-shadow: 0 12px 30px rgba(var(--acc-rgb), .40); }
.pn2 .pn-btn-ghost { background: var(--pn-bg-soft); color: var(--pn-ink); border: 1px solid var(--pn-line); }
.pn2 .pn-btn-block { width: 100%; }
.pn2 .pn-btn[hidden] { display: none; }

/* ---------------- Poster (locandina verticale) ---------------- */
.pn2 .pn-poster {
    position: relative; overflow: hidden; border-radius: var(--pn-radius);
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 11px),
        radial-gradient(120% 80% at 30% 15%, color-mix(in srgb, var(--acc) 92%, #fff) 0%, var(--acc) 45%, color-mix(in srgb, var(--acc) 62%, #000) 100%);
    color: #fff; isolation: isolate;
}
.pn2 .pn-poster::after {
    content: attr(data-poster); position: absolute; left: 12px; bottom: 12px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10px; letter-spacing: .04em;
    color: rgba(255,255,255,.78); background: rgba(0,0,0,.22); padding: 4px 8px; border-radius: 6px;
    backdrop-filter: blur(2px); z-index: 2;
}
.pn2 .pn-poster.has-image::after { content: none; }
.pn2 .pn-poster-4x5 { aspect-ratio: 4 / 5; }
.pn2 .pn-poster-title {
    position: absolute; left: 20px; right: 20px; top: 44%; transform: translateY(-50%);
    font-family: var(--pn-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(30px, 7vw, 64px); line-height: .9; color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.28); opacity: .96; z-index: 1;
}
.pn2 .poster-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 1; cursor: zoom-in;
}
/* Con immagine reale: proporzione naturale, ma al massimo 3:4 (vedi «Interfaccia 27/9»). */
.pn2 .pn-poster.has-image { aspect-ratio: auto; }
.pn2 .pn-poster.has-image .poster-img { position: relative; inset: auto; width: 100%; height: auto; }
.pn2 .pn-poster.has-image .pn-poster-title { display: none; }

/* ---------------- Date pill + heart + share (app-like) ---------------- */
.pn2 .pn-pill {
    position: static; /* reset: home-seo.css usa .pn-pill{position:absolute} per le card home */
    top: auto; left: auto;
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
    border-radius: 20px; background: var(--acc); color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18); font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap;
}
.pn2 .pn-pill span { font-size: 11px; font-weight: 900; letter-spacing: .5px; }
.pn2 .pn-pill[hidden] { display: none; }
.pn2 .pn-pill svg { width: 14px; height: 14px; }
.pn2 .pn-round {
    width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center;
    justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.14); color: var(--pn-ink); transition: transform .12s ease, color .12s;
}
.pn2 .pn-round:hover { transform: scale(1.06); }
.pn2 .pn-round svg { width: 20px; height: 20px; }
.pn2 .pn-round.is-heart { color: var(--pn-heart-off); }
.pn2 .pn-round.is-heart.on { color: var(--pn-red); }
.pn2 .pn-round.is-heart.on svg { fill: var(--pn-red); }

/* ---------------- Meta chips ---------------- */
.pn2 .pn-metarow { display: flex; flex-wrap: wrap; gap: 10px; }
.pn2 .pn-metachip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border-radius: 999px; background: var(--pn-bg-soft); border: 1px solid var(--pn-line);
    font-size: 14px; font-weight: 700; color: var(--pn-ink);
}
.pn2 .pn-metachip svg { width: 16px; height: 16px; color: var(--acc); flex: 0 0 auto; }
.pn2 .pn-metachip.solid { background: var(--acc); border-color: var(--acc); color: #fff; }
.pn2 .pn-metachip.solid svg { color: #fff; }
.pn2 .pn-metachip[hidden] { display: none; }

/* ---------------- Info items ---------------- */
.pn2 .pn-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pn2 .pn-info {
    position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 16px;
    background: #fff; border: 1px solid var(--pn-line); border-radius: 18px;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.pn2 .pn-info[hidden] { display: none; }
.pn2 .pn-info.is-clickable { cursor: pointer; padding-right: 104px; }
.pn2 .pn-info.is-clickable:hover { border-color: rgba(var(--acc-rgb), .34); background: rgba(var(--acc-rgb), .025); }
.pn2 .pn-info.is-clickable:focus-visible { outline: 3px solid rgba(var(--acc-rgb), .24); outline-offset: 3px; }
.pn2 .pn-info-ic {
    width: 44px; height: 44px; min-width: 44px; border-radius: 999px; display: inline-flex; align-items: center;
    justify-content: center; background: rgba(var(--acc-rgb), .13); color: var(--acc);
}
.pn2 .pn-info-ic svg { width: 20px; height: 20px; }
.pn2 .pn-info .lbl { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pn-ink-3); }
.pn2 .pn-info .val { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--pn-ink); line-height: 1.25; }
.pn2 .pn-info-more {
    position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
    min-height: 24px; padding: 0 9px; border-radius: 999px;
    background: rgba(var(--acc-rgb), .11); border: 1px solid rgba(var(--acc-rgb), .18); color: var(--acc);
    font-size: 9px; line-height: 1; font-weight: 950; letter-spacing: .05em; text-transform: uppercase;
    pointer-events: none;
}

.pn-info-sheet-open { overflow: hidden; }
.pn-info-sheet {
    --acc: #f24b3f; --acc-rgb: 242,75,63;
    position: fixed; inset: 0; z-index: 2600; display: grid; align-items: end; justify-items: center;
    padding: 14px; font-family: var(--pn-body);
}
.pn-info-sheet__backdrop { position: absolute; inset: 0; border: 0; background: rgba(7, 10, 18, .36); cursor: pointer; }
.pn-info-sheet__panel {
    position: relative; width: min(500px, 100%); max-height: min(82vh, 700px); overflow: auto;
    border-radius: 26px 26px 22px 22px; background: #fff; box-shadow: 0 24px 70px rgba(12, 18, 30, .24);
}
.pn-info-sheet__handle { display: block; width: 42px; height: 5px; margin: 12px auto 8px; border-radius: 999px; background: #d9dce4; }
.pn-info-sheet__estimate {
    padding: 12px 18px; background: var(--acc); color: #fff; text-align: center;
    font-size: 14px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
}
.pn-info-sheet__body { position: relative; padding: 14px 16px 18px; }
.pn-info-sheet__close {
    position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: 1px solid var(--pn-line);
    border-radius: 999px; background: #fff; color: var(--pn-ink); font-size: 20px; line-height: 1; font-weight: 800; cursor: pointer;
}
.pn-info-sheet__summary {
    display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center;
    padding: 12px 42px 12px 12px; border: 1px solid var(--pn-line); border-radius: 18px; background: #fff;
}
.pn-info-sheet__summary-ic {
    width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--acc-rgb), .12); color: var(--acc);
}
.pn-info-sheet__summary-ic svg { width: 19px; height: 19px; }
.pn-info-sheet__label { display: block; color: var(--pn-ink-3); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pn-info-sheet__value { display: block; margin-top: 4px; color: var(--pn-ink); font-size: 19px; font-weight: 850; line-height: 1.1; }
.pn-info-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pn-info-sheet__chip {
    display: inline-flex; align-items: center; min-height: 34px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .22); background: rgba(var(--acc-rgb), .10);
    color: var(--acc); font-size: 14px; line-height: 1; font-weight: 850; white-space: nowrap;
}
.pn-info-sheet__detail { margin: 14px 2px 0; color: var(--pn-ink-2); font-size: 15px; line-height: 1.45; font-weight: 650; }
.pn-info-sheet__price {
    margin-top: 12px; padding: 13px; border-radius: 18px;
    border: 1px solid var(--pn-line); background: #f6f7f9;
}
.pn-info-sheet__price-title {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.pn-info-sheet__price-title > span {
    width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--acc-rgb), .12); color: var(--acc); flex: 0 0 auto;
}
.pn-info-sheet__price-title svg { width: 17px; height: 17px; }
.pn-info-sheet__price-title strong {
    color: var(--pn-ink); font-family: var(--pn-body); font-size: 16px; line-height: 1.1; font-weight: 900;
}
.pn-info-sheet__price-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pn-price-step { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; }
.pn-price-step__dot {
    width: 7px; height: 7px; margin-top: 7px; border-radius: 999px; background: rgba(42, 52, 62, .7);
}
.pn-price-step__copy { min-width: 0; color: var(--pn-ink-2); font-size: 13px; line-height: 1.45; font-weight: 650; }
.pn-price-step__head {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
    color: var(--pn-ink); font-size: 14px; line-height: 1.25;
}
.pn-price-step__head strong { font-weight: 800; }
.pn-price-step__head span { font-weight: 900; }
.pn-price-step__copy p { margin: 2px 0 0; }
.pn-info-sheet__estimate-card {
    margin-top: 18px; padding: 16px; border-radius: 20px; border: 1px solid var(--pn-line);
    background: #fafafa;
}
.pn-info-sheet__estimate-title { display: flex; align-items: center; gap: 12px; }
.pn-info-sheet__estimate-title > span {
    width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--acc-rgb), .12); color: var(--acc); flex: 0 0 auto;
}
.pn-info-sheet__estimate-title svg { width: 24px; height: 24px; }
.pn-info-sheet__estimate-title strong { display: block; color: var(--pn-ink); font-size: 19px; font-weight: 950; line-height: 1; }
.pn-info-sheet__accuracy { display: block; margin-top: 5px; color: var(--pn-ink-3); font-size: 12px; font-weight: 850; }
.pn-info-sheet__lead { margin: 16px 0 0; color: var(--pn-ink); font-size: 16px; line-height: 1.35; font-weight: 850; }
.pn-info-sheet__muted { margin: 10px 0 0; color: var(--pn-ink-2); font-size: 14px; line-height: 1.5; font-weight: 600; }
.pn-info-sheet__recommend-title { display: block; margin-top: 17px; color: var(--pn-ink); font-size: 15px; font-weight: 950; }
.pn-info-sheet__recommend {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 11px 12px;
    border-radius: 14px; background: #fff; border: 1px solid var(--pn-line);
}
.pn-info-sheet__recommend span {
    width: 25px; height: 25px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--acc-rgb), .13); color: var(--acc); font-size: 13px; font-weight: 950; flex: 0 0 auto;
}
.pn-info-sheet__recommend p { margin: 0; color: var(--pn-ink-2); font-size: 13px; line-height: 1.35; font-weight: 750; }
.pn-info-sheet__ok {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin-top: 14px;
    border: 0; border-radius: 999px; background: var(--acc); color: #fff; font-size: 14px; font-weight: 850; cursor: pointer;
}

/* ---------------- Section titles ---------------- */
.pn2 .pn-sec-title { font-family: var(--pn-display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0 0 14px; }
.pn2 .pn-sec-title.underlined::after { content: ""; display: block; width: 34px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--acc); }

/* ---------------- Description ---------------- */
.pn2 .desc { font-size: 16px; line-height: 1.7; color: var(--pn-ink-2); font-weight: 500; }
.pn2 .desc p { margin: 0; }
.pn2 .desc p + p { margin-top: 14px; }
.pn2 .desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pn2 .desc-toggle { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--acc); }
.pn2 .desc-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.pn2 .desc-toggle.expanded svg { transform: rotate(180deg); }
.pn2 .desc-toggle[hidden] { display: none; }

/* ---------------- Map card ---------------- */
.pn2 .pn-map {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left;
    border: 1px solid var(--pn-line); border-radius: 18px; background: #fff;
    transition: border-color .15s ease, box-shadow .2s ease;
}
.pn2 .pn-map:hover { border-color: color-mix(in srgb, var(--acc) 40%, var(--pn-line)); box-shadow: 0 8px 20px rgba(var(--acc-rgb), .10); }
.pn2 .pn-map .ic { width: 48px; height: 48px; min-width: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--acc-rgb), .13); color: var(--acc); }
.pn2 .pn-map .cp { flex: 1; min-width: 0; }
.pn2 .pn-map .cp strong { display: block; font-size: 16px; font-weight: 900; }
.pn2 .pn-map .cp span { display: block; margin-top: 3px; font-size: 13px; color: var(--pn-ink-2); font-weight: 600; }
.pn2 .pn-map .ic svg { width: 22px; height: 22px; }
.pn2 .pn-map .arw { color: var(--pn-ink-3); flex: 0 0 auto; width: 20px; height: 20px; }
/* card organizzatore non cliccabile (nessun profilo da aprire) */
.pn2 .pn-map.is-static { cursor: default; }
.pn2 .pn-map.is-static:hover { border-color: var(--pn-line); box-shadow: none; }
.pn2 .pn-map.is-static .arw { display: none; }

/* ---------------- Offer card ---------------- */
.pn2 .pn-offer { padding: 16px; border-radius: 18px; border: 1px solid rgba(var(--acc-rgb), .28); background: color-mix(in srgb, var(--acc) 7%, #fff); position: relative; }
.pn2 .pn-offer + .pn-offer { margin-top: 12px; }
.pn2 .pn-offer .badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(var(--acc-rgb), .16); color: var(--acc); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.pn2 .pn-offer strong { display: block; margin-top: 10px; font-size: 16px; font-weight: 900; }
.pn2 .pn-offer p { margin: 6px 0 0; font-size: 13px; color: var(--pn-ink-2); font-weight: 600; }
.pn2 .pn-offer .code { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.pn2 .pn-offer .code svg { width: 13px; height: 13px; }
.pn2 .pn-offer .lock { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--pn-ink-3); }
.pn2 .pn-offer .lock svg { width: 15px; height: 15px; }

/* ---------------- Footer links (report / organizer) ---------------- */
.pn2 .pn-footlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 18px; margin-top: 30px; border-top: 1px solid var(--pn-line); }
.pn2 .pn-report { background: none; border: 0; color: var(--pn-ink-3); font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pn2 .pn-report:hover { color: var(--pn-ink-2); }
.pn2 .pn-org { font-size: 15px; color: var(--pn-ink-3); font-weight: 700; }
.pn2 .pn-org strong { color: var(--pn-ink); font-weight: 900; }

/* ---------------- Night row (container lineup) ---------------- */
.pn2 .pn-night {
    display: flex; align-items: stretch; gap: 0; min-height: 116px; border-radius: 20px; overflow: hidden;
    background: var(--acc); color: #fff; box-shadow: 0 8px 22px rgba(var(--acc-rgb), .18);
    transition: transform .12s ease, box-shadow .2s ease;
}
.pn2 .pn-night:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--acc-rgb), .26); }
.pn2 .pn-night .media { position: relative; width: 116px; min-width: 116px; overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 10px),
        radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--acc) 88%, #fff), color-mix(in srgb, var(--acc) 65%, #000)); }
.pn2 .pn-night .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pn2 .pn-night .datep { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.34); font-size: 10px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.pn2 .pn-night .datep svg { width: 12px; height: 12px; }
.pn2 .pn-night .cp { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.pn2 .pn-night .cat { font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; opacity: .82; }
.pn2 .pn-night .ttl { margin: 4px 0 0; font-size: 19px; font-weight: 900; line-height: 1.05; font-family: var(--pn-display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.pn2 .pn-night .ven { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 700; opacity: .92; }
.pn2 .pn-night .ven svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* Day header inside lineup */
.pn2 .pn-dayhead { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; font-size: 15px; font-weight: 900; }
.pn2 .pn-dayhead.spaced { margin-top: 18px; }
.pn2 .pn-dayhead .dot { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--acc-rgb), .13); color: var(--acc); }
.pn2 .pn-dayhead .dot svg { width: 14px; height: 14px; }

/* Event line-up / guests */
.pn2 .pn-artist {
    display: flex; align-items: center; gap: 13px; padding: 13px 14px;
    border-radius: 16px; border: 1px solid transparent; background: var(--pn-bg-soft);
}
.pn2 .pn-artist.is-headliner { border-color: rgba(var(--acc-rgb), .32); background: rgba(var(--acc-rgb), .06); }
.pn2 .pn-artist-avatar {
    width: 46px; height: 46px; min-width: 46px; border-radius: 999px; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--acc-rgb), .14); color: var(--acc); font-size: 13px; font-weight: 900;
}
.pn2 .pn-artist.is-headliner .pn-artist-avatar { width: 50px; height: 50px; min-width: 50px; }
.pn2 .pn-artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pn2 .pn-artist-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.pn2 .pn-artist-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pn2 .pn-artist-top strong {
    min-width: 0; flex: 1; font-family: var(--pn-display); font-size: 21px;
    font-weight: 900; line-height: 1.02; color: var(--pn-ink); text-transform: uppercase;
}
.pn2 .pn-artist-top em {
    flex: 0 0 auto; margin-top: 1px; padding: 4px 8px; border-radius: 999px;
    background: var(--acc); color: #fff; font-style: normal; font-size: 9px;
    font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.pn2 .pn-artist-notes { color: var(--pn-ink-2); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn2 .pn-artist-meta { color: var(--pn-ink-3); font-size: 12px; font-weight: 800; line-height: 1.35; }

/* ---------------- Venue row ---------------- */
.pn2 .pn-venue { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--pn-line); border-radius: 14px; background: var(--pn-bg-soft); }
.pn2 .pn-venue .ic { width: 34px; height: 34px; min-width: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--acc-rgb), .13); color: var(--acc); }
.pn2 .pn-venue .ic svg { width: 17px; height: 17px; }
.pn2 .pn-venue .cp strong { display: block; font-size: 14px; font-weight: 900; }
.pn2 .pn-venue .cp span { display: block; margin-top: 2px; font-size: 12px; color: var(--pn-ink-2); font-weight: 600; }

/* ==========================================================================
   LAYOUT — Desktop = A (split), Mobile = B (hero + actionbar)
   ========================================================================== */
.pn2 .wrap { max-width: 1120px; margin: 0 auto; padding: 0 30px; }
.pn2 .mob-only { display: none; }

/* breadcrumb */
.pn2 .crumbs { display: flex; align-items: center; gap: 8px; padding: 20px 0 0; font-size: 13px; font-weight: 700; color: var(--pn-ink-3); flex-wrap: wrap; }
.pn2 .crumbs a { cursor: pointer; }
.pn2 .crumbs a:hover { color: var(--acc); }
.pn2 .crumbs svg { width: 14px; height: 14px; }

/* split */
.pn2 .split { display: grid; grid-template-columns: 420px 1fr; gap: 48px; padding: 24px 0 60px; align-items: start; }
.pn2 .poster-col { position: sticky; top: 96px; }
.pn2 .poster-shell { position: relative; }
.pn2 .poster-shell .pn-poster { box-shadow: none; }
.pn2 .poster-tools { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; }
.pn2 .poster-tools .side { display: flex; gap: 10px; }
.pn2 .poster-under { margin-top: 14px; display: grid; gap: 10px; }
.pn2 .cta-note { margin: 4px 0 0; font-size: 11px; font-weight: 600; color: var(--pn-ink-3); text-align: center; line-height: 1.35; opacity: 1; }
.pn2 .cta-note[hidden] { display: none; }
.pn2 .appcta { gap: 9px; } .pn2 .appcta svg { width: 17px; height: 17px; }
.pn2 .sheet { padding-bottom: 360px; }

/* info head (desktop) */
.pn2 .info-head .title { font-size: clamp(44px, 5.6vw, 76px); text-transform: uppercase; margin: 8px 0 16px; }
.pn2 .lead { font-size: 18px; color: var(--pn-ink-2); font-weight: 600; max-width: 56ch; margin: 0 0 22px; line-height: 1.5; }
.pn2 .block { margin-top: 38px; }
.pn2 .block[hidden] { display: none; }
.pn2 .lineup { display: grid; gap: 12px; }
/* Padre contenitore senza giornate pubblicate (R7): il posto delle card figlie
   non resta vuoto, dice che il programma deve ancora uscire. */
.pn2 .pn-program-pending { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(var(--acc-rgb), .08); border: 1px dashed rgba(var(--acc-rgb), .30); }
.pn2 .pn-program-pending strong { font-size: 15px; font-weight: 900; color: var(--pn-ink); }
.pn2 .pn-program-pending span { font-size: 14px; font-weight: 600; color: var(--pn-ink-2); line-height: 1.45; }
.pn2 .pn-program-pending .pn-program-pending__when { font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--pn-ink-3); }
/* Programma statico del festival (pre-render): giorno per giorno, per chi non
   esegue JavaScript. Il client lo ridisegna con le card complete. */
.pn2 .pn-program-day { display: grid; gap: 6px; }
.pn2 .pn-program-day a { color: var(--pn-ink); font-weight: 800; text-decoration: none; }
.pn2 .pn-program-day span { color: var(--pn-ink-2); font-weight: 600; font-size: 14px; }
.pn2 .venues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* MOBILE hero (B) — solo locandina + back. Classe .evhero per non collidere
   con lo .hero della home (style.css ha regole !important su .hero mobile). */
.pn2 .evhero { position: relative; min-height: 460px; height: auto; padding: 0; display: none; align-items: flex-end;
    background:
      radial-gradient(90% 120% at 72% 8%, color-mix(in srgb, var(--acc) 96%, #fff) 0%, var(--acc) 46%, color-mix(in srgb, var(--acc) 58%, #000) 100%);
    background-size: cover; background-position: center; overflow: hidden; }
.pn2 .evhero.has-image { background-image: var(--hero-img); }
.pn2 .evhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.30), rgba(0,0,0,0) 40%); }
.pn2 .hero-tools { position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; }
.pn2 .back {
    display: inline-flex; align-items: center; gap: 8px; color: var(--pn-ink); font-weight: 900; font-size: 14px;
    background: #fff; border: 1px solid rgba(14,15,19,.08); padding: 9px 16px; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16); cursor: pointer;
}
.pn2 .back svg { width: 18px; height: 18px; }

/* MOBILE: azioni condividi/salva flottanti + testata (titolo/luogo/data) — nascoste su desktop */
.pn2 .seam-actions { display: none; }

/* ---- Banner "Fa parte di <container>" (evento figlio) ---- */
.pn2 .pn-parentbanner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px; border-radius: 14px; background: rgba(var(--acc-rgb), .10); border: 1px solid rgba(var(--acc-rgb), .22); transition: box-shadow .2s ease; }
.pn2 .pn-parentbanner:hover { box-shadow: 0 8px 20px rgba(var(--acc-rgb), .14); }
.pn2 .pn-parentbanner[hidden] { display: none; }
.pn2 .pn-parentbanner__ic { width: 38px; height: 38px; min-width: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--acc); color: #fff; }
.pn2 .pn-parentbanner__ic svg { width: 20px; height: 20px; }
.pn2 .pn-parentbanner__cp { flex: 1; min-width: 0; }
.pn2 .pn-parentbanner__cp .k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pn-ink-3); }
.pn2 .pn-parentbanner__cp strong { display: block; font-size: 15px; font-weight: 900; color: var(--pn-ink); }
.pn2 .pn-parentbanner__arw { color: var(--acc); flex: 0 0 auto; }

/* ---- Testata evento (tipologia → titolo → luogo → data stile app) ---- */
.pn2 .sheet-head { display: block; margin: 0 0 6px; }
.pn2 .sh-title { font-size: clamp(44px, 5.4vw, 74px); text-transform: uppercase; margin: 6px 0 0; line-height: .96; }
.pn2 .sh-loc { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--pn-ink-2); }
.pn2 .sh-loc svg { width: 19px; height: 19px; color: var(--acc); flex: 0 0 auto; }
.pn2 .sh-date-actions { display: block; }
.pn2 .sh-date { margin-top: 16px; }
.pn2 .sh-weekday { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pn-ink-2); }
.pn2 .sh-weekday[hidden] { display: none; }
.pn2 .sh-datebig { display: block; margin-top: 3px; font-family: var(--pn-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); color: var(--pn-ink); line-height: 1.05; }
/* Rinvio: la data vecchia barrata sotto quella nuova (o «nuova data da comunicare»). */
.pn2 .sh-rinvio { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--pn-ink-2); }
.pn2 .sh-rinvio[hidden] { display: none; }
.pn2 .sh-rinvio s { color: var(--pn-ink-3); }


/* actionbar fissa (solo mobile) */
.pn2 .actionbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.94); border-top: 1px solid var(--pn-line); backdrop-filter: blur(16px); display: none; }
.pn2 .actionbar .in { padding: 10px 16px; display: flex; align-items: center; gap: 26px; }
.pn2 .actionbar .price { flex: 0 0 auto; font-family: var(--pn-display); font-weight: 900; font-size: 24px; white-space: nowrap; }
.pn2 .actionbar .price small { font-size: 13px; font-family: var(--pn-font); color: var(--pn-ink-3); font-weight: 700; }
.pn2 .actionbar .price[hidden] { display: none; }
.pn2 .actionbar .cta-group { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.pn2 .actionbar .cta-primary { width: 100%; min-width: 0; min-height: 56px; padding-left: 18px; padding-right: 18px; }

/* loading skeleton */
@keyframes pn-skeleton-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
.pn2[aria-busy="true"] {
    --acc: #E7EAF0;
    --acc-rgb: 231,234,240;
}
.pn2[aria-busy="true"] .evhero,
.pn2[aria-busy="true"] .pn-poster {
    background:
        linear-gradient(90deg, #eef0f4 0%, #f8f9fb 42%, #eef0f4 82%);
    background-size: 220% 100%;
    animation: pn-skeleton-shimmer 1.2s ease-in-out infinite;
}
.pn2[aria-busy="true"] .evhero.has-image {
    background:
        linear-gradient(90deg, #eef0f4 0%, #f8f9fb 42%, #eef0f4 82%);
    background-size: 220% 100%;
}
.pn2[aria-busy="true"] .poster-img { opacity: 0; }
.pn2[aria-busy="true"] .pn-eyebrow,
.pn2[aria-busy="true"] .sh-title,
.pn2[aria-busy="true"] .sh-loc span,
.pn2[aria-busy="true"] .sh-datebig,
.pn2[aria-busy="true"] .pn-sec-title,
.pn2[aria-busy="true"] .pn-info .lbl,
.pn2[aria-busy="true"] .pn-info .val,
.pn2[aria-busy="true"] .desc {
    color: transparent !important;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef0f4 0%, #f8f9fb 42%, #eef0f4 82%);
    background-size: 220% 100%;
    animation: pn-skeleton-shimmer 1.2s ease-in-out infinite;
}
.pn2[aria-busy="true"] .pn-eyebrow { display: block; width: 78px; height: 18px; }
.pn2[aria-busy="true"] .sh-title { width: min(92%, 460px); min-height: 82px; }
.pn2[aria-busy="true"] .sh-loc { gap: 10px; }
.pn2[aria-busy="true"] .sh-loc svg { opacity: 0; }
.pn2[aria-busy="true"] .sh-loc span { display: block; width: 150px; height: 22px; }
.pn2[aria-busy="true"] .sh-datebig { width: 190px; height: 34px; }
.pn2[aria-busy="true"] .sheet-act { opacity: .45; pointer-events: none; }
.pn2[aria-busy="true"] .pn-sec-title { width: 210px; height: 38px; }
.pn2[aria-busy="true"] .pn-sec-title::after { opacity: 0; }
.pn2[aria-busy="true"] .pn-info {
    min-height: 92px;
    border-color: #edf0f4;
    background: #fff;
}
.pn2[aria-busy="true"] .pn-info-ic {
    color: transparent;
    background: linear-gradient(90deg, #eef0f4 0%, #f8f9fb 42%, #eef0f4 82%);
    background-size: 220% 100%;
    animation: pn-skeleton-shimmer 1.2s ease-in-out infinite;
}
.pn2[aria-busy="true"] .pn-info .lbl { display: block; width: 72px; height: 15px; }
.pn2[aria-busy="true"] .pn-info .val { width: 118px; height: 22px; }
.pn2[aria-busy="true"] .desc { width: 100%; height: 96px; }
.pn2[aria-busy="true"] .pn-map,
.pn2[aria-busy="true"] #pn-offers-block,
.pn2[aria-busy="true"] #pn-venues-block,
.pn2[aria-busy="true"] #pn-organizer-block,
.pn2[aria-busy="true"] .pn-footlinks {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .pn2[aria-busy="true"] .evhero,
    .pn2[aria-busy="true"] .pn-poster,
    .pn2[aria-busy="true"] .pn-eyebrow,
    .pn2[aria-busy="true"] .sh-title,
    .pn2[aria-busy="true"] .sh-loc span,
    .pn2[aria-busy="true"] .sh-datebig,
    .pn2[aria-busy="true"] .pn-sec-title,
    .pn2[aria-busy="true"] .pn-info .lbl,
    .pn2[aria-busy="true"] .pn-info .val,
    .pn2[aria-busy="true"] .desc,
    .pn2[aria-busy="true"] .pn-info-ic {
        animation: none;
    }
}

/* ---------- BREAKPOINT: passa a Layout B ---------- */
@media (max-width: 860px) {
    .pn2 .desk-only { display: none !important; }
    .pn2 .mob-only { display: block; }
    .pn2 .evhero { display: flex; }
    .pn2 .actionbar { display: block; }
    .pn2 .wrap { padding: 0; }
    .pn2 .crumbs { display: none; }
    .pn2 .split { display: block; padding: 0; }
    .pn2 .sheet { position: relative; z-index: 4; margin-top: -34px; background: #fff; border-radius: 30px 30px 0 0; padding: 28px 28px 40px; }
    .pn2 .info-head { display: none; }
    .pn2 .pn-info-grid { grid-template-columns: 1fr; }
    .pn2 .pn-info.is-clickable { padding-right: 96px; }
    .pn2 .pn-info-more { right: 13px; }
    .pn-info-sheet { padding: 10px; }
    .pn-info-sheet__panel { width: min(500px, 100%); border-radius: 25px 25px 21px 21px; }
    .pn-info-sheet__body { padding: 13px 13px 16px; }
    .pn-info-sheet__close { top: 15px; right: 15px; width: 30px; height: 30px; font-size: 20px; }
    .pn-info-sheet__summary { grid-template-columns: 40px 1fr; gap: 10px; padding: 11px 40px 11px 11px; }
    .pn-info-sheet__summary-ic { width: 38px; height: 38px; }
    .pn-info-sheet__summary-ic svg { width: 18px; height: 18px; }
    .pn-info-sheet__value { font-size: 18px; }
    .pn-info-sheet__price { padding: 12px; }
    .pn-info-sheet__price-title > span { width: 32px; height: 32px; }
    .pn-info-sheet__price-title strong { font-size: 15px; }
    .pn-price-step__copy { font-size: 12.5px; font-weight: 650; }
    .pn-price-step__head { font-size: 13.5px; }
    .pn2 .venues { grid-template-columns: 1fr; }
    .pn2 .block:first-of-type { margin-top: 28px; }

    /* hero = solo locandina (nessun testo sopra), un filo più bassa */
    .pn2 .evhero { min-height: 420px; }

    /* il banner "fa parte di" non deve stare sotto i tondi-cucitura */
    .pn2 .pn-parentbanner { margin-top: 2px; }
}

/* Su desktop la barra azione mobile e l'hero non esistono mai */
@media (min-width: 861px) {
    .pn2 .actionbar, .pn2 .evhero { display: none !important; }
}

/* ==========================================================================
   STATO-MONDO E FRESCHEZZA NELLA SCHEDA (4 set 2026)
   `.pn-stato`   — badge Annullato / Rimandato accanto alla tipologia.
   `.pn-raccolta` — «Informazioni raccolte il 10 agosto 2026»: sostituisce il
   «· aggiornato ora» che era scritto fisso e quindi falso. Se la data non c'è,
   l'elemento resta `hidden` e non si scrive nulla.
   ========================================================================== */
.pn2 .pn-stato {
    display: inline-block;
    font-family: var(--pn-font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    color: #fff;
    background: var(--pn-red);
}
.pn2 .pn-stato[data-stato="postponed"] {
    background: var(--pn-yellow);
    color: var(--pn-ink);
}
.pn2 .pn-raccolta {
    margin: 18px 0 0;
    font-family: var(--pn-font);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--pn-ink-3);
}

/* ==========================================================================
   INTERFACCIA 27/9 (sito/NOTE-SITO.md, «Interfaccia 27/9»)
   Chi apre la scheda cerca cosa fare stasera, spesso da telefono: titolo,
   quando e dove, il bottone. Poi il resto.
   ========================================================================== */

/* Stato: nasce vuoto e nascosto. `display` qui sopra annullava `hidden` e lo
   scheletro mostrava «ANNULLATO» (o un pallino rosso vuoto dopo l'idratazione). */
.pn2 .pn-stato[hidden],
.pn2 .pn-stato:empty,
.pn2[aria-busy="true"] .pn-stato { display: none !important; }
.pn2 .pn-stato { margin-left: 0; }

/* Colonne che non sforano: una parola lunga (un link nella descrizione) non
   allarga più la colonna oltre la pagina (html ha overflow-x: visible qui). */
.pn2 .split { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.pn2 .sheet { min-width: 0; padding-bottom: 60px; }
.pn2 .sheet-head,
.pn2 .sh-title,
.pn2 .desc,
.pn2 .sh-loc span,
.pn2 .pn-map .cp,
.pn2 .pn-info .val { overflow-wrap: anywhere; }
@media (min-width: 861px) and (max-width: 1100px) {
    .pn2 .split { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; }
}

/* Testata (27/9, Riccardo): un componente solo per telefono e desktop.
   Salva/condividi UNO SOTTO L'ALTRO, colorati, in alto a destra (float, primi
   nel DOM): tipologia e titolo si fermano 16px prima e vanno a capo, luogo e
   data scorrono accanto finché serve. Nessun vuoto a sinistra. */
.pn2 .sheet-head { margin: 0 0 6px; display: flow-root; }
.pn2 .sh-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin-bottom: 10px; }
.pn2 .sheet-actions { display: flex; flex-direction: column; gap: 10px; float: right; margin: 0 0 8px 16px; }
.pn2 .sheet-act {
    display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
    width: 52px; height: 52px; padding: 0; border-radius: 999px;
    border: 1px solid rgba(var(--acc-rgb), .24); background: rgba(var(--acc-rgb), .11); color: var(--acc);
    cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pn2 .sheet-act svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--acc); }
.pn2 .sheet-act:hover { border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .18); }
.pn2 .sheet-act.btn-like.on { border-color: var(--acc); color: var(--acc); background: rgba(var(--acc-rgb), .18); }
.pn2 .sheet-act.btn-like.on svg { fill: var(--acc); }
.pn2 .sh-fascia { display: flow-root; }
.pn2[aria-busy="true"] .sheet-act { opacity: .45; pointer-events: none; }

.pn2 .sh-title { font-size: clamp(34px, 3.8vw, 56px); margin: 0; line-height: .98; }
.pn2 .sh-date { margin-top: 14px; }
.pn2 .sh-datebig { font-size: clamp(22px, 2.2vw, 28px); }
.pn2 .sh-oggi { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--pn-ink-2); }
.pn2 .sh-oggi[hidden] { display: none; }
.pn2[aria-busy="true"] .sh-oggi { display: none; }

/* Bottone principale (27/9, Riccardo): su desktop sotto la locandina, poi
   «Scarica l'app», poi la nota; da telefono è la barra fissa in fondo. */
.pn2 .poster-under .cta-primary { min-height: 52px; }
.pn2 .poster-under .cta-primary[hidden] { display: none; }
.pn2 .poster-under .cta-note { margin: 0; }
.pn2[aria-busy="true"] .poster-under .cta-primary,
.pn2[aria-busy="true"] .cta-note,
.pn2[aria-busy="true"] .actionbar,
.pn2[aria-busy="true"] .sh-date .sh-ic { visibility: hidden; }
.pn2 .sh-app { margin-top: 16px; gap: 6px; }
.pn2 .sh-app .cta-note { margin: 0; }

/* Locandina: proporzione naturale fino a 3:4; più alta si ritaglia dall'alto
   (object-fit: cover), così resta l'intestazione. Il clic apre l'immagine intera nel visualizzatore. */
.pn2 .pn-poster.has-image.is-tall { aspect-ratio: 3 / 4; }
.pn2 .pn-poster.has-image.is-tall .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Anteprima da telefono: si ritaglia dall'ALTO, così resta l'intestazione della locandina. */
.pn2 .evhero.has-image { background-position: center top; }

/* Dati stimati: a parole, mai l'etichetta gialla (js/pn-stime.js). */
.pn2 .pn-info-verifica { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--pn-ink-3); }
.pn2 .pn-info-verifica a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
    /* Hero: al massimo 3:4 e non oltre metà schermo, così titolo, data, luogo e
       bottone stanno nella prima schermata. --hero-h = altezza/larghezza vera
       dell'immagine (JS), per non ritagliare le locandine orizzontali. */
    .pn2 .evhero { min-height: 0; height: min(calc(100vw * var(--hero-h, 1.3333)), 46svh); cursor: zoom-in; }
    .pn2 .evhero:not(.has-image) { height: 34svh; cursor: default; }
    /* Finché i dati non ci sono, lo spazio è quello di una locandina 4:5 (la proporzione più
       comune; --hero-h la corregge dopo): prima l'attesa era alta 34svh e all'arrivo della
       locandina la scheda scendeva di ~100 px (CLS 0,08, 21/10). */
    .pn2[aria-busy="true"] .evhero:not(.has-image) { height: min(calc(100vw * var(--hero-h, 1.25)), 46svh); }
    .pn2 .sheet { padding: 22px 20px 32px; }
    .pn2 .sh-title { font-size: clamp(28px, 8vw, 40px); margin-top: 0; }
    .pn2 .sh-loc { font-size: 15px; margin-top: 8px; }
    .pn2 .sh-loc svg { width: 17px; height: 17px; }
    .pn2 .sh-date { margin-top: 10px; }
    .pn2 .sh-datebig { font-size: 22px; }
    .pn2 .sh-app.mob-only { display: grid; margin-top: 38px; }
}

/* Annullato / rinviato senza data (27/9): si capisce a colpo d'occhio.
   Locandina in bianco e nero + fascia sotto il titolo; il rinvio in tono più morbido. */
.pn2 .sh-fascia {
    display: block; margin-top: 12px; padding: 10px 14px; border-radius: 12px;
    font-family: var(--pn-font); font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
    background: var(--pn-red); color: #fff;
}
.pn2 .sh-fascia[data-stato="postponed"] {
    background: rgba(254, 205, 63, .22); color: var(--pn-ink); border: 1px solid rgba(254, 205, 63, .8);
    font-size: 14px; letter-spacing: .03em; text-transform: none;
}
.pn2 .sh-fascia[hidden], .pn2 .sh-fascia:empty, .pn2[aria-busy="true"] .sh-fascia { display: none; }
.pn2[data-fascia="cancelled"] .poster-img,
.pn2[data-fascia="cancelled"] .evhero { filter: grayscale(1); }
.pn2[data-fascia="postponed"] .poster-img,
.pn2[data-fascia="postponed"] .evhero { filter: grayscale(.6); }
.pn2[data-fascia="cancelled"] .evhero .back,
.pn2[data-fascia="postponed"] .evhero .back { filter: none; }

/* Correzioni di Riccardo (27/9): da telefono salva/condividi restano tondi col
   colore dell'evento, ma più piccoli e UNO SOTTO L'ALTRO, a destra di tipologia,
   titolo e luogo (il titolo va a capo pur di stare accanto, nessun vuoto a
   sinistra). Il bottone principale è la barra fissa in fondo, sempre visibile. */
/* Luogo e data, righe gemelle su TUTTE le larghezze (27/9, Riccardo): stesso
   carattere normale, stessa dimensione, ognuna con la sua icona. Il titolo resta
   l'unico elemento grande. */
.pn2 .sh-loc,
.pn2 .sh-date {
    display: flex; align-items: flex-start; gap: 8px;
    font-family: var(--pn-font); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--pn-ink-2);
}
.pn2 .sh-loc { margin-top: 18px; }
.pn2 .sh-date { margin-top: 6px; }
.pn2 .sh-loc svg,
.pn2 .sh-date .sh-ic { display: block; width: 19px; height: 19px; margin-top: 1px; color: var(--acc); flex: 0 0 auto; }
.pn2 .sh-date-txt { min-width: 0; }
.pn2 .sh-date .sh-datebig { display: inline; margin: 0; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
/* «VENERDÌ» arriva maiuscolo dal dato: qui diventa «Venerdì», come il resto della riga. */
.pn2 .sh-date .sh-weekday { display: inline-block; margin-right: 0; font-size: inherit; letter-spacing: 0; text-transform: lowercase; }
.pn2 .sh-date .sh-weekday::first-letter { text-transform: uppercase; }
.pn2 .sh-date .sh-weekday[hidden] { display: none; }
.pn2 .sh-date .sh-oggi { font-size: 15px; margin-top: 2px; font-weight: 600; }
.pn2 .sh-date .sh-rinvio { font-size: 15px; margin-top: 2px; }
.pn2[aria-busy="true"] .sh-date .sh-datebig { display: inline-block; width: 170px; height: 20px; }

/* Serata ricorrente non ancora confermata da un post (24/10, Riccardo): resta «Data da
   confermare», ma dice cosa fare. Subito sotto la data, a cui si riferisce; stesso giallo
   del «Rinviato». Il link è un'azione vera, a tutta riga da telefono (bersaglio ≥ 44px). */
.pn2 .pn-avviso-ric {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
    background: rgba(254, 205, 63, .18); border: 1px solid rgba(254, 205, 63, .8); color: var(--pn-ink);
    font-family: var(--pn-font); font-size: 15px; line-height: 1.4;
}
.pn2 .pn-avviso-ric[hidden], .pn2 .pn-avviso-ric:empty, .pn2[aria-busy="true"] .pn-avviso-ric { display: none; }
.pn2 .pn-avviso-ric__ic { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: #b26a00; }
.pn2 .pn-avviso-ric__cp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn2 .pn-avviso-ric__cp strong { font-weight: 800; }
.pn2 .pn-avviso-ric__cp span { font-weight: 500; color: var(--pn-ink-2); }
.pn2 .pn-avviso-ric__link {
    display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: 4px; padding: 0 14px;
    border-radius: 999px; background: var(--pn-ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.pn2 .pn-avviso-ric__link:hover { opacity: .9; }

@media (max-width: 860px) {
    /* Tre blocchi: testata (tipologia, titolo, bottoni) → informazioni (luogo e
       data, righe gemelle vicine) → sezioni (spazio più grande prima). */
    .pn2 .sh-kicker { margin-bottom: 8px; }
    /* Ancorati all'angolo del foglio: stessa distanza dal bordo destro (20px) e
       da quello superiore (22px di padding - 2px). */
    .pn2 .sheet-actions { gap: 8px; margin: -2px 0 6px 16px; }
    .pn2 .sh-loc, .pn2 .sh-date { font-size: 15px; }
    .pn2 .sh-loc { margin-top: 16px; }
    .pn2 .sh-loc svg, .pn2 .sh-date .sh-ic { width: 17px; height: 17px; }
    .pn2 .sh-date .sh-oggi, .pn2 .sh-date .sh-rinvio { font-size: 14px; }
    .pn2 .block:first-of-type { margin-top: 32px; }
    .pn2 .sheet-act { width: 44px; height: 44px; }
    .pn2 .sheet-act svg { width: 21px; height: 21px; }
    .pn2 .actionbar .in { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Giro UX 27/9 (decisioni di Riccardo, portato a mano dai prototipi Codex)
   ========================================================================== */
/* «Da sapere» senza nessuna card (contenitori, dati mancanti): niente titolo vuoto. */
.pn2 #pn-info-block:not(:has(.pn-info:not([hidden]))) { display: none; }
/* Luogo cliccabile dentro «Da sapere»: apre Google Maps. */
.pn2 .pn-info[data-field="info-place-item"] { cursor: pointer; padding-right: 44px; }
.pn2 .pn-info[data-field="info-place-item"]:hover { border-color: rgba(var(--acc-rgb), .34); background: rgba(var(--acc-rgb), .025); }
.pn2 .pn-info[data-field="info-place-item"] .pn-info-arw {
    position: absolute; right: 14px; top: 50%; width: 20px; height: 20px;
    transform: translateY(-50%); color: var(--pn-ink-3);
}
/* Tocchi di almeno 44 px e focus visibile da tastiera. */
.pn2 .back, .pn2 .desc-toggle { min-height: 44px; }
.pn2 .sheet-act:focus-visible,
.pn2 .back:focus-visible,
.pn2 .desc-toggle:focus-visible,
.pn2 .pn-map:focus-visible,
.pn2 .pn-info[role="button"]:focus-visible,
.pn2 .pn-report:focus-visible,
.pn2 .pn-org:focus-visible { outline: 3px solid #205cc0; outline-offset: 3px; }

/* Riquadro «Copia link» (desktop, o telefono senza menu di condivisione). */
.pn-share-dialog {
    width: min(420px, calc(100vw - 32px)); box-sizing: border-box; margin: auto;
    border: 1px solid var(--pn-line, #e5e7eb); border-radius: 24px; padding: 24px;
    background: #fff; color: #15161a; box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}
.pn-share-dialog::backdrop { background: rgba(16, 24, 39, .55); backdrop-filter: blur(4px); }
.pn-share-dialog h2 { margin: 0 40px 6px 0; font: 800 24px/1.15 'Barlow Condensed', 'Barlow', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.pn-share-dialog__event { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #4b5563; }
.pn-share-dialog label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #4b5563; }
.pn-share-dialog input {
    box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 12px;
    border: 1px solid #c7ccd6; border-radius: 12px; font: 500 16px 'Barlow', sans-serif; color: #15161a; background: #f9fafb;
}
.pn-share-dialog__copy, .pn-share-dialog__native {
    display: block; width: 100%; min-height: 48px; margin-top: 12px; border-radius: 999px;
    font: 800 15px 'Barlow', sans-serif; cursor: pointer;
}
.pn-share-dialog__copy { border: 0; background: #111216; color: #fff; }
.pn-share-dialog__native { border: 1px solid #c7ccd6; background: #fff; color: #15161a; }
.pn-share-dialog__native[hidden] { display: none; }
.pn-share-dialog__status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #166534; }
.pn-share-dialog__x {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid #d9dee7; background: #fff; color: #15161a; font-size: 24px; line-height: 1; cursor: pointer;
}
.pn-share-dialog :focus-visible { outline: 3px solid #205cc0; outline-offset: 3px; }
