/*************************************
 * EVENTI — GRID + CARD (DESKTOP FIRST)
 * File: /assets/css/eventi.css
 *************************************/

/* = Grid wrapper = */
.eventi-grid{
  display: grid;
  gap: 40px;
}

/* Colonne desktop (>= 1024px) guidate dalla classe cols-* */
.eventi-grid.cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.eventi-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eventi-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eventi-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eventi-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eventi-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* = Card base = */
.evento-card {
  display: flex;               
  flex-direction: row;
  gap: 40px;
  overflow: hidden;
  padding-bottom: 40px;
  border: solid 1px #161615;
  border-width: 0 0 1px 0;
}

.evento-card:last-child {
	border: none;
	padding-bottom: 0;
}

.evento-card h1, .evento-card h2, .evento-card h3, .evento-card h4, .evento-card h5, .evento-card h6, .evento-card p {
	margin: 0;
}

.evento-card-left {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding-left: 40px;
	border: solid 1px #161615;
	border-width: 0 0 0 1px;
}

.pagina-eventi .evento-card-left {
	border-width: 0;
	padding-left: 0;
}

.evento-card-right {
	width: 50%;
}

/* Immagine in evidenza */
.evento-thumb-wrap{ display: block; }
.evento-thumb{
  display: block;
  width: 100%;
  height: auto;
}

/* Corpo card */
.evento-body{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.evento-titolo h4 {
	line-height: 1.2em!important;
}

.evento-data h6 {
	font-weight: 600!important;
}

.evento-estratto {
/* 	margin-bottom: 32px; */
}

/* Stato vuoto */
.evento-empty{ 
	font-size: 16px; 
	font-weight: 400;
	line-height: 1.5em;
	margin: 0;
}

/* ===============================
   Tablet (<= 1023px)
   - riduco colonne molto fitte
   =============================== */
@media (max-width: 1024px){
  .eventi-grid.cols-6,
  .eventi-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eventi-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* cols-3 e cols-2 restano com’erano */
  .eventi-grid{ gap: 28px; }
  
	.evento-card {
  gap: 24px;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 0;
  border: solid 1px #161615;
  border-width: 1px 0 0 0;
}
	
	.evento-card:last-child {
	border: solid 1px #161615;
  border-width: 1px 0 1px 0;
	padding-bottom: 24px;
}
	
	.evento-card-left {
	border: solid 1px #161615;
	border-width: 0 0 0 1px;
	padding-left: 24px;
}

.evento-card-right {
	width: 50%;
	border: solid 1px #161615;
	border-width: 0 1px 0 0;
	padding-right: 24px;
}
	
	.pagina-eventi .evento-card-right {
		padding-right: 0;
		border-width: 0;
	}
	
}

/* ===============================
   Mobile (<= 767px)
   - 1 colonna
   - spazi più stretti
   =============================== */
@media (max-width: 767px){
  .eventi-grid{ grid-template-columns: 1fr !important; gap: 20px; }
	
	.evento-card {
		flex-direction: column-reverse;
		gap: 16px;
		padding: 0;
		padding-top: 24px;
		border: solid 1px #161615;
  		border-width: 1px 0 0 0;
	}
		.evento-card:last-child {
	border: solid 1px #161615;
  border-width: 1px 0 1px 0;
	padding-bottom: 24px;
}
	
	.evento-card-left {
		width: 100%;
		padding: 0;
		border: none;
		gap: 16px;
	}
	.evento-body {
	margin-top: 24px;
}
	.evento-estratto {
/* 		margin-bottom: 16px; */
	}
	.evento-card-right {
		width: 100%;
		padding: 0;
		border: none;
	}
}

/* STILE DEL PULSANTE DI PRENOTAZIONE */
/*************************************
 * PULSANTE "DRAKE STYLE" — Prenota
 *************************************/

.evento-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0px!important;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #FBFBFB;
  transition: all 0.35s ease;
	
  margin-top: 32px;
}

@media (max-width: 767px) {
	.evento-link {
		margin-top: 16px;
	}
}

.pagina-eventi .evento-link {
  border: 1px solid #E8E8E8;
}

.evento-link span {
  color: #161615;
  border: 1px solid #161615;
  border-radius: 0; /* rettangolo principale */
  background: transparent;
  padding: 10px 12px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.pagina-eventi .evento-link span {
	background: #ffffff;
}

/* Pseudo-elemento per il cerchio della freccia */
.evento-link::after {
  content: "→";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #161615;
  border-radius: 50%;
  transition: all 0.35s ease;
  background: transparent;
  color: #161615;
}

.pagina-eventi .evento-link::after {
	background: #ffffff;
}

/* Hover → fusione dei due blocchi */
.evento-link:hover,
.evento-link:focus-visible {
  border-radius: 0;
  border: solid 1px #161615;
  transition: all 0.35s ease;
}

.pagina-eventi .evento-link:hover,
.pagina-eventi .evento-link:focus-visible {
  background: #ffffff;
}

.evento-link:hover span,
.evento-link:focus-visible span {
	border: 1px solid #FBFBFB;
	transition: all 0.35s ease;
}

.pagina-eventi .evento-link:hover span,
.pagina-eventi .evento-link:focus-visible span {
	border: 1px solid #ffffff;
}

.evento-link:hover::after,
.evento-link:focus-visible::after {
  border: 1px solid #FBFBFB;
/*   transition: all 0.35s ease; */
}

.pagina-eventi .evento-link:hover::after,
.pagina-eventi .evento-link:focus-visible::after {
	border: 1px solid #ffffff;
}

/* Effetto "unione" fluido */
.evento-link:hover::after {
  margin-left: 0;
  border-left: none;
}

/* Focus keyboard */
.evento-link:focus-visible {
  outline: none;
}

/* Riduzione animazioni se preferito */
/* @media (prefers-reduced-motion: reduce) {
  .evento-link,
  .evento-link::after {
    transition: none;
  }
} */