@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #18201d;
  --muted: #66706c;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #f0eee7;
  --line: #deddd6;
  --brand: #f1603a;
  --brand-dark: #c53d20;
  --brand-soft: #ffe1d6;
  --green: #246b54;
  --green-soft: #dcefe7;
  --yellow: #f2c94c;
  --shadow: 0 22px 60px rgba(24, 32, 29, .10);
  --shadow-sm: 0 10px 28px rgba(24, 32, 29, .07);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  z-index: 10;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--brand-soft); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 221, 214, .8);
  background: rgba(247, 245, 239, .88);
  backdrop-filter: blur(16px);
}

.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -.045em; }
.brand-name span { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.tools-menu { position: relative; }
.tools-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.tools-menu-button:hover, .tools-menu-button.active, .tools-menu.open .tools-menu-button { color: var(--ink); background: var(--surface); }
.tools-menu-button svg { transition: transform .2s ease; }
.tools-menu.open .tools-menu-button svg { transform: rotate(180deg); }
.tools-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 13px);
  right: -10px;
  display: none;
  width: min(620px, calc(100vw - 40px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tools-menu.open .tools-menu-panel { display: grid; }
.tools-menu-group > p {
  margin: 0 0 7px;
  padding: 0 10px;
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.main-nav .tools-menu-group a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
}
.main-nav .tools-menu-group a:hover, .main-nav .tools-menu-group a[aria-current="page"] { background: var(--surface-soft); }
.tools-menu-group strong, .tools-menu-group span { display: block; }
.tools-menu-group strong { font-size: .9rem; line-height: 1.3; }
.tools-menu-group span { margin-top: 2px; color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.35; }
.main-nav .tools-menu-all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 11px 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: .82rem;
}
.main-nav .tools-menu-all:hover { color: var(--ink); background: var(--green-soft); }
.nav-cta { margin-left: 8px; color: #fff !important; background: var(--ink) !important; }
.nav-cta:hover { background: var(--brand) !important; }
.menu-button { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--brand); }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 22px; font-size: clamp(2.65rem, 7vw, 5.7rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin-bottom: 10px; font-size: 1.2rem; }
p { margin-top: 0; }
.lead { max-width: 660px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.accent { color: var(--brand); }

.hero { position: relative; overflow: hidden; padding: 102px 0 88px; }
.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 600px;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.22), 0 0 0 130px rgba(255,255,255,.16);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 22px rgba(241,96,58,.22); }
.button-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 28px rgba(241,96,58,.26); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-ghost { padding-inline: 10px; color: var(--muted); background: transparent; }
.button-small { min-height: 38px; padding: 7px 12px; font-size: .88rem; }
.button svg { width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 440px; }
.count-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.count-card-main { inset: 26px 18px 62px 30px; padding: 28px; transform: rotate(2deg); }
.mini-label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.giant-number { margin: 28px 0 18px; font-family: "Manrope", sans-serif; font-size: clamp(5rem, 10vw, 7.4rem); font-weight: 800; line-height: .9; letter-spacing: -.08em; }
.fake-lines { display: grid; gap: 10px; }
.fake-lines i { display: block; height: 9px; border-radius: 10px; background: var(--surface-soft); }
.fake-lines i:nth-child(2) { width: 75%; }
.fake-lines i:nth-child(3) { width: 88%; }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 700; }
.floating-chip.top { top: 0; right: 0; color: #fff; background: var(--green); transform: rotate(-4deg); }
.floating-chip.bottom { left: 0; bottom: 35px; background: var(--yellow); transform: rotate(-3deg); }
.floating-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.trust-row { padding: 22px 0; border-block: 1px solid var(--line); }
.trust-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 48px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust-list li { display: flex; align-items: center; gap: 9px; }
.trust-list svg { width: 19px; color: var(--green); }

.section { padding: 100px 0; }
.section-white { background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 42px; }
.section-heading > div { max-width: 700px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tool-link-card {
  position: relative;
  min-height: 345px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tool-link-card.dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.tool-link-card.calorie-card { background: #eff6ed; }
.tool-link-card.fiscal-card { background: #edf1f8; }
.tool-link-card.password-card { background: #fff1ec; }
.tool-link-card.salary-card { background: #eef7f2; }
.tool-link-card.forfettario-card { grid-column: 1 / -1; min-height: 310px; background: #fff8df; }
.tool-link-card.reimbursement-card { grid-column: 1 / -1; min-height: 310px; background: #edf5f8; }
.tool-icon { display: grid; width: 52px; height: 52px; margin-bottom: 54px; place-items: center; border-radius: 15px; color: var(--brand-dark); background: var(--brand-soft); }
.dark .tool-icon { color: var(--ink); background: var(--yellow); }
.calorie-card .tool-icon { color: #fff; background: var(--green); }
.fiscal-card .tool-icon { color: #fff; background: #52698f; }
.password-card .tool-icon { color: #fff; background: var(--brand); }
.salary-card .tool-icon { color: #fff; background: #28674f; }
.forfettario-card .tool-icon { color: var(--ink); background: var(--yellow); }
.reimbursement-card .tool-icon { color: #fff; background: #476f83; }
.tool-icon svg { width: 25px; height: 25px; }
.tool-link-card h3 { font-size: 1.75rem; }
.tool-link-card p { max-width: 440px; color: var(--muted); }
.tool-link-card.dark p { color: #bfc7c3; }
.card-arrow { position: absolute; right: 28px; top: 28px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--surface-soft); transition: .2s; }
.dark .card-arrow { color: var(--ink); background: #fff; }
.tool-link-card:hover .card-arrow { color: #fff; background: var(--brand); transform: rotate(-8deg); }
.card-arrow svg { width: 19px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.feature { padding-top: 24px; border-top: 2px solid var(--ink); }
.feature-number { margin-bottom: 38px; color: var(--brand); font-family: "Manrope", sans-serif; font-weight: 800; }
.feature p { color: var(--muted); }

.editorial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.sticky-title { position: sticky; top: 120px; align-self: start; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #505a56; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-dark); }
.prose ul { padding-left: 20px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: "Manrope", sans-serif; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.6rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 760px; padding: 0 40px 20px 0; color: var(--muted); }

.page-hero { padding: 74px 0 44px; text-align: center; }
.page-hero h1 { max-width: 850px; margin-inline: auto; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero .lead { margin-inline: auto; }
.breadcrumbs { display: flex; justify-content: center; gap: 7px; margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); }

.tool-section { padding: 24px 0 96px; }
.app-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.app-toolbar-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3daf78; box-shadow: 0 0 0 4px var(--green-soft); }
.toolbar-actions { display: flex; gap: 4px; }
.textarea-wrap { position: relative; padding: 24px; }
.counter-textarea { width: 100%; min-height: 320px; resize: vertical; padding: 2px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1.12rem; line-height: 1.75; }
.counter-textarea::placeholder { color: #9da49f; }
.privacy-note { display: flex; align-items: center; gap: 8px; margin: 0 24px 22px; color: var(--muted); font-size: .82rem; }
.privacy-note svg { width: 15px; flex: none; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: #fbfaf7; }
.stat { padding: 20px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-value { display: block; margin-bottom: 1px; font-family: "Manrope", sans-serif; font-size: 1.7rem; font-weight: 800; letter-spacing: -.05em; }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 600; }

.social-panel { padding: 28px; border-top: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.panel-note { color: var(--muted); font-size: .78rem; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social-meter { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.meter-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.network { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.network-badge { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: var(--ink); font-size: .72rem; }
.network-badge.threads { color: var(--ink); background: #eceae4; }
.network-badge.instagram { background: linear-gradient(135deg, #7c3aed, #f43f5e, #f59e0b); }
.network-badge.linkedin { background: #0a66c2; }
.remaining { color: var(--muted); font-size: .8rem; }
.remaining strong { color: var(--ink); }
.remaining.over, .remaining.over strong { color: #b42d22; }
.meter-track { height: 7px; overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.meter-fill { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease, background .25s ease; }
.meter-fill.warning { background: var(--yellow); }
.meter-fill.over { background: #d44737; }

.tabs { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.tab { flex: 1; min-height: 48px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.tab:hover { background: var(--surface-soft); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 9px rgba(24,32,29,.08); }
.tab-panel { padding: 34px; }
.tab-panel[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: grid; min-width: 0; gap: 7px; }
.form-fieldset { margin: 0; padding: 0; border: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label, .fieldset-label { color: #424b47; font-size: .84rem; font-weight: 700; }
.field { width: 100%; min-width: 0; height: 50px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--surface); transition: border .2s, box-shadow .2s; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { flex: 1; padding: 8px 10px; border-radius: 8px; text-align: center; cursor: pointer; }
.segmented input:checked + label { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(24,32,29,.1); }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-actions { display: flex; gap: 10px; margin-top: 25px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.quick-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.quick-button:hover { color: var(--brand-dark); border-color: var(--brand); }

.result-card { margin-top: 28px; padding: 26px; border-radius: 17px; color: #fff; background: var(--ink); }
.result-kicker { margin-bottom: 6px; color: #b8c1bd; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result-main { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.result-main small { color: #b8c1bd; font-size: .38em; letter-spacing: 0; }
.result-date { margin: 5px 0 0; font-family: "Manrope", sans-serif; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; }
.result-sub { margin: 9px 0 0; color: #b8c1bd; }
.result-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #39423e; }
.result-detail strong { display: block; font-size: 1.1rem; }
.result-detail span { color: #aeb7b3; font-size: .78rem; }
.swap-button { align-self: end; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.swap-button:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.date-inputs { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: end; gap: 12px; }

.calorie-layout { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 610px; }
.calorie-form { padding: 34px; border-right: 1px solid var(--line); }
.calorie-form h2 { margin-bottom: 8px; font-size: 1.55rem; }
.calorie-form > p { margin-bottom: 26px; color: var(--muted); }
.calorie-results { display: flex; flex-direction: column; padding: 34px; color: #fff; background: var(--ink); }
.calorie-results .result-kicker { margin-top: 4px; }
.calorie-total { margin: 6px 0 3px; font-family: "Manrope", sans-serif; font-size: clamp(3.7rem, 7vw, 5.7rem); font-weight: 800; line-height: .92; letter-spacing: -.075em; }
.calorie-total small { color: #b8c1bd; font-size: .25em; letter-spacing: 0; }
.calorie-range { margin-bottom: 28px; color: #b8c1bd; }
.calorie-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.calorie-detail { padding: 15px; border: 1px solid #39423e; border-radius: 12px; }
.calorie-detail strong { display: block; font-size: 1.25rem; }
.calorie-detail span { color: #aeb7b3; font-size: .76rem; }
.bmi-box { margin-top: auto; padding-top: 24px; border-top: 1px solid #39423e; }
.bmi-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.bmi-value { font-family: "Manrope", sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.bmi-label { max-width: 210px; color: #b8c1bd; font-size: .82rem; text-align: right; }
.bmi-scale { position: relative; display: grid; grid-template-columns: 8.5fr 6.5fr 5fr 10fr; gap: 3px; height: 9px; margin-top: 20px; }
.bmi-scale span { border-radius: 5px; }
.bmi-scale span:nth-child(1) { background: #78a8d8; }
.bmi-scale span:nth-child(2) { background: #59b888; }
.bmi-scale span:nth-child(3) { background: #e5bb48; }
.bmi-scale span:nth-child(4) { background: #df6d55; }
.bmi-marker { position: absolute; top: -5px; left: 0; width: 3px; height: 19px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(24,32,29,.55); transition: left .25s ease; }
.medical-note { display: flex; gap: 13px; margin-top: 22px; padding: 16px; border: 1px solid #46514c; border-radius: 12px; color: #c1cac6; background: #202925; font-size: .8rem; }
.medical-note svg { width: 19px; height: 19px; flex: none; color: var(--yellow); }
.medical-note p { margin: 0; }
.input-suffix { position: relative; }
.input-suffix .field { padding-right: 48px; }
.input-suffix span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: .78rem; transform: translateY(-50%); pointer-events: none; }
.method-note { margin: 15px 0 0; color: var(--muted); font-size: .78rem; }
.method-note a { color: var(--brand-dark); }

.cf-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 690px; }
.cf-form { padding: 34px; border-right: 1px solid var(--line); }
.cf-form-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cf-form-heading h2 { margin-bottom: 8px; font-size: 1.55rem; }
.cf-form-heading p { margin: 0; color: var(--muted); }
.local-badge { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 7px 10px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: .73rem; font-weight: 700; }
.place-mode label { font-size: .8rem; }
.place-fieldset { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.nested-grid { grid-column: 1 / -1; }
.place-combobox { position: relative; }
.place-results { position: absolute; z-index: 8; top: calc(100% + 7px); left: 0; right: 0; max-height: 330px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); list-style: none; }
.place-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 11px; border-radius: 9px; cursor: pointer; }
.place-option:hover, .place-option.active { background: var(--surface-soft); }
.place-option strong { font-size: .9rem; }
.place-option span { flex: none; color: var(--muted); font-size: .77rem; }
.place-no-result { padding: 12px; color: var(--muted); font-size: .84rem; }
.field-help { margin: 0; color: var(--muted); font-size: .77rem; }
.field-help a { color: var(--brand-dark); }
.code-field { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.form-alert { margin-top: 18px; padding: 11px 13px; border: 1px solid #e5a49a; border-radius: 10px; color: #9d2e22; background: #fff0ed; font-size: .86rem; }

.cf-results { display: flex; min-width: 0; padding: 34px; color: #fff; background: var(--ink); }
.cf-empty, .cf-result-content { width: 100%; margin: auto 0; }
.cf-empty-icon { display: grid; width: 64px; height: 64px; margin-bottom: 32px; place-items: center; border: 1px solid #46514c; border-radius: 18px; color: var(--yellow); background: #202925; }
.cf-empty-icon svg { width: 31px; }
.cf-empty h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
.cf-empty > p:last-child { max-width: 430px; color: #aeb7b3; }
.cf-code-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-bottom: 26px; border-bottom: 1px solid #39423e; }
.cf-code { min-width: 0; overflow-wrap: anywhere; color: #fff; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(1.55rem, 3.3vw, 2.65rem); font-weight: 800; line-height: 1.1; letter-spacing: .055em; }
.copy-code { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 11px; border: 1px solid #4a5550; border-radius: 10px; color: #fff; background: #242d29; cursor: pointer; }
.copy-code:hover { border-color: var(--yellow); }
.copy-code svg { width: 17px; }
.copy-code span { font-size: .78rem; font-weight: 700; }
.copy-status { min-height: 20px; margin: 7px 0 0; color: #91d5b8; font-size: .76rem; }
.cf-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.cf-breakdown div { min-width: 0; padding: 11px; border: 1px solid #39423e; border-radius: 10px; }
.cf-breakdown strong { display: block; overflow-wrap: anywhere; color: #fff; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1rem; letter-spacing: .06em; }
.cf-breakdown span { color: #9fa9a4; font-size: .67rem; }
.cf-place-caption { margin: 16px 0 0; color: #b8c1bd; font-size: .8rem; }
.official-note { display: flex; gap: 12px; margin-top: 24px; padding: 15px; border: 1px solid #46514c; border-radius: 12px; color: #c1cac6; background: #202925; font-size: .78rem; }
.official-note svg { width: 18px; height: 18px; flex: none; color: var(--yellow); }
.official-note p { margin: 0; }
.official-note a { color: #fff; }
.lead-small { color: var(--muted); }

.algorithm-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.algorithm-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.algorithm-list li:last-child { border-bottom: 1px solid var(--line); }
.algorithm-list li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-family: "Manrope", sans-serif; font-size: .76rem; font-weight: 800; }
.algorithm-list h3 { margin-bottom: 8px; }
.algorithm-list p { margin: 0; }
.technical-details { margin: 30px 0 38px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.technical-details summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.technical-details summary::-webkit-details-marker { display: none; }
.technical-details summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.technical-details[open] summary::after { content: "−"; }
.technical-content { padding: 0 18px 18px; }
.mapping-table { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.mapping-table p { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.mapping-table p:last-child { border: 0; }
.mapping-table span { padding: 7px 8px; border-right: 1px solid var(--line); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .7rem; }
.mapping-table span:last-child { border: 0; }

.password-layout { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 720px; }
.password-form { padding: 34px; border-right: 1px solid var(--line); }
.password-form-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.password-form-heading h2 { margin-bottom: 8px; font-size: 1.55rem; }
.password-form-heading p { margin: 0; color: var(--muted); }
.password-kicker { color: var(--brand-dark); }
.password-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 22px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.password-mode-tabs button { min-height: 43px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.password-mode-tabs button:hover { color: var(--ink); }
.password-mode-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 7px rgba(24,32,29,.1); }
.password-mode-tabs button:focus-visible { outline: 3px solid var(--brand-soft); }
.password-mode-panel[hidden] { display: none; }
.length-control { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf7; }
.length-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.length-heading label { font-weight: 700; }
.length-heading output { color: var(--brand-dark); font-family: "Manrope", sans-serif; font-size: 1.1rem; font-weight: 800; }
.length-control input { width: 100%; height: 7px; margin: 0; border-radius: 10px; outline: 0; accent-color: var(--brand); cursor: pointer; }
.length-control input:focus-visible { box-shadow: 0 0 0 4px var(--brand-soft); }
.range-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.password-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 0; padding: 0; border: 0; }
.password-options legend { margin-bottom: 10px; color: #424b47; font-size: .84rem; font-weight: 700; }
.password-option { position: relative; display: flex; align-items: center; justify-content: space-between; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.password-option:has(input:checked) { border-color: #84b6a2; background: #f1f8f5; }
.password-option span { display: grid; min-width: 0; }
.password-option strong { font-size: .88rem; }
.password-option small { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.password-option input { position: absolute; opacity: 0; pointer-events: none; }
.password-option i { position: relative; width: 22px; height: 22px; flex: none; border: 1px solid #b7bdb9; border-radius: 7px; background: #fff; }
.password-option input:focus-visible + i { box-shadow: 0 0 0 4px var(--brand-soft); }
.password-option input:checked + i { border-color: var(--green); background: var(--green); }
.password-option input:checked + i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.password-option.full-option { grid-column: 1 / -1; }
.exclude-option { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; color: var(--muted); cursor: pointer; }
.exclude-option input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.exclude-option span { display: grid; }
.exclude-option strong { color: var(--ink); font-size: .88rem; }
.exclude-option small { font-size: .76rem; }
.memorable-settings { margin-top: 18px; }
.memorable-options { margin-top: 18px; }
.memorable-help { margin-top: 14px; }
.password-submit { width: 100%; margin-top: 26px; }

.password-result { display: flex; min-width: 0; flex-direction: column; padding: 34px; color: #fff; background: var(--ink); }
.password-result-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.password-security { display: inline-flex; align-items: center; gap: 7px; color: #91d5b8; font-size: .74rem; font-weight: 700; }
.password-security svg { width: 17px; flex: none; }
.password-output-wrap { position: relative; margin-top: 32px; }
.password-output { display: block; width: 100%; min-height: 128px; padding: 23px 72px 23px 20px; resize: none; overflow-wrap: anywhere; border: 1px solid #46514c; border-radius: 15px; outline: 0; color: #fff; background: #202925; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
.password-output:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(242,201,76,.15); }
.copy-password { position: absolute; top: 14px; right: 14px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #4a5550; border-radius: 11px; color: #fff; background: #29332f; cursor: pointer; }
.copy-password:hover { color: var(--ink); border-color: var(--yellow); background: var(--yellow); }
.copy-password svg { width: 20px; }
.copy-password span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.password-result .copy-status { margin-bottom: 10px; }
.strength-panel { margin-top: 22px; padding: 20px; border: 1px solid #39423e; border-radius: 13px; }
.strength-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: .82rem; }
.strength-heading span { color: #b8c1bd; }
.strength-heading strong { color: #fff; }
.strength-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.strength-meter i { height: 7px; border-radius: 8px; background: #3a4540; }
.strength-meter[data-level="1"] i:nth-child(-n+1) { background: #df6d55; }
.strength-meter[data-level="2"] i:nth-child(-n+2) { background: var(--yellow); }
.strength-meter[data-level="3"] i:nth-child(-n+3) { background: #75c6a3; }
.strength-meter[data-level="4"] i:nth-child(-n+4) { background: #59b888; }
.strength-panel p { margin: 11px 0 0; color: #929c97; font-size: .74rem; }
.password-tips { margin-top: auto; padding-top: 30px; }
.password-tips h3 { margin-bottom: 16px; color: #fff; font-size: 1rem; letter-spacing: -.02em; }
.password-tips ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.password-tips li { display: flex; align-items: center; gap: 11px; color: #b8c1bd; font-size: .8rem; }
.password-tips li span { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border-radius: 8px; color: var(--yellow); background: #29332f; font-weight: 800; }

.salary-layout { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 870px; }
.salary-form { padding: 34px; border-right: 1px solid var(--line); }
.salary-form-heading { display: flex; align-items: start; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.salary-form-heading h2 { margin-bottom: 8px; font-size: 1.55rem; }
.salary-form-heading p { margin-bottom: 0; color: var(--muted); }
.salary-kicker { color: var(--brand-dark) !important; }
.salary-fields { gap: 16px; }
.salary-money .field { font-family: "Manrope", sans-serif; font-size: 1.08rem; font-weight: 800; }
.salary-fields .quick-actions { margin-top: 1px; }
.salary-fields .field-help { margin-top: -2px; }
.local-tax-fields { margin: 24px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf7; }
.local-tax-fields legend { padding: 0 7px; color: #424b47; font-size: .84rem; font-weight: 700; }
.local-tax-fields .field-help { margin: 13px 0 0; }
.local-tax-fields .field-help a { color: var(--brand-dark); }
.salary-submit { width: 100%; margin-top: 26px; }
.salary-assumption { margin: 13px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

.salary-results { min-width: 0; padding: 34px; color: #fff; background: var(--ink); }
.salary-monthly { margin-top: 15px; font-family: "Manrope", sans-serif; font-size: clamp(3.6rem, 7vw, 5.6rem); font-weight: 800; line-height: .92; letter-spacing: -.075em; }
.salary-monthly-label { margin: 9px 0 28px; color: #b8c1bd; }
.salary-top-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.salary-top-results div { padding: 15px; border: 1px solid #39423e; border-radius: 12px; background: #202925; }
.salary-top-results span { display: block; color: #aeb7b3; font-size: .72rem; }
.salary-top-results strong { display: block; margin-top: 3px; font-size: 1.15rem; }
.salary-bar { display: flex; height: 13px; margin-top: 28px; overflow: hidden; border-radius: 9px; background: #39423e; }
.salary-bar i { display: block; height: 100%; transition: width .25s ease; }
.salary-bar-net { background: #59b888; }
.salary-bar-contributions { background: var(--yellow); }
.salary-bar-taxes { background: var(--brand); }
.salary-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: #aeb7b3; font-size: .7rem; }
.salary-legend span { display: flex; align-items: center; gap: 6px; }
.salary-legend i { width: 8px; height: 8px; border-radius: 50%; }
.salary-legend .net { background: #59b888; }
.salary-legend .contributions { background: var(--yellow); }
.salary-legend .taxes { background: var(--brand); }
.salary-breakdown { margin: 27px 0 0; border-top: 1px solid #39423e; }
.salary-breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 9px 0; border-bottom: 1px solid #303a35; }
.salary-breakdown dt { color: #aeb7b3; font-size: .78rem; }
.salary-breakdown dd { flex: none; margin: 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .82rem; font-weight: 700; }
.salary-breakdown .positive dd { color: #91d5b8; }
.salary-result-note { display: flex; gap: 12px; margin-top: 22px; padding: 15px; border: 1px solid #46514c; border-radius: 12px; color: #c1cac6; background: #202925; font-size: .76rem; }
.salary-result-note svg { width: 18px; height: 18px; flex: none; color: var(--yellow); }
.salary-result-note p { margin: 0; }

.salary-rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.salary-rules-grid article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.salary-rules-grid article > span { color: var(--brand-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.salary-rules-grid strong { display: block; margin: 25px 0 12px; font-family: "Manrope", sans-serif; font-size: 1.45rem; letter-spacing: -.045em; }
.salary-rules-grid p { margin: 0; color: var(--muted); font-size: .82rem; }
.salary-tax-table { margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.salary-tax-table > div { display: grid; grid-template-columns: 1fr 90px; border-bottom: 1px solid var(--line); }
.salary-tax-table > div:last-child { border-bottom: 0; }
.salary-tax-table span, .salary-tax-table strong, .salary-tax-table b { padding: 12px 14px; }
.salary-tax-table strong { color: var(--muted); background: #fbfaf7; font-size: .76rem; text-transform: uppercase; }
.salary-tax-table b { border-left: 1px solid var(--line); color: var(--brand-dark); text-align: center; }

.forfettario-layout { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 1080px; }
.forfettario-form { padding: 34px; border-right: 1px solid var(--line); }
.forfettario-form .local-tax-fields { margin-top: 18px; }
.forfettario-form .check-field { display: flex; align-items: center; }
.forfettario-form .check-row { margin: 0; cursor: pointer; }
.ateco-combobox { position: relative; }
.ateco-results { position: absolute; z-index: 9; top: calc(100% + 7px); left: 0; right: 0; max-height: 350px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); list-style: none; }
.ateco-results li { border-radius: 9px; }
.ateco-results li.active, .ateco-results li:hover { background: var(--surface-soft); }
.ateco-results button { display: grid; width: 100%; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 10px 11px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.ateco-results strong { color: var(--brand-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .78rem; }
.ateco-results span { min-width: 0; font-size: .8rem; line-height: 1.3; }
.ateco-results small { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.ateco-coefficient-help { margin: 0; color: var(--muted); font-size: .77rem; }
.ateco-coefficient-help[data-level="ok"] { color: var(--green); }
.ateco-coefficient-help[data-level="warning"] { padding: 10px 12px; border: 1px solid #d7b756; border-radius: 9px; color: #745f1d; background: #fff8df; }
.forfettario-advanced { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf7; }
.forfettario-advanced summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.forfettario-advanced summary::-webkit-details-marker { display: none; }
.forfettario-advanced summary::after { content: "+"; color: var(--brand); font-size: 1.35rem; font-weight: 400; }
.forfettario-advanced[open] summary::after { content: "−"; }
.forfettario-advanced-content { padding: 4px 18px 18px; }
.forfettario-advanced label span { color: var(--muted); font-weight: 400; }
.f24-history-help { grid-column: 1 / -1; padding: 11px 13px; border-radius: 9px; background: var(--surface-soft); }
.forfettario-results .salary-top-results small { display: block; margin-top: 3px; color: #89948f; font-size: .67rem; }
.forfettario-eligibility { display: grid; gap: 3px; margin-top: 18px; padding: 14px 15px; border: 1px solid #3e765f; border-radius: 12px; color: #bce7d3; background: #20342c; }
.forfettario-eligibility strong { font-size: .83rem; }
.forfettario-eligibility span { color: #a9c6b9; font-size: .72rem; }
.forfettario-eligibility[data-level="warning"] { border-color: #8f7935; color: #ffe49a; background: #35301f; }
.forfettario-eligibility[data-level="warning"] span { color: #d5c995; }
.forfettario-eligibility[data-level="stop"] { border-color: #94554a; color: #ffc4b9; background: #382522; }
.forfettario-eligibility[data-level="stop"] span { color: #d9aaa2; }
.forfettario-bar-expenses { background: #81a8d2; }
.salary-legend .actual-expenses { background: #81a8d2; }
.forfettario-paid-note { margin: 15px 0 0; color: #9fb8ad; font-size: .72rem; }
.coefficient-table > div { grid-template-columns: 1fr 110px; }

.container.reimbursement-layout { width: min(1400px, calc(100% - 40px)); }
.reimbursement-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
.reimbursement-form { min-width: 0; padding: 32px; border-right: 1px solid var(--line); }
.vehicle-combobox { position: relative; }
.vehicle-results { position: absolute; z-index: 9; top: calc(100% + 7px); left: 0; right: 0; max-height: 370px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); list-style: none; }
.vehicle-results li { border-radius: 9px; }
.vehicle-results li:hover, .vehicle-results button.active { background: var(--surface-soft); }
.vehicle-results button { display: grid; width: 100%; gap: 2px; padding: 10px 11px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.vehicle-results strong { font-size: .8rem; line-height: 1.35; }
.vehicle-results span { color: var(--muted); font-size: .7rem; }
#reimbursement-rate-source[data-level="ok"] { color: var(--green); }
#reimbursement-rate-source[data-level="warning"] { color: #80691f; }
.reimbursement-details { margin-bottom: 30px; }
.reimbursement-trips-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 32px; }
.reimbursement-trips-heading h2 { margin-bottom: 0; font-size: 1.55rem; }
.reimbursement-trips-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .78rem; }
.reimbursement-scroll-hint { display: none; margin: 11px 0 -7px; color: var(--brand-dark); font-size: .7rem; font-weight: 700; }
.reimbursement-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; outline: 0; background: var(--surface); }
.reimbursement-table-wrap:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.reimbursement-entry-table { width: 100%; min-width: 990px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.reimbursement-entry-table th, .reimbursement-entry-table td { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.reimbursement-entry-table th:last-child, .reimbursement-entry-table td:last-child { border-right: 0; }
.reimbursement-entry-table thead th { padding-block: 11px; color: var(--muted); background: #f5f3ed; font-size: .69rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.reimbursement-entry-table th:nth-child(1) { width: 134px; }
.reimbursement-entry-table th:nth-child(2) { width: 238px; }
.reimbursement-entry-table th:nth-child(3) { width: 166px; }
.reimbursement-entry-table th:nth-child(4) { width: 128px; }
.reimbursement-entry-table th:nth-child(5) { width: 132px; }
.reimbursement-entry-table th:nth-child(6) { width: 120px; }
.reimbursement-entry-table th:nth-child(7) { width: 70px; }
.reimbursement-entry-table tbody tr:last-child td { border-bottom: 0; }
.reimbursement-entry-table tbody tr:hover td { background: #fdfcf9; }
.reimbursement-entry-table .field { height: 39px; padding: 7px 9px; border-radius: 8px; font-size: .78rem; }
.reimbursement-entry-table input[type="date"] { padding-inline: 7px; }
.trip-number { display: grid; width: 23px; height: 23px; margin: 0 0 6px; place-items: center; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-size: .68rem; font-weight: 800; }
.table-field-stack { display: grid; gap: 7px; }
.table-field-stack label { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 5px; }
.table-field-stack label > span { color: var(--muted); font-size: .65rem; font-weight: 700; line-height: 1.15; }
.table-field-stack abbr { display: inline-grid; width: 14px; height: 14px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--muted); font-size: .58rem; text-decoration: none; cursor: help; }
.trip-total strong, .trip-total span, .trip-total small { display: block; }
.trip-total strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; }
.trip-total span { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.trip-total small { margin-top: 5px; color: var(--brand-dark); font-size: .62rem; font-weight: 700; line-height: 1.25; }
.trip-actions { white-space: nowrap; }
.trip-actions button { display: inline-grid; width: 26px; height: 29px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 1rem; cursor: pointer; }
.trip-actions button:hover { color: var(--ink); background: var(--surface-soft); }
.trip-actions .trip-remove:hover { color: #a52e20; background: #fff0ed; }
.reimbursement-entry-table tfoot th, .reimbursement-entry-table tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; color: var(--ink); background: #f5f3ed; font-size: .75rem; font-weight: 800; }
.reimbursement-entry-table tfoot td { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.reimbursement-auto-note { display: flex; align-items: center; justify-content: center; gap: 8px; }
.reimbursement-results { min-height: 640px; }
.reimbursement-results .salary-monthly { font-size: clamp(3rem, 6vw, 4.8rem); }
.reimbursement-print-button { width: 100%; margin-top: 24px; color: var(--ink); background: var(--yellow); }
.reimbursement-print-sheet { display: none; }

@media (max-width: 1180px) {
  .reimbursement-layout { grid-template-columns: 1fr; }
  .reimbursement-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .reimbursement-results { min-height: 0; }
}

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body { color: #111; background: #fff; font-family: Arial, sans-serif; }
  body::before, body > .skip-link, body > .site-header, body > main, body > .site-footer { display: none !important; }
  body > .reimbursement-print-sheet { display: block !important; }
  .reimbursement-print-sheet { width: 100%; font-size: 9pt; }
  .reimbursement-print-sheet h1 { margin-bottom: 8mm; font-family: Arial, sans-serif; font-size: 18pt; text-align: center; letter-spacing: 0; }
  .print-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2mm 8mm; margin-bottom: 7mm; }
  .print-meta p { margin: 0; }
  .print-meta .wide { grid-column: 1 / -1; }
  .reimbursement-print-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .reimbursement-print-sheet th, .reimbursement-print-sheet td { padding: 2.2mm; border: 1px solid #555; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
  .reimbursement-print-sheet th:nth-child(1) { width: 19mm; }
  .reimbursement-print-sheet th:nth-child(5) { width: 13mm; text-align: right; }
  .reimbursement-print-sheet th:nth-child(6) { width: 25mm; text-align: right; }
  .reimbursement-print-sheet td:nth-child(5), .reimbursement-print-sheet td:nth-child(6), .reimbursement-print-sheet tfoot th { text-align: right; }
  .reimbursement-print-sheet thead { background: #eee; }
  .print-summary { display: flex; justify-content: flex-end; gap: 10mm; margin-top: 5mm; }
  .print-summary p { margin: 0; }
  .print-declaration { margin-top: 10mm; }
  .print-signatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20mm; margin-top: 15mm; }
  .print-signatures p { padding-top: 3mm; border-top: 1px solid #555; text-align: center; }
  .print-source { margin-top: 10mm; color: #555; font-size: 7.5pt; }
}

.callout { display: flex; gap: 18px; margin: 30px 0; padding: 20px; border-radius: 14px; background: var(--green-soft); }
.callout-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 10px; color: #fff; background: var(--green); }
.callout p { margin: 0; color: #315d4e; }

.cta-band { padding: 70px 0; color: #fff; background: var(--brand); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.cta-inner h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.cta-inner .button { flex: none; color: var(--ink); background: #fff; }

.site-footer { padding: 56px 0 26px; color: #c5ccc8; background: #131a17; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 44px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 370px; margin-top: 18px; color: #929c97; }
.footer-title { margin-bottom: 14px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #aeb7b3; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid #303834; color: #7d8882; font-size: .82rem; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-grid, .editorial-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-visual { width: min(500px, 100%); margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 50px 1fr; gap: 0 16px; }
  .feature-number { grid-row: 1 / 3; margin: 0; }
  .sticky-title { position: static; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .calorie-layout { grid-template-columns: 1fr; }
  .calorie-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .cf-layout { grid-template-columns: 1fr; }
  .cf-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .cf-results { min-height: 560px; }
  .password-layout { grid-template-columns: 1fr; }
  .password-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .password-result { min-height: 590px; }
  .salary-layout { grid-template-columns: 1fr; }
  .salary-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .salary-rules-grid { grid-template-columns: repeat(2, 1fr); }
  .forfettario-layout { grid-template-columns: 1fr; }
  .forfettario-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .reimbursement-layout { grid-template-columns: 1fr; }
  .reimbursement-form { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav-wrap { height: 66px; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 66px; left: 20px; right: 20px; display: none; max-height: calc(100vh - 86px); padding: 10px; overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 12px; }
  .tools-menu { width: 100%; }
  .tools-menu-button { width: 100%; justify-content: space-between; padding: 12px; }
  .tools-menu-panel { position: static; width: 100%; grid-template-columns: 1fr; gap: 10px; margin: 2px 0 5px; padding: 12px; border-radius: 12px; background: #fbfaf7; box-shadow: none; }
  .main-nav .tools-menu-all { grid-column: auto; }
  .nav-cta { margin: 4px 0 0; text-align: center; }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .container.reimbursement-layout { width: min(calc(100% - 28px), 1400px); }
  .nav-wrap { height: 66px; }
  .menu-button { display: block; }
  .main-nav { left: 14px; right: 14px; }
  .main-nav.open { display: grid; }
  .hero { padding: 58px 0 60px; }
  .hero-grid { gap: 30px; }
  .hero-visual { min-height: 340px; }
  .count-card-main { inset: 25px 8px 48px 18px; padding: 22px; }
  .giant-number { font-size: 5.5rem; }
  .floating-chip { padding: 10px 12px; font-size: .82rem; }
  .section { padding: 72px 0; }
  .section-heading, .cta-inner { display: block; }
  .section-heading .button, .cta-inner .button { margin-top: 18px; }
  .tool-grid, .social-grid { grid-template-columns: 1fr; }
  .tool-link-card { min-height: 300px; padding: 26px; }
  .page-hero { padding-top: 52px; }
  .page-hero h1 { font-size: clamp(2.25rem, 10.5vw, 3rem); }
  .app-toolbar { align-items: flex-start; }
  .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .textarea-wrap { padding: 18px; }
  .counter-textarea { min-height: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
  .social-panel, .tab-panel { padding: 22px 18px; }
  .tab { min-width: 0; padding-inline: 6px; font-size: .88rem; }
  .panel-heading { display: block; }
  .panel-note { display: block; margin-top: 5px; }
  .date-inputs { grid-template-columns: 1fr; }
  .swap-button { align-self: center; transform: rotate(90deg); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .result-details { grid-template-columns: 1fr 1fr; }
  .calorie-form, .calorie-results { padding: 24px 18px; }
  .calorie-results { min-height: 590px; }
  .cf-form, .cf-results { padding: 24px 18px; }
  .cf-results { min-height: 520px; }
  .cf-form-heading { display: block; }
  .local-badge { margin-top: 14px; }
  .place-mode { display: grid; grid-template-columns: 1fr; }
  .cf-code-row { align-items: flex-start; }
  .copy-code span { display: none; }
  .cf-breakdown { grid-template-columns: repeat(2, 1fr); }
  .mapping-table p { grid-template-columns: 1fr; }
  .mapping-table span { border-right: 0; border-bottom: 1px solid var(--line); }
  .mapping-table span:last-child { border-bottom: 0; }
  .password-form, .password-result { padding: 24px 18px; }
  .password-form-heading { display: block; }
  .password-options { grid-template-columns: 1fr; }
  .password-option.full-option { grid-column: auto; }
  .password-security { align-items: flex-start; text-align: right; }
  .password-output { min-height: 142px; padding-left: 16px; font-size: 1.25rem; }
  .salary-form, .salary-results { padding: 24px 18px; }
  .forfettario-form { padding: 24px 18px; }
  .reimbursement-form { padding: 24px 18px; }
  .reimbursement-trips-heading { align-items: flex-start; }
  .reimbursement-trips-heading .button { flex: none; }
  .reimbursement-scroll-hint { display: block; }
  .ateco-results button { grid-template-columns: 68px 1fr; }
  .ateco-results small { grid-column: 2; }
  .salary-form-heading { display: block; }
  .salary-top-results { grid-template-columns: 1fr; }
  .salary-rules-grid { grid-template-columns: 1fr; }
  .salary-breakdown div { gap: 12px; }
  .tool-link-card.forfettario-card { grid-column: auto; }
  .tool-link-card.reimbursement-card { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
