.history-band .history-trace{display:none}.history-band{background:linear-gradient(180deg,#fff,#f5faf7);padding-bottom:48px}.history-layout{margin-bottom:42px}
.pattern-story{--window:0}.pattern-top{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d7e6df;padding:24px 0;font-size:11px;letter-spacing:.12em;color:#567d7b}.pattern-top button{font:inherit;font-size:12px;letter-spacing:0;background:white;border:1px solid #cdded7;border-radius:25px;padding:9px 17px;cursor:pointer;color:#164249;min-width:110px}
.pattern-scenes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pattern-card{position:relative;min-width:0;background:#fff;border:1px solid #dfe8e3;border-radius:14px;padding:24px 20px;transition:background .5s,box-shadow .5s,transform .5s,border-color .5s}
.pattern-card.is-active{background:linear-gradient(145deg,#edf5e6,#e8f7f5);border-color:#7db8a5;box-shadow:0 14px 30px -18px #205e4c65;transform:translateY(-5px)}
.pattern-index{font-size:10px;letter-spacing:.12em;color:#5d827a}.pattern-card h3{font-size:20px;font-weight:500;letter-spacing:-.035em;line-height:1.2;margin:17px 0 24px;min-height:48px}.pattern-card p{font-size:13px;line-height:1.75;color:#587575;margin:22px 0 0}
.pattern-week{position:relative;display:grid;grid-template-columns:repeat(7,1fr);height:34px;align-items:center;font-size:9px;text-align:center;color:#19464a;isolation:isolate}.pattern-week i{position:absolute;left:0;top:0;height:100%;width:42.857%;background:linear-gradient(110deg,#acd67b88,#44c3d355);border:1px solid #7bbba6;border-radius:7px;z-index:-1;transform:translateX(calc(var(--window)*33.333%));transition:transform .7s ease}.pattern-bars{display:flex;align-items:end;gap:8px;height:75px;padding:10px 4px 0;border-bottom:1px solid #cddfd8}.pattern-bars i{flex:1;height:var(--bar);background:#bfd6d0;border-radius:4px 4px 0 0;transition:background .5s}.pattern-bars i.is-in-window{background:linear-gradient(#56bcb5,#8bc665)}
.pattern-compare svg{width:100%;height:85px;overflow:visible}.pattern-reference{stroke:#9db9ae;stroke-width:2;stroke-dasharray:4 4}.pattern-current{stroke:#089eb9;stroke-width:3;stroke-linecap:round}.pattern-compare.is-active .pattern-current{animation:pattern-draw 1.7s ease both}.pattern-key{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:9px;color:#55807a}.pattern-key span:first-child{color:#078aa3}
.pattern-notification,.pattern-team{height:112px;display:flex;align-items:center;gap:12px}.pattern-notification{padding:12px;background:#f4f7f4;border:1px solid #dce7df;border-radius:10px}.pattern-bell{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;color:#89702a;background:#f3eacb;font-size:22px}.pattern-notification strong,.pattern-team strong{font-size:14px;font-weight:600;display:block;margin-bottom:7px}.pattern-notification div>span,.pattern-team div>span{display:block;font-size:11px;line-height:1.6;color:#587575}.pattern-alert.is-active .pattern-bell{animation:pattern-pulse 1.4s ease 2}.pattern-team img{width:54px;height:65px;object-fit:cover;border-radius:12px;flex-shrink:0}
.pattern-bottom{display:flex;align-items:center;gap:24px;margin-top:24px}.pattern-bottom p{font-size:13px;line-height:1.6;color:#537773;margin:0}.pattern-steps{display:flex;gap:8px;flex-shrink:0}.pattern-steps button{font:inherit;font-size:11px;width:34px;height:34px;border:1px solid #ccdcd4;border-radius:50%;background:white;color:#38645d;cursor:pointer}.pattern-steps button[aria-pressed=true]{background:#17464b;border-color:#17464b;color:white}
@keyframes pattern-draw{from{stroke-dasharray:1;stroke-dashoffset:1}to{stroke-dasharray:1;stroke-dashoffset:0}}@keyframes pattern-pulse{50%{box-shadow:0 0 0 7px #e9d69944}}
@media(max-width:1100px){.pattern-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.pattern-card h3{min-height:0}.pattern-card{padding:24px}.pattern-top{gap:15px}}
@media(max-width:600px){.pattern-scenes{grid-template-columns:1fr}.pattern-card h3{margin-bottom:18px}.pattern-card p{margin-top:14px}.pattern-bottom{align-items:start;flex-direction:column;gap:12px}.pattern-top>span{font-size:9px}.pattern-notification,.pattern-team{height:85px}}
@media(prefers-reduced-motion:reduce){.pattern-card,.pattern-week i,.pattern-bars i{transition:none}.pattern-compare.is-active .pattern-current,.pattern-alert.is-active .pattern-bell{animation:none}}

.pattern-person{display:grid;place-items:center;width:54px;height:65px;flex-shrink:0;border-radius:14px;background:linear-gradient(140deg,#e1efd2,#d8f1ef)}.pattern-person svg{width:38px;height:44px;stroke:#238e91;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Segnalazione e team: stesso trattamento visivo. */
.pattern-notification{padding:0;background:transparent;border:0;border-radius:0}.pattern-bell{width:54px;height:65px;border-radius:14px;background:linear-gradient(140deg,#e1efd2,#d8f1ef);color:#238e91;font-size:28px}
