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

body, html {
    height: 100vh;
    background-color: black;
    color: white;
    font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.a4-box {
    width: 70vw;
    max-width: 1200px;
    aspect-ratio: 297 / 210;

    background-color: black;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    overflow: hidden;
}

.a4-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* Barra di navigazione */
.navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: black;
    text-align: center;
    padding: 15px 0;
}
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 100px;
}
.navbar li {
    display: inline;
}
.navbar a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #2C8C7C;
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2C8C7C;
    transition: width 0.3s ease;
}
.navbar a:hover::after, .navbar .active::after {
    width: 100%;
}
/* Media Queries */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}
@media (max-width: 767px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        height: auto; /* Permette lo scroll su mobile */
    }
    body, html {
        overflow-y: auto; /* Permette lo scroll su mobile */
    }
    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }
}
/* Per schermi molto piccoli */
@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, minmax(150px, auto));
    }
}
