* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.catalogo-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.pagina {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: white;
    transition: opacity 0.2s ease;
}

.contenuto-pagina {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elemento-pagina {
    position: absolute;
    pointer-events: auto;
}

.contenitore-media {
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100vh;
    margin: 0 auto;
}

.contenitore-media img,
.contenitore-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; /* Cambiato da left top a center */
    display: block;
    cursor: pointer;
}

.freccia {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 6vw, 80px);
    height: clamp(40px, 6vw, 80px);
    border: none;
    background: transparent;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 1000;
    padding: 0;
}

.freccia svg {
    width: 60%;
    height: 60%;
    stroke: currentColor;
    stroke-width: 2.5;
}

.freccia:hover {
    opacity: 0.5;
}

.freccia-sinistra {
    left: 0;  
}

.freccia-destra {
    right: 0;  
}

@media (max-width: 768px), (orientation: portrait) {
    .freccia {
        width: clamp(50px, 8vw, 70px);
        height: clamp(50px, 8vw, 70px);
        background: transparent;
    }
    
    .freccia-sinistra {
        left: 5px;
    }
    
    .freccia-destra {
        right: 5px;
    }
}

img, video, button {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}