/* area utente desktop condivisa */

body {
  background: #f7f7f7;
}

/* ===== MENU DESKTOP ===== */
.mp-desktop-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 76px;
  height: 100vh;
  background: linear-gradient(180deg, #0c778b 0%, #16bfd8 100%);
  color: #fff;
  transition: width .18s ease;
  overflow: hidden;
  box-shadow: 8px 0 24px rgba(0,0,0,.08);
}

.mp-desktop-menu.is-open {
  width: 240px;
}

.mp-desktop-menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.mp-desktop-menu-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.mp-menu-brand {
  width: 100%;
}




/* ===== BOTTOM NAV MOBILE ===== */

.mp-mobile-bottom-nav{
  display: none;
}

@media (max-width: 991.98px) {
  body{
    padding-bottom: 96px;
  }

  .mp-mobile-bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    width: 100%;
    min-height: 78px;
    background: #efefef;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -6px 22px rgba(0,0,0,.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .mp-mobile-nav-item{
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #3d5064;
    border: 0;
    background: transparent;
  }

  .mp-mobile-nav-item:hover,
  .mp-mobile-nav-item:focus,
  .mp-mobile-nav-item:active{
    color: #3d5064;
    text-decoration: none;
    outline: none;
    box-shadow: none;
  }

  .mp-mobile-nav-item i{
    font-size: 31px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mp-mobile-nav-item-bell{
    position: relative;
  }

  .mp-mobile-notification-dot{
    position: absolute;
    top: 7px;
    right: calc(50% - 18px);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #1fb5d3;
    display: block;
  }

  .mp-mobile-notification-dot.is-hidden{
    display: none !important;
  }
}



/* ===== LOGO CHIUSO ===== */
.mp-menu-brand-mini {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mp-menu-brand-mini img {
  display: block;
  width: 34px;
  height: auto;
  object-fit: contain;
}

/* ===== LOGO APERTO ===== */
.mp-menu-brand-full {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.mp-menu-brand-full img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.mp-desktop-menu.is-open .mp-menu-brand-mini {
  display: none;
}

.mp-desktop-menu.is-open .mp-menu-brand-full {
  display: flex;
}

/* ===== TOGGLE ===== */
.mp-menu-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

.mp-menu-toggle:hover,
.mp-menu-toggle:focus,
.mp-menu-toggle:active {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.mp-menu-toggle i {
  font-size: 22px;
  line-height: 1;
}

.mp-toggle-open {
  display: none;
}

.mp-desktop-menu.is-open .mp-toggle-closed {
  display: none;
}

.mp-desktop-menu.is-open .mp-toggle-open {
  display: inline-block;
}

/* ===== NAV ===== */
.mp-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 26px;
}

.mp-menu-link,
.mp-menu-user {
  min-height: 44px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  white-space: nowrap;
  transition: background .15s ease, opacity .15s ease;
}

.mp-menu-link:hover,
.mp-menu-user:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.mp-menu-link i {
  font-size: 19px;
  line-height: 1;
  width: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* quando il menu è chiuso, centra davvero le icone */
.mp-desktop-menu:not(.is-open) .mp-menu-link,
.mp-desktop-menu:not(.is-open) .mp-menu-user {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}

.mp-desktop-menu:not(.is-open) .mp-menu-link i {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.mp-menu-text {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.mp-desktop-menu.is-open .mp-menu-text {
  display: inline;
}

.mp-menu-link.is-active {
  background: rgba(255,255,255,.12);
}

/* ===== BOTTOM ===== */
.mp-menu-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.mp-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 28px;
  background:
    radial-gradient(circle at 50% 35%, #f3d3b0 0 32%, transparent 33%),
    radial-gradient(circle at 50% 78%, #d9e2ec 0 38%, transparent 39%),
    #b7c5d3;
  border: 2px solid rgba(255,255,255,.7);
}

.mp-menu-user {
  color: #fff;
}

.mp-menu-logout {
  opacity: .95;
}

/* ===== AREA CONTENUTO ===== */
.mp-user-main {
  min-height: calc(100vh - 56px);
  margin-left: 76px;
  transition: margin-left .18s ease;
  padding: 28px 24px;
}

body.mp-menu-open .mp-user-main {
  margin-left: 240px;
}

.mp-user-content {
  min-height: calc(100vh - 140px);
  border-radius: 18px;
}

/* ===== FOOTER ===== */
.mp-user-footer {
  margin-left: 76px;
  transition: margin-left .18s ease;
  padding: 0 24px 24px;
}

body.mp-menu-open .mp-user-footer {
  margin-left: 240px;
}

.mp-user-footer-inner {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 14px;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

/* ===== SOLO MOBILE ===== */
@media (max-width: 991.98px) {
  .mp-desktop-menu {
    display: none;
  }

  .mp-user-main,
  .mp-user-footer,
  body.mp-menu-open .mp-user-main,
  body.mp-menu-open .mp-user-footer {
    margin-left: 0;
  }
}
















/* ===== PAGINE INFO PERSONALI / AZIENDALI ===== */

.mp-profile-page{
  min-height: calc(100vh - 140px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mp-profile-shell{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.mp-profile-card{
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.mp-profile-body{
  background: #f8f8f8;
  padding: 14px 18px 22px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  margin-top: -25px;
}

.mp-profile-header{
  background: linear-gradient(180deg, #0c778b 0%, #16bfd8 100%);
  color: #fff;
  padding: 18px 20px 46px;
}

.mp-profile-header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mp-profile-user{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mp-profile-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 38px;
  background:
    radial-gradient(circle at 50% 35%, #f3d3b0 0 32%, transparent 33%),
    radial-gradient(circle at 50% 78%, #d9e2ec 0 38%, transparent 39%),
    #b7c5d3;
  border: 2px solid rgba(255,255,255,.7);
}

.mp-profile-hello{
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.mp-profile-logout{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

.mp-profile-logout:hover{
  background: rgba(255,255,255,.10);
}



.mp-profile-titlebar{
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mp-profile-back{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #3a4a5c;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.mp-profile-back:hover{
  background: rgba(0,0,0,.04);
}

.mp-profile-title{
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #3a4a5c;
}

.mp-profile-title .mp-highlight-soft{
  font-weight: 800;
}

.mp-profile-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-profile-field{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mp-profile-label{
  margin: 0;
  padding-left: 4px;
  font-size: 11px;
  font-style: italic;
  color: #667789;
}

.mp-profile-input,
.mp-profile-select,
.mp-profile-fake-input{
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #ececec;
  color: #5f6d7a;
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  box-shadow: none;
}

#mpOldPassword {
  z-index: 1500;
}

.mp-profile-input:focus,
.mp-profile-select:focus{
  box-shadow: 0 0 0 .2rem rgba(17,179,207,.18);
  background: #e9eef0;
}

.mp-profile-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
}

.mp-profile-select-wrap{
  position: relative;
}

.mp-profile-select-wrap::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: .65;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2311b3cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mp-profile-fake-wrap{
  position: relative;
}

.mp-profile-fake-input{
  display: flex;
  align-items: center;
  padding-right: 50px;
  cursor: pointer;
}

.mp-profile-fake-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(17,179,207,.14);
  color: var(--mp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mp-profile-actions{
  margin-top: 12px;
}

.mp-profile-save{
  border-radius: 10px;
  height: 46px;
  font-size: 14px;
}

.mp-profile-delete{
  margin-top: 10px;
  border: 1px solid rgba(244,114,94,.35);
  background: #fff;
  color: #f26b56;
  border-radius: 10px;
  height: 42px;
  font-size: 12px;
  font-weight: 500;
}

.mp-profile-delete:hover{
  background: rgba(242,107,86,.04);
  color: #e35b47;
}

.mp-profile-loader{
  background: #fff;
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  color: #667789;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.mp-city-dropdown{
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  top: calc(100% + 4px);
  border-radius: 10px;
}

@media (max-width: 991.98px){
  .mp-user-main{
    padding: 0;
  }

  .mp-profile-page{
    min-height: 100vh;
  }

  .mp-profile-shell{
    max-width: 100%;
  }

  .mp-profile-card{
    border-radius: 0;
    box-shadow: none;
  }

  .mp-profile-body{
    min-height: calc(100vh - 90px);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
  }
}












/* ===== MODAL PROFILO ===== */

.mp-custom-modal-dialog,
.mp-logout-modal-dialog{
  max-width: 430px;
}

.mp-custom-modal-content,
.mp-logout-modal-content{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.mp-custom-modal-body{
  position: relative;
  padding: 22px 18px 18px;
  background: #fff;
}

.mp-password-modal-title{
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #314152;
  margin-bottom: 18px;
}

.mp-password-modal-lock{
  position: absolute;
  right: -20px;
  top: 26px;
  width: 122px;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17,179,207,.18);
  font-size: 122px;
  line-height: 1;
  pointer-events: none;
}

.mp-password-modal-btn{
  margin-top: 18px;
  border-radius: 10px;
  height: 46px;
  font-size: 14px;
}

.mp-password-success-icon{
  width: 58px;
  height: 58px;
  margin: 6px auto 14px;
  border-radius: 999px;
  background: var(--mp-primary);
  border: 7px solid rgba(17,179,207,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.mp-password-success-text{
  text-align: center;
  color: #556474;
  font-size: 13px;
  margin-bottom: 24px;
}

.mp-logout-modal-body{
  padding: 18px 16px 14px;
  background: #fff;
}

.mp-logout-modal-title{
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0ea2bb;
  margin-bottom: 16px;
}

.mp-logout-cancel-btn{
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.mp-logout-confirm-btn{
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0ea2bb;
  border: 1px solid #0ea2bb;
  background: #fff;
}

.mp-logout-confirm-btn:hover{
  background: rgba(17,179,207,.05);
  color: #0ea2bb;
}

@media (max-width: 575.98px){
  .mp-custom-modal-dialog,
  .mp-logout-modal-dialog{
    max-width: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }

  .mp-password-modal-title{
    font-size: 18px;
  }

  .mp-password-modal-lock{
    width: 72px;
    height: 72px;
    font-size: 72px;
    right: 16px;
    top: 28px;
  }
}





.mp-menu-avatar {
  overflow: hidden;
}

.mp-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




.mp-profile-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #f3d3b0 0 32%, transparent 33%),
    radial-gradient(circle at 50% 78%, #d9e2ec 0 38%, transparent 39%),
    #b7c5d3;
  border: 2px solid rgba(255,255,255,.7);
}

.mp-profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}