	.description h2 {
		font-size: 1rem !important;
	}
	
	.accordion-content ul {
		padding-left: 20px;
	}
	.accordion-content li {
		list-style: circle;
		padding-left: 0px;
	} 
	
	.mobile-gallery {
		margin-top: 12px;
	}

    .radio-tile-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

      .input-container {
        position: relative;
        height:  3rem;
        width:  auto;
        margin: 0.3rem;
    }

       .radio-button {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        margin: 0;
        cursor: pointer;
    }


      .radio-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border: 1px solid {{$primarycolor}};
        border-radius: 3px;
        padding: 1rem;
        transition: transform 100ms ease;
    }

    .radio-tile-label {
        text-align: center;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;

    } 

    
      .radio-button:checked + .radio-tile {
          background-color: #ffffff;
          border: 1px solid {{$primarycolor}};
          color: #03ABA9;
          transform: scale(1.1, 1.1);
      }
    .icon svg {
        fill: #03ABA9;
        background-color: #ffffff;
    }
    .radio-tile-label {
        color: #03ABA9;
        background-color: #ffffff;
    }


      .gallery-grid-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
        .gallery-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 500px;
    }
    
    /* Video thumbnail (sinistra, 2 righe) */
    .gallery-item-video {
        grid-column: 1;
        grid-row: 1 / 3;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        background: #000;
    }

    
    
    /* Foto piccola in alto a destra */
.gallery-item-small-top {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}
    

/* Foto piccola in basso a destra */
.gallery-item-small-bottom {
    grid-column: 3;
    grid-row: 2;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}



    /* Foto piccola sinistra (50% width) */
    .gallery-item-small-left {
        grid-column: 2;
        grid-row: 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        margin-right: 4px;
    }
    
    /* Foto piccola destra (50% width) */
    .gallery-item-small-right {
        grid-column: 2;
        grid-row: 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        margin-left: 4px;
    }
    
    /* Usa subgrid per le foto piccole */
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 500px;
    }
    
    .gallery-item-video {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    
    
    .gallery-item-small-left {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }
    
    .gallery-item-small-right {
        grid-column: 3;
        grid-row: 2;
        margin: 0;
    }
    
    /* Immagini */
    .gallery-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .gallery-grid > div:hover img {
        transform: scale(1.05);
        opacity: 0.9;
    }
    
    /* Play Button */
    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        pointer-events: none;
    }
    
    .play-circle {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .gallery-item-video:hover .play-circle {
        transform: scale(1.1);
    }
    
    /* Overlay +N */
    .more-photos-overlay {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        z-index: 5;
    }
    
    /* Video container nel modal */
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: 1fr;
            grid-template-rows: 300px 200px 150px 150px;
            height: auto;
        }

        
        
        .gallery-item-video {
            grid-column: 1;
            grid-row: 1;
        }
       
        .gallery-item-small-left {
            grid-column: 1;
            grid-row: 3;
        }
        
        .gallery-item-small-right {
            grid-column: 1;
            grid-row: 4;
        }
    }

/* SENZA */

 .gallery-item-main {
        grid-column: 2;
        grid-row: 1 / 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
    }



       .gallery-grid-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 500px;
    }
    
    /* Video thumbnail (sinistra, 2 righe) */
    .gallery-item-video {
        grid-column: 1;
        grid-row: 1 / 3;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        background: #000;
    }
    
    /* Foto principale (destra in alto, stessa altezza del video) */
    .gallery-item-main {
        grid-column: 2;
        grid-row: 1 / 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
    }

    
    
    /* Foto piccola sinistra (50% width) */
    .gallery-item-small-left {
        grid-column: 2;
        grid-row: 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        margin-right: 4px;
    }
    
    /* Foto piccola destra (50% width) */
    .gallery-item-small-right {
        grid-column: 2;
        grid-row: 2;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 12px;
        margin-left: 4px;
    }
    
    /* Usa subgrid per le foto piccole */
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 500px;
    }
    
    .gallery-item-video {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .gallery-item-main {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
    
    .gallery-item-small-left {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }
    
    .gallery-item-small-right {
        grid-column: 3;
        grid-row: 2;
        margin: 0;
    }
    
    /* Immagini */
    .gallery-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .gallery-grid > div:hover img {
        transform: scale(1.05);
        opacity: 0.9;
    }
    
    /* Play Button */
    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        pointer-events: none;
    }
    
    .play-circle {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .gallery-item-video:hover .play-circle {
        transform: scale(1.1);
    }
    
    /* Overlay +N */
    .more-photos-overlay {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        z-index: 5;
    }
    
    /* Video container nel modal */
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: 1fr;
            grid-template-rows: 300px 200px 150px 150px;
            height: auto;
        }
        
        .gallery-item-video {
            grid-column: 1;
            grid-row: 1;
        }
        
        .gallery-item-main {
            grid-column: 2 / 3;
            grid-row: 1 / 3;
        }
        
        .gallery-item-small-left {
            grid-column: 1;
            grid-row: 3;
        }
        
        .gallery-item-small-right {
            grid-column: 1;
            grid-row: 4;
        }
    }




    /* Layout solo immagini (senza video) */
/* Layout solo immagini (senza video) - 2 foto a destra */
.images-only-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 500px;
}

.main-image-item {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.side-image-item {
    grid-column: 2;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.images-only-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.images-only-grid > div:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Responsive per layout solo immagini */
@media (max-width: 768px) {
    .images-only-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px repeat(3, 150px);
        height: auto;
    }
    
    .main-image-item {
        grid-column: 1;
        grid-row: 1;
    }
    
    .side-image-item {
        grid-column: 1;
    }
}


/* Singola immagine full width */
.single-image-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.single-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.single-image-container:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .single-image-container {
        height: 300px;
    }
}




@media (max-width: 768px) {
    .desktop-gallery { display: none !important; }
}

@media (min-width: 769px) {
    .mobile-gallery { display: none !important; }
}



.nav-scheda-contenuti {
    display: flex !important;           /* forza il flex */
    flex-wrap: nowrap !important;       /* evita che vada a capo */
    overflow-x: auto !important;        /* abilita lo scroll orizzontale */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;  /* scroll fluido su dispositivi touch */
    scroll-behavior: smooth;            /* scroll fluido su desktop */
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;              /* nasconde scrollbar su Firefox */
    cursor: grab;
}

.nav-scheda-contenuti::-webkit-scrollbar {
    display: none;                      /* nasconde scrollbar su Chrome/Safari/Edge */
}

.nav-scheda-contenuti.grabbing {
    cursor: grabbing;
}

.nav-scheda-contenuti .nav-item {
    flex: 0 0 auto;                     /* impedisce che si restringano */
}

.nav-scheda-contenuti .nav-link {
    display: inline-block;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background-color: #f1f5f9;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-scheda-contenuti .nav-link:hover {
    background-color: #e2e8f0;
}

.nav-scheda-contenuti .nav-link.active {
    background: linear-gradient(90deg, #007bff, #00a3ff);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.nav-scheda-contenuti::after {
    content: "";
    position: sticky;
    right: 0;
    width: 40px;
    background: linear-gradient(to left, #fff, transparent);
    pointer-events: none;
}


.carousel-control-prev {
	opacity: 1 !important;
}

.carousel-control-next{
	opacity: 1 !important;
}


@media (max-width: 820px) {
  .cont-price-mobile {
    position: relative; /* in flusso inizialmente */
    background:#fff;
    z-index:10;
  }
  .cont-price-mobile.fixed-bottom {
    position: fixed;
    left:0; right:0; bottom:0;
    box-shadow:0 -2px 8px rgba(0,0,0,.12);
	margin: 0;
  }
  .price-mobile-spacer {
    display:none;      /* si attiva solo quando fissiamo la barra */
  }
  .price-mobile-spacer.active {
    display:block;
  }
}