/* === Layout Principale === */
.onp-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.onp-main-content-area {
    flex: 1;
    min-width: 0;
}

.onp-sidebar-wrapper {
    width: 360px;
    flex-shrink: 0;
}

/* === Media Queries Layout Principale === */
@media (max-width: 999px) {
    .onp-layout-wrapper {
        flex-direction: column;
    }

    .onp-sidebar-wrapper {
        width: 100%;
        margin-top: 2rem;
    }

    .onp-actions-join {
        padding-top: 1rem;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1;
    }

    .onp-actions-join a.button {
        max-width: 90%;
        margin: 0 auto 1rem;
    }
}

/* === Sidebar === */
.onp-sidebar {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.onp-sidebar .rdd-logo {
    text-align: center;
}

.onp-sidebar .rdd-logo img {
    max-width: 80% !important;
    width: 160px !important;
    height: auto;
}

.onp-sidebar .button {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border-radius: 10px;
    position: relative;
    transition: opacity 0.15s ease-in-out;
}

.onp-actions>a.button:last-of-type {
    margin-bottom: 0;
}

.onp-sidebar .button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.onp-sidebar .button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* === Copertina === */
.onp-cover-image-container {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f0f2f5;
}

.onp-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.onp-cover-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

/* === Identità (logo + titolo) === */
.onp-identity-block {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.has-cover-image .onp-identity-block {
    padding: 0 16px;
    align-items: flex-end;
    transform: translateY(-70%);
    margin-bottom: -80px;
    position: relative;
    z-index: 2;
}

.onp-logo-container {
    flex-shrink: 0;
}

.onp-logo {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 0 !important;
    border-radius: 10px;
    border: 2px solid #fff;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    box-sizing: border-box;
}

/* === Titoli e Headings === */
.entry-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.entry-header .entry-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.onp-main-content-area h2 {
    font-size: 1.6rem;
}

.main-content hr {
    border: none;
    height: 3px;
    width: 100%;
    max-width: 360px;
    background-color: var(--nectar-accent-color);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* === Stats Section === */
.stats-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stats-text-content {
    flex-grow: 1;
}

.stats-text-raised {
    font-size: 22px;
    font-weight: 600;
}

.stats-text-target {
    font-size: 14px;
    line-height: 1.4;
    color: #6f6f6f;
}

.stats-chart-wrapper {
    flex-shrink: 0;
}

/* === Media Queries Stats Section === */
@media (max-width: 600px) {
    .stats-container {
        flex-direction: column;
        text-align: center;
    }
}

/* === Circular Progress Chart === */
.circular-progress-container {
    position: relative;
    max-width: 80px;
}

.circular-progress-container svg {
    display: block;
    margin: 0 auto;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
}

.progress-ring-bg,
.progress-ring-fg {
    stroke-linecap: round;
}

.progress-ring-bg {
    stroke: #e9ecef;
}

.progress-ring-fg {
    stroke: #00b894;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.5s ease-out;
}