/* RESET E IDENTICITÀ TAILWIND */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
    /* Evita scroll orizzontali indesiderati */
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-12 {
    padding-top: 4.5rem;
    padding-bottom: 0.3rem;
}

.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 1rem;
}

/* TITOLO ORIGINALE */
.avis-title-original {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
    font-size: 1.9rem;
    background: linear-gradient(to right, #b91c1c, #1e40af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .avis-title-original {
        font-size: 2.8rem;
    }
}

/* I filtri sono stati rimossi; gli stili ad essi relativi sono stati eliminati */

/* GRIGLIA ORIGINALE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LOGO HOME */
.top-left-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 110;
    display: block;
    width: clamp(60px, 15vw, 300px);
    height: auto;
    transition: transform 0.2s ease;
}

.top-left-logo:hover {
    transform: scale(1.05);
}

.top-left-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .py-12 {
        padding-top: 4rem;
    }
}

/* FRECCE AI BORDI */
.page-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.hidden-nav {
    display: none !important;
}

/* MODALE */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-large {
    max-height: 85vh;
    max-width: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 45px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.nav-btn.left {
    left: 30px;
}

.nav-btn.right {
    right: 30px;
}

/* PAGINAZIONE */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e40af;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #1e40af;
    background: white;
}

.pagination span.active {
    background: #1e40af;
    color: white;
}
