body {
    /*font-family: "Comic Sans MS", Arial, Helvetica, sans-serif; */
    background-image: url("../images/bk.jpg");
    background-repeat: repeat; 
	color: 0d6efd;
}

h1, h2, h3, h4, h5, h6 {
    color: #005ce3;
    padding: 0.2em 0.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-figure {
    display: inline-block;      /* La figura prende esattamente la larghezza dell’immagine */
    text-align: center;         /* Centra la didascalia */
    margin: 0;
}

.custom-img {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    
    /* AUMENTIAMO LA DIMENSIONE DELLA FOTO */
    max-height: 130px;          /* ← aumenta la foto */
    width: auto;                /* mantiene proporzioni */
}

.custom-figure figcaption {
    font-size: 0.80rem;
    color: #555;
    margin-top: 6px;
    line-height: 1.2;
}


.box {
	display: block;
	width: 100%;
	max-width: 975px;
	margin: 8px auto;
	padding: 10px;
	text-align: center;
	font-size: 1.1rem;
	text-decoration: none;
}

.login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    text-decoration: none;

    /* transizioni morbide */
    transition: 
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Icona leggermente più piccola */
.login-btn i {
    font-size: 1.05rem;
}

/* Hover migliorato */
.login-btn:hover {
    background: #f0f0f0;              /* leggero grigio */
    box-shadow: 0px 3px 8px rgba(0,0,0,0.25); /* ombra soft */
    transform: translateY(-2px);      /* effetto sollevamento */
}

.btn-key {
    pointer-events: auto;       /* Bottone sempre cliccabile */
    transition: opacity 0.3s ease;  /* Effetto fade su hover */
}

.btn-key:hover {
    opacity: 0.7;               /* Leggera trasparenza al passaggio del mouse */
}

h2:hover { 
    padding: 0.2em 0.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.h2-button {
    display: inline-block;          /* Come un bottone */
    padding: 0.3rem 0.8rem;        /* Spaziatura interna */
    background-color: #0d6efd;     /* Colore sfondo */
    color: #fff;                    /* Colore testo */
    border-radius: 0.375rem;        /* Angoli arrotondati */
    font-size: 1.5rem;              /* Dimensione testo */
    font-weight: 500;               /* Grassetto leggero */
    text-transform: capitalize;     /* Prima lettera maiuscola */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* Ombra */
    transition: background-color 0.3s, transform 0.2s;
}

.h2-button:hover {
	    background-color:#0646a5;
}

.btn:hover {
	background-color:#0646a5;
    transform: translateY(-2px);  
	transform: scale(1.05); 
	transition: transform 0.3s ease;
}

.navbar-brand {
    height: 100%;
    width: auto;
	padding: 0px 0px;
	object-fit: contain;
}

.navbar-logo {
    height: 100%;
    width: auto;
	padding: 0px 0px;
    object-fit: contain; /* adatta l’immagine mantenendo le proporzioni */
}

.sidebar {
  min-height: 100vh;
  border-right: 1px solid #ddd;
}

/* Menu header */
.navbar .nav-link {
  color: #fff;
  margin-right: 5px;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.2s;
}

.navbar .nav-link:hover {
  background-color: rgba(255,255,255,0.3);
  color: #fff;
}

.navbar .nav-link.active {
  background-color: #fff;
  color: #007bff;
  font-weight: bold;
}

.ico {
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Header colore e font */
table.dataTable thead th {
    background-color: #0d6efd !important; /* sfondo */
    color: white !important;               /* font */
    background-image: none !important;     /* rimuove triangolini */
}

/* Nascondi tutti i triangolini di ordinamento */
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
    content: "" !important;
}

/* Celle */
table.dataTable td {
    color: #0d6efd !important;
}

/* Label, select, info */
.dataTables_length label,
.dataTables_filter label,
.dataTables_info {
    color: #0d6efd !important;
}

.dataTables_length select {
    color: #0d6efd !important;
}
/* Centra la paginazione */
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: center !important; /* forza centratura */
    margin: 2px 0;
}

/* Nascondi input di ricerca predefinito */
.dataTables_filter {
    display: none !important;
}
.dataTables_paginate {
    float: none !important;
    margin: 0 auto;
}

/* Stile base per la tabella */
#tblFiles {
    border-collapse: collapse;
    width: 100%;
    visibility: hidden; /* Nasconde la tabella fino a quando non è pronta */
}
#tblFiles th, #tblFiles td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}
#tblFiles th {
    background-color: #f8f9fa;
}

/* Modal PDF */
#pdfModal .modal-dialog {
    max-width: 90%;   /* larghezza 90% della finestra */
}

#pdfModal .modal-body {
    height: 80vh;     /* altezza 80% della viewport */
}

#pdfFrame {
    width: 100%;
    height: 100%;
}



