* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

header {
    text-align: center;
    padding: 20px;
}

/* Gallery Grid for Desktop */
main.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 100%;
    /* This keeps the aspect ratio square */
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image is properly scaled */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom effect for gallery images */
}

.gallery-item .description {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .description {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    transition: 0.3s;
}

/* Disable zoom effect inside the modal */
.modal-content:hover {
    transform: none;
    /* No zoom effect when image is inside the modal */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
}

.caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

header {
    text-align: center;
    padding: 20px;
}

/* Gallery Grid for Desktop */
main.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 100%;
    /* This keeps the aspect ratio square */
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image is properly scaled */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom effect for gallery images */
}

.gallery-item .description {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .description {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    transition: 0.3s;
}

/* Disable zoom effect inside the modal */
.modal-content:hover {
    transform: none;
    /* No zoom effect when image is inside the modal */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
}

.caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    font-size: 18px;
}

#striscia-arancio {
    background: #ec8223;
}

#striscia-arancio img {
    width: 75%;
    margin: 0 auto;
    display: block;
}

/* Responsive layout: single column on mobile */
@media (max-width: 600px) {
    main.gallery {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

/* Footer Styles */
footer {
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logos img {
    margin-bottom: 10px;
}

.social {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.social li {
    display: inline-block;
    margin: 0 15px;
}

.social li a {
    color: #fff;
    /* Icon color */
    font-size: 15px;
    /* Icon size */
    transition: color 0.3s ease;
}

.social li a:hover {
    color: #ccc;
    /* Hover color */
}

footer p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

/* Responsive layout: single column on mobile */
@media (max-width: 600px) {
    main.gallery {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

/* Footer Styles */
footer {
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logos img {
    margin-bottom: 10px;
}

.social {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.social li {
    display: inline-block;
    margin: 0 15px;
}

.social li a {
    color: #fff;
    /* Icon color */
    font-size: 15px;
    /* Icon size */
    transition: color 0.3s ease;
}

.social li a:hover {
    color: #ccc;
    /* Hover color */
}

footer p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}