:root {
  --ink: #10231d;
  --paper: #f3f0e7;
  --card: #fffdf7;
  --lime: #d7fb69;
  --mint: #8de6c1;
  --orange: #f0a45d;
  --red: #d96c58;
  --line: rgba(16, 35, 29, 0.16);
  --muted: #64716c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .15em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--lime); letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
nav a { color: inherit; text-decoration: none; }
.law-pill { border: 1px solid var(--ink); border-radius: 99px; padding: 9px 13px; font: 500 11px "DM Mono"; text-transform: uppercase; }

.hero-wrap { position: relative; overflow: hidden; isolation: isolate; }
.hero { position: relative; z-index: 2; padding: 86px 0 66px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 50px; align-items: center; }
.hero-content { min-width: 0; }
.hero-grid { position: absolute; z-index: -1; inset: 0; opacity: .28; background-image: linear-gradient(rgba(16,35,29,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,35,29,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, black 22%, black 68%, transparent); }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(3px); }
.hero-orb-one { width: 420px; height: 420px; right: -100px; top: 25px; background: radial-gradient(circle at 35% 35%, rgba(215,251,105,.74), rgba(141,230,193,.2) 55%, transparent 72%); }
.hero-orb-two { width: 260px; height: 260px; left: 38%; bottom: -180px; background: rgba(240,164,93,.12); filter: blur(35px); }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font: 500 11px "DM Mono"; letter-spacing: .08em; }
.eyebrow span { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(141,230,193,.25); }
h1 { max-width: 900px; margin: 22px 0 24px; font-size: clamp(48px, 6.5vw, 88px); line-height: .98; letter-spacing: -.065em; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 620px; font-size: 18px; line-height: 1.65; color: #46544f; }
.trust-row { grid-column: 1 / -1; margin-top: 5px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 36px; color: var(--muted); font-size: 12px; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: #27795c; font-weight: 800; }

.hero-visual { position: relative; height: 385px; perspective: 1000px; }
.salary-card { position: absolute; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(16,35,29,.22); }
.salary-card-main { z-index: 3; left: 18px; top: 43px; width: 330px; height: 275px; padding: 24px; border-radius: 20px; color: white; background: linear-gradient(145deg, #18372d 0%, #0d211b 82%); transform: rotateY(-5deg) rotateZ(1.5deg); overflow: hidden; }
.salary-card-main::before { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -85px; border-radius: 50%; border: 45px solid rgba(215,251,105,.07); }
.salary-card-back { z-index: 1; width: 235px; height: 135px; right: 0; bottom: 15px; padding: 65px 20px 18px; border-radius: 16px; background: var(--lime); color: var(--ink); transform: rotate(8deg); }
.salary-card-back span, .salary-card-back strong { display: block; }
.salary-card-back span { font: 500 9px "DM Mono"; letter-spacing: .1em; }
.salary-card-back strong { margin-top: 3px; font: 500 17px "DM Mono"; }
.salary-card-head, .salary-card-foot { position: relative; display: flex; justify-content: space-between; font: 500 9px "DM Mono"; letter-spacing: .08em; color: #a8bdb5; }
.salary-card-head span:last-child { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -7px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--lime); }
.salary-number { position: relative; display: flex; align-items: baseline; margin: 27px 0 23px; }
.salary-number small { color: var(--lime); font: 400 20px "DM Mono"; }
.salary-number strong { font: 500 45px "DM Mono"; letter-spacing: -.07em; }
.salary-number span { margin-left: 8px; color: #9eb0aa; font-size: 10px; }
.salary-chart { position: relative; height: 72px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.14); }
.salary-chart::after { content: ""; position: absolute; left: 0; right: 0; top: 33%; border-top: 1px dashed rgba(255,255,255,.1); }
.salary-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, #61bc98, var(--lime)); transform-origin: bottom; animation: chart-rise .8s cubic-bezier(.2,.7,.3,1) backwards; }
.salary-chart span:nth-child(2) { animation-delay: .06s; }.salary-chart span:nth-child(3) { animation-delay: .12s; }.salary-chart span:nth-child(4) { animation-delay: .18s; }.salary-chart span:nth-child(5) { animation-delay: .24s; }.salary-chart span:nth-child(6) { animation-delay: .3s; }.salary-chart span:nth-child(7) { animation-delay: .36s; }
.salary-card-foot { margin-top: 13px; font-size: 8px; }
.visual-badge { position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid rgba(16,35,29,.1); border-radius: 99px; background: rgba(255,253,247,.88); box-shadow: 0 14px 35px rgba(16,35,29,.12); backdrop-filter: blur(10px); font: 500 9px "DM Mono"; text-transform: uppercase; }
.visual-badge-top { right: 5px; top: 18px; animation: float 5s ease-in-out infinite; }
.visual-badge-top i { width: 7px; height: 7px; border-radius: 50%; background: #35a77c; box-shadow: 0 0 0 4px rgba(53,167,124,.13); }
.visual-badge-bottom { left: -6px; bottom: 25px; animation: float 5s ease-in-out -2.4s infinite; }
.visual-badge-bottom span { color: #bd4c3f; font-weight: 700; }
.visual-ring { position: absolute; z-index: 0; width: 310px; height: 310px; right: -20px; top: 9px; border: 1px solid rgba(16,35,29,.12); border-radius: 50%; }
.visual-ring::before, .visual-ring::after { content: ""; position: absolute; border-radius: 50%; }
.visual-ring::before { inset: 24px; border: 1px dashed rgba(16,35,29,.11); }
.visual-ring::after { width: 8px; height: 8px; right: 31px; top: 48px; background: var(--orange); box-shadow: 0 0 0 5px rgba(240,164,93,.2); }
@keyframes chart-rise { from { transform: scaleY(0); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.calculator-stage { position: relative; padding: 26px 0; background: linear-gradient(180deg, transparent 0 12%, #e8e4d8 12% 88%, transparent 88%); }
.calculator-stage::before, .calculator-stage::after { content: ""; position: absolute; pointer-events: none; }
.calculator-stage::before { width: 160px; height: 160px; left: max(10px, calc(50% - 700px)); top: -15px; border-radius: 50%; background: var(--orange); opacity: .12; filter: blur(18px); }
.calculator-stage::after { width: 110px; height: 110px; right: max(10px, calc(50% - 690px)); bottom: -5px; background-image: radial-gradient(var(--ink) 1px, transparent 1px); background-size: 11px 11px; opacity: .16; }
.calculator { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; background: var(--card); border: 1px solid var(--line); box-shadow: 0 28px 80px rgba(16,35,29,.13); }
.calculator::before { content: "SIMULATORE / 2026"; position: absolute; z-index: 4; right: -29px; top: 98px; padding: 7px 10px; background: var(--lime); color: var(--ink); font: 500 8px "DM Mono"; letter-spacing: .12em; transform: rotate(90deg); }
.input-panel { padding: 44px; border-right: 1px solid var(--line); }
.result-panel { align-self: start; position: sticky; top: 16px; min-height: 100%; padding: 42px; background: var(--ink); color: white; }
.panel-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 38px; }
.step { font: 500 11px "DM Mono"; color: var(--muted); padding-top: 6px; }
h2, h3, p { margin-top: 0; }
.panel-heading h2 { margin-bottom: 5px; font-size: 26px; letter-spacing: -.03em; }
.panel-heading p { color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: #3f4e48; }
.field > span:first-child { min-height: 17px; }
.field > small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
input, select { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); min-height: 48px; padding: 0 14px; border-radius: 2px; outline: none; }
input:focus, select:focus { border-color: #497769; box-shadow: 0 0 0 3px rgba(141,230,193,.22); }
.ral-field { margin-bottom: 24px; }
.ral-presets { display: flex; align-items: center; gap: 7px; margin: -10px 0 24px; }
.ral-presets > span { margin-right: 3px; color: var(--muted); font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .06em; }
.ral-presets button { min-width: 45px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font: 500 10px "DM Mono"; cursor: pointer; transition: .18s ease; }
.ral-presets button:hover { border-color: var(--ink); color: var(--ink); }
.ral-presets button.active { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.money-input { display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.money-input > span { font: 400 28px "DM Mono"; }
.money-input input { height: 70px; padding-left: 14px; border: 0; background: transparent; font: 500 42px "DM Mono"; letter-spacing: -.04em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ccnl-field > span:first-child { display: flex; align-items: center; justify-content: space-between; }
.ccnl-field b { padding: 3px 6px; border-radius: 99px; background: #e2efd3; color: #42614f; font: 500 8px "DM Mono"; text-transform: uppercase; }
.ccnl-field select { border-color: #6a887d; background-color: #fbfff0; font-weight: 700; }
.suffix-input, .prefix-input { display: flex; align-items: center; position: relative; }
.suffix-input span { position: absolute; right: 14px; color: var(--muted); }
.suffix-input input { padding-right: 38px; }
.prefix-input > span { position: absolute; left: 14px; color: var(--muted); }
.prefix-input input { padding-left: 32px; }
.field-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 12px 0 22px; }
.profile-notes { margin: 13px 0 22px; border-left: 2px solid #92b7a8; padding-left: 13px; }
.profile-notes .field-note { margin: 5px 0; }
.profile-notes strong { color: var(--ink); }
.municipality-field select, .role-field select { background-color: #fffdf4; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 20px 0; font-size: 13px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }
.plus { font-size: 20px; transition: transform .2s; }
.details-body { padding: 4px 0 24px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.4; }
.check-field input { width: 18px; min-height: 18px; accent-color: var(--ink); }
.check-field span { display: grid; gap: 3px; }
.check-field small { color: var(--muted); }
.input-panel > button { width: 100%; margin-top: 26px; min-height: 54px; border: 0; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; background: var(--lime); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 0 8px 0 #a4c849; transition: transform .18s, box-shadow .18s; }
.input-panel > button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #a4c849; }
.input-panel > button:active { transform: translateY(5px); box-shadow: 0 3px 0 #a4c849; }
.auto-calc-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(45,121,91,.16); background: rgba(141,230,193,.1); color: #4a6259; font-size: 10px; line-height: 1.45; }
.auto-calc-note i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #3eac80; box-shadow: 0 0 0 4px rgba(62,172,128,.13); }
.auto-calc-note strong { color: var(--ink); }
.input-feedback { min-height: 17px; margin: 10px 0 -14px; color: #a14436; font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(-3px); transition: opacity .18s, transform .18s; }
.input-feedback.visible { opacity: 1; transform: translateY(0); }

.result-topline { display: flex; justify-content: space-between; font: 500 10px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; color: #aab7b2; }
#result-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--mint); }
.status-pulse::before { animation: status-ping .45s ease-out; }
@keyframes status-ping { 50% { box-shadow: 0 0 0 6px rgba(141,230,193,.18); } }
.net-hero { padding: 44px 0 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
.net-hero p { margin-bottom: 8px; color: #b9c3bf; font-size: 13px; }
.net-hero strong { display: block; font: 500 clamp(50px, 6vw, 72px) "DM Mono"; letter-spacing: -.07em; }
.net-hero span { display: inline-block; margin-top: 14px; padding: 7px 10px; background: rgba(215,251,105,.12); color: var(--lime); font: 500 10px "DM Mono"; text-transform: uppercase; }
.monthly-cards { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.14); }
.monthly-cards article { padding: 24px 0; }
.monthly-cards article + article { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.monthly-cards span { display: block; min-height: 34px; color: #aab7b2; font-size: 11px; }
.monthly-cards strong { font: 500 22px "DM Mono"; }
.breakdown { padding-top: 30px; }
.breakdown-title { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown-title h3 { font-size: 14px; }
.breakdown-title span { color: #8fa099; font: 400 10px "DM Mono"; text-transform: uppercase; }
.bar { display: flex; height: 7px; margin: 18px 0 20px; gap: 2px; overflow: hidden; }
.bar span { display: block; min-width: 2px; }
#bar-net { background: var(--mint); } #bar-contributions { background: var(--orange); } #bar-taxes { background: var(--red); }
dl { margin: 0; }
.breakdown dl > div, .full-details dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; font-size: 12px; }
dt { color: #b6c1bc; } dd { margin: 0; font: 400 12px "DM Mono"; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; }
.gross-dot { background: white; }.contribution-dot { background: var(--orange); }.tax-dot { background: var(--red); }.local-dot { background: #8f789d; }
.benefit-row { margin-top: 8px; padding-top: 15px !important; border-top: 1px dashed rgba(255,255,255,.16); }
.benefit-row dd { color: var(--lime); }
.household-box { margin-top: 22px; padding: 18px; background: var(--lime); color: var(--ink); }
.household-box span, .household-box small, .household-box strong { display: block; }
.household-box span { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.household-box strong { margin: 5px 0; font: 500 25px "DM Mono"; }
.household-box small { line-height: 1.5; opacity: .7; }
.municipality-impact { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.municipality-impact > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.municipality-impact span { color: #b6c1bc; font-size: 11px; }
.municipality-impact strong { color: var(--mint); font: 500 16px "DM Mono"; }
.municipality-impact small { display: block; margin-top: 8px; color: #899b94; font-size: 9px; line-height: 1.5; }
.text-button { border: 0; border-bottom: 1px solid rgba(255,255,255,.25); background: none; color: white; padding: 22px 0 8px; width: 100%; display: flex; justify-content: space-between; font-size: 11px; cursor: pointer; }
.full-details { padding-top: 12px; }

.method { padding: 120px 0 90px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.method-intro { display: grid; grid-template-columns: 30px 1fr; align-content: start; }
.method-intro h2 { font-size: 38px; line-height: 1.12; letter-spacing: -.05em; }
.method-intro p { grid-column: 2; color: var(--muted); line-height: 1.7; font-size: 14px; }
.sector-list { border-top: 1px solid var(--ink); }
.sector-list article { display: grid; grid-template-columns: 35px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sector-list article > span { font: 400 10px "DM Mono"; color: var(--muted); }
.sector-list h3 { margin-bottom: 4px; font-size: 15px; }
.sector-list p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.sector-list strong { font: 500 10px "DM Mono"; text-transform: uppercase; }
.reliefs { border-top: 1px solid var(--ink); padding: 55px 0 100px; }
.reliefs > div:first-child { display: flex; gap: 25px; }
.reliefs h2 { font-size: 32px; letter-spacing: -.04em; }
.relief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.relief-grid article { position: relative; min-height: 230px; padding: 24px; background: #e7e4da; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, background .25s; }
.relief-grid article::after { content: ""; position: absolute; width: 80px; height: 80px; right: -35px; top: -35px; border: 1px solid rgba(16,35,29,.14); border-radius: 50%; box-shadow: 0 0 0 13px rgba(16,35,29,.025), 0 0 0 27px rgba(16,35,29,.018); }
.relief-grid article:hover { transform: translateY(-5px); background: #e0f0c2; }
.relief-grid article span { font: 500 9px "DM Mono"; text-transform: uppercase; color: #557068; }
.relief-grid h3 { margin-top: auto; margin-bottom: 10px; font-size: 17px; }
.relief-grid p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sources { display: grid; grid-template-columns: 35px .8fr 1.2fr; gap: 24px; padding: 55px 0 80px; border-top: 1px solid var(--ink); }
.sources h2 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.04em; }
.sources p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.source-links { border-top: 1px solid var(--line); }
.source-links a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 12px; font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 30px 0 50px; display: flex; justify-content: space-between; gap: 50px; color: var(--muted); font-size: 10px; line-height: 1.6; }
footer p:first-child { max-width: 700px; }

@media (max-width: 880px) {
  nav a { display: none; }
  .hero { padding-top: 60px; grid-template-columns: 1fr; }
  .hero-content { max-width: 700px; }
  .hero-visual { width: 390px; margin: -25px auto 0; }
  .trust-row { flex-direction: column; gap: 10px; }
  .calculator { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: auto; }
  .input-panel { border-right: 0; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .sources { grid-template-columns: 35px 1fr; }
  .source-links { grid-column: 2; }
  .relief-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { height: 68px; }
  h1 { font-size: 50px; }
  .hero-copy { font-size: 15px; }
  .hero { gap: 25px; }
  .hero-visual { width: 100%; height: 330px; transform: scale(.88); transform-origin: top center; margin-bottom: -38px; }
  .salary-card-main { left: 50%; transform: translateX(-50%) rotateZ(1.5deg); }
  .salary-card-back { right: -20px; }
  .visual-badge-top { right: -8px; }
  .visual-badge-bottom { left: -8px; }
  .calculator { width: 100%; border-left: 0; border-right: 0; }
  .calculator::before { display: none; }
  .input-panel, .result-panel { padding: 30px 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .ral-presets { flex-wrap: wrap; }
  .ral-presets > span { width: 100%; margin-bottom: 2px; }
  .money-input input { font-size: 34px; }
  .net-hero strong { font-size: 48px; }
  .monthly-cards { grid-template-columns: 1fr; }
  .monthly-cards article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .method { padding-top: 80px; }
  .sources { grid-template-columns: 1fr; }
  .sources .step, .source-links { grid-column: auto; }
  .relief-grid { grid-template-columns: 1fr; }
  .relief-grid article { min-height: 180px; }
  footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
