
.lba-event-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.lba-calendar-wrapper {
	clear: both;
}
/*
.lba-event-cards {
    display: grid !important;
    align-items: stretch !important;
	grid-template-columns: auto !important;
    grid-auto-flow: column !important;
	gap: 1rem !important;
}

.lba-event-card {
	flex: 1 1 0;
}

.lba-event-card.lba-event-card-large {
    flex: 2 1 0;
}
*/

@media (min-width: 782px) and (max-width: 998px) {
	.lba-event-cards {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	
	.elementor-shortcode .lba-event-cards {
		display: flex !important;
		align-items: stretch !important;
		grid-template-columns: 2 !important;
		grid-auto-flow: column !important;
		gap: 1rem !important;
		flex-wrap: wrap;
	}

	.lba-event-card {
		/*flex: 1 1 0;*/
		width: 100%;
	}

	.lba-event-card:first-child {
		flex: 3 1 0;
		min-width: 100%;
	}

}



@media (max-width: 781px) {
	.lba-event-cards {
		grid-template-columns: 1fr !important;
		grid-auto-flow: row !important;
	}
	/*
	.lba-event-card {
		flex: 1 1 0;
	}
	
	.lba-event-card.lba-event-card-large {
		flex: 1 1 0;
	}
	*/
}
.link-biglietteria {
	float: right;
}

/*.link-biglietteria::before {
	content: "" !important;
	display: inline-block !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.66683 5.33334V4.66667M6.66683 8.33334V7.66667M6.66683 11.3333V10.6667M3.46683 2.66667H12.5335C13.2802 2.66667 13.6536 2.66667 13.9388 2.812C14.1897 2.93983 14.3937 3.1438 14.5215 3.39468C14.6668 3.6799 14.6668 4.05327 14.6668 4.80001V5.66667C13.3782 5.66667 12.3335 6.71134 12.3335 8.00001C12.3335 9.28867 13.3782 10.3333 14.6668 10.3333V11.2C14.6668 11.9467 14.6668 12.3201 14.5215 12.6053C14.3937 12.8562 14.1897 13.0602 13.9388 13.188C13.6536 13.3333 13.2802 13.3333 12.5335 13.3333H3.46683C2.72009 13.3333 2.34672 13.3333 2.06151 13.188C1.81063 13.0602 1.60665 12.8562 1.47882 12.6053C1.3335 12.3201 1.3335 11.9467 1.3335 11.2V10.3333C2.62216 10.3333 3.66683 9.28867 3.66683 8.00001C3.66683 6.71134 2.62216 5.66667 1.3335 5.66667V4.80001C1.3335 4.05327 1.3335 3.6799 1.47882 3.39468C1.60665 3.1438 1.81063 2.9399 2.06151 2.812C2.34672 2.66667 2.72009 2.66667 3.46683 2.66667Z' stroke='%23DB0019' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}*/

.lba-calendar-wrapper {
	position: relative;
	display: inline-block;
	/*margin-top: 10px;*/
	float: left;
	width: 100%;
}

.lba-calendar-button, .link-biglietteria, .link-classifica {
	cursor: pointer !important;
	padding: 8px 14px !important;
	border: none !important;
	background: #fff !important;
	border-radius: 4px !important;
	font-size: 8px;
	color: #0f0f0f !important;
	font-weight: normal !important;
}

.lba-calendar-button {
	float: left
}
.link-classifica {
	float: left
}

.link-biglietteria {
	float: right
}

.lba-calendar-menu {
	display: none;
	position: absolute;
	z-index: 1000;
	left: 0;
	/*top: 100%;*/
	top: -120px;
	min-width: 180px;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.lba-calendar-menu-open {
	display: block;
}

.lba-calendar-menu a {
	display: block;
	padding: 9px 12px;
	text-decoration: none;
	white-space: nowrap;
}

.lba-calendar-menu a:hover {
	background: #f5f5f5;
}

#lba-event-results .sp-fixtures-results {
    display: block;
}

#lba-event-results .sp-fixtures-results .sp-widget-align-left,
#lba-event-results .sp-fixtures-results .sp-widget-align-right {
    float: none;
    width: 100%;
    clear: both;
}

#lba-event-results .sp-table-caption {
	background-color: var(--theme-color-alt_title);
	border-top: none;
}

#lba-event-results .sp-table-caption {
    font-family: "Big Shoulders Display", Sans-serif;
    font-size: 80px;
    font-weight: 900;
    text-transform: uppercase;
    font-style: normal;
    line-height: 100px;
    letter-spacing: 0%;
    color: var(--e-global-color-primary);
    text-align: center;
	margin-bottom: 5px;
}

@media(max-width: 1279px) {
    #lba-event-results .sp-table-caption {
        font-size: 48px;
        line-height: 100%;
    }
}

@media(max-width: 767px) {
    #lba-event-results .sp-table-caption {
        font-size: 32px;
        line-height: 100%;
    }
}


/* Filtro calendar */
/* Filtro calendar */
.table-blocks .calendar-filter-form {
	margin-bottom: 40px!important;
	text-align: center;
}
.table-blocks .calendar-filter-form .form-group {
	display: inline-block;
}
.table-blocks .calendar-filter-form .form-group select {
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	font-family: Roboto, sans-serif;
	border-style: solid;
	border: 1px solid #a6a6a6 !important;
	padding: 8px 32px 8px 16px;
}
.table-blocks .calendar-filter-form a {
	display: none;
}
/* end Filtro calendar */
/* end Filtro calendar */



/* Link "Aggiungi al calendario" e "Acquista biglietti" */
/* Link "Aggiungi al calendario" e "Acquista biglietti" */
.lba-calendar-wrapper .lba-calendar-button svg,
.lba-calendar-wrapper a.link-biglietteria svg,
.lba-calendar-wrapper a.link-classifica svg {
	width: 25px;
	height: 25px;
}

.lba-event-card tr {
	height: auto!important;
}

.lba-calendar-wrapper .lba-calendar-button {
	font-size: 12px;
}
.lba-calendar-wrapper a.link-biglietteria,
.lba-calendar-wrapper a.link-classifica {
	font-size: 12px;
}
.lba-event-card .lba-calendar-button,
.lba-event-card .link-classifica,
.lba-event-card .link-biglietteria {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	line-height: 1;
}
.lba-event-card .lba-calendar-button svg,
.lba-event-card .link-classifica svg,
.lba-event-card .link-biglietteria svg {
	display: block;
	flex: 0 0 auto;
	margin: 0 !important;
}
.lba-calendar-wrapper .link-classifica svg {
  fill: #E41C25;
  width: 20px!important;
  height: 20px!important;
}
.lba-calendar-menu {
	padding-bottom: 10px;
	padding-top: 10px;
}
.lba-calendar-menu a {
	color:#0f0f0f;
	font-size: 16px;
	text-align: left;
	line-height: 14px;
}

.lba-va-event-actions button.lba-calendar-button {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	line-height: 1;
	font-size: 12px;
}
.lba-va-event-actions button.lba-calendar-button svg {
	width: 25px;
	height: 25px;
}


@media (max-width: 420px) {

	.lba-event-card .lba-calendar-wrapper {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		row-gap: 0;
		width: 100%;
	}

	.lba-event-card .lba-calendar-button,
	.lba-event-card .link-biglietteria {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		align-self: flex-start !important;
		width: auto !important;
		margin: 0 !important;
	}

	/* Sposta l’icona dei biglietti a sinistra del testo */
	.lba-event-card .link-biglietteria svg {
		order: -1;
	}

	.lba-event-card .lba-calendar-button svg,
	.lba-event-card .link-biglietteria svg {
		display: block;
		flex: 0 0 auto;
		margin: 0 !important;
	}
}
/* end Link "Aggiungi al calendario" e "Acqusta biglietti" */
/* end Link "Aggiungi al calendario" e "Acqusta biglietti" */



/* elenco partite */
/*.lba-event-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
}

.lba-event-content {
	flex: 1 1 auto;
	min-width: 0;
}

.lba-event-links {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.lba-event-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	text-decoration: none;
}

.lba-event-calendar,
.lba-event-ticket {
	padding: 8px 12px;
}*/
.lba-va-template-event-blocks {
	width: 100%;
}

.lba-va-table-wrapper {
	width: 100%;
}

.lba-va-template-event-blocks table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.lba-va-template-event-blocks thead {
	display: none;
}


/* ========================================
   EVENTI
   ======================================== */

.lba-va-row > td {
	padding: 20px;
	border: 1px solid #ddd;
	border-bottom: 0;
}

.lba-va-row:first-child > td {
	border-radius: 8px 8px 0 0;
}

.lba-va-row:last-child > td {
	border-bottom: 1px solid #ddd;
	border-radius: 0 0 8px 8px;
}

.lba-va-row:only-child > td {
	border-bottom: 1px solid #ddd;
	border-radius: 8px;
}


/* ========================================
   EVENTO
   ======================================== */

.lba-va-event {
	display: grid;
	grid-template-columns:
		minmax(180px, 1fr)
		minmax(360px, auto)
		minmax(180px, 1fr);
	align-items: center;
	width: 100%;
	min-height: 150px;
}


/* ========================================
   SINISTRA
   ======================================== */

.lba-va-event-meta {
	justify-self: start;
	text-align: left;
}

.lba-va-event-league {
	font-weight: 600;
	line-height: 1.3;
}

.lba-va-event-season {
	margin-top: 4px;
	line-height: 1.3;
}

.lba-va-event-venue {
	margin-top: 6px;
	line-height: 1.3;
}


/* ========================================
   CENTRO
   ======================================== */

.lba-va-event-main {
	justify-self: center;
	text-align: center;
}


/* Data */

.lba-va-event-date {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.3;
}

.lba-va-event-date a {
	text-decoration: none;
}

.lba-va-event-time {
	white-space: nowrap;
}


/* ========================================
   SQUADRE
   ======================================== */

.lba-va-teams {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 30px;
}

.lba-va-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 120px;
	text-align: center;
}


/* ========================================
   LOGHI
   ======================================== */

.lba-va-team-logo {
	width: 100%;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lba-va-team-logo img {
	display: block;
	max-width: 72px;
	max-height: 72px;
	width: auto;
	height: auto;
}

.lba-va-team-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}


/* ========================================
   NOMI SQUADRE
   ======================================== */

.lba-va-team-name {
	margin-top: 8px;
	font-weight: 600;
	line-height: 1.2;
}


/* ========================================
   RISULTATO CENTRALE
   ======================================== */

.lba-va-match-result {
	align-self: center;
	min-width: 100px;
	margin-top: 32px;
	font-size: 28px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	white-space: nowrap;
}


/* ========================================
   MATCHDAY
   ======================================== */

.lba-va-event-matchday {
	margin-top: 4px;
	font-size: 13px;
}


/* ========================================
   DESTRA
   ======================================== */

.lba-va-event-actions {
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	text-align: right;
}

.lba-va-event-ticket {
	text-decoration: none;
}


/* ========================================
   CALENDARIO
   ======================================== */

.lba-va-event-actions .lba-va-calendar-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.lba-va-event-actions .lba-va-calendar-button svg {
	flex: 0 0 auto;
}

.lba-va-calendar-menu {
	display: none;
	position: absolute;
	z-index: 100;
}

.lba-va-calendar-menu.lba-va-calendar-menu-open {
	display: flex;
	flex-direction: column;
}


/* ========================================
   VIEW ALL
   ======================================== */

.lba-va-view-all {
	margin-top: 15px;
	text-align: center;
}


/* ========================================
   MATCH DAY GROUP
   ======================================== */

.lba-va-group-row th {
	padding: 10px 0;
	text-align: left;
}

.lba-va-group-name {
	font-weight: 600;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {

	.lba-va-row > td {
		padding: 15px;
	}

	.lba-va-event {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 10px 0;
	}

	.lba-va-event-meta {
		justify-self: center;
		text-align: center;
		order: 1;
	}

	.lba-va-event-main {
		justify-self: center;
		order: 2;
	}

	.lba-va-event-actions {
		justify-self: center;
		align-items: center;
		text-align: center;
		order: 3;
	}

	.lba-va-teams {
		gap: 10px;
	}

	.lba-va-team {
		width: 100px;
	}

	.lba-va-team-logo {
		height: 70px;
	}

	.lba-va-team-logo img {
		max-width: 64px;
		max-height: 64px;
	}

	.lba-va-match-result {
		min-width: 80px;
		margin-top: 28px;
		font-size: 24px;
		line-height: 28px;
	}

}