/* PROLOCO Imk v5.1.1 - Event Experience Views */
.proloco-event-view{--pl-event-gap:18px;display:block;margin:20px 0}.proloco-event-view__group{font-size:clamp(1.2rem,2vw,1.8rem);margin:30px 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,.08);color:var(--proloco-primary,#2f6b3f)}.proloco-event-view__group:first-child{margin-top:0}.proloco-event-agenda__item{display:grid;grid-template-columns:74px minmax(96px,180px) 1fr auto;gap:16px;align-items:stretch;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:22px;padding:14px;box-shadow:0 12px 34px rgba(0,0,0,.06);margin-bottom:14px}.proloco-event-date-badge{min-width:70px;border-radius:18px;background:linear-gradient(180deg,var(--proloco-primary,#2f6b3f),var(--proloco-accent,#8fae5b));color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 6px;text-align:center}.proloco-event-date-badge strong{font-size:2rem;line-height:1}.proloco-event-date-badge span{font-size:.86rem;font-weight:800;letter-spacing:.06em}.proloco-event-date-badge small{opacity:.8;font-size:.72rem}.proloco-event-agenda__media{display:block;border-radius:18px;background-size:cover;background-position:center;min-height:120px}.proloco-event-agenda__content{min-width:0}.proloco-event-agenda__badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}.proloco-event-agenda__badges span{background:rgba(47,107,63,.1);color:var(--proloco-primary,#2f6b3f);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:800}.proloco-event-agenda__content h3,.proloco-event-timeline__card h3,.proloco-event-compact__main h3{margin:0 0 8px;line-height:1.18}.proloco-event-agenda__content h3 a,.proloco-event-timeline__card h3 a,.proloco-event-compact__main h3 a{color:inherit;text-decoration:none}.proloco-event-agenda__meta,.proloco-event-timeline__meta,.proloco-event-compact__meta{display:flex;gap:10px;flex-wrap:wrap;color:#5d665f;font-size:.92rem}.proloco-event-agenda__content p,.proloco-event-timeline__card p{margin:10px 0 0;color:#5f6a62}.proloco-event-agenda__cta{align-self:center;text-decoration:none;font-weight:800;color:var(--proloco-primary,#2f6b3f);white-space:nowrap}.proloco-event-timeline{position:relative;padding-left:28px}.proloco-event-timeline:before{content:"";position:absolute;left:10px;top:22px;bottom:0;width:2px;background:linear-gradient(var(--proloco-primary,#2f6b3f),rgba(47,107,63,.05))}.proloco-event-timeline__item{display:grid;grid-template-columns:24px 1fr;gap:16px;position:relative;margin-bottom:18px}.proloco-event-timeline__marker{position:relative}.proloco-event-timeline__marker span{position:absolute;top:20px;left:-27px;width:18px;height:18px;border-radius:50%;background:var(--proloco-primary,#2f6b3f);box-shadow:0 0 0 6px rgba(47,107,63,.13)}.proloco-event-timeline__card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:22px;padding:20px;box-shadow:0 12px 34px rgba(0,0,0,.06)}.proloco-event-timeline__date{font-weight:900;color:var(--proloco-primary,#2f6b3f);margin-bottom:8px;text-transform:uppercase;font-size:.85rem;letter-spacing:.04em}.proloco-event-compact__item{display:grid;grid-template-columns:82px 1fr 36px;gap:14px;align-items:center;padding:13px 4px;border-bottom:1px solid rgba(0,0,0,.09)}.proloco-event-compact__date{text-decoration:none;color:#fff;background:var(--proloco-primary,#2f6b3f);border-radius:16px;min-height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column}.proloco-event-compact__date strong{font-size:1.15rem}.proloco-event-compact__date span{font-size:.78rem;opacity:.85}.proloco-event-compact__arrow{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(47,107,63,.1);text-decoration:none;color:var(--proloco-primary,#2f6b3f);font-weight:900}.proloco-event-empty{padding:24px;border:1px dashed rgba(0,0,0,.18);border-radius:18px;background:#fff}
@media (max-width:900px){.proloco-event-agenda__item{grid-template-columns:70px 1fr auto}.proloco-event-agenda__media{display:none}.proloco-event-agenda__cta{font-size:.92rem}}
@media (max-width:640px){.proloco-event-view{margin:14px 0}.proloco-event-view__group{font-size:1.15rem;margin:24px 0 12px}
/* Mobile: layout a colonna singola con data in orizzontale */
.proloco-event-agenda__item{display:flex;flex-direction:column;gap:10px;border-radius:18px;padding:12px}
.proloco-event-date-badge{flex-direction:row;gap:6px;padding:6px 14px;border-radius:999px;width:-webkit-fit-content;width:fit-content;min-width:unset;align-self:flex-start}
.proloco-event-date-badge strong{font-size:1rem;line-height:1.2}
.proloco-event-date-badge span{font-size:.88rem;font-weight:700}
.proloco-event-date-badge small{font-size:.84rem}
.proloco-event-agenda__media{display:none}
.proloco-event-agenda__cta{align-self:flex-start;margin-top:4px}
.proloco-event-agenda__content h3{font-size:1rem}.proloco-event-agenda__meta,.proloco-event-timeline__meta,.proloco-event-compact__meta{font-size:.84rem;gap:6px}.proloco-event-agenda__content p,.proloco-event-timeline__card p{display:none}.proloco-event-timeline{padding-left:18px}.proloco-event-timeline__item{grid-template-columns:12px 1fr;gap:10px}.proloco-event-timeline__marker span{left:-19px;width:14px;height:14px}.proloco-event-timeline__card{padding:15px;border-radius:18px}.proloco-event-compact__item{grid-template-columns:66px 1fr 30px;gap:10px}.proloco-event-compact__date{min-height:52px;border-radius:14px}.proloco-event-compact__main h3{font-size:.98rem}.proloco-event-compact__arrow{width:30px;height:30px}}
/* v5.1.2 - Agenda Pro + Legacy Events Support */
.proloco-event-date-badge--legacy{background:linear-gradient(180deg,#6b7280,#9ca3af)}
.proloco-event-status{background:rgba(14,122,96,.13)!important;color:var(--proloco-primary,#0E7A60)!important;text-transform:uppercase;letter-spacing:.04em}
.proloco-event-view__group{display:flex;align-items:center;gap:10px}.proloco-event-view__group:after{content:"";height:1px;flex:1;background:rgba(0,0,0,.08)}


/* v5.1.13 + v5.1.17 - Mobile: badge data orizzontale nella vista agenda.
   Specificità 0-2-0 (.proloco-event-agenda .proloco-event-date-badge) vince
   su tutti i selettori base (0-1-0) senza bisogno di !important. */
@media (max-width:640px){
  .proloco-event-agenda .proloco-event-agenda__item{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch}
  .proloco-event-agenda .proloco-event-date-badge{width:100%;min-width:0;max-width:none;box-sizing:border-box;display:grid;grid-template-columns:auto auto 1fr;align-items:center;justify-content:start;column-gap:8px;row-gap:0;padding:9px 12px;border-radius:16px;text-align:left}
  .proloco-event-agenda .proloco-event-date-badge strong,.proloco-event-agenda .proloco-event-date-badge span,.proloco-event-agenda .proloco-event-date-badge small{display:inline-block;margin:0;padding:0;white-space:nowrap;line-height:1.1}
  .proloco-event-agenda .proloco-event-date-badge strong{font-size:1.35rem;font-weight:900}
  .proloco-event-agenda .proloco-event-date-badge span{font-size:.95rem;font-weight:900;letter-spacing:.04em}
  .proloco-event-agenda .proloco-event-date-badge small{font-size:.86rem;opacity:.9;justify-self:end}
  .proloco-event-agenda .proloco-event-date-badge--legacy{grid-template-columns:auto 1fr auto}
  .proloco-event-agenda .proloco-event-agenda__content{min-width:0}
  .proloco-event-agenda .proloco-event-agenda__cta{justify-self:start;align-self:start}
}
