/* Mantenimento Figli: design system "portale amichevole".
   Soft structuralism: fondo verde-acqua chiarissimo, un solo accento (verde-acqua profondo), foto protagoniste,
   angoli morbidi. Regola dei raggi: pillola per bottoni e chip, 24px per le card, 14px per i campi.
   Ordine: tokens, base, header, bottoni e form, risultati degli strumenti, home, articoli, pagine, footer, responsive, print. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #f1f6f5;
  --sheet: #ffffff;
  --ink: #10272b;
  --ink-2: #364b4f;
  --ink-3: #566b6f;
  --line: #d9e5e3;
  --line-strong: #b7cac7;
  --control: #7b9190;
  --brand: #0b6b66;
  --brand-deep: #084e4b;
  --brand-tint: #e1f1ee;
  --brand-soft: #c9e6e1;
  --night: #0c2a2d;
  --sun: #fbe39a;
  --mark: #fbe39a;
  --red: #b42318;
  --red-tint: #fdebe8;
  --green: #17694f;
  --green-tint: #e0f1ea;
  --amber: #5e4300;
  --amber-tint: #fff4d6;
  --amber-line: #efd88f;

  --f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --r-card: 24px;
  --r-in: 14px;
  --r-sm: 10px;
  --wrap: 74rem;
  --measure: 41rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(11, 70, 66, .06), 0 14px 34px -16px rgba(11, 70, 66, .26);
  --shadow-lift: 0 2px 4px rgba(11, 70, 66, .06), 0 26px 44px -20px rgba(11, 70, 66, .34);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1rem/1.58 var(--f-sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
.skip { position: absolute; left: var(--s-4); top: -4rem; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); z-index: 100; border-radius: 999px; }
.skip:focus { top: var(--s-3); }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.08; }
h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -.012em; line-height: 1.24; }
p { margin: 0 0 var(--s-4); }
ul, ol { padding-left: 1.2em; }
.num, .amount { font-variant-numeric: tabular-nums; font-weight: 700; }
mark { background: linear-gradient(transparent 38%, var(--sun) 38%); color: inherit; padding: 0 .12em; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Avviso e intestazione ---------- */
.preview { background: var(--night); color: #d7e6e4; font-size: .8125rem; }
.preview .wrap { padding-block: .5rem; display: flex; gap: var(--s-3); align-items: center; justify-content: center; text-align: center; }
.preview a, .preview a:hover { color: #fff; }
.preview :focus-visible, .site-foot :focus-visible, .closing :focus-visible { outline-color: #fff; }

.site-head { position: sticky; top: .6rem; z-index: 40; margin-top: .6rem; }
.site-head .wrap {
  position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 3.75rem; padding: .45rem .5rem .45rem 1rem;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(183, 202, 199, .7); border-radius: 999px; box-shadow: var(--shadow-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .site-head .wrap { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 2.75rem; height: 2.75rem; flex: none; object-fit: contain; }
.brand-name .tld { color: var(--ink-3); font-weight: 600; }
.brand-name { font: 700 1.1875rem/1 var(--f-display); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .55rem .8rem; border-radius: 999px; transition: background-color .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.nav a:not(.btn):hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }
.nav .btn { margin-left: .4rem; }
.menu-btn { display: none; }

/* ---------- Bottoni e campi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .6rem 1.35rem; border-radius: 999px;
  font: 700 .9375rem/1.1 var(--f-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: 0 10px 22px -12px rgba(8, 78, 75, .7); }
.btn:active { transform: scale(.97); }
.btn .go-dot { width: 1.7rem; height: 1.7rem; margin-right: -.6rem; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn .go-dot .ic { width: .95rem; height: .95rem; }
.btn:hover .go-dot { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); color: var(--brand-deep); box-shadow: none; }
.btn.light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn.light:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-tint); box-shadow: none; }
.btn.light .go-dot { background: var(--brand-tint); }
.btn.small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 1.1rem; height: 1.1rem; }

.field { display: grid; gap: .4rem; margin-bottom: var(--s-4); }
.field > label, .legend { font-weight: 700; font-size: .875rem; color: var(--ink); }
.hint { font-size: .8125rem; color: var(--ink-3); }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 3.1rem; padding: .65rem .9rem; border: 1.5px solid var(--control);
  border-radius: var(--r-in); background: #fff; color: var(--ink); font: 500 1rem/1.3 var(--f-sans);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 7rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
::placeholder { color: var(--ink-3); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
input[type=checkbox] { accent-color: var(--brand); }
input[aria-invalid=true] { border-color: var(--red); background: var(--red-tint); }
.err { color: var(--red); font-size: .8125rem; font-weight: 600; }
.seg { display: inline-grid; grid-auto-flow: column; padding: .25rem; gap: .2rem; border: 1.5px solid var(--control); border-radius: 22px; background: #fff; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; height: 100%; padding: .5rem 1rem; font-weight: 600; font-size: .9rem; line-height: 1.25; border-radius: 17px; text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-2); padding: .4rem 1rem; border-radius: 999px; font: 600 .875rem/1 var(--f-sans); cursor: pointer; min-height: 2.75rem; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.chip:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.chip:active { transform: scale(.96); }

/* ---------- Risultati degli strumenti ("receipt" resta il nome della classe) ---------- */
.receipt { position: relative; background: var(--sheet); color: var(--ink); padding: var(--s-5); border-radius: var(--r-card); }
.receipt-wrap { filter: none; }
.tool-out .receipt, .tool-cta .receipt { box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.r-title { font: 700 .875rem/1.2 var(--f-sans); display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); color: var(--ink-2); }
.r-row { display: flex; align-items: baseline; gap: .5rem; font: 400 .9375rem/1.45 var(--f-sans); margin-bottom: .6rem; }
.r-row .k { color: var(--ink-3); flex: none; }
.r-row .dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-.2rem); }
.r-row .v { text-align: right; overflow-wrap: anywhere; font-weight: 700; color: var(--ink); max-width: 60%; font-variant-numeric: tabular-nums; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); background: var(--brand-tint); border-radius: 16px; margin-top: var(--s-4); padding: var(--s-4); }
.r-total .k { font: 700 .875rem/1.2 var(--f-sans); color: var(--brand-deep); }
.r-total .v { font: 700 1.9rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.r-foot { font: 400 .875rem/1.55 var(--f-sans); color: var(--ink-2); margin-top: var(--s-4); }
.verdict-line { font: 650 1.35rem/1.28 var(--f-display); letter-spacing: -.015em; margin: var(--s-4) 0; text-wrap: balance; }
.r-note { font: 400 .9375rem/1.55 var(--f-sans); color: var(--ink-2); margin: 0 0 var(--s-3); }
.r-total.due { background: var(--red-tint); }
.r-total.due .k { color: var(--red); }
.r-total.due .v { color: var(--red); }
.verdict { display: inline-flex; align-items: center; gap: .45rem; font: 700 .875rem/1.2 var(--f-sans); padding: .4rem .8rem; border-radius: 999px; }
.verdict svg { width: 1.05rem; height: 1.05rem; flex: none; }
.verdict.v-ord { background: var(--green-tint); color: var(--green); }
.verdict.v-str { background: var(--brand-tint); color: var(--brand-deep); }
.verdict.v-dip { background: var(--amber-tint); color: var(--amber); }
.verdict.v-no { background: #e8eceb; color: var(--ink-2); }
.printing { animation: settle .55s var(--ease) backwards; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0 var(--s-9); overflow: clip;
  background: radial-gradient(52rem 30rem at 92% -8%, #cfe9e4 0, transparent 62%), radial-gradient(34rem 22rem at -6% 8%, #fdf0c8 0, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: var(--s-7); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1rem + 4.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .second { color: var(--brand); display: block; }
.hero .lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 31rem; margin: var(--s-5) 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-art { position: relative; justify-self: end; width: min(100%, 27rem); padding-bottom: 2.2rem; }
.hero-art::before { content: ""; position: absolute; inset: 1.6rem -1.2rem 0.4rem 1.6rem; border-radius: 34px; background: var(--brand-soft); transform: rotate(3deg); }
.hero-photo { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--brand-soft); box-shadow: var(--shadow-lift); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-mini { position: absolute; left: -2.4rem; bottom: 0; width: 46%; border-radius: 22px; overflow: hidden; border: 5px solid var(--ground); box-shadow: var(--shadow-lift); transform: rotate(-3deg); }
.hero-mini img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero .hero-copy > * { animation: rise .8s var(--ease) backwards; }
.hero .hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero .hero-art { animation: rise 1s var(--ease) .12s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* verifica rapida: scheda sovrapposta al fondo dell'hero */
.quick-wrap { position: relative; z-index: 2; margin-top: -5.2rem; }
.quick { background: var(--sheet); border: 1px solid var(--line); border-radius: 32px; padding: var(--s-5); box-shadow: var(--shadow-lift); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.quick-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.quick-head .tile { width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.quick-head .tile .ic { width: 1.5rem; height: 1.5rem; }
.quick-head h2 { font-size: 1.35rem; line-height: 1.15; }
.quick-head p { margin: 0; color: var(--ink-3); font-size: .875rem; }
.search-field { position: relative; }
.search-field .ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; width: 1.3rem; height: 1.3rem; }
.search-field input { padding-left: 2.9rem; min-height: 3.5rem; border-radius: 999px; font-size: 1.0625rem; }
.quick .field { margin-bottom: var(--s-3); }
.quick .chips.sugg { margin-bottom: var(--s-3); }
.quick .chips.sugg:empty { display: none; }
.tryit-out { min-height: 11rem; background: var(--brand-tint); border-radius: 22px; padding: var(--s-5); }
.tryit-out .r-title { border-bottom-color: var(--brand-soft); }
.tryit-out .r-row .dots { border-bottom-color: var(--brand-soft); }
.tryit-out .verdict { background: #fff; }
.tryit-empty { color: var(--ink-2); font: 400 .9375rem/1.5 var(--f-sans); margin: 0; }
.tryit-empty::before { content: ""; display: block; width: 2.4rem; height: 2.4rem; margin-bottom: var(--s-3); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230b6b66'%3E%3Cpath d='M229.66 218.34l-50.07-50.06a88.11 88.11 0 10-11.31 11.31l50.06 50.07a8 8 0 0011.32-11.32zM40 112a72 72 0 1172 72 72.08 72.08 0 01-72-72z'/%3E%3C/svg%3E") center / 1.4rem no-repeat; }
.tryit.single { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--shadow-soft); }

.assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.assure li { display: flex; align-items: center; gap: var(--s-3); font-weight: 650; color: var(--ink-2); font-size: .9375rem; line-height: 1.3; }
.assure .tile { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.assure .tile .ic { width: 1.35rem; height: 1.35rem; }

/* ---------- Home: sezioni ---------- */
.band { padding-block: var(--s-8); }
.band.tint { background: var(--brand-tint); }
.band h2 { font-size: clamp(1.85rem, 1.1rem + 2vw, 2.9rem); max-width: 20ch; }
.band .sub { color: var(--ink-2); max-width: 38rem; margin-top: var(--s-3); font-size: 1.0625rem; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.topic { grid-column: span 6; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: 28px; padding: .55rem; box-shadow: var(--shadow-soft); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.topic:nth-child(1), .topic:nth-child(4) { grid-column: span 7; }
.topic:nth-child(2), .topic:nth-child(3) { grid-column: span 5; }
.topic-img { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.topic:nth-child(1) .topic-img, .topic:nth-child(4) .topic-img { aspect-ratio: 16 / 9; }
.topic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topic:hover .topic-img img { transform: scale(1.04); }
.topic-body { padding: var(--s-4) var(--s-4) var(--s-4); display: flex; flex-direction: column; flex: 1; }
.topic-body .tile { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-top: -2.2rem; margin-bottom: var(--s-3); border: 4px solid var(--sheet); box-sizing: content-box; }
.topic-body .tile .ic { width: 1.4rem; height: 1.4rem; }
.topic h3 { font-size: 1.4rem; }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.topic { position: relative; }
.topic p { color: var(--ink-2); font-size: .9375rem; margin: .4rem 0 var(--s-3); }
.topic ul { list-style: none; margin: 0 0 var(--s-3); padding: 0; position: relative; z-index: 1; }
.topic li a { display: flex; align-items: flex-start; gap: .55rem; padding: .5rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.35; border-top: 1px solid var(--line); }
.topic li a .ic { width: 1rem; height: 1rem; margin-top: .2rem; color: var(--brand); }
.topic li a:hover { color: var(--brand); }
.topic .more { margin-top: auto; font-weight: 700; font-size: .9375rem; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.topic .more .ic { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.topic:hover .more .ic { transform: translateX(4px); }

.tools-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.tools-photo { position: sticky; top: 6rem; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 4.8; background: var(--brand-soft); }
.tools-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); counter-reset: step; }
.step a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 70, 66, .04); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.step a:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); border-color: var(--brand-soft); }
.step .tile { width: 3.1rem; height: 3.1rem; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.step .tile .ic { width: 1.6rem; height: 1.6rem; }
.step .nm { font: 650 1.1875rem/1.2 var(--f-display); letter-spacing: -.012em; display: block; }
.step .ds { color: var(--ink-2); font-size: .9375rem; display: block; margin-top: .15rem; }
.step .out { display: inline-block; margin-top: .4rem; font-size: .8125rem; font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); border-radius: 999px; padding: .15rem .65rem; }
.step .go { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s var(--ease); }
.step a:hover .go { background: var(--brand); color: #fff; }
.step .go .ic { width: 1.05rem; height: 1.05rem; }
.more-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.more-tools a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem .6rem .9rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink-2); font-weight: 650; font-size: .9375rem; text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.more-tools a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.more-tools .ic { color: var(--brand); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-8); margin-top: var(--s-6); }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.principle .tile { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.principle .tile .ic { width: 1.5rem; height: 1.5rem; }
.principle h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.principle p { color: var(--ink-2); margin: 0; }

.closing-wrap { padding-block: var(--s-4) var(--s-8); }
.closing { position: relative; isolation: isolate; border-radius: 36px; overflow: hidden; color: #fff; padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem); min-height: 22rem; display: flex; flex-direction: column; justify-content: center; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(8, 50, 50, .93) 0%, rgba(8, 62, 60, .82) 42%, rgba(8, 62, 60, .2) 100%); }
.closing h2 { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.2rem); max-width: 17ch; color: #fff; }
.closing p { color: #d3e7e4; max-width: 33rem; margin: var(--s-4) 0 var(--s-5); font-size: 1.0625rem; }

/* ---------- Articoli ---------- */
.crumbs { font-size: .8125rem; color: var(--ink-3); padding-top: var(--s-6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); }
.chip-cat { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .65rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; font-size: .8125rem; text-decoration: none; margin-bottom: var(--s-4); }
.chip-cat:hover { background: var(--brand-soft); color: var(--brand-deep); }
.chip-cat .ic { width: 1.05rem; height: 1.05rem; }
.article-head { padding-block: var(--s-4) var(--s-5); max-width: 54rem; }
.article-head h1 { font-size: clamp(2.05rem, 1.1rem + 2.9vw, 3.3rem); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem var(--s-5); margin-top: var(--s-4); color: var(--ink-3); font-size: .875rem; }
.meta span { display: inline-flex; align-items: center; gap: .4rem; }
.meta .ic { width: 1.05rem; height: 1.05rem; color: var(--brand); }
.meta strong { color: var(--ink-2); font-weight: 650; }
.cover { margin: 0 0 var(--s-6); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-soft); height: clamp(10rem, 19vw, 15.5rem); background: var(--brand-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.article-grid > * { min-width: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(15rem, 19rem); gap: var(--s-8); align-items: start; justify-content: space-between; padding-bottom: var(--s-8); }
.answer { background: var(--brand-tint); border-radius: var(--r-card); padding: var(--s-5) var(--s-5) var(--s-4); margin-bottom: var(--s-6); position: relative; }
.answer .lbl { display: flex; align-items: center; gap: .5rem; font: 700 .875rem/1 var(--f-sans); margin-bottom: var(--s-3); color: var(--brand-deep); }
.answer .lbl .ic { width: 1.25rem; height: 1.25rem; }
.answer p { margin: 0 0 var(--s-2); font: 500 1.1875rem/1.55 var(--f-sans); color: var(--ink); }
.prose { font: 400 1.0625rem/1.75 var(--f-sans); color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.85rem; margin-top: 2.2em; margin-bottom: .55em; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; margin-bottom: .4em; }
.prose p, .prose li { max-width: 41rem; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 700; }
.prose a { font-weight: 650; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.prose ul ul > li::before { background: var(--brand-soft); }
.table-wrap { overflow-x: auto; margin-block: 1.6em; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font: 400 .9375rem/1.45 var(--f-sans); margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; font-size: .875rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 1.6em 0; padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 18px; font: 400 1rem/1.6 var(--f-sans); }
.prose blockquote p { margin: 0; max-width: none; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote strong:first-child { font-weight: 800; }
.faq h3 { font-size: 1.125rem; margin-top: 1.5em; }
.sources ol { font: 400 .9375rem/1.5 var(--f-sans); color: var(--ink-2); }
.sources li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.notice { display: flex; gap: var(--s-3); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: var(--s-4) var(--s-5); font-size: .875rem; color: var(--ink-2); margin-top: var(--s-7); }
.notice .ic { width: 1.4rem; height: 1.4rem; color: var(--brand); margin-top: .1rem; }
.notice p { margin: 0; }
.notice strong { color: var(--ink); }
.aside { position: sticky; top: 6rem; display: grid; gap: var(--s-5); }
.toc { font-size: .9rem; }
.toc h2 { display: flex; align-items: center; gap: .5rem; font: 700 .875rem/1 var(--f-sans); letter-spacing: 0; color: var(--ink-2); margin-bottom: var(--s-3); }
.toc h2 .ic { color: var(--brand); width: 1.1rem; height: 1.1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .4rem var(--s-3) .4rem var(--s-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc a:hover { color: var(--brand); }
.toc a.on { border-left-color: var(--brand); color: var(--brand-deep); font-weight: 700; }
.tool-cta .receipt { background: var(--brand); color: #fff; border: 0; }
.tool-cta .tile { width: 2.75rem; height: 2.75rem; border-radius: 14px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; margin-bottom: var(--s-3); }
.tool-cta .tile .ic { width: 1.5rem; height: 1.5rem; }
.tool-cta h2 { font-size: 1.3rem; margin-bottom: var(--s-2); color: #fff; }
.tool-cta p { font: 400 .9375rem/1.45 var(--f-sans); color: #d3e7e4; margin-bottom: var(--s-4); }
.related { padding-block: var(--s-7) var(--s-8); background: #fff; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.75rem; }

/* ---------- Elenchi di guide, pagine, strumenti ---------- */
.page-head { padding-block: var(--s-6) var(--s-5); max-width: 50rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.1rem + 3.2vw, 3.6rem); }
.page-head p { color: var(--ink-2); font-size: 1.125rem; margin-top: var(--s-4); }
.page-head.with-art { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); align-items: center; }
.page-art { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3 / 2; background: var(--brand-soft); }
.page-art img { width: 100%; height: 100%; object-fit: cover; }
.cat-intro p { color: var(--ink-2); font-size: 1.0625rem; max-width: 40rem; margin-top: var(--s-3); }
.index { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s-5); padding: var(--s-4) var(--s-5); background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--ink); align-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.index a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--brand-soft); }
.index .t { font: 650 1.2rem/1.28 var(--f-display); letter-spacing: -.012em; }
.index .d { grid-column: 1; color: var(--ink-2); font-size: .9375rem; max-width: 46rem; }
.index .go { grid-row: 1 / span 2; grid-column: 2; width: 2.4rem; height: 2.4rem; padding: .6rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); transition: background-color .3s var(--ease), color .3s var(--ease); }
.index a:hover .go { background: var(--brand); color: #fff; }
.hub-group { padding-block: var(--s-6) var(--s-4); }
.hub-group h2 { font-size: 1.8rem; display: flex; align-items: center; gap: var(--s-3); }
.hub-group h2 a { color: var(--ink); text-decoration: none; }
.hub-group h2 a:hover { color: var(--brand); }
.hub-group h2 .tile { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.hub-group h2 .tile .ic { width: 1.4rem; height: 1.4rem; }
.hub-group .blurb { color: var(--ink-2); margin: .5rem 0 0; }
.cat-tools { padding-block: var(--s-7) var(--s-8); max-width: 46rem; }
.cat-tools h2 { font-size: 1.6rem; margin-bottom: var(--s-3); }
.cat-tools ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.cat-tools li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: var(--s-3) var(--s-4); color: var(--ink-2); font-size: .9375rem; }
.cat-tools li a { font-weight: 700; }

.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); padding-bottom: var(--s-8); }
.tool-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.tool-card .tile { width: 3rem; height: 3rem; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--s-2); }
.tool-card .tile .ic { width: 1.6rem; height: 1.6rem; }
.tool-card h3 { font-size: 1.3rem; }
.tool-card p { color: var(--ink-2); font-size: .9375rem; margin: 0; }
.tool-card .out { margin-top: auto; padding-top: var(--s-3); font-size: .8125rem; font-weight: 700; color: var(--brand-deep); }

.tool-layout { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: var(--s-7); padding-bottom: var(--s-8); align-items: start; }
.tool-form { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--shadow-soft); }
.tool-out { position: sticky; top: 6rem; }
.tool-out .receipt { max-width: 32rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.letter { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); font: 400 1rem/1.75 var(--f-sans); white-space: pre-wrap; box-shadow: var(--shadow-soft); max-width: 44rem; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.legal-page { max-width: 44rem; padding-bottom: var(--s-8); }
.legal-page h2 { font-size: 1.5rem; margin-top: 2em; }
.legal-page li { margin-bottom: .4em; }
.status { display: inline-flex; gap: .4rem; align-items: center; background: var(--amber-tint); color: var(--amber); padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .8125rem; }
.review-note { display: flex; gap: var(--s-3); background: var(--amber-tint); color: #3f2e00; border: 1px solid var(--amber-line); border-radius: 18px; padding: var(--s-3) var(--s-4); font-size: .9375rem; line-height: 1.5; margin-bottom: var(--s-5); }
.review-note .ic { width: 1.35rem; height: 1.35rem; color: var(--amber); margin-top: .12rem; }
.review-note p { margin: 0; }
.review-note strong { color: #3f2e00; }

/* ---------- Barra del totale (mobile) ---------- */
.sumbar { display: none; }
@media (max-width: 62rem) {
  .sumbar:not([hidden]) { display: flex; position: fixed; inset: auto .75rem .75rem .75rem; z-index: 30; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: .8rem 1.1rem; background: var(--brand-deep); color: #fff; border-radius: 22px; box-shadow: 0 16px 30px -12px rgba(8, 50, 50, .6); }
  .sumbar .k { font: 600 .8125rem/1.25 var(--f-sans); color: #cfe6e3; }
  .sumbar .v { font: 700 1.3rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
  .tool-layout { padding-bottom: 6rem; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #bdd0ce; margin-top: auto; border-radius: 40px 40px 0 0; }
.site-foot .wrap { padding-block: var(--s-7); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); }
.site-foot a, .site-foot a:hover { color: #fff; text-decoration-color: #4d6b69; }
.site-foot h2 { font: 700 .9375rem/1 var(--f-display); color: #fff; margin-bottom: var(--s-3); letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9375rem; }
.site-foot .brand-name { color: #fff; }
.site-foot .brand-logo { background: #fff; border-radius: 16px; padding: .3rem; width: 3.1rem; height: 3.1rem; }
.site-foot .brand-name .tld { color: #9fc3bf; }
.site-foot p { font-size: .9rem; max-width: 30rem; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid #234245; padding-top: var(--s-4); font-size: .8125rem; color: #92aaa8; max-width: none; }

/* ---------- Scorrimento in vista (le schede delle aree) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .menu-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; font: 700 .875rem/1 var(--f-sans); color: var(--ink); cursor: pointer; }
  .menu-btn .ic { width: 1.2rem; height: 1.2rem; }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); background: var(--sheet); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lift); flex-direction: column; align-items: stretch; gap: .15rem; padding: var(--s-3); display: none; z-index: 20; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 1rem; font-size: 1rem; }
  .nav .btn { margin: var(--s-2) 0 0; }
}
@media (max-width: 62rem) {
  .hero-grid, .tool-layout, .tools-split, .page-head.with-art { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: var(--s-8); }
  .hero-art { justify-self: start; width: min(100%, 24rem); margin-left: 1.6rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; order: 2; }
  .toc { display: none; }
  .tool-out { position: static; }
  .tools-photo { aspect-ratio: 16 / 9; position: static; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .principles { gap: var(--s-5); }
  .page-art { order: -1; aspect-ratio: 16 / 9; }
  .cover { height: clamp(9rem, 28vw, 14rem); }
}
@media (max-width: 48rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .topic, .topic:nth-child(n) { grid-column: auto; }
  .topic:nth-child(n) .topic-img { aspect-ratio: 3 / 2; }
  .assure { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .principles, .tools-grid, .row2, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: var(--s-7); }
  .site-foot { border-radius: 28px 28px 0 0; }
}
@media (max-width: 40rem) {
  .hero { padding-top: var(--s-5); }
  .hero .lede { font-size: 1.0625rem; margin-top: var(--s-4); }
  .hero .actions { margin-top: var(--s-5); }
  .hero-art { margin-left: 0; width: 100%; padding-bottom: 0; }
  .hero-art::before { display: none; }
  .hero-mini { display: none; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .quick-wrap { margin-top: -3rem; }
  .quick { border-radius: 26px; padding: var(--s-4); }
  .step a { grid-template-columns: auto minmax(0, 1fr); }
  .step .go { display: none; }
  .closing { border-radius: 28px; min-height: 20rem; }
  .closing::before { background: linear-gradient(180deg, rgba(8, 50, 50, .55) 0%, rgba(8, 56, 54, .92) 70%); }
  .r-row .v { max-width: 55%; }
  .site-head .wrap { padding-left: .8rem; }
  .brand-name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .printing, .hero .hero-copy > *, .hero .hero-art { animation: none; }
  .btn, .chip, .topic, .topic-img img, .step a, .index a, .tool-card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .preview, .site-head, .site-foot, .aside, .actions-row, .related, .skip, .menu-btn, .tool-form, .notice, .cover, .closing-wrap { display: none !important; }
  body { background: #fff; }
  .letter { border: 0; box-shadow: none; padding: 0; }
  .tool-layout { display: block; }
}
