/* =========================================================
   Eventi Slider — scheda evento
   Misure ricalcate sulla pagina Divi "Vivi, Lotta, Brilla 2026"
   (riga 80% della pagina, 1152 px su schermo da 1440).
   ========================================================= */
.es-event {
	--es-btn: #65a38e;
	--es-btn-hover: #513c56;
	--es-accent: #513c56;
	--es-section: #b397b7;
	--es-split: #b397b7;
	--es-head: #111111;
	--es-text: #666666;
	color: var(--es-text);
}
.es-event *,
.es-event *::before,
.es-event *::after { box-sizing: border-box; }

.es-event .es-ev-row {
	position: relative;
	width: 80%;
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}

/* Titoli: font del tema, misure e colori come nella pagina Divi */
.es-event h1,
.es-event h2,
.es-event h3,
.es-event h4 {
	margin: 0;
	padding: 0 0 10px;
	color: var(--es-head);
	font-weight: 300;
	letter-spacing: normal;
}
.es-event .es-ev-h2 {
	font-size: 55px;
	line-height: 1;
}
.es-event .es-ev-sub {
	font-size: 25px;
	line-height: 1;
}
.es-event .es-ev-line {
	display: block;
	width: 400px;
	max-width: 100%;
	height: 23px;
	margin-top: 10px;
	border-top: 1px solid rgba(0, 0, 0, .25);
}

.es-event p {
	margin: 0;
	padding: 0 0 1em;
}
.es-event p:last-child { padding-bottom: 0; }
.es-event a:not(.es-ev-btn) { color: inherit; }

/* Pulsante "Iscriviti ora" */
.es-event .es-ev-btn {
	display: inline-block;
	padding: 5px 17px;
	border: 5px solid var(--es-btn);
	border-radius: 0;
	background: var(--es-btn);
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color .25s ease, border-color .25s ease;
}
.es-event .es-ev-btn:hover,
.es-event .es-ev-btn:focus-visible {
	background: var(--es-btn-hover);
	border-color: var(--es-btn-hover);
	color: #fff;
}

/* ---------- Testata ---------- */
.es-ev-hero {
	position: relative;
	z-index: 2;
	min-height: 786px;
	padding: 200px 0 120px;
	background-color: #333;
	background-image: linear-gradient(rgba(17, 17, 17, .66) 0%, rgba(17, 17, 17, .33) 100%), var(--es-hero, none);
	background-position: center;
	background-size: cover;
	color: #fff;
}
.es-ev-hero.has-logo { padding-bottom: 0; }
.es-event .es-ev-row .es-ev-kicker {
	padding: 0 0 10px;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
}
.es-event .es-ev-title {
	margin-left: -.06em;
	padding: 10px 0 10px;
	font-size: 100px !important; /* il tema imposta tutti gli H1 a 150px !important */
	font-weight: 400;
	line-height: .9;
	letter-spacing: -3px;
	color: #fff;
}
.es-ev-intro {
	max-width: 350px;
	margin: 20px 0 35px;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
}
.es-ev-intro strong,
.es-ev-intro b { font-weight: 700; color: #fff; }
/* Logo grande: in basso a destra, sporge di 60 px sulla sezione successiva */
.es-ev-hero.has-logo .es-ev-row { padding-bottom: 209px; }
.es-ev-hero .es-ev-hero-logo {
	position: absolute;
	right: 0;
	bottom: -60px;
	z-index: 3;
	display: block;
	width: 300px;
	max-width: 40%;
	height: auto;
	margin: 0;
}
.es-ev-hero .es-ev-intro:last-child { margin-bottom: 0; }

/* ---------- Primo blocco, informazioni, secondo box ---------- */
.es-ev-s1 {
	position: relative;
	padding: 80px 0 80px;
	background: #fff;
}
.es-ev-s1.has-box2 {
	padding-bottom: 0;
	background: linear-gradient(to bottom, #fff calc(100% - 270px), var(--es-split) calc(100% - 270px));
}
.es-ev-intro-row {
	display: grid;
	grid-template-columns: minmax(0, 747fr) minmax(0, 342fr);
	column-gap: 63px;
	align-items: start; /* titolo e testo allineati in alto */
	margin-top: 50px;
}
.es-ev-t1-img {
	display: block;
	width: 110px;
	height: auto;
	margin: 0 0 35px;
}
.es-ev-main-text {
	max-width: 320px;
	margin-left: auto;
	font-size: 15px;
	line-height: 1.4;
	text-align: right;
}
.es-event .es-ev-main-text * { text-align: inherit; }

.es-event .es-ev-info {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 40px;
	max-width: 900px;
	margin-top: 80px;
	text-align: center;
}
.es-ev-intro-row + .es-ev-info { margin-top: 80px; }
.es-ev-s1 > .es-ev-info:first-child { margin-top: 0; }
.es-event .es-ev-info-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; }
.es-event .es-ev-info-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 450px; }
.es-event .es-ev-info-1 { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
.es-ev-info .es-ev-icon {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 auto 30px;
	color: var(--es-btn);
}
.es-ev-info .is-alt .es-ev-icon { color: var(--es-accent); }
.es-event .es-ev-info h4 {
	font-size: 20px;
	line-height: 1;
}
.es-ev-info p {
	font-size: 14px;
	line-height: 1.4;
}

.es-ev-box2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 56px;
	align-items: start;
	margin-top: 80px;
	padding: 60px 60px 420px;
	background-color: var(--es-accent);
	background-image: linear-gradient(rgba(17, 17, 17, .5) 0%, rgba(17, 17, 17, 0) 100%), var(--es-box2, none);
	background-position: center top;
	background-size: cover;
	color: #fff;
}
.es-ev-s1 > .es-ev-box2:first-child { margin-top: 0; }
.es-ev-box2-text {
	width: 100%;
	max-width: 320px;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
}
.es-ev-box2-cta { text-align: right; }

/* ---------- Penultimo blocco (fascia colorata) ---------- */
.es-ev-s2 {
	padding: 80px 0;
	background: var(--es-section);
	text-align: center;
}
.es-ev-s2 .es-ev-line { margin-left: auto; margin-right: auto; }
.es-ev-s2-text {
	max-width: 600px;
	margin: 17px auto 0;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	color: #fff;
}
.es-event .es-ev-s2-text * { text-align: inherit; }

/* ---------- Ultimo blocco + partner ---------- */
.es-ev-s3 {
	padding: 80px 0 20px;
	background: #f8f8f8;
}
.es-ev-s3-row {
	display: grid;
	grid-template-columns: minmax(0, 423fr) minmax(0, 666fr);
	column-gap: 63px;
	align-items: start;
}
.es-ev-s3-head { text-align: right; }
.es-ev-s3-text {
	font-size: 14px;
	line-height: 1.4;
}
.es-ev-s3-text .es-ev-sub { padding-bottom: 20px; }
.es-ev-s3-text a { text-decoration: none; }
.es-ev-s3-text a:hover { text-decoration: underline; }

.es-event .es-ev-partners {
	width: 80%;
	max-width: 1200px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 30px 40px;
	margin-top: 80px;
}
.es-ev-s3-row + .es-ev-partners { margin-top: 80px; }
.es-ev-s3 > .es-ev-partners:first-child { margin-top: 0; }
.es-ev-pgroup {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 30px 60px;
}
.es-event .es-ev-plabel {
	max-width: 140px;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.es-ev-plogo-wrap { display: block; flex: 0 0 auto; }
.es-ev-plogo {
	display: block;
	width: 100px;
	max-height: 80px;
	height: auto;
	object-fit: contain;
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
	.es-event .es-ev-title { margin-left: 0; font-size: 84px !important; letter-spacing: -2px; }
}
@media (max-width: 980px) {
	.es-ev-hero { min-height: 0; padding-top: 160px; }
	.es-event .es-ev-title { font-size: 64px !important; letter-spacing: -1px; }
	.es-event .es-ev-h2 { font-size: 42px; }
	.es-ev-intro-row,
	.es-ev-s3-row,
	.es-ev-box2 { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
	.es-ev-main-text { max-width: none; margin-left: 0; text-align: left; }
	.es-event .es-ev-info { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
	.es-event .es-ev-info-1 { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
	.es-ev-box2 { padding: 50px 40px 300px; }
	.es-ev-box2-cta { text-align: left; }
	.es-ev-s1.has-box2 { background: linear-gradient(to bottom, #fff calc(100% - 200px), var(--es-split) calc(100% - 200px)); }
	.es-ev-s3-head { text-align: left; }
	.es-event .es-ev-partners { justify-content: center; }
	.es-ev-pgroup { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; gap: 15px 40px; }
	.es-event .es-ev-plabel { flex: 1 1 100%; max-width: none; }
}

/* ---------- Telefono ---------- */
@media (max-width: 767px) {
	.es-event .es-ev-row { width: 90%; }
	.es-ev-hero { padding-top: 130px; padding-bottom: 80px; }
	.es-ev-hero.has-logo { padding-bottom: 0; }
	.es-event .es-ev-row .es-ev-kicker { font-size: 18px; }
	.es-event .es-ev-title { font-size: 44px !important; line-height: 1; letter-spacing: -1px; }
	.es-ev-hero.has-logo .es-ev-row { padding-bottom: 110px; }
	.es-ev-hero .es-ev-hero-logo { width: 160px; max-width: 50%; bottom: -40px; }
	.es-event .es-ev-h2 { font-size: 34px; }
	.es-event .es-ev-sub { font-size: 20px; }
	.es-ev-s1 { padding-top: 60px; }
	.es-event .es-ev-info { column-gap: 20px; }
	.es-ev-intro-row + .es-ev-info,
	.es-ev-box2 { margin-top: 60px; }
	.es-ev-box2 { padding: 40px 25px 220px; }
	.es-ev-s1.has-box2 { background: linear-gradient(to bottom, #fff calc(100% - 140px), var(--es-split) calc(100% - 140px)); }
	.es-ev-s2 { padding: 60px 0; }
	.es-ev-s3 { padding-top: 60px; }
	.es-ev-s3-row + .es-ev-partners { margin-top: 50px; }
	.es-ev-plogo { width: 90px; }
	.es-event .es-ev-partners { width: 90%; }
}
