/* =====================================================================================================================
   Preventivatore MEGADV (22/11/2026) nello stile dell'app ID Fabbricato. Motore e impaginazione vengono dal portale di
   richieste fatto da MEGADV per un'impresa, che a sua volta usa i valori VERI del sistema editoriale dell'app attraverso il
   portale MEGADV (Documents/megadv-portale/idf-stile/sito/css/megadv.css):
   - token di :root da editorial.css (tema chiaro);
   - testata, pulsanti .k-btn, apertura, fasce, righe guida, passi, getcard, piede e reveal da megadv.css (prefisso id-);
   - componenti del kit (campi, scelte, avanzamento, note, coppie chiave/valore, tabelle, barra in basso) in
     idf-kit.css, estratti identici da kit.css, shell.css ed editorial.css dell'app;
   - famiglia vettoriale in art.css / art.js, copiati identici.
   Unica differenza voluta: l'accento MEGADV del portale idf-stile al posto del blu #0066cc dell'app: #1f7dd2 per
   azioni e occhielli, #054a7b per le icone attive, #eaf3fb per le fasce.
   ===================================================================================================================== */

@font-face { font-family: Inter; src: url(../fonts/InterVariable.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ts: 1;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: var(--font);
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f3f4f6; --surface-3: #e9ebef; --bg-gray: #f3f4f6; --group: #f3f4f6;
  --ink: #101114; --ink-2: #62666d; --ink-3: #72757b;
  --line: #e5e6e8; --line-strong: #c9cdd3; --hair: 0.5px;
  --accent: #1f7dd2; --accent-text: #1f7dd2; --accent-fill: #1f7dd2; --accent-ink: #ffffff;
  --accent-soft: #eaf3fb; --accent-light: #eaf3fb;
  --navy: #054a7b; --navy-soft: #f0f2f6;
  --brand-red-fill: #1f7dd2; --brand-red-light: #eaf3fb; --brand-red-text: #1f7dd2;
  --focus: #1f7dd2; --fill: #f0f2f5; --fill-2: #e7ebf1; --fill-press: #e1e8f0;
  --ok: #2f6a4a; --ok-soft: rgba(63, 122, 90, 0.12); --warn: #8a5a12; --warn-soft: rgba(201, 138, 43, 0.14);
  --danger: #c0392b; --danger-soft: rgba(192, 57, 43, 0.11); --info: #2f6ea3; --info-soft: rgba(47, 110, 163, 0.11);
  --k-tone: var(--accent); --k-tone-solid: #054a7b;
  --r-sm: 6px; --r-md: 12px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px; --r-sheet: 18px; --r-card-sm: 0px;
  --shadow-card: 0 0 10px rgba(0, 0, 0, 0.10); --shadow-3: 0 12px 30px rgba(11, 22, 34, 0.18), 0 30px 70px rgba(11, 22, 34, 0.22);
  --dur-2: 220ms; --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 22px; --sp-section: 48px; --row-min: 58px;
  --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px);
  --fs-hero: calc(44px * var(--ts)); --fs-large: calc(38px * var(--ts)); --fs-title1: calc(32px * var(--ts));
  --fs-title2: calc(26px * var(--ts)); --fs-title3: calc(22px * var(--ts)); --fs-headline: calc(17px * var(--ts));
  --fs-body: calc(16px * var(--ts)); --fs-callout: calc(16px * var(--ts)); --fs-subhead: calc(14px * var(--ts));
  --fs-footnote: calc(13px * var(--ts)); --fs-caption: calc(12px * var(--ts)); --fs-micro: calc(11px * var(--ts));
  --motion-reveal: 700ms; --motion-ease: cubic-bezier(.2,.7,.3,1);
  /* barra in basso dell'app (shell.css): fondo, icone spente e accese, filetto della voce attiva nell'arancio del logo */
  --chrome-icon-size: 26px; --sh-bar-h: 64px; --sh-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sh-bar-bg: #fafafa; --sh-bar-solid: #fafafa; --sh-tab-off: #56606d; --sh-tab-on: #054a7b; --sh-pill: #1f7dd2;
  /* impaginazione del sito */
  --wrap: 1200px; --nav-h: 64px;
}
@media (min-width: 420px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --ts: 1.08; --gutter: 44px; } }
@media (min-width: 1200px) { :root { --ts: 1.12; --gutter: 56px; } }

/* ---- base ------------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.u-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.id-i { display: block; flex: none; }
.id-in { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---- testata (k-nav di editorial.css: 64 px, fondo carta, filetto inferiore; pillola come «IDA» del benvenuto) ------------ */
.id-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.id-nav__bar { display: flex; align-items: center; gap: 8px; height: var(--nav-h); }
.id-nav__logo { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
.id-nav__logo img { width: 40px; height: 40px; }
.id-nav__links { display: none; align-items: center; gap: 2px; margin-left: auto; }
.id-nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--ink-2); font-size: var(--fs-subhead); font-weight: 500; letter-spacing: -.01em; transition: color 160ms ease; }
.id-nav__links a:hover { color: var(--ink); }
.id-nav__pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 18px 0 14px; border-radius: 999px;
  color: var(--ink); background: var(--fill); font-size: var(--fs-body); font-weight: 550; letter-spacing: -.015em; white-space: nowrap;
  transition: background-color 200ms ease;
}
.id-nav__pill:hover { background: var(--fill-2); }
@media (min-width: 900px) { .id-nav__links { display: flex; } .id-nav__pill { margin-left: 10px; } }

/* ---- occhiello, pulsanti e link (shell.css, kit.css, editorial.css) -------------------------------------------------- */
.id-eyebrow { color: var(--accent-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.k-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%;
  border-radius: 12px; box-shadow: none; text-transform: none; letter-spacing: -.02em; font-weight: 550; white-space: nowrap;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease, translate 200ms ease;
}
.k-btn--primary { min-height: 52px; height: auto; padding: 15px 24px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); font-size: var(--fs-body); }
.k-btn--secondary { min-height: 52px; height: auto; padding: 15px 24px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: var(--fs-body); }
.id-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-text); font-size: var(--fs-subhead); font-weight: 550; letter-spacing: -.01em; }
.id-freccia { transition: translate 200ms ease; }
@media (hover: hover) {
  .k-btn--primary:hover { translate: 0 -2px; }
  .k-btn--secondary:hover { background: var(--fill-2); }
  .k-btn:hover .id-freccia, .id-link:hover .id-freccia, a:hover > .id-link .id-freccia, .id-guide__row:hover .id-freccia { translate: 4px 0; }
}

/* ---- illustrazioni: segnaposto con le proporzioni della famiglia, sostituito da js/movimento.js con IDF.ui.art() -------- */
.id-art { display: block; aspect-ratio: 10 / 7; max-width: 100%; }

/* ---- apertura (Benvenuto dell'app, adattato al sito) ------------------------------------------------------------------ */
.id-hero { padding: 24px 0 36px; }
.id-hero__in { display: grid; }
.id-hero__art { order: -1; width: 100%; max-width: 380px; margin: 0 auto 30px; }
.id-hero__title { margin-top: 14px; color: var(--ink); font-size: var(--fs-hero); font-weight: 560; letter-spacing: -.06em; line-height: 1.05; text-wrap: balance; }
.id-hero__p { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.id-hero__azioni { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.id-hero__azioni .k-btn { width: 100%; }
@media (min-width: 600px) { .id-hero__azioni { flex-direction: row; flex-wrap: wrap; } .id-hero__azioni .k-btn { width: auto; } }
@media (min-width: 900px) {
  .id-hero { padding: 64px 0 40px; }
  .id-hero__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: 56px; }
  .id-hero__art { order: 0; max-width: 500px; margin: 0; }
  .id-hero__title { font-size: calc(58px * var(--ts)); }
  .id-hero__p { font-size: calc(18px * var(--ts)); }
}

/* ---- blocchi, fasce e aperture di sezione (app-chisiamo.css) ---------------------------------------------------------- */
.id-blocco { padding: 48px 0; }
.id-fascia { background: var(--accent-soft); }
.id-head { max-width: 46em; margin: 0 0 28px; }
.id-head__t { margin-top: 12px; color: var(--ink); font-size: var(--fs-title2); font-weight: 560; letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; }
.id-head__s { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.id-head--art { display: flex; align-items: center; gap: 16px; max-width: none; }
.id-head--art .id-head__tx { flex: 1 1 auto; min-width: 0; max-width: 40em; }
.id-head__art { width: 96px; margin-left: auto; }
@media (min-width: 900px) {
  .id-blocco { padding: 96px 0; }
  .id-head { margin-bottom: 48px; }
  .id-head__t { font-size: calc(36px * var(--ts)); }
  .id-head__art { width: 150px; }
  .id-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
  .id-split > .id-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---- servizi: rail delle illustrazioni (a-chisiamo-rail, -use, -dots); da desktop una griglia ------------------------- */
.id-rail { display: flex; gap: 24px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; }
.id-rail::-webkit-scrollbar { display: none; }
.id-rail:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.id-use { position: relative; display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 min(88%, 330px); min-width: 0; scroll-snap-align: start; padding: 0 0 18px; color: var(--ink); }
.id-use__art { width: 180px; max-width: 100%; height: 126px; margin: 0 0 18px; }
.id-use__t { color: var(--ink); font-size: var(--fs-headline); font-weight: 560; letter-spacing: -.035em; line-height: 1.25; }
.id-use__p { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.id-use .id-link { margin-top: 8px; }
.id-dots { display: flex; justify-content: center; margin-top: 8px; }
.id-dot { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.id-dot__in { width: 8px; height: 8px; border-radius: 4px; background: var(--fill-2); transition: width 300ms var(--motion-ease), background-color 300ms ease; }
.id-fascia .id-dot__in { background: var(--line-strong); }
.id-dot[aria-current="true"] .id-dot__in { width: 16px; background: var(--accent); }
@media (min-width: 900px) {
  .id-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; margin: 0; padding: 0; overflow: visible; }
  .id-use { flex: none; }
  .id-dots { display: none; }
}
@media (min-width: 1200px) { .id-rail { gap: 56px 64px; } .id-use__art { width: 210px; height: 147px; } }

/* ---- come funziona: indice con numeri, titoli e icone nude ------------------------------------------------------------ */
.id-steps { border-top: 1px solid var(--line); }
.id-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.id-step__i { padding-top: 2px; color: var(--accent-text); }
.id-step__k { color: var(--ink-3); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.id-step__t { margin-top: 4px; color: var(--ink); font-size: var(--fs-headline); font-weight: 560; letter-spacing: -.035em; line-height: 1.25; }
.id-step__p { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.id-step__l { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-subhead); line-height: 1.5; }

/* ---- tecnologia: getcard (illustrazione 112 px e testo) --------------------------------------------------------------- */
.id-get { display: grid; gap: 32px; }
.id-getcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; min-width: 0; }
.id-getcard__art { width: 112px; }
.id-getcard__t { color: var(--ink); font-size: var(--fs-headline); font-weight: 560; letter-spacing: -.035em; line-height: 1.25; }
.id-getcard__p { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
@media (max-width: 340px) { .id-getcard { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) { .id-get { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; } .id-getcard { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; } .id-getcard__art { width: 150px; } }

/* ---- moduli: righe guida (icona, titolo, testo, azione con la freccia) ------------------------------------------------ */
.id-guide { border-bottom: 1px solid var(--line); }
.id-guide__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); text-align: left; -webkit-tap-highlight-color: transparent; }
.id-guide__row > .id-i { color: var(--accent-text); }
.id-guide__text { display: flex; flex-direction: column; flex: 1; gap: 6px; min-width: 0; }
.id-guide__text strong { font-size: var(--fs-headline); font-weight: 560; letter-spacing: -.03em; line-height: 1.3; }
.id-guide__text > span { color: var(--ink-2); font-size: var(--fs-subhead); line-height: 1.5; }
.id-guide__go { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--accent-text); font-size: var(--fs-subhead); font-weight: 550; }
.id-guide__go > span { display: none; }
@media (min-width: 600px) { .id-guide__go > span { display: inline; } }
@media (min-width: 900px) {
  .id-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .id-guide__row { flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
  .id-guide__row > .id-i { margin-top: 2px; }
  .id-guide__go { flex-basis: 100%; padding-left: 38px; }
}

/* ---- domande: fisarmoniche con il chevron, separate da filetti ------------------------------------------------------- */
.id-faq { border-top: 1px solid var(--line); }
.id-faq__item { border-bottom: 1px solid var(--line); }
.id-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; color: var(--ink); font-size: var(--fs-headline); font-weight: 560; letter-spacing: -.03em; line-height: 1.3; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.id-faq__q::-webkit-details-marker { display: none; }
.id-faq__q .id-i { color: var(--ink-2); transition: rotate 300ms var(--motion-ease); }
.id-faq__item[open] .id-faq__q .id-i { rotate: 180deg; }
.id-faq__a { padding: 0 0 24px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.6; }
.id-faq__item[open] .id-faq__a { animation: id-entra 450ms var(--motion-ease) both; }
.id-faq__a ul { display: grid; gap: 8px; margin-top: 14px; }
.id-faq__a li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-subhead); line-height: 1.5; }
.id-faq__a li .id-i { margin-top: 1px; color: var(--accent-text); }

/* ---- piè di pagina ------------------------------------------------------------------------------------------------- */
.id-piede { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-subhead); line-height: 1.6; }
.id-piede__grid { display: grid; gap: 28px; }
.id-piede__logo { width: 40px; height: 40px; margin-bottom: 14px; }
.id-piede__k { margin-bottom: 8px; color: var(--ink); font-weight: 560; letter-spacing: -.02em; }
.id-piede li { padding: 2px 0; }
.id-piede a { transition: color 160ms ease; }
.id-piede a:hover { color: var(--ink); }
.id-piede__fine { margin-top: 32px; color: var(--ink-3); font-size: var(--fs-caption); line-height: 1.5; }
@media (min-width: 900px) { .id-piede { padding-top: 56px; } .id-piede__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* ---- movimento: reveal 22 px / 700 ms (a-chisiamo-reveal); il contenuto si nasconde solo se il JS c'è --------------- */
.id-js .id-reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1); transition-delay: var(--id-delay, 0ms); }
.id-js .id-reveal.is-in { opacity: 1; transform: none; }
.id-reveal[data-reveal-delay='1'] { --id-delay: 65ms; }
.id-reveal[data-reveal-delay='2'] { --id-delay: 130ms; }
.id-reveal[data-reveal-delay='3'] { --id-delay: 195ms; }
@keyframes id-entra { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.id-entra { animation: id-entra 600ms var(--motion-ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .id-js .id-reveal { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
  .id-entra, .id-faq__item[open] .id-faq__a { animation: none; }
  .a-ida-typing__dot { animation: none; opacity: .7; }
  .k-btn, .a-ida-send, .id-freccia, .id-faq__q .id-i { transition: none; }
}

/* =====================================================================================================================
   Parti del portale, composte con i componenti del kit (idf-kit.css) e i token qui sopra.
   ===================================================================================================================== */

/* ---- barra in basso dell'app (sh-tabbar), fissa sul telefono; da desktop c'e' la testata con i collegamenti ----------- */
.id-tabbar { position: fixed; z-index: 60; }
.id-tabbar .sh-tab { text-decoration: none; }
.id-tabbar .sh-tabbar__pill { width: 25%; background: var(--sh-pill); transition: translate 300ms var(--motion-ease); }
.id-tabbar[data-attiva='1'] .sh-tabbar__pill { translate: 100% 0; }
.id-tabbar[data-attiva='2'] .sh-tabbar__pill { translate: 200% 0; }
.id-tabbar[data-attiva='3'] .sh-tabbar__pill { translate: 300% 0; }
.id-tabbar[data-attiva='-1'] .sh-tabbar__pill { display: none; }
.id-tabbar .sh-tab__i > svg { width: var(--chrome-icon-size); height: var(--chrome-icon-size); }
body.id-con-barra { padding-bottom: calc(var(--sh-bar-h) + var(--sh-safe-bottom)); }
@media (min-width: 900px) { .id-tabbar { display: none; } body.id-con-barra { padding-bottom: 0; } }

/* ---- testata: logo del marchio a sinistra, collegamenti da desktop ----------------------------------------------------- */
.id-nav__logo img { width: auto; height: 40px; }
.id-nav__links a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---- catalogo: indice delle categorie e righe guida delle lavorazioni --------------------------------------------------- */
.id-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.id-cat { padding: 40px 0 8px; }
.id-cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.id-cat__head .id-i { color: var(--accent-text); }
.id-cat__t { color: var(--ink); font-size: var(--fs-title3); font-weight: 560; letter-spacing: -.04em; line-height: 1.2; }
.id-cat__s { margin: -8px 0 16px; color: var(--ink-2); font-size: var(--fs-subhead); }
.id-guide__row .id-guide__text > span:empty { display: none; }

/* ---- categorie della pagina iniziale (rail come le illustrazioni dell'app, con icona nuda) ----------------------------- */
.id-use--cat .id-use__ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.id-fascia .id-use--cat .id-use__ico { background: var(--surface); }
.id-use__l { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-subhead); line-height: 1.6; }

/* ---- richiesta guidata --------------------------------------------------------------------------------------------- */
.id-wiz { padding: 8px 0 56px; }
.id-wiz__in { max-width: 680px; }
.id-wiz__head { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 28px; }
.id-wiz__head .id-head__tx { flex: 1 1 auto; min-width: 0; }
.id-wiz__art { width: 112px; margin-left: auto; }
.id-wiz__t { margin-top: 10px; color: var(--ink); font-size: var(--fs-title1); font-weight: 560; letter-spacing: -.05em; line-height: 1.08; text-wrap: balance; }
.id-wiz__cambia { margin-top: 6px; }
.id-passi { margin: 0 0 28px; }
.id-passi__k { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--ink-2); font-size: var(--fs-footnote); font-weight: 500; }
.id-passi__k strong { color: var(--ink); font-weight: 600; }
.id-passi .k-prog__fill { --k-tone: var(--accent-fill); transform: scaleX(var(--id-avanzamento, 0)); transition: transform 500ms var(--motion-ease); }
.id-passi[data-step='1'] { --id-avanzamento: .2; }
.id-passi[data-step='2'] { --id-avanzamento: .4; }
.id-passi[data-step='3'] { --id-avanzamento: .6; }
.id-passi[data-step='4'] { --id-avanzamento: .8; }
.id-passi[data-step='5'] { --id-avanzamento: 1; }
.id-passo { margin: 0; padding: 0; border: 0; min-width: 0; }
.id-passo + .id-passo { margin-top: 40px; }
.id-js .id-passo + .id-passo { margin-top: 0; }
.id-passo__t { margin: 0 0 22px; padding: 0; color: var(--ink); font-size: var(--fs-title3); font-weight: 560; letter-spacing: -.04em; line-height: 1.2; }
.id-campi { display: grid; gap: 26px; }
.id-campi--due { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .id-campi--due { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.id-misure { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.id-misure__per { padding-bottom: 16px; color: var(--ink-3); }
.id-unita { flex: none; color: var(--ink-2); font-size: var(--fs-subhead); font-weight: 500; }
.k-field__box { display: flex; align-items: center; gap: 10px; }
/* Freccia reale di icons.js, con il tono di .k-select__chev in editorial.css. */
.k-select__chev { position: absolute; right: 4px; pointer-events: none; color: var(--ink-2); }
.k-field__box:has(.k-select__chev) select { padding-right: 30px; }
.k-field__opz { color: var(--ink-3); font-weight: 400; }
.id-gruppo { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.id-gruppo__t { padding: 0; color: var(--ink-2); font-size: var(--fs-footnote); font-weight: 500; }
.id-scelte { display: flex; flex-wrap: wrap; gap: 10px; }
.id-scelte .k-chip { cursor: pointer; }
.k-chip:has(input:checked) { background: var(--accent-fill); color: #ffffff; box-shadow: inset 0 0 0 1px var(--accent-fill); }
.k-chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.k-chip:has(input:disabled) { opacity: .4; cursor: default; }
.id-spunta { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--ink); font-size: var(--fs-subhead); line-height: 1.55; }
.id-spunta input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-fill); }
.id-spunta a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* date: una riga per giorno, le fasce libere come pillole */
.id-date { border-top: 1px solid var(--line); }
.id-data { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.id-data__n { color: var(--ink); font-size: var(--fs-body); font-weight: 500; }
.id-data__n::first-letter { text-transform: uppercase; }
.id-data .k-chip { height: 40px; padding: 0 18px; }
.id-altre { margin-top: 8px; }

/* foto: anteprime con il raggio delle immagini dell'app (14 px) */
.id-foto__azione { width: 100%; }
@media (min-width: 600px) { .id-foto__azione { width: auto; } }
.id-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
html:not(.id-js) .id-file { position: static; width: auto; max-width: 100%; min-width: 0; height: auto; opacity: 1; }
html:not(.id-js) .id-foto__azione { display: none; }
.id-anteprime { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.id-anteprime:empty { display: none; }
@media (min-width: 600px) { .id-anteprime { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.id-anteprime li { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--fill); }
.id-anteprime img { width: 100%; height: 100%; object-fit: cover; }
.id-anteprime button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: rgba(16, 17, 20, .62); color: #ffffff; }

/* riepilogo e comandi */
.id-riepilogo .k-kv__row { padding-left: 0; padding-right: 0; }
.id-riepilogo .k-kv__row + .k-kv__row::before { left: 0; }
.id-comandi { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.id-comandi [data-avanti], .id-comandi [data-invia] { margin-left: auto; }
@media (max-width: 599px) { .id-comandi .k-btn { flex: 1 1 0; min-width: 0; } }
.id-errore { margin-top: 18px; color: var(--danger); font-size: var(--fs-subhead); font-weight: 550; }
.id-avviso { margin: 0 0 28px; }
.id-avviso .k-note__title { color: var(--danger); }
.id-trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.k-btn:disabled { opacity: .6; cursor: progress; translate: none; }

/* ---- conferma dell'invio e pagine di testo --------------------------------------------------------------------------- */
.id-fatto { padding: 24px 0 64px; }
.id-fatto .k-state { align-items: flex-start; padding: 0; text-align: left; }
.id-fatto .k-state__text { max-width: 34em; font-size: var(--fs-body); }
.id-rif { color: var(--accent-text); font-size: var(--fs-title1); font-weight: 560; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.id-testo { max-width: 46em; padding: 16px 0 64px; }
.id-testo h2 { margin: 32px 0 10px; color: var(--ink); font-size: var(--fs-title3); font-weight: 560; letter-spacing: -.04em; }
.id-testo p { color: var(--ink-2); line-height: 1.6; }
.id-testo p + p { margin-top: 12px; }
.id-testo .k-note { margin: 20px 0 0; }

/* ---- contatti in fondo alla pagina iniziale -------------------------------------------------------------------------- */
.id-contatti .id-guide__row { min-height: 64px; }

/* ---- schermi molto stretti e testo grande -------------------------------------------------------------------------- */
@media (max-width: 360px) { .id-wiz__art { display: none; } .id-data .k-chip { padding: 0 14px; } }

/* ---- rifiniture -------------------------------------------------------------------------------------------------- */
[hidden] { display: none !important; }
.id-blocco--testa { padding-top: 24px; }
@media (min-width: 900px) { .id-blocco--testa { padding-top: 56px; } }
.id-indice.k-chips { padding: 5px 0; flex-wrap: wrap; overflow: visible; }
.id-indice .k-chip { height: 40px; padding: 0 16px; }
.id-foto { margin-top: 20px; }
.id-pericolo { background: var(--danger); color: #ffffff; }
.id-fatto .id-head__art { width: 150px; margin: 0 0 12px; }
.id-fatto .id-hero__azioni { margin-top: 24px; }
.id-rif { margin: 6px 0 14px; }
.id-cat:first-of-type { padding-top: 24px; }
.id-wiz .id-head--art { margin-bottom: 8px; }
@media (max-width: 599px) { .id-nav__piu { display: none; } }
.id-cat .id-guide__go, .id-wiz .id-guide__go { padding-left: 0; }
.id-passi__k strong { color: var(--ink-2); font-weight: 500; }
.id-split .id-get { grid-template-columns: minmax(0, 1fr); }
.id-nav__pill { gap: 6px; }
.id-nav__piu { margin-left: -2px; }

/* Il sistema resta utilizzabile con tastiera, contrasto forzato e movimento ridotto. */
@media (prefers-reduced-motion: reduce) {
  .id-passi .k-prog__fill, .id-tabbar .sh-tabbar__pill { transition: none; }
  .k-btn--primary:hover, .k-btn:hover .id-freccia, .id-link:hover .id-freccia { translate: none; }
}
@media (forced-colors: active) {
  .k-field__box { border-bottom: 1px solid CanvasText; }
  .k-field:focus-within .k-field__box { border-bottom: 2px solid Highlight; }
  .k-chip { border: 1px solid ButtonText; }
  .k-chip:has(input:checked), .k-chip.is-on { outline: 2px solid Highlight; outline-offset: 2px; }
}
