.swiper-eventi{
	width: 100%;
	overflow: visible;
	margin: 0;
    max-width: 100%;
	padding: 0 24px !important;
}

.swiper-eventi .swiper-slide{
	border: 2px solid var(--white);
	transition: 0.5s ease-in-out;
	border-radius: 15px;
}

.swiper-eventi .card-custom{
	min-height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	background: #00000099;
	border-radius: 15px;
	transition: 0.5s;
}

.swiper-eventi .card-custom h2{
	font-size: 96px;
	color: var(--grey);
}

.swiper-eventi .card-custom p{
	font-size: 18px;
	color: var(--grey);
}

.swiper-eventi .card-date{
	color: var(--grey);
	font-size: 18px;
	text-transform: uppercase;
	font-family: "Klapt-Regular";
}

.swiper-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.8);
    opacity: 0.5;
}

.swiper-slide-active, 
.swiper-slide-next {
    transform: scale(1);
    opacity: 1;
}

.swiper-eventi::before,
.swiper-eventi::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%; 
    z-index: 10;
    pointer-events: none; 
}

.swiper-eventi::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.swiper-eventi::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.swiper-eventi .swiper-slide:hover {
    border: 2px solid var(--white);
}

.swiper-eventi .swiper-slide:hover .arrow-btn-18{
	color: var(--black);
}

.swiper-eventi .swiper-slide:hover .arrow-btn-18::before{
	background-image: url('/wp-content/uploads/2025/02/arrow-black.png');
}

.swiper-eventi .arrow-btn-18{
	color: var(--blue);
}

.swiper-eventi .arrow-btn-18::before{
	background-image: url('/wp-content/uploads/2025/02/arrow-blue-1.png');
}

.swiper-scrollbar-custom {
  position: absolute;
  bottom: -70px;
  left: 12px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
}

.swiper-scrollbar-progress {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.3s ease-in-out;
  border-radius: 5px;
}

@media only screen and (max-width: 1440px){
	.swiper-scrollbar-custom {
	  position: absolute;
	  bottom: -70px;
	  left: 36px;
	  width: 100%;
	  height: 2px;
	  background: rgba(255, 255, 255, 0.3);
	  border-radius: 5px;
	  overflow: hidden;
	}
}

@media only screen and (max-width: 768px){	
	.swiper-numeri .card-custom h3{
		font-size: 25px;
	}
	
	.swiper-scrollbar-custom {
		bottom: -30px;
	}
	
	.swiper-numeri .card-custom {
		min-height: 330px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		color: var(--white);
		padding: 20px;
	}
	
	.swiper-numeri .card-custom{
		min-height: 330px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		color: var(--blue);
		padding: 20px;
	}
	
	.swiper-scrollbar-custom {
		  left: 12px;
		}
}

.swiper-eventi .navig-btns {
    display: flex;
    position: relative;
    align-items: center;
    text-align: center;
    top: 120px;
}

.swiper-eventi .navig-btns .swiper-button-prev{
    left: 45%;
	width: 50px;
}

.swiper-eventi .navig-btns .swiper-button-prev::after{
    content: '';
    width: 100%;
    background-image: url(https://astralex.g2r.it/wp-content/uploads/2025/03/btn-wth.png);
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

.swiper-eventi .navig-btns .swiper-button-next{
    right: 45%;
	width: 50px;
}

.swiper-eventi .navig-btns .swiper-button-next::after{
    content: '';
    width: 100%;
    background-image: url(https://astralex.g2r.it/wp-content/uploads/2024/12/IconContainer_4.png);
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

@media only screen and (max-width: 768px){
	.swiper-eventi .navig-btns .swiper-button-prev{
		left: 35%;
		width: 50px;
	}
	
	.swiper-eventi .navig-btns .swiper-button-next{
		right: 35%;
		width: 50px;
	}
	
	.swiper-eventi .navig-btns {
		top: 90px;
	}
}

.swiper-eventi .swiper-slide {
    position: relative; 
    background: #00000099; 
    border: none; 
    border-radius: 15px; 
    box-shadow: inset 0 0 0 1px #ffffff05; 
    transition: 0.5s ease-in-out;
	z-index: 5;
}

.swiper-eventi .swiper-slide::before {
    content: '';
    top: -1px;
    left: -1px;
    position: absolute;
    height: 101%;
    width: 100.6%;
    z-index: -1;
    border-radius: 15px;
    background: linear-gradient(165deg, #77B9F299, #FFFFFF05);
}

.swiper-eventi .swiper-slide:hover {
    background: #00000079; 
    border: none;
}

.swiper-eventi .card-custom:hover{
    background: #00000039; 
}


/* Add the new CSS for the image card */
.swiper-eventi .card-image {
	width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-radius: 7px;
	min-height: 290px;
}
/* Stili per le card (invariati) */
.swiper-eventi .card-custom {
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a2333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.swiper-eventi .card-content {
    padding: 15px 0;
    color: #ffffff;
}
.swiper-eventi .card-date::before {
    content: '';
    background-image: url('https://test1.tralelinee.com/wp-content/uploads/2025/09/point.png');
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
}
.swiper-eventi .card-title {
    font-size: 36px;
    display: block;
	font-family: "Aeonik-Regular";	
}

.swiper-slide{
	opacity: 1 !important;
}
	   
@media only screen and (max-width: 768px){
	.swiper-eventi .card-title {
		font-size: 26px;
	}

	.swiper-eventi .card-content {
		padding: 15px 0px;
	}
}	  

/* Stile per rendere il link visivamente trasparente ma funzionalmente in primo piano */
.swiper-eventi .swiper-slide a.event-card-link {
    display: block;        /* Fondamentale: rende il link un elemento a blocco */
    position: relative;    /* Necessario per far funzionare lo z-index */
    height: 100%;          /* Fa sì che il link copra l'altezza della slide */
    width: 100%;           /* Fa sì che il link copra la larghezza della slide */
    z-index: 10;           /* Dà priorità al link rispetto agli altri elementi della slide */
    text-decoration: none; /* Rimuove l'underscore di default */
    color: inherit;        /* Eredita il colore del testo dai genitori */
}

/* Fix per il pseudo-elemento del bordo, nel caso fosse ancora attivo */
.swiper-eventi .swiper-slide::before {
    pointer-events: none; /* Impedisce che il bordo intercetti il click */
}

/* Forza l'intera card-custom a coprire l'area al 100% se necessario */
.swiper-eventi .card-custom {
    height: 100%;
}

/* --- assicurati che il container abbia context corretto --- */
.swiper-eventi {
  position: relative !important;
  z-index: 0 !important;
}

/* wrapper non deve stare sopra le slide */
.swiper-eventi .swiper-wrapper {
  position: relative !important;
  z-index: 1 !important;
  /* non cambiare pointer-events qui per ora */
}

/* porta le slide sopra il wrapper e rendile interattive */
.swiper-eventi .swiper-slide {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

/* il link copra tutta la slide e abbia priorità */
.swiper-eventi .swiper-slide a.event-card-link {
  position: relative !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--grey);
}

/* disabilita l'interazione sugli overlay/pseudo-elementi che possono bloccare il click */
.swiper-eventi::before,
.swiper-eventi::after,
.swiper-eventi .swiper-slide::before,
.swiper-eventi .swiper-slide::after,
.swiper-eventi .swiper-scrollbar-custom {
  pointer-events: none !important;
}

.swiper-eventi .swiper-slide a{
    color: var(--grey);
}

@media only screen and (max-width: 768px){
	.swiper-eventi .card-custom{
		padding: 12px;
	}
	
	.swiper-eventi .card-title {
		font-size: 26px;
	}
}