/* Calendario Cartellone */
.ct-calendar {
  font-family: Arial, sans-serif;
  text-align: center;
}

.ct-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ct-cal-header a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  padding: 0 8px;
}

.ct-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ct-cal-table th {
  font-weight: normal;
  font-size: 12px;
  padding: 5px 0;
  text-transform: uppercase;
}

.ct-cal-table td {
  padding: 10px 0;
  border: 1px solid #fff;
  background: #e5e5e5;
  font-size: 14px;
  cursor: default;
}

.ct-cal-table td.empty {
  background: transparent;
  border: none;
}

.ct-cal-table td.today {
  background: #000;
  color: #fff;
  font-weight: bold;
}

.ct-cal-table td:hover {
  background: #ccc;
}

/* Layout wrapper */
.cartellone-wrapper {
  display: flex;
  gap: 30px;
}

.cartellone-main {
	display: block;

}

.cartellone-sidebar {
  /*width: calc(25% - 30px); /* differenza, togliendo il gap */
  max-width: 300px;        /* opzionale: non superare 300px */
}

/* Griglia eventi “elastica” */
/* da: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; */
/* a:  */
.grid-eventi {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* <= fisso */
  gap: 24px;
  width: 100%;
	min-width: 900px
}

/* Tablet: 2 colonne */
@media (max-width: 991.98px) {
  .grid-eventi {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 colonna */
@media (max-width: 575.98px) {
  .grid-eventi {
    grid-template-columns: 1fr;
  }
	.content_wrap {
		width: 100% !important;
	}
}

@media (max-width: 479px) {
	.content_wrap {
		width: 100% !important;
	}
}

/* piccole hardening utili */
.grid-eventi > * { min-width: 0; }
.evento { box-sizing: border-box; }


/* Card evento: riempi altezza e spazi */
.evento {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;                 /* evita margini extra del tema */
  /* il tuo bordo/padding restano ok */
	padding-bottom: 1rem;
	border-bottom: 4px solid orange;
}

.evento img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive: su schermi piccoli riduci la larghezza minima */
@media (max-width: 768px) {
  .cartellone-sidebar {
    flex-basis: 100%;
    max-width: none;
  }
  .cartellone-wrapper {
    flex-direction: column;
  }
  .grid-eventi {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.paginazione {
margin-top: 2rem;
	font-size: 30px;
}

.meta {
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: 4px solid black;
}

h3 {
	margin-top: 1rem !important;
	font-size: 25px !important;
}

/* Puntino arancione sui giorni con eventi */
.ct-cal-table td {
  position: relative;
}

.ct-cal-table td.has-event::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ff7a00; /* arancio */
}

.ct-cal-table td.today {
  background: #000;
  color: #fff;
}

.ct-day-link {
	color: unset !important;
}

.foo-search {
	width: 100%;
	margin-top: 1rem !important;
	margin-bottom: 1rem !important;
	border-top: 3px solid black !important;
	border-bottom: 3px solid black !important;
}

.ricerca button {
	width: 100%
}

.btn-cat {
	text-align: center;
	padding: 0.5rem 2rem;
	display: block;
	width: 100%;
	text-transform: uppercase;
	color: black !important;
	border: 1px solid black;
}

.ct-selected-cat {
  margin-bottom: 8px;
  font-size: 14px;
}

.ct-selected-cat strong { 
	color: #fb8f1f;
	font-size: 30px;
}

/* === Responsive layout archivio === */

/* Tablet: 2 colonne */
@media (max-width: 992px) {
  .cartellone-main .grid-eventi {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Sidebar sopra, contenuti sotto */
  .cartellone-wrapper { flex-direction: column; gap: 20px; }
  .cartellone-sidebar,
  .cartellone-main { width: 100% !important; max-width: 100% !important; }
}

/* Mobile: 1 colonna */
@media (max-width: 576px) {
  .cartellone-main .grid-eventi {
    grid-template-columns: 1fr !important;
	  min-width: unset !important;
  }
}

/* Se avevi messo min-width grandi per desktop, azzera su mobile */
@media (max-width: 992px) {
  .cartellone-main { min-width: 0 !important; }
}

/* ===== SINGLE CARTELLONE ===== */
.single-cartellone .ev-hero-img {
  width: 100%;
  height: 280px;            /* regola altezza hero a piacere */
  object-fit: cover;
  display: block;
}

/* griglia 2 colonne */
.single-cartellone-grid {
  display: grid;
  grid-template-columns: 40% 1fr; /* sx 40%, dx 60% */
  gap: 60px;
  padding: 40px 0;
}

/* colonna sinistra */
.ev-left .ev-kicker {
  font-size: 42px;          /* stile “INFORMAZIONI” */
  line-height: 1;
  letter-spacing: 1px;
}
.ev-left .ev-big {
  font-size: 58px;          /* stile “SPETTACOLO” */
  line-height: 1;
  color: #ff8800;           /* arancio */
  margin-top: 8px;
}
.ev-sep {
  border: 0;
  border-top: 3px solid #222;
  margin: 28px 0;
}
.ev-date-line {
  font-size: 16px;
  letter-spacing: .02em;
}
.ev-where {
  margin-top: 12px;
  color: #444;
}
.ev-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
}
.ev-badge-warning { background: #f59e0b; }
.ev-badge-danger  { background: #ef4444; }
.ev-cta .btn {
  display: inline-block;
  border: 2px solid #111;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: #111; color: #fff;
}

/* colonna destra */
.ev-right .ev-title {
  font-size: 38px;
  margin: 0 0 14px 0;
}
.ev-lead {
  font-size: 18px;
  margin: 0 0 20px 0;
}
.ev-content p { margin: 0 0 16px 0; }

/* responsive */
@media (max-width: 992px) {
  .single-cartellone-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .single-cartellone .ev-hero-img { height: 220px; }
  .ev-left .ev-kicker { font-size: 34px; }
  .ev-left .ev-big { font-size: 46px; }
}

.sc_layouts_hide_on_frontpage {
	display: none !important;
}

.page_content_wrap {
	padding-top: 0 !important;
}