* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background: #0f1013;
    color: #eeeeef;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.forum-topbar {
    height: 62px;

    display: flex;
    align-items: center;

    padding: 0 26px;

    border-bottom: 1px solid #2b2e34;

    background: #15161a;
}

.forum-brand {
    color: #fff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .18em;

    text-decoration: none;
}

.forum-section {
    margin-left: 20px;

    color: #959aa4;

    font-size: 14px;
}

.forum-shell {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(340px, .8fr);

    gap: 72px;

    align-items: center;

    min-height: calc(100vh - 126px);

    padding: 52px 0;
}

.forum-intro {
    max-width: 630px;
}

.eyebrow {
    margin: 0 0 14px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .2em;
}

.forum-intro h1 {
    margin: 0;

    max-width: 620px;

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.05;

    letter-spacing: -.035em;
}

.intro-copy {
    margin-top: 24px;

    max-width: 570px;

    color: #b8bbc3;

    font-size: 18px;

    line-height: 1.6;
}

.privacy-note {
    margin-top: 36px;

    max-width: 560px;

    padding: 18px 20px;

    border: 1px solid #30333a;
    border-radius: 9px;

    background: #17191e;
}

.privacy-note strong {
    font-size: 14px;
}

.privacy-note p {
    margin:
        8px
        0
        0;

    color: #9da1aa;

    line-height: 1.55;

    font-size: 13px;
}

.auth-card {
    padding: 27px;

    border: 1px solid #33363e;
    border-radius: 12px;

    background: #181a1f;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 5px;

    padding: 4px;

    border-radius: 8px;

    background: #111216;
}

.auth-tab {
    padding: 9px 12px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #8f949e;

    cursor: pointer;
}

.auth-tab.active {
    background: #272a30;
    color: #fff;
}

.auth-panel {
    display: none;

    padding-top: 23px;
}

.auth-panel.active {
    display: block;
}

.auth-panel h2 {
    margin: 0;

    font-size: 24px;
}

.muted {
    color: #989da7;

    font-size: 13px;

    line-height: 1.5;
}

.auth-panel form {
    display: grid;

    gap: 14px;

    margin-top: 22px;
}

.auth-panel label {
    display: grid;

    gap: 7px;

    color: #c4c7cd;

    font-size: 12px;
}

.auth-panel input {
    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid #3a3d45;
    border-radius: 7px;

    outline: none;

    background: #101115;
    color: #fff;

    font-size: 15px;
}

.auth-panel input:focus {
    border-color: #777d88;
}

.primary-button {
    min-height: 43px;

    margin-top: 5px;

    border: 0;
    border-radius: 7px;

    background: #e8e8e8;
    color: #111216;

    font-weight: 750;
}

.primary-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.text-button {
    border: 0;

    background: transparent;
    color: #8f949e;

    font-size: 12px;
}

.verification-preview,
.wiring-note {
    margin-top: 17px;

    padding: 11px 12px;

    border: 1px solid #30333a;
    border-radius: 7px;

    background: #131419;

    color: #969ba5;

    font-size: 12px;

    line-height: 1.45;
}

.wiring-note {
    border-style: dashed;
}

.forum-footer {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 26px;

    border-top: 1px solid #202228;

    color: #70757f;

    font-size: 11px;
}

@media (max-width: 820px) {

    .forum-shell {
        grid-template-columns: 1fr;

        gap: 36px;

        align-items: start;

        padding-top: 38px;
    }

    .forum-intro h1 {
        font-size: 42px;
    }

}

@media (max-width: 520px) {

    .forum-shell {
        width: min(
            100% - 24px,
            1100px
        );
    }

    .forum-topbar {
        padding: 0 16px;
    }

    .forum-footer {
        padding: 16px;

        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 20px;
    }

}

/* PERCEPIBILE_FORUM_PUBLIC_NOTICE_V1 */

.forum-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    line-height: 1.45;
    font-size: .94rem;
}

.forum-notice-success {
    border-color: rgba(122, 214, 162, .38);
}

.forum-notice-error {
    border-color: rgba(238, 131, 131, .40);
}

.forum-notice-info {
    border-color: rgba(145, 180, 230, .35);
}

/* PERCEPIBILE_FORUM_AUTHENTICATED_PANEL_CSS_V1 */

.authenticated-panel {
    padding: 8px 0 2px;
}

.authenticated-eyebrow {
    margin-bottom: 8px;
    font-size: .84rem;
    opacity: .72;
}

.authenticated-nickname {
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
}

.authenticated-copy {
    margin-bottom: 22px;
}

/* PERCEPIBILE_FORUM_DISCUSSIONS_CSS_V1 */

.forum-discussions {
    width: min(900px, 100%);
    margin: 34px auto 0;
}

.forum-discussions-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.forum-section-kicker {
    margin-bottom: 5px;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .55;
}

.forum-discussions-head h2 {
    margin: 0;
}

.forum-new-topic-button,
.forum-secondary-button,
.forum-back-link {
    text-decoration: none;
}

.forum-new-topic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: inherit;
}

.forum-topic-list {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.forum-topic-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.forum-topic-row:last-child {
    border-bottom: 0;
}

.forum-topic-title {
    margin-bottom: 6px;
    font-size: 1.04rem;
    font-weight: 650;
}

.forum-topic-meta,
.forum-topic-last {
    font-size: .82rem;
    opacity: .62;
}

.forum-topic-side {
    min-width: 180px;
    text-align: right;
    font-size: .86rem;
}

.forum-topic-last {
    margin-top: 5px;
}

.forum-empty-state {
    padding: 30px 24px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.forum-empty-title {
    margin-bottom: 7px;
    font-size: 1.06rem;
    font-weight: 650;
}

.forum-empty-state p {
    margin: 0 0 18px;
    opacity: .67;
}

.forum-compose-card {
    width: min(760px, 100%);
    margin: 28px auto 0;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.forum-compose-author {
    margin-bottom: 22px;
    font-size: 1.45rem;
    font-weight: 700;
}

.forum-compose-form {
    display: grid;
    gap: 10px;
}

.forum-compose-form label {
    margin-top: 8px;
    font-size: .88rem;
    opacity: .72;
}

.forum-compose-form input,
.forum-compose-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    color: inherit;
    font: inherit;
}

.forum-compose-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.forum-compose-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.forum-secondary-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: inherit;
    opacity: .72;
}

.forum-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.forum-back-link {
    margin-top: 8px;
    color: inherit;
    opacity: .68;
}

@media (max-width: 700px) {
    .forum-discussions-head,
    .forum-topic-row,
    .forum-header {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-topic-side {
        min-width: 0;
        text-align: left;
    }

    .forum-new-topic-button {
        align-self: flex-start;
    }
}

/* PERCEPIBILE_FORUM_TOPIC_REPLIES_CSS_V1 */

.forum-topic-title-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.forum-topic-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forum-topic-shell {
    width: min(900px, calc(100% - 32px));
}

.forum-topic-header-label {
    margin-top: 34px;
    margin-bottom: 7px;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .55;
}

.forum-topic-page-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.12;
}

.forum-topic-page-meta {
    margin-top: 10px;
    font-size: .86rem;
    opacity: .62;
}

.forum-post-list {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.forum-post-card {
    padding: 21px 22px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.forum-post-initial {
    border-color: rgba(255,255,255,.16);
}

.forum-post-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.forum-post-author {
    font-size: .94rem;
}

.forum-post-date {
    font-size: .78rem;
    opacity: .55;
}

.forum-post-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.62;
}

.forum-reply-card,
.forum-login-to-reply {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.forum-reply-heading {
    margin-bottom: 14px;
    font-size: .9rem;
    opacity: .75;
}

.forum-reply-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    color: inherit;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.forum-reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.forum-login-to-reply p {
    margin: 8px 0 18px;
    opacity: .68;
}

@media (max-width: 700px) {
    .forum-post-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_SOCIAL_FEED_CSS_V8A
   ================================================================ */

.social-forum-body {
    margin: 0;
    min-height: 100vh;
    background: #0d0f12;
}

.social-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 62px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    background: rgba(15, 17, 21, 0.97);
    border-bottom: 1px solid #2c3037;
    backdrop-filter: blur(10px);
}

.social-brand {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.18em;
    font-size: 13px;
}

.social-section,
.social-current-user {
    color: #aeb7c5;
}

.social-topbar-spacer {
    flex: 1;
}

.social-topbar-button {
    appearance: none;
    border: 1px solid #363b44;
    border-radius: 8px;
    background: #1a1d22;
    color: #e7ebf1;
    padding: 8px 13px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.social-logout-form {
    margin: 0;
}

.social-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 70px;
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
    gap: 26px;
    align-items: start;
}

.social-feed-column,
.social-side-column {
    min-width: 0;
}

.social-side-column {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 18px;
}

.social-intro-card,
.social-compose-prompt,
.social-filter-banner,
.social-post-card,
.social-empty-card,
.social-side-card,
.social-reply-card,
.social-locked-content {
    border: 1px solid #30343c;
    background: #171a1f;
    border-radius: 14px;
    box-sizing: border-box;
}

.social-intro-card {
    padding: 28px 30px;
    margin-bottom: 18px;
}

.social-eyebrow,
.social-side-kicker {
    color: #9da8b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 700;
}

.social-intro-card h1 {
    margin: 9px 0 8px;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.08;
}

.social-intro-card p {
    margin: 0;
    color: #abb5c4;
    line-height: 1.6;
}

.social-compose-prompt {
    padding: 18px 20px;
    margin-bottom: 18px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.social-compose-label {
    color: #9ca7b7;
    font-size: 13px;
    margin-bottom: 5px;
}

.social-compose-label strong {
    color: #f2f4f7;
}

.social-compose-question {
    color: #f2f4f7;
    font-size: 17px;
}

.social-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 17px;
    border-radius: 8px;
    background: #ececec;
    color: #111318;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.social-filter-banner {
    margin-bottom: 18px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #bac3cf;
}

.social-filter-banner strong {
    color: #ffffff;
}

.social-filter-banner a {
    color: #cbd4e1;
}

.social-feed-heading {
    margin: 24px 2px 12px;
    color: #939eae;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.social-feed {
    display: grid;
    gap: 15px;
}

.social-post-card {
    padding: 20px 22px 16px;
}

.social-post-header {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 13px;
    font-size: 13px;
}

.social-post-author {
    color: #f1f3f6;
    font-weight: 700;
    text-decoration: none;
}

.social-post-author:hover {
    text-decoration: underline;
}

.social-post-anonymous,
.social-post-date,
.social-post-separator {
    color: #8e99a9;
}

.social-post-title {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 750;
    font-size: 20px;
    line-height: 1.28;
    text-decoration: none;
}

.social-post-title:hover {
    text-decoration: underline;
}

.social-post-body {
    color: #d1d7e0;
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.social-post-preview {
    color: #c0c8d4;
}

.social-read-gate {
    display: inline-block;
    margin-top: 14px;
    color: #cbd5e4;
    font-size: 13px;
    font-weight: 600;
}

.social-post-footer {
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #2b3037;
    display: flex;
    align-items: center;
    gap: 22px;
}

.social-post-stat {
    color: #919dac;
    text-decoration: none;
    font-size: 13px;
}

a.social-post-stat:hover {
    color: #d5dbe4;
}

.social-like-placeholder {
    opacity: 0.72;
}

.social-side-card {
    padding: 20px;
}

.social-side-card p {
    color: #a7b1bf;
    line-height: 1.55;
}

.social-side-nickname {
    margin-top: 7px;
    color: #fff;
    font-size: 23px;
    font-weight: 750;
}

.social-side-muted {
    font-size: 13px;
}

.social-auth-card .auth-tabs {
    margin-bottom: 20px;
}

.social-auth-card .auth-panel {
    padding: 0;
}

.social-auth-card .auth-panel h2 {
    margin-top: 0;
    font-size: 22px;
}

.social-verification-note {
    margin: 16px 0 0;
    font-size: 13px;
}

.social-principle-card strong {
    color: #fff;
}

.social-empty-card {
    padding: 28px;
    color: #9da8b7;
    text-align: center;
}

.social-topic-layout {
    width: min(780px, calc(100% - 32px));
    margin: 30px auto 70px;
}

.social-topic-main {
    margin-bottom: 20px;
}

.social-topic-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.16;
}

.social-topic-body {
    font-size: 16px;
}

.social-locked-content {
    margin-top: 22px;
    padding: 20px;
}

.social-locked-content strong {
    color: #fff;
}

.social-locked-content p {
    margin: 8px 0 16px;
    color: #aab4c2;
    line-height: 1.55;
}

.social-replies {
    margin-top: 24px;
}

.social-replies h2 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 12px;
}

.social-reply-card {
    padding: 17px 19px;
    margin-bottom: 11px;
}

.social-reply-compose {
    margin-top: 20px;
}

@media (max-width: 900px) {
    .social-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-side-column {
        position: static;
    }
}

@media (max-width: 620px) {
    .social-topbar {
        padding: 0 14px;
        gap: 11px;
    }

    .social-current-user {
        display: none;
    }

    .social-layout {
        width: min(100% - 18px, 760px);
        margin-top: 14px;
    }

    .social-intro-card,
    .social-post-card,
    .social-side-card {
        border-radius: 11px;
    }

    .social-intro-card {
        padding: 22px 18px;
    }

    .social-post-card {
        padding: 18px 16px 14px;
    }

    .social-compose-prompt {
        align-items: flex-start;
    }

    .social-post-footer {
        gap: 16px;
    }

    .social-topic-layout {
        width: calc(100% - 18px);
        margin-top: 14px;
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_LAKE_THEME_V8A3

   Nuova identità visiva Percepibile Forum.
   ================================================================ */

html {
    min-height: 100%;
    background: #10161f;
}

body.social-forum-body,
.social-forum-body {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            rgba(10, 17, 27, .34) 0%,
            rgba(8, 15, 24, .50) 55%,
            rgba(6, 12, 20, .62) 100%
        ),
        url("/forum/static/percepibile-forum-background.png")
        center center / cover fixed no-repeat;

    color: #edf3f8;
}


/* Barra superiore in vetro scuro. */

.social-topbar {
    background: rgba(10, 15, 23, .72) !important;

    border-bottom:
        1px solid rgba(219, 231, 242, .13) !important;

    -webkit-backdrop-filter:
        blur(15px) saturate(1.08);

    backdrop-filter:
        blur(15px) saturate(1.08);
}


/* Contenitore generale: lasciamo respirare il paesaggio. */

.social-shell {
    background: transparent !important;
}


/* Card principali. */

.social-intro-card,
.social-compose-prompt,
.social-filter-banner,
.social-post-card,
.social-empty-card,
.social-side-card,
.social-reply-card,
.social-locked-content {
    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 40, .78),
            rgba(13, 21, 31, .72)
        ) !important;

    border:
        1px solid rgba(214, 228, 241, .17) !important;

    box-shadow:
        0 22px 55px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .035);

    -webkit-backdrop-filter:
        blur(15px) saturate(1.05);

    backdrop-filter:
        blur(15px) saturate(1.05);
}


/* Titolo principale più morbido rispetto al nero assoluto. */

.social-intro-card h1,
.social-post-card h1,
.social-post-card h2,
.social-side-card h2,
.social-side-card h3 {
    color: #f5f7fa;
}


/* Testi secondari. */

.social-intro-card p,
.social-post-meta,
.social-post-preview,
.social-post-body,
.social-side-card p,
.social-reply-card,
.social-empty-card {
    color: rgba(226, 235, 244, .82);
}


/* Campi login/registrazione. */

.social-side-card input,
.social-side-card textarea,
.social-side-card select {
    background: rgba(237, 243, 250, .93);
    border-color: rgba(255, 255, 255, .24);
}


/* Pulsanti e tab meno duri. */

.social-side-card button,
.social-topbar a,
.social-compose-prompt {
    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}


/* Evitiamo l'effetto background-fixed problematico su mobile. */

@media (max-width: 900px) {
    body.social-forum-body,
    .social-forum-body {
        background-attachment: scroll;
        background-position: center top;
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_LAKE_THEME_V8A4

   Background robusto a layer separati.
   L'immagine non dipende più dalla shorthand background del body.
   ================================================================ */

body.social-forum-body {
    position: relative;
    isolation: isolate;

    min-height: 100vh;

    background: #0b1119 !important;
    color: #edf3f8;
}


/*
 * Fotografia vera e propria.
 *
 * Layer fisso indipendente da tutti i contenitori del Forum.
 */

body.social-forum-body::before {
    content: "";

    position: fixed;
    z-index: -2;

    inset: 0;

    pointer-events: none;

    background-image:
        url("/forum/static/percepibile-forum-background.png");

    background-position:
        center center;

    background-size:
        cover;

    background-repeat:
        no-repeat;
}


/*
 * Velo scuro separato dalla fotografia.
 *
 * Abbastanza leggero da lasciare riconoscibile il paesaggio,
 * ma sufficiente per mantenere leggibili le superfici del Forum.
 */

body.social-forum-body::after {
    content: "";

    position: fixed;
    z-index: -1;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(7, 13, 21, .22) 0%,
            rgba(7, 13, 21, .38) 52%,
            rgba(5, 10, 17, .52) 100%
        );
}


/* ---------------------------------------------------------------
   TOPBAR
   --------------------------------------------------------------- */

.social-topbar {
    background:
        rgba(10, 16, 24, .68) !important;

    border-bottom:
        1px solid rgba(225, 235, 245, .16) !important;

    -webkit-backdrop-filter:
        blur(16px) saturate(1.08);

    backdrop-filter:
        blur(16px) saturate(1.08);
}


/* ---------------------------------------------------------------
   LAYOUT
   --------------------------------------------------------------- */

.social-layout,
.social-feed-column,
.social-side-column,
.social-feed {
    background:
        transparent !important;
}


/* ---------------------------------------------------------------
   SUPERFICI
   --------------------------------------------------------------- */

.social-intro-card,
.social-compose-prompt,
.social-filter-banner,
.social-post-card,
.social-empty-card,
.social-side-card,
.social-reply-card,
.social-locked-content {
    background:
        linear-gradient(
            145deg,
            rgba(22, 31, 43, .76),
            rgba(12, 20, 30, .68)
        ) !important;

    border:
        1px solid rgba(220, 233, 245, .18) !important;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .20),
        inset 0 1px 0 rgba(255, 255, 255, .04);

    -webkit-backdrop-filter:
        blur(14px) saturate(1.06);

    backdrop-filter:
        blur(14px) saturate(1.06);
}


/* ---------------------------------------------------------------
   TESTI
   --------------------------------------------------------------- */

.social-intro-card h1,
.social-post-title,
.social-side-card h2,
.social-side-card h3 {
    color:
        #f4f7fa !important;
}

.social-intro-card p,
.social-post-meta,
.social-post-preview,
.social-post-body,
.social-side-card p,
.social-reply-card,
.social-empty-card {
    color:
        rgba(230, 238, 246, .84);
}


/* ---------------------------------------------------------------
   FORM
   --------------------------------------------------------------- */

.social-side-card input,
.social-side-card textarea,
.social-side-card select {
    background:
        rgba(244, 247, 250, .94) !important;

    border-color:
        rgba(255, 255, 255, .30) !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 900px) {

    body.social-forum-body::before,
    body.social-forum-body::after {
        position: fixed;
    }

    body.social-forum-body::before {
        background-position:
            center top;
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_ORIGINAL_LOGIN_V8A5_1

   La sidebar di autenticazione conserva integralmente
   il proprio stile originale.

   L'unica differenza è la visibilità iniziale.
   ================================================================ */

[data-guest-auth-sidebar] {
    display: none;
}

[data-guest-auth-sidebar].social-auth-visible {
    display: grid;
}


/*
 * Quando il login è nascosto il feed può restare centrato.
 */

.social-layout:has(
    > [data-guest-auth-sidebar]:not(.social-auth-visible)
) {
    grid-template-columns:
        minmax(0, 820px);

    justify-content:
        center;
}


/*
 * Quando il login viene aperto torniamo ESATTAMENTE
 * alla struttura a due colonne originale V8A.
 */

.social-layout:has(
    > [data-guest-auth-sidebar].social-auth-visible
) {
    grid-template-columns:
        minmax(0, 760px)
        minmax(280px, 340px);

    justify-content:
        initial;
}


@media (max-width: 900px) {

    .social-layout:has(
        > [data-guest-auth-sidebar].social-auth-visible
    ) {
        grid-template-columns:
            minmax(0, 1fr);
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_CENTERED_LOGIN_V8A5_3

   La card di autenticazione NON viene ridisegnata.
   È la stessa social-auth-card originale.

   Cambia soltanto il contenitore:
   - centrato;
   - fondale scuro;
   - blur del Forum;
   - chiusura cliccando fuori o con Escape.
   ================================================================ */

[data-guest-auth-sidebar].social-auth-visible {
    position: fixed !important;

    z-index: 1000;

    inset: 0 !important;

    top: 0 !important;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;

    padding:
        max(20px, env(safe-area-inset-top))
        20px
        max(20px, env(safe-area-inset-bottom));

    display: grid !important;

    grid-template-columns:
        minmax(0, 370px) !important;

    align-content: center;
    justify-content: center;

    gap: 18px;

    background:
        rgba(4, 9, 16, .53);

    -webkit-backdrop-filter:
        blur(11px)
        saturate(.92);

    backdrop-filter:
        blur(11px)
        saturate(.92);

    overflow-y: auto;
}


/*
 * La card resta quella esistente.
 * Correggiamo solo eventuali dimensionamenti ereditati
 * dalla vecchia colonna laterale.
 */

[data-guest-auth-sidebar].social-auth-visible
.social-auth-card {
    width: 100%;

    margin: 0;

    box-sizing: border-box;
}


/*
 * Eventuali notice di autenticazione restano sopra la card
 * e con la stessa larghezza.
 */

[data-guest-auth-sidebar].social-auth-visible
.forum-notice {
    width: 100%;

    box-sizing: border-box;
}


/*
 * Blocchiamo lo scroll del Forum sotto al modal.
 */

html.forum-auth-modal-open,
html.forum-auth-modal-open body {
    overflow: hidden;
}


/*
 * Con il login aperto il layout sottostante NON cambia più
 * da una colonna a due colonne: rimane fermo dietro al blur.
 */

.social-layout:has(
    > [data-guest-auth-sidebar].social-auth-visible
) {
    grid-template-columns:
        minmax(0, 820px) !important;

    justify-content:
        center !important;
}


@media (max-width: 620px) {

    [data-guest-auth-sidebar].social-auth-visible {
        padding:
            max(10px, env(safe-area-inset-top))
            10px
            max(10px, env(safe-area-inset-bottom));

        grid-template-columns:
            minmax(0, 1fr) !important;
    }
}


/* ================================================================
   PERCEPIBILE_FORUM_COMPOSER_ATTACH_EDIT_CSS_V8A6
   ================================================================ */

.forum-editor-shell {
    width:
        min(1040px, calc(100% - 36px));

    margin:
        46px auto 80px;
}


.forum-editor-card {
    padding:
        clamp(22px, 4vw, 42px);

    border:
        1px solid rgba(220, 233, 245, .18);

    border-radius:
        18px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 40, .82),
            rgba(11, 18, 27, .76)
        );

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, .24);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(1.06);

    backdrop-filter:
        blur(18px)
        saturate(1.06);
}


.forum-editor-heading {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        end;

    gap:
        24px;

    margin-bottom:
        30px;
}


.forum-editor-author {
    display:
        block;

    margin-top:
        4px;

    font-size:
        1.45rem;

    color:
        #f4f7fa;
}


.forum-editor-hint {
    max-width:
        360px;

    color:
        rgba(225, 234, 243, .62);

    text-align:
        right;

    line-height:
        1.5;
}


.forum-editor-form {
    display:
        grid;

    gap:
        13px;
}


.forum-editor-form label {
    margin-top:
        8px;

    color:
        rgba(231, 238, 245, .82);

    font-size:
        .92rem;
}


.forum-editor-form input[type="text"],
.forum-editor-form textarea {
    box-sizing:
        border-box;

    width:
        100%;

    padding:
        15px 16px;

    border:
        1px solid
        rgba(225, 235, 245, .20);

    border-radius:
        12px;

    outline:
        none;

    background:
        rgba(5, 10, 17, .38);

    color:
        #f4f7fa;

    font:
        inherit;
}


.forum-editor-form textarea {
    min-height:
        420px;

    resize:
        vertical;

    line-height:
        1.65;
}


.forum-editor-form input:focus,
.forum-editor-form textarea:focus {
    border-color:
        rgba(235, 242, 249, .60);

    box-shadow:
        0 0 0 3px
        rgba(225, 235, 245, .08);
}


.forum-attachment-picker,
.forum-existing-attachments {
    margin-top:
        18px;

    padding:
        18px;

    border:
        1px dashed
        rgba(220, 233, 245, .18);

    border-radius:
        13px;

    background:
        rgba(6, 12, 20, .20);
}


.forum-attachment-picker-head {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;
}


.forum-attachment-picker-head > div {
    display:
        grid;

    gap:
        4px;
}


.forum-attachment-picker-head span {
    color:
        rgba(220, 230, 239, .57);

    font-size:
        .82rem;
}


.forum-attachment-button {
    margin:
        0 !important;

    padding:
        9px 15px;

    border:
        1px solid
        rgba(225, 235, 245, .20);

    border-radius:
        9px;

    background:
        rgba(255, 255, 255, .07);

    color:
        #eef4f8 !important;

    cursor:
        pointer;
}


.forum-attachment-preview,
.forum-post-attachments {
    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(150px, 1fr)
        );

    gap:
        12px;

    margin-top:
        15px;
}


.forum-attachment-preview:empty {
    display:
        none;
}


.forum-attachment-preview-item,
.forum-post-attachment {
    position:
        relative;

    min-width:
        0;

    padding:
        10px;

    border:
        1px solid
        rgba(220, 233, 245, .13);

    border-radius:
        11px;

    background:
        rgba(4, 9, 15, .30);

    color:
        rgba(234, 241, 247, .90);

    text-decoration:
        none;
}


.forum-attachment-preview-item img,
.forum-post-attachment img {
    display:
        block;

    width:
        100%;

    height:
        120px;

    object-fit:
        cover;

    border-radius:
        8px;
}


.forum-attachment-preview-meta {
    display:
        grid;

    gap:
        3px;

    margin-top:
        8px;
}


.forum-attachment-preview-meta strong,
.forum-post-attachment span {
    display:
        block;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size:
        .83rem;
}


.forum-attachment-preview-meta span {
    color:
        rgba(221, 231, 240, .52);

    font-size:
        .76rem;
}


.forum-attachment-pdf {
    display:
        grid;

    place-items:
        center;

    height:
        120px;

    border-radius:
        8px;

    background:
        rgba(255, 255, 255, .055);

    font-size:
        1.3rem;

    font-weight:
        800;

    letter-spacing:
        .08em;
}


.forum-attachment-remove {
    margin-top:
        8px;

    padding:
        5px 0;

    border:
        0;

    background:
        transparent;

    color:
        rgba(235, 205, 205, .80);

    cursor:
        pointer;
}


.forum-editor-actions {
    display:
        flex;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        15px;

    margin-top:
        24px;
}


.forum-post-attachments {
    margin-top:
        20px;
}


.forum-post-attachment:hover {
    border-color:
        rgba(230, 239, 248, .28);

    background:
        rgba(255, 255, 255, .055);
}


.forum-post-owner-tools {
    min-height:
        22px;

    margin-top:
        13px;

    display:
        flex;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        12px;
}


.forum-post-edit-link {
    color:
        rgba(216, 226, 235, .62);

    font-size:
        .78rem;

    text-decoration:
        none;
}


.forum-post-edit-link:hover {
    color:
        #eef4f8;

    text-decoration:
        underline;
}


.forum-post-edited {
    color:
        rgba(216, 226, 235, .42);

    font-size:
        .72rem;

    font-style:
        italic;
}


.forum-feed-attachments {
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(120px, 170px)
        );
}


.forum-existing-attachments > strong {
    display:
        block;

    margin-bottom:
        5px;
}


@media (max-width: 700px) {

    .forum-editor-shell {
        width:
            calc(100% - 18px);

        margin-top:
            14px;
    }

    .forum-editor-card {
        padding:
            20px 16px;
    }

    .forum-editor-heading,
    .forum-attachment-picker-head {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .forum-editor-hint {
        text-align:
            left;
    }

    .forum-editor-form textarea {
        min-height:
            330px;
    }

    .forum-editor-actions {
        justify-content:
            space-between;
    }
}

/* /PERCEPIBILE_FORUM_COMPOSER_ATTACH_EDIT_CSS_V8A6 */

/* ===================================================================
   PERCEPIBILE_FORUM_HOME_FEED_LEFT_GLASS_V8A6_1
   Home forum:
   - feed più ancorato a sinistra
   - card post più leggere / semitrasparenti
   - look coerente con i form più recenti
   =================================================================== */

.social-layout {
    align-items: flex-start;
}

.social-feed-column {
    width: min(100%, 920px);
    max-width: 920px;
    margin-left: 0;
    margin-right: auto;
}

.social-feed-heading,
.social-feed,
.social-empty-card,
.social-filter-banner,
.social-compose-prompt {
    width: 100%;
    max-width: 100%;
}

.social-feed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.social-post-card {
    width: min(100%, 890px);
    margin-left: 0;
    margin-right: auto;
    background:
        linear-gradient(
            180deg,
            rgba(13, 19, 31, 0.44) 0%,
            rgba(8, 14, 24, 0.32) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.social-post-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.social-post-body,
.social-post-preview {
    background: transparent;
}

.social-feed-heading {
    opacity: 0.88;
}

@media (min-width: 1180px) {
    .social-layout {
        justify-content: flex-start;
        column-gap: 2.1rem;
    }

    .social-feed-column {
        flex: 0 1 920px;
    }

    .social-side-column {
        flex: 0 0 360px;
    }
}

@media (max-width: 1179px) {
    .social-feed-column {
        width: 100%;
        max-width: 100%;
    }

    .social-post-card {
        width: 100%;
    }
}

/* /PERCEPIBILE_FORUM_HOME_FEED_LEFT_GLASS_V8A6_1 */

/* PERCEPIBILE_FORUM_GUEST_LEFT_BLUR_CSS_V8A6_2 */

.social-layout--guest {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 26px 0 96px 88px;
}

.social-layout--guest .social-feed-column {
    width: min(760px, calc(100vw - 150px));
    max-width: 760px;
    margin: 0;
}

.social-layout--guest .social-intro-card,
.social-layout--guest .social-post-card--guest,
.social-layout--guest .social-empty-card {
    background: rgba(8, 14, 28, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.social-layout--guest .social-feed-heading {
    margin-top: 18px;
    margin-bottom: 10px;
}

.social-layout--guest .social-feed--guest {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.social-layout--guest .social-post-card--guest {
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.social-layout--guest .social-post-body.social-post-preview--guest {
    position: relative;
    max-height: 15.5em;
    overflow: hidden;
    white-space: pre-line;
    line-height: 1.9;
    filter: blur(0.15px);
}

.social-layout--guest .social-post-body.social-post-preview--guest::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: -6px;
    height: 72%;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(8, 14, 28, 0.00) 0%,
            rgba(8, 14, 28, 0.04) 20%,
            rgba(8, 14, 28, 0.12) 34%,
            rgba(8, 14, 28, 0.24) 48%,
            rgba(8, 14, 28, 0.40) 62%,
            rgba(8, 14, 28, 0.62) 78%,
            rgba(8, 14, 28, 0.84) 90%,
            rgba(8, 14, 28, 0.96) 100%
        );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.social-layout--guest .social-read-gate {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 14px;
}

.social-layout--guest .social-post-footer {
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .social-layout--guest {
        padding-left: 56px;
    }

    .social-layout--guest .social-feed-column {
        width: min(760px, calc(100vw - 96px));
    }
}

@media (max-width: 820px) {
    .social-layout--guest {
        padding-left: 18px;
        padding-right: 18px;
    }

    .social-layout--guest .social-feed-column {
        width: 100%;
        max-width: none;
    }
}

/* /PERCEPIBILE_FORUM_GUEST_LEFT_BLUR_CSS_V8A6_2 */


/* ================================================================
   PERCEPIBILE_FORUM_ALTERNATING_FEED_V8A6_3
   ================================================================ */


/* ---------------------------------------------------------------
   LAYOUT GENERALE GUEST
   --------------------------------------------------------------- */

.social-layout--guest {
    width: 100%;
    max-width: none;

    box-sizing: border-box;

    margin: 0;

    padding:
        26px
        clamp(34px, 5vw, 96px)
        96px;
}


.social-layout--guest .social-feed-column {
    width: 100%;
    max-width: none;

    margin: 0;
}


/* ---------------------------------------------------------------
   INTRO
   Torna centrale.
   --------------------------------------------------------------- */

.social-layout--guest .social-intro-card {

    width:
        min(
            760px,
            100%
        );

    box-sizing:
        border-box;

    margin:
        0
        auto
        30px;
}


/* ---------------------------------------------------------------
   "DAL FORUM"
   Rimane centrato rispetto all'intro.
   --------------------------------------------------------------- */

.social-layout--guest .social-feed-heading {

    width:
        min(
            760px,
            100%
        );

    box-sizing:
        border-box;

    margin:
        18px
        auto
        14px;
}


/* ---------------------------------------------------------------
   FEED
   Usa tutta la larghezza disponibile.
   --------------------------------------------------------------- */

.social-layout--guest .social-feed--guest {

    width:
        100%;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        stretch;

    gap:
        26px;
}


/* ---------------------------------------------------------------
   CARD POST
   --------------------------------------------------------------- */

.social-layout--guest
.social-feed--guest
.social-post-card--guest {

    width:
        min(
            760px,
            calc(100vw - 210px)
        );

    max-width:
        760px;

    box-sizing:
        border-box;

    background:
        linear-gradient(
            145deg,
            rgba(7, 13, 25, .12),
            rgba(5, 10, 20, .07)
        );

    border:
        1px solid
        rgba(255, 255, 255, .09);

    box-shadow:
        0 20px 55px
        rgba(0, 0, 0, .12);

    backdrop-filter:
        blur(13px)
        saturate(108%);

    -webkit-backdrop-filter:
        blur(13px)
        saturate(108%);
}


/* ---------------------------------------------------------------
   DISPOSIZIONE ALTERNATA
   --------------------------------------------------------------- */

/* 1, 3, 5... */

.social-layout--guest
.social-feed--guest
.social-post-card--guest:nth-child(odd) {

    margin-left:
        0;

    margin-right:
        auto;
}


/* 2, 4, 6... */

.social-layout--guest
.social-feed--guest
.social-post-card--guest:nth-child(even) {

    margin-left:
        auto;

    margin-right:
        0;
}


/* ---------------------------------------------------------------
   TABLET
   --------------------------------------------------------------- */

@media (max-width: 1100px) {

    .social-layout--guest {

        padding-left:
            30px;

        padding-right:
            30px;
    }


    .social-layout--guest
    .social-feed--guest
    .social-post-card--guest {

        width:
            min(
                700px,
                calc(100vw - 60px)
            );
    }
}


/* ---------------------------------------------------------------
   MOBILE
   Su schermi piccoli niente zig-zag.
   --------------------------------------------------------------- */

@media (max-width: 760px) {

    .social-layout--guest {

        padding-left:
            18px;

        padding-right:
            18px;
    }


    .social-layout--guest
    .social-feed--guest
    .social-post-card--guest {

        width:
            100%;

        max-width:
            none;

        margin-left:
            0;

        margin-right:
            0;
    }


    .social-layout--guest
    .social-feed--guest
    .social-post-card--guest:nth-child(odd),

    .social-layout--guest
    .social-feed--guest
    .social-post-card--guest:nth-child(even) {

        margin-left:
            0;

        margin-right:
            0;
    }
}

/* /PERCEPIBILE_FORUM_ALTERNATING_FEED_V8A6_3 */


/* ================================================================
   PERCEPIBILE_FORUM_SPATIAL_FEED_V8A6_4

   Composizione:
   - intro centrale
   - identità laterale destra
   - solo pulsante Scrivi al centro
   - post alternati sui due lati
   - grande corridoio centrale libero
   ================================================================ */


/* ---------------------------------------------------------------
   LAYOUT DESKTOP
   --------------------------------------------------------------- */

.social-layout--member,
.social-layout--guest {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: none !important;

    box-sizing: border-box;

    margin: 0 !important;

    padding:
        26px
        clamp(44px, 4.5vw, 92px)
        110px !important;
}


.social-layout--member .social-feed-column,
.social-layout--guest .social-feed-column {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}


/* ---------------------------------------------------------------
   INTRO CENTRALE
   --------------------------------------------------------------- */

.social-layout--member .social-intro-card,
.social-layout--guest .social-intro-card {
    width: min(620px, 100%) !important;

    box-sizing: border-box;

    margin:
        0
        auto
        18px !important;
}


/* ---------------------------------------------------------------
   IDENTITÀ PUBBLICA
   Solo utente autenticato.
   La spingiamo realmente nella fascia destra.
   --------------------------------------------------------------- */

.social-layout--member > .social-side-column {
    position: absolute;

    top: 26px;
    right: clamp(44px, 4.5vw, 92px);

    width: 275px !important;
    max-width: 275px !important;

    margin: 0 !important;

    z-index: 4;
}


.social-layout--member
> .social-side-column
.social-side-card {
    background:
        linear-gradient(
            145deg,
            rgba(8, 14, 26, .18),
            rgba(5, 10, 20, .11)
        ) !important;

    border:
        1px solid
        rgba(255, 255, 255, .10) !important;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .13) !important;

    backdrop-filter:
        blur(13px)
        saturate(108%) !important;

    -webkit-backdrop-filter:
        blur(13px)
        saturate(108%) !important;
}


/* ---------------------------------------------------------------
   COMPOSER
   Eliminiamo la grossa card.
   Rimane SOLO il pulsante Scrivi al centro.
   --------------------------------------------------------------- */

.social-layout--member .social-compose-prompt {
    width: fit-content !important;
    max-width: none !important;

    min-height: 0 !important;

    box-sizing: border-box;

    margin:
        14px
        auto
        34px !important;

    padding: 0 !important;

    display: block !important;

    background: transparent !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


.social-layout--member
.social-compose-prompt > div {
    display: none !important;
}


.social-layout--member
.social-compose-prompt
.social-primary-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 96px;

    padding:
        11px
        22px;

    border:
        1px solid
        rgba(255, 255, 255, .24);

    border-radius:
        999px;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, .16);
}


/* ---------------------------------------------------------------
   HEADING DEL FEED
   Non occupa il corridoio centrale.
   --------------------------------------------------------------- */

.social-layout--member .social-feed-heading,
.social-layout--guest .social-feed-heading {
    width: min(620px, 42vw) !important;

    box-sizing: border-box;

    margin:
        0
        auto
        12px
        0 !important;
}


/* ---------------------------------------------------------------
   FEED FULL WIDTH
   --------------------------------------------------------------- */

.social-layout--member .social-feed,
.social-layout--guest .social-feed {
    width: 100% !important;

    display: flex !important;

    flex-direction: column;

    align-items: stretch !important;

    gap: 34px !important;
}


/* ---------------------------------------------------------------
   CARD
   Più strette delle versioni precedenti:
   devono vivere sui bordi e lasciare respirare il centro.
   --------------------------------------------------------------- */

.social-layout--member
.social-feed
.social-post-card,

.social-layout--guest
.social-feed
.social-post-card {
    width: min(620px, 42vw) !important;

    max-width: 620px !important;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            rgba(7, 13, 25, .115),
            rgba(4, 9, 18, .065)
        ) !important;

    border:
        1px solid
        rgba(255, 255, 255, .085) !important;

    box-shadow:
        0 18px 48px
        rgba(0, 0, 0, .105) !important;

    backdrop-filter:
        blur(12px)
        saturate(106%) !important;

    -webkit-backdrop-filter:
        blur(12px)
        saturate(106%) !important;
}


/* ---------------------------------------------------------------
   ZIG-ZAG UNIVERSALE
   Vale sia autenticato sia guest.
   --------------------------------------------------------------- */

.social-layout--member
.social-feed
.social-post-card:nth-child(odd),

.social-layout--guest
.social-feed
.social-post-card:nth-child(odd) {
    margin-left: 0 !important;
    margin-right: auto !important;
}


.social-layout--member
.social-feed
.social-post-card:nth-child(even),

.social-layout--guest
.social-feed
.social-post-card:nth-child(even) {
    margin-left: auto !important;
    margin-right: 0 !important;
}


/* ---------------------------------------------------------------
   FILTER BANNER
   Se stiamo filtrando per autore rimane discreto e centrale.
   --------------------------------------------------------------- */

.social-layout--member .social-filter-banner {
    width: min(620px, 100%) !important;

    margin:
        0
        auto
        28px !important;
}


/* ---------------------------------------------------------------
   DESKTOP INTERMEDIO
   Evitiamo sovrapposizione intro / identità.
   --------------------------------------------------------------- */

@media (max-width: 1280px) {

    .social-layout--member > .social-side-column {
        width: 245px !important;
        max-width: 245px !important;
    }


    .social-layout--member .social-intro-card,
    .social-layout--guest .social-intro-card {
        width: min(560px, 100%) !important;
    }


    .social-layout--member
    .social-feed
    .social-post-card,

    .social-layout--guest
    .social-feed
    .social-post-card {
        width: min(560px, 43vw) !important;
    }
}


/* ---------------------------------------------------------------
   TABLET
   L'identità torna nel flusso.
   Lo zig-zag resta finché c'è spazio.
   --------------------------------------------------------------- */

@media (max-width: 1050px) {

    .social-layout--member,
    .social-layout--guest {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }


    .social-layout--member > .social-side-column {
        position: static;

        width: min(620px, 100%) !important;
        max-width: 620px !important;

        margin:
            0
            auto
            24px !important;
    }


    .social-layout--member
    .social-feed
    .social-post-card,

    .social-layout--guest
    .social-feed
    .social-post-card {
        width: min(560px, 47vw) !important;
    }
}


/* ---------------------------------------------------------------
   MOBILE
   Una sola colonna.
   --------------------------------------------------------------- */

@media (max-width: 760px) {

    .social-layout--member,
    .social-layout--guest {
        padding:
            18px
            18px
            72px !important;
    }


    .social-layout--member .social-feed-heading,
    .social-layout--guest .social-feed-heading,

    .social-layout--member
    .social-feed
    .social-post-card,

    .social-layout--guest
    .social-feed
    .social-post-card {
        width: 100% !important;

        max-width: none !important;
    }


    .social-layout--member
    .social-feed
    .social-post-card:nth-child(odd),

    .social-layout--member
    .social-feed
    .social-post-card:nth-child(even),

    .social-layout--guest
    .social-feed
    .social-post-card:nth-child(odd),

    .social-layout--guest
    .social-feed
    .social-post-card:nth-child(even) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* /PERCEPIBILE_FORUM_SPATIAL_FEED_V8A6_4 */


/* ================================================================
   PERCEPIBILE_FORUM_HEADER_IDENTITY_CSS_V8A6_5
   ================================================================ */


/* ---------------------------------------------------------------
   TOPBAR
   --------------------------------------------------------------- */

.social-topbar {
    position: sticky;

    min-height: 76px !important;

    padding-left:
        28px !important;

    padding-right:
        28px !important;
}


/* ---------------------------------------------------------------
   IDENTITÀ CENTRALE
   Centrata sulla viewport, indipendente dagli elementi laterali.
   --------------------------------------------------------------- */

.social-header-identity {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width:
        min(
            760px,
            54vw
        );

    box-sizing:
        border-box;

    text-align:
        center;

    pointer-events:
        none;

    z-index:
        1;
}


.social-header-title {
    color:
        rgba(247, 250, 253, .96);

    font-size:
        clamp(
            17px,
            1.45vw,
            22px
        );

    font-weight:
        720;

    line-height:
        1.15;

    letter-spacing:
        -.015em;
}


.social-header-subtitle {
    margin-top:
        4px;

    color:
        rgba(213, 222, 232, .68);

    font-size:
        11px;

    font-weight:
        450;

    line-height:
        1.25;

    letter-spacing:
        .005em;
}


/* ---------------------------------------------------------------
   ELEMENTI LATERALI SOPRA IL BLOCCO CENTRALE
   --------------------------------------------------------------- */

.social-brand,
.social-section,
.social-topbar-spacer,
.social-current-user,
.social-logout-form,
.social-topbar-button {
    position:
        relative;

    z-index:
        2;
}


/* ---------------------------------------------------------------
   SPATIAL FEED
   Poiché l'intro non è più nel corpo, riduciamo leggermente
   lo spazio iniziale senza invadere il paesaggio.
   --------------------------------------------------------------- */

.social-layout--member,
.social-layout--guest {
    padding-top:
        22px !important;
}


/* ---------------------------------------------------------------
   DESKTOP STRETTO
   --------------------------------------------------------------- */

@media (max-width: 1100px) {

    .social-header-identity {
        width:
            min(
                620px,
                46vw
            );
    }


    .social-header-subtitle {
        display:
            none;
    }
}


/* ---------------------------------------------------------------
   TABLET
   --------------------------------------------------------------- */

@media (max-width: 820px) {

    .social-topbar {
        min-height:
            64px !important;
    }


    .social-header-identity {
        width:
            42vw;
    }


    .social-header-title {
        font-size:
            15px;

        white-space:
            nowrap;

        overflow:
            hidden;

        text-overflow:
            ellipsis;
    }
}


/* ---------------------------------------------------------------
   MOBILE
   Il centro non deve interferire con brand e accesso.
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-header-identity {
        display:
            none;
    }
}

/* /PERCEPIBILE_FORUM_HEADER_IDENTITY_CSS_V8A6_5 */


/* ================================================================
   PERCEPIBILE_FORUM_POST_EDGE_GLOW_V8A6_6
   ================================================================ */

.social-layout--member
.social-feed
.social-post-card,

.social-layout--guest
.social-feed
.social-post-card {

    border-color:
        rgba(225, 239, 250, .17) !important;

    box-shadow:
        0 0 0 1px
            rgba(225, 239, 250, .035),

        0 0 7px
            rgba(210, 232, 248, .12),

        0 0 13px
            rgba(188, 218, 241, .055),

        0 18px 48px
            rgba(0, 0, 0, .105) !important;
}


.social-layout--member
.social-feed
.social-post-card:hover,

.social-layout--guest
.social-feed
.social-post-card:hover {

    border-color:
        rgba(233, 244, 252, .23) !important;

    box-shadow:
        0 0 0 1px
            rgba(233, 244, 252, .045),

        0 0 9px
            rgba(218, 236, 250, .16),

        0 0 16px
            rgba(194, 222, 244, .07),

        0 20px 52px
            rgba(0, 0, 0, .12) !important;
}


.social-post-edit-action {
    margin-left:
        auto;

    color:
        rgba(220, 232, 242, .72);
}


.social-post-edit-action:hover {
    color:
        rgba(248, 251, 253, .96);
}

/* /PERCEPIBILE_FORUM_POST_EDGE_GLOW_V8A6_6 */


/* ================================================================
   PERCEPIBILE_FORUM_USER_HELP_POPOVER_CSS_V8A6_7
   ================================================================ */

.social-user-help {
    position: relative;

    display: inline-flex;
    align-items: center;

    z-index: 50;
}


.social-user-help-trigger {
    cursor: help;

    transition:
        color .18s ease;
}


.social-user-help-trigger:hover,
.social-user-help-trigger:focus-visible {
    color:
        rgba(247, 250, 253, .98);
}


/* ---------------------------------------------------------------
   POPOVER
   --------------------------------------------------------------- */

.social-user-help-popover {
    position: absolute;

    top:
        calc(100% + 14px);

    right:
        -8px;

    width:
        250px;

    box-sizing:
        border-box;

    padding:
        16px 17px;

    border:
        1px solid
        rgba(229, 239, 248, .15);

    border-radius:
        12px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 17, 28, .92),
            rgba(6, 12, 21, .88)
        );

    box-shadow:
        0 18px 46px
        rgba(0, 0, 0, .30),

        0 0 14px
        rgba(205, 228, 246, .055);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(110%);

    backdrop-filter:
        blur(18px)
        saturate(110%);

    color:
        rgba(231, 239, 246, .90);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(-5px);

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;

    pointer-events:
        none;
}


/*
 * Compare passando sul nickname.
 * Sparisce automaticamente appena il puntatore lascia il trigger.
 *
 * focus-within mantiene la stessa funzione anche via tastiera.
 */

.social-user-help:hover
.social-user-help-popover,

.social-user-help:focus-within
.social-user-help-popover {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);
}


.social-user-help-kicker {
    color:
        rgba(179, 196, 212, .72);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .11em;

    text-transform:
        uppercase;
}


.social-user-help-nickname {
    margin-top:
        6px;

    color:
        rgba(250, 252, 254, .98);

    font-size:
        18px;

    font-weight:
        720;
}


.social-user-help-popover p {
    margin:
        10px
        0
        0;

    color:
        rgba(213, 224, 234, .78);

    font-size:
        12px;

    line-height:
        1.5;
}


.social-user-help-popover
.social-user-help-muted {
    margin-top:
        6px;

    color:
        rgba(183, 198, 211, .63);
}


/* ---------------------------------------------------------------
   MOBILE
   Su touch non ha molto senso un hover-help.
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-user-help-popover {
        display:
            none;
    }

    .social-user-help-trigger {
        cursor:
            default;
    }
}

/* /PERCEPIBILE_FORUM_USER_HELP_POPOVER_CSS_V8A6_7 */


/* =========================================================
   PERCEPIBILE_FORUM_HEADER_CTA_REFINED_CSS_V8A6_8
   Header più alto + titolo più leggibile + CTA più invitante
   ========================================================= */

.social-topbar {
    min-height: 86px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.social-header-title-group {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.social-header-title {
    font-size: clamp(1.55rem, 1.20rem + 1.05vw, 2.25rem) !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 0 rgba(255,255,255,.06),
        0 0 18px rgba(148, 186, 255, .12),
        0 2px 10px rgba(0, 0, 0, .35);
}

.social-header-subtitle {
    margin-top: 5px !important;
    font-size: .84rem !important;
    line-height: 1.28 !important;
    opacity: .94 !important;
    text-shadow:
        0 1px 10px rgba(0, 0, 0, .28);
}

.social-home-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(150px, 23vh, 250px);
    margin-bottom: clamp(40px, 6vh, 82px);
    position: relative;
    z-index: 3;
}

.social-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 184px;
    min-height: 58px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94) 0%,
            rgba(240,244,248,.90) 100%
        );
    color: #131b26 !important;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: .01em;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .22),
        0 0 20px rgba(255,255,255,.08);
    backdrop-filter: blur(10px) saturate(1.06);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.social-hero-cta:hover,
.social-hero-cta:focus-visible {
    transform: translateY(-1px) scale(1.012);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .28),
        0 0 22px rgba(255,255,255,.12);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98) 0%,
            rgba(244,247,250,.94) 100%
        );
    outline: none;
}

@media (max-width: 980px) {
    .social-topbar {
        min-height: 96px !important;
    }

    .social-header-title-group {
        max-width: 82vw;
    }

    .social-home-cta-row {
        margin-top: 110px;
        margin-bottom: 40px;
    }
}

@media (max-width: 720px) {
    .social-header-title {
        font-size: 1.24rem !important;
    }

    .social-header-subtitle {
        font-size: .76rem !important;
    }

    .social-home-cta-row {
        margin-top: 82px;
        margin-bottom: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .social-hero-cta {
        min-width: 168px;
        min-height: 54px;
        width: auto;
        max-width: 100%;
        padding: 0 20px;
    }
}

/* /PERCEPIBILE_FORUM_HEADER_CTA_REFINED_CSS_V8A6_8 */


/* ================================================================
   PERCEPIBILE_FORUM_HEADER_CTA_FIX_CSS_V8A6_8_1
   ================================================================ */

/*
 * Barra superiore:
 * lavoriamo sulle classi REALMENTE presenti nel template.
 */

.social-topbar {
    min-height: 78px !important;
    height: 78px !important;

    box-sizing: border-box !important;

    padding-top: 8px !important;
    padding-bottom: 8px !important;
}


.social-header-identity {
    top: 50% !important;

    width: min(720px, 48vw) !important;

    transform:
        translate(-50%, -50%) !important;
}


.social-header-title {
    font-size: 20px !important;

    line-height: 1.12 !important;

    font-weight: 720 !important;

    letter-spacing:
        -.012em !important;

    color:
        rgba(249, 251, 253, .98) !important;
}


.social-header-subtitle {
    margin-top:
        5px !important;

    font-size:
        10.5px !important;

    line-height:
        1.28 !important;

    opacity:
        .90 !important;

    color:
        rgba(218, 228, 237, .88) !important;
}


/*
 * CTA indipendente dal composer.
 *
 * È posizionata rispetto al viewport visivo del forum,
 * circa nella fascia dell'orizzonte / pelo dell'acqua.
 */

.social-layout {
    position:
        relative !important;
}


.social-horizon-cta {
    position:
        absolute !important;

    z-index:
        20 !important;

    top:
        46vh !important;

    left:
        50% !important;

    transform:
        translate(-50%, -50%) !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;

    pointer-events:
        none;
}


.social-horizon-cta-button {
    pointer-events:
        auto;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    min-width:
        176px;

    min-height:
        52px;

    padding:
        0 25px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(255,255,255,.40);

    border-radius:
        999px;

    background:
        rgba(248,250,252,.94);

    color:
        #111925 !important;

    font-size:
        15px;

    font-weight:
        720;

    line-height:
        1;

    text-decoration:
        none !important;

    box-shadow:
        0 10px 30px
            rgba(0,0,0,.25),

        0 0 18px
            rgba(255,255,255,.09);

    transition:
        transform .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}


.social-horizon-cta-button:hover,
.social-horizon-cta-button:focus-visible {
    transform:
        translateY(-2px);

    background:
        rgba(255,255,255,.99);

    box-shadow:
        0 14px 34px
            rgba(0,0,0,.29),

        0 0 22px
            rgba(255,255,255,.14);

    outline:
        none;
}


/*
 * La vecchia CTA V8A6.8 non deve più influenzare
 * l'impaginazione.
 */

.social-home-cta-row {
    display:
        none !important;
}


/* Tablet */

@media (max-width: 1100px) {

    .social-header-identity {
        width:
            min(600px, 46vw) !important;
    }

    .social-header-title {
        font-size:
            18px !important;
    }

    .social-header-subtitle {
        font-size:
            9.5px !important;
    }

    .social-horizon-cta {
        top:
            43vh !important;
    }
}


/* Mobile */

@media (max-width: 620px) {

    .social-topbar {
        min-height:
            68px !important;

        height:
            68px !important;
    }

    /*
     * Continuiamo a nascondere l'identità centrale
     * su schermi stretti come già previsto dalla V8A6.5.
     */

    .social-horizon-cta {
        top:
            35vh !important;
    }

    .social-horizon-cta-button {
        min-width:
            160px;

        min-height:
            48px;

        padding:
            0 20px;

        font-size:
            14px;
    }
}

/* /PERCEPIBILE_FORUM_HEADER_CTA_FIX_CSS_V8A6_8_1 */


/* ================================================================
   PERCEPIBILE_FORUM_TITLE_CTA_REFINE_V8A6_8_3
   Titolo più leggibile + CTA leggermente più bassa
   ================================================================ */


/* ---------------------------------------------------------------
   HEADER
   --------------------------------------------------------------- */

.social-topbar {
    min-height:
        88px !important;

    height:
        88px !important;

    padding-top:
        9px !important;

    padding-bottom:
        9px !important;
}


.social-header-identity {
    width:
        min(820px, 54vw) !important;
}


.social-header-title {
    font-size:
        26px !important;

    line-height:
        1.08 !important;

    font-weight:
        740 !important;

    letter-spacing:
        -.018em !important;

    color:
        rgba(250,252,254,.99) !important;

    text-shadow:
        0 1px 0 rgba(255,255,255,.06),
        0 0 20px rgba(170,205,255,.12),
        0 2px 12px rgba(0,0,0,.40) !important;
}


.social-header-subtitle {
    margin-top:
        6px !important;

    font-size:
        12px !important;

    line-height:
        1.30 !important;

    font-weight:
        450 !important;

    opacity:
        .94 !important;

    color:
        rgba(220,230,239,.90) !important;
}


/* ---------------------------------------------------------------
   CTA
   La spostiamo poco più in basso.
   --------------------------------------------------------------- */

.social-horizon-cta {
    top:
        51vh !important;
}


/*
 * Piccola rifinitura del bottone:
 * resta invitante, ma non troppo grande.
 */

.social-horizon-cta-button {
    min-width:
        184px !important;

    min-height:
        54px !important;

    padding:
        0 27px !important;

    font-size:
        15.5px !important;
}


/* ---------------------------------------------------------------
   TABLET
   --------------------------------------------------------------- */

@media (max-width: 1100px) {

    .social-topbar {
        min-height:
            84px !important;

        height:
            84px !important;
    }

    .social-header-title {
        font-size:
            22px !important;
    }

    .social-header-subtitle {
        font-size:
            10.5px !important;
    }

    .social-horizon-cta {
        top:
            48vh !important;
    }
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-topbar {
        min-height:
            68px !important;

        height:
            68px !important;
    }

    .social-horizon-cta {
        top:
            38vh !important;
    }
}

/* /PERCEPIBILE_FORUM_TITLE_CTA_REFINE_V8A6_8_3 */


/* ================================================================
   PERCEPIBILE_FORUM_TITLE_CTA_VISUAL_V8A6_8_5
   Titolo più importante + CTA più bassa
   ================================================================ */

.social-topbar {
    min-height:
        96px !important;

    height:
        96px !important;
}


.social-header-identity {
    width:
        min(940px, 62vw) !important;
}


.social-header-title {
    font-size:
        32px !important;

    line-height:
        1.04 !important;

    font-weight:
        760 !important;

    letter-spacing:
        -.022em !important;

    color:
        rgba(252,253,255,.995) !important;

    text-shadow:
        0 1px 0 rgba(255,255,255,.08),
        0 0 24px rgba(175,205,255,.14),
        0 3px 14px rgba(0,0,0,.46) !important;
}


.social-header-subtitle {
    margin-top:
        7px !important;

    font-size:
        13px !important;

    line-height:
        1.28 !important;

    opacity:
        .94 !important;
}


.social-horizon-cta {
    top:
        56vh !important;
}


.social-horizon-cta-button {
    min-width:
        188px !important;

    min-height:
        54px !important;

    font-size:
        15.5px !important;
}


/* Tablet */
@media (max-width: 1100px) {

    .social-topbar {
        min-height:
            88px !important;

        height:
            88px !important;
    }

    .social-header-title {
        font-size:
            26px !important;
    }

    .social-header-subtitle {
        font-size:
            11px !important;
    }

    .social-horizon-cta {
        top:
            52vh !important;
    }
}


/* Mobile */
@media (max-width: 620px) {

    .social-topbar {
        min-height:
            68px !important;

        height:
            68px !important;
    }

    .social-horizon-cta {
        top:
            41vh !important;
    }
}

/* /PERCEPIBILE_FORUM_TITLE_CTA_VISUAL_V8A6_8_5 */


/* ================================================================
   PERCEPIBILE_FORUM_HEADER_FIXED_CTA_V8A6_8_6
   Header più leggibile + CTA fissa sul viewport
   ================================================================ */


/* ---------------------------------------------------------------
   HEADER CENTRALE
   --------------------------------------------------------------- */

.social-header-identity {
    width:
        min(980px, 66vw) !important;

    padding:
        5px 18px 7px !important;

    border-radius:
        18px !important;

    background:
        rgba(5, 12, 20, .18) !important;

    backdrop-filter:
        blur(3px) !important;

    -webkit-backdrop-filter:
        blur(3px) !important;
}


.social-header-title {
    font-size:
        32px !important;

    line-height:
        1.06 !important;

    font-weight:
        800 !important;

    letter-spacing:
        -.02em !important;

    color:
        rgba(255,255,255,1) !important;

    text-shadow:
        0 1px 1px rgba(0,0,0,.55),
        0 2px 10px rgba(0,0,0,.52),
        0 0 18px rgba(190,220,255,.13) !important;
}


.social-header-subtitle {
    margin-top:
        7px !important;

    font-size:
        13.5px !important;

    line-height:
        1.32 !important;

    font-weight:
        520 !important;

    letter-spacing:
        .01em !important;

    color:
        rgba(240,245,250,.96) !important;

    opacity:
        1 !important;

    text-shadow:
        0 1px 7px rgba(0,0,0,.72) !important;
}


/* ---------------------------------------------------------------
   CTA
   Manteniamo dimensione e quota attuali,
   ma la rendiamo indipendente dallo scroll.
   --------------------------------------------------------------- */

.social-horizon-cta {
    position:
        fixed !important;

    top:
        56vh !important;

    left:
        50% !important;

    transform:
        translate(-50%, -50%) !important;

    z-index:
        40 !important;
}


/* Tablet */
@media (max-width: 1100px) {

    .social-header-identity {
        width:
            min(760px, 62vw) !important;
    }

    .social-header-title {
        font-size:
            26px !important;
    }

    .social-header-subtitle {
        font-size:
            11.5px !important;
    }

    .social-horizon-cta {
        position:
            fixed !important;

        top:
            52vh !important;
    }
}


/* Mobile */
@media (max-width: 620px) {

    .social-horizon-cta {
        position:
            fixed !important;

        top:
            41vh !important;
    }
}

/* /PERCEPIBILE_FORUM_HEADER_FIXED_CTA_V8A6_8_6 */


/* ================================================================
   PERCEPIBILE_FORUM_FOCUS_READER_CSS_V8A6_9
   Lettura centrale immersiva sopra il feed
   ================================================================ */

html.forum-focus-open,
body.forum-focus-open {
    overflow:
        hidden !important;
}


.forum-focus-overlay[hidden] {
    display:
        none !important;
}


.forum-focus-overlay {
    position:
        fixed;

    inset:
        0;

    z-index:
        800;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        112px 5vw 42px;

    box-sizing:
        border-box;

    background:
        rgba(3, 8, 14, .40);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


.forum-focus-panel {
    position:
        relative;

    width:
        min(1040px, 88vw);

    max-height:
        calc(100vh - 154px);

    overflow-y:
        auto;

    overscroll-behavior:
        contain;

    box-sizing:
        border-box;

    padding:
        0;

    border:
        1px solid rgba(220,235,250,.20);

    border-radius:
        28px;

    outline:
        none;

    background:
        linear-gradient(
            180deg,
            rgba(17,29,41,.92),
            rgba(9,18,28,.89)
        );

    box-shadow:
        0 34px 100px rgba(0,0,0,.52),
        0 0 42px rgba(180,210,255,.10);

    scrollbar-width:
        thin;
}


.forum-focus-loading {
    padding:
        54px 42px;

    text-align:
        center;

    color:
        rgba(238,245,251,.78);

    font-size:
        14px;

    letter-spacing:
        .02em;
}


.forum-focus-content {
    min-height:
        180px;
}


/*
 * La pagina topic viene riutilizzata all'interno
 * del Focus Reader.
 */
.forum-focus-content .social-topic-layout {
    width:
        auto !important;

    max-width:
        none !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        30px 34px 38px !important;
}


/*
 * Il post principale deve diventare protagonista,
 * non sembrare una seconda nuvoletta del feed.
 */
.forum-focus-content .social-topic-main {
    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    box-sizing:
        border-box !important;
}


/*
 * Nel focus la lettura deve essere più comoda.
 */
.forum-focus-content .social-topic-title {
    font-size:
        clamp(26px, 3vw, 40px) !important;

    line-height:
        1.12 !important;
}


.forum-focus-content .social-topic-body,
.forum-focus-content .social-post-body {
    font-size:
        16px !important;

    line-height:
        1.72 !important;
}


/*
 * Le risposte rimangono nello stesso pannello
 * e seguono naturalmente il post.
 */
.forum-focus-content .social-topic-layout > * {
    position:
        relative;
}


@media (max-width: 760px) {

    .forum-focus-overlay {
        padding:
            78px 12px 18px;
    }

    .forum-focus-panel {
        width:
            100%;

        max-height:
            calc(100vh - 96px);

        border-radius:
            22px;
    }

    .forum-focus-content .social-topic-layout {
        padding:
            22px 17px 28px !important;
    }

    .forum-focus-content .social-topic-title {
        font-size:
            25px !important;
    }

    .forum-focus-content .social-topic-body,
    .forum-focus-content .social-post-body {
        font-size:
            15px !important;

        line-height:
            1.66 !important;
    }
}

/* /PERCEPIBILE_FORUM_FOCUS_READER_CSS_V8A6_9 */


/* ================================================================
   PERCEPIBILE_FORUM_UNIFIED_FOCUS_CSS_V8A6_10
   Editor / nuovo post / cestino dentro il Focus
   ================================================================ */

.forum-focus-content .forum-editor-shell {
    width:
        auto !important;

    max-width:
        none !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        28px 32px 34px !important;
}


.forum-focus-content .forum-editor-card {
    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    box-sizing:
        border-box;
}


.forum-focus-content .social-topbar {
    display:
        none !important;
}


.forum-trash-form {
    margin:
        18px 0 0;

    padding:
        16px 0 0;

    border-top:
        1px solid rgba(255,255,255,.10);
}


.forum-trash-button {
    appearance:
        none;

    border:
        1px solid rgba(255,170,170,.24);

    border-radius:
        999px;

    padding:
        9px 15px;

    background:
        rgba(120,30,35,.16);

    color:
        rgba(255,215,215,.84);

    font:
        inherit;

    font-size:
        13px;

    cursor:
        pointer;

    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}


.forum-trash-button:hover,
.forum-trash-button:focus-visible {
    background:
        rgba(145,37,43,.25);

    border-color:
        rgba(255,180,180,.38);

    color:
        rgba(255,235,235,.96);

    outline:
        none;
}


@media (max-width: 760px) {

    .forum-focus-content .forum-editor-shell {
        padding:
            20px 16px 26px !important;
    }

}

/* /PERCEPIBILE_FORUM_UNIFIED_FOCUS_CSS_V8A6_10 */


/* ================================================================
   PERCEPIBILE_FORUM_FOCUS_FIX_V8A6_11
   ================================================================ */

.forum-focus-overlay {
    padding:
        92px 6vw 46px !important;
}


.forum-focus-panel {
    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        calc(100dvh - 138px) !important;

    overflow-y:
        auto !important;
}


.forum-focus-content {
    min-height:
        0 !important;
}


.forum-focus-content .forum-editor-shell,
.forum-focus-content .forum-editor-card {
    min-height:
        0 !important;

    height:
        auto !important;
}


.forum-focus-content
.forum-editor-form
textarea {
    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        48dvh;

    resize:
        vertical;
}


/*
 * CTA circa a un quarto dal fondo
 * = 75% dall'alto del viewport.
 */
.social-horizon-cta {
    top:
        75vh !important;
}


/* ---------------------------------------------------------------
   CONFERMA CANCELLAZIONE
   --------------------------------------------------------------- */

.forum-delete-confirm-overlay {
    position:
        fixed;

    inset:
        0;

    z-index:
        1200;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        24px;

    box-sizing:
        border-box;

    background:
        rgba(2, 7, 12, .62);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.forum-delete-confirm-box {
    width:
        min(430px, calc(100vw - 40px));

    box-sizing:
        border-box;

    padding:
        26px 26px 22px;

    border:
        1px solid rgba(255,255,255,.17);

    border-radius:
        22px;

    background:
        linear-gradient(
            180deg,
            rgba(20,31,43,.98),
            rgba(10,19,29,.98)
        );

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.55);

    color:
        rgba(245,249,252,.94);
}


.forum-delete-confirm-title {
    display:
        block;

    margin-bottom:
        10px;

    font-size:
        22px;
}


.forum-delete-confirm-box p {
    margin:
        0;

    line-height:
        1.55;

    color:
        rgba(235,242,248,.78);
}


.forum-delete-confirm-actions {
    display:
        flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        22px;
}


.forum-delete-confirm-danger {
    appearance:
        none;

    border:
        1px solid rgba(255,155,155,.36);

    border-radius:
        999px;

    padding:
        10px 16px;

    background:
        rgba(145,37,43,.32);

    color:
        rgba(255,235,235,.98);

    font:
        inherit;

    cursor:
        pointer;
}


.forum-delete-confirm-danger:hover,
.forum-delete-confirm-danger:focus-visible {
    background:
        rgba(170,42,49,.46);

    outline:
        none;
}


@media (max-width: 620px) {

    .social-horizon-cta {
        top:
            72vh !important;
    }

    .forum-focus-overlay {
        padding:
            76px 12px 22px !important;
    }

    .forum-focus-panel {
        max-height:
            calc(100dvh - 98px) !important;
    }
}

/* /PERCEPIBILE_FORUM_FOCUS_FIX_V8A6_11 */


/* ================================================================
   PERCEPIBILE_FORUM_COMPACT_FOCUS_V8A6_12
   ================================================================ */

/*
 * Desktop 1920x1080:
 * il Focus non deve sembrare un'intera pagina dentro la pagina.
 */
.forum-focus-overlay {
    padding:
        82px 6vw 30px !important;
}


.forum-focus-panel {
    width:
        min(860px, 86vw) !important;

    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        calc(100dvh - 112px) !important;

    overflow-y:
        auto !important;

    border-radius:
        23px !important;
}


.forum-focus-content,
.forum-focus-content .forum-editor-shell,
.forum-focus-content .forum-editor-card {
    min-height:
        0 !important;

    height:
        auto !important;
}


.forum-focus-content .forum-editor-shell {
    padding:
        18px 20px 20px !important;
}


.forum-focus-content .forum-editor-card {
    padding:
        20px 22px !important;
}


.forum-focus-content .forum-editor-heading {
    margin-bottom:
        14px !important;
}


.forum-focus-content
.forum-editor-form
textarea {
    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        42dvh !important;

    resize:
        vertical;
}


.forum-focus-content
.social-topic-layout {
    padding:
        24px 26px 28px !important;
}


.forum-focus-content
.social-topic-title {
    font-size:
        clamp(23px, 2.3vw, 34px) !important;
}


.forum-focus-content
.social-topic-body,
.forum-focus-content
.social-post-body {
    font-size:
        15px !important;

    line-height:
        1.62 !important;
}


/*
 * Quattro quinti dall'alto:
 * resta un quinto di viewport sotto il pulsante.
 */
.social-horizon-cta {
    top:
        80vh !important;
}


/*
 * Importantissimo:
 * la regola display:flex del popup non deve
 * annullare l'attributo HTML hidden.
 */
.forum-delete-confirm-overlay[hidden] {
    display:
        none !important;
}


@media (max-width: 760px) {

    .forum-focus-overlay {
        padding:
            72px 11px 18px !important;
    }

    .forum-focus-panel {
        width:
            100% !important;

        max-height:
            calc(100dvh - 90px) !important;

        border-radius:
            19px !important;
    }

    .forum-focus-content
    .forum-editor-shell {
        padding:
            14px 12px 16px !important;
    }

    .forum-focus-content
    .forum-editor-card {
        padding:
            17px 15px !important;
    }

    .social-horizon-cta {
        top:
            80vh !important;
    }
}

/* /PERCEPIBILE_FORUM_COMPACT_FOCUS_V8A6_12 */


/* ================================================================
   PERCEPIBILE_FORUM_UI_REFINEMENT_V8A6_13
   ================================================================ */


/* ---------------------------------------------------------------
   FOCUS GENERALE
   --------------------------------------------------------------- */

.forum-focus-overlay {
    padding:
        78px 7vw 28px !important;
}


.forum-focus-panel {
    width:
        min(780px, 84vw) !important;

    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        calc(100dvh - 106px) !important;

    overflow-y:
        auto !important;

    border-radius:
        21px !important;
}


.forum-focus-content {
    min-height:
        0 !important;
}


/* ---------------------------------------------------------------
   EDITOR
   --------------------------------------------------------------- */

.forum-focus-content
.forum-editor-shell {
    min-height:
        0 !important;

    height:
        auto !important;

    padding:
        13px 15px 15px !important;
}


.forum-focus-content
.forum-editor-card {
    min-height:
        0 !important;

    height:
        auto !important;

    padding:
        17px 18px !important;

    border-radius:
        18px !important;
}


.forum-focus-content
.forum-editor-heading {
    margin-bottom:
        10px !important;
}


.forum-focus-content
.forum-editor-form {
    gap:
        9px !important;
}


.forum-focus-content
.forum-editor-form textarea {
    min-height:
        0 !important;

    height:
        auto;

    max-height:
        38dvh !important;

    line-height:
        1.45 !important;

    resize:
        none !important;

    overflow-y:
        hidden;
}


.forum-focus-content
.forum-editor-form input[type="text"] {
    padding:
        9px 11px !important;
}


.forum-focus-content
.forum-editor-actions {
    margin-top:
        11px !important;
}


/* ---------------------------------------------------------------
   TOPIC LETTO NEL FOCUS
   --------------------------------------------------------------- */

.forum-focus-content
.social-topic-layout {
    min-height:
        0 !important;

    padding:
        20px 22px 24px !important;
}


.forum-focus-content
.social-topic-title {
    font-size:
        clamp(
            22px,
            2.1vw,
            31px
        ) !important;
}


.forum-focus-content
.social-topic-body,
.forum-focus-content
.social-post-body {
    font-size:
        15px !important;

    line-height:
        1.58 !important;
}


/* ---------------------------------------------------------------
   DELETE DIALOG
   --------------------------------------------------------------- */

.forum-delete-confirm-overlay[hidden] {
    display:
        none !important;
}


.forum-delete-confirm-overlay {
    background:
        rgba(2,7,12,.68) !important;
}


.forum-delete-confirm-box {
    width:
        min(
            410px,
            calc(100vw - 38px)
        ) !important;

    padding:
        23px 24px 21px !important;

    border-radius:
        20px !important;
}


.forum-delete-confirm-title {
    font-size:
        21px !important;

    font-weight:
        700;
}


/*
 * ANNULLA:
 * niente più rettangolo bianco.
 */
.forum-delete-confirm-actions
.forum-secondary-button {
    appearance:
        none !important;

    border:
        1px solid
        rgba(210,225,240,.22)
        !important;

    border-radius:
        999px !important;

    padding:
        9px 16px !important;

    background:
        rgba(205,220,235,.08)
        !important;

    color:
        rgba(240,246,250,.90)
        !important;

    font:
        inherit !important;

    cursor:
        pointer !important;

    box-shadow:
        none !important;
}


.forum-delete-confirm-actions
.forum-secondary-button:hover,
.forum-delete-confirm-actions
.forum-secondary-button:focus-visible {
    background:
        rgba(215,230,245,.15)
        !important;

    border-color:
        rgba(225,238,248,.34)
        !important;

    color:
        white !important;

    outline:
        none !important;
}


/*
 * SÌ, CANCELLA.
 */
.forum-delete-confirm-danger {
    padding:
        9px 16px !important;

    background:
        rgba(112,31,39,.46)
        !important;

    border-color:
        rgba(235,150,160,.35)
        !important;
}


/* ---------------------------------------------------------------
   CTA
   Manteniamo l'obiettivo: circa un quinto dal fondo.
   --------------------------------------------------------------- */

.social-horizon-cta {
    top:
        80vh !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 760px) {

    .forum-focus-overlay {
        padding:
            70px 10px 16px
            !important;
    }

    .forum-focus-panel {
        width:
            100% !important;

        max-height:
            calc(100dvh - 86px)
            !important;
    }

    .forum-focus-content
    .forum-editor-shell {
        padding:
            11px !important;
    }

    .forum-focus-content
    .forum-editor-card {
        padding:
            15px 14px !important;
    }

    .social-horizon-cta {
        top:
            80vh !important;
    }
}

/* /PERCEPIBILE_FORUM_UI_REFINEMENT_V8A6_13 */


/* ================================================================
   PERCEPIBILE_FORUM_COMPACT_COMPOSER_V8A6_14
   ================================================================ */

.forum-focus-panel {
    width:
        min(700px, 80vw) !important;
}


.forum-focus-content
.forum-editor-shell {
    padding:
        7px 9px 9px !important;
}


.forum-focus-content
.forum-editor-card {
    padding:
        11px 13px !important;

    border-radius:
        16px !important;
}


.forum-focus-content
.forum-editor-heading {
    margin-bottom:
        5px !important;
}


.forum-focus-content
.forum-editor-form {
    gap:
        6px !important;
}


.forum-focus-content
.forum-editor-form label {
    margin-bottom:
        1px !important;

    font-size:
        12px !important;
}


/*
 * Vuoto: circa cinque/sei righe.
 * Poi JS auto-grow.
 */
.forum-focus-content
.forum-editor-form textarea {
    min-height:
        86px !important;

    height:
        86px;

    max-height:
        34dvh !important;

    padding:
        8px 9px !important;

    line-height:
        1.4 !important;

    box-sizing:
        border-box;

    resize:
        none !important;

    overflow-y:
        hidden;
}


.forum-focus-content
.forum-editor-form
input[type="text"] {
    padding:
        7px 9px !important;
}


.forum-focus-content
.forum-attachment-picker {
    padding:
        7px 9px !important;

    margin-top:
        2px !important;
}


.forum-focus-content
.forum-editor-actions {
    margin-top:
        5px !important;
}


@media (max-width: 760px) {

    .forum-focus-panel {
        width:
            100% !important;
    }

}

/* /PERCEPIBILE_FORUM_COMPACT_COMPOSER_V8A6_14 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_PREVIEW_GATE_CSS_V8A6_16
   ================================================================ */


/*
 * Il testo guest è già una preview server-side.
 *
 * Qui imponiamo il limite visuale:
 *
 * riga 1 -> leggibile
 * riga 2 -> leggibile
 * riga 3 -> leggibile
 * riga 4 -> sfocata
 * oltre   -> invisibile
 */
.social-layout--guest
.social-post-preview--guest {
    position:
        relative !important;

    display:
        block !important;

    line-height:
        1.55 !important;

    max-height:
        calc(1.55em * 4) !important;

    overflow:
        hidden !important;

    filter:
        none !important;

    opacity:
        1 !important;

    -webkit-mask-image:
        none !important;

    mask-image:
        none !important;

    cursor:
        pointer;
}


/*
 * Sfocatura limitata esclusivamente
 * alla fascia della quarta riga.
 */
.social-layout--guest
.social-post-preview--guest
.guest-preview-has-fourth-line {
    overflow:
        hidden !important;
}


.social-layout--guest
.social-post-preview--guest
.guest-preview-has-fourth-line::after {
    content:
        "";

    position:
        absolute;

    left:
        -3px;

    right:
        -3px;

    bottom:
        0;

    height:
        1.55em;

    pointer-events:
        none;

    background:
        rgba(10, 16, 26, .10);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/*
 * Tutta la card guest comunica
 * che è disponibile un'azione.
 */
.social-post-card--guest {
    cursor:
        pointer !important;
}


/*
 * Il vecchio link resta eventualmente
 * nel markup come indicazione testuale,
 * ma non deve competere visivamente
 * con il nuovo Gate.
 */
.social-layout--guest
.social-read-gate {
    position:
        relative;

    z-index:
        2;

    pointer-events:
        none;

    opacity:
        .72;

    text-decoration:
        none;
}


/* ---------------------------------------------------------------
   GUEST GATE
   --------------------------------------------------------------- */

.forum-guest-gate[hidden] {
    display:
        none !important;
}


.forum-guest-gate {
    position:
        fixed;

    inset:
        0;

    z-index:
        1600;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    box-sizing:
        border-box;

    padding:
        24px;

    background:
        rgba(2, 7, 12, .67);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);
}


body.forum-guest-gate-open {
    overflow:
        hidden !important;
}


.forum-guest-gate-box {
    width:
        min(
            440px,
            calc(100vw - 36px)
        );

    box-sizing:
        border-box;

    padding:
        25px 25px 22px;

    border:
        1px solid
        rgba(255,255,255,.16);

    border-radius:
        22px;

    background:
        linear-gradient(
            145deg,
            rgba(19,30,42,.94),
            rgba(7,15,25,.91)
        );

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.46);

    color:
        rgba(244,248,251,.96);
}


.forum-guest-gate-kicker {
    margin-bottom:
        8px;

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        .16em;

    text-transform:
        uppercase;

    color:
        rgba(197,213,227,.67);
}


.forum-guest-gate-title {
    margin:
        0 0 11px;

    font-size:
        24px;

    line-height:
        1.15;

    font-weight:
        650;
}


.forum-guest-gate-copy {
    margin:
        0;

    font-size:
        14px;

    line-height:
        1.55;

    color:
        rgba(222,231,239,.78);
}


.forum-guest-gate-actions {
    display:
        flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        21px;
}


.forum-guest-gate-actions
button {
    appearance:
        none;

    border-radius:
        999px;

    padding:
        9px 15px;

    font:
        inherit;

    font-size:
        13px;

    cursor:
        pointer;
}


.forum-guest-gate-secondary {
    border:
        1px solid
        rgba(220,232,242,.19);

    background:
        rgba(220,232,242,.06);

    color:
        rgba(230,238,244,.82);
}


.forum-guest-gate-primary {
    border:
        1px solid
        rgba(231,210,163,.34);

    background:
        rgba(207,179,119,.16);

    color:
        rgba(255,247,226,.97);
}


.forum-guest-gate-secondary:hover,
.forum-guest-gate-secondary:focus-visible {
    background:
        rgba(220,232,242,.12);

    outline:
        none;
}


.forum-guest-gate-primary:hover,
.forum-guest-gate-primary:focus-visible {
    background:
        rgba(207,179,119,.25);

    outline:
        none;
}


@media (max-width: 540px) {

    .forum-guest-gate {
        padding:
            16px;
    }

    .forum-guest-gate-box {
        padding:
            22px 19px 19px;
    }

    .forum-guest-gate-actions {
        flex-direction:
            column-reverse;
    }

    .forum-guest-gate-actions
    button {
        width:
            100%;
    }
}

/* /PERCEPIBILE_FORUM_GUEST_PREVIEW_GATE_CSS_V8A6_16 */


/* ================================================================
   PERCEPIBILE_FORUM_SOCIAL_ACTIONS_CSS_V8A6_17
   ================================================================ */


/* GUEST GATE — leggibilità */

.forum-guest-gate-box {
    width:
        min(
            590px,
            calc(100vw - 40px)
        ) !important;

    padding:
        34px 36px 30px !important;

    border-radius:
        25px !important;
}


.forum-guest-gate-kicker {
    margin-bottom:
        10px !important;

    font-size:
        13px !important;
}


.forum-guest-gate-title {
    margin-bottom:
        14px !important;

    font-size:
        32px !important;

    line-height:
        1.12 !important;
}


.forum-guest-gate-copy {
    font-size:
        17px !important;

    line-height:
        1.6 !important;
}


.forum-guest-gate-actions {
    gap:
        13px !important;

    margin-top:
        27px !important;
}


.forum-guest-gate-actions button {
    min-height:
        44px;

    padding:
        11px 20px !important;

    font-size:
        15px !important;
}


/* REPLY ON DEMAND */

[data-forum-reply-compose][hidden] {
    display:
        none !important;
}


.forum-reply-open-wrap {
    display:
        flex;

    justify-content:
        flex-end;

    margin-top:
        17px;
}


.forum-reply-open-button {
    appearance:
        none;

    min-width:
        110px;

    padding:
        9px 18px;

    border:
        1px solid
        rgba(230,236,242,.18);

    border-radius:
        999px;

    background:
        rgba(222,232,240,.07);

    color:
        rgba(240,245,248,.92);

    font:
        inherit;

    font-size:
        13px;

    cursor:
        pointer;
}


.forum-reply-open-button:hover,
.forum-reply-open-button:focus-visible {
    background:
        rgba(222,232,240,.13);

    outline:
        none;
}


/* LIKE */

button.social-post-stat.forum-like-button {
    appearance:
        none;

    border:
        0;

    padding:
        0;

    background:
        transparent;

    color:
        inherit;

    font:
        inherit;

    cursor:
        pointer;
}


.forum-like-heart {
    display:
        inline-block;

    min-width:
        1em;

    transition:
        transform 140ms ease;
}


.forum-like-button:hover
.forum-like-heart {
    transform:
        scale(1.12);
}


.forum-like-button.is-liked {
    color:
        rgba(244,205,190,.96);
}


.forum-like-button.is-liked
.forum-like-heart {
    text-shadow:
        0 0 11px
        rgba(230,137,112,.34);
}


@media (max-width: 600px) {

    .forum-guest-gate-box {
        padding:
            27px 22px 23px !important;
    }

    .forum-guest-gate-title {
        font-size:
            28px !important;
    }

    .forum-guest-gate-copy {
        font-size:
            16px !important;
    }
}

/* /PERCEPIBILE_FORUM_SOCIAL_ACTIONS_CSS_V8A6_17 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_HEADER_POLISH_V8A6_18
   ================================================================ */


/* ---------------------------------------------------------------
   A. GUEST GATE
   "Non ora" a sinistra / accesso a destra.
   --------------------------------------------------------------- */

.forum-guest-gate-actions {
    width:
        100% !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        space-between !important;

    gap:
        18px !important;
}


.forum-guest-gate-secondary {
    margin-right:
        auto !important;
}


.forum-guest-gate-primary {
    margin-left:
        auto !important;
}


/*
 * Su mobile manteniamo una disposizione
 * verticale più leggibile.
 */
@media (max-width: 540px) {

    .forum-guest-gate-actions {
        flex-direction:
            column-reverse !important;

        align-items:
            stretch !important;
    }

    .forum-guest-gate-secondary,
    .forum-guest-gate-primary {
        margin-left:
            0 !important;

        margin-right:
            0 !important;
    }
}


/* ---------------------------------------------------------------
   B. HEADER UNIFORME
   Nessun sottoriquadro dietro titolo e sottotitolo.
   --------------------------------------------------------------- */

.social-topbar {
    background:
        rgba(3, 7, 13, .97) !important;
}


/*
 * Questo è il riquadro centrale che oggi appare
 * come una seconda superficie nera.
 */
.social-header-identity {
    background:
        transparent !important;

    border:
        0 !important;

    box-shadow:
        none !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;
}


/*
 * Neutralizziamo anche eventuali wrapper
 * introdotti nelle versioni successive.
 */
.social-header-title-group {
    background:
        transparent !important;

    border:
        0 !important;

    box-shadow:
        none !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;
}


/*
 * Titolo e sottotitolo restano identici
 * come tipografia e posizione.
 */
.social-header-title,
.social-header-subtitle {
    background:
        transparent !important;

    box-shadow:
        none !important;
}


/* ---------------------------------------------------------------
   C. ACCEDI PIÙ CHIARO
   --------------------------------------------------------------- */

.social-topbar-button[data-auth-open] {
    background:
        rgba(255, 255, 255, .095) !important;

    border-color:
        rgba(255, 255, 255, .22) !important;

    color:
        rgba(250, 251, 252, .98) !important;
}


.social-topbar-button[data-auth-open]:hover,
.social-topbar-button[data-auth-open]:focus-visible {
    background:
        rgba(255, 255, 255, .145) !important;

    border-color:
        rgba(255, 255, 255, .30) !important;
}


/* ---------------------------------------------------------------
   D. GUEST PREVIEW
   3 righe nitide.
   4ª riga: SOLO trasparenza + blur.
   Nessuna fascia realmente scura.
   --------------------------------------------------------------- */

.social-layout--guest
.social-post-preview--guest {
    /*
     * Le prime tre righe restano completamente opache.
     * La dissolvenza avviene solo nell'ultima porzione.
     */
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 72%,
            rgba(0, 0, 0, .82) 80%,
            rgba(0, 0, 0, .52) 90%,
            rgba(0, 0, 0, .20) 100%
        ) !important;

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 72%,
            rgba(0, 0, 0, .82) 80%,
            rgba(0, 0, 0, .52) 90%,
            rgba(0, 0, 0, .20) 100%
        ) !important;
}


/*
 * Questa era la fascia scura V8A6.16.
 * Ora diventa completamente trasparente:
 * serve solo per sfocare la quarta riga.
 */
.social-layout--guest
.social-post-preview--guest
.guest-preview-has-fourth-line::after {
    background:
        transparent !important;

    /*
     * Blur della sola ultima riga.
     * Nessun colore sovrapposto.
     */
    backdrop-filter:
        blur(4.5px) !important;

    -webkit-backdrop-filter:
        blur(4.5px) !important;
}


/*
 * Neutralizza anche la vecchia regola guest
 * precedente alla V8A6.16, se ancora presente
 * nella cascata.
 */
.social-layout--guest
.social-post-body.social-post-preview--guest::after {
    background:
        transparent !important;
}


/* /PERCEPIBILE_FORUM_GUEST_HEADER_POLISH_V8A6_18 */


/* PERCEPIBILE_FORUM_WARM_HEADER_V8A6_19 */

/*
 * Header ammorbidito:
 * niente riquadro nero severo,
 * ma una fascia unica con sfumatura blu-notte -> quasi nero.
 */
.social-topbar{
    background:
        linear-gradient(
            180deg,
            rgba(3, 6, 11, .95) 0%,
            rgba(8, 16, 28, .94) 42%,
            rgba(16, 34, 58, .90) 100%
        ) !important;

    border-bottom:
        1px solid rgba(216, 228, 240, .10) !important;

    box-shadow:
        inset 0 -10px 24px rgba(18, 44, 76, .18),
        0 10px 28px rgba(0, 0, 0, .14) !important;
}

/* Neutralizza eventuali vecchi sottoblocchi scuri centrali */
.social-header-center,
.social-header-block,
.social-topbar-center,
.social-topbar-title-wrap{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.social-header-title{
    color: rgba(248, 251, 255, .98) !important;
    text-shadow:
        0 2px 6px rgba(0,0,0,.34),
        0 0 22px rgba(165, 192, 235, .12) !important;
}

.social-header-subtitle{
    color: rgba(229, 237, 247, .88) !important;
    text-shadow:
        0 1px 2px rgba(0,0,0,.28) !important;
}

.social-topbar .social-topbar-button{
    background: rgba(236, 242, 248, .12) !important;
    color: rgba(248, 250, 253, .98) !important;
    border: 1px solid rgba(233, 240, 247, .18) !important;
}

.social-topbar .social-topbar-button:hover{
    background: rgba(245, 248, 252, .20) !important;
    border-color: rgba(241, 245, 250, .28) !important;
}

/* /PERCEPIBILE_FORUM_WARM_HEADER_V8A6_19 */



/* ================================================================
   PERCEPIBILE_FORUM_SKY_HEADER_V8A6_20

   Filosofia visiva:
   - alto: cielo notturno quasi nero
   - basso: azzurro / blu cielo
   - micro-stelle solo nella zona alta
   - niente sottoriquadro centrale
   ================================================================ */

.social-topbar {
    position:
        relative !important;

    overflow:
        hidden !important;

    isolation:
        isolate;

    background:
        linear-gradient(
            180deg,

            rgba(2, 5, 10, .99)
                0%,

            rgba(5, 10, 18, .98)
                24%,

            rgba(10, 24, 41, .96)
                48%,

            rgba(24, 58, 87, .93)
                72%,

            rgba(64, 121, 160, .88)
                100%
        ) !important;

    border-bottom:
        1px solid
        rgba(196, 225, 245, .15)
        !important;

    box-shadow:
        inset
        0 -16px 34px
        rgba(99, 166, 207, .08),

        0 10px 30px
        rgba(0, 0, 0, .13)
        !important;
}


/*
 * Piccolissime stelle statiche
 * esclusivamente nella metà alta.
 *
 * Devono essere dettagli,
 * non una texture evidente.
 */
.social-topbar::before {
    content:
        "";

    position:
        absolute;

    z-index:
        0;

    inset:
        0 0 42% 0;

    pointer-events:
        none;

    opacity:
        .72;

    background-image:
        radial-gradient(
            circle at 7% 31%,
            rgba(255,255,255,.82)
                0 1px,
            transparent
                1.7px
        ),

        radial-gradient(
            circle at 17% 64%,
            rgba(235,246,255,.58)
                0 .8px,
            transparent
                1.6px
        ),

        radial-gradient(
            circle at 29% 24%,
            rgba(255,255,255,.68)
                0 .9px,
            transparent
                1.7px
        ),

        radial-gradient(
            circle at 43% 51%,
            rgba(232,244,255,.52)
                0 .7px,
            transparent
                1.5px
        ),

        radial-gradient(
            circle at 57% 18%,
            rgba(255,255,255,.76)
                0 .9px,
            transparent
                1.8px
        ),

        radial-gradient(
            circle at 67% 69%,
            rgba(231,244,255,.55)
                0 .8px,
            transparent
                1.6px
        ),

        radial-gradient(
            circle at 79% 28%,
            rgba(255,255,255,.74)
                0 .9px,
            transparent
                1.7px
        ),

        radial-gradient(
            circle at 91% 59%,
            rgba(235,247,255,.58)
                0 .75px,
            transparent
                1.5px
        );
}


/*
 * Tutti i contenuti dell'header
 * rimangono sopra il cielo.
 */
.social-topbar > * {
    position:
        relative;

    z-index:
        1;
}


/*
 * Nessuna superficie centrale separata.
 */
.social-header-identity,
.social-header-title-group {
    background:
        transparent !important;

    border:
        0 !important;

    box-shadow:
        none !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;
}


.social-header-title {
    color:
        rgba(250, 252, 255, .99)
        !important;

    text-shadow:
        0 2px 7px
        rgba(0,0,0,.32),

        0 0 23px
        rgba(158,205,237,.10)
        !important;
}


.social-header-subtitle {
    color:
        rgba(231, 241, 249, .91)
        !important;
}


/*
 * Accedi:
 * distinguibile, ma non aggressivo.
 */
.social-topbar
.social-topbar-button {
    background:
        rgba(226, 240, 249, .13)
        !important;

    border:
        1px solid
        rgba(223, 239, 250, .23)
        !important;

    color:
        rgba(251, 253, 255, .99)
        !important;
}


.social-topbar
.social-topbar-button:hover,
.social-topbar
.social-topbar-button:focus-visible {
    background:
        rgba(231, 244, 252, .20)
        !important;

    border-color:
        rgba(232, 245, 253, .32)
        !important;
}


/* /PERCEPIBILE_FORUM_SKY_HEADER_V8A6_20 */


/* ================================================================
   PERCEPIBILE_FORUM_HEADER_SKY_BLEND_V8A6_21

   - alto quasi nero e stellato
   - basso progressivamente trasparente
   - il cielo reale dello sfondo determina il colore inferiore
   - titolo centrato geometricamente nella viewport
   ================================================================ */


/* ---------------------------------------------------------------
   HEADER
   --------------------------------------------------------------- */

.social-topbar {
    position:
        relative !important;

    overflow:
        hidden !important;

    isolation:
        isolate;

    /*
     * La parte inferiore non introduce più
     * un colore azzurro artificiale.
     *
     * Diventa quasi trasparente e lascia
     * emergere direttamente il cielo reale.
     */
    background:
        linear-gradient(
            180deg,

            rgba(2, 5, 10, .99)
                0%,

            rgba(3, 7, 13, .96)
                27%,

            rgba(4, 10, 18, .84)
                48%,

            rgba(5, 14, 24, .58)
                68%,

            rgba(7, 20, 34, .26)
                84%,

            rgba(8, 24, 39, .07)
                100%
        ) !important;

    border-bottom:
        1px solid
        rgba(210, 230, 244, .10)
        !important;

    box-shadow:
        none !important;

    /*
     * Un minimo di fusione del cielo sottostante,
     * senza trasformarlo in vetro evidente.
     */
    backdrop-filter:
        blur(1.5px)
        saturate(108%)
        !important;

    -webkit-backdrop-filter:
        blur(1.5px)
        saturate(108%)
        !important;
}


/* ---------------------------------------------------------------
   STELLE NELLA SOLA PARTE ALTA
   --------------------------------------------------------------- */

.social-topbar::before {
    content:
        "";

    position:
        absolute;

    z-index:
        0;

    inset:
        0 0 43% 0;

    pointer-events:
        none;

    opacity:
        .78;

    background-image:

        radial-gradient(
            circle at 7% 24%,
            rgba(255,255,255,.88)
                0 1px,
            transparent 1.6px
        ),

        radial-gradient(
            circle at 17% 62%,
            rgba(236,247,255,.57)
                0 .75px,
            transparent 1.5px
        ),

        radial-gradient(
            circle at 29% 19%,
            rgba(255,255,255,.70)
                0 .85px,
            transparent 1.7px
        ),

        radial-gradient(
            circle at 43% 49%,
            rgba(232,245,255,.50)
                0 .7px,
            transparent 1.5px
        ),

        radial-gradient(
            circle at 57% 14%,
            rgba(255,255,255,.80)
                0 .9px,
            transparent 1.7px
        ),

        radial-gradient(
            circle at 68% 61%,
            rgba(234,246,255,.52)
                0 .75px,
            transparent 1.5px
        ),

        radial-gradient(
            circle at 79% 24%,
            rgba(255,255,255,.75)
                0 .85px,
            transparent 1.7px
        ),

        radial-gradient(
            circle at 91% 53%,
            rgba(239,248,255,.56)
                0 .75px,
            transparent 1.5px
        );
}


/* contenuti sopra il cielo */
.social-topbar > * {
    position:
        relative;

    z-index:
        2;
}


/* ---------------------------------------------------------------
   CENTRATURA REALE DEL BLOCCO TITOLO
   --------------------------------------------------------------- */

.social-header-identity {
    position:
        absolute !important;

    left:
        50% !important;

    top:
        50% !important;

    transform:
        translate(
            -50%,
            -50%
        ) !important;

    width:
        min(
            780px,
            60vw
        ) !important;

    max-width:
        none !important;

    margin:
        0 !important;

    text-align:
        center !important;

    background:
        transparent !important;

    border:
        0 !important;

    box-shadow:
        none !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;
}


.social-header-title-group {
    width:
        100% !important;

    margin:
        0 auto !important;

    text-align:
        center !important;

    background:
        transparent !important;

    border:
        0 !important;

    box-shadow:
        none !important;
}


.social-header-title,
.social-header-subtitle {
    text-align:
        center !important;
}


/*
 * Manteniamo spazio sufficiente
 * agli elementi laterali senza consentire
 * loro di spostare il titolo.
 */
.social-topbar-spacer {
    min-width:
        0 !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 760px) {

    .social-header-identity {
        width:
            min(
                68vw,
                520px
            ) !important;
    }

    .social-header-title {
        white-space:
            normal !important;
    }

}


/* /PERCEPIBILE_FORUM_HEADER_SKY_BLEND_V8A6_21 */


/* ---------------------------------------------------------------
   LAYERING TWINKLES V8A6.21
   --------------------------------------------------------------- */

#percepibile-forum-twinkles-v8a6-21 {
    pointer-events:
        none !important;

    z-index:
        0 !important;
}


.social-layout,
.social-topbar {
    position:
        relative;
}


.social-layout {
    z-index:
        1;
}


.social-topbar {
    z-index:
        10;
}


/* --------------------------------------------------------------- */


/* ================================================================
   PERCEPIBILE_FORUM_COMPACT_EMPTY_REPLY_POPOVER_V8A6_22
   ================================================================ */


/* ---------------------------------------------------------------
   A. "NESSUNA RISPOSTA PER ORA" — fascia compatta
   --------------------------------------------------------------- */

/*
 * Manteniamo il bordo e la superficie,
 * ma riduciamo drasticamente l'altezza verticale.
 */

.social-replies .social-reply-empty,
.social-replies .forum-empty-state,
.social-replies .social-empty-state,
.social-replies > p:only-child {
    min-height:
        0 !important;

    padding:
        11px 18px !important;

    margin:
        8px 0 12px !important;

    line-height:
        1.35 !important;
}


/*
 * Se il messaggio è dentro una card generica,
 * riduciamo anche quella senza toccare
 * le card delle risposte reali.
 */
.social-replies
.forum-reply-card:has(
    .social-reply-empty
),
.social-replies
.forum-reply-card:has(
    .forum-empty-state
),
.social-replies
.forum-reply-card:has(
    .social-empty-state
) {
    min-height:
        0 !important;

    padding:
        10px 16px !important;
}


/*
 * Caso attuale più probabile:
 * blocco vuoto immediatamente sotto "Risposte".
 */
.social-replies
> .forum-reply-card:only-of-type {
    min-height:
        0 !important;
}


/* ---------------------------------------------------------------
   B. HEADER — niente clipping del popup nickname
   --------------------------------------------------------------- */

/*
 * V8A6.21 usava overflow:hidden per confinare
 * cielo/stelle. Questo però taglia il popover.
 *
 * Lasciamo l'header visibile verso l'esterno:
 * il pseudo-elemento delle stelle resta comunque
 * confinato geometricamente dal proprio inset.
 */

.social-topbar {
    overflow:
        visible !important;
}


/*
 * Il popup identità deve stare sopra:
 * - header
 * - immagine di sfondo
 * - twinkles
 * - contenuto pagina
 */

.social-user-help,
.social-user-help-popover,
.social-user-help-card,
[data-social-user-help],
[data-user-help-popover] {
    position:
        absolute !important;

    z-index:
        5000 !important;
}


/*
 * Anche il contenitore nickname non deve
 * introdurre un nuovo clipping.
 */
.social-header-user,
.social-user-identity,
.social-user-area,
.social-user-help-wrap {
    overflow:
        visible !important;

    position:
        relative;

    z-index:
        5001;
}


/*
 * L'header rimane sopra il paesaggio,
 * ma il popup può estendersi sotto di lui.
 */
.social-topbar {
    z-index:
        100 !important;
}


/* /PERCEPIBILE_FORUM_COMPACT_EMPTY_REPLY_POPOVER_V8A6_22 */


/* ================================================================
   PERCEPIBILE_FORUM_EMPTY_STRIP_USER_POPOVER_REPAIR_V8A6_23
   ================================================================ */


/* ---------------------------------------------------------------
   A. "NESSUNA RISPOSTA PER ORA"
   Classe reale: .social-empty-card
   --------------------------------------------------------------- */

/*
 * Solo l'empty-state dentro la sezione Risposte.
 * Gli altri social-empty-card del forum restano invariati.
 */
.social-replies
> .social-empty-card {
    box-sizing:
        border-box !important;

    width:
        100% !important;

    height:
        42px !important;

    min-height:
        42px !important;

    max-height:
        42px !important;

    padding:
        0 16px !important;

    margin:
        8px 0 12px !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    line-height:
        1 !important;
}


/*
 * Il testo rimane centrato senza introdurre
 * altezza verticale aggiuntiva.
 */
.social-replies
> .social-empty-card {
    font-size:
        14px !important;
}


/* ---------------------------------------------------------------
   B. RIPARAZIONE NICKNAME / POPOVER
   --------------------------------------------------------------- */

/*
 * V8A6.22 aveva erroneamente reso assoluto
 * anche .social-user-help.
 *
 * Questo è il contenitore che contiene "Orso":
 * deve partecipare normalmente al layout.
 */
.social-topbar
.social-user-help {
    position:
        relative !important;

    display:
        block !important;

    visibility:
        visible !important;

    opacity:
        1 !important;

    overflow:
        visible !important;

    z-index:
        5001 !important;

    margin:
        0 !important;
}


/*
 * Il nome utente torna visibile e interattivo.
 */
.social-topbar
.social-user-help-trigger,
.social-topbar
.social-current-user.social-user-help-trigger {
    position:
        relative !important;

    display:
        inline-block !important;

    visibility:
        visible !important;

    opacity:
        1 !important;

    z-index:
        5002 !important;

    cursor:
        help !important;
}


/*
 * SOLO il popup è assoluto.
 *
 * Si ancora al nickname ma può uscire
 * verticalmente dall'header.
 */
.social-topbar
.social-user-help-popover {
    position:
        absolute !important;

    top:
        calc(100% + 12px) !important;

    right:
        0 !important;

    left:
        auto !important;

    z-index:
        10000 !important;

    visibility:
        hidden;

    opacity:
        0;

    pointer-events:
        none;

    transform:
        translateY(-5px);

    transition:
        opacity 150ms ease,
        transform 150ms ease,
        visibility 0s linear 150ms;
}


/*
 * Hover mouse.
 */
.social-topbar
.social-user-help:hover
.social-user-help-popover {
    visibility:
        visible !important;

    opacity:
        1 !important;

    pointer-events:
        auto !important;

    transform:
        translateY(0) !important;

    transition-delay:
        0s !important;
}


/*
 * Accessibilità tastiera.
 */
.social-topbar
.social-user-help:focus-within
.social-user-help-popover {
    visibility:
        visible !important;

    opacity:
        1 !important;

    pointer-events:
        auto !important;

    transform:
        translateY(0) !important;

    transition-delay:
        0s !important;
}


/*
 * Manteniamo l'header aperto verso il basso.
 * È fondamentale: uno z-index elevato non
 * può superare un overflow:hidden del genitore.
 */
.social-topbar {
    overflow:
        visible !important;
}


/*
 * La barra deve comunque restare sopra
 * paesaggio, canvas e contenuto.
 */
.social-topbar {
    z-index:
        100 !important;
}


/*
 * Le stelle dell'header restano dietro.
 */
.social-topbar::before {
    z-index:
        0 !important;
}


.social-topbar > * {
    z-index:
        2;
}


/*
 * Il blocco user deve superare gli altri figli.
 */
.social-topbar
.social-user-help {
    z-index:
        5001 !important;
}


/* ---------------------------------------------------------------
   MOBILE
   Conserviamo il comportamento storico:
   niente popover sugli schermi molto piccoli.
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-topbar
    .social-user-help-popover {
        display:
            none !important;
    }

}


/* /PERCEPIBILE_FORUM_EMPTY_STRIP_USER_POPOVER_REPAIR_V8A6_23 */


/* ================================================================
   PERCEPIBILE_FORUM_CLEAR_BACKGROUND_MANIFESTO_V8A6_25

   - niente velo globale scuro sul paesaggio
   - luminosità originale dell'immagine
   - card/header mantengono autonomamente il contrasto
   - manifesto esclusivamente guest
   ================================================================ */


/* ---------------------------------------------------------------
   A. PAESAGGIO ALLA LUMINOSITÀ ORIGINALE
   --------------------------------------------------------------- */

/*
 * Le versioni precedenti aggiungevano gradienti scuri
 * sopra il paesaggio.
 *
 * Da questa versione l'immagine è mostrata direttamente.
 */
body.social-forum-body,
.social-forum-body {
    background:
        url("/forum/static/percepibile-forum-background.png")
        center center / cover fixed no-repeat
        !important;
}


/*
 * V8A4 aveva introdotto layer separati sul body.
 * Li neutralizziamo completamente: il paesaggio viene
 * ora gestito direttamente dal background del body.
 */
body.social-forum-body::before,
body.social-forum-body::after {
    content:
        none !important;

    display:
        none !important;

    background:
        none !important;

    opacity:
        0 !important;
}


/*
 * Manteniamo trasparenti tutti i contenitori strutturali.
 * Le singole card conservano il proprio vetro scuro.
 */
.social-layout,
.social-feed-column,
.social-side-column,
.social-feed,
.social-shell {
    background:
        transparent !important;
}


/* ---------------------------------------------------------------
   B. MANIFESTO CENTRALE — SOLO GUEST
   --------------------------------------------------------------- */

.forum-guest-manifesto {
    position:
        fixed;

    z-index:
        2;

    left:
        50%;

    top:
        47vh;

    transform:
        translate(
            -50%,
            -50%
        );

    width:
        min(
            820px,
            calc(100vw - 48px)
        );

    box-sizing:
        border-box;

    text-align:
        center;

    pointer-events:
        none;

    user-select:
        none;

    color:
        rgba(
            247,
            250,
            253,
            .96
        );

    text-shadow:
        0 2px 12px rgba(0,0,0,.72),
        0 1px 3px rgba(0,0,0,.85),
        0 0 24px rgba(0,0,0,.22);
}


.forum-guest-manifesto-main {
    font-size:
        clamp(
            18px,
            1.15vw + 9px,
            27px
        );

    line-height:
        1.35;

    font-weight:
        500;

    letter-spacing:
        .005em;
}


.forum-guest-manifesto-thoughts {
    margin-top:
        10px;

    font-size:
        clamp(
            14px,
            .62vw + 8px,
            18px
        );

    line-height:
        1.45;

    font-weight:
        400;

    font-style:
        italic;

    color:
        rgba(
            244,
            248,
            252,
            .84
        );
}


/*
 * Il manifesto deve stare sopra il paesaggio
 * ma sotto popup, header e controlli.
 */
.social-topbar {
    z-index:
        100 !important;
}

.social-horizon-cta {
    z-index:
        10 !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    body.social-forum-body,
    .social-forum-body {
        background-attachment:
            scroll !important;

        background-position:
            center top !important;
    }

    .forum-guest-manifesto {
        top:
            45vh;

        width:
            calc(100vw - 32px);
    }

    .forum-guest-manifesto-main {
        font-size:
            17px;
    }

    .forum-guest-manifesto-thoughts {
        margin-top:
            8px;

        font-size:
            14px;
    }
}


/* /PERCEPIBILE_FORUM_CLEAR_BACKGROUND_MANIFESTO_V8A6_25 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_CLOUD_CARDS_V8A6_26

   Guest:
   - card molto più strette
   - quasi quadrate
   - overflow troncato senza adattare il contenuto
   - nessun effetto sul feed autenticato
   ================================================================ */


/* ---------------------------------------------------------------
   DIMENSIONE DELLE "NUVOLETTE"
   --------------------------------------------------------------- */

.social-layout--guest
.social-feed
.social-post-card--guest {
    width:
        clamp(
            300px,
            32vw,
            390px
        ) !important;

    max-width:
        390px !important;

    min-width:
        0 !important;

    aspect-ratio:
        1 / 1 !important;

    height:
        auto !important;

    max-height:
        none !important;

    overflow:
        hidden !important;

    flex:
        0 0 auto !important;
}


/*
 * Il contenuto non deve allargare la card.
 */
.social-layout--guest
.social-post-card--guest
* {
    max-width:
        100% !important;

    box-sizing:
        border-box;
}


/* ---------------------------------------------------------------
   TESTO: TAGLIO BRUTALE
   --------------------------------------------------------------- */

/*
 * Titoli molto lunghi:
 * nessuna espansione orizzontale della card.
 */
.social-layout--guest
.social-post-card--guest
.social-post-title {
    display:
        block !important;

    overflow:
        hidden !important;

    text-overflow:
        clip !important;

    overflow-wrap:
        break-word !important;

    word-break:
        normal !important;
}


/*
 * La preview mantiene il limite guest già esistente.
 * In più qualsiasi eccedenza resta fisicamente
 * confinata nel quadrato.
 */
.social-layout--guest
.social-post-card--guest
.social-post-preview--guest {
    overflow:
        hidden !important;

    max-width:
        100% !important;
}


/*
 * Nessuna scrollbar orizzontale.
 */
.social-layout--guest
.social-post-card--guest {
    overflow-x:
        hidden !important;

    overflow-y:
        hidden !important;
}


/* ---------------------------------------------------------------
   FEED GUEST
   --------------------------------------------------------------- */

/*
 * Le nuvolette rimangono elementi autonomi,
 * senza essere stirate alla larghezza del feed.
 */
.social-layout--guest
.social-feed {
    align-items:
        flex-start !important;
}


/*
 * Manteniamo un po' di aria fra una nuvoletta e l'altra.
 */
.social-layout--guest
.social-feed
.social-post-card--guest {
    margin-right:
        auto !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-layout--guest
    .social-feed
    .social-post-card--guest {
        width:
            min(
                82vw,
                330px
            ) !important;

        max-width:
            330px !important;
    }

}


/* /PERCEPIBILE_FORUM_GUEST_CLOUD_CARDS_V8A6_26 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_CLOUD_NATURAL_HEIGHT_V8A6_27

   Mantiene:
   - larghezza ridotta guest
   - taglio orizzontale
   - preview a quattro righe
   - effetto "nuvoletta"

   Rimuove:
   - aspect-ratio 1:1
   - altezza artificiale quadrata
   ================================================================ */

.social-layout--guest
.social-feed
.social-post-card--guest {
    aspect-ratio:
        auto !important;

    height:
        auto !important;

    min-height:
        0 !important;

    max-height:
        none !important;
}


/*
 * La preview resta responsabile dell'altezza naturale
 * della card secondo il limite guest già esistente.
 */
.social-layout--guest
.social-post-card--guest
.social-post-preview--guest {
    height:
        auto !important;
}


/* /PERCEPIBILE_FORUM_GUEST_CLOUD_NATURAL_HEIGHT_V8A6_27 */


/* ================================================================
   PERCEPIBILE_FORUM_COMPACT_FEED_V8A6_28

   Le card nella HOME / feed diventano molto più compatte.

   NON modifica:
   - Focus
   - topic aperto
   - editor
   - reply
   - manifesto guest
   ================================================================ */


/* ---------------------------------------------------------------
   CARD
   --------------------------------------------------------------- */

.social-feed
.social-post-card {
    padding:
        9px 11px 8px !important;

    border-radius:
        10px !important;

    margin-bottom:
        7px !important;
}


/* ---------------------------------------------------------------
   HEADER DEL POST
   --------------------------------------------------------------- */

.social-feed
.social-post-card
.social-post-header {
    margin-bottom:
        4px !important;

    gap:
        5px !important;
}


.social-feed
.social-post-card
.social-post-meta {
    font-size:
        10px !important;

    line-height:
        1.15 !important;
}


/* ---------------------------------------------------------------
   TITOLO
   --------------------------------------------------------------- */

.social-feed
.social-post-card
.social-post-title {
    font-size:
        14px !important;

    line-height:
        1.18 !important;

    margin-top:
        2px !important;

    margin-bottom:
        4px !important;
}


/* ---------------------------------------------------------------
   TESTO PREVIEW
   --------------------------------------------------------------- */

.social-feed
.social-post-card
.social-post-body,
.social-feed
.social-post-card
.social-post-preview {
    font-size:
        11.5px !important;

    line-height:
        1.28 !important;

    margin-top:
        3px !important;

    margin-bottom:
        4px !important;
}


/*
 * Feed autenticato:
 * bastano 3 righe per riconoscere il post.
 *
 * Il contenuto completo resta nel Focus.
 */
.social-layout--member
.social-feed
.social-post-card
.social-post-body {
    display:
        -webkit-box !important;

    -webkit-box-orient:
        vertical !important;

    -webkit-line-clamp:
        3 !important;

    overflow:
        hidden !important;
}


/*
 * Guest:
 * conserviamo il comportamento di preview limitata,
 * senza riallungare le nuvolette V8A6.27.
 */
.social-layout--guest
.social-feed
.social-post-card--guest
.social-post-preview--guest {
    font-size:
        11px !important;

    line-height:
        1.24 !important;
}


/* ---------------------------------------------------------------
   ATTACHMENTS NEL FEED
   --------------------------------------------------------------- */

.social-feed
.forum-feed-attachments {
    margin-top:
        5px !important;

    gap:
        5px !important;
}


.social-feed
.forum-feed-attachments img {
    max-height:
        72px !important;

    width:
        auto !important;
}


/* ---------------------------------------------------------------
   FOOTER / AZIONI
   --------------------------------------------------------------- */

.social-feed
.social-post-footer {
    margin-top:
        5px !important;

    padding-top:
        5px !important;

    gap:
        10px !important;

    font-size:
        10px !important;

    line-height:
        1 !important;
}


.social-feed
.social-post-footer button,
.social-feed
.social-post-footer a {
    font-size:
        10px !important;

    line-height:
        1 !important;
}


/* ---------------------------------------------------------------
   SPAZIO TRA LE CARD
   --------------------------------------------------------------- */

.social-feed {
    gap:
        7px !important;
}


/* ---------------------------------------------------------------
   GUEST CLOUDS
   --------------------------------------------------------------- */

/*
 * Manteniamo la larghezza ridotta V8A6.26/V8A6.27.
 * Qui riduciamo soltanto la densità interna.
 */
.social-layout--guest
.social-feed
.social-post-card--guest {
    padding:
        8px 10px 7px !important;
}


/* ---------------------------------------------------------------
   MOBILE
   --------------------------------------------------------------- */

@media (max-width: 620px) {

    .social-feed
    .social-post-card {
        padding:
            8px 9px 7px !important;
    }

    .social-feed
    .social-post-card
    .social-post-title {
        font-size:
            13px !important;
    }

    .social-feed
    .social-post-card
    .social-post-body,
    .social-feed
    .social-post-card
    .social-post-preview {
        font-size:
            11px !important;
    }
}


/* /PERCEPIBILE_FORUM_COMPACT_FEED_V8A6_28 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_PREVIEW_TIGHT_CUT_V8A6_29

   Nessuna modifica a:
   - larghezza card
   - font
   - line-height
   - numero righe
   - footer
   - Focus

   Elimina soltanto lo spazio morto dopo la quarta riga guest.
   ================================================================ */


/*
 * La preview deve terminare esattamente
 * alla quarta riga, senza margine inferiore.
 */
.social-layout--guest
.social-feed
.social-post-card--guest
.social-post-preview--guest {
    margin-bottom:
        0 !important;

    padding-bottom:
        0 !important;
}


/*
 * Il richiamo all'accesso viene immediatamente
 * dopo il cut della preview.
 *
 * Questa regola neutralizza il vecchio
 * margin-top: 14px della V8A6.2.
 */
.social-layout--guest
.social-feed
.social-post-card--guest
.social-read-gate {
    margin-top:
        0 !important;

    padding-top:
        0 !important;
}


/* /PERCEPIBILE_FORUM_GUEST_PREVIEW_TIGHT_CUT_V8A6_29 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_PREVIEW_NOTE_CENTER_V8A6_30

   - quarta riga guest invariata
   - nessuno spazio morto aggiuntivo
   - call-to-action distinta dal testo
   - call-to-action centrata
   ================================================================ */

.social-layout--guest
.social-feed
.social-post-card--guest
.social-post-preview--guest {
    margin-bottom:
        0 !important;

    padding-bottom:
        0 !important;
}


.social-layout--guest
.social-feed
.social-post-card--guest
.social-guest-readmore {
    display:
        block !important;

    width:
        100% !important;

    box-sizing:
        border-box !important;

    margin:
        1px 0 0 !important;

    padding:
        0 !important;

    text-align:
        center !important;

    color:
        rgba(214, 220, 229, .76) !important;

    font-size:
        10.5px !important;

    font-weight:
        500 !important;

    line-height:
        1.15 !important;

    letter-spacing:
        .015em !important;

    text-decoration:
        none !important;

    opacity:
        1 !important;

    pointer-events:
        none !important;
}


/*
 * Neutralizza definitivamente il vecchio
 * margin-top della social-read-gate guest.
 */
.social-layout--guest
.social-feed
.social-post-card--guest
.social-read-gate.social-guest-readmore {
    margin-top:
        1px !important;
}


/* /PERCEPIBILE_FORUM_GUEST_PREVIEW_NOTE_CENTER_V8A6_30 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_CONTINUATION_ELLIPSIS_V8A6_31
   ================================================================ */

.social-layout--guest
.social-feed
.social-post-card--guest
.social-guest-continuation {
    display:
        block;

    width:
        100%;

    margin:
        0;

    padding:
        0;

    text-align:
        center;

    color:
        rgba(215, 222, 232, .62);

    font-size:
        11px;

    font-weight:
        500;

    line-height:
        .9;

    letter-spacing:
        .12em;

    pointer-events:
        none;

    user-select:
        none;
}


/*
 * CTA ancora immediatamente sotto:
 * niente nuovo spazio morto.
 */
.social-layout--guest
.social-feed
.social-post-card--guest
.social-guest-continuation
+
.social-guest-readmore {
    margin-top:
        0 !important;
}


/* /PERCEPIBILE_FORUM_GUEST_CONTINUATION_ELLIPSIS_V8A6_31 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_ELLIPSIS_LEFT_V8A6_32

   L'ellissi appartiene al corpo del testo:
   - allineata a sinistra
   - stessa origine orizzontale della preview
   - CTA resta centrata
   ================================================================ */

.social-layout--guest
.social-feed
.social-post-card--guest
.social-guest-continuation {
    text-align:
        left !important;

    letter-spacing:
        .08em !important;
}


/* /PERCEPIBILE_FORUM_GUEST_ELLIPSIS_LEFT_V8A6_32 */


/* ================================================================
   PERCEPIBILE_FORUM_GUEST_FOUR_LINES_EXACT_V8A6_33

   La V8A6.28 usa:
       line-height: 1.24

   Il vecchio max-height era ancora:
       1.55em * 4

   Quindi lasciava spazio verticale equivalente
   a circa una quinta riga.

   Ora max-height e line-height coincidono.
   ================================================================ */

.social-layout--guest
.social-feed
.social-post-card--guest
.social-post-preview--guest {
    line-height:
        1.24 !important;

    max-height:
        calc(1.24em * 4) !important;

    margin-bottom:
        0 !important;

    padding-bottom:
        0 !important;

    overflow:
        hidden !important;
}


/* /PERCEPIBILE_FORUM_GUEST_FOUR_LINES_EXACT_V8A6_33 */


/* ================================================================
   PERCEPIBILE_FORUM_HEADER_LINKS_CSS_V8A6_34
   ================================================================ */

.social-topbar
.social-section-link {
    text-decoration: none !important;
    cursor: pointer;
}

.social-topbar
.social-section-link:hover,
.social-topbar
.social-section-link:focus-visible {
    text-decoration: none !important;
}

/* /PERCEPIBILE_FORUM_HEADER_LINKS_CSS_V8A6_34 */


/* ================================================================
   PERCEPIBILE_FORUM_REGISTER_LEGAL_CSS_V8A6_35
   ================================================================ */

.forum-register-philosophy {
    margin: 0 0 18px;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: rgba(235,242,248,.90);
    line-height: 1.45;
}

.forum-register-philosophy strong {
    color: rgba(250,252,255,.97);
}

.forum-register-philosophy p {
    margin: 7px 0 0;
}

.forum-register-thanks {
    color: rgba(229,236,243,.78);
}

.forum-register-legal-row {
    margin: 16px 0 18px;
}

.forum-register-legal-open {
    display: inline-block;
    padding: 0;
    margin: 0 0 10px;
    border: 0;
    background: transparent;
    color: rgba(225,234,243,.88);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.forum-register-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: rgba(228,236,244,.86);
    font-size: 13px;
    line-height: 1.35;
}

.forum-register-legal-check input {
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px !important;
    margin: 1px 0 0 !important;
}

html.forum-legal-open,
html.forum-legal-open body {
    overflow: hidden !important;
}

.forum-legal-overlay[hidden] {
    display: none !important;
}

.forum-legal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 28px;
    background: rgba(2,7,12,.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.forum-legal-dialog {
    position: relative;
    width: min(720px, calc(100vw - 36px));
    max-height: min(78vh, 760px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px 30px 26px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(18,28,40,.97),
            rgba(9,18,28,.96)
        );
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
    color: rgba(237,243,248,.91);
}

.forum-legal-dialog h2 {
    margin: 0 42px 18px 0;
    color: #f5f8fb;
    font-size: 22px;
    line-height: 1.25;
}

.forum-legal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: rgba(245,248,251,.88);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.forum-legal-copy {
    font-size: 14px;
    line-height: 1.58;
}

.forum-legal-copy p {
    margin: 0 0 13px;
}

.forum-legal-final {
    margin-top: 20px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.11);
    font-weight: 600;
}

.forum-legal-understood {
    margin-top: 8px;
}

@media (max-width: 620px) {

    .forum-legal-overlay {
        padding: 14px;
    }

    .forum-legal-dialog {
        width: 100%;
        max-height: calc(100dvh - 28px);
        padding: 24px 20px 20px;
    }

    .forum-legal-dialog h2 {
        font-size: 19px;
    }
}

/* /PERCEPIBILE_FORUM_REGISTER_LEGAL_CSS_V8A6_35 */


/* PERCEPIBILE_FORUM_HEADER_CLEAN_MANIFESTO_CSS_V8A6_36 */
.forum-nowrap {
    white-space: nowrap;
    display: inline-block;
}
/* /PERCEPIBILE_FORUM_HEADER_CLEAN_MANIFESTO_CSS_V8A6_36 */


/* ================================================================
   PERCEPIBILE_FORUM_OUTER_FEED_V8A6_38B
   Stessa dimensione delle card.
   Solo minore margine laterale desktop.
   ================================================================ */

@media (min-width: 1101px) {

    .social-layout--member,
    .social-layout--guest {
        padding-left:
            clamp(24px, 3.6vw, 68px) !important;

        padding-right:
            clamp(24px, 3.6vw, 68px) !important;
    }

}

#forum-new-topic-form
button[type="submit"][disabled] {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: .72;
}

/* /PERCEPIBILE_FORUM_OUTER_FEED_V8A6_38B */


/* ================================================================
   PERCEPIBILE_FORUM_MEDIA_AWARE_V8A6_39B

   HOME / FEED
   - portrait singola: immagine a destra del testo
   - landscape singola: immagine sotto
   - multi allegato: layout esistente

   TOPIC
   - immagine grande
   - proporzioni reali
   - no crop 120px
   ================================================================ */


/* ---------------------------------------------------------------
   FEED — PORTRAIT
   --------------------------------------------------------------- */

@media (min-width: 681px) {

    .social-feed
    .social-post-card.forum-media-portrait {
        display:
            grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            clamp(112px, 27%, 158px);

        grid-template-rows:
            auto
            auto
            auto
            auto;

        column-gap:
            clamp(10px, 2vw, 17px);

        align-items:
            start;
    }


    /*
     * Header, titolo e testo nella colonna sinistra.
     */
    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-header,

    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-title,

    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-body {
        grid-column:
            1;

        min-width:
            0;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-header {
        grid-row:
            1;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-title {
        grid-row:
            2;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-body {
        grid-row:
            3;
    }


    /*
     * Immagine verticale nella colonna destra.
     */
    .social-feed
    .social-post-card.forum-media-portrait
    > .forum-feed-attachments {
        grid-column:
            2;

        grid-row:
            1 / 4;

        align-self:
            start;

        display:
            flex !important;

        justify-content:
            flex-end;

        width:
            100% !important;

        margin:
            0 !important;

        padding:
            0 !important;

        gap:
            0 !important;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    .forum-feed-attachments
    .forum-post-attachment {
        display:
            flex !important;

        justify-content:
            flex-end;

        width:
            100% !important;

        max-width:
            150px !important;

        min-width:
            0 !important;

        padding:
            0 !important;

        margin:
            0 !important;

        border:
            0 !important;

        background:
            transparent !important;

        box-shadow:
            none !important;

        overflow:
            visible !important;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    .forum-feed-attachments
    img {
        display:
            block !important;

        width:
            auto !important;

        max-width:
            100% !important;

        height:
            auto !important;

        max-height:
            154px !important;

        object-fit:
            contain !important;

        border-radius:
            9px !important;

        border:
            1px solid
            rgba(255, 255, 255, .13);

        box-shadow:
            0 9px 22px
            rgba(0, 0, 0, .16);
    }


    /*
     * Footer torna a occupare l'intera card.
     */
    .social-feed
    .social-post-card.forum-media-portrait
    > .social-post-footer {
        grid-column:
            1 / -1;

        grid-row:
            4;
    }

}


/* ---------------------------------------------------------------
   FEED — LANDSCAPE SINGOLA
   --------------------------------------------------------------- */

.social-feed
.social-post-card.forum-media-landscape
.forum-feed-attachments {
    margin-top:
        7px !important;
}


.social-feed
.social-post-card.forum-media-landscape
.forum-feed-attachments
.forum-post-attachment {
    width:
        min(
            100%,
            390px
        ) !important;

    padding:
        0 !important;

    border:
        0 !important;

    background:
        transparent !important;

    overflow:
        hidden !important;

    border-radius:
        9px !important;
}


.social-feed
.social-post-card.forum-media-landscape
.forum-feed-attachments
img {
    display:
        block !important;

    width:
        100% !important;

    height:
        auto !important;

    max-height:
        165px !important;

    object-fit:
        cover !important;

    border-radius:
        9px !important;
}


/* ---------------------------------------------------------------
   TOPIC APERTO — MEDIA PRINCIPALE

   Sovrascrive il vecchio:
   height:120px + object-fit:cover
   --------------------------------------------------------------- */

.social-topic-main
.forum-topic-primary-media {
    display:
        flex !important;

    flex-wrap:
        wrap !important;

    align-items:
        flex-start !important;

    gap:
        12px !important;

    width:
        100% !important;

    margin-top:
        20px !important;
}


.social-topic-main
.forum-topic-primary-media
.forum-post-attachment {
    display:
        inline-flex !important;

    align-items:
        flex-start !important;

    justify-content:
        flex-start !important;

    width:
        auto !important;

    max-width:
        min(
            100%,
            680px
        ) !important;

    padding:
        0 !important;

    margin:
        0 !important;

    border:
        0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    overflow:
        visible !important;
}


.social-topic-main
.forum-topic-primary-media
.forum-post-attachment
img {
    display:
        block !important;

    width:
        auto !important;

    max-width:
        min(
            100%,
            680px
        ) !important;

    height:
        auto !important;

    max-height:
        min(
            72vh,
            760px
        ) !important;

    object-fit:
        contain !important;

    border-radius:
        11px !important;

    border:
        1px solid
        rgba(255, 255, 255, .14);

    box-shadow:
        0 16px 38px
        rgba(0, 0, 0, .18);
}


/* PDF mantiene una rappresentazione compatta. */
.social-topic-main
.forum-topic-primary-media
.forum-attachment-pdf {
    width:
        180px;

    height:
        120px;
}


/* ---------------------------------------------------------------
   RISPOSTE — IMMAGINI NATURALI
   --------------------------------------------------------------- */

.social-reply-card
.forum-post-attachments {
    display:
        flex !important;

    flex-wrap:
        wrap !important;

    gap:
        9px !important;
}


.social-reply-card
.forum-post-attachment {
    width:
        auto !important;

    max-width:
        320px !important;

    padding:
        0 !important;

    background:
        transparent !important;
}


.social-reply-card
.forum-post-attachment
img {
    display:
        block !important;

    width:
        auto !important;

    max-width:
        100% !important;

    height:
        auto !important;

    max-height:
        340px !important;

    object-fit:
        contain !important;

    border-radius:
        9px !important;
}


/* ---------------------------------------------------------------
   MOBILE
   Sul piccolo schermo niente doppia colonna.
   --------------------------------------------------------------- */

@media (max-width: 680px) {

    .social-feed
    .social-post-card.forum-media-portrait {
        display:
            block !important;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    > .forum-feed-attachments {
        display:
            flex !important;

        justify-content:
            flex-start;

        margin-top:
            7px !important;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    .forum-feed-attachments
    .forum-post-attachment {
        width:
            auto !important;

        max-width:
            135px !important;
    }


    .social-feed
    .social-post-card.forum-media-portrait
    .forum-feed-attachments
    img {
        max-height:
            150px !important;
    }


    .social-topic-main
    .forum-topic-primary-media
    .forum-post-attachment
    img {
        max-height:
            68vh !important;
    }

}


/* /PERCEPIBILE_FORUM_MEDIA_AWARE_V8A6_39B */
