/* =========================================================
   MAKE4ME — GLOBAL CSS
========================================================= */

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    background: #f5f3ef;
    color: #242424;

    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   PALETTE MAKE4ME
========================================================= */

:root {

    --m4m-primary: #073b3d;
    --m4m-primary-dark: #052e30;

    --m4m-accent: #d85f3d;
    --m4m-accent-dark: #c95131;

    --m4m-background: #f5f3ef;
    --m4m-surface: #ffffff;

    --m4m-border: #e4e0da;

    --m4m-text: #242424;
    --m4m-text-muted: #77736e;

    --m4m-success: #47745f;
    --m4m-warning: #c58a3a;
    --m4m-danger: #a9534b;

    --m4m-sidebar-width: 260px;
}


/* =========================================================
   LAYOUT PRINCIPALE
========================================================= */

.m4m-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.m4m-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: var(--m4m-sidebar-width);
    height: 100vh;

    background: var(--m4m-primary);
    color: #ffffff;

    padding: 24px 16px;

    overflow-y: auto;

    z-index: 1000;
}


/* LOGO */

.m4m-sidebar-logo {
    display: flex;
    justify-content: center;

    padding: 8px 12px 30px;
}

.m4m-sidebar-logo img {
    display: block;
    max-width: 170px;
}


/* =========================================================
   MENU
========================================================= */

.m4m-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m4m-menu-item {
    display: flex;
    align-items: center;
    gap: 13px;

    width: 100%;

    padding: 11px 13px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.m4m-menu-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.m4m-menu-icon {
    display: inline-flex;

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

    width: 22px;
    min-width: 22px;

    font-size: 17px;
}

.m4m-menu-action {
    margin-top: 8px;

    background: var(--m4m-accent);
    color: #ffffff;
}

.m4m-menu-action:hover {
    background: var(--m4m-accent-dark);
    color: #ffffff;
}

.m4m-menu-logout {
    color: rgba(255, 255, 255, 0.65);
}

.m4m-menu-separator {
    height: 1px;

    margin: 14px 8px;

    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   CONTENUTO
========================================================= */

.m4m-content {
    width: calc(100% - var(--m4m-sidebar-width));

    min-height: 100vh;

    margin-left: var(--m4m-sidebar-width);
}


/* =========================================================
   MAIN
========================================================= */

main {
    width: 100%;
    min-height: 60vh;
}


/* =========================================================
   FEED
========================================================= */

.m4m-feed {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding: 40px 24px 60px;
}

.m4m-feed-header {
    margin-bottom: 28px;
}

.m4m-feed-header h1 {
    margin: 0 0 7px;

    color: var(--m4m-primary);

    font-size: 28px;
    font-weight: 700;
}

.m4m-feed-header p {
    margin: 0;

    color: var(--m4m-text-muted);

    font-size: 15px;
}


/* =========================================================
   POST / PROGETTO
========================================================= */

.m4m-post {
    margin-bottom: 24px;

    overflow: hidden;

    background: var(--m4m-surface);

    border: 1px solid var(--m4m-border);
    border-radius: 16px;

    box-shadow: 0 4px 16px rgba(30, 30, 30, 0.04);
}

.m4m-post-top {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 18px 20px;
}

.m4m-avatar {
    display: flex;

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

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 50%;

    background: var(--m4m-accent);

    color: #ffffff;

    font-weight: 700;
}

.m4m-post-top strong {
    display: block;

    color: var(--m4m-primary);

    font-size: 14px;
}

.m4m-post-top small {
    display: block;

    margin-top: 2px;

    color: var(--m4m-text-muted);

    font-size: 12px;
}


/* IMMAGINE */

.m4m-post-image {
    display: flex;

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

    width: 100%;
    min-height: 280px;

    background: #e9e5df;

    color: var(--m4m-text-muted);

    font-size: 14px;
}


/* CORPO */

.m4m-post-body {
    padding: 22px 20px 24px;
}

.m4m-post-body h2 {
    margin: 0 0 9px;

    color: var(--m4m-primary);

    font-size: 20px;
    font-weight: 700;
}

.m4m-post-body p {
    margin: 0 0 18px;

    color: var(--m4m-text-muted);

    font-size: 14px;
}


/* INFORMAZIONI */

.m4m-post-info {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.m4m-post-info span {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 7px;

    background: #f1eee9;

    color: var(--m4m-text-muted);

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-accent {
    background: var(--m4m-accent);
    border-color: var(--m4m-accent);

    color: #ffffff;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--m4m-accent-dark);
    border-color: var(--m4m-accent-dark);

    color: #ffffff;
}

.m4m-post-action {
    display: block;

    width: 100%;

    text-align: center;
}


/* =========================================================
   STATI PROGETTO
========================================================= */

.m4m-project-status {
    display: inline-block;

    margin-bottom: 12px;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.status-working {
    background: #f2e4d9;
    color: var(--m4m-accent-dark);
}

.status-completed {
    background: #e2ebe6;
    color: var(--m4m-success);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.m4m-mobile-menu {
    display: none;

    position: fixed;

    top: 15px;
    left: 15px;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 10px;

    background: var(--m4m-primary);
    color: #ffffff;

    font-size: 22px;

    z-index: 1100;

    cursor: pointer;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    :root {
        --m4m-sidebar-width: 240px;
    }

}


@media (max-width: 768px) {

    .m4m-sidebar {
        transform: translateX(-100%);

        transition: transform 0.25s ease;

        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.15);
    }

    .m4m-sidebar.open {
        transform: translateX(0);
    }

    .m4m-content {
        width: 100%;
        margin-left: 0;
    }

    .m4m-mobile-menu {
        display: flex;

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

    .m4m-feed {
        padding: 78px 14px 40px;
    }

    .m4m-feed-header h1 {
        font-size: 24px;
    }

    .m4m-post {
        border-radius: 13px;
    }

    .m4m-post-image {
        min-height: 220px;
    }

}


@media (max-width: 480px) {

    .m4m-feed {
        padding-left: 10px;
        padding-right: 10px;
    }

    .m4m-post-top {
        padding: 15px;
    }

    .m4m-post-body {
        padding: 18px 15px 20px;
    }

    .m4m-post-body h2 {
        font-size: 18px;
    }

    .m4m-post-image {
        min-height: 190px;
    }

}