﻿html {
    height: 100%;
}

body {
/*    min-height: 100%;
    margin: 0;
    display: table;
    width: 100%;*/
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/*    body .container {
        min-height: 200px;
    }

    body > footer {
        display: table-row;
    }
*/


header {
    background-color: #bd0303;
    color: aliceblue;
}

#content {
    flex: 1;
    padding: 20px;
}

footer {
    background-color: gold;
    padding: 20px;
    color: #000;
}

/* Footer */
/*footer {
    background-color: gold;
    color: #000;
    padding: 10px;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 50%;
}*/

/* Header */
/*header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}*/


.table-custom {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
}

.table-custom tr {
    border: 1px solid orange;
}

.table-custom tr td {
    border: 1px solid orange;
}


tr td a {
    color: rebeccapurple;
    font-size: small;
}

.custom-excel-header-cell {
    background-color: antiquewhite;
    color: navy;
    font-weight: bold;
    font-size: medium;
    font-family: Tahoma;
    white-space: nowrap;
}

.custom-excel-cell,
.custom-excel-cell-nowrap {
    background-color: azure;
    color: rebeccapurple;
    font-size: small;
    font-family: Tahoma;
    padding: 8px;
}

.custom-excel-cell-nowrap {
    white-space: nowrap;
}



/* Stile per il contenitore della galleria */

.modalImmagine {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modalImmagine-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

.modalImmagine-content img {
    width: 100%;
    height: auto;
}

.modal-text {
    color: #ffffff;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.closeImmagine {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.closeImmagine:hover,
.closeImmagine:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.gallery-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}



.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    text-decoration:none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}



/* Stili per dispositivi più piccoli */
@media only screen and (max-width: 600px) {
    .container {
        width: 100%;
    }
}