/* =========================================================================================
   STILI GENERALI
========================================================================================= */
body {
    margin: 0;
    padding: 0;
/*  font-family: Arial, sans-serif; *********/
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =========================================================================================
   TITOLO VIAGGIO
========================================================================================= */
.title-container {
    margin-bottom: 30px;
    background-color: #F4A300;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
}

.title {
    color: #0C4176;
    font-size: 26px;
    margin: 0;
}

/* =========================================================================================
   SLIDER PRINCIPALE
========================================================================================= */
.slider-container {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img,
.slide video,
.slide iframe {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background-color: #000;
}

/* =========================================================================================
   OVERLAY TITOLO SLIDE (in basso)
========================================================================================= */
.overlay-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
/*  background: rgba(0,0,0,0.5); ****************/
    font-weight: bold;
}

/* =========================================================================================
   FRECCE SLIDER
========================================================================================= */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 22px;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }


/* =========================================================================================
   PALLINI SLIDER (INDICATORI)
========================================================================================= */
.slider-dots {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #0C4176;
}


/* =========================================================================================
   MAPPA
========================================================================================= */
.map-container {
    width: 100%;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 550px;
    border: 3px solid #0C4176;
    border-radius: 10px;
}

/* =========================================================================================
   GALLERIA MINIATURE + VIDEO (YouTube, MP4)
========================================================================================= */
.grid-gallery {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.grid-gallery img,
.grid-gallery video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
    background: #000;
}

.grid-gallery img:hover,
.grid-gallery video:hover {
    transform: scale(1.05);
}

/* -----------------------------------------------------------------------------------------
   ICONA ▶️ CENTRATA SUI VIDEO (class: .video-thumb)
----------------------------------------------------------------------------------------- */
.grid-item.video-thumb {
    position: relative;
}

.grid-item.video-thumb::after {
    content: '▶';
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

/* =========================================================================================
   PAGINAZIONE MINIATURE
========================================================================================= */
.window-navigation {
    margin: 40px auto 20px;
    text-align: center;
}

.nav-button {
    display: inline-block;
    background-color: #0C4176;
    color: #fff;
    padding: 8px 14px;
    margin: 0 5px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #F4A300;
    color: #0C4176;
}

.nav-button.active {
    background-color: #F4A300;
    color: #0C4176;
    font-weight: bold;
    border: 1px solid #0C4176;
}

/* =========================================================================================
   TITOLO MINIATURA IN BASSO A SINISTRA
========================================================================================= */
.grid-item {
    position: relative;
}

.thumb-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
/*  background: rgba(0, 0, 0, 0.6);  ******************/
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}


/* =========================================================================================
   LIGHTGALLERY: CORREZIONI VISUALI E CONTATORE
========================================================================================= */
.lg-sub-html {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 20px;
    color: white;
    font-size: 14px;
}

.lg-current {
    font-weight: bold;
    color: white !important;
    font-size: 14px;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 9999;
}

/* =========================================================================================
   RESPONSIVE
========================================================================================= */
@media (max-width: 768px) {
    .title { font-size: 22px; }

    .slide img,
    .slide video,
    .slide iframe {
        height: 250px;
    }

    .map-container iframe {
        height: 350px;
    }

    .grid-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .grid-gallery img,
    .grid-gallery video {
        height: 100px;
    }

    .nav-button {
        padding: 6px 10px;
        font-size: 12px;
        margin: 0 3px;
    }
}
