:root{--navy:#173f65;--line:#e5eaf0;--text:#202b36;--muted:#77818e;--pale:#f4f8fc}
*{box-sizing:border-box}body{margin:0;padding:18px;background:#f5f7fa;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.fixture-panel{max-width:1400px;margin:auto;background:white;overflow:hidden;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 12px #172d4310}
.panel-head{display:grid;grid-template-columns:1fr 1fr;background:var(--navy);color:white;font-weight:700;letter-spacing:.025em}.panel-head>div{padding:16px 20px}.panel-head>div+div{border-left:1px solid #ffffff55}
.fixture-row{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);min-height:96px}.fixture-cell{display:flex;align-items:center;min-width:0;gap:14px;padding:15px 17px}.fixture-cell+ .fixture-cell{border-left:1px solid var(--line)}
.category{flex:0 0 105px;background:#e7eff8;color:#16446b;border-radius:7px;padding:10px 7px;font-size:12px;font-weight:800;text-align:center}.fixture-row:nth-of-type(4n+1) .category{background:#fff1ca;color:#805700}.fixture-row:nth-of-type(4n+2) .category{background:#dff4e8;color:#17633a}.fixture-row:nth-of-type(4n+3) .category{background:#e7e0fb;color:#5e3a9a}
.fixture-content{min-width:0;flex:1}.match{min-width:0}.match-main{display:flex;gap:10px;align-items:center;justify-content:space-between;min-width:0}.team{display:flex;min-width:0;align-items:center;gap:7px;flex:1}.team:last-child{justify-content:flex-end}.team:last-child .team-name{text-align:right}.logo{width:35px;height:35px;object-fit:contain;flex:none}.logo-fallback{display:grid;place-items:center;font-size:21px;background:#eef2f5;border-radius:50%}.team-name{font-size:12.5px;font-weight:650;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.score{font-size:22px;font-weight:800;white-space:nowrap;flex:none}.dash{color:#a7b0bb}.versus{font-size:12px;font-weight:700;color:#89929c;flex:none}.match-meta{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;margin-top:7px;font-size:11px;color:var(--muted);min-width:0;white-space:normal;overflow:visible}.match-date{display:block}.match-venue{width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}.venue{color:var(--muted);display:inline-flex;max-width:100%;white-space:normal}.venue-address{min-width:0;overflow-wrap:anywhere;word-break:normal}.pin,.ext{flex:none}.maps-fallback{color:#155e96;text-underline-offset:2px;white-space:nowrap;font-size:10px}.empty{color:#a1aab4;font-style:italic;font-size:13px}.category-mobile{display:none}.mobile-section-label{display:none}.missing{padding:15px}
@media(max-width:1100px){.fixture-cell{gap:8px;padding:12px 9px}.category{flex-basis:82px;font-size:11px}.logo{width:27px;height:27px}.team-name{font-size:11px}.score{font-size:18px}.match-main{gap:5px}.match-venue{margin-top:3px}.venue{display:inline-flex}}
@media(max-width:750px){body{padding:8px}.panel-head>div{font-size:11px;padding:13px 8px;text-align:center}.fixture-row{grid-template-columns:1fr;min-height:0}.fixture-cell{padding:9px 12px}.fixture-cell+.fixture-cell{border-left:0;border-top:1px dashed var(--line)}.category{flex-basis:95px}.category-mobile{display:none}.logo{width:30px;height:30px}.fixture-content{max-width:none}.team-name{font-size:12px}}


/* Il luogo non viene mai nascosto su smartphone. */
.venue-link {display:inline-flex;align-items:flex-start;justify-content:center;gap:5px;max-width:100%;color:#155e96;text-decoration:underline;text-decoration-color:#b9d2e3;text-underline-offset:2px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
.venue-link:hover,.venue-link:focus-visible,.maps-fallback:hover,.maps-fallback:focus-visible {color:#083d67;text-decoration-color:currentColor}
.venue-link:focus-visible,.maps-fallback:focus-visible {outline:2px solid #155e96;outline-offset:3px}
@media(max-width:750px){
    .panel-head{display:none}
    .fixture-cell{align-items:flex-start;gap:9px;padding:12px;flex-wrap:wrap}
    .mobile-section-label{display:block;flex:0 0 100%;font-size:10px;letter-spacing:.04em;text-transform:uppercase;font-weight:750;color:var(--navy);margin:0}
    .category{flex:0 0 85px}
    .fixture-content{flex:1;min-width:0}
    .fixture-cell.upcoming{background:#fafcff}
    .category{margin-top:1px}
    .category-mobile{display:block}
    .fixture-cell .fixture-content{min-width:0}
    .match-meta{font-size:12px;line-height:1.4}
    .venue-link{font-size:12px;padding:4px 0;min-height:30px}
    .match-venue{flex-direction:column;gap:1px}
    .maps-fallback{font-size:11px;padding:4px}
}
@media(max-width:380px){
    .fixture-cell{gap:6px;padding:10px 8px}
    .category{flex-basis:62px;font-size:10px;padding:8px 3px}
    .team-name{font-size:11px}
    .logo{width:25px;height:25px}
    .score{font-size:16px}
}
