body {
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #212529;
}

/* =========================
   LOGIN SOCIO
   ========================= */

.login-socio-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    box-sizing: border-box;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-card .card-body {
    padding: 2rem;
}

.logo-box {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-umanitaria {
    width: 340px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sede-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.login-card .form-label {
    font-weight: 500;
    color: #212529;
}

.login-card .form-control {
    min-height: 46px;
    border-radius: 10px;
}

.login-card .btn {
    min-height: 46px;
    border-radius: 10px;
}

.login-card a {
    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

/* =========================
   AREA RISERVATA
   ========================= */

.area-socio-shell {
    min-height: 100vh;
    background: #ffffff;
}

.area-socio-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 24px 32px 18px 32px;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
    box-sizing: border-box;
}

.area-socio-header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
}

.area-socio-logo-link {
    display: inline-block;
    text-decoration: none;
}

.area-socio-logo {
    width: 330px;
    max-width: 100%;
    height: auto;
    display: block;
}

.area-socio-header-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    min-width: 0;
}

.area-socio-user {
    margin-bottom: 12px;
}

.area-socio-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

.area-socio-user-sede {
    margin-top: 4px;
    font-size: 0.92rem;
    color: #6c757d;
    line-height: 1.2;
}

.area-socio-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.area-socio-nav a {
    color: #212529;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.2;
}

.area-socio-nav a:hover {
    text-decoration: underline;
}

.area-socio-content {
    padding: 32px;
    box-sizing: border-box;
}

/* =========================
   CARD E CONTENUTI
   ========================= */

.area-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.area-page-title {
    margin: 0 0 18px 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2a37;
}

.area-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2a37;
}

/* =========================
   PROFILO
   ========================= */

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    height: 100%;
    box-sizing: border-box;
}

.profile-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.profile-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

/* =========================
   UTILITY
   ========================= */

.text-right-desktop {
    text-align: right;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
    .area-socio-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .area-socio-header-right {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .area-socio-user {
        margin-bottom: 10px;
    }

    .area-socio-nav {
        justify-content: flex-start;
    }

    .area-socio-content {
        padding: 20px;
    }

    .area-socio-logo {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .login-socio-wrapper {
        padding: 20px 12px;
    }

    .login-card .card-body {
        padding: 1.5rem;
    }

    .logo-umanitaria {
        width: 280px;
    }

    .area-page-title {
        font-size: 1.6rem;
    }

    .area-card {
        padding: 18px;
    }

    .area-socio-nav {
        gap: 8px 14px;
    }

    .area-socio-nav a {
        font-size: 0.92rem;
    }
}

.area-table {
    margin-bottom: 0;
}

.area-table thead th {
    background: #f8f9fa;
    color: #212529;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.area-table tbody td {
    vertical-align: middle;
}

.area-filter-label {
    white-space: nowrap;
}


.login-socio-wrapper .form-control,
.login-socio-wrapper .form-select {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
}

.login-socio-wrapper .form-select {
    padding-right: 2.25rem !important;
}

.login-socio-wrapper input[type="date"].form-control {
    padding-right: 0.5rem !important;
}

.login-socio-wrapper textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
}

.password-field {
    position: relative;
}

.password-field .password-input {
    padding-right: 44px;
}

.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus {
    color: #495057;
    outline: none;
}

.password-field .password-toggle svg {
    display: block;
}


.btn-primary  {
    background-color: #7a1f3d;
    border-color: #7a1f3d;
    color: #fff;
}

 
.btn-primary:hover,
.btn-primary:focus {
    background-color: #641832;
    border-color: #641832;
    color: #fff;
}

 .btn-outline-primary,
 .btn-outline-primary {
    color: #7a1f3d;
    border-color: #7a1f3d;
    background-color: transparent;
}

 
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #7a1f3d;
    border-color: #7a1f3d;
    color: #fff;
}

 .btn-sm.btn-outline-primary {
    color: #7a1f3d;
    border-color: #7a1f3d;
}

 .btn-sm.btn-outline-primary:hover,
 .btn-sm.btn-outline-primary:focus {
    background-color: #7a1f3d;
    border-color: #7a1f3d;
    color: #fff;
}