/* Algebra lineare v2.2 — homepage dei sottomoduli */
.algebra-home{max-width:1140px;padding-top:30px}
.algebra-hero{padding:16px 3px 22px;border-bottom:1px solid #d8e4ef;margin-bottom:25px}
.algebra-kicker{font-size:.75rem;letter-spacing:.11em;text-transform:uppercase;color:#446d90;font-weight:750}
.algebra-hero h1{font-size:clamp(1.7rem,3.5vw,2.35rem);margin:5px 0 10px;letter-spacing:-.03em;color:#153653;line-height:1.18}
.algebra-hero p{max-width:710px;color:#516981;font-size:1.01rem;line-height:1.65;margin:0}
.algebra-section-heading{margin:0 3px 18px;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:22px}
.algebra-section-heading h2{font-size:1.17rem;margin:0;color:#204767}
.algebra-section-heading p{font-size:.9rem;margin:0;color:#597188}
.algebra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.algebra-card{min-width:0;display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid #dae6f1;border-radius:12px;padding:19px 19px 17px;color:#244a69;text-decoration:none;box-shadow:0 2px 10px #17345409;transition:border-color .15s,box-shadow .15s,transform .15s}
.algebra-card:hover{border-color:#89b5db;box-shadow:0 6px 22px #143a6018;transform:translateY(-1px)}
.algebra-card:focus-visible{outline:3px solid #79b8ef;outline-offset:2px}
.algebra-icon{flex:none;background:#eaf3fc;color:#1c5e94;font-size:1.1rem;font-weight:700;border-radius:10px;min-width:67px;height:62px;padding:6px;text-align:center;display:flex;justify-content:center;align-items:center;line-height:1;white-space:nowrap;font-family:Georgia,serif}
.algebra-card-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.algebra-card-text strong{font-size:1.05rem;color:#183b58}
.algebra-desc{font-size:.89rem;line-height:1.52;color:#516a80}
.algebra-open{color:#1766a7;font-size:.86rem;font-weight:700;margin-top:7px}
.algebra-open span{font-size:1.15rem;vertical-align:-1px}
.algebra-footnote{margin-top:25px;padding:16px 19px;background:#eaf1f8;border-radius:9px;color:#526c80;font-size:.86rem;line-height:1.55}
.algebra-footnote p{margin:0 0 5px}.algebra-footnote p:last-child{margin-bottom:0}
@media(max-width:670px){.algebra-home{padding-top:12px}.algebra-grid{grid-template-columns:1fr;gap:11px}.algebra-card{padding:15px}.algebra-icon{height:52px;min-width:55px}.algebra-section-heading{display:block}.algebra-section-heading p{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.algebra-card{transition:none}.algebra-card:hover{transform:none}}
