/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/



/* Selezione testo */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Leggi di più - read more*/
.enable-read-more.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 15; /* Mostra solo 15 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sommario > ul {
    padding: 0;
    margin: 0;
	list-style: none;
}
#sommario > ul > li > a {
	border-bottom: 1px solid var(--base);
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: fit-content;
    display: -webkit-box;
}

/* Rimozione desktop paginazione slider Splide  */

ul.splide__pagination {
	display: none;
}


/* Hotspot Mappa */ 



/* SVG sopra l'immagine */
.lines-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Linee tratteggiate */
.hotspot-line {
  transition: stroke-dashoffset 0.6s ease, stroke 0.6s ease;
  stroke-dasharray: 4, 2; /* Linea tratteggiata */
}

/* Animazione della linea al passaggio del mouse */
.hotspot-line.animate-line {
  stroke-dashoffset: 0; /* La linea viene disegnata */
  stroke: var(--evento-color); /* Cambia il colore della linea durante l'animazione */
}

/* Progressivo colorare ogni singolo dash della linea */
.hotspot-line.animate-line {
  animation: colorDash 1s forwards;
}

@keyframes colorDash {
  0% {
    stroke: black;
  }
  100% {
    stroke: var(--evento-color); /* Cambia il colore a rosso durante l'animazione */
  }
}







/* Spostamento su mobile */
@media (max-width: 768px) {
  .pin {
    transform: none;
  }
}

.hotspot-marker {
 /* Usa variabili CSS per il posizionamento */
	/*
	position: absolute;  
    top: var(--top);
    left: var(--left);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
	*/
	
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  /*transform: translate(-50%, -50%);*/
  pointer-events: auto;
	transition: transform 0.3s ease-in-out;
  
    button {
        background: var(--black);
        color: var(--white);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 14px;
    } 
 

}

/* Esempi di posizionamento tramite classi */
/*
.marker-1 { --top: 21%; --left: 16%; }
.marker-2 { --top: 40%; --left: 37%; }
.marker-3 { --top: 35%; --left: 47%; }
.marker-4 { --top: 58%; --left: 36%; }
.marker-5 { --top: 50%; --left: 37%; }
.marker-6 { --top: 50%; --left: 40%; }
.marker-7 { --top: 54%; --left: 38%; }
.marker-8 { --top: 55%; --left: 41%; }
.marker-9 { --top: 54%; --left: 44%; }
.marker-10 { --top: 51%; --left: 51%; }
.marker-11 { --top: 80%; --left: 57%; }
.marker-12 { --top: 59%; --left: 61%; }
.marker-13 { --top: 52%; --left: 69%; }
*/

/* Effetto hover */
.hotspot-marker:hover {
    transform: scale(1.1);
}

/* Marker attivo: si raddoppia di grandezza */
.hotspot-marker.active {
    transform: scale(1.3);
	button {
        background: var(--evento-color);
        color: var(--black);
    } 
}



/* Card nascosta */
/* Card nascosta */
.hotspot-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
     visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    
}

.hotspot-card .splide.is-initialized, .hotspot-card .splide.is-rendered {
    visibility: hidden;
}

/* Card attiva */
.hotspot-card.active {
  visibility: visible;
    opacity: 1;
    transform: translateY(0);
    gap: 30px;
    transition: opacity 0.3s ease, transform 0.3s ease; 
    pointer-events: auto;
  display: flex;
}


.hotspot-card.active .splide.is-initialized, .hotspot-card.active .splide.is-rendered {
    visibility: visible;
}

@media screen and (max-width: 767px) {
  /* Card attiva */
    .hotspot-card.active {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }
}


/* End mappa */


/* Menù color */

li.menu-color__edu.current-menu-item > a {
    color: var(--edu-color);
}
li.menu-color__edu.current-menu-item > a::after {
    background: var(--edu-color);
}

li.menu-color__museo.current-menu-item > a {
    color: var(--museo-color);
}
li.menu-color__museo.current-menu-item > a::after {
    background: var(--museo-color);
}

li.menu-color__eventi.current-menu-item > a {
    color: var(--evento-color);
}
li.menu-color__eventi.current-menu-item > a::after {
    background: var(--evento-color);
}

li.menu-color__fon.current-menu-item > a {
    color: var(--fondazione-color);
}
li.menu-color__fon.current-menu-item > a::after {
    background: var(--fondazione-color);
}

/* Plugin accessibilità */

nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top {
    width: 100% !important;
}
@media only screen and (min-width: 992px) {
    nav.onetap-accessibility.onetap-plugin-onetap.onetap-toggle-open {
        background: #eef1f5;
    }
}
