html,
body {
    height: 100%;
    padding: 5px;
    margin: 0px;
/*    overflow: hidden; */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    color: rgb(60, 60, 138);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
/*    padding: 1em; */
}

h1 {
    font-size: 1.9rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.3rem;
}

h6 {
    font-size: 1.1rem;
}


/* Effetto clessidra, per dare l'impressione che il sistema sta lavorando, evita doppi click! */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.4);
    cursor: wait;
    z-index: 9999;
    display: none;
}

body.loading .loading-overlay {
    display: block;
}

.modal-header {
/*
    color: white;
    background: rgb(9, 168, 176);
*/
    background: rgb(60, 60, 138);
    font-size: large;
}
.modal-header h5 {
    color: white;
}
.modal-header .btn-close {
    filter: invert(1);
}

/* CSS per Bootstrap */

/* MOSTRA SOTTOMENU AL PASSAGGIO DEL MOUSE */
.dropdown-menu li:hover > .submenu {
    display: block;
}

/* POSIZIONE SUBMENU */
.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
}
/* Fine direttive per Bootstrap */

.sidebar a {
    text-decoration: none;
}

#contextMenu .list-group-item {
    cursor: pointer;
}
#contextMenu .list-group-item:hover {
    background-color: #f8f9fa;
}
#contextMenu .list-group-item:active {
    background-color: #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: #fbb16c !important;
    cursor: pointer;
}

.application-background {
    min-height: 100vh;
    background-image: url('/images/connect-bg.png');
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
}

/* livello di sfocatura */
.application-background::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari */
    background: rgba(150, 150, 150, 0.35);     /* overlay scuro */
    z-index: -10;
}

.navbar-brand {
    height: 50px;
/*    font-size: 2.2rem; */
    font-size: xx-large;
    font-weight: 400;
    color: rgb(60, 60, 138, 0.9);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    vertical-align: middle;
    padding-bottom: 1.8em;
    margin-left: 10px;
}
.navbar-brand:hover {
    color: rgb(229, 151, 105);
}

/* Dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
/* Evita che sparisca subito */
.navbar .dropdown-menu {
    margin-top: 0;
}

.nav-item .nav-link {
    color: rgb(60, 60, 138);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item .nav-link.active{
    color: rgb(60, 60, 138);
    font-weight: 700;
    transition: color 0.3s ease;
}

.dropdown-item {
    color: rgb(60, 60, 138);
    font-size: 1.1rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.dropdown-item:hover {
    color: rgb(229, 151, 105);
    background-color: rgb(60, 60, 138);
}

figcaption {
  font-size: 1.em !important; /* Slightly smaller than body */
  font-weight: 400;
  color: red;        /* Subtle grey */
  font-style: italic;
  text-align: center;
  margin-bottom: 1em;
}

.offcanvas {
    color: rgb(60, 60, 138);
    background-color: rgb(233, 233, 233);
}
.offcanvas-body {
  overflow-wrap: anywhere;
}

.card-3d {
    border-radius: 30px;
    overflow: hidden; /* importante per smussare anche l'immagine */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-30px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    z-index: 1;
    transform: scale(1.1);
}

.card-3d img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: transform 0.4s ease;
}

.card-3d:hover img {
    transform: scale(1.1);
}

.card-title {
    text-align: center;
    color: rgb(229, 151, 105);
    background: rgb(60, 60, 138);
    padding: .6em 0 .6em 0;
}

.card-text {
    text-align: center;
    color: rgb(60, 60, 138);
}

.cards-row {
    padding: 5em 0 5em 0;
}

.footer-custom {
    background-color: rgb(60, 60, 138); /* leggermente più scuro del body */
    color: #ffffff;
}

.footer-custom h5 {
    color: rgb(229, 151, 105);
    margin-bottom: 0.8em;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    font-size: larger;
    color: rgb(229, 151, 105);
}
