:root {
    --navy: #0d1b2a;
    --lime: #9bea24;
}

body {
    background: #f3f6f8;
    color: #17212b;
}

.bg-run {
    background: var(--navy);
}

.btn-lime {
    background: var(--lime);
    border: 0;
    color: #122014;
    font-weight: 800;
}

.btn-lime:hover {
    background: #82d615;
    color: #122014;
}

.card {
    border: 0;
    border-radius: 20px;
}

.hero {
    background: linear-gradient(135deg, #0d1b2a, #294761);
    color: #fff;
    border-radius: 26px;
}

.feed {
    max-width: 780px;
    margin: auto;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}

/* IMMAGINI E VIDEO DEI POST
   Tutti hanno lo stesso riquadro.
   L'immagine originale mantiene le proporzioni e NON viene ritagliata. */
.post-media {
    width: 100%;
    height: 450px;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    display: block;
    background: #eef1f3;
}

.metric {
    font-weight: 800;
    font-size: 1.12rem;
}

.small-muted {
    font-size: .82rem;
    color: #7a8792;
}

.comment {
    background: #f1f4f6;
    border-radius: 15px;
    padding: 10px 14px;
}

.filterbar {
    max-width: 780px;
    margin: auto;
}

.profile-cover {
    height: 190px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0d1b2a, #55758f);
}

.profile-avatar {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin-top: -58px;
}

.post-card {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
}

.post-menu {
    position: relative;
}

.post-menu .dropdown-toggle::after {
    display: none;
}

.post-menu-btn {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    padding: 2px 8px;
    color: #66727c;
}

.post-menu-btn:hover {
    color: #0d1b2a;
}

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

    /* Stesso riquadro per tutte le immagini anche su smartphone */
    .post-media {
        width: 100%;
        height: 300px;
        object-fit: contain;
        object-position: center;
    }

    .profile-cover {
        height: 150px;
    }

    .profile-avatar {
        width: 95px;
        height: 95px;
    }
}
