:root {
  color-scheme: light;
  --ink: #19372b;
  --night: #102c25;
  --paper: #faf8f3;
  --white: #fffefa;
  --muted: #4a544e;
  --line: #c9cfc5;
  --orange: #ffaf88;
  --rust: #934128;
  --green: #143b30;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { font-size: 1rem; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #bf480e; outline-offset: 4px; }
.lead :focus-visible, .masthead :focus-visible, footer :focus-visible { outline-color: #ffbb84; }
.wrap { width: min(1190px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .7rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.masthead, footer { background: var(--night); color: #fbfaf6; }
.masthead { border-bottom: 1px solid #dfdfd5; background: #fffefa; color: var(--green); }
.masthead .brand b { color: var(--rust); }
.masthead-inner, .site-nav, .brand, .footer-inner, footer nav { display: flex; align-items: center; }
.masthead-inner { min-height: 4.65rem; justify-content: space-between; gap: .75rem; }
.brand { gap: .44rem; font-weight: 720; font-size: 1.6rem; line-height: 1; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; }
.brand b { color: #ff9a70; }
.site-nav { gap: clamp(.85rem, 3vw, 2.6rem); font-size: .95rem; }
.site-nav a, footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.site-nav a:hover, footer nav a:hover { color: var(--orange); text-decoration: underline; }
.site-nav [aria-current], .site-nav a:hover { color: var(--rust); }
.site-nav a:last-child { background: var(--green); color: white; border-radius: 2rem; min-height: 40px; padding-inline: 1.05rem; }
.masthead :focus-visible { outline-color: var(--rust); }
.lead { isolation: isolate; position: relative; overflow: hidden; background: #102c25; color: #faf8f1; }
.lead-photo, .lead::after { position: absolute; z-index: -1; pointer-events: none; }
.lead-photo { height: 100%; width: 73%; right: 0; top: 0; object-fit: cover; object-position: 55% 40%; }
.lead::after { content: ""; inset: 0; background: linear-gradient(90deg, #102c25 4%, #102c25 28%, rgba(16,44,37,.93) 40%, rgba(16,44,37,.21) 73%, rgba(16,44,37,.32)), linear-gradient(0deg,rgba(17,21,17,.59),transparent 65%); }
.lead-inner { position: relative; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.82fr); gap: clamp(2.5rem,6vw,6.8rem); padding-block: clamp(3.2rem,6vw,6rem); align-items: end; }
.eyebrow, .daily-meta, .scenario-tag, .daily-process { font: 650 .81rem/1.5 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.eyebrow { color: var(--rust); }
.lead-label { color: #ffb28b; display: flex; align-items: center; gap: .7rem; }
.lead-label::before { content: ""; width: 1.9rem; height: 2px; background: currentColor; }
.lead h1 { font-size: clamp(2.95rem,5.15vw,5.05rem); line-height: 1.025; font-weight: 670; letter-spacing: -.065em; margin: 1.1rem 0 1.2rem; }
.lead h1 em { font: italic 400 1.07em/1.055 var(--serif); color: #f6d5bd; letter-spacing: -.055em; }
.lead-text { max-width: 46ch; font-size: clamp(1.05rem,1.4vw,1.22rem); color: #edece7; }
.catalog-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: .9rem; color: #ffb38b; font-weight: 650; }
.daily-card { border-radius: .55rem; min-width: 0; background: #faf9f2; color: var(--ink); padding: clamp(1.3rem,2.4vw,2.1rem); border-top: 4px solid var(--orange); box-shadow: 0 .45rem 1.8rem #0c140e30; }
.daily-meta { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding-bottom: .78rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.daily-meta span:first-child, .daily-process { color: var(--rust); }
.daily-meta span:last-child { color: var(--muted); font-weight: 450; text-transform: none; letter-spacing: 0; }
.daily-process { margin-top: .94rem; font-size: .76rem; }
.daily-card h2 { margin: .4rem 0 .6rem; font-weight: 670; font-size: clamp(1.65rem,2.7vw,2.5rem); letter-spacing: -.055em; }
.daily-text { font-size: 1rem; color: #3a443b; }
.daily-card .btn { margin-top: 1.15rem; }
.btn, .card-open { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 46px; padding: .65rem 1.08rem; border: 1px solid transparent; border-radius: 2rem; font-weight: 650; font-size: .97rem; line-height: 1.35; text-align: center; text-decoration: none; }
.btn.primary { background: var(--orange); color: #171b16; }
.btn.primary:hover { background: #ffac83; }
.btn.secondary, .card-open { border-color: #6e766d; color: var(--ink); background: transparent; }
.btn.secondary:hover, .card-open:hover { background: #e9eee5; border-color: var(--green); }
.content { padding-block: clamp(2.8rem,5vw,5rem); }
.catalog, #simulator { scroll-margin-top: 1rem; }
.section-head { display: flex; gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.section-head h2, .wizard-head h2 { font-size: clamp(2rem,3.8vw,3.4rem); font-weight: 660; letter-spacing: -.055em; }
.section-head h2 { font-family: var(--serif); font-weight: 450; color: var(--green); font-size: clamp(2.4rem,4.5vw,4.4rem); }
.section-head p { max-width: 47ch; color: var(--muted); }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .9rem; }
.scenario-card { border-radius: .55rem; display: flex; flex-direction: column; min-width: 0; padding: clamp(1.05rem,2vw,1.6rem); border: 1px solid var(--line); border-top: 3px solid var(--accent,var(--green)); background: var(--white); }
.scenario-card[data-theme="finance"] { --accent: #a44c22; }
.scenario-card[data-theme="identity"] { --accent: #35566a; }
.scenario-card[data-theme="data"] { --accent: #635177; }
.scenario-tag { color: var(--accent,var(--green)); }
.scenario-card h3 { font-weight: 670; font-size: clamp(1.3rem,2.1vw,1.7rem); letter-spacing: -.035em; margin: .72rem 0 .65rem; }
.scenario-card p { color: var(--muted); margin-bottom: 1.3rem; }
.card-open { margin-top: auto; align-self: flex-start; }
.method { margin-top: 2rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.method summary { padding: .4rem .1rem; font-weight: 650; }
.method p { max-width: 72ch; padding-block: .4rem; }
.notice { padding: 1rem; margin-bottom: 1.5rem; border-left: 3px solid var(--rust); background: #fff1df; }
.footer-inner { justify-content: space-between; gap: 1.25rem 3rem; padding-block: 2rem; flex-wrap: wrap; }
footer p { color: #d3d9cf; font-size: .9rem; margin-top: .6rem; }
footer nav { gap: 1.4rem; flex-wrap: wrap; font-size: .95rem; }
#simulator { position: relative; margin-bottom: clamp(2.4rem,5vw,4.5rem); padding: clamp(1.2rem,4vw,3rem); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--rust); overflow-wrap: anywhere; }
#simulator:focus { outline: none; }
.wizard-head h2 { margin: .45rem 0 .65rem; }
.wizard-head p:not(.eyebrow) { color: var(--muted); max-width: 72ch; }
.step-nav { display: flex; padding: 0; gap: .55rem 1rem; flex-wrap: wrap; list-style: none; margin-block: 1.15rem; align-items: baseline; color: var(--muted); font-size: .92rem; }
.step-nav [aria-current] { color: var(--rust); font-weight: 700; }
.sim-form, .method-note, .priority-list { max-width: 62rem; }
.sim-form fieldset { min-width: 0; }
fieldset.question { padding: .8rem 0 1.25rem; border: 0; margin: .8rem 0; }
.question legend { font-weight: 650; color: var(--ink); font-size: 1.1rem; }
.choices, .field-grid, .results-grid { display: grid; gap: .75rem; }
.choices { grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); }
.choice { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; min-height: 48px; border: 1px solid var(--line); border-radius: .2rem; background: #f7f8f2; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: #547768; }
.choice:has(input:checked) { background: #eaf3ea; box-shadow: inset 0 0 0 1px #547768; }
input[type=radio], input[type=checkbox] { accent-color: #315d50; flex-shrink: 0; inline-size: 1.12rem; block-size: 1.12rem; }
.field-grid, .results-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); margin-block: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
#simulator small, .field small { color: var(--muted); font-size: .9rem; font-weight: 400; }
input:not([type=checkbox],[type=radio]), select, textarea { min-width: 0; max-width: 100%; color: var(--ink); border: 1px solid #838e80; border-radius: .16rem; padding: .62rem .75rem; background: white; font: inherit; }
select { min-height: 46px; }
.field input, .field select { width: 100%; }
.sim-form h3, #simulator h3 { font-weight: 650; letter-spacing: -.025em; font-size: 1.35rem; margin-block: 1.3rem .6rem; }
.form-actions, .report-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.3rem; }
.result-card { min-width: 0; background: #edf2eb; border-left: 3px solid #5b7a69; padding: 1.1rem; }
.result-card h3:first-child { margin-top: 0 !important; }
.result-card .metric { font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 700; color: var(--green); line-height: 1.15; margin-block: .4rem; }
.cost-lines { margin-block: 1.1rem; padding: 0; }
.cost-lines > div, .cost-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.cost-lines dd { margin: 0; font-weight: 650; text-align: right; }
.priority-list { padding-inline-start: 1.5rem; }
.priority-list li { margin-block: .65rem; padding-inline-start: .25rem; }
.priority-list li::marker { color: var(--rust); font-weight: 650; }
.method-note { margin-block: 1rem; border-left: 2px solid #acb7ab; padding: .65rem 1rem; color: var(--muted); background: #f0f3ed; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 2.5rem); }
  .lead-inner { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 1.5rem; }
  .lead h1 { font-size: clamp(2.55rem,6.1vw,3.8rem); }
  .daily-card { padding: 1.15rem; }
  .section-head { display: block; }
  .section-head p { margin-top: .6rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4rem; }
  .brand { font-size: 1.3rem; gap: .32rem; }
  .brand img { width: 27px; height: 27px; }
  .site-nav { gap: .8rem; font-size: .875rem; }
  .masthead-inner { flex-wrap: wrap; padding-block: .45rem; }
  .site-nav { flex-wrap: wrap; }
  .lead-inner { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2.6rem 1.3rem; }
  .lead-photo { width: 100%; height: 68%; object-position: 70% 40%; }
  .lead::after { background: linear-gradient(90deg,rgba(16,44,37,.96),rgba(16,44,37,.7) 68%,rgba(16,44,37,.49)),linear-gradient(0deg,#102c25 32%,transparent 86%); }
  .lead-copy { max-width: 31rem; }
  .lead h1 { font-size: clamp(2.5rem,9vw,3.5rem); max-width: 14ch; margin-block: .85rem; }
  .lead-text { font-size: 1rem; }
  .catalog-link { margin-top: .4rem; }
  .daily-process { margin-top: .7rem; }
  .content { padding-block: 2.3rem; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { padding: 1.2rem; }
  .daily-card .btn { width: 100%; }
  .footer-inner { display: block; }
  footer nav { margin-top: .75rem; }
}
@media (max-width: 370px) {
  .site-nav { gap: .5rem; }
  .site-nav a:last-child { padding-inline: .62rem; }
  .wrap { width: calc(100% - 1.4rem); }
}
@media print {
  @page { margin: 16mm; }
  :root, body { background: white; color: black; font-size: 10pt; }
  .masthead, footer, .lead, .catalog, .method, .skip-link, .step-nav, .form-actions, .report-actions, .notice, .btn, #simulator button, #simulator form, #rapporto-studio { display: none !important; }
  .wrap, .content, #simulator { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
  #simulator::before { content: "OraImpresa  /  Studio Federica Bertoni"; display: block; border-bottom: 1px solid #444; margin-bottom: 1rem; padding-bottom: .35rem; font-size: 10pt; }
  .result-card, .priority-list li, .cost-lines > div, tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .result-card { border: 1px solid #555; background: white; }
  .result-card .metric, .eyebrow { color: black; }
  .wizard-head h2 { font-size: 18pt; }
}
.live-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1.1rem; }
.live-total .metric { margin: 0; }
.profile-choice { margin: .75rem 0; width: fit-content; }
.storage-status:empty { display: none; }
.report-section { margin-block: 1.45rem; }
.report-section h4 { margin: .9rem 0 .3rem; }
.step-nav { padding-block: .8rem; border-block: 1px solid var(--line); }
.step-nav li + li::before { content: "/"; margin-right: .9rem; color: #788073; }
#rapporto-studio:not(:empty) { padding: clamp(1rem,2.4vw,1.6rem); margin-block: 1.5rem; border: 1px solid #d5c7b5; border-radius: .4rem; background: #faf2e9; }
#rapporto-studio h2, #rapporto-studio h3 { margin-top: 0; }
#rapporto-studio a:not(.btn) { color: #784025; text-underline-offset: .22em; }
#rapporto-studio .btn { margin: .5rem .3rem .1rem 0; }
#simulator .field select { appearance: none; background: linear-gradient(45deg,transparent 50%, #435949 50%) calc(100% - 17px) center / 6px 6px no-repeat, linear-gradient(135deg,#435949 50%, transparent 50%) calc(100% - 12px) center / 6px 6px no-repeat, white; padding-right: 2rem; }
