/* BUILD 20 — Home calendar UX, live period controls and filter refinement */
.wrap.content{max-width:1360px;padding-top:28px;padding-bottom:32px}
.panel{padding:24px 26px;margin-bottom:20px}
.section-head{margin-bottom:18px}.section-head h2{font-size:26px;letter-spacing:-.6px}.section-head p{font-size:14px;margin-top:5px}

/* Situation */
.today .show-all{display:none!important}
.status-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.status{min-width:0;min-height:74px;align-items:center;padding:14px;gap:10px;border:1px solid transparent}
.status>span{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:flex!important;align-items:center;justify-content:center;font-size:16px!important;font-weight:800;line-height:1;color:#fff}
.status>span::after{display:none!important}
.status[data-status="status-clear"]{background:#f0fdf4;border-color:#dcfce7}.status[data-status="status-clear"]>span{background:#22c55e}
.status[data-status="status-scheduled"]{background:#fffbeb;border-color:#fef3c7}.status[data-status="status-scheduled"]>span{background:#f59e0b}
.status[data-status="status-unknown"]{background:#f8fafc;border-color:#e2e8f0}.status[data-status="status-unknown"]>span{background:#8392ad}
.status>div{min-width:0}.status h3{font-size:13px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status p{font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Hero quick dates — SemiBold 600 */
.date-filters{gap:10px}.date-filters button,.date-picker-control{min-height:46px;font-weight:600}
.date-filters .show-all-hero{background:#fff;color:var(--navy);border:1px solid rgba(7,29,73,.08)}
.date-filters .show-all-hero:hover{background:#f4f8ff;color:#2165dc}

/* Filters */
.calendar-filters{display:grid;grid-template-columns:minmax(155px,1.08fr) minmax(155px,1fr) minmax(155px,1fr) minmax(145px,.9fr) minmax(145px,.9fr) auto;align-items:end;gap:10px;margin:0 0 12px;overflow:visible}
.calendar-filter-control{display:flex;flex-direction:column;gap:6px;min-width:0}.calendar-filter-control>span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.045em;color:#52656b}
.calendar-filter-control select,.calendar-filter-control input{height:44px;width:100%;min-width:0;border:1px solid #dce6f3;border-radius:9px;background-color:#fff;color:var(--navy);font-size:13px}
.calendar-filter-control select{appearance:none;-webkit-appearance:none;cursor:pointer;padding:0 42px 0 11px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23071D49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:14px}
.calendar-filter-control input{padding:0 11px}
.calendar-filter-control select:focus,.calendar-filter-control select:focus-visible,.calendar-filter-control input:focus,.calendar-filter-control input:focus-visible{outline:none!important;border-color:#73aafc!important;box-shadow:0 0 0 2px rgba(0,117,255,.11)!important}
.calendar-filter-control select:disabled{background-color:#f5f7fa;color:#8b98aa;cursor:not-allowed}
.calendar-filters .filter-reset{height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:0;background:transparent;color:#315075;font-size:13px;padding:0 8px;cursor:pointer}.calendar-filters .filter-reset:hover{text-decoration:underline}
.filter-summary{min-height:18px;margin:0 0 8px;color:#60708a;font-size:12px}.engine-contract-slots{display:none!important}

/* Calendar */
.calendar-section .section-head>.outline{display:none}.calendar-scroll{overflow:auto;max-height:610px;border:1px solid #e7eef8;border-radius:12px;background:#fff;scrollbar-gutter:stable}
.calendar-period{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.period-start{font-weight:700;color:#172033}.period-time{display:flex;align-items:center;gap:5px;font-size:11px;color:#f97316;font-weight:600}.period-clock{font-size:14px;line-height:1}.period-detail-hint{font-size:10px;color:#7b8798;text-decoration:underline;text-decoration-thickness:.5px;text-underline-offset:2px;margin-top:1px}
.calendar-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;margin-top:2px;white-space:nowrap}
.sector-pill{display:inline-flex;width:auto;max-width:100%;padding:5px 9px;border-radius:999px;background:#eef5ff;color:#315075;font-size:10px;font-weight:600;line-height:1.25;white-space:normal}.sector-trasporto-pubblico-locale .sector-pill,.sector-tpl .sector-pill{background:#dcfce7;color:#237a49}.sector-ferroviario .sector-pill{background:#dbeafe;color:#1d4ed8}.sector-aereo .sector-pill{background:#e0e7ff;color:#4338ca}.sector-marittimo .sector-pill{background:#cffafe;color:#155e75}.sector-taxi .sector-pill{background:#fef3c7;color:#92400e}.sector-trasporto-merci .sector-pill,.sector-merci .sector-pill{background:#fce7f3;color:#9d174d}.sector-generale .sector-pill{background:#ede9fe;color:#5b21b6}
.category-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.union-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.relevance-pill{display:inline-flex;border:1px solid #d8e0ea;border-radius:999px;padding:4px 8px;background:#f3f4f6;color:#4b5563;font-size:10px;font-weight:600;white-space:nowrap}
.calendar-bottom-cta{display:flex;justify-content:flex-end;padding-top:14px}

/* How it works */
.how{padding-top:30px;padding-bottom:34px;min-height:250px}.how .section-head{margin-bottom:26px}.how .benefits{gap:30px;align-items:stretch}.how .benefits article{min-width:0;padding-top:4px;padding-bottom:4px}.how .benefits article>span{margin-bottom:12px}.how .benefits h3{margin-bottom:8px}.how .benefits p{line-height:1.55}
.bottom-grid{gap:18px}.faq-item{background:#fff}.newsletter{min-height:100%}

/* Footer / MIT */
footer{padding-top:34px}.footer-grid{gap:32px}footer h3{font-size:13px;margin-bottom:11px;color:#fff}footer a,footer span[aria-disabled="true"]{color:#fff!important;font-size:13px!important;line-height:1.35}
.source-card-link{display:block;color:inherit!important;text-decoration:none!important;border-radius:inherit;cursor:pointer}.source-card-link:hover .source-card{border-color:#9fb8dd;background:rgba(255,255,255,.06)}.source-card .mit-source-head{grid-column:1/-1;display:flex;align-items:center;gap:14px}.source-card .mit-source-head img{width:68px;max-height:68px;height:auto;object-fit:contain;flex:0 0 auto;background:#fff;border-radius:8px;padding:5px}.source-card .mit-source-copy{min-width:0}.source-card .mit-source-copy h3{margin-bottom:5px}.source-card .mit-source-copy p{margin:0;color:#fff;font-size:12px;line-height:1.35}.source-card>p{margin-top:12px}.footer-bottom{margin-top:26px}.footer-bottom span:last-child{margin-left:auto;text-align:right}

@media(max-width:1180px){.wrap.content{max-width:1200px}.status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-filters{display:flex;overflow-x:auto;align-items:end;padding-bottom:4px}.calendar-filter-control{min-width:155px;flex:0 0 155px}.calendar-filters .filter-reset{flex:0 0 auto}}
@media(max-width:800px){.status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-scroll{max-height:640px;border:0;border-radius:0}.calendar-period{align-items:flex-end}.category-copy{-webkit-line-clamp:2}.union-copy{-webkit-line-clamp:2}.sector-pill{max-width:70%;text-align:center;justify-content:center}.calendar-bottom-cta{justify-content:stretch}.calendar-bottom-cta .outline{width:100%;justify-content:center}.how{min-height:0;padding-top:24px;padding-bottom:26px}}
@media(max-width:560px){.wrap.content{padding-top:18px}.panel{padding:18px 16px}.section-head h2{font-size:23px}.status-grid{grid-template-columns:1fr;gap:8px}.status{min-height:66px}.status h3,.status p{white-space:normal;overflow:visible;text-overflow:clip}.source-card .mit-source-head img{width:58px;max-height:58px}.footer-grid{gap:24px 16px}.footer-bottom span:last-child{margin-left:0;width:100%;text-align:right}}

/* FINAL SHARED UI CONTRACT — Home + Results. */
html body .strike-ui-table .calendar-status-pill::before{content:""!important;display:block!important;width:6px!important;height:6px!important;min-width:6px!important;flex:0 0 6px!important;border-radius:50%!important;background:currentColor!important}
html body .strike-ui-table .calendar-status-pill::after{content:none!important}
html body .strike-ui-table .calendar-col-sector{display:table-cell!important;vertical-align:middle!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .strike-ui-table .calendar-col-sector .calendar-table-sector-icon{vertical-align:middle!important;margin-right:8px!important}
html body .strike-ui-sector-filter select{min-width:280px!important}
.results-ad-slot p{font-size:0!important;font-weight:600!important}
.results-ad-slot p::after{content:"Spazio Pubblicitario";font-size:14px!important;line-height:1.4!important;font-weight:600!important;color:var(--so-navy)!important}
