/* New, isolated CSS for archive-eventi.php
   Uses ONLY .bb-evt* classes to avoid conflicts with .ccm-cards or other components.
*/

/* ===== Desktop grid (Block 1) ===== */
.bb-evt__day{
  margin: 18px 0 26px;
}

.bb-evt__dayTitle{
  margin: 18px 0 12px;
  font-weight: 1000;
  font-size: 28px;
  line-height: 1.05;
  color: #111;
}

.bb-evt__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bb-evt__tile{
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
}

.bb-evt__tileLink{
  display:block;
  text-decoration:none;
  color:inherit;
}

.bb-evt__tileMedia{
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #e4e4e4;
}

.bb-evt__tileBadge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.bb-evt__tileBody{
  padding: 12px 12px 14px;
  background: #f2f2f2;
}

.bb-evt__tileTitle{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 1000;
  color: #111;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.bb-evt__tileMeta{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,0.72);
  margin-top: 6px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ===== Mobile list (Screen 4) ===== */
.bb-evt__list{
  display: none; /* enabled on mobile */
}

.bb-evt__row{
  border-top: 1px solid rgba(0,0,0,0.12);
}
.bb-evt__row:last-child{
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.bb-evt__rowLink{
  display: flex;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.bb-evt__rowThumb{
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}
.bb-evt__rowThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.bb-evt__rowBody{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bb-evt__rowTitle{
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.08;
  color: #173b3b; /* matches your dark */
  text-transform: none;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bb-evt__rowMeta{
  display:flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,0.72);
  line-height: 1.2;
}

.bb-evt__rowPlace{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.bb-evt__rowDate{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* ===== Breakpoints ===== */
@media (max-width: 980px){
  .bb-evt__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  /* show mobile list, hide desktop grid to avoid any repetition */
  .bb-evt__grid{ display:none; }
  .bb-evt__list{ display:block; }

  .bb-evt__dayTitle{
    font-size: 22px;
    margin: 18px 0 10px;
  }
}