/* ==========================================================================
   PartyNow — SEO Homepage (artboard A · Editoriale)
   Token estratti 1:1 dal codice Flutter (app/Partynow2026):
   - Palette categorie ............ lib/utils/app_colors.dart
   - Card radius 24, overlay gradient stops [0, .35, .6] ... featured_event_card.dart
   - Date-pill (radius 20, w900 .5ls) ..................... horizontal_event_card.dart
   - Heart cerchio bianco (shadow .1/blur8/offset0,2) ..... like_button.dart
   - TagChip caps w800 ls1 ................................ tag_chip.dart
   - Filtro: anello arcobaleno 7s, 5 colori ............... main_header.dart (_RainbowBorderPainter)
   Classi prefissate `pn-` per non collidere con css/style.css (eventi/event-detail).
   ========================================================================== */

:root {
    /* Palette categorie — esatta da app_colors.dart */
    --pn-red: #F24B3F;
    --pn-yellow: #FECD3F;
    --pn-green: #5CCC6B;
    --pn-blue: #4A91F2;
    --pn-purple: #A44CCF;
    --pn-accent: var(--pn-red);
    --pn-accent-rgb: 242, 75, 63;

    /* Neutri */
    --pn-bg: #FFFFFF;
    --pn-bg-soft: #F9FAFB;
    --pn-ink: #0E0F13;
    --pn-ink-2: #5A6072;
    --pn-ink-3: #9AA0AE;
    --pn-line: #ECEDF1;
    --pn-dark: #14161C;

    /* Heart inattivo = Material grey400 */
    --pn-heart-off: #BDBDBD;

    /* Mappa categorie canoniche Firestore. */
    --pn-cat-club: var(--pn-red);
    --pn-cat-concerti: var(--pn-blue);
    --pn-cat-aperitivi: var(--pn-green);
    --pn-cat-arte: var(--pn-purple);
    --pn-cat-social: var(--pn-yellow);

    /* Glow dietro l'hero (transizione 0.8s sul colore, come da brief) */
    --pn-glow: var(--pn-accent);

    --pn-radius: 24px;
    --pn-maxw: 1240px;

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

* { box-sizing: border-box; }

html {
    scroll-behavior: auto;
    scroll-padding-top: 84px;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: visible;
    font-family: var(--pn-font);
    font-weight: 500;
    color: var(--pn-ink);
    background: var(--pn-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.pn-container {
    width: 100%;
    max-width: var(--pn-maxw);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Display headings: Barlow Condensed 900 uppercase, ls negativo ---- */
.pn-hero-title,
.pn-section-title,
.pn-newsletter-title {
    font-family: var(--pn-display);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.0;
    margin: 0;
}

/* ---- Buttons ---- */
.pn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pn-font);
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    padding: 11px 20px;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.pn-btn:active { transform: translateY(1px); }
.pn-btn-primary {
    background: var(--pn-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(var(--pn-accent-rgb), .28);
}
.pn-btn-primary:hover { box-shadow: 0 8px 22px rgba(var(--pn-accent-rgb), .38); }

/* ==========================================================================
   Header
   ========================================================================== */
.pn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--pn-line);
}
.pn-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}
.pn-logo img { height: 26px; width: auto; }
.pn-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 8px;
}
.pn-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--pn-ink);
    opacity: .82;
    transition: opacity .15s ease;
}
.pn-nav-link:hover { opacity: 1; }
.pn-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

/* City picker */
.pn-city-picker { position: relative; }
.pn-city-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--pn-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--pn-ink);
    transition: border-color .15s ease;
}
.pn-city-btn:hover { border-color: #d7d9e0; }
.pn-city-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pn-accent);
    box-shadow: 0 0 0 3px rgba(var(--pn-accent-rgb), .18);
}
.pn-city-label { color: var(--pn-ink-3); font-weight: 600; }
.pn-city-value { font-weight: 800; }
.pn-city-caret { color: var(--pn-ink-3); transition: transform .2s ease; }
.pn-city-picker.open .pn-city-caret { transform: rotate(180deg); }
.pn-city-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--pn-line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 18, 30, .14);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.pn-city-picker.open .pn-city-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pn-city-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pn-city-menu li:hover { background: var(--pn-bg-soft); }
.pn-city-menu li[aria-selected="true"] { color: var(--pn-accent); }
.pn-city-menu li small { color: var(--pn-ink-3); font-weight: 600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.pn-hero {
    position: relative;
    z-index: 5;
    padding: 56px 0 22px;
    overflow: visible;
}
/* Macchie soffuse di colore che driftano e compaiono qua e là nella parte alta
   dell'hero. Molto flebili (whitish), nessun bordo: sfumano a zero prima del
   fondo sezione, che è già bianco. Esperienziale e leggero. */
.pn-hero-glow {
    display: none;
}
.pn-blob {
    position: absolute;
    width: 48%;
    height: 72%;
    border-radius: 50%;
    filter: blur(80px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.pn-blob-1 { background: var(--pn-red);    top: -10%; left: 2%;  animation: pn-blob-a 19s ease-in-out infinite; }
.pn-blob-2 { background: var(--pn-green);  top: -16%; left: 40%; animation: pn-blob-b 24s ease-in-out infinite -7s; }
.pn-blob-3 { background: var(--pn-blue);   top: -8%;  left: 58%; animation: pn-blob-c 28s ease-in-out infinite -13s; }
.pn-blob-4 { background: var(--pn-purple); top: -18%; left: 22%; animation: pn-blob-d 22s ease-in-out infinite -4s; }

@keyframes pn-blob-a {
    0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0; }
    25%      { opacity: .20; }
    50%      { transform: translate(26%, 14%) scale(1.25); opacity: .26; }
    75%      { opacity: .08; }
}
@keyframes pn-blob-b {
    0%, 100% { transform: translate(0, 0) scale(1.1);      opacity: 0; }
    30%      { opacity: .16; }
    55%      { transform: translate(-22%, 10%) scale(1);   opacity: .24; }
    80%      { opacity: .06; }
}
@keyframes pn-blob-c {
    0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0; }
    20%      { opacity: .14; }
    50%      { transform: translate(-18%, 16%) scale(1.2); opacity: .22; }
    78%      { opacity: .07; }
}
@keyframes pn-blob-d {
    0%, 100% { transform: translate(0, 0) scale(1.15);     opacity: 0; }
    35%      { opacity: .15; }
    60%      { transform: translate(24%, 8%) scale(1);     opacity: .22; }
    85%      { opacity: .05; }
}
/* Mood → colori delle macchie (come il bordo rainbow dell'app) */
body.mood-party .pn-blob-1 { background: var(--pn-red); }
body.mood-party .pn-blob-2 { background: var(--pn-yellow); }
body.mood-party .pn-blob-3 { background: var(--pn-green); }
body.mood-party .pn-blob-4 { background: var(--pn-red); }
body.mood-chill .pn-blob-1 { background: var(--pn-green); }
body.mood-chill .pn-blob-2 { background: var(--pn-blue); }
body.mood-chill .pn-blob-3 { background: var(--pn-purple); }
body.mood-chill .pn-blob-4 { background: var(--pn-blue); }
.pn-hero-inner {
    position: relative;
    z-index: 1;
}
.pn-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--pn-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pn-ink-2);
    box-shadow: 0 2px 10px rgba(15, 18, 30, .05);
}
.pn-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pn-green);
    box-shadow: 0 0 0 3px rgba(92, 204, 107, .22);
    animation: pn-pulse 2.4s ease-in-out infinite;
}
@keyframes pn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.pn-hero-title {
    font-size: clamp(46px, 5.6vw, 78px);
    margin: 18px 0 0;
    text-transform: none;
}
.pn-hero-city { color: var(--pn-accent); }
.pn-hero-sub {
    margin: 16px 0 0;
    max-width: 620px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--pn-ink-2);
    font-weight: 500;
}

/* ---- Time filter chips + funnel ---- */
.pn-filter-zone {
    position: relative;
    z-index: 5;
}
.pn-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pn-time-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-date-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Mood: Tutto / Party / Chill (come nell'app) */
.pn-mood {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    background: var(--pn-bg-soft);
    border: 1px solid var(--pn-line);
    border-radius: 999px;
    padding: 3px;
}
.pn-mood-btn {
    flex: 1;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pn-ink-2);
    transition: background .14s ease, color .14s ease;
}
.pn-mood-btn:hover { color: var(--pn-ink); }
.pn-mood-btn.active { color: #fff; }
.pn-mood-btn.active[data-mood="tutto"] { background: var(--pn-ink); }
.pn-mood-btn.active[data-mood="party"] { background: var(--pn-red); }
.pn-mood-btn.active[data-mood="chill"] { background: var(--pn-blue); }

.pn-filter-note {
    max-width: 760px;
    margin: 12px auto 0;
    padding: 12px 16px;
    border: 1px solid var(--pn-line);
    border-radius: 16px;
    background: rgba(249, 250, 251, .92);
    color: var(--pn-ink-2);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.pn-filter-note strong { color: var(--pn-ink); }
.pn-chip {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pn-ink-2);
    transition: background .14s ease, color .14s ease;
}
.pn-chip:hover { background: var(--pn-bg-soft); color: var(--pn-ink); }
.pn-chip-active { background: var(--pn-ink); color: #fff; }
.pn-chip-active:hover { background: var(--pn-ink); color: #fff; }

.pn-filter-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    width: min(420px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid var(--pn-line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 18, 30, .18);
    padding: 18px;
    z-index: 50;
    max-height: min(680px, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.pn-filter-panel[hidden] { display: none; }
.pn-filter-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pn-line);
}
.pn-filter-panel__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: var(--pn-ink);
}
.pn-filter-panel__head p {
    margin: 5px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--pn-ink-3);
}
.pn-filter-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--pn-bg-soft);
    color: var(--pn-ink-2);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}
.pn-filter-group {
    padding: 16px 0 2px;
}
.pn-filter-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pn-ink-3);
}
.pn-filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pn-ink-3);
}
.pn-filter-label-row strong {
    letter-spacing: 0;
    text-transform: none;
    color: var(--pn-ink);
    background: var(--pn-bg-soft);
    border-radius: 9px;
    padding: 4px 9px;
}
.pn-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pn-filter-option {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--pn-bg-soft);
    border: 1px solid var(--pn-line);
    color: var(--pn-ink-2);
    font-size: 13px;
    font-weight: 800;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.pn-filter-option:hover {
    border-color: #d7d9e0;
    color: var(--pn-ink);
}
.pn-filter-option.active {
    background: var(--pn-ink);
    border-color: var(--pn-ink);
    color: #fff;
}
.pn-filter-option span {
    margin-left: 3px;
    color: inherit;
    opacity: .62;
    font-size: 12px;
}
.pn-filter-empty {
    font-size: 13px;
    font-weight: 700;
    color: var(--pn-ink-3);
}
.pn-radius-slider {
    width: 100%;
    accent-color: var(--pn-ink);
}
.pn-radius-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pn-ink-3);
}
.pn-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--pn-line);
}
.pn-filter-reset,
.pn-filter-done {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}
.pn-filter-reset {
    background: var(--pn-bg-soft);
    color: var(--pn-ink-2);
}
.pn-filter-done {
    background: var(--pn-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--pn-accent-rgb), .24);
}

/* Funnel pill — icona filtro + stato atmosfera, coerente con la pill app */
.pn-funnel {
    position: relative;
    min-width: 126px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0;
    overflow: hidden;
}
.pn-funnel-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* 5 colori brand in ordine, animati lungo la pillola */
    background: linear-gradient(90deg,
            var(--pn-red),
            var(--pn-yellow),
            var(--pn-green),
            var(--pn-blue),
            var(--pn-purple),
            var(--pn-red));
    background-size: 240% 100%;
    animation: pn-gradient-slide 7s linear infinite;
}
.pn-funnel.active .pn-funnel-face {
    background: var(--pn-ink);
    color: #fff;
}
/* Mood → colori del bordo del filtro (party / chill, come nell'app) */
body.mood-party .pn-funnel-ring {
    background: linear-gradient(90deg, var(--pn-red), var(--pn-yellow), var(--pn-green), var(--pn-red));
    background-size: 220% 100%;
}
body.mood-chill .pn-funnel-ring {
    background: linear-gradient(90deg, var(--pn-green), var(--pn-blue), var(--pn-purple), var(--pn-green));
    background-size: 220% 100%;
}
.pn-funnel-face {
    position: absolute;
    inset: 2px; /* borderW = 2.0 */
    border-radius: inherit;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 14px;
    color: rgba(0, 0, 0, .87); /* black87 */
    z-index: 1;
}
.pn-funnel-face svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
.pn-funnel-divider {
    width: 1px;
    height: 18px;
    flex: 0 0 auto;
    background: var(--pn-line);
}
.pn-funnel-mood {
    min-width: 54px;
    text-align: left;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.pn-funnel.active .pn-funnel-face {
    background: var(--pn-ink);
    color: #fff;
}
.pn-funnel.active .pn-funnel-divider {
    background: rgba(255, 255, 255, .28);
}
@keyframes pn-gradient-slide {
    from { background-position: 0% 50%; }
    to { background-position: 240% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .pn-funnel-ring { animation: none; }
    .pn-blob { animation: none; opacity: .1; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.pn-section { padding: 40px 0; }
.pn-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.pn-section-title {
    font-size: clamp(28px, 3vw, 38px);
    text-transform: none;
}
.pn-fire { -webkit-text-fill-color: initial; }
.pn-section-sub {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--pn-ink-3);
    font-weight: 600;
}
.pn-see-all {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--pn-ink-2);
    transition: color .14s ease;
}
.pn-see-all:hover { color: var(--pn-accent); }

.pn-list-head {
    align-items: center;
}
.pn-sort-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--pn-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 18, 30, .05);
    color: var(--pn-ink-2);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.pn-sort-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--pn-bg-soft);
    color: var(--pn-ink);
    font: inherit;
    padding: 0 12px 0 14px;
    outline: none;
    cursor: pointer;
}
.pn-sort-btn svg {
    color: var(--pn-gray-500);
    transition: transform .16s ease;
}
.pn-sort-control.is-open .pn-sort-btn svg { transform: rotate(180deg); }
.pn-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 25;
    width: 230px;
    padding: 8px;
    border: 1px solid rgba(16, 17, 24, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(12, 14, 24, .18);
}
.pn-sort-menu button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--pn-gray-600);
    font: inherit;
    text-align: left;
    padding: 0 13px;
    cursor: pointer;
}
.pn-sort-menu button:hover {
    background: var(--pn-bg-soft);
    color: var(--pn-ink);
}
.pn-sort-menu button[aria-selected="true"] {
    background: rgba(var(--pn-accent-rgb, 242, 75, 63), .10);
    color: var(--pn-ink);
}
.pn-sort-menu button[aria-selected="true"]::before {
    content: "✓";
    font-weight: 900;
    color: var(--pn-accent, var(--pn-red));
    flex: 0 0 16px;
}
.pn-sort-menu button:not([aria-selected="true"])::before {
    content: "";
    flex: 0 0 16px;
}
.pn-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.pn-list-grid .pn-card {
    aspect-ratio: 1 / 1.18;
}
.pn-list-grid .pn-card__title {
    font-size: clamp(23px, 2vw, 30px);
}
.pn-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}
.pn-load-more {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--pn-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 18, 30, .18);
}
.pn-load-more[hidden] {
    display: none;
}

/* ==========================================================================
   Event cards (1:1 Flutter FeaturedEventCard)
   ========================================================================== */
.pn-card {
    position: relative;
    display: block;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--pn-radius);
    overflow: hidden;
    background: var(--pn-card-color, #2a2a2a);
    isolation: isolate;
    transition: transform .18s ease;
}
.pn-card:hover { transform: translateY(-3px); }
.pn-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* Overlay app-like, ma con safe zone più alta per titoli lunghi su immagini chiare. */
.pn-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, .16) 34%,
            rgba(0, 0, 0, .28) 48%,
            rgba(0, 0, 0, .10) 100%),
        linear-gradient(to bottom,
            color-mix(in srgb, var(--pn-card-color) 0%, transparent) 0%,
            color-mix(in srgb, var(--pn-card-color) 18%, transparent) 36%,
            color-mix(in srgb, var(--pn-card-color) 82%, transparent) 54%,
            var(--pn-card-color) 70%,
            var(--pn-card-color) 100%);
}
.pn-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}
/* TagChip: caps, w800, ls 1px */
.pn-card__cat {
    font-family: var(--pn-font);
    max-width: 100%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    opacity: .92;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Titolo: display condensed 900 uppercase */
.pn-card__title {
    font-family: var(--pn-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.04;
    color: #fff;
    margin: 0;
    max-width: 100%;
    max-height: calc(3 * 1.04em);
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.pn-card__venue {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.18;
    color: rgba(255, 255, 255, .95);
    overflow: hidden;
}
.pn-card__venue svg { flex: 0 0 auto; }
.pn-card__venue span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-card__date {
    margin-top: 9px;
}

/* Date-pill: bg colore evento, radius 20, calendar + w900 caps .5ls */
.pn-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 13px;
    border-radius: 20px;
    background: var(--pn-card-color, #2a2a2a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.pn-pill svg { width: 14px; height: 14px; }
.pn-pill span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Heart: cerchio bianco, shadow .1/blur8/offset(0,2), icona grey400 */
.pn-heart {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
    color: var(--pn-heart-off);
    transition: transform .12s ease, color .12s ease;
}
.pn-heart:hover { transform: scale(1.06); }
.pn-heart svg { width: 19px; height: 19px; }
.pn-heart.is-active { color: var(--pn-red); }

.pn-save-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pn-save-modal.is-open { display: flex; }
.pn-save-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 16, .56);
    backdrop-filter: blur(10px);
}
.pn-save-modal__panel {
    position: relative;
    width: min(360px, 100%);
    background: #fff;
    border: 1px solid rgba(16, 17, 24, .08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 22px 70px rgba(10, 12, 18, .24);
    text-align: left;
    animation: pn-save-in .18s ease-out;
}
.pn-save-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #F4F5F8;
    color: var(--pn-black);
    font: 800 20px/1 var(--pn-font-body);
    cursor: pointer;
}
.pn-save-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding-right: 42px;
}
.pn-save-modal__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pn-red);
    background: rgba(242, 75, 63, .10);
}
.pn-save-modal__icon svg { width: 18px; height: 18px; }
.pn-save-modal__kicker {
    margin: 0;
    color: var(--pn-gray-500);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
}
.pn-save-modal h2 {
    margin: 18px 0 0;
    color: var(--pn-black);
    font-family: var(--pn-font-display);
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}
.pn-save-modal__copy {
    margin: 10px 0 18px;
    color: var(--pn-gray-600);
    font-size: 15px;
    line-height: 1.38;
    font-weight: 700;
}
.pn-save-modal__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    background: var(--pn-red);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(242, 75, 63, .28);
}
.pn-save-modal__ghost {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--pn-gray-500);
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}
.pn-save-modal-open { overflow: hidden; }
@keyframes pn-save-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Featured grid: 1 grande (1.4fr) + 2 medie (1fr) ---- */
.pn-featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    min-width: 0;
    min-height: 470px;
}
.pn-featured-grid .pn-card:first-child {
    grid-row: 1 / span 2;
}
.pn-featured-grid .pn-card:first-child .pn-card__body { padding: 20px; }
.pn-featured-grid .pn-card:first-child .pn-card__title {
    font-size: clamp(32px, 3.8vw, 52px);
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.pn-featured-grid .pn-card:not(:first-child) .pn-card__title {
    font-size: clamp(21px, 1.85vw, 28px);
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
/* Pochi eventi in evidenza: layout adattivo, niente card gigante orfana */
.pn-featured-grid.pn-few {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    justify-content: center;
    min-height: 0;
}
.pn-featured-grid.pn-few .pn-card {
    width: 100%;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    min-height: 300px;
}
.pn-featured-grid.pn-few .pn-card .pn-card__title {
    font-size: clamp(23px, 2vw, 32px);
}
.pn-featured-grid.pn-one {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

/* ---- Rails (vertical cards) ---- */
.pn-rail { display: grid; gap: 18px; }
.pn-rail-4 { grid-template-columns: repeat(4, 1fr); }
.pn-rail-3 { grid-template-columns: repeat(3, 1fr); }
.pn-rail .pn-card { aspect-ratio: 1 / 1.12; }
.pn-rail .pn-card__body { padding: 16px; }
.pn-rail-4 .pn-card__title { font-size: clamp(18px, 1.55vw, 24px); }
.pn-rail-3 .pn-card__title { font-size: clamp(20px, 1.75vw, 27px); }

/* ==========================================================================
   Categorie
   ========================================================================== */
.pn-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.pn-cat {
    position: relative;
    border-radius: var(--pn-radius);
    padding: 22px;
    min-height: 168px;
    color: #fff;
    background: var(--pn-cat-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .2s ease;
}
.pn-cat:hover { transform: translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--pn-cat-color) 40%, transparent); }
.pn-cat__icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pn-cat__icon svg { width: 26px; height: 26px; }
.pn-cat__name {
    font-family: var(--pn-display);
    font-weight: 800;
    font-size: 24px;
    text-transform: none;
    line-height: 1.04;
}
.pn-cat__count {
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
    margin-top: 4px;
}

/* ==========================================================================
   Weekend section bg
   ========================================================================== */
.pn-weekend-section {
    background: var(--pn-bg-soft);
    border-top: 1px solid var(--pn-line);
    border-bottom: 1px solid var(--pn-line);
}

/* ==========================================================================
   Cities
   ========================================================================== */
.pn-cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.pn-city {
    position: relative;
    border: 1px solid var(--pn-line);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.pn-city:hover { transform: translateY(-2px); border-color: #dfe1e8; box-shadow: 0 12px 26px rgba(15, 18, 30, .07); }
.pn-city__dot { width: 9px; height: 9px; border-radius: 50%; }
.pn-city__name { font-weight: 800; font-size: 16px; margin-top: 14px; }
.pn-city__count { font-size: 13px; font-weight: 600; color: var(--pn-ink-3); margin-top: 2px; }
.pn-city__live {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--pn-red);
    background: rgba(242, 75, 63, .1);
    padding: 3px 7px;
    border-radius: 6px;
}

/* ==========================================================================
   Newsletter (dark)
   ========================================================================== */
.pn-newsletter {
    margin-top: 24px;
    background: var(--pn-dark);
    color: #fff;
}
.pn-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 64px 32px;
}
.pn-newsletter-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.pn-newsletter-title {
    font-size: clamp(38px, 4.4vw, 60px);
    text-transform: uppercase;
    margin-top: 14px;
    color: #fff;
}
.pn-newsletter-field {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 7px 7px 7px 20px;
}
.pn-newsletter-field input {
    flex: 1;
    background: none;
    border: 0;
    outline: none;
    color: #fff;
    font-family: var(--pn-font);
    font-size: 15px;
    font-weight: 500;
}
.pn-newsletter-field input::placeholder { color: rgba(255, 255, 255, .4); }
.pn-newsletter-note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .42); }

/* ==========================================================================
   Footer
   ========================================================================== */
.pn-footer {
    background: #0B0C10;
    color: #fff;
    padding: 56px 0 28px;
}
.pn-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}
.pn-footer-logo { height: 26px; margin-bottom: 14px; }
.pn-footer-desc { color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1.5; max-width: 280px; }
.pn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    margin-top: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .15s ease;
}
.pn-social:hover { background: var(--pn-red); }
.pn-footer-col h3 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .9);
}
.pn-footer-col li { margin-bottom: 9px; }
.pn-footer-col a { color: rgba(255, 255, 255, .55); font-size: 14px; transition: color .14s ease; }
.pn-footer-col a:hover { color: #fff; }
.pn-footer-bottom {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}

/* ==========================================================================
   Responsive — desktop-first (min 1200px). Sotto: rail scrollabili.
   ========================================================================== */
@media (max-width: 1080px) {
    .pn-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .pn-cities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .pn-container { padding: 0 20px; }
    .pn-nav { display: none; }
    .pn-header-inner { gap: 14px; }

    /* Featured → singola colonna */
    .pn-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }
    .pn-featured-grid .pn-card:first-child { grid-row: auto; }
    .pn-featured-grid .pn-card { aspect-ratio: 16 / 11; }

    /* Rail orizzontali scrollabili (Popolari / Weekend) */
    .pn-rail {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        gap: 14px;
        margin-inline: -20px;
        padding: 0 20px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pn-rail::-webkit-scrollbar { display: none; }
    .pn-rail .pn-card {
        flex: 0 0 72%;
        max-width: 320px;
        scroll-snap-align: start;
        aspect-ratio: 1 / 1.1;
    }

    .pn-rail .pn-card__body {
        padding: 15px;
    }

    .pn-rail .pn-card__title {
        font-size: clamp(19px, 6vw, 25px);
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .pn-rail .pn-card__venue {
        font-size: 12.5px;
    }

    .pn-cats {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scrollbar-width: none;
    }
    .pn-cats::-webkit-scrollbar { display: none; }
    .pn-cat { flex: 0 0 60%; max-width: 240px; }

    .pn-newsletter-inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
    .pn-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .pn-cities { grid-template-columns: repeat(2, 1fr); }
    .pn-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .pn-header-actions .pn-nav-link { display: none; }
    .pn-header-actions .pn-city-picker { display: none; }
    .pn-filters {
        gap: 12px 10px;
        align-items: center;
    }
    .pn-time-chips { display: contents; }
    .pn-funnel { min-width: 112px; }
    .pn-funnel-face {
        gap: 8px;
        padding: 0 12px;
    }
    .pn-funnel-mood {
        min-width: 48px;
        font-size: 13px;
    }
    .pn-filter-panel {
        left: -20px;
        right: -20px;
        width: auto;
        border-radius: 22px;
    }
    .pn-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pn-list-head {
        align-items: stretch;
    }
    .pn-sort-control {
        width: 100%;
        justify-content: space-between;
    }
    .pn-list-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pn-rail .pn-card { flex-basis: 80%; }
    .pn-save-modal { padding: 16px; }
    .pn-save-modal__panel {
        border-radius: 22px;
        padding: 22px;
    }
    .pn-save-modal h2 { font-size: 32px; }
}
