/* Impostazioni base */

@font-face {
    font-family: Inter;
    src: url(../assets/fonts/Inter.ttf);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter;
    margin: 0;
    padding-top: 80px;
    text-align: center;
    /*
    background: url('../assets/landing/bg3.jpg') fixed no-repeat;
    background-size: cover;
    */
    background-color: #005c77;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Colore nero con trasparenza*/
    z-index: -1;
}

.page-title {
    margin-top: 40px;
    /* Distanza dal bordo superiore */
    font-size: 2.5em;
    /* Dimensione del titolo */
    color: #ffffff;
    /* Colore del titolo */
    text-transform: uppercase;
    /* Opzionale, per il maiuscolo */
    font-family: Inter;
    font-weight: 300;
    scroll-margin-top: 170px;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pubblicazione {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.pubblicazione:hover {
    transform: scale(1.02);
}

.pubblicazione img {
    width: 100%;
    display: block;
}

.info {
    padding: 1rem;
}

.info h3 {
    margin: 0;
    font-size: 1rem;
}

.info p {
    font-size: 0.9rem;
    color: #666;
}

.title {
    text-align: center;
    font-size: 1.1em;
    margin-top: 10px;
    color: #333;
}

/* Overlay che appare sopra la pagina */
.overlay {
    display: none;
    /* Di default è nascosto */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Immagine ingrandita nell'overlay */
.overlay-img {
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
    display: block;
}

/* Pulsante per chiudere l'overlay */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

/* Media query per schermi piccoli (mobile) */
@media (max-width: 768px) {

    body {
        padding-top: 150px;
    }

    .grid {
        grid-template-columns: 1fr;
        /* Una sola colonna per mobile */
    }

    .close {
        position: absolute;
        top: 50px;
        right: 30px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        background-color: transparent;
        border: none;
    }
}