/* File: styles.css */

.roboto-<uniquifier> {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
body {
    font-family: Roboto, sans-serif; /* Arial, sans-serif; */
    margin: 0;
    padding: 0;
    background-color: #bbd3e1; /* Verde tenue */
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0080a7; /* Verde scuro */
    color: white;
    padding: 10px;
}
.logo {
    width: 130px;
}
.button-container {
    margin-top: 50px;
}
.btn {
    display: inline-block;
    background: #0080a7; /* Verde medio */
    color: white;
    padding: 15px 30px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background: #0080a7; /* Verde più scuro */
    transform: scale(1.05);
}
footer {
    margin-top: 50px;
    padding: 20px;
    background: #0080a7; /* Verde scuro */
    color: white;
}
.fade-in {
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.table-container {
    margin: 30px auto;
    width: 80%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
th {
    background: #0080a7; /* Verde contrastante */
    color: white;
}
.back-btn {
    display: block;
    width: 100px;
    margin: 20px auto;
    background: #96a9b4; /* Verde medio */
    color: white;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.back-btn:hover {
    background: #96a9b4; /* Verde più scuro */
    transform: scale(1.05);
}

/* Dissolvenza tra le pagine */
document.addEventListener("DOMContentLoaded", function() {
    document.body.classList.add("fade-in");
});

document.querySelectorAll("a").forEach(link => {
    link.addEventListener("click", function(event) {
        event.preventDefault();
        let href = this.getAttribute("href");
        document.body.style.animation = "fadeOut 1s forwards";
        setTimeout(() => { window.location.href = href; }, 1000);
    });
});
