.fw-schedules {
  font-family: inherit;
  max-width: 800px;
  margin: 0 auto;
}

.fw-day {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.fw-day-title {
  text-align: center;
  color: var(--waf-sky);
  text-transform: uppercase;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0rem;
}

.fw-day-date {
  text-align: center;
  font-weight: bold;
  color: var(--day-color, #c00);
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.fw-events-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.fw-category-title {
  text-align: left;
  color: var(--waf-sky);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
  margin: 0rem 0 0rem;
  padding-left: calc(50% + 1rem); /* Allineato alla colonna di destra */
  transform: translateX(-4rem);
}

.fw-events {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fw-event {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr; /* due colonne con spazio centrale */
  grid-template-areas:
    "time . title"
    "location . description";
  gap: 0;
  margin-bottom: 0rem; /* spaziatura tra eventi */
  transform: translateX(-4rem);
}

.fw-events .fw-event:last-child {
  margin-bottom: 0.5rem; /* spaziatura più ampia alla fine del gruppo */
}

.fw-event-location,
.fw-event-description {
  line-height: 1;
}

.fw-event-time {
  grid-area: time;
  text-align: right;
  font-size: 14px;
  font-weight: bold;
  color: var(--waf-blue);
}

.fw-event-location {
  grid-area: location;
  text-align: right;
  font-size: 12px;
    color: var(--event-color, #c00);
}

.fw-event-title {
  grid-area: title;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  color: var(--waf-blue);
}

.fw-event-description {
  grid-area: description;
  text-align: left;
  font-size: 12px;
  color: var(--waf-blue);
  line-height: 1.4;
}
.fw-event-time:empty,
.fw-event-location:empty ,
.fw-event-description:empty {
  display: none;
}
.fw-events .fw-event:has(.fw-event-time:empty) .fw-event-location {
  grid-area: time;
  text-align: right;
  align-self: end;
  line-height: 1.85;
  font-size: 12px;
  font-weight: normal;
}
.fw-events .fw-event:has(.fw-event-time:empty) .fw-event-title {
  align-self: end;
}

@media (max-width: 768px) {
  .fw-schedules,
  .fw-events-wrapper {
    padding: 0 4rem;
  }

  .fw-category-title {
    padding-left: 0;
    text-align: left;
    margin-top: 1rem;
    transform: none;
  }

  .fw-event {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "location"
      "title"
      "description";
    row-gap: 0rem;
    margin-bottom: 0rem;
    transform: none;
  }
 .fw-event-location,
  .fw-event-description {
    line-height: 1;
    margin-bottom: 0.4rem;
  }

  .fw-event-time {
    grid-area: time;
    text-align: left;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: bold;
    color: var(--waf-red);
    line-height: 1.2;
    margin-top: 0.5rem;
  }

  .fw-event-location {
    grid-area: location;
    text-align: left;
    font-size: clamp(12px, 3.5vw, 14px);
    color: var(--event-color, #c00);
  }

  .fw-event-title {
    grid-area: title;
    text-align: left;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: bold;
    color: var(--waf-blue);
    line-height: 1.7;
    margin-top: 0rem;
    margin-bottom: 0rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .fw-event-description {
    grid-area: description;
    text-align: left;
    font-size: clamp(12px, 4vw, 14px);
    /*line-height: 1.5;*/
    color: var(--waf-blue);
  }

  .fw-day-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .fw-day-date {
    font-size: clamp(14px, 4vw, 16px);
    margin-bottom: 0.5rem;
  }

  .fw-events .fw-event:last-child {
    margin-bottom: 0.5rem;
  }
}
