/* ========================================
   GRID E CONTAINER
   ======================================== */

.container-fluid {
    width: 100%;
    /*max-width: 1520px;*/
}

.row {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row wrap;
}

.col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 15px;
    padding-left: 15px;
}


/* ========================================
   FLEXBOX
   ======================================== */

.d-flex {
  display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-column {
    flex-direction: column;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-start {
    align-items: start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}


/* ========================================
   TABELLE
   ======================================== */

.table-listitems {
    max-height: calc(100vh - 350px);
    overflow: auto;
}

.panel-body:has(.nav.nav-tabs) .table-listitems {
    max-height: calc(100vh - 400px);
}

@media screen and (max-width: 767px) {
    .table-responsive {
        margin-bottom: 0;
        border: 0;
    }
}


/* ========================================
   MEDIA OBJECT
   ======================================== */

.media {
    margin-top: 15px;
}

.media:first-child {
    margin-top: 0;
}

.media,
.media-body {
    overflow: hidden;
    zoom: 1;
}

.media-body {
    width: 10000px;
}

.media-object {
    display: block;
}

.media-object.img-thumbnail {
    max-width: none;
}

.media-right,
.media > .pull-right {
    padding-left: 10px;
}

.media-left,
.media > .pull-left {
    padding-right: 10px;
}

.media-left,
.media-right,
.media-body {
    display: table-cell;
    vertical-align: top;
}

.media-middle {
    vertical-align: middle;
}

.media-bottom {
    vertical-align: bottom;
}

.media-heading {
    margin-top: 0;
    margin-bottom: 5px;
}

.media-list {
    padding-left: 0;
    list-style: none;
}


/* ========================================
   WELL
   ======================================== */

.well {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.well-lg {
    padding: 24px;
    border-radius: 0;
}

.well-sm {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    border-radius: 0;
}


/* ========================================
   MODAL
   ======================================== */

.modal .close {
    color: #222222;
}

.modal-content {
    border: 0;
    border-radius: 15px;
    outline: 0;
}

.modal-text {
    margin: 0;
}

.modal-header {
    padding: 30px 30px 0;
    border-bottom: none;
}

.modal-header .close {
    margin-top: -2px;
}

.modal-body {
    padding: 30px 30px 0;
    font-size: 17px;
}

.modal-footer {
    padding: 30px;
    border-top: none;
}

@media (min-width: 768px) {
    .modal-content {
        box-shadow: 0 2px 10px rgb(16 16 16 / 15%);
        -webkit-box-shadow: 0 2px 10px rgb(16 16 16 / 15%);
    }
    .modal-sm {
        width: 500px;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        width: 900px;
    }
}


/* ========================================
   CARD
   ======================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.login .card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.card-group > .card {
  margin-bottom: 0.75rem;
}

.card-custom {
  overflow: hidden;
  border-radius: 10px;
  min-height: 450px;
  border: 0;
  box-shadow: 0 0 15px rgba(10, 10, 10, 0.08);
}

.card-custom-1 {
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(10, 10, 10, 0.08);
    box-sizing: border-box;
    border: 0 transparent;
}

@media (min-width: 576px) {
  .card-group {
    display: flex;
    flex-flow: row wrap;
  }
  .card-group > .card {
    flex: 1 0 0;
    margin-bottom: 0;
  }
  .card-group > .card + .card {
    margin-left: 0;
    border-left: 0;
  }
  .card-group > .card:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .card-group > .card:not(:last-child) .card-img-top,
  .card-group > .card:not(:last-child) .card-header {
    border-top-right-radius: 0;
  }
  .card-group > .card:not(:last-child) .card-img-bottom,
  .card-group > .card:not(:last-child) .card-footer {
    border-bottom-right-radius: 0;
  }
  .card-group > .card:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .card-group > .card:not(:first-child) .card-img-top,
  .card-group > .card:not(:first-child) .card-header {
    border-top-left-radius: 0;
  }
  .card-group > .card:not(:first-child) .card-img-bottom,
  .card-group > .card:not(:first-child) .card-footer {
    border-bottom-left-radius: 0;
  }
}


/* ========================================
   PROGRESS E IMMAGINI
   ======================================== */

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.image-above-progress {
    margin-left: 1.25rem;
    width: 7%;
    position: relative;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
}

.image-above-progress img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}


/* ========================================
   DEVICE BOX
   ======================================== */

.device-box {
  display: flex;
  flex-direction: column;
}

.device-box span {
    font-weight: 500;
}


/* ========================================
   CONTAINER SORTLIST
   ======================================== */

.container-sortlist {
  overflow-y: auto;
}


/* ========================================
   NAVIGAZIONE - NAVBAR BASE
   ======================================== */

.navbar-header:before,
.navbar-header:after,
.nav:before,
.nav:after {
    display: none !important;
}

.navbar .navbar-toggle:hover .icon-bar {
    background-color: #b3b3b3;
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-collapse {
    border-top-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

.navbar .btn {
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-form .form-control {
    height: auto;
    padding: 4px 6px;
}

.navbar-text {
    margin: 12px 15px;
    line-height: 21px;
}


/* ========================================
   NAVIGAZIONE - NAVBAR DROPDOWN
   ======================================== */

.navbar .dropdown-menu > li > a,
.navbar .dropdown-menu > li > a:focus {
    background-color: transparent;
    font-size: 15px;
    font-weight: 400;
}

.navbar-default .dropdown-menu > li > a,
.navbar-default .dropdown-menu > li > a:focus {
    color: var(--color-white);
}

.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > .active > a,
.navbar-default .dropdown-menu > .active > a:hover {
    background-color: #272727;
}

.navbar-inverse .dropdown-menu > li > a {
    padding: 10px;
    border-radius: 5px;
}

.navbar-inverse .dropdown-menu > li > a,
.navbar-inverse .dropdown-menu > li > a:focus {
    color: var(--color-dark);
}

.navbar-inverse .dropdown-menu > li > a:hover,
.navbar-inverse .dropdown-menu > .active > a,
.navbar-inverse .dropdown-menu > .active > a:hover {
    background: #f7f7f7;
}


/* ========================================
   NAVIGAZIONE - NAVBAR PROFILE
   ======================================== */

#navbar-profile {
    border-top: 1px solid rgba(255, 255, 255, .25);
    min-width: 200px;
}

#navbar-profile > .nav > li {
    margin: 0;
}


/* ========================================
   NAVIGAZIONE - MEGA MENU
   ======================================== */

@media screen and (min-width: 768px) {
    .dropdown-menu.mega-menu {
        display: none;
        position: absolute;
        margin: 0 auto;
        padding: 0 10px 10px !important;
        border-radius: 10px !important;
        z-index: 9999;
    }

    .dropdown.open > .dropdown-menu.mega-menu {
    }

    .dropdown-menu.mega-menu.show {
        display: block;
    }

    .menu-chapter {
        gap: 8px;
        color: var(--color-dark);
        padding: 15px 6px 10px;
        font-size: 15px;
        align-items: center;
        display: flex;
        margin: 0 !important;
        border-radius: 5px;
    }

    .mega-row {
        display: flex;
        flex-direction: row;
        gap: 7px;
        justify-content: space-around;
    }

    .mega-col {
        flex-direction: column;
    }

    .mega-col li a {
        display: flex;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 15px;
        color: var(--color-dark);
        text-decoration: none;
    }

    .mega-col li a:hover {
        background: #f7f7f7;
    }
}


/* ========================================
   LOGIN - LAYOUT PRINCIPALE
   ======================================== */

div.login {
    height: 850px;
    display: flex;
    align-items: center;
}

#loginbox,
.panel-login {
  height: calc(100vh - 1px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: start;
  margin-bottom: 0;
  z-index: 999;
}


/* ========================================
   LOGIN - BRAND E LOGHI
   ======================================== */

.panel-login .brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-claim img.brand,
.panel-login .brand img {
  width: 100%;
  height: auto;
  filter: invert();
  margin-bottom: 30px;
}

.text-claim img.brand {
  max-width: 90px;
}

.panel-login .brand img {
  max-width: 60px;
}

.brand-logo {
    max-height: 50px;
}

.logo-disclaimer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.logo-disclaimer img {
  width: 100%;
  height: auto;
  max-width: 150px;
}


/* ========================================
   LOGIN - CONTAINER E LAYOUT
   ======================================== */

.panel-login .container-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-login .container-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
}

.panel-login .panel-title {
  width: 100%;
  display: flex;
  justify-content: center;
}

.panel-login .panel-heading {
  display: flex;
  justify-content: center;
  height: 30%;
}

.panel-login .panel-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 70%;
}

.panel-login .container-form {
  flex-grow: 1;
}


/* ========================================
   LOGIN - FORM
   ======================================== */

.container-form .form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.panel-login .control-group {
  max-width: 80%;
}

.panel-login .control-group input[type="submit"] {
  margin-top: 30px;
}


/* ========================================
   LOGIN - TESTO E DISCLAIMER
   ======================================== */

.panel-login .text-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgb(29 33 39 / 40%);
  text-align: center;
  padding: 5px 15px;
}

.text-claim {
  position: absolute;
  height: 40vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  font-size: 28px;
  font-weight: 200;
  text-align: center;
}

.text-claim strong {
  font-size: 46px;
  font-weight: 800;
}


/* ========================================
   LOGIN - SELEZIONE LINGUA
   ======================================== */

.login-language {
  width: 100%;
  display: flex;
  justify-content: end;
  z-index: 2;
}

.login-language .navbar-nav {
  padding: 0;
  margin: 0;
}

.login-language .navbar-nav > li > a {
  font-size: 13px;
  border-radius: 6px;
}

.login-language .navbar-nav > li > a .caret {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.login-language .navbar-nav > li > .dropdown-menu {
  left: -50px;
}


/* ========================================
   GENEALOGY TREE - SCROLLBAR
   ======================================== */

.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 8px;
}

.genealogy-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: #212121;
    border-radius: 10px;
    transition: 0.5s;
}

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #d5b14c;
    transition: 0.5s;
}


/* ========================================
   GENEALOGY TREE - STRUTTURA
   ======================================== */

.genealogy-body {
    white-space: nowrap;
    overflow-y: hidden;
    padding: 0 50px 50px;
    text-align: center;
}

.genealogy-tree {
  display: inline-block;
}

.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 0 0 0;
}

.genealogy-tree li::before,
.genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 18px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:only-child {
    padding-top: 0;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}

.genealogy-tree li:first-child::after {
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}

.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

.genealogy-tree li a {
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma, sans-serif;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.genealogy-tree li a:hover+ul li::after,
.genealogy-tree li a:hover+ul li::before,
.genealogy-tree li a:hover+ul::before,
.genealogy-tree li a:hover+ul ul::before {
    border-color: #fbba00;
}

.genealogy-tree > ul > li.first-node::before,
.genealogy-tree > ul > li.first-node::after {
  content: none;
  border: none;
}


/* ========================================
   GENEALOGY TREE - MEMBRI
   ======================================== */

.member-view-box {
    padding: 0 10px;
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.member-image {
    position: relative;
}

.member-image img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-color: #000;
    z-index: 1;
}

.member-details {
    padding: 0 10px;
}


/* ========================================
   DRAG AND DROP
   ======================================== */

[draggable="true"] {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

ul.moveable,
ul.order_position {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

ul.moveable li {
    list-style-image: none;
    margin: 10px 0 10px 0;
    cursor: move;
}

ul.moveable li:hover {
    background-color: #eee;
}

ul.order_position li {
    list-style-image: none;
    padding: 10px 0 10px 2px;
}


/* ========================================
   MEDIA QUERIES - RESPONSIVE FLEXBOX
   ======================================== */

@media screen and (min-width:768px) {
    .flex-sm-row {
        flex-direction: row !important;
    }
    .flex-md-row {
        flex-direction: row !important;
    }
    .border-top-md-0 {
        border-top: 0 !important;
    }
}

@media screen and (min-width:960px) {
    .flex-sm-row {
        flex-direction: row !important;
    }
    .flex-md-row {
        flex-direction: row !important;
    }
    .flex-lg-row {
        flex-direction: row !important;
    }
    .align-items-lg-center {
        align-items: center;
    }
}


/* ========================================
   MEDIA QUERIES - RESPONSIVE NAVBAR
   ======================================== */

@media screen and (max-width: 768px) {
    .navbar-header,
    .navbar-collapse {
        width: 100%;
    }

    #navbar-profile {
        margin-bottom: 15px;
    }
}

@media (max-width:990px) {
  .navbar-brand {
      display: flex;
      align-items: center;
      padding: 0 15px;
      line-height: initial;
  }

  .navbar-collapse {
    align-items: center;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
    #navbar-profile {
        padding-right: 0;
        padding-left: 0;
    }

    #navbar-profile .dropdown-toggle:has(.f16) {
        margin-right: 10px;
    }
}

@media screen and (min-width: 991px) {
    .navbar-header {
        margin-right: 10px;
    }
}


/* ========================================
   MEDIA QUERIES - MEGA MENU RESPONSIVE
   ======================================== */

@media screen and (min-width: 768px) and (max-width: 960px) {
    .dropdown-menu.mega-menu {
        top: 97px;
    }
}

@media screen and (min-width: 960px) and (max-width: 1330px) {
    .dropdown-menu.mega-menu {
        top: 63px;
    }
}

@media screen and (min-width: 1330px) {
    .dropdown-menu.mega-menu {
    }
}


/* ========================================
   MEDIA QUERIES - VARIE
   ======================================== */

@media only screen and (max-width: 600px) {
  .columns {
    width: 100%;
  }
}

