/* RESET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

.content-wrapper {
    flex: 1;
}

/* NAVBAR PERSONALIZZATA */
.custom-navbar {
    width: 100%;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-navbar img {
    max-height: 40px;
}

.custom-navbar a {
    text-decoration: none;
    color: #333;
    padding: 10px;
}

.custom-navbar a:hover {
    color: #000;
}

/* FOOTER PERSONALIZZATO */
.custom-footer {
    width: 100%;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
}

.custom-footer a {
    margin: 0 10px;
}

/* CONTENITORE GENERALE */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 20px; /* Per evitare che la navbar copra contenuto */
}

/* TABELLE */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-table th, .custom-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.custom-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.custom-table tr:hover {
    background-color: #e6ad57a8;
    cursor: pointer;
}

/* BOTTONI */
.btn-custom {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    background-color: #e0e0e0;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-custom:hover {
    background-color: #b0b0b0;
    color: #1b1b1b;
}

/* GALLERY */
.gallery-container {
    text-align: center;
}

.gallery-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.gallery {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.lightbox {
    opacity: 0;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    top: -100%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.lightbox:target {
    opacity: 1;
    top: 0;
}

.lightbox .box {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 1px 26px -3px #777777;
    text-align: center;
    max-width: 500px;
    position: relative;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #858585;
    text-decoration: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 720px) {
    .custom-table tr {
        font-size: 12px;
    }
}

@media (min-width: 1021px) {
    .gallery {
        width: 60%;
    }
}
