/* Testo leggermente più grande */
.custom, .custom p, .moduletable p {
    font-size: 15px;
    line-height: 1.5;
}

.custom li, .moduletable li {
    font-size: 15px;
    line-height: 1.5;
}

.userrow h1 {
    margin: 15px 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
}

/* Base responsive fixes */
*, *::before, *::after {
    box-sizing: border-box;
}

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

iframe, video, object, embed {
    max-width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    color: #4a4a5c;
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-menu-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: #4a4a5c;
    display: inline-block;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #4a4a5c;
}

.mobile-menu-icon::before {
    top: -6px;
}

.mobile-menu-icon::after {
    top: 6px;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    max-height: 85vh;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    color: #4a4a5c;
    margin-bottom: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #4a4a5c;
}

.mobile-menu-nav a {
    display: block;
    padding: 16px 0;
    color: #4a4a5c;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
}

.mobile-menu-section {
    margin-top: 10px;
}

.mobile-menu-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa0a6;
    margin: 16px 0 6px 0;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1900;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-panel {
    transform: translateY(0);
}

body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* Cell pad fluida */
.cell_pad {
    height: auto !important;
    min-height: 0;
}

.mp_user1 .cell_pad,
.mp_user2 .cell_pad {
    height: auto !important;
    min-height: 0;
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mp_user1, .mp_user2 {
        width: 100% !important;
        float: none !important;
    }

    .cell_pad {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mp_user1 .cell_pad,
    .mp_user2 .cell_pad {
        margin: 0 0 15px 0 !important;
        min-height: auto;
    }

    .mp_bottom1, .mp_bottom2, .mp_bottom3 {
        width: 100% !important;
        float: none !important;
    }

    .mp_bottom1 .cell_pad,
    .mp_bottom2 .cell_pad,
    .mp_bottom3 .cell_pad {
        margin: 0 0 15px 0 !important;
    }

    .container {
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .cell_pad {
        min-height: 150px;
    }

    .mp_user1 .cell_pad,
    .mp_user2 .cell_pad {
        min-height: 200px;
    }
}

@media (min-width: 768px) {
    .userrow .row {
        display: flex !important;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .userrow .cell {
        float: none !important;
        display: flex;
    }

    .userrow .cell_pad {
        flex: 1;
    }

    .bottomrow .row {
        display: flex !important;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bottomrow .cell {
        float: none !important;
        display: flex;
    }

    .bottomrow .cell_pad {
        flex: 1;
    }
}

@media (max-width: 979px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mnu_mainmenu,
    ul.navv {
        display: none !important;
    }

    .mp_topmenu div.moduletable_menu {
        text-align: right;
    }

    .cell_pad {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mp_copyright .cell_pad {
        padding-right: 0 !important;
    }

    .mnu_mainmenu {
        width: 100% !important;
        position: static !important;
    }
}

@media (max-width: 480px) {
    .custom, .custom p, .moduletable p,
    .custom li, .moduletable li {
        font-size: 14px;
    }

    h3 {
        font-size: 20px;
    }
}
