@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

@font-face {
  font-family: 'Inter';
  src: local('Noto Sans'), local('DejaVu Sans'), local('FreeSans'), local('Symbola'), local('Arial Unicode MS');
  unicode-range: U+20D7;
  font-weight: 100 900;
}
@font-face {
  font-family: 'Lora';
  src: local('Noto Serif'), local('DejaVu Serif'), local('FreeSerif'), local('Symbola'), local('Arial Unicode MS');
  unicode-range: U+20D7;
  font-weight: 400 700;
}
/* ════════════════════════════════════════════════════════════════════
   MATEMATICA — stile condiviso delle dispense
   File generato unificando le copie ridondanti che le singole
   dispense avevano (ognuna incollava lo stesso blocco di stile).
   Ogni selettore condiviso qui sotto è definito UNA SOLA VOLTA.
   Non duplicare queste regole nei singoli file .md.
   ════════════════════════════════════════════════════════════════════ */


/* ── p ── */
p {
  color: #1e293b !important;
}
.dark p {
  color: rgba(255,255,255,0.75) !important;
}

/* ── mat ── */
.mat {
  font-family: 'Lora',Georgia,serif;
  color: #1e293b;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
  line-height: 1.85;
  font-size: 1.075rem;
}
.mat p {
  margin-bottom: 1.6rem;
  color: #1e293b;
}
.mat-hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(16,185,129,0.18);
  margin-bottom: 3.5rem;
}
.mat-eyebrow {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #10b981 !important;
  display: block;
  margin-bottom: 1.5rem;
}
.mat-title {
  font-family: 'Playfair Display',serif;
  font-size: clamp(2.8rem,7vw,5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #10b981 !important;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}
.mat-subtitle {
  font-family: 'Lora',serif;
  font-size: 1.1rem;
  color: #64748b !important;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}
.mat-h2 {
  font-family: 'Playfair Display',serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 4rem 0 0.5rem;
  line-height: 1.2;
}
.mat-lead {
  font-size: 1rem;
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 2rem;
}
.mat-dropcap > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: #10b981;
}
.mat-dropcap p {
  color: #1e293b !important;
}
.mat-def {
  border-left: 3px solid #10b981;
  background: rgba(16,185,129,0.07);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #065f46 !important;
}
.mat-tip {
  border-left: 3px solid #059669;
  background: rgba(5,150,105,0.07);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #065f46 !important;
  font-size: 0.95rem;
}
.mat-formula-d {
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  padding: 0.9rem 0;
  color: #065f46 !important;
  letter-spacing: 0.02em;
}
.mat-legge {
  background: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 10px;
  padding: 1rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  font-family: 'Lora',serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #065f46;
  line-height: 2.2;
}
.mat-legge-label {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #059669;
  font-style: normal;
  display: block;
  margin-bottom: 0.4rem;
}
.mat-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  font-size: 0.9em;
  line-height: 1.3;
  margin: 0 3px;
}
.mat-num {
  border-bottom: 1.5px solid currentColor;
  padding: 1px 5px;
}
.mat-den {
  padding: 1px 5px;
}
.mat-es {
  background: white;
  border: 1px solid rgba(16,185,129,0.3);
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.mat-es-title {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10b981 !important;
  margin-bottom: 0.8rem;
  display: block;
}
.mat-iter-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
}
.mat-iter-table thead th {
  background: #ecfdf5;
  color: #065f46;
  padding: 0.55rem 0.9rem;
  text-align: center;
  font-weight: 700;
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.mat-iter-table tbody td {
  padding: 0.5rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid #f0fdf4;
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.82rem;
  color: #475569;
}
.mat-iter-table tbody tr:last-child td {
  border-bottom: none;
}
.mat-iter-table .hl {
  color: #065f46;
  font-weight: 700;
}
.mat-bridge {
  background: linear-gradient(135deg,#f0fdf4,#eef2ff);
  border: 1.5px solid #a5b4fc;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin: 3rem 0;
}
.mat-bridge-title {
  font-family: 'Playfair Display',serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #059669, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.4rem;
  color: #3730a3;
  line-height: 1.3;
}
.mat-bridge-sub {
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 1.2rem;
  font-size: 0.93rem;
}
.mat-bridge-col {
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.mat-retrieval {
  background: #f0fdf4;
  border-top: 4px solid #10b981;
  padding: 2rem 2rem 2.5rem;
  margin: 3.5rem 0;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(16,185,129,0.2);
}
.mat-qr {
  background: white;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  margin: .7rem 0;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.mat-qr-n {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: .73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mat-qr p {
  margin: 0;
  color: #334155 !important;
  font-size: .93rem;
}
.mat-warn {
  border-left: 3px solid #f59e0b;
  background: rgba(245,158,11,0.07);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #78350f !important;
  font-size: 0.95rem;
}
.dark .mat {
  color: #e2e8f0;
}
.dark .mat p {
  color: #e2e8f0 !important;
}
.dark .mat-h2 {
  color: #f1f5f9;
}
.dark .mat-def {
  background: rgba(16,185,129,0.1);
  border-left-color: #34d399;
  color: #d1fae5 !important;
  font-style: normal;
}
.dark .mat-tip {
  background: rgba(5,150,105,0.1);
  color: #6ee7b7 !important;
}
.dark .mat-warn {
  background: rgba(245,158,11,0.1);
  color: #fde68a !important;
}
.dark .mat-es {
  border-color: rgba(16,185,129,0.25);
  background: #1e293b;
}
.dark .mat-bridge {
  background: linear-gradient(135deg,#052e16,#1e1b4b);
  border-color: #6366f1;
}
.dark .mat-bridge-title {
  color: #a5b4fc;
}
.dark .mat-retrieval {
  background: #052e16;
  border-color: rgba(16,185,129,0.15);
}
.mat-retrieval h3 {
  font-family: 'Playfair Display',serif;
  color: #065f46;
  margin: 0 0 1rem;
}
.dark .mat-legge {
  background: #052e16;
  color: #a7f3d0;
}
.dark .mat-qr {
  background: #0f2d1f;
  border-color: #065f46;
}
.dark .mat-qr p {
  color: #d1fae5 !important;
}

/* ── vv::after ── */
.vv::after {
  content: '→';
  font-size: 0.55em;
  vertical-align: super;
  margin-left: -0.05em;
  font-style: normal;
  font-weight: 400;
  line-height: 0;
}

/* ── cb ── */
.cb {
  background: #0f172a;
  border-radius: 9px;
  overflow: hidden;
  margin: .8rem 0;
}
.cb-bar {
  background: #1e293b;
  padding: .45rem .9rem;
  display: flex;
  gap: 6px;
}
.cb-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.cb-bar span:nth-child(1) {
  background: #ef4444;
}
.cb-bar span:nth-child(2) {
  background: #f59e0b;
}
.cb-bar span:nth-child(3) {
  background: #22c55e;
}
.cb pre {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: .9rem 1.2rem !important;
  margin: 0 !important;
  font-family: 'JetBrains Mono',monospace !important;
  font-size: .82rem !important;
  line-height: 1.65 !important;
  overflow-x: auto;
}
.cb pre code {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: .9rem 1.2rem !important;
  margin: 0 !important;
  font-family: 'JetBrains Mono',monospace !important;
  font-size: .82rem !important;
  line-height: 1.65 !important;
  overflow-x: auto;
}
.cb-kw {
  color: #a5b4fc;
}
.cb-num {
  color: #6ee7b7;
}
.cb-cmt {
  color: #64748b;
  font-style: italic;
}
.cb-type {
  color: #7dd3fc;
}
.cb-str {
  color: #fcd34d;
}


/* ════════════════════════════════════════════════════════════════════
   Stili specifici di singole dispense (non duplicati altrove)
   ════════════════════════════════════════════════════════════════════ */

.mat-passi {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.mat-passo {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.8rem;
  align-items: start;
}
.mat-passo-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.mat-passo-body {
  font-size: 0.97rem;
  color: #1e293b;
  line-height: 1.7;
}
.mat-passo-body strong {
  color: #065f46;
}
.mat-es ul {
  margin: 0;
  padding-left: 1.3rem;
  color: #1e293b;
}
.mat-es li {
  margin: 0.3rem 0;
}
.mat-iter-table .neg {
  color: #ef4444;
}
.mat-iter-table .pos {
  color: #059669;
}
.mat-convergenza {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.mat-bridge-due-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.mat-bridge-col-mat {
  background: #f0fdf4;
  border: 2px solid #10b981;
}
.mat-bridge-col-info {
  background: #eef2ff;
  border: 2px solid #6366f1;
}
.mat-bridge-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.9rem;
}
.mat-bridge-col-mat .mat-bridge-col-label {
  color: #065f46;
}
.mat-bridge-col-info .mat-bridge-col-label {
  color: #3730a3;
}
.mat-bridge-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.88rem;
}
.mat-bridge-row:last-child {
  border-bottom: none;
}
.mat-bridge-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.mat-bridge-tag-mat {
  background: #10b981;
  color: white;
}
.mat-bridge-tag-info {
  background: #6366f1;
  color: white;
}
.mat-bridge-confronto {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}
.mat-bridge-confronto table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.mat-bridge-confronto th {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.mat-bridge-confronto th:nth-child(1) {
  background: #ecfdf5;
  color: #065f46;
}
.mat-bridge-confronto th:nth-child(2) {
  background: #eef2ff;
  color: #3730a3;
}
.mat-bridge-confronto td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  line-height: 1.5;
  color: #334155;
}
.mat-bridge-confronto td:nth-child(1) {
  border-right: 1px solid #f1f5f9;
}
.mat-bridge-confronto tr:last-child td {
  border-bottom: none;
}
.mat-pseudo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mat-pseudo-grid .cb {
  margin: 0;
}
.mat-pseudo-grid .cb pre {
  font-size: 0.76rem !important;
  padding: 0.9rem 1.1rem !important;
  line-height: 1.65 !important;
}
.mat-pseudo-grid .cb pre code {
  font-size: 0.76rem !important;
  padding: 0.9rem 1.1rem !important;
  line-height: 1.65 !important;
}
.mat-pseudo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.mat-pseudo-label-mat {
  color: #059669;
}
.mat-pseudo-label-info {
  color: #6366f1;
}
.mat-pseudo-hl {
  background: rgba(16,185,129,0.12);
  border-radius: 3px;
  padding: 1px 3px;
}
.mat-pseudo-hl-info {
  background: rgba(99,102,241,0.12);
  border-radius: 3px;
  padding: 1px 3px;
}
.mat-regole {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.mat-regola {
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid transparent;
}
.mat-regola.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mat-regola.warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.mat-regola-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}
.mat-regola-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}
.mat-regola.ok .mat-regola-title {
  color: #15803d !important;
}
.mat-regola.warn .mat-regola-title {
  color: #92400e !important;
}
.mat-regola-text {
  font-size: 0.87rem;
  color: #374151 !important;
  line-height: 1.5;
}
.mat-regola-ex {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.84rem;
  color: #6b7280 !important;
}
.mat-steps {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
}
.mat-steps li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
  color: #1e293b !important;
  line-height: 1.6;
}
.mat-step-n {
  background: #10b981;
  color: white !important;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}
.mat-es-result {
  margin-top: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(16,185,129,0.1);
  border-radius: 6px;
  font-style: italic;
  color: #065f46 !important;
  font-size: 0.92rem;
}
.mat-retta {
  margin: 1.2rem 0;
  overflow-x: auto;
}
.mat-retta-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981 !important;
  margin-bottom: 0.3rem;
  display: block;
}
.mat-segni {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin: 1.2rem 0;
}
.mat-segni th {
  background: #0f172a;
  color: #e2e8f0 !important;
  padding: 0.5rem 0.9rem;
  text-align: center;
  font-weight: 600;
}
.mat-segni td {
  padding: 0.45rem 0.9rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  color: #1e293b !important;
}
.mat-pos {
  color: #10b981 !important;
  font-weight: 700;
}
.mat-neg {
  color: #94a3b8 !important;
}
.mat-zero {
  color: #f59e0b !important;
  font-weight: 700;
}
.mat-sol-td {
  background: rgba(16,185,129,0.12);
}
.mat-bridge-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.badge-mat {
  background: rgba(16,185,129,0.15);
  color: #10b981 !important;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.badge-inf {
  background: rgba(99,102,241,0.12);
  color: #6366f1 !important;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.bridge-arrow {
  color: #94a3b8 !important;
}
.mat-bridge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.mat-bridge-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
.mat-bridge-label.mat {
  color: #10b981 !important;
}
.mat-bridge-label.inf {
  color: #6366f1 !important;
}
.mat-bridge-formula {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: #065f46 !important;
  line-height: 1.8;
}
.mat-retrieval-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.8rem;
}
.mat-retrieval ol {
  padding-left: 1.4rem;
  margin: 0;
}
.mat-retrieval li {
  color: #1e293b !important;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.97rem;
}
.dark .mat-lead {
  color: #94a3b8 !important;
}
.dark .mat strong {
  color: #6ee7b7;
}
.dark .mat-title {
  color: #34d399 !important;
}
.dark .mat-subtitle {
  color: #94a3b8 !important;
}
.dark .mat-eyebrow {
  color: #34d399 !important;
}
.dark .mat-dropcap p {
  color: #e2e8f0 !important;
}
.dark .mat-formula-d {
  color: #6ee7b7 !important;
}
.dark .mat-regola.ok {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
}
.dark .mat-regola.warn {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
}
.dark .mat-regola-text {
  color: #cbd5e1 !important;
}
.dark .mat-regola-ex {
  color: #94a3b8 !important;
}
.dark .mat-es p {
  color: #e2e8f0 !important;
}
.dark .mat-steps li {
  color: #e2e8f0 !important;
}
.dark .mat-es-result {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7 !important;
}
.dark .mat-segni td {
  color: #e2e8f0 !important;
  border-color: #334155;
}
.dark .mat-sol-td {
  background: rgba(16,185,129,0.2);
}
.dark .mat-bridge-formula {
  background: rgba(16,185,129,0.12);
  color: #6ee7b7 !important;
}
.dark .mat-retrieval-title {
  color: #e2e8f0;
}
.dark .mat-retrieval li {
  color: #e2e8f0 !important;
}
.gon {
  font-family: 'Inter',sans-serif;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
  line-height: 1.85;
  font-size: 1.05rem;
  color: #1e293b;
}
.gon p {
  margin-bottom: 1.5rem;
  color: #1e293b;
}
.gon-hero {
  background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 50%,#bbf7d0 100%);
  border-radius: 20px;
  padding: 4rem 2rem 3.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
}
.gon-eyebrow {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #065f46 !important;
  display: block;
  margin-bottom: 1.5rem;
}
.gon-title {
  font-family: 'Playfair Display',serif;
  font-size: clamp(2.6rem,7vw,4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #14532d !important;
  margin: 0 0 1.2rem;
  letter-spacing: -0.025em;
}
.gon-subtitle {
  font-family: 'Lora',serif;
  font-size: 1.1rem;
  color: #166534 !important;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}
.gon-h2 {
  font-family: 'Playfair Display',serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 4rem 0 0.5rem;
  line-height: 1.2;
  border-left: 4px solid #10b981;
  padding-left: 0.8rem;
}
.gon-lead {
  font-size: 0.97rem;
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 2rem 1.2rem;
}
.gon-def {
  border-left: 4px solid #10b981;
  background: rgba(16,185,129,0.06);
  padding: 1.2rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #1e293b !important;
}
.gon-def strong {
  color: #065f46;
  font-style: normal;
}
.gon-tip {
  border-left: 4px solid #3b82f6;
  background: rgba(59,130,246,0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #1e3a8a !important;
  font-size: 0.95rem;
}
.gon-warn {
  border-left: 4px solid #f59e0b;
  background: rgba(245,158,11,0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #78350f !important;
  font-size: 0.95rem;
}
.gon-es {
  background: white;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.gon-es-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 0.6rem;
  display: block;
}
.gon-legge {
  background: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.2rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  font-family: 'Lora',Georgia,serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #14532d;
}
.gon-legge-label {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #059669;
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
}
.gon-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.gon-fn {
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  text-align: center;
}
.gon-fn-sin {
  background: #eff6ff;
  border: 2px solid #93c5fd;
}
.gon-fn-cos {
  background: #fff7ed;
  border: 2px solid #fed7aa;
}
.gon-fn-tan {
  background: #f5f3ff;
  border: 2px solid #c4b5fd;
}
.gon-fn-name {
  font-family: 'Playfair Display',serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}
.gon-fn-sin .gon-fn-name {
  color: #1d4ed8;
}
.gon-fn-cos .gon-fn-name {
  color: #c2410c;
}
.gon-fn-tan .gon-fn-name {
  color: #7c3aed;
}
.gon-fn-formula {
  font-family: 'Lora',serif;
  font-style: italic;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
}
.gon-fn-note {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}
.gon-fn-range {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.72rem;
  display: block;
  margin-top: 0.4rem;
}
.gon-fn-sin .gon-fn-range {
  color: #1d4ed8;
}
.gon-fn-cos .gon-fn-range {
  color: #c2410c;
}
.gon-fn-tan .gon-fn-range {
  color: #7c3aed;
}
.gon-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  font-size: 0.9em;
  line-height: 1.3;
  margin: 0 4px;
}
.gon-num {
  border-bottom: 1.5px solid currentColor;
  padding: 1px 6px;
}
.gon-den {
  padding: 1px 6px;
}
.gon-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.gon-table thead th {
  background: #10b981;
  color: white;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gon-table tbody td {
  padding: 0.55rem 1rem;
  text-align: center;
  border-bottom: 1px solid #dcfce7;
  font-family: 'Lora',serif;
  font-style: italic;
}
.gon-table tbody tr:last-child td {
  border-bottom: none;
}
.gon-table tbody tr:hover td {
  background: #f0fdf4;
}
.gon-table .gt-angle {
  font-family: 'JetBrains Mono',monospace;
  font-style: normal;
  font-weight: 700;
  color: #065f46;
}
.gon-table .gt-sin {
  color: #1d4ed8;
  font-weight: 600;
}
.gon-table .gt-cos {
  color: #c2410c;
  font-weight: 600;
}
.gon-table .gt-tan {
  color: #7c3aed;
  font-weight: 600;
}
.gon-table .gt-und {
  color: #94a3b8;
  font-style: normal;
  font-size: 0.8rem;
}
.gon-bridge {
  background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 40%,#eef2ff 70%,#e0e7ff 100%);
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 4rem 0 2rem;
}
.gon-bridge-title {
  font-family: 'Playfair Display',serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg,#059669,#6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
}
.gon-bridge-sub {
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.gon-retrieval {
  background: #f0fdf4;
  border-top: 4px solid #10b981;
  padding: 2rem 2rem 2.5rem;
  margin: 3.5rem 0;
  border-radius: 0 0 12px 12px;
}
.gon-qr {
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.gon-qr-n {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 0.73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.gon-qr p {
  margin: 0;
  color: #334155 !important;
  font-size: 0.93rem;
}
.mat-legge-geo {
  background: #eef2ff;
  border: 2px solid #6366f1;
}
.mat-legge-geo .mat-legge-label {
  color: #6366f1;
}
.mat-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mat-iter-table thead th.geo {
  background: #eef2ff;
  color: #4338ca;
}
.mat-iter-table .hl-geo {
  color: #4338ca;
  font-weight: 700;
}
.mat-iter-table .sum-row td {
  background: #f0fdf4;
  font-weight: 700;
  color: #065f46;
  border-top: 2px solid #10b981;
}
.mat-iter-table .sum-row-geo td {
  background: #eef2ff;
  font-weight: 700;
  color: #4338ca;
  border-top: 2px solid #6366f1;
}
.mat-es-geo {
  border-left-color: #6366f1;
  border-color: rgba(99,102,241,0.3);
}
.mat-es-geo .mat-es-title {
  color: #6366f1;
}
.mat-seq {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 1rem 0;
}
.mat-seq-cell {
  min-width: 44px;
  height: 44px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono',monospace;
  font-weight: 700;
  font-size: 1rem;
}
.mat-seq-cell.arit {
  background: #dcfce7;
  border: 2px solid #10b981;
  color: #065f46;
}
.mat-seq-cell.geo {
  background: #eef2ff;
  border: 2px solid #6366f1;
  color: #3730a3;
}
.mat-seq-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
}
.mat-seq-delta {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.72rem;
  color: #059669;
  font-weight: 700;
}
.mat-seq-delta.geo {
  color: #6366f1;
}
.mat-bridge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mat-bridge-col.arit {
  background: #f0fdf4;
  border: 1.5px solid #6ee7b7;
}
.mat-bridge-col.geo {
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
}
.mat-bridge-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.7rem;
}
.mat-bridge-col.arit .mat-bridge-col-title {
  color: #059669;
}
.mat-bridge-col.geo .mat-bridge-col-title {
  color: #4338ca;
}
.dark .mat-legge-geo {
  background: #1e1b4b;
  color: #c7d2fe;
}
.dark .mat-es-geo {
  border-color: rgba(99,102,241,0.25);
}
.dark .mat-seq-cell.arit {
  background: #052e16;
  border-color: #059669;
  color: #6ee7b7;
}
.dark .mat-seq-cell.geo {
  background: #1e1b4b;
  border-color: #6366f1;
  color: #c7d2fe;
}
.dark .mat-iter-table thead th {
  background: #1e293b;
  color: #6ee7b7;
}
.dark .mat-iter-table thead th.geo {
  background: #1e1b4b;
  color: #a5b4fc;
}
.dark .mat-iter-table tbody td {
  border-bottom-color: #1e293b;
  color: #cbd5e1;
}
.dark .mat-iter-table .sum-row td {
  background: #052e16;
  color: #6ee7b7;
}
.dark .mat-iter-table .sum-row-geo td {
  background: #1e1b4b;
  color: #a5b4fc;
}
.dark .mat-bridge-col.arit {
  background: #052e16;
  border-color: #059669;
}
.dark .mat-bridge-col.geo {
  background: #1e1b4b;
  border-color: #6366f1;
}
.mat-sigma {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
}
.mat-sigma-sym {
  font-size: 2.2em;
  line-height: 1;
  color: #10b981;
  font-family: serif;
  font-weight: 900;
}
.mat-sigma-top {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68em;
  color: #059669;
  font-weight: 600;
}
.mat-sigma-bot {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68em;
  color: #059669;
  font-weight: 600;
}
.mat-notevoli {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mat-notevole {
  background: white;
  border: 1px solid rgba(16,185,129,0.3);
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
}
.mat-notevole-title {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #059669;
  display: block;
  margin-bottom: 0.5rem;
}
.mat-notevole-formula {
  font-family: 'Lora',serif;
  font-size: 1.15em;
  color: #065f46;
  line-height: 2;
  text-align: center;
}
.mat-notevole-note {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-style: italic;
}
.mat-prop-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mat-prop-card {
  background: white;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 1rem 1.4rem;
}
.mat-prop-card-title {
  font-family: 'JetBrains Mono',monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  background: #10b981;
  padding: .25rem .65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: .75rem;
}
.mat-prop-card p {
  font-size: .87rem;
  color: #475569;
  margin: .35rem 0 0;
  line-height: 1.55;
}
.mat-prop-formula {
  font-family: 'Lora',serif;
  font-size: 1.15em;
  color: #065f46;
  font-style: italic;
  display: block;
  margin: .4rem 0;
  text-align: center;
  line-height: 2.2;
}
.mat-appr-block {
  margin: 1.2rem 0;
  padding: 1.2rem 1.5rem;
  background: white;
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
}
.mat-appr-title {
  font-family: 'Playfair Display',serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 .5rem;
}
.mat-appr-math {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 7px;
  padding: .55rem 1rem;
  margin: .3rem 0 .75rem;
  font-family: 'Lora',serif;
  font-size: .95rem;
  color: #065f46;
  line-height: 1.9;
  text-align: center;
}
.mat-appr-desc {
  font-size: .9rem;
  color: #475569;
  margin: 0 0 .75rem;
  line-height: 1.65;
}
.mat-prop-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .5rem;
}
.mat-prop-code-label {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .3rem;
  font-family: 'JetBrains Mono',monospace;
}
.mat-prop-code-label.prima {
  color: #64748b;
}
.mat-prop-code-label.dopo {
  color: #059669;
}
.mat-esercizi {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mat-esercizio-block {
  background: white;
  border: 1px solid rgba(99,102,241,0.25);
  border-left: 4px solid #6366f1;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
}
.mat-esercizio-title {
  font-family: 'JetBrains Mono',monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4338ca;
  display: block;
  margin-bottom: .35rem;
}
.mat-esercizio-q {
  font-size: .9rem;
  color: #475569;
  margin: .3rem 0 .65rem;
  line-height: 1.6;
}
details.mat-det {
  margin-top: .4rem;
}
details.mat-det summary {
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
  font-weight: 700;
  color: #059669;
  cursor: pointer;
  padding: .3rem .75rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  user-select: none;
}
details.mat-det summary::-webkit-details-marker {
  display: none;
}
details.mat-det[open] summary {
  background: #dcfce7;
}
details.mat-det .mat-det-content {
  margin-top: .6rem;
}
.mat-bridge-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mat-bridge-card {
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.mat-bridge-card.c1 {
  background: #f0fdf4;
  border: 1.5px solid #6ee7b7;
}
.mat-bridge-card.c2 {
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
}
.mat-bridge-card.c3 {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}
.mat-bridge-card.c4 {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
}
.mat-bridge-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.mat-bridge-card.c1 .mat-bridge-card-title {
  color: #059669;
}
.mat-bridge-card.c2 .mat-bridge-card-title {
  color: #4338ca;
}
.mat-bridge-card.c3 .mat-bridge-card-title {
  color: #b45309;
}
.mat-bridge-card.c4 .mat-bridge-card-title {
  color: #dc2626;
}
.mat-bridge-card p {
  color: #475569 !important;
  font-size: .88rem;
  margin: 0;
}
.cb-hi {
  color: #fde68a;
  font-weight: 700;
}
.mat-compl-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
}
.mat-compl-table th {
  background: #ecfdf5;
  color: #065f46;
  padding: .5rem .9rem;
  text-align: center;
  font-weight: 700;
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
  letter-spacing: .05em;
}
.mat-compl-table td {
  padding: .45rem .9rem;
  border-bottom: 1px solid #f0fdf4;
  text-align: center;
  font-family: 'JetBrains Mono',monospace;
  font-size: .83rem;
  color: #475569;
}
.mat-compl-table tr:last-child td {
  border-bottom: none;
}
.mat-compl-table .hl {
  color: #065f46;
  font-weight: 700;
}
.mat-compl-table .o1 {
  color: #10b981;
  font-weight: 700;
}
.mat-compl-table .on {
  color: #f59e0b;
  font-weight: 700;
}
.mat-compl-table .on2 {
  color: #ef4444;
  font-weight: 700;
}
.mat-appr-math-row {
  display: block;
  margin: .15rem 0;
  text-align: center;
}
.mat-appr-math-vars {
  color: #059669 !important;
  font-weight: 700;
  font-family: 'JetBrains Mono',monospace;
  font-size: .88em;
}
.mat-appr-math-goal {
  color: #065f46 !important;
  font-style: italic;
  font-size: .9em;
}
.cb-section-label {
  display: block;
  font-family: 'JetBrains Mono',monospace;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #64748b;
  margin-bottom: .4rem;
}
.dark .mat-notevole {
  background: #1e293b;
  border-color: rgba(16,185,129,0.25);
}
.dark .mat-prop-card {
  background: #1e293b;
  border-color: #065f46;
}
.dark .mat-prop-card p {
  color: #94a3b8;
}
.dark .mat-appr-block {
  background: #1e293b;
  border-color: rgba(16,185,129,0.3);
}
.dark .mat-appr-math {
  background: #052e16;
  border-color: #065f46;
  color: #6ee7b7;
}
.dark .mat-appr-desc {
  color: #94a3b8;
}
.dark .mat-esercizio-block {
  background: #1e293b;
  border-color: rgba(99,102,241,0.3);
}
.dark .mat-esercizio-q {
  color: #94a3b8;
}
.dark details.mat-det summary {
  background: #1e1b4b;
  border-color: #6366f1;
  color: #a5b4fc;
}
.dark .mat-bridge-card.c1 {
  background: #052e16;
  border-color: #059669;
}
.dark .mat-bridge-card.c2 {
  background: #1e1b4b;
  border-color: #6366f1;
}
.dark .mat-bridge-card.c3 {
  background: #1c1700;
  border-color: #92400e;
}
.dark .mat-bridge-card.c4 {
  background: #1e0f0f;
  border-color: #991b1b;
}
.dark .mat-bridge-card p {
  color: #94a3b8 !important;
}
.dark .mat-compl-table th {
  background: #1e293b;
  color: #6ee7b7;
}
.dark .mat-compl-table td {
  border-bottom-color: #1e293b;
  color: #cbd5e1;
}
.dark .mat-appr-math-vars {
  color: #6ee7b7 !important;
}
.dark .mat-appr-math-goal {
  color: #a7f3d0 !important;
}
.mvt {
  font-family: 'Inter',sans-serif;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
  line-height: 1.85;
  font-size: 1.05rem;
  color: #1e293b;
}
.mvt p {
  margin-bottom: 1.5rem;
  color: #1e293b;
}
.mvt-hero {
  background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 50%,#bbf7d0 100%);
  border-radius: 20px;
  padding: 4rem 2rem 3.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(16,185,129,0.2);
}
.mvt-eyebrow {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #065f46 !important;
  display: block;
  margin-bottom: 1.5rem;
}
.mvt-title {
  font-family: 'Playfair Display',serif;
  font-size: clamp(2.6rem,7vw,4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #14532d !important;
  margin: 0 0 1.2rem;
  letter-spacing: -0.025em;
}
.mvt-subtitle {
  font-family: 'Lora',serif;
  font-size: 1.1rem;
  color: #166534 !important;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
}
.mvt-h2 {
  font-family: 'Playfair Display',serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 4rem 0 0.5rem;
  line-height: 1.2;
  border-left: 4px solid #10b981;
  padding-left: 0.8rem;
}
.mvt-lead {
  font-size: 0.97rem;
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 2rem 1.2rem;
}
.mvt-def {
  border-left: 4px solid #10b981;
  background: rgba(16,185,129,0.06);
  padding: 1.2rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #1e293b !important;
}
.mvt-def strong {
  color: #065f46;
  font-style: normal;
}
.mvt-tip {
  border-left: 4px solid #3b82f6;
  background: rgba(59,130,246,0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #1e3a8a !important;
  font-size: 0.95rem;
}
.mvt-warn {
  border-left: 4px solid #f59e0b;
  background: rgba(245,158,11,0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #78350f !important;
  font-size: 0.95rem;
}
.mvt-es {
  background: white;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.mvt-es-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 0.6rem;
  display: block;
}
.mvt-legge {
  background: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1.2rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  font-family: 'Lora',Georgia,serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #14532d;
}
.mvt-legge-label {
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #059669;
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
}
.mvt-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  font-size: 0.9em;
  line-height: 1.3;
  margin: 0 3px;
}
.mvt-num {
  border-bottom: 1.5px solid currentColor;
  padding: 1px 5px;
}
.mvt-den {
  padding: 1px 5px;
}
.mvt-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.mvt-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  border-top: 3px solid #10b981;
}
.mvt-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #059669;
  display: block;
  margin-bottom: 0.5rem;
}
.mvt-card p {
  font-size: 0.88rem;
  margin: 0 !important;
  color: #334155 !important;
  line-height: 1.6;
}
.mvt-ops {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.85rem;
  margin: 2rem 0;
}
.mvt-op {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.mvt-op-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10b981;
  display: block;
  margin-bottom: 0.5rem;
}
.mvt-op-formula {
  font-family: 'Lora',serif;
  font-style: italic;
  font-size: 1rem;
  color: #1e293b;
  display: block;
  margin-bottom: 0.4rem;
}
.mvt-op-note {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}
.mvt-dot-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.mvt-dot-half {
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.mvt-dot-alg {
  background: #f0fdf4;
  border: 2px solid #86efac;
}
.mvt-dot-geo {
  background: #eff6ff;
  border: 2px solid #93c5fd;
}
.mvt-dot-half-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.mvt-dot-alg .mvt-dot-half-title {
  color: #059669;
}
.mvt-dot-geo .mvt-dot-half-title {
  color: #1d4ed8;
}
.mvt-dot-formula {
  font-family: 'Lora',serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #1e293b;
}
.mvt-cross-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
}
.mvt-cross-table thead th {
  background: #10b981;
  color: white;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mvt-cross-table tbody td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid #dcfce7;
  font-family: 'Lora',serif;
  font-style: italic;
  text-align: center;
}
.mvt-cross-table tbody tr:last-child td {
  border-bottom: none;
}
.mvt-cross-table tbody tr:hover td {
  background: #f0fdf4;
}
.mvt-bridge {
  background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 40%,#eef2ff 70%,#e0e7ff 100%);
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 4rem 0 2rem;
}
.mvt-bridge-title {
  font-family: 'Playfair Display',serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg,#059669,#6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
}
.mvt-bridge-sub {
  color: #64748b !important;
  font-style: italic;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.mvt-bridge-apps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.8rem;
}
.mvt-bridge-app {
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.mvt-bridge-app-fis {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
}
.mvt-bridge-app-info {
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
}
.mvt-bridge-app-ml {
  background: #fdf4ff;
  border: 1.5px solid #e9d5ff;
}
.mvt-bridge-app-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.mvt-bridge-app-fis .mvt-bridge-app-title {
  color: #1d4ed8;
}
.mvt-bridge-app-info .mvt-bridge-app-title {
  color: #3730a3;
}
.mvt-bridge-app-ml .mvt-bridge-app-title {
  color: #7e22ce;
}
.mvt-bridge-app p {
  font-size: 0.83rem;
  margin: 0 !important;
  color: #475569 !important;
  line-height: 1.5;
}
.mvt-retrieval {
  background: #f0fdf4;
  border-top: 4px solid #10b981;
  padding: 2rem 2rem 2.5rem;
  margin: 3.5rem 0;
  border-radius: 0 0 12px 12px;
}
.mvt-qr {
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.mvt-qr-n {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 0.73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mvt-qr p {
  margin: 0;
  color: #334155 !important;
  font-size: 0.93rem;
}


/* ════════════════════════════════════════════════════════════════════
   Media query (deduplicate per query)
   ════════════════════════════════════════════════════════════════════ */


@media (max-width: 640px) {
  .mat-bridge-due-col {
    grid-template-columns: 1fr;
  }
  .mat-pseudo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .gon-trio {
    grid-template-columns: 1fr;
  }
  .mat-notevoli {
    grid-template-columns: 1fr;
  }
  .mvt-grid2 {
    grid-template-columns: 1fr;
  }
  .mvt-ops {
    grid-template-columns: 1fr;
  }
  .mvt-dot-box {
    grid-template-columns: 1fr;
  }
  .mvt-bridge-apps {
    grid-template-columns: 1fr;
  }
  .mvt-ex3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:600px) {
  .mat-formula-grid {
    grid-template-columns: 1fr;
  }
  .mat-prop-code-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:580px) {
  .mat-bridge-grid {
    grid-template-columns: 1fr;
  }
  .mat-bridge-cards {
    grid-template-columns: 1fr;
  }
}
