/* ==========================================================================
   Groundwork — componenti (un blocco per componente)
   Blocchi: button · navbar · mobile-menu · sticky-cta · section-head · marquee ·
   stat · service-card · project-card · compare · chip · form · choice · steps ·
   accordion · quote · team-card · footer · transition · doc (styleguide)
   ========================================================================== */

/* ---------- Button ------------------------------------------------------- */
.button {
  --btn-bg: var(--c-yellow);
  --btn-fg: var(--c-ink);
  --btn-sweep: var(--c-ink);
  --btn-sweep-fg: var(--c-yellow);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.35rem; min-height: 3.25rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase; white-space: nowrap;
  transition: color var(--t-med) var(--ease-out);
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-sweep); transform: translateY(101%);
  transition: transform var(--t-med) var(--ease-out);
}
.button:hover, .button:focus-visible { color: var(--btn-sweep-fg); }
.button:hover::before, .button:focus-visible::before { transform: none; }
.button_icon {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  background: var(--btn-fg); color: var(--btn-bg);
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.button_icon svg { width: 1rem; height: 1rem; transition: transform var(--t-med) var(--ease-out); }
.button:hover .button_icon { background: var(--btn-sweep-fg); color: var(--btn-sweep); }
.button:hover .button_icon svg { transform: translate(2px, -2px); }
.button.is-small { min-height: 2.5rem; padding: 0.25rem 0.25rem 0.25rem 1rem; gap: 0.75rem; font-size: 0.75rem; }
.button.is-small .button_icon { width: 1.75rem; height: 1.75rem; }
.button.is-dark { --btn-bg: var(--c-ink); --btn-fg: var(--c-bone); --btn-sweep: var(--c-yellow); --btn-sweep-fg: var(--c-ink); }
.button.is-dark .button_icon { background: var(--c-yellow); color: var(--c-ink); }
.button.is-dark:hover .button_icon { background: var(--c-ink); color: var(--c-yellow); }
.button.is-outline {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-sweep: var(--fg); --btn-sweep-fg: var(--bg);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.button.is-outline .button_icon { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
[data-theme="dark"] .button:not(.is-dark):not(.is-outline),
[data-theme="asphalt"] .button:not(.is-dark):not(.is-outline) { --btn-sweep: var(--c-bone); --btn-sweep-fg: var(--c-ink); }
[data-theme="yellow"] .button:not(.is-dark):not(.is-outline) { --btn-bg: var(--c-ink); --btn-fg: var(--c-bone); --btn-sweep: var(--c-bone); --btn-sweep-fg: var(--c-ink); }
[data-theme="yellow"] .button:not(.is-dark):not(.is-outline) .button_icon { background: var(--c-yellow); color: var(--c-ink); }
.button[disabled], .button.is-disabled { opacity: 0.4; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding-bottom: 2px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.link-arrow:hover { background-size: 0% 2px; background-position: 100% 100%; }
.link-arrow svg { width: 0.875rem; height: 0.875rem; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Logo --------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.logo_mark { width: 1.75rem; height: 1.75rem; flex: none; }

/* ---------- Navbar ------------------------------------------------------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  background: var(--c-white); color: var(--c-ink);
  border-bottom: 1px solid rgba(10, 10, 11, 0.12);
  transition: transform var(--t-med) var(--ease-out), background var(--t-med);
}
.navbar.is-hidden { transform: translateY(-100%); }
.navbar_inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.navbar_menu { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 2vw, 2.25rem); }
.navbar_link {
  position: relative; padding-block: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase;
}
.navbar_link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.navbar_link:hover::after, .navbar_link.is-current::after { transform: scaleX(1); }
.navbar_actions { display: flex; align-items: center; gap: var(--sp-4); }
.navbar_phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: var(--ls-label); }
.navbar_phone::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--c-yellow); box-shadow: inset 0 0 0 1px var(--c-ink); }
.navbar_toggle { display: none; width: 2.75rem; height: 2.75rem; position: relative; background: var(--c-yellow); color: var(--c-ink); }
.navbar_toggle span { position: absolute; left: 0.8rem; right: 0.8rem; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.navbar_toggle span:nth-child(1) { top: 1.05rem; }
.navbar_toggle span:nth-child(2) { top: 1.35rem; }
.navbar_toggle span:nth-child(3) { top: 1.65rem; }
.navbar_toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.3rem) rotate(45deg); }
.navbar_toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar_toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.3rem) rotate(-45deg); }

/* ---------- Mobile menu --------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--c-white); color: var(--c-ink);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s 0.6s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s var(--ease-in-out), visibility 0s; }
.mobile-menu_head { position: absolute; top: 0; left: 0; right: 0; height: var(--nav-h); padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu_list { display: flex; flex-direction: column; }
.mobile-menu_link {
  display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.75rem;
  border-bottom: 1px solid rgba(10, 10, 11, 0.14);
  font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1; text-transform: uppercase;
}
.mobile-menu_link span { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--c-slate); }
.mobile-menu_foot { display: grid; gap: var(--sp-4); }

/* ---------- Sticky CTA (preventivo sempre visibile) ----------------------- */
.sticky-cta { position: fixed; right: var(--gutter); bottom: 1.25rem; z-index: var(--z-sticky); transform: translateY(150%); transition: transform var(--t-slow) var(--ease-settle); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .button { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)); }

/* ---------- Section head --------------------------------------------------- */
.section-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--sp-6) var(--gutter); align-items: end; }
.section-head_eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: var(--sp-5); }
.section-head_eyebrow::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--c-yellow); }
[data-theme="light"] .section-head_eyebrow::before, [data-theme="soft"] .section-head_eyebrow::before { box-shadow: inset 0 0 0 1px var(--c-ink); }
.section-head_text { color: var(--fg-muted); max-width: 34rem; }

/* ---------- Marquee (striscia hazard / testo) ------------------------------ */
.marquee { overflow: hidden; background: var(--c-white); color: var(--c-ink); border-block: 1px solid var(--line); }
.marquee.is-yellow { background: var(--c-yellow); border-color: var(--c-ink); }
.marquee_track { display: flex; width: max-content; will-change: transform; }
.marquee_group { display: flex; align-items: center; flex: none; }
.marquee_item { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0 0.9rem 1.5rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--ls-label); font-size: 0.8125rem; text-transform: uppercase; white-space: nowrap; }
.marquee_item::after { content: ""; width: 0.6rem; height: 0.6rem; background: var(--c-yellow); box-shadow: inset 0 0 0 1px var(--c-ink); }
.marquee.is-yellow .marquee_item::after { background: var(--c-ink); box-shadow: none; transform: rotate(45deg); }
.marquee.is-dark { background: var(--c-ink); color: var(--c-bone); border-color: rgba(244, 243, 239, 0.16); }
.marquee.is-dark .marquee_item::after { background: var(--c-yellow); }

/* ---------- Stat (numeri che si "costruiscono" a blocchi) ------------------ */
.stat { padding: var(--sp-5) 0 var(--sp-5); border-top: 1px solid var(--line); }
.stat_value { display: flex; align-items: baseline; gap: 0.2em; font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.25rem, 1.2rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat_suffix { font-size: 0.38em; letter-spacing: 0; text-transform: uppercase; color: var(--c-yellow); }
[data-theme="light"] .stat_suffix, [data-theme="soft"] .stat_suffix { color: var(--c-ink); }
.stat_blocks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-block: var(--sp-4); }
.stat_block { height: 0.5rem; background: var(--line); }
.stat_block.is-on { background: var(--c-yellow); }
[data-theme="light"] .stat_block.is-on, [data-theme="soft"] .stat_block.is-on { background: var(--c-ink); }
.stat_label { color: var(--fg-muted); }

/* ---------- Service card --------------------------------------------------- */
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7); min-height: 22rem; padding: var(--sp-5);
  background: var(--bg-raised); color: var(--fg);
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.service-card_num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--fg-muted); transition: color var(--t-med); }
.service-card_title { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.service-card_text { color: var(--fg-muted); max-width: 26rem; transition: color var(--t-med); }
.service-card_foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); transition: border-color var(--t-med); }
.service-card_arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--c-yellow); color: var(--c-ink); transition: transform var(--t-med) var(--ease-settle); }
.service-card_arrow svg { width: 1rem; height: 1rem; }
.service-card:hover { background: var(--c-yellow); color: var(--c-ink); }
.service-card:hover .service-card_num, .service-card:hover .service-card_text { color: rgba(10, 10, 11, 0.75); }
.service-card:hover .service-card_foot { border-color: rgba(10, 10, 11, 0.3); }
.service-card:hover .service-card_arrow { background: var(--c-ink); color: var(--c-yellow); transform: rotate(45deg); }

/* ---------- Project card (targhetta smussata) ------------------------------ */
.project-card { position: relative; display: block; overflow: hidden; background: var(--c-steel); color: var(--c-bone); aspect-ratio: 4 / 3.4; }
.project-card_media { position: absolute; inset: 0; }
.project-card_media > img, .project-card_media > .pattern-blueprint { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project-card:hover .project-card_media > * { transform: scale(1.06); }
.project-card_tag { position: absolute; top: var(--sp-4); left: var(--sp-4); padding: 0.3rem 0.6rem; background: var(--c-bone); color: var(--c-ink); }
.project-card_plate {
  position: absolute; left: 0; bottom: 0; right: 3.5rem; padding: var(--sp-4) var(--sp-6) var(--sp-4) var(--sp-4);
  background: var(--c-bone); color: var(--c-ink);
  transition: background var(--t-med) var(--ease-out);
}
.project-card_title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); }
.project-card_meta { margin-top: 0.35rem; color: var(--c-slate); }
.project-card_go { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: var(--c-yellow); color: var(--c-ink); transition: transform var(--t-med) var(--ease-settle); }
.project-card_go svg { width: 1.125rem; height: 1.125rem; }
.project-card:hover .project-card_plate { background: var(--c-yellow); }
.project-card:hover .project-card_meta { color: rgba(10, 10, 11, 0.75); }
.project-card:hover .project-card_go { transform: translate(0.25rem, -0.25rem); }

/* ---------- Compare (prima / dopo) ----------------------------------------- */
.compare { --pos: 50%; position: relative; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; touch-action: pan-y; background: var(--c-steel); }
.compare_layer { position: absolute; inset: 0; }
.compare_layer > * { width: 100%; height: 100%; object-fit: cover; }
.compare_layer.is-after { clip-path: inset(0 0 0 var(--pos)); }
.compare_label { position: absolute; top: var(--sp-4); padding: 0.3rem 0.6rem; background: var(--c-ink); color: var(--c-bone); z-index: 2; }
.compare_label.is-before { left: var(--sp-4); }
.compare_label.is-after { right: var(--sp-4); background: var(--c-yellow); color: var(--c-ink); }
.compare_handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--c-yellow); z-index: 3; }
.compare_knob { position: absolute; top: 50%; left: 50%; width: 3.5rem; height: 3.5rem; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--c-yellow); color: var(--c-ink); cursor: ew-resize; }
.compare_knob svg { width: 1.5rem; height: 1.5rem; }
.compare_range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare_range:focus-visible + .compare_handle .compare_knob { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-yellow); }

/* ---------- Chip (filtri) -------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { padding: 0.55rem 0.9rem; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; transition: background var(--t-fast), color var(--t-fast); }
.chip:hover { background: var(--fg); color: var(--bg); }
.chip.is-active { background: var(--c-yellow); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.tag { display: inline-block; padding: 0.25rem 0.5rem; background: var(--c-yellow); color: var(--c-ink); }
.tag.is-outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }

/* ---------- Form ------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form_row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field_label { color: var(--fg-muted); display: flex; justify-content: space-between; gap: 1rem; }
.field_label em { font-style: normal; color: var(--fg); }
.field_control {
  width: 100%; min-height: 3.5rem; padding: 0.85rem 1rem; border-radius: 0; appearance: none;
  background: var(--bg-raised); color: var(--fg); border: 0; box-shadow: inset 0 0 0 1.5px var(--field-line);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
textarea.field_control { min-height: 8rem; resize: vertical; }
select.field_control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field_control::placeholder { color: var(--fg-muted); opacity: 0.8; }
.field_control:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.field_control:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--fg), 0 4px 0 0 var(--c-yellow); }
.field.is-invalid .field_control { box-shadow: inset 0 0 0 1.5px var(--c-danger); }
.field_error { display: none; color: var(--c-danger); }
.field.is-invalid .field_error { display: block; }
[data-theme="light"] .field_error, [data-theme="soft"] .field_error { color: #c2250a; }
.field.is-valid .field_control { box-shadow: inset 0 0 0 1.5px var(--c-ok); }
[data-theme="light"] .field.is-valid, [data-theme="soft"] .field.is-valid .field_control { box-shadow: inset 0 0 0 1.5px #12a35a; }

.check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: var(--fs-small); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check_box { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background var(--t-fast); }
.check_box svg { width: 0.875rem; height: 0.875rem; opacity: 0; transform: scale(0.4); transition: transform var(--t-med) var(--ease-settle), opacity var(--t-fast); }
.check input:checked + .check_box { background: var(--c-yellow); box-shadow: inset 0 0 0 1.5px var(--c-ink); color: var(--c-ink); }
.check input:checked + .check_box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check_box { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
[data-theme="light"] .check input:focus-visible, [data-theme="soft"] .check input:focus-visible + .check_box { outline-color: var(--c-ink); }

/* Range (metri quadri) */
.range { width: 100%; height: 2.5rem; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--c-yellow) var(--fill, 30%), var(--line) var(--fill, 30%)); }
.range::-moz-range-track { height: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; background: var(--c-yellow); }
.range::-webkit-slider-thumb { appearance: none; width: 1.75rem; height: 1.75rem; margin-top: -0.75rem; background: var(--c-yellow); border: 3px solid var(--c-ink); border-radius: 0; }
.range::-moz-range-thumb { width: 1.5rem; height: 1.5rem; background: var(--c-yellow); border: 3px solid var(--c-ink); border-radius: 0; }

/* ---------- Choice (tile selezionabili del form a step) ---------------------- */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--sp-3); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice_body { display: flex; flex-direction: column; gap: var(--sp-6); min-height: 9rem; padding: var(--sp-4); background: var(--bg-raised); box-shadow: inset 0 0 0 1.5px var(--field-line); transition: background var(--t-med) var(--ease-out), box-shadow var(--t-fast), transform var(--t-med) var(--ease-settle); }
.choice_icon { width: 2rem; height: 2rem; }
.choice_title { font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 1.375rem; text-transform: uppercase; line-height: 1; }
.choice:hover .choice_body { box-shadow: inset 0 0 0 1.5px var(--line-strong); transform: translateY(-3px); }
.choice input:checked + .choice_body { background: var(--c-yellow); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.choice input:focus-visible + .choice_body { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
[data-theme="light"] .choice input:focus-visible, [data-theme="soft"] .choice input:focus-visible + .choice_body { outline-color: var(--c-ink); }

/* ---------- Steps (preventivo a step + barra di progresso) -------------------- */
.steps_bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: var(--sp-6); }
.steps_seg { height: 0.5rem; background: var(--line); position: relative; overflow: hidden; }
.steps_seg::after { content: ""; position: absolute; inset: 0; background: var(--c-yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
[data-theme="light"] .steps_seg::after, [data-theme="soft"] .steps_seg::after { background: var(--c-ink); }
.steps_seg.is-done::after, .steps_seg.is-current::after { transform: scaleX(1); }
.steps_meta { display: flex; justify-content: space-between; margin-bottom: var(--sp-3); color: var(--fg-muted); }
.steps_panel { display: none; }
.steps_panel.is-active { display: grid; gap: var(--sp-5); }
.steps_nav { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }

/* ---------- Accordion --------------------------------------------------------- */
.accordion_item { border-top: 1px solid var(--line); }
.accordion_item:last-child { border-bottom: 1px solid var(--line); }
.accordion_trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-5) 0; text-align: left; font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.05; }
.accordion_icon { position: relative; flex: none; width: 2.5rem; height: 2.5rem; background: var(--c-yellow); color: var(--c-ink); transition: transform var(--t-med) var(--ease-settle); }
.accordion_icon::before, .accordion_icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1rem; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease-out); }
.accordion_icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion_item.is-open .accordion_icon { transform: rotate(180deg); }
.accordion_item.is-open .accordion_icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion_panel { overflow: hidden; height: 0; }
.accordion_body { padding-bottom: var(--sp-5); max-width: 42rem; color: var(--fg-muted); }

/* ---------- Quote -------------------------------------------------------------- */
.quote { position: relative; padding: var(--sp-6); background: var(--bg-raised); }
.quote_stars { display: flex; gap: 3px; color: var(--c-yellow); margin-bottom: var(--sp-4); }
[data-theme="light"] .quote_stars, [data-theme="soft"] .quote_stars { color: var(--c-ink); }
.quote_stars svg { width: 1rem; height: 1rem; }
.quote_text { font-size: var(--fs-lead); line-height: 1.4; font-weight: 500; }
.quote_author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.quote_avatar { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--c-yellow); color: var(--c-ink); font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 1.25rem; }

/* ---------- Team card ------------------------------------------------------------ */
.team-card_media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-steel); }
.team-card_media > * { width: 100%; height: 100%; object-fit: cover; transition: filter var(--t-med), transform 1s var(--ease-out); }
.team-card:hover .team-card_media > * { transform: scale(1.04); }
.team-card_role { margin-top: var(--sp-4); color: var(--fg-muted); }
.team-card_name { margin-top: 0.25rem; font-size: var(--fs-h4); }

/* ---------- Footer ---------------------------------------------------------------- */
.footer { background: var(--c-ink); color: var(--c-bone); }
.footer_cta { background: var(--c-yellow); color: var(--c-ink); }
.footer_cta-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--sp-6) var(--gutter); align-items: end; }
.footer_grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--sp-7) var(--gutter); }
.footer_title { margin-bottom: var(--sp-4); color: var(--c-ash); }
.footer_list { display: grid; gap: 0.6rem; }
.footer_list a { transition: color var(--t-fast); }
.footer_list a:hover { color: var(--c-yellow); }
.footer_marquee { overflow: hidden; user-select: none; }
.footer_marquee-track { display: flex; width: max-content; animation: footer-loop 80s linear infinite; will-change: transform; }
.footer_marquee-group { display: flex; flex: none; }
.footer_word { flex: none; padding-right: 0.28em; font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: clamp(4rem, 1.5rem + 14vw, 17rem); line-height: 0.78; text-transform: uppercase; letter-spacing: -0.01em; color: var(--c-steel); white-space: nowrap; }
@keyframes footer-loop { to { transform: translateX(-50%); } }
.footer_bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5); border-top: 1px solid rgba(244, 243, 239, 0.14); color: var(--c-ash); }

/* ---------- Transizione di pagina: un muro giallo + piccolo loader in basso ---------- */
.transition { position: fixed; inset: 0; z-index: var(--z-transition); pointer-events: none; overflow: hidden; }
.transition.is-blocking { pointer-events: all; }
.transition_wall { position: absolute; inset: 0; background: var(--c-yellow); }
.transition_loader { position: absolute; left: var(--gutter); bottom: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; align-items: center; gap: var(--sp-4); color: var(--c-ink); opacity: 0; }
.transition_bar { position: relative; width: 7rem; height: 2px; background: rgba(10, 10, 11, 0.2); overflow: hidden; }
.transition_fill { position: absolute; inset: 0; background: var(--c-ink); transform-origin: left; transform: scaleX(0); }
.transition_pct { min-width: 2.25rem; font-variant-numeric: tabular-nums; }

/* ---------- Styleguide helpers (doc) -------------------------------------------------- */
.doc_nav { position: sticky; top: var(--nav-h); z-index: 50; background: var(--c-asphalt); color: var(--c-bone); border-bottom: 1px solid rgba(244, 243, 239, 0.14); overflow-x: auto; }
.doc_nav-inner { display: flex; gap: 0.25rem; padding-block: 0.5rem; width: max-content; }
.doc_nav a { padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-ash); transition: color var(--t-fast), background var(--t-fast); }
.doc_nav a:hover, .doc_nav a.is-active { color: var(--c-ink); background: var(--c-yellow); }
.doc_block { padding-block: var(--section-s); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 3.5rem); }
.doc_block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.doc_block-head .heading-h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.doc_stage { padding: var(--sp-6); background: var(--bg-raised); }
.doc_stage.is-dark { background: var(--c-ink); color: var(--c-bone); --fg: var(--c-bone); --fg-muted: var(--c-ash); --line: rgba(244, 243, 239, 0.16); --line-strong: rgba(244, 243, 239, 0.85); --bg: var(--c-ink); --bg-raised: var(--c-steel); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--sp-3); }
.swatch { min-height: 9rem; padding: var(--sp-3); display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px var(--line); }
.swatch_name { font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 1.375rem; text-transform: uppercase; line-height: 1; }
.doc_note { margin-top: var(--sp-3); color: var(--fg-muted); font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; }
.doc_note code, .doc_code { font-family: var(--font-mono); background: rgba(127, 127, 127, 0.18); padding: 0.1em 0.35em; }
.doc_row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-4) var(--sp-5); padding-block: var(--sp-4); border-top: 1px solid var(--line); align-items: baseline; }
.doc_grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.doc_grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.doc_demo-box { display: grid; place-items: center; min-height: 11rem; padding: var(--sp-5); background: var(--c-yellow); color: var(--c-ink); text-align: center; }
.doc_settle-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.doc_settle-grid > div { aspect-ratio: 1; background: var(--c-ink); }
.doc_settle-grid > div:nth-child(3n) { background: var(--c-yellow); }

/* ---------- Responsive ------------------------------------------------------------------ */
@media (max-width: 991px) {
  .navbar_menu, .navbar_phone { display: none; }
  .navbar_toggle { display: block; }
  .section-head { grid-template-columns: 1fr; }
  .footer_cta-inner { grid-template-columns: 1fr; }
  .footer_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc_grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .form_row, .doc_grid-2, .doc_grid-3 { grid-template-columns: 1fr; }
  .doc_row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .doc_settle-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { left: var(--gutter); }
  .sticky-cta .button { width: 100%; justify-content: space-between; }
  .compare { aspect-ratio: 4 / 5; }
  .project-card { aspect-ratio: 4 / 4.4; }
  .project-card_plate { right: 18%; }
  .steps_nav { flex-direction: column-reverse; }
  .steps_nav .button { width: 100%; justify-content: space-between; }
}
@media (max-width: 479px) {
  .navbar_actions .button { display: none; }
  .footer_grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HOME — blocchi di pagina
   hero · intro · numbers-row · services · showcase · projects · feature · slider ·
   reviews · estimate · faq-section
   ========================================================================== */

/* ---------- Hero (inset: blocco con margine bianco attorno) ------------------ */
.hero { --hero-gap: clamp(0.75rem, 0.3rem + 1.2vw, 1.5rem); padding: calc(var(--nav-h) + var(--hero-gap)) var(--hero-gap) var(--hero-gap); background: var(--c-white); }
.hero_frame { position: relative; display: flex; min-height: calc(100svh - var(--nav-h) - 2 * var(--hero-gap)); overflow: hidden; background: var(--c-ink); color: var(--c-bone); --chamfer: clamp(1.25rem, 1rem + 1.6vw, 2.75rem); }
.hero_media { position: absolute; inset: 0; }
.hero_media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; }
.hero_media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,0.88) 0%, rgba(10,10,11,0.45) 50%, rgba(10,10,11,0.55) 100%); }
.hero_content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-8); width: 100%; padding: clamp(1.25rem, 0.5rem + 3vw, 3.5rem); }
.hero_eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero_eyebrow::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--c-yellow); }
.hero_bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--sp-6) var(--gutter); align-items: end; }
.hero_main { display: grid; gap: var(--sp-5); justify-items: start; }
.hero_title { font-size: clamp(2.5rem, 0.75rem + 5vw, 5.25rem); line-height: 0.95; }
.hero_lead { max-width: 34rem; color: var(--c-bone); opacity: 0.88; }
.hero_actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero_card { padding: var(--sp-5); background: var(--c-yellow); color: var(--c-ink); }
.hero_card-title { font-size: var(--fs-h3); margin-block: var(--sp-2) var(--sp-4); }
.hero_card-list { display: grid; gap: 0.6rem; }
.hero_card-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-small); font-weight: 500; }
.hero_card-list svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }

/* ---------- Intro (statement + collage) ---------------------------------- */
.intro_grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8) clamp(3rem, 1.5rem + 5vw, 7rem); align-items: start; }
.intro_text { display: grid; gap: var(--sp-5); }
.intro_text h2 { font-size: var(--fs-h2); }
.intro_badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.intro_badge { padding: 0.5rem 0.75rem; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.intro_collage { position: relative; padding-bottom: 22%; }
.intro_img { overflow: hidden; background: var(--c-steel); }
.intro_img img { width: 100%; height: 100%; object-fit: cover; }
.intro_img.is-main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
.intro_img.is-sub { position: absolute; left: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 0.6rem solid var(--bg); border-left: 0; border-bottom: 0; background-clip: padding-box; }
.numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--section-m); }

/* ---------- Services ------------------------------------------------------ */
.services_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-8); }
.service-card_icon { box-sizing: content-box; width: 1.75rem; height: 1.75rem; padding: 0.6rem; background: var(--c-yellow); color: var(--c-ink); transition: background var(--t-med), color var(--t-med); }
.service-card:hover .service-card_icon { background: var(--c-ink); color: var(--c-yellow); }
.service-card_top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card_list { margin-top: var(--sp-4); display: grid; gap: 0.35rem; font-size: var(--fs-small); }
.service-card_list li { display: flex; gap: 0.5rem; }
.service-card_list li::before { content: "+"; font-family: var(--font-mono); font-weight: 700; }

/* ---------- Showcase (prima / dopo) ----------------------------------------- */
.showcase { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gutter); margin-top: var(--sp-8); align-items: stretch; }
.showcase .compare { aspect-ratio: auto; min-height: 30rem; height: 100%; }
.showcase_panel { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-6); padding: var(--sp-5); background: var(--bg-raised); color: var(--fg); }
.showcase_facts { display: grid; }
.showcase_fact { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: 0.85rem; border-top: 1px solid var(--line); }
.showcase_fact dt { color: var(--fg-muted); }
.showcase_fact dd { margin: 0; text-align: right; font-weight: 600; }
.showcase_title { font-size: var(--fs-h3); }

/* ---------- Projects ----------------------------------------------------------- */
.projects_bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-7); }
.projects_grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(18rem, 27vw, 27rem); gap: var(--sp-3); margin-top: var(--sp-5); }
.projects_grid .project-card { aspect-ratio: auto; height: 100%; grid-column: span 6; }
.projects_grid .project-card.is-settled { transition: opacity var(--t-med); }
.projects_grid .is-w7 { grid-column: span 7; }
.projects_grid .is-w5 { grid-column: span 5; }
.project-card_media img { transition: transform 1.2s var(--ease-out); }
.project-card:hover .project-card_media img, .project-card:focus-visible .project-card_media img { }
.project-card.is-dimmed { opacity: 0.18; pointer-events: none; }
.projects_more { display: flex; justify-content: center; margin-top: var(--sp-7); }

/* ---------- Feature (traslochi) ------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8) var(--gutter); align-items: center; }
.feature_media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-steel); }
.feature_media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.feature_tag { position: absolute; left: 0; bottom: 0; z-index: 1; padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4); background: var(--c-yellow); color: var(--c-ink); }
.feature_body { display: grid; gap: var(--sp-5); }
.feature_body h2 { font-size: var(--fs-h2); }
.feature_list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: var(--sp-3); }
.feature_item { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-top: 1px solid var(--line); }
.feature_item h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.feature_item p { color: var(--fg-muted); font-size: var(--fs-small); }

/* ---------- Slider (card affiancate, come "Our projects" della ref) ------------ */
.slider { --bleed: calc(var(--gutter) + max(0px, (100vw - 2 * var(--gutter) - var(--container-l)) / 2)); }
.slider_head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.slider_meta { display: flex; align-items: center; gap: var(--sp-4); flex: 1; max-width: 28rem; color: var(--fg-muted); }
.slider_meta [data-slider-count] { color: var(--fg); min-width: 4.5rem; }
.slider_bar { position: relative; flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.slider_bar-fill { position: absolute; inset: 0; background: var(--c-yellow); transform-origin: left; transform: scaleX(0.25); transition: transform var(--t-med) var(--ease-out); }
.slider_controls { display: flex; gap: var(--sp-2); }
.slider_btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--fg); transition: background var(--t-med) var(--ease-out), color var(--t-med), opacity var(--t-fast); }
.slider_btn svg { width: 1.1rem; height: 1.1rem; }
.slider_btn svg.is-flip { transform: scaleX(-1); }
.slider_btn:hover { background: var(--fg); color: var(--bg); }
.slider_btn.is-primary { background: var(--c-yellow); color: var(--c-ink); box-shadow: none; }
.slider_btn.is-primary:hover { background: var(--fg); color: var(--bg); }
.slider_btn[disabled] { opacity: 0.3; pointer-events: none; }
.slider_track { display: flex; gap: var(--sp-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--bleed)); padding-right: var(--bleed); cursor: grab; }
.slider_track::-webkit-scrollbar { display: none; }
.slider_track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider_track.is-dragging * { pointer-events: none; }
.slider-card { position: relative; flex: none; scroll-snap-align: start; width: clamp(20rem, 52vw, 46rem); aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--c-steel); color: var(--c-bone); user-select: none; }
.slider-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.slider-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.5) 45%, rgba(10,10,11,0.05) 75%); pointer-events: none; }
.slider-card:hover > img { transform: scale(1.05); }
.slider-card_num { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 1; display: grid; place-items: center; min-width: 3rem; height: 3rem; padding-inline: 0.6rem; background: var(--c-yellow); color: var(--c-ink); font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem; }
.slider-card_body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: var(--sp-3); padding: var(--sp-5); }
.slider-card_body h3 { font-size: var(--fs-h3); line-height: 0.98; }
[data-theme="light"] .slider_bar-fill, [data-theme="soft"] .slider_bar-fill { background: var(--c-ink); }
.slider-card_body p { max-width: 26rem; color: rgba(244, 243, 239, 0.82); }
.slider-card_tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Reviews ------------------------------------------------------------------ */
.reviews_head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); }
.reviews_score { display: flex; align-items: center; gap: var(--sp-4); }
.reviews_score-num { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.05em; font-size: 3rem; line-height: 0.85; }
.reviews_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-8); }
.reviews_grid .quote { display: flex; flex-direction: column; justify-content: space-between; }

/* ---------- Estimate (preventivo) ------------------------------------------------------ */
.estimate { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-3); align-items: stretch; }
.estimate_side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7); padding: var(--sp-6); background: var(--c-yellow); color: var(--c-ink); }
.estimate_side h2 { font-size: var(--fs-h2); }
.estimate_promises { display: grid; gap: var(--sp-3); }
.estimate_promises li { display: flex; gap: 0.75rem; align-items: flex-start; padding-top: var(--sp-3); border-top: 1px solid rgba(10, 10, 11, 0.35); font-weight: 500; }
.estimate_promises svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.estimate_phone { display: block; font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: var(--fs-h2); line-height: 1; }
.estimate_form { --bg-raised: var(--c-white); padding: var(--sp-6); background: var(--c-bone); }

/* ---------- FAQ ---------------------------------------------------------------------------- */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-7) var(--gutter); }
.faq-section_aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; display: grid; gap: var(--sp-5); }

/* ---------- Responsive home ---------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero_bottom { grid-template-columns: 1fr; }
  .hero_title { max-width: none; }
  .intro_grid, .feature, .estimate, .faq-section, .showcase { grid-template-columns: 1fr; }
  .numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-section_aside { position: relative; top: 0; }
  .reviews_grid { grid-template-columns: 1fr; }
  .feature_media { aspect-ratio: 16 / 11; }
  .showcase .compare { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
}
@media (max-width: 767px) {
  .hero_frame { min-height: 0; }
  .hero_content { gap: var(--sp-7); padding-top: var(--sp-5); }
  .numbers-row, .services_grid { grid-template-columns: 1fr; }
  .numbers-row { gap: var(--sp-5); }
  .projects_grid { grid-auto-rows: auto; }
  .projects_grid .project-card, .projects_grid .is-w7, .projects_grid .is-w5 { grid-column: span 12; aspect-ratio: 4 / 3.6; height: auto; }
  .feature_list { grid-template-columns: 1fr; }
  .estimate_side, .estimate_form { padding: var(--sp-5); }
  .showcase .compare { aspect-ratio: 4 / 5; }
  .intro_img.is-main { width: 88%; }
  .slider_meta { max-width: none; }
  .slider-card { width: 86vw; aspect-ratio: 4 / 3.6; }
  .slider-card_body h3 { font-size: var(--fs-h3); }
}

/* ---------- Pagine interne: intestazione + griglia uniforme -------------------- */
.page-head { padding-top: calc(var(--nav-h) + var(--sp-7)); padding-bottom: var(--section-s); }
.page-head_grid { margin-top: var(--sp-6); }
@media (min-width: 992px) { .page-head_grid { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); } }
.page-head_title { font-size: var(--fs-h1); line-height: 0.95; }
.breadcrumb { display: flex; gap: 0.6rem; color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--fg); }
.projects_grid.is-uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.projects_grid.is-uniform .project-card { grid-column: auto; aspect-ratio: 4 / 3.7; height: auto; }
@media (max-width: 991px) { .projects_grid.is-uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .projects_grid.is-uniform { grid-template-columns: 1fr; } .projects_grid.is-uniform .project-card { grid-column: auto; } }

/* ==========================================================================
   PAGINE INTERNE — page hero, includes, timeline, service-row, table, squadre,
   certificazioni, contatti, dettaglio progetto, 404, form-alert
   ========================================================================== */

/* ---------- Page hero (hero inset più basso) ------------------------------- */
.hero.is-page .hero_title { font-size: var(--fs-h1); }
.hero.is-page .hero_media::after { background: linear-gradient(0deg, rgba(10,10,11,0.9) 0%, rgba(10,10,11,0.5) 55%, rgba(10,10,11,0.6) 100%); }
.hero_facts { display: grid; gap: 0; }
.hero_fact { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: 0.7rem; border-top: 1px solid rgba(10, 10, 11, 0.3); }
.hero_fact:first-child { border-top: 0; padding-top: 0; }
.hero_fact dd { margin: 0; font-weight: 700; text-align: right; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--fg-muted); }
.hero .breadcrumb { color: rgba(244, 243, 239, 0.75); }
.hero .breadcrumb [aria-current] { color: var(--c-bone); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Includes (cosa comprende) ---------------------------------------- */
.includes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); margin-top: var(--sp-7); }
.includes_item { display: flex; gap: var(--sp-3); align-items: flex-start; padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.includes_item svg { flex: none; width: 1.5rem; height: 1.5rem; padding: 0.25rem; background: var(--c-yellow); color: var(--c-ink); box-sizing: content-box; }
.includes_item h3 { font-size: var(--fs-h4); margin-bottom: 0.25rem; }
.includes_item p { color: var(--fg-muted); font-size: var(--fs-small); }

/* ---------- Timeline (fasi e tempi) -------------------------------------------- */
.timeline-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-7) var(--gutter); }
.timeline-wrap_aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; display: grid; gap: var(--sp-5); }
.timeline { position: relative; padding-left: clamp(2rem, 1rem + 3vw, 4rem); }
.timeline_rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.timeline_line { position: absolute; inset: 0; background: var(--c-yellow); transform-origin: top; transform: scaleY(0); }
.timeline_step { position: relative; padding-block: var(--sp-6); border-bottom: 1px solid var(--line); }
.timeline_step:first-child { padding-top: 0; }
.timeline_step::before { content: ""; position: absolute; left: calc(-1 * clamp(2rem, 1rem + 3vw, 4rem) - 0.4rem); top: var(--sp-6); width: 0.85rem; height: 0.85rem; background: var(--c-yellow); box-shadow: inset 0 0 0 1px var(--c-ink); }
.timeline_step:first-child::before { top: 0.4rem; }
.timeline_time { display: inline-block; padding: 0.2rem 0.5rem; background: var(--c-yellow); color: var(--c-ink); }
.timeline_step h3 { font-size: var(--fs-h3); margin-block: var(--sp-2) var(--sp-3); }
.timeline_step p { color: var(--fg-muted); max-width: 36rem; }
.timeline_total { padding: var(--sp-4); background: var(--bg-raised); }
.timeline_total strong { display: block; font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: var(--fs-h2); line-height: 1; text-transform: uppercase; }

/* ---------- Service row (panoramica servizi) ------------------------------------ */
.service-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--sp-7) clamp(3rem, 1.5rem + 5vw, 7rem); align-items: center; padding-block: var(--sp-8); border-top: 1px solid var(--line); }
.service-row:first-of-type { border-top: 0; }
.service-row_media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-steel); }
.service-row_media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-row:hover .service-row_media img { transform: scale(1.04); }
.service-row.is-reverse .service-row_media { order: 2; }
.service-row_body { display: grid; gap: var(--sp-4); justify-items: start; }
.service-row_body h2 { font-size: var(--fs-h2); }
.service-row_list { display: grid; gap: 0.4rem; }
.service-row_list li { display: flex; gap: 0.5rem; }
.service-row_list li::before { content: "+"; font-family: var(--font-mono); font-weight: 700; }
.service-row_meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Tabella dati ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: var(--sp-6); }
.data-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.data-table caption { text-align: left; padding-bottom: var(--sp-3); color: var(--fg-muted); }
.data-table th, .data-table td { padding: var(--sp-4) var(--sp-3); text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.data-table thead th { border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); }
.data-table tbody th { font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: var(--fs-h4); text-transform: uppercase; }
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover { background: var(--bg-raised); }

/* ---------- Valori e squadre ----------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-7); }
.value-card { display: grid; gap: var(--sp-4); align-content: space-between; min-height: 16rem; padding: var(--sp-5); background: var(--bg-raised); }
.value-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.value-card p { color: var(--fg-muted); }
.squads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-7); }
.squad { position: relative; display: flex; flex-direction: column; }
.squad_media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-steel); }
.squad_media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.squad:hover .squad_media img { transform: scale(1.05); }
.squad_count { margin-top: var(--sp-4); font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.05em; font-size: var(--fs-h2); line-height: 1; }
.squad_name { margin-top: 0.25rem; font-size: var(--fs-h4); }
.squad_text { margin-top: var(--sp-2); color: var(--fg-muted); font-size: var(--fs-small); }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); margin-top: var(--sp-7); }
.cert { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.cert_code { align-self: start; padding: 0.35rem 0.6rem; background: var(--c-yellow); color: var(--c-ink); justify-self: start; }
.cert h3 { font-size: var(--fs-h4); margin-bottom: 0.25rem; }
.cert p { color: var(--fg-muted); font-size: var(--fs-small); }
.fleet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7) clamp(3rem, 1.5rem + 5vw, 7rem); align-items: center; }
.fleet_media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-steel); }
.fleet_media img { width: 100%; height: 100%; object-fit: cover; }
.fleet_stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--gutter); }

/* ---------- Contatti ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-3); align-items: stretch; }
.contact_card { padding: var(--sp-6); background: var(--bg-raised); display: grid; gap: var(--sp-6); align-content: space-between; }
.kv { display: grid; }
.kv_row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--sp-3); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.kv_row dt { color: var(--fg-muted); }
.kv_row dd { margin: 0; font-weight: 600; }
.kv_row a:hover { text-decoration: underline; }
.contact_form { padding: var(--sp-6); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--line); --bg-raised: var(--c-bone); }

/* ---------- Dettaglio progetto ---------------------------------------------------------------- */
.project-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7) clamp(3rem, 1.5rem + 5vw, 7rem); align-items: start; }
.project-intro_text { display: grid; gap: var(--sp-5); }
.project-intro_text p { color: var(--fg-muted); }
.next-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--gutter); align-items: stretch; background: var(--bg-raised); }
.next-project_text { display: grid; gap: var(--sp-5); align-content: center; padding: var(--sp-7); }
.next-project_text h2 { font-size: var(--fs-h2); }
.next-project_media { position: relative; min-height: 16rem; overflow: hidden; }
.next-project_media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.next-project:hover .next-project_media img { transform: scale(1.05); }

/* ---------- Form: avvisi e stati ----------------------------------------------------------------- */
.form-alert { display: none; padding: var(--sp-4); border-left: 4px solid var(--c-danger); background: rgba(255, 77, 46, 0.1); }
.form-alert.is-visible { display: block; }
.form-alert h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.form-success { display: none; padding: var(--sp-6); background: var(--c-yellow); color: var(--c-ink); }
.form-success.is-visible { display: block; }
.estimate-page { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--sp-3); align-items: start; }
.estimate-page .estimate_form { min-height: 34rem; }
.aside-card { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: var(--sp-5); padding: var(--sp-5); background: var(--bg-raised); }
.next-steps { display: grid; gap: var(--sp-4); counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--sp-3); counter-increment: s; }
.next-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--c-yellow); color: var(--c-ink); font-family: var(--font-mono); font-weight: 700; }
.next-steps strong { display: block; }
.next-steps span { color: var(--fg-muted); font-size: var(--fs-small); }

/* ---------- 404 / licenze ---------------------------------------------------------------------------- */
.notfound { min-height: 78svh; display: grid; align-content: center; gap: var(--sp-5); padding-top: calc(var(--nav-h) + var(--sp-7)); }
.notfound_code { font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: clamp(6rem, 3rem + 16vw, 15rem); line-height: 0.8; letter-spacing: -0.01em; }
.notfound_code span { color: var(--c-yellow); -webkit-text-stroke: 2px var(--c-ink); }
.license-list { display: grid; gap: 0; margin-top: var(--sp-6); }
.license-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: var(--sp-4); padding-block: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.license-row a { text-decoration: underline; text-underline-offset: 3px; }
.license-row a:hover { background: var(--c-yellow); }

/* ---------- Responsive pagine interne ------------------------------------------------------------------- */
@media (max-width: 991px) {
  .includes, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .squads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-wrap, .service-row, .fleet, .contact, .project-intro, .estimate-page { grid-template-columns: 1fr; }
  .timeline-wrap_aside, .aside-card { position: relative; top: 0; }
  .service-row.is-reverse .service-row_media { order: 0; }
  .certs { grid-template-columns: 1fr; }
  .next-project { grid-template-columns: 1fr; }
  .next-project_text { padding: var(--sp-5); }
}
@media (max-width: 767px) {
  .includes, .values, .squads, .fleet_stats { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; gap: var(--sp-2); }
  .license-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .kv_row { grid-template-columns: 1fr; gap: 0.25rem; }
  .contact_card, .contact_form { padding: var(--sp-5); }
  .hero.is-page .hero_frame { min-height: 0; }
}

.services_grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .services_grid.is-three { grid-template-columns: 1fr; } }

/* Arrivo da una transizione: la pagina nasce gialla, senza lampi di contenuto */
html.is-arriving::before { content: ""; position: fixed; inset: 0; z-index: 1999; background: var(--c-yellow); }

/* ---------- Come lavoriamo: card semplici a griglia ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-8); }
.step-card { display: grid; align-content: space-between; gap: var(--sp-7); min-height: 18rem; padding: var(--sp-5); background: var(--bg-raised); }
.step-card_num { display: inline-block; justify-self: start; padding: 0.2rem 0.5rem; background: var(--c-yellow); color: var(--c-ink); }
.step-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.step-card p { color: var(--fg-muted); }
.step-card_tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (max-width: 991px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .steps-grid { grid-template-columns: 1fr; } .step-card { min-height: 0; gap: var(--sp-5); } }

.footer_cta-title { font-size: clamp(2.25rem, 1rem + 3.6vw, 4rem); line-height: 0.95; }

/* ---------- Mobile: meno dettagli, box giallo che esce dal banner, tabella impilata ---------- */
@media (max-width: 767px) {
  .hero .hero_lead { display: none; }
  .hero { padding-bottom: calc(var(--hero-gap) + 3.5rem); }
  .hero_frame { overflow: visible; clip-path: none; }
  .hero_media { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
  .hero_content { padding-bottom: 0; gap: var(--sp-6); }
  .hero_card { position: relative; top: 3.5rem; margin-bottom: 0; }
  .data-table { min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td, .data-table caption { display: block; width: 100%; }
  .data-table tr { padding-block: var(--sp-5); border-top: 1px solid var(--line); }
  .data-table tr:hover { background: none; }
  .data-table tbody th, .data-table td { border: 0; padding: 0 0 var(--sp-3); }
  .data-table td::before { content: attr(data-label); display: block; margin-bottom: 0.15rem; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); }
  .data-table td:last-child { padding-bottom: 0; }
}
