/**
 * Piattaforma Cyberneid — design system Lento / “le vie dell’alto Cilento”.
 * Palette ricavata dai loghi in lento design/LOGHI PNG (mare #234152, terra #2d4030, sage #4a5d4d).
 * Tipografia: Outfit (titoli), DM Sans (corpo) — enqueue in functions.php.
 */

:root {
    --cn-mare: #234152;
    --cn-terra: #2d4030;
    --cn-sage: #4a5d4d;
    --cn-primary: var(--cn-mare);
    --cn-primary-light: #2f5a6e;
    --cn-accent-earth: var(--cn-terra);
    --cn-bg: #f7f6f2;
    --cn-bg-soft: #eef1ea;
    --cn-card-bg: #ffffff;
    --cn-text: #1c2426;
    --cn-muted: #5c6560;
    --cn-border: #e2dfd8;
    --cn-radius: 14px;
    --cn-shadow: 0 14px 44px rgba(35, 65, 82, 0.09);
    --cn-font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --cn-font-display: "Outfit", var(--cn-font);
    --cn-header-bg: var(--cn-mare);
    --cn-header-border: rgba(255, 255, 255, 0.14);
    --cn-header-link: rgba(255, 255, 255, 0.92);
    --cn-header-link-hover: #ffffff;
    --cn-header-panel-bg: #1a3543;
}

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

body.cn-theme {
    margin: 0;
    font-family: var(--cn-font);
    background: var(--cn-bg);
    color: var(--cn-text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--cn-header-offset, 76px);
}

.cn-site {
    min-height: 40vh;
}

.cn-main {
    display: block;
    flex: 1 0 auto;
}

.cn-muted {
    color: var(--cn-muted);
}

/* Header — blu mare brand (#234152) */
.cn-header.cn-header--lento {
    background: var(--cn-header-bg);
    border-bottom: 1px solid var(--cn-header-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 24px rgba(12, 22, 26, 0.16);
}

.cn-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 0;
}

.cn-header__brand {
    flex: 1 1 auto;
    min-width: 0;
}

/* Toggle hamburger — solo mobile */
.cn-header__toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cn-header__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.cn-header__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cn-header__toggle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.cn-header__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.cn-header.is-menu-open .cn-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.cn-header.is-menu-open .cn-header__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
}

.cn-header.is-menu-open .cn-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Wrapper: su desktop “trasparente” al flex; su mobile pannello a scomparsa verso il basso */
.cn-header__nav-shell {
    display: contents;
}

.cn-header__logo--brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.cn-header__logo-img {
    height: 44px;
    width: auto;
    max-width: min(240px, 58vw);
    display: block;
}

.cn-header__nav .cn-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.cn-header.cn-header--lento .cn-header__nav .cn-menu a {
    text-decoration: none;
    color: var(--cn-header-link);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.cn-header.cn-header--lento .cn-header__nav .cn-menu a:hover {
    color: var(--cn-header-link-hover);
}

.cn-header.cn-header--lento .cn-header__nav .cn-menu-cta > a {
    white-space: nowrap;
}

/* CTA su header mare: pill chiara */
.cn-header.cn-header--lento .cn-menu-cta > a {
    background: var(--cn-bg) !important;
    color: var(--cn-primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cn-header.cn-header--lento .cn-menu-cta > a:hover {
    background: #ffffff !important;
    color: var(--cn-primary) !important;
}

/* Desktop: sottomenu a comparsa */
@media (min-width: 768px) {
    .cn-header__nav .cn-menu > li.menu-item-has-children {
        position: relative;
    }

    .cn-header__nav .cn-menu .sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 8px 0;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--cn-header-panel-bg);
        border: 1px solid var(--cn-header-border);
        border-radius: var(--cn-radius);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
        z-index: 210;
    }

    .cn-header__nav .cn-menu li:hover > .sub-menu,
    .cn-header__nav .cn-menu li:focus-within > .sub-menu {
        display: block;
    }

    .cn-header__nav .cn-menu .sub-menu a {
        display: block;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .cn-header__nav .cn-menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
    }
}

/* Mobile: hamburger + pannello sotto la barra */
@media (max-width: 767.98px) {
    .cn-header__inner {
        gap: 10px 12px;
        padding: 10px 12px;
    }

    .cn-header__logo-img {
        height: 38px;
        max-width: min(210px, 62vw);
    }

    .cn-header__toggle {
        display: inline-flex;
    }

    .cn-header__nav-shell {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease-out, border-color 0.2s ease;
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        min-width: 0;
        border-top: 1px solid transparent;
        box-sizing: border-box;
    }

    .cn-header.is-menu-open .cn-header__nav-shell {
        grid-template-rows: 1fr;
        border-top-color: var(--cn-header-border);
        margin-top: 2px;
        padding-right: 1px;
    }

    .cn-header__nav {
        overflow: hidden;
        min-height: 0;
        background: var(--cn-header-panel-bg);
        border-radius: 0 0 var(--cn-radius) var(--cn-radius);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cn-header.is-menu-open .cn-header__nav {
        max-height: min(75vh, 560px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

    .cn-header__nav .cn-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 14px;
    }

    .cn-header__nav .cn-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cn-header__nav .cn-menu > li:last-child {
        border-bottom: none;
    }

    .cn-header.cn-header--lento .cn-header__nav .cn-menu a {
        display: block;
        padding: 14px 12px;
        font-size: 0.9375rem;
    }

    .cn-header.cn-header--lento .cn-header__nav .cn-menu-cta > a {
        margin: 10px 12px 14px;
        text-align: center;
        border-radius: 999px;
    }

    .cn-header__nav .cn-menu .sub-menu {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 12px;
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        margin-left: 12px;
    }

    .cn-header__nav .cn-menu .sub-menu li {
        border-bottom: none;
    }

    .cn-header.cn-header--lento .cn-header__nav .cn-menu .sub-menu a {
        padding: 10px 8px;
        font-size: 0.875rem;
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cn-header__nav-shell {
        transition-duration: 0.01ms;
    }

    .cn-header__toggle-bar {
        transition-duration: 0.01ms;
    }
}

.cn-footer {
    margin-top: auto;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(160deg, #1a3543 0%, #234152 45%, #2d4030 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cn-footer__inner {
    padding: 34px 0 20px;
}

.cn-footer__top {
    display: grid;
    grid-template-columns: 1.25fr 1fr auto;
    gap: 24px 28px;
    align-items: start;
}

.cn-footer__brand {
    max-width: 420px;
}

.cn-footer__logo-link {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
    margin-bottom: 10px;
}

.cn-footer__logo {
    width: auto;
    height: 44px;
    max-width: min(240px, 72vw);
    display: block;
}

.cn-footer__title {
    margin: 0 0 8px;
    font-family: var(--cn-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.cn-footer__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cn-footer__menu {
    justify-self: center;
}

.cn-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cn-footer-menu a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.cn-footer-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

.cn-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cn-footer-social__link {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cn-footer-social__link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.cn-footer-social__link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.cn-footer__funding {
    margin-top: 28px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    justify-content: center;
}

.cn-footer__funding-img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
}

@media (max-width: 620px) {
    .cn-footer__funding {
        padding: 12px 10px;
        border-radius: 10px;
    }
}

.cn-footer__bottom {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cn-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 920px) {
    .cn-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .cn-footer__social {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .cn-footer__top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cn-footer__menu {
        justify-self: start;
    }
}

.cn-pagination {
    margin-top: 24px;
}

.cn-pagination .nav-links {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cn-module-stack {
    margin-bottom: 24px;
}

.cn-module-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    font-family: var(--cn-font-display);
    letter-spacing: -0.02em;
}

.cn-module-title a {
    color: var(--cn-primary);
    text-decoration: none;
}

.cn-module-title a:hover {
    text-decoration: underline;
}

.cn-skip-link:focus {
    position: fixed;
    left: 8px;
    top: 8px;
    z-index: 100000;
    padding: 12px 16px;
    background: var(--cn-primary);
    color: #fff;
    clip: auto;
    height: auto;
    width: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.cn-area {
    font-family: var(--cn-font);
    background: var(--cn-bg);
    color: var(--cn-text);
    padding: 32px;
}

.cn-container {
    max-width: 1100px;
    margin: 0 auto;
}

.cn-card {
    background: var(--cn-card-bg);
    border-radius: var(--cn-radius);
    box-shadow: var(--cn-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.cn-title {
    font-family: var(--cn-font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--cn-primary);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.cn-subtitle {
    font-size: 16px;
    color: var(--cn-muted);
    margin-bottom: 24px;
}

.cn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: var(--cn-primary);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cn-btn:hover {
    background: var(--cn-primary-light);
}

.cn-btn-outline {
    background: transparent;
    border: 1px solid var(--cn-primary);
    color: var(--cn-primary);
}

.cn-btn-outline:hover {
    background: var(--cn-primary);
    color: #ffffff;
}

.cn-field {
    margin-bottom: 18px;
}

.cn-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--cn-muted);
}

.cn-field input,
.cn-field textarea,
.cn-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--cn-border);
    font-size: 14px;
    background: #ffffff;
}

.cn-field input:focus,
.cn-field textarea:focus,
.cn-field select:focus {
    outline: none;
    border-color: var(--cn-primary);
}

.cn-table {
    width: 100%;
    border-collapse: collapse;
}

.cn-table th {
    text-align: left;
    font-size: 13px;
    color: var(--cn-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cn-border);
}

.cn-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--cn-border);
    font-size: 14px;
}

.cn-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--cn-bg-soft);
    color: var(--cn-accent-earth);
}

.cn-alert {
    padding: 16px 20px;
    border-radius: var(--cn-radius);
    background: var(--cn-bg-soft);
    color: var(--cn-terra);
    border: 1px solid rgba(45, 64, 48, 0.12);
    font-size: 14px;
    margin-bottom: 20px;
}

.cn-menu-cta > a {
    background: var(--cn-primary) !important;
    color: #fff !important;
    padding: 0 16px !important;
    height: 36px;
    line-height: 36px;
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 28px rgba(35, 65, 82, 0.22);
    transition: all 0.18s ease;
}

.cn-menu-cta > a:hover {
    background: var(--cn-primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(35, 65, 82, 0.28);
}

@media (max-width: 980px) {
    .cn-menu-cta > a {
        justify-content: center;
        width: 100%;
    }
}

/* Moduli — layout ripresi dagli inline di cyberneid-moduli */
.cn-creator-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 980px) {
    .cn-creator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .cn-creator-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Archivio pubblico eventi (archive-evento.php / [cn_archivio_eventi]) */
.cn-events-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cn-events-archive__thumb {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cn-events-archive__pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--cn-border);
    font-size: 13px;
    font-weight: 600;
}

.cn-events-archive__pager .page-numbers.current {
    background: var(--cn-primary);
    color: #fff;
    border-color: var(--cn-primary);
}

@media (max-width: 980px) {
    .cn-events-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cn-events-archive__grid {
        grid-template-columns: 1fr;
    }
}

.cn-creator-card-host {
    padding: 18px;
    margin: 0;
    height: 100%;
    box-shadow: var(--cn-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cn-feed-item {
    padding: 22px;
}

.cn-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cn-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cn-muted);
    margin-bottom: 8px;
}

.cn-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cn-media-panel {
    padding: 18px;
    margin: 0 0 18px;
    border: 1px solid var(--cn-border);
    box-shadow: none;
}

.cn-media-embed {
    width: 100%;
}

.cn-media-embed__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.cn-media-embed__frame iframe,
.cn-media-embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 12px;
}

.cn-media-embed--video .cn-media-embed__frame {
    aspect-ratio: 16 / 9;
}

.cn-media-embed--video .cn-media-embed__frame iframe,
.cn-media-embed--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cn-media-embed--audio .cn-media-embed__frame {
    min-height: 152px;
}

.cn-media-embed--audio iframe {
    min-height: 152px;
}

.cn-prose {
    line-height: 1.75;
    font-size: 15px;
}

.cn-card-flat {
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.cn-card-muted-border {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--cn-border);
    border-radius: 12px;
    box-shadow: none;
}

.cn-heading-lg {
    font-size: 20px;
    font-weight: 700;
    color: var(--cn-primary);
    margin: 0 0 8px;
}

.cn-text-lead {
    color: var(--cn-muted);
    font-size: 14px;
    line-height: 1.7;
}

.cn-creator-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cn-creator-card:hover .cn-creator-card-host {
    transform: translateY(-2px);
    transition: transform 0.18s ease;
}

.cn-creator-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid var(--cn-border);
    background: #fff;
    margin-bottom: 14px;
}

.cn-creator-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cn-creator-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--cn-primary);
    margin-bottom: 6px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cn-creator-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cn-badge--inline {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.cn-creator-card-footer {
    margin-top: auto;
    width: 100%;
}

.cn-btn--block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Singolo evento */
.cn-event-single .cn-event-article {
    overflow: hidden;
}

.cn-event-hero {
    margin: -1px -1px 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: var(--cn-border);
}

.cn-event-hero__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.cn-event-header {
    padding: 18px 18px 0;
}

.cn-event-rsvp {
    margin-top: 8px;
    padding: 18px;
}

.cn-event-rsvp__form .cn-field {
    margin-bottom: 14px;
}

.cn-event-flash--ok {
    margin: 0 18px;
}

/* -------------------------------------------------------------------------
   Dashboard creator ([cn_area_riservata])
------------------------------------------------------------------------- */

.cn-dash {
    padding-top: 8px;
}

.cn-dash__container {
    max-width: 1120px;
}

.cn-dash .cn-card {
    margin-bottom: 20px;
}

.cn-dash__hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, var(--cn-bg-soft) 48%, rgba(35, 65, 82, 0.06) 100%);
    border: 1px solid var(--cn-border);
    box-shadow: var(--cn-shadow);
    padding: clamp(20px, 3vw, 28px);
}

.cn-dash__hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -18%;
    width: min(52vw, 420px);
    height: min(52vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(35, 65, 82, 0.12), transparent 68%);
    pointer-events: none;
}

.cn-dash__hero-top {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px 28px;
}

.cn-dash__hero-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 22px;
    min-width: 0;
    flex: 1 1 280px;
}

.cn-dash__avatar-wrap {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(35, 65, 82, 0.18);
    background: #fff;
}

.cn-dash__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cn-dash__hero-text {
    min-width: 0;
    flex: 1 1 220px;
}

.cn-dash__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cn-muted);
}

.cn-dash__welcome {
    margin: 0 0 10px;
    font-family: var(--cn-font-display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cn-primary);
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cn-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.cn-author-name-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.cn-author-name-with-badge__text {
    min-width: 0;
}

.cn-creator-card.is-primary-creator .cn-creator-card-host {
    border-color: rgba(29, 155, 240, 0.38);
    background: linear-gradient(180deg, #fff 0%, rgba(29, 155, 240, 0.07) 100%);
    box-shadow: 0 16px 40px rgba(29, 155, 240, 0.12);
}

.cn-creator-card.is-primary-creator .cn-creator-avatar-wrap {
    box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.28);
}

.cn-dash--primary-creator .cn-dash__hero {
    background: linear-gradient(135deg, #fff 0%, rgba(29, 155, 240, 0.1) 40%, rgba(35, 65, 82, 0.08) 100%);
    border-color: rgba(29, 155, 240, 0.34);
    box-shadow: 0 20px 52px rgba(29, 155, 240, 0.14);
}

.cn-dash--primary-creator .cn-dash__hero::before {
    background: radial-gradient(circle at 30% 30%, rgba(29, 155, 240, 0.18), transparent 68%);
}

.cn-dash--primary-creator .cn-dash__avatar-wrap {
    box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.38), 0 12px 32px rgba(35, 65, 82, 0.18);
}

.cn-dash--primary-creator .cn-dash__eyebrow {
    color: #1a7ec7;
}

.cn-dash--primary-creator .cn-dash__role {
    background: rgba(29, 155, 240, 0.12);
    color: #1565a8;
    border: 1px solid rgba(29, 155, 240, 0.24);
}

.cn-dash--primary-creator .cn-dash__lane--media {
    border-color: rgba(29, 155, 240, 0.22);
    background: linear-gradient(180deg, #fff 0%, rgba(29, 155, 240, 0.04) 100%);
}

.cn-dash__roleline {
    margin: 0 0 12px;
}

.cn-dash__role {
    font-size: 12px;
    font-weight: 700;
}

.cn-dash__bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cn-muted);
    max-width: 40rem;
}

/* Due colonne: contenuti multimediali | eventi */
.cn-dash__lanes {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    margin-top: 6px;
}

@media (min-width: 920px) {
    .cn-dash__lanes {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.cn-dash__lane {
    margin-bottom: 0 !important;
    padding: 22px 22px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
}

.cn-dash__lane--media {
    border-left: 5px solid var(--cn-primary);
    box-shadow: 0 12px 40px rgba(35, 65, 82, 0.08);
}

.cn-dash__lane--events {
    border-left: 5px solid var(--cn-terra);
    box-shadow: 0 12px 40px rgba(45, 64, 48, 0.07);
}

.cn-dash__lane-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cn-border);
}

.cn-dash__lane-title {
    margin: 0 0 8px;
    font-family: var(--cn-font-display);
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--cn-primary);
    letter-spacing: -0.02em;
}

.cn-dash__lane--events .cn-dash__lane-title {
    color: var(--cn-terra);
}

.cn-dash__lane-lead {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--cn-muted);
}

.cn-dash__lane-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: baseline;
}

.cn-dash__lane-stat {
    font-size: 13px;
    color: var(--cn-muted);
    font-weight: 600;
}

.cn-dash__lane-stat-n {
    font-family: var(--cn-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cn-text);
    margin-right: 4px;
}

.cn-dash__lane-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cn-dash__lane-subheading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cn-muted);
}

.cn-dash__lane-empty {
    padding: 16px 0 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cn-muted);
}

.cn-dash__lane-empty p {
    margin: 0 0 14px;
}

.cn-dash__hint--inlane {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--cn-bg-soft);
    border: 1px dashed var(--cn-border);
}

.cn-dash__lane-archive {
    margin: 14px 0 0;
}

.cn-dash__feed--compact {
    gap: 10px;
}

.cn-dash__feed-item--lane {
    padding: 14px 16px !important;
    margin-bottom: 0 !important;
}

.cn-dash__feed-item--lane .cn-dash__feed-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.cn-dash__feed-pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cn-sage);
    background: var(--cn-bg-soft);
    padding: 4px 8px;
    border-radius: 6px;
}

.cn-dash__account {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 1 220px;
    align-items: stretch;
}

.cn-dash__account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    border: 1px solid transparent;
}

.cn-dash__account-btn:focus-visible {
    outline: 2px solid var(--cn-primary);
    outline-offset: 2px;
}

.cn-dash__account-btn--solid {
    background: var(--cn-primary);
    color: #fff;
    border-color: var(--cn-primary);
}

.cn-dash__account-btn--solid:hover {
    background: var(--cn-primary-light);
    border-color: var(--cn-primary-light);
    color: #fff;
}

.cn-dash__account-btn--ghost {
    background: rgba(255, 255, 255, 0.65);
    color: var(--cn-primary);
    border-color: var(--cn-border);
}

.cn-dash__account-btn--ghost:hover {
    background: #fff;
    border-color: var(--cn-primary);
    color: var(--cn-primary);
}

.cn-dash__stats {
    position: relative;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .cn-dash__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cn-dash__stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--cn-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(35, 65, 82, 0.06);
}

.cn-dash__stat-value {
    display: block;
    font-family: var(--cn-font-display);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--cn-primary);
    line-height: 1.1;
}

.cn-dash__stat-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cn-muted);
}

.cn-dash__section {
    margin-top: 8px;
    margin-bottom: 8px;
}

.cn-dash__section-head {
    margin-bottom: 16px;
}

.cn-dash__section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
}

.cn-dash__section-title {
    margin: 0 0 6px;
    font-family: var(--cn-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cn-primary);
    letter-spacing: -0.02em;
}

.cn-dash__section-lead {
    margin: 0;
    font-size: 14px;
    color: var(--cn-muted);
    line-height: 1.55;
    max-width: 36rem;
}

.cn-dash__actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .cn-dash__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .cn-dash__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cn-dash__actions-item--wide {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .cn-dash__actions-item--wide {
        grid-column: span 2;
    }
}

.cn-dash__action {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    min-height: 100%;
    padding: 18px 18px 18px 16px;
    border-radius: var(--cn-radius);
    border: 1px solid var(--cn-border);
    background: var(--cn-card-bg);
    box-shadow: 0 8px 26px rgba(35, 65, 82, 0.07);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cn-dash__action:hover {
    border-color: rgba(35, 65, 82, 0.28);
    box-shadow: 0 14px 36px rgba(35, 65, 82, 0.12);
    transform: translateY(-2px);
}

.cn-dash__action:focus-visible {
    outline: 2px solid var(--cn-primary);
    outline-offset: 3px;
}

.cn-dash__action--primary {
    background: linear-gradient(135deg, var(--cn-primary) 0%, var(--cn-primary-light) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 36px rgba(35, 65, 82, 0.28);
}

.cn-dash__action--primary:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(35, 65, 82, 0.35);
}

.cn-dash__action--primary .cn-dash__action-title {
    color: #fff;
}

.cn-dash__action--primary .cn-dash__action-desc {
    color: rgba(255, 255, 255, 0.88);
}

.cn-dash__action--primary .cn-dash__action-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.cn-dash__action-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cn-bg-soft);
    color: var(--cn-primary);
    border: 1px solid var(--cn-border);
}

.cn-dash__action-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cn-dash__action-title {
    font-family: var(--cn-font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cn-primary);
    line-height: 1.25;
}

.cn-dash__action-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cn-muted);
}

.cn-dash__hint {
    margin-top: 18px;
    padding: 18px 20px;
}

.cn-dash__hint-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--cn-muted);
    line-height: 1.6;
}

.cn-dash__hint-text:last-child {
    margin-bottom: 0;
}

.cn-dash__feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cn-dash__feed-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    padding: 18px 20px !important;
    margin-bottom: 0 !important;
}

.cn-dash__feed-main {
    flex: 1 1 220px;
    min-width: 0;
}

.cn-dash__feed-title {
    margin: 0 0 10px;
    font-family: var(--cn-font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cn-primary);
    line-height: 1.3;
}

.cn-dash__feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.cn-dash__feed-date {
    font-size: 13px;
    color: var(--cn-muted);
    font-weight: 600;
}

.cn-dash__feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.cn-dash__feed-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
}

.cn-dash__empty {
    text-align: center;
    padding: 32px 24px !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cn-dash__empty-title {
    margin: 0 0 10px;
    font-family: var(--cn-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cn-primary);
}

.cn-dash__empty-text {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--cn-muted);
    line-height: 1.65;
}

.cn-feed-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 28px 0 8px;
    text-align: center;
}

.cn-feed-load-more.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.cn-feed-load-more-status {
    font-size: 13px;
    color: var(--cn-muted);
    font-weight: 600;
}

.cn-feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Instagram embed (shortcode cn_instagram) */
.cn-instagram-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--cn-border);
}

.cn-instagram-embed {
    width: 100%;
    max-width: none;
    margin: 0;
}

.cn-instagram-embed__header {
    text-align: center;
    margin-bottom: 20px;
}

.cn-instagram-embed__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cn-muted);
}

.cn-instagram-embed__profile {
    display: inline-block;
    font-family: var(--cn-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cn-primary);
    text-decoration: none;
}

.cn-instagram-embed__profile:hover {
    color: var(--cn-primary-light);
    text-decoration: underline;
}

.cn-instagram-embed__frame-wrap {
    overflow: hidden;
    border-radius: var(--cn-radius);
    border: 1px solid var(--cn-border);
    background: var(--cn-card-bg);
    box-shadow: var(--cn-shadow);
}

.cn-instagram-embed__iframe {
    display: block;
    width: 100%;
    min-height: var(--cn-ig-embed-height, 868px);
    border: 0;
    background: #fff;
}
