font {font-family: Arial;}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 10px;
}

.gallery-grid .thumb {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: 0.2s;
}

.gallery-grid .thumb:hover {
    border-color: #4a90e2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gdl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
    text-align: center;
}

.gdl-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    transition: transform 0.2s ease;
}

.gdl-item img:hover {
    transform: scale(1.05);
}

.gdl-title {
    font-family: Impact, Arial Black, sans-serif;
    font-size: 20px;
    margin-top: 10px;
}

/* Tablet */
@media (max-width: 900px) {
    .gdl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .gdl-grid {
        grid-template-columns: 1fr;
    }

    .gdl-item img {
        max-width: 180px;   /* prima era 150px */
        width: auto;        /* evita che si allarghi */
    }

    .gdl-title {
        font-size: 18px;
    }
}
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.file-item span {
    font-size: 16px;
    word-break: break-word;
}

.file-item img {
    width: 40px;
    transition: 0.2s;
}

.file-item img:hover {
    opacity: 0.8;
}

/* 📱 Smartphone */
@media (max-width: 600px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .file-item span {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .file-item a img {
        width: 50px;
    }
}

/* 📱 Tablet */
@media (max-width: 900px) {
    .file-item span {
        font-size: 17px;
    }
}
