/* Community Bassanonet — layout distinto dalla console account */

:root {
    --cm-display: 'Playfair Display', Georgia, serif;
}

body.community-body {
    background: #f7f8fb;
    min-height: 100%;
    overflow-x: clip;
}
/* Punto giallo definito (come il pallino del logo), un solo, in basso a sinistra */
body.community-body::before {
    content: '';
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f3edd0;
    pointer-events: none;
    z-index: 0;
}
body.community-body > header,
body.community-body > .cm-nav,
body.community-body > #main,
body.community-body > .cm-footer {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    body.community-body::before {
        left: 16px;
        bottom: 16px;
        width: 120px;
        height: 120px;
    }
}

/* Evita che il selettore globale site.css `header {…}` colori blocchi interni */
body.community-body #main header {
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

body.community-body #main {
    padding: 0 0 64px;
    min-height: calc(100vh - 280px);
}

/* Footer community */
body.community-body .cm-footer,
body.community-body .cm-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}
.cm-footer {
    margin-top: 48px;
    background: var(--blue-color);
    padding: 48px 0 28px;
}
.cm-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: 32px 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cm-footer-kicker {
    display: block;
    font-family: var(--body-fonts);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.cm-footer-brand strong {
    display: block;
    font-family: var(--cm-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.cm-footer-brand p {
    font-family: var(--body-fonts);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 28em;
}
.cm-footer-col h3 {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
}
.cm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-footer-col li + li {
    margin-top: 8px;
}
.cm-footer-col a {
    font-family: var(--body-fonts);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.cm-footer-col a:hover {
    color: var(--yellow-color);
    text-decoration: none;
}
.cm-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
}
.cm-footer-bottom p {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

@media (max-width: 900px) {
    .cm-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    .cm-footer-brand {
        grid-column: 1 / -1;
    }
    .cm-footer-bottom {
        flex-direction: column;
    }
}
@media (max-width: 560px) {
    .cm-footer-grid {
        grid-template-columns: 1fr;
    }
}

body.community-body #main h1,
body.community-body #main h2,
body.community-body #main h3,
.cm-nav-brand strong {
    font-family: var(--cm-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header actions: stesso ritmo alto/lato di account (notif + conto) */
header#header .header-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2001;
}

/* Stesso padding verticale/orizzontale di .notif-menu-container */
header#header .community-live-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 8px;
    z-index: 2001;
}

.community-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    color: var(--blue-color);
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.community-live-pill .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: community-pulse 2s ease-out infinite;
}
.community-live-pill .live-label {
    color: var(--blue-color-4);
    font-weight: 500;
}
@keyframes community-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Shell */
.cm-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.cm-wrap-profile {
    max-width: 760px;
}
.cm-intro-center {
    text-align: center;
}
.cm-intro-center p {
    margin-left: auto;
    margin-right: auto;
}
.cm-actions-center {
    justify-content: center;
}

/* Subnav orizzontale (non sidemenu console) */
.cm-nav {
    border-bottom: 1px solid rgba(18, 45, 100, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
}
.cm-nav .cm-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}
.cm-nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cm-nav-kicker {
    font-family: var(--body-fonts);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-color-4);
}
.cm-nav-brand strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cm-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--body-fonts);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-color-4);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.cm-nav-links a:hover {
    background: rgba(18, 45, 100, 0.06);
    color: var(--blue-color);
    text-decoration: none;
}
.cm-nav-links a.is-active {
    background: var(--blue-color);
    color: #fff;
}
.cm-nav-sep {
    width: 1px;
    height: 22px;
    margin: 0 8px;
    background: rgba(18, 45, 100, 0.12);
}

/* Page intro */
.cm-intro {
    padding: 40px 0 28px;
}
.cm-intro h1 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.05;
    color: var(--blue-color);
    margin: 0 0 12px;
}
.cm-intro p {
    font-family: var(--body-fonts);
    font-size: 17px;
    line-height: 1.55;
    color: var(--blue-color-2);
    max-width: 34em;
    margin: 0;
}
.cm-intro-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

/* Buttons community */
.cm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-family: var(--body-fonts);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}
.cm-btn:hover { text-decoration: none; }
.cm-btn-primary {
    background: var(--blue-color);
    color: #fff !important;
}
.cm-btn-primary:hover { background: var(--blue-color-2); color: #fff !important; }
.cm-btn-accent {
    background: var(--yellow-color);
    color: var(--blue-color) !important;
}
.cm-btn-accent:hover { background: #e0c23a; color: var(--blue-color) !important; }
.cm-btn-ghost {
    background: transparent;
    border-color: rgba(18, 45, 100, 0.2);
    color: var(--blue-color) !important;
}
.cm-btn-ghost:hover {
    border-color: var(--blue-color);
    background: rgba(255, 255, 255, 0.7);
}
.cm-text-link {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-color);
    text-decoration: none;
    white-space: nowrap;
}
.cm-text-link:hover { text-decoration: underline; }

/* Presence strip */
.cm-presence {
    margin-bottom: 28px;
}
.cm-presence-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 45, 100, 0.08);
    border-left: 4px solid #22c55e;
}
.cm-avatar-stack {
    display: flex;
    padding-left: 10px;
}
.cm-avatar-stack .cm-avatar {
    margin-left: -10px;
    border: 2px solid #fff;
}
.cm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}
a.cm-avatar:hover {
    text-decoration: none;
    filter: brightness(1.05);
}
.cm-avatar.lg {
    width: 52px;
    height: 52px;
    font-size: 15px;
}
.cm-avatar.xl {
    width: 88px;
    height: 88px;
    font-size: 28px;
}
.cm-avatar.is-premium {
    background: linear-gradient(145deg, #f5c842, #d9a61a);
    color: var(--blue-color);
}
.cm-avatar .cm-status {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}
.cm-presence-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    font-family: var(--body-fonts);
}
.cm-presence-copy strong {
    font-size: 15px;
    color: var(--blue-color);
}
.cm-presence-copy span {
    font-size: 13px;
    color: var(--grey-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main layout: stream + rail */
.cm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
}
.cm-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.cm-section-head h2 {
    font-size: 28px;
    color: var(--blue-color);
    margin: 0;
}
.cm-section-head p {
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--grey-color);
    margin: 6px 0 0;
}
.cm-section-head p a {
    color: var(--blue-color-4);
    text-decoration: none;
    font-weight: 600;
}
.cm-section-head p a:hover {
    color: var(--blue-color);
    text-decoration: underline;
}

/* Activity stream / timeline */
.cm-stream {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-stream-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    position: relative;
}
.cm-stream-item + .cm-stream-item {
    margin-top: 4px;
}
.cm-stream-rail {
    position: relative;
    display: flex;
    justify-content: center;
}
.cm-stream-item:not(:last-child) .cm-stream-rail::after {
    content: '';
    position: absolute;
    top: 44px;
    bottom: -8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(18, 45, 100, 0.18), rgba(18, 45, 100, 0.04));
}
.cm-stream-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(18, 45, 100, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-color);
    z-index: 1;
    font-size: 14px;
}
.kind-discussion .cm-stream-dot { color: #1d4ed8; }
.kind-event .cm-stream-dot { color: #b45309; }
.kind-classified .cm-stream-dot { color: #0f766e; }

.cm-stream-body {
    padding: 4px 0 22px;
}
.cm-stream-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-family: var(--body-fonts);
}
.cm-kind {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-color-4);
}
.cm-kind-cat {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    border-left: 3px solid var(--cat-accent, var(--blue-color));
    color: var(--cat-accent, var(--blue-color-4));
    background: var(--cat-soft, #eef2f8);
}
.cm-stream-meta time {
    font-size: 12px;
    color: #8a93a5;
}
.cm-stream-body h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 6px;
}
.cm-stream-body h3 a {
    color: var(--blue-color);
    text-decoration: none;
}
.cm-stream-body h3 a:hover {
    color: var(--blue-color-2);
    text-decoration: underline;
}
.cm-stream-body p {
    font-family: var(--body-fonts);
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey-color);
    margin: 0;
}

/* Side rail */
.cm-rail {
    position: sticky;
    top: 88px;
}
.cm-rail-block + .cm-rail-block {
    margin-top: 28px;
}
.cm-rail-block h2 {
    font-size: 18px;
    margin: 0 0 12px;
    color: var(--blue-color);
}
.cm-rail-note {
    font-family: var(--body-fonts);
    font-size: 14px;
    line-height: 1.5;
    color: var(--blue-color-2);
    margin: 0 0 14px;
}
.cm-join {
    padding: 20px 0 0;
    border-top: 1px solid rgba(18, 45, 100, 0.1);
}
.cm-join h2 {
    font-size: 22px;
}
.cm-people-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-people-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(18, 45, 100, 0.06);
}
.cm-people-list li:last-child { border-bottom: 0; }
.cm-people-list strong {
    display: block;
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--blue-color);
}
.cm-people-list span {
    display: block;
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
    margin-top: 2px;
}
.cm-star {
    color: #d9a61a;
    font-size: 11px;
    margin-left: 4px;
}

/* Online page grid */
.cm-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px 16px;
}
.cm-person,
.cm-person-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 45, 100, 0.08);
    text-decoration: none;
    color: inherit;
}
a.cm-person:hover,
a.cm-person-link:hover {
    text-decoration: none;
}
a.cm-person:hover h3,
a.cm-person-link:hover strong {
    text-decoration: underline;
}
.cm-person h3 {
    font-family: var(--body-fonts);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--blue-color);
}
.cm-person p,
.cm-person-link span {
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
    margin: 0;
}
.cm-person-link {
    padding: 10px 0;
    border-bottom: none;
    width: 100%;
}
.cm-person-link strong {
    display: block;
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--blue-color);
}
.cm-people-list li {
    border-bottom: 1px solid rgba(18, 45, 100, 0.06);
}
.cm-people-list li:last-child {
    border-bottom: 0;
}

/* Scheda utente */
.cm-profile {
    padding-top: 36px;
    text-align: center;
}
.cm-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}
.cm-profile-hero-text {
    min-width: 0;
    width: 100%;
}
.cm-profile-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cm-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-fonts);
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #ecfdf3;
    border-radius: 9999px;
    padding: 6px 10px;
}
.cm-online-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}
.cm-profile-hero h1 {
    font-size: clamp(32px, 5vw, 44px);
    margin: 0 0 10px;
    color: var(--blue-color);
}
.cm-profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--blue-color-4);
    margin: 0 0 16px;
}
.cm-profile-meta i {
    margin-right: 6px;
}
.cm-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}
.cm-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 45, 100, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.cm-profile-stat:hover {
    text-decoration: none;
    border-color: rgba(18, 45, 100, 0.2);
}
.cm-profile-stat strong {
    font-family: var(--cm-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-color);
    line-height: 1;
}
.cm-profile-stat span {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: var(--grey-color);
}
.cm-profile-activity {
    text-align: left;
}
.cm-profile-activity .cm-section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cm-profile-activity .cm-section-head p {
    margin-left: auto;
    margin-right: auto;
    max-width: 36em;
}
.cm-detail-byline a {
    color: inherit;
    text-decoration: none;
}
.cm-detail-byline a:hover strong {
    text-decoration: underline;
}

/* Empty / alerts */
.cm-empty {
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--grey-color);
}
.cm-empty a { color: var(--blue-color); font-weight: 600; }
.cm-empty-block {
    padding: 28px 0;
}
.cm-empty-block h3 {
    font-size: 26px;
    margin: 0 0 8px;
    color: var(--blue-color);
}
.cm-empty-block p {
    margin: 0 0 18px;
    max-width: 32em;
}
.cm-alert {
    font-family: var(--body-fonts);
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 20px;
    background: var(--yellow-color-2);
    border-left: 3px solid var(--yellow-color);
    color: var(--blue-color);
}
.cm-alert code {
    font-size: 12px;
}
.presence-setup-note {
    margin-top: 16px;
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #999;
}

.cm-stream-page {
    max-width: 720px;
}

/* Filtri categoria */
.cm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}
.cm-filters a,
.cm-filters button {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-color-4);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid rgba(18, 45, 100, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}
.cm-filters a:hover {
    color: var(--blue-color);
    border-color: rgba(18, 45, 100, 0.28);
    text-decoration: none;
}
.cm-filters a.is-active {
    background: var(--blue-color);
    border-color: var(--blue-color);
    color: #fff;
}

/* Catalogo elenco */
.cm-catalog {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-catalog > li + li {
    border-top: 1px solid rgba(18, 45, 100, 0.08);
}
.cm-catalog-item {
    display: block;
    padding: 22px 0;
    text-decoration: none;
    color: inherit;
}
.cm-catalog-item:hover {
    text-decoration: none;
}
.cm-catalog-item:hover h2 {
    text-decoration: underline;
}
.cm-catalog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
}
.cm-catalog-item h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--blue-color);
}
.cm-catalog-item p {
    font-family: var(--body-fonts);
    font-size: 15px;
    line-height: 1.5;
    color: var(--grey-color);
    margin: 0 0 10px;
    max-width: 42em;
}
.cm-catalog-author {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: var(--blue-color-4);
}

/* Eventi: data a sinistra */
.cm-event-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    --cat-accent: var(--blue-color);
    --cat-soft: #eef2f8;
    --cat-text: var(--blue-color);
}
.cm-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    background: var(--cat-accent);
    color: #fff;
    border-radius: 10px;
    padding: 10px 8px;
}
.cm-event-item .cm-kind-cat {
    color: var(--cat-accent);
    background: var(--cat-soft);
}
.cm-event-day {
    font-family: var(--cm-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.cm-event-month {
    font-family: var(--body-fonts);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    opacity: 0.9;
}
.cm-event-copy h2 {
    font-size: 24px;
}
.cm-event-copy p {
    margin: 0;
}
.cm-event-copy p i {
    margin-right: 6px;
    color: var(--blue-color-4);
}

/* Scheda dettaglio */
.cm-detail-wrap {
    max-width: 760px;
}
.cm-breadcrumb {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: #8a93a5;
    margin: 28px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.cm-breadcrumb a {
    color: var(--blue-color);
    font-weight: 600;
    text-decoration: none;
}
.cm-breadcrumb a:hover { text-decoration: underline; }
.cm-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--body-fonts);
    font-size: 13px;
    color: #8a93a5;
}
.cm-detail h1 {
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.1;
    color: var(--blue-color);
    margin: 0 0 14px;
}
.cm-detail-event {
    --cat-accent: var(--blue-color);
    --cat-soft: #eef2f8;
    --cat-text: var(--blue-color);
}
.cm-detail-event-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 8px;
}
.cm-detail-event .cm-event-date {
    min-height: 88px;
    background: var(--cat-accent);
}
.cm-detail-event .cm-event-day {
    font-size: 34px;
}
.cm-detail-event-copy .cm-detail-meta {
    margin-bottom: 10px;
}
.cm-detail-event h1 {
    margin: 0;
    color: var(--cat-text);
}
.cm-detail-event .cm-detail-facts {
    border-top-color: color-mix(in srgb, var(--cat-accent) 28%, transparent);
    border-bottom-color: color-mix(in srgb, var(--cat-accent) 28%, transparent);
}
.cm-detail-event .cm-detail-facts dt {
    color: var(--cat-accent);
}
.cm-detail-event .cm-detail-body {
    border-top-color: color-mix(in srgb, var(--cat-accent) 22%, transparent);
}
.cm-detail-byline {
    font-family: var(--body-fonts);
    font-size: 15px;
    color: var(--blue-color-2);
    margin: 0 0 28px;
}
.cm-premium-mark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
}
.cm-detail-body {
    font-family: var(--body-fonts);
    font-size: 17px;
    line-height: 1.65;
    color: var(--blue-color);
    padding-top: 8px;
    border-top: 1px solid rgba(18, 45, 100, 0.1);
}
.cm-detail-facts {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(18, 45, 100, 0.1);
    border-bottom: 1px solid rgba(18, 45, 100, 0.1);
}
.cm-detail-facts > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    font-family: var(--body-fonts);
    font-size: 15px;
}
.cm-detail-facts dt {
    color: var(--blue-color-4);
    font-weight: 600;
}
.cm-detail-facts dd {
    margin: 0;
    color: var(--blue-color);
}
.cm-detail-facts a {
    color: var(--blue-color);
    font-weight: 600;
}
.cm-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 16px;
}

@media (max-width: 900px) {
    .cm-nav .cm-wrap {
        flex-direction: column;
        align-items: stretch;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 12px;
    }
    .cm-nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
    .cm-nav-sep { display: none; }
    .cm-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .cm-rail { position: static; }
    .cm-intro-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-presence-strip {
        flex-wrap: wrap;
    }
    header#header .community-live-wrap {
        padding: 15px 4px;
    }
    .community-live-pill {
        padding: 7px 10px;
    }
    .community-live-pill .live-label { display: none; }
    .cm-event-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
    }
    .cm-detail-facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .cm-detail-event-head {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }
    .cm-detail-event .cm-event-date {
        min-height: 72px;
    }
    .cm-detail-event .cm-event-day {
        font-size: 28px;
    }
    .cm-catalog-item h2 {
        font-size: 22px;
    }
}

/* —— Calendario + mappa —— */
.cm-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.cm-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cm-cal-nav .cm-btn {
    min-height: 38px;
    padding: 0 12px;
}
.cm-cal-title {
    font-size: 22px;
    margin: 0 0 0 8px;
    color: var(--blue-color);
}
.cm-cal-views {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(18, 45, 100, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.cm-cal-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-color-4);
    padding: 10px 14px;
    cursor: pointer;
}
.cm-cal-view-btn.is-active {
    background: var(--blue-color);
    color: #fff;
}
.cm-cal-cats button {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-color-4);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid rgba(18, 45, 100, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    --cat-accent: var(--blue-color);
    --cat-soft: #eef2f8;
}
.cm-cal-cats button[data-cat]:not([data-cat="0"]) {
    border-left: 3px solid var(--cat-accent);
    color: var(--cat-accent);
}
.cm-cal-cats button:hover {
    border-color: rgba(18, 45, 100, 0.28);
}
.cm-cal-cats button[data-cat]:not([data-cat="0"]):hover {
    background: var(--cat-soft);
    color: var(--cat-accent);
}
.cm-cal-cats button.is-active,
.cm-cal-cats button[data-cat].is-active {
    background: var(--cat-accent, var(--blue-color));
    border-color: var(--cat-accent, var(--blue-color));
    color: #fff;
}
.cm-cal-cats button[data-cat="0"].is-active {
    background: var(--blue-color);
    border-color: var(--blue-color);
    color: #fff;
}

.cm-cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}
.cm-cal-panel {
    min-width: 0;
}
.cm-cal-status {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: #8a93a5;
    margin: 12px 0 0;
}

.cm-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    font-family: var(--body-fonts);
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-color-4);
    text-align: center;
}
.cm-cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cm-cal-day {
    min-height: 110px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 45, 100, 0.08);
    border-radius: 10px;
    padding: 8px;
}
.cm-cal-day.is-out {
    opacity: 0.45;
}
.cm-cal-day.is-today {
    border-color: var(--blue-color);
    box-shadow: inset 0 0 0 1px var(--blue-color);
}
.cm-cal-day-num {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-color);
    cursor: pointer;
    padding: 0;
    margin-bottom: 6px;
}
.cm-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cm-cal-chip {
    display: block;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--cat-soft, #eef2f8);
    color: var(--cat-text, var(--blue-color));
    border-left: 3px solid var(--cat-accent, var(--blue-color));
    text-decoration: none;
    font-family: var(--body-fonts);
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cm-cal-chip:hover {
    filter: brightness(0.97);
    text-decoration: none;
}
.cm-cal-chip-time {
    font-weight: 700;
    margin-right: 4px;
    color: var(--cat-accent, var(--blue-color-4));
}
.cm-cal-more {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--blue-color);
    font-family: var(--body-fonts);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 0;
    text-align: left;
}

.cm-cal-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cm-cal-week-col {
    min-height: 220px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 45, 100, 0.08);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cm-cal-week-col.is-today {
    border-color: var(--blue-color);
}
.cm-cal-empty-col {
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
    margin: 8px 0 0;
}

.cm-cal-dayview .cm-catalog-events {
    margin-top: 4px;
}
.cm-cal-dayview .cm-empty-block {
    margin-top: 8px;
}

.cm-cal-map-panel {
    position: sticky;
    top: 88px;
}
.cm-cal-map-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.cm-cal-map-head h2 {
    font-size: 20px;
    margin: 0;
    color: var(--blue-color);
}
.cm-cal-map-head span {
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
}
.cm-events-map {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(18, 45, 100, 0.1);
    background: #e8edf3;
    z-index: 1;
}
.cm-events-map .leaflet-tile-pane {
    filter: grayscale(100%) sepia(12%) hue-rotate(185deg) saturate(0.75) brightness(1.03);
}
.cm-map-marker-wrap {
    background: transparent !important;
    border: none !important;
}
.cm-map-marker-wrap .fa-location-dot {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--blue-color);
    filter: drop-shadow(0 2px 4px rgba(18, 45, 100, 0.35));
}
.cm-map-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}
.cm-map-list li + li {
    border-top: 1px solid rgba(18, 45, 100, 0.08);
}
.cm-map-list li {
    --cat-accent: var(--blue-color);
    --cat-soft: #eef2f8;
    --cat-text: var(--blue-color);
    border-left: 3px solid var(--cat-accent);
    padding-left: 10px;
}
.cm-map-list a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}
.cm-map-list a:hover strong {
    text-decoration: underline;
}
.cm-map-list strong {
    display: block;
    font-family: var(--body-fonts);
    font-size: 14px;
    color: var(--cat-text, var(--blue-color));
}
.cm-map-list span {
    display: block;
    font-family: var(--body-fonts);
    font-size: 12px;
    color: #8a93a5;
    margin-top: 2px;
}
.cm-map-empty {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: #8a93a5;
    padding: 10px 0;
}

@media (max-width: 900px) {
    .cm-profile-stats {
        grid-template-columns: 1fr;
    }
    .cm-cal-layout {
        grid-template-columns: 1fr;
    }
    .cm-cal-map-panel {
        position: static;
    }
    .cm-cal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .cm-cal-views {
        width: 100%;
    }
    .cm-cal-view-btn {
        flex: 1;
    }
    .cm-events-map {
        height: 320px;
    }
    .cm-cal-week-grid {
        grid-template-columns: 1fr;
    }
    .cm-cal-week .cm-cal-weekdays {
        display: none;
    }
    .cm-cal-day {
        min-height: 84px;
    }
}
