/* ============================================================
   ACG – Skin eventi (The Events Calendar)  v1.3
   Tarato e verificato dal vivo sul markup reale del sito.
     sfondo sito  #f0f0e4   card     #fffaf3
     mattone      #9e3b1e   oro      #b8860b   marrone #2a1a0a
   Titoli in Barlow 700 come le pagine Marchetti.
   Tutto limitato a .single-tribe_events: non tocca calendario,
   liste o pagine categoria.
   ============================================================ */

/* Sfondo pagina uguale al resto del sito (era grigio #e4e4e4) */
body.single-tribe_events {
	background-color: #f0f0e4 !important;
}

/* Più respiro sotto l'header (era attaccato al contenuto) */
.single-tribe_events #tribe-events-pg-template {
	padding-top: 64px !important;
}

/* Titolo: stesso font/peso/colore dei titoli Marchetti */
.single-tribe_events .tribe-events-single-event-title {
	font-family: "Barlow", sans-serif;
	font-weight: 700;
	color: #2a1a0a;
	line-height: 1.3;
}

/* Back link + navigazione evento prec/succ */
.single-tribe_events .tribe-events-back a,
.single-tribe_events .tribe-events-nav-pagination a {
	color: #b8860b;
	text-decoration: none;
}
.single-tribe_events .tribe-events-back a:hover,
.single-tribe_events .tribe-events-nav-pagination a:hover {
	color: #9e3b1e;
	text-decoration: underline;
}

/* Riga data / ora */
.single-tribe_events .tribe-events-schedule {
	background: #fffaf3;
	border-left: 3px solid #b8860b;
	padding: 10px 14px;
	margin: 0 0 1.5rem;
}
.single-tribe_events .tribe-events-schedule h2 {
	font-family: "Barlow", sans-serif;
	color: #2a1a0a;
	font-size: 1.05rem;
	margin: 0;
}

/* Immagine in evidenza */
.single-tribe_events .tribe-events-event-image img {
	border-radius: 8px;
}

/* Descrizione a sinistra (anche i paragrafi con centratura incollata a mano) */
.single-tribe_events .tribe-events-single-event-description,
.single-tribe_events .tribe-events-content {
	color: #2a1a0a;
	line-height: 1.7;
	text-align: left;
}
.single-tribe_events .tribe-events-content [style*="text-align: center"],
.single-tribe_events .tribe-events-content [style*="text-align:center"] {
	text-align: left !important;
}

/* Spazio orizzontale tra le due card metadati (senza toccare il verticale) */
.single-tribe_events .type-tribe_events {
	column-gap: 28px;
}

/* Metadati: i due blocchi nativi come card crema/oro, distanziate e ombreggiate */
body.single-tribe_events .tribe-events-event-meta {
	background-color: #fffaf3 !important;
	border: 1px solid rgba(184, 134, 11, 0.45);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	box-shadow: 0 2px 12px rgba(42, 26, 10, 0.10);
}
.single-tribe_events .tribe-events-single-section-title {
	font-family: "Barlow", sans-serif;
	color: #9e3b1e;
	margin: 0 0 0.5rem;
}
body.single-tribe_events .tribe-events-event-meta dt {
	color: #9e3b1e;
}
body.single-tribe_events .tribe-events-event-meta dd {
	color: #2a1a0a;
}

/* Pulsante "Salva nel tuo calendario": ridefiniamo le variabili di TEC
   invece di combattere le sue regole. Bordo+testo mattone su crema. */
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
	--tec-color-button-primary: #9e3b1e;
	--tec-color-accent-primary: #9e3b1e;
	--tec-color-background: #fffaf3;
	border-radius: 8px !important;
}

/* ============================================================
   VISTA /events  —  viste V2 (lista)  [v1.3]
   Verificata dal vivo. Scope: .post-type-archive-tribe_events
   ============================================================ */

/* Sfondo crema come il resto del sito (era grigio) */
body.post-type-archive-tribe_events {
	background-color: #f0f0e4 !important;
}

/* Ritintura dei token colore di TEC: gli accenti blu diventano mattone/oro.
   I pallini-categoria restano col loro colore (codice visivo). */
.post-type-archive-tribe_events .tribe-events-view {
	--tec-color-accent-primary: #9e3b1e;
	--tec-color-accent-primary-hover: #7d2f18;
	--tec-color-accent-primary-active: #7d2f18;
	--tec-color-button-primary: #9e3b1e;
	--tec-color-button-primary-hover: #7d2f18;
	--tec-color-button-primary-active: #7d2f18;
	--tec-color-link-accent: #b8860b;
	--tec-color-icon-focus: #9e3b1e;
	--tec-color-event-icon-hover: #9e3b1e;
}

/* Pulsante "Cerca eventi": il suo token è ridefinito dalla events-bar,
   quindi lo forziamo direttamente sul pulsante */
.post-type-archive-tribe_events .tribe-events-c-search__button {
	--tec-color-background-events-bar-submit-button: #9e3b1e;
	--tec-color-background-events-bar-submit-button-hover: #7d2f18;
}

/* Titoli evento in marrone (restano in Barlow del tema) */
.post-type-archive-tribe_events .tribe-events-calendar-list__event-title,
.post-type-archive-tribe_events .tribe-events-calendar-list__event-title a {
	color: #2a1a0a !important;
}

/* Ogni evento della lista come card crema/oro con ombra morbida */
.post-type-archive-tribe_events .tribe-events-calendar-list__event-row {
	background: #fffaf3;
	border: 1px solid rgba(184, 134, 11, 0.45);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(42, 26, 10, 0.08);
	padding: 1.1rem 1.25rem;
	margin: 0 0 1.25rem;
}

/* Separatore del mese in mattone */
.post-type-archive-tribe_events .tribe-events-calendar-list__month-separator-text {
	color: #9e3b1e !important;
}
