/* 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; /* Previene lo scroll */
}
/* Grid Container */
.container {
    display: grid;
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 80px); /* Altezza totale meno navbar */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    margin-bottom: 0;
}
/* Blocchi */
.block {
    background-color: black;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Disporre gli elementi in colonna */
    justify-content: flex-start;
    align-items: center;
}
.fake-title {
    color: coral;
    font-size: 25px;
    font-weight: bolder;
    text-align: center;
}
.real-par {
    color: white;
    font-size: 15px;
    text-align: center;
}
/* Blocchi specifici */
/* Blocchi specifici */
.block1, .block2, .block3, .block4, .block5, .block6, .block7, .block8, .block9, .block10, .block11, .block12 {
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Immagine sopra, testo sotto */
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 20px;
    height: 100%; /* Usa tutta l'altezza disponibile della cella */
}
/* Immagini */
.block img {
    width: 100%;
    height: 100%;  /* Imposta un'altezza fissa */
    object-fit: cover; /* Le immagini si adattano mantenendo il loro rapporto di aspetto */
    transition: transform 0.3s ease-in-out;
    border-radius: 8px;
}
/* Effetto hover per l'immagine */
.block:hover img {
    transform: scale(1.1);
}
/* Colored Link */
.link-hover {
    color: #2C8C7C;
    text-decoration: none;
    transition: color 0.3s;
}
.link-hover:hover {
    color: lightblue;
}

.social-link {
    color: white;
    font-size: 25px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #2C8C7C;
}
/* 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));
    }
}
