/* =========================================================
   ALSA Ingegneria — Prototipo sito istituzionale
   Sistema visivo: tipografia tecnica, palette sobria,
   griglie ordinate, micro-interazioni minime.
   ========================================================= */

/* -----------------------------
   1. Tokens & reset
   ----------------------------- */
:root {
  /* Palette istituzionale */
  --navy-900: #0B1730;
  --navy-800: #0E1B33;
  --navy-700: #1A2A4A;
  --ink:      #14181F;
  --graphite: #2A2F38;
  --stone-700:#4F4E48;
  --stone-500:#7B7A72;
  --stone-300:#B6B2A6;
  --stone-200:#D9D6CC;
  --stone-150:#E6E3DA;
  --stone-100:#EFECE3;
  --paper:    #F4F2EC;
  --white:    #FBFAF6;
  --black:    #000000;

  /* Accento tecnico — BIM / innovazione */
  --petrol:    oklch(0.52 0.07 195);
  --petrol-tint: oklch(0.92 0.025 195);
  --petrol-dark: oklch(0.38 0.07 195);

  /* Stato */
  --line: rgba(20, 24, 31, 0.12);
  --line-strong: rgba(20, 24, 31, 0.22);
  --focus: oklch(0.62 0.13 220);

  /* Tipografia */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-garet: 'Garet', sans-serif;
  --font-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spaziature & layout */
  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(36px, 9vw, 70px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-garet);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button { font: inherit; cursor: pointer; }

p { text-wrap: pretty; }

/* -----------------------------
   2. Tipografia
   ----------------------------- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1, h2 {
  font-family: var(--font-helvetica);
}
h3, h4 {
  font-family: var(--font-garet);
}

.t-display {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.t-h1 { font-size: clamp(34px, 4vw, 60px); font-weight: 450; letter-spacing: -0.02em; }
.t-h2 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.015em; }
.t-h3 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.t-h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--stone-700);
  max-width: 62ch;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.mono--ink { color: var(--ink); }
.mono--light { color: var(--stone-300); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--stone-300);
}

/* -----------------------------
   3. Layout primitives
   ----------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.section--dark {
  background: var(--navy-800);
  color: var(--stone-100);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,0.72); }
.section--dark .mono { color: rgba(255,255,255,0.55); }

.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--stone { background: var(--stone-100); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 920px;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: end;
  }
  .section-head__meta { padding-top: 4px; }
}

.section-head__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone-500);
}

/* -----------------------------
   4. Header / Navbar
   ----------------------------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand__mark {
  font-weight: 600;
  letter-spacing: 0;
}
.brand__suffix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-500);
  position: relative;
  top: -1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--graphite);
  position: relative;
  border-radius: var(--radius);
}
.nav__link:hover { color: var(--navy-800); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--navy-800);
}
.nav__cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.4px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span {
  top: 50%; transform: translate(-50%, -50%);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad-x) 28px;
    gap: 0;
  }
  .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav__cta { margin: 18px 0 0; align-self: flex-start; }
}

/* -----------------------------
   5. Buttons & links
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { 
  background: var(--black);
}
.btn--white {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--stone-100);
  border-color: var(--stone-100);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--on-dark.btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--on-dark.btn--ghost:hover { border-color: var(--white); }

.btn--sm { padding: 10px 16px; font-size: 13.5px; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.linkmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.linkmore:hover { color: var(--petrol-dark); }

.section--dark .linkmore { color: var(--white); }

/* -----------------------------
   6. Hero
   ----------------------------- */
.hero {
  position: relative;
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__rail {
  position: absolute;
  top: 28px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  display: none;
}
.hero__rail .mono { font-size: 11px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: end;
  margin-top: 28px;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.55fr 0.45fr; gap: 64px; }
}

.hero__head .eyebrow { margin-bottom: 28px; }
.hero__headline {
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 28px;
  font-family: var(--font-helvetica);
}
.hero__headline em {
  font-style: normal;
  color: var(--petrol-dark);
  font-feature-settings: "ss01";
}

.hero__sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--stone-700);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta .meta-num {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
}
.hero__meta .meta-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-top: 6px;
  display: block;
}

/* Placeholder visivi tecnici (no SVG decorativi) */
.ph {
  position: relative;
  background: var(--stone-150);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.ph::before {
  /* content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(11, 23, 48, 0.06) 0 8px,
      transparent 8px 18px);
  z-index: 0; */
}
.ph__label {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone-700);
  background: rgba(244,242,236,0.85);
  padding: 8px 10px;
  border: 1px solid var(--line);
}
.ph__corner {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone-700);
  background: rgba(244,242,236,0.85);
  padding: 6px 10px;
  border: 1px solid var(--line);
  display: none;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--strip { aspect-ratio: 3 / 1; }

.ph--dark { background: var(--navy-700); border-color: rgba(255,255,255,0.1); }
.ph--dark::before { background:
  repeating-linear-gradient(135deg,
    rgba(255,255,255,0.06) 0 8px,
    transparent 8px 18px);
}
.ph--dark .ph__label, .ph--dark .ph__corner {
  background: rgba(11, 23, 48, 0.65);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.12);
}

/* -----------------------------
   7. Intro / Pillars
   ----------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  margin-bottom: 28px;
  display: block;
}
.pillar__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.pillar__desc {
  font-size: 14.5px;
  color: var(--stone-700);
  margin: 0;
}

/* -----------------------------
   8. Numeri / credibilità
   ----------------------------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.kpi {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.kpi:last-child { border-right: 0; }
.kpi__num {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  font-feature-settings: "tnum" 1;
}
.kpi__num sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 4px;
  color: var(--petrol-tint);
  font-weight: 400;
}
.kpi__lbl {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* -----------------------------
   9. Competenze — card grid
   ----------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  /* background: var(--line); */
  /* border: 1px solid var(--line); */
  border: 1px solid transparent;
}
.card {
  background: var(--white);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background .22s ease;
  position: relative;
}
.card:hover { background: var(--paper); }
.card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone-500);
  letter-spacing: 0.08em;
}
.card__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.card__desc {
  font-size: 14.5px;
  color: var(--stone-700);
  margin: 0;
  flex: 1;
}
.card__foot {
  display: flex;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card__tag {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone-500);
  letter-spacing: 0.06em;
}
.card__foot .arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--navy-800);
  transition: transform .2s ease, color .2s ease;
}
.card:hover .card__foot .arrow {
  transform: translateX(3px);
  color: var(--petrol-dark);
}
/* Card immagine nella griglia competenze */
.card--image {
  padding: 0;
  min-height: 280px;
  overflow: hidden;
}
.card--image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}


/* -----------------------------
   10. Metodo — process bar
   ----------------------------- */
.process {
  margin-top: 24px;
}
.process__bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process__bar--wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.process__bar--wrap .process__step {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.process__bar--wrap .process__step:nth-child(5n) { border-right: 0; }
.process__bar--wrap .process__step:nth-child(5n+1) { border-right: 1px solid var(--line); }
.process__step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process__step:last-child { border-right: 0; }
.process__step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  display: block;
  margin-bottom: 22px;
}
.process__step__title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.process__step__desc {
  font-size: 13.5px;
  color: var(--stone-700);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .process__bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .process__step:nth-child(2n) { border-right: 0; }
  .process__step { border-bottom: 1px solid var(--line); }
  .process__step:nth-last-child(-n+2) { border-bottom: 0; }

  .process__bar--wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .process__bar--wrap .process__step:nth-child(5n) { border-right: 1px solid var(--line); }
  .process__bar--wrap .process__step:nth-child(2n) { border-right: 0; }
}

.process__msg {
  margin-top: 40px;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 28ch;
  color: var(--ink);
}
.process__msg em {
  font-style: normal;
  color: var(--petrol-dark);
}

/* -----------------------------
   11. BIM focus
   ----------------------------- */
.bim {
  position: relative;
  background: var(--navy-800);
  color: var(--stone-100);
}
.bim::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(31, 111, 110, 0.22), transparent 60%);
  pointer-events: none;
}
.bim__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
}
@media (min-width: 980px) {
  .bim__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
}
.bim__head .eyebrow { color: var(--petrol-tint); }
.bim__head .eyebrow::before { background: var(--petrol); }
.bim__title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  margin: 24px 0 24px;
}
.bim__title em { font-style: normal; color: var(--petrol-tint); }
.bim__lead {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin: 0 0 32px;
}

.bim__feats {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.bim__feats li {
  padding: 14px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bim__feats li::before {
  content: "·";
  color: var(--petrol-tint);
  font-weight: 700;
  font-size: 18px;
  line-height: 0;
}

.bim__norm {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.bim__norm strong { color: var(--white); font-weight: 500; letter-spacing: 0.04em; }

/* -----------------------------
   12. Progetti / Esperienze
   ----------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.project {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project__visual { position: relative; }
.project__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.project__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}
.project__note {
  font-size: 13px;
  color: var(--stone-500);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project__note::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stone-300);
}

/* -----------------------------
   13. Team
   ----------------------------- */
.team-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.team-featured__row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 720px) {
  .team-featured__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.team-featured__figure { margin: 0; position: relative; overflow: hidden; }
.team-featured__figure img { width: 100%; height: auto; display: block; }
.team-featured__figure.ph { aspect-ratio: 3/4; width: 100%; }

.team-featured__body { display: flex; flex-direction: column; gap: 18px; }

.team-featured__ruolo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  margin: 0;
}
.team-featured__nome {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.team-featured__bio {
  font-size: 15px;
  color: var(--stone-700);
  line-height: 1.6;
  max-width: 68ch;
}
.team-featured__bio p { margin: 0 0 14px; }
.team-featured__bio p:last-child { margin-bottom: 0; }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.member {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member__role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  margin: 0;
}
.member__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.team__cta {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}
.team-featured__figure { position: relative; }

.team-featured__overlay-mobile { display: none; }

@media (max-width: 720px) {
  .team-featured__overlay-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100px;
    padding: 16px 18px;
    color: var(--white);
  }
   .team-featured__figure {
    position: relative;
    overflow: hidden;
  }

  .team-featured__figure::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(14, 27, 51, 0.82), transparent);
    transition: height .3s ease;
    pointer-events: none;
    z-index: 1;
  }

  .team-featured__figure:hover::after,
  .team-featured__figure:active::after,
  .team-featured__figure:focus-within::after {
    height: 100%;
  }
  
  .team-featured__overlay-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100px;
    padding: 16px 18px;
    color: var(--white);
    background: none;
    z-index: 2;
  }
  .team-featured__overlay-ruolo {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .team-featured__overlay-nome {
    font-size: 16px;
    font-weight: 500;
  }
  /* Su mobile nome/ruolo sono già nell'overlay: nascondi i duplicati nel testo */
  .team-featured__body .team-featured__ruolo,
  .team-featured__body .team-featured__nome {
    display: none;
  }
  .team-featured__figure {
    cursor: pointer;
  }

  .team-featured__figure.is-expanded::after {
    height: 100%;
  }
}
/* -----------------------------
   14. Certificazioni
   ----------------------------- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}
.cert {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cert:last-child { border-right: 0; }
.cert__badge {
  width: 100%;
  height: 56px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
}

/* Immagine certificazione (sostituisce il badge testo se caricata) */
.cert__img {
  margin: 0;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Gallery loghi enti certificatori */
.cert-loghi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cert-loghi__item {
  margin: 0;
  display: flex;
  align-items: center;
}
.cert-loghi__item img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter .2s ease, opacity .2s ease;
}
.cert-loghi__item img:hover {
  filter: grayscale(0);
  opacity: 1;
}
.cert__title {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.cert__desc {
  font-size: 13px;
  color: var(--stone-700);
  margin: 0;
}

@media (max-width: 720px) {
  .certs { grid-template-columns: repeat(2, 1fr); }
  .cert { border-bottom: 1px solid var(--line); }
  .cert:nth-child(2n) { border-right: 0; }
}

/* -----------------------------
   15. Careers / Lavora con noi
   ----------------------------- */
.careers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--white);
}
@media (min-width: 820px) {
  .careers { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}
.careers__title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
}

/* -----------------------------
   16. CTA finale
   ----------------------------- */
.endcta {
  background: var(--navy-800);
  color: var(--white);
  padding: clamp(56px, 8vw, 120px) var(--pad-x);
}
.endcta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 820px) {
  .endcta__inner { grid-template-columns: 1.4fr auto; gap: 56px; }
}
.endcta__title {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  max-width: 22ch;
  margin: 0;
}

/* -----------------------------
   17. Tabs (Competenze details)
   ----------------------------- */
.tabs {
  margin-top: 56px;
}
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.tabs__btn {
  background: transparent;
  border: 0;
  padding: 18px 0;
  margin-right: 28px;
  font-family: var(--font-garet);
  font-size: 14.5px;
  color: var(--stone-500);
  letter-spacing: -0.005em;
  position: relative;
  cursor: pointer;
  transition: color .18s ease;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
}
.tabs__btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--navy-800);
}

.tabs__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 48px;
}
.tabs__panel.is-active { display: grid; }
@media (min-width: 900px) {
  .tabs__panel { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
}

.tabs__panel-body h3 {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 450;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

/* ── Tabs → Slider su mobile ── */
@media (max-width: 760px) {
  /* Nasconde la nav orizzontale */
  .tabs__nav { display: none; }

  /* Tutti i pannelli nascosti, solo is-active visibile */
  .tabs__panel { display: none; grid-template-columns: 1fr; }
  .tabs__panel.is-active { display: grid; }

  /* Controlli slider: prev/next + paginazione */
  .tabs__slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }
  .tabs__slider-btn {
    background: none;
    border: 1px solid var(--line-strong);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    border-radius: var(--radius);
    transition: border-color .18s ease;
    flex-shrink: 0;
  }
  .tabs__slider-btn:hover { border-color: var(--ink); }
  .tabs__slider-btn:disabled { opacity: 0.3; cursor: default; }

  .tabs__slider-label {
    font-family: var(--font-garet);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    flex: 1;
    padding: 0 12px;
  }
  .tabs__slider-pag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--stone-500);
    letter-spacing: 0.08em;
    display: block;
    margin-top: 2px;
  }
}

/* Su desktop i controlli slider non esistono */
@media (min-width: 761px) {
  .tabs__slider-controls { display: none; }
}
.tabs__panel-body p {
  color: var(--stone-700);
  margin: 0 0 24px;
  max-width: 58ch;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.checklist li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--graphite);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.checklist li::before {
  content: "→";
  color: var(--stone-300);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 600px) {
  .checklist { grid-template-columns: 1fr; }
}

/* -----------------------------
   18. Contatti
   ----------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row__lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  padding-top: 3px;
}
.info-row__val { font-size: 15px; color: var(--ink); }
.info-row__val a:hover { color: var(--petrol-dark); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .18s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 140px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--stone-700);
}
.consent input { margin-top: 4px; }

.map-ph {
  margin-top: 24px;
  aspect-ratio: 16 / 7;
  position: relative;
  background: var(--stone-100);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-ph--embed { height: 240px; }
.map-ph--embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
  pointer-events: none;
}
.map-ph__pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.map-ph__dot {
  width: 14px; height: 14px;
  background: var(--navy-800);
  border-radius: 50%;
  position: relative;
}
.map-ph__dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--navy-800);
  border-radius: 50%;
  opacity: 0.4;
}
.map-ph__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--line);
}

/* -----------------------------
   19. Footer
   ----------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand img {
}
.footer__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 38ch;
  padding-top: 16px;
}

.footer__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer__legal a { color: inherit; }
.footer__legal a + a { margin-left: 18px; }

/* -----------------------------
   20. Utilities
   ----------------------------- */
.divider {
  height: 1px;
  background: var(--line);
  margin-block: 0;
  border: 0;
}

.text-petrol { color: var(--petrol-dark); }

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

/* -----------------------------
   21. Subhero (pagine interne)
   ----------------------------- */
.subhero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(48px, 6vw, 96px);
  position: relative;
}

.subhero__rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.subhero__rail .mono { font-size: 11px; }

/* Griglia: testo sx allineato in basso, foto dx altezza definita */
.subhero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
@media (min-width: 760px) {
  .subhero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }
}

/* Colonna sinistra — testo, nessun padding extra */
.subhero__body { display: flex; flex-direction: column; }

.subhero__eyebrow { margin-bottom: 22px; }
.subhero__title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0 0 22px;
}
.subhero__title em { font-style: normal; color: var(--petrol-dark); }
.subhero__lead {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
  color: var(--stone-700);
  max-width: 56ch;
  margin: 0;
}

/* Colonna destra — foto con altezza fissa, object-fit cover */
.subhero__visual {
  position: relative;
  height: 70vh;
  min-height: 280px;
  max-height: 680px;
  overflow: hidden;
}
.subhero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.subhero__visual .ph {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

@media (max-width: 759px) {
  .subhero__visual {
    height: 50vw;
    min-height: 200px;
    max-height: none;
  }
}

/* Variante dark (BIM) */
.subhero--dark {
  background: var(--navy-800);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.subhero--dark .subhero__lead { color: rgba(255,255,255,.75); }
.subhero--dark .breadcrumb,
.subhero--dark .breadcrumb a { color: rgba(255,255,255,.5); }
.subhero--dark .breadcrumb__current { color: var(--white); }
.subhero--dark .breadcrumb__sep { color: rgba(255,255,255,.25); }
.subhero--dark .mono { color: rgba(255,255,255,.55); }
.subhero--dark .eyebrow { color: var(--petrol-tint); }
.subhero--dark .eyebrow::before { background: var(--petrol); }
.subhero--dark .subhero__title { color: var(--white); }
.subhero--dark .subhero__title em { color: var(--petrol-tint); }

.subhero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(31,111,110,.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.subhero--dark .subhero__rail,
.subhero--dark .subhero__grid { position: relative; z-index: 1; }

/* -----------------------------
   22. Breadcrumb
   ----------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--stone-500); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--stone-300); }
.breadcrumb__current { color: var(--ink); }

/* -----------------------------
   23. TOC sticky (pagina competenze)
   ----------------------------- */
.with-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 980px) {
  .with-toc { grid-template-columns: 240px 1fr; gap: 80px; align-items: stretch; }
}

.toc-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

@media (max-width: 979px) {
  .toc-aside {
    position: sticky;
    top: var(--header-h, 86px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: none;
    overflow-y: visible;
    align-self: auto;
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x);
  }
  .toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-500);
  }
  .toc__toggle-icon {
    font-size: 16px;
    transition: transform .2s ease;
    line-height: 1;
  }
  .toc-aside.is-open .toc__toggle-icon {
    transform: rotate(180deg);
  }
  .toc-aside .toc {
    display: none;
    border-top: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .toc-aside.is-open .toc {
    display: flex;
  }
}

@media (min-width: 980px) {
  .toc__toggle { display: none; }
  .toc-aside .toc { display: flex !important; }
}

.toc {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.toc__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--stone-700);
  transition: color .18s ease, padding .18s ease, background-color .18s ease;
  position: relative;
}
.toc__item:hover { color: var(--ink); padding-left: 8px; }
.toc__item.is-active {
  color: var(--ink);
  font-weight: 500;
  padding-left: 8px;
}
.toc__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: var(--petrol-dark);
}
.toc__item.is-active .toc__num { color: var(--ink); }

.toc__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone-300);
  letter-spacing: 0.06em;
  transition: color .18s ease;
}
.toc__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone-500);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 0;
}
@media (max-width: 979px) {
  .toc__heading { display: none; }
}
/* -----------------------------
   24. Area block (competenze deep)
   ----------------------------- */
.area-block {
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: clamp(56px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.area-block:last-child { border-bottom: 0; }

.area-block__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.area-block__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone-500);
}
.area-block__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.area-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 880px) {
  .area-block__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.area-block__body p {
  color: var(--stone-700);
  margin: 0 0 22px;
  max-width: 56ch;
}

.kv-rows {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.kv-rows li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--graphite);
}
.kv-rows li > span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  padding-top: 2px;
}
@media (max-width: 540px) {
  .kv-rows li { grid-template-columns: 1fr; gap: 6px; }
}

/* -----------------------------
   25. Filters chips (progetti)
   ----------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-garet);
  font-size: 13px;
  color: var(--graphite);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.chip__count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* -----------------------------
   26. Project list (deep)
   ----------------------------- */
.proj-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.proj-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 820px) {
  .proj-row {
    grid-template-columns: 320px 1fr 220px;
    gap: 40px;
    align-items: center;
  }
}
.proj-row__visual { aspect-ratio: 16/10; }
.proj-row__body h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 8px 0 10px;
}
.proj-row__body p {
  margin: 0;
  color: var(--stone-700);
  font-size: 14.5px;
  max-width: 56ch;
}
.proj-row__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-row__meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.proj-row__meta dd {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink);
}

/* -----------------------------
   27. Two-col content
   ----------------------------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .twocol { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.twocol--asym {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .twocol--asym { grid-template-columns: 1.4fr 1fr; gap: 80px; }
}

.prose{
  text-align: justify;
}
.prose p {
  color: var(--stone-700);
  margin: 0 0 20px;
  max-width: 60ch;
}
.prose p strong { color: var(--ink); font-weight: 500; -webkit-text-stroke: 0.75px currentColor; }
.prose h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
}

/* -----------------------------
   28. BIM page specifics
   ----------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tool {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.tool__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.tool__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone-500);
  text-transform: uppercase;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.benefit {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.benefit__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  padding-top: 4px;
}
.benefit__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.benefit__desc {
  margin: 0;
  color: var(--stone-700);
  font-size: 14.5px;
  max-width: 60ch;
}

/* -----------------------------
   29. Studio page specifics — timeline
   ----------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tl-step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.tl-step__year {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: block;
  margin-bottom: 16px;
}
.tl-step__txt {
  font-size: 14px;
  color: var(--stone-700);
  margin: 0;
  line-height: 1.5;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.value {
  padding: 32px 0 32px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 32px;
}
.value__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
}
.value__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}
.value__desc {
  font-size: 14px;
  color: var(--stone-700);
  margin: 0;
  max-width: 36ch;
}

/* -----------------------------
   30. Project detail page
   ----------------------------- */
.proj-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.proj-hero__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  margin-top: 36px;
}
@media (min-width: 980px) {
  .proj-hero__head { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.proj-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.proj-hero__cat::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--petrol-dark);
}
.proj-hero__title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 22ch;
}
.proj-hero__lead {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--stone-700);
  max-width: 52ch;
  margin: 0;
}

.proj-hero__cover {
  margin-top: clamp(40px, 5vw, 64px);
}
.proj-hero__cover .ph { aspect-ratio: 21 / 9; }

.proj-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.proj-fact {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.proj-fact:last-child { border-right: 0; }
.proj-fact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proj-fact dd {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 720px) {
  .proj-fact { padding-left: 24px; border-left: 1px solid var(--line); }
  .proj-fact:nth-child(2n) { border-right: 0; }
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .gallery--2 { grid-template-columns: 1fr 1fr; }
  .gallery--3 { grid-template-columns: 2fr 1fr; }
  .gallery--3 .ph:first-child { aspect-ratio: 16/9; }
}
.gallery .ph { aspect-ratio: 4 / 3; }

.activities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.activities li {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activities li .mono { font-size: 11px; }
.activities li strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.activities li span:last-child {
  font-size: 13.5px;
  color: var(--stone-700);
}

.ptimeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: pt;
}
.ptimeline li {
  list-style: none;
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ptimeline li > span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.ptimeline li h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.ptimeline li p {
  margin: 0;
  color: var(--stone-700);
  font-size: 14px;
  max-width: 56ch;
}
.ptimeline li > span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone-500);
  text-align: right;
}
@media (max-width: 760px) {
  .ptimeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ptimeline li > span:last-child { text-align: left; }
}

.pull {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-block: clamp(40px, 5vw, 64px);
}
.pull blockquote {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 26ch;
}
.pull blockquote em { font-style: normal; color: var(--petrol-dark); }
.pull cite {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  font-style: normal;
}

.next-proj {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .next-proj { grid-template-columns: 1fr 1fr; }
}
.next-proj__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-proj__cell .mono { font-size: 11px; }
.next-proj__cell a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .18s ease, padding .18s ease;
}
.next-proj__cell a:hover { color: var(--petrol-dark); padding-inline: 4px; }
.next-proj__cell a .arrow { color: var(--stone-500); }

/* -----------------------------
   31. Brand tagline, lang switch, downloads, featured, insights
   ----------------------------- */
.tagline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin: 0 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 36ch;
}
.tagline::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink);
  display: inline-block;
}

.nav__lang {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-left: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.nav__lang button {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  cursor: pointer;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.nav__lang button + button { border-left: 1px solid var(--line); }
.nav__lang button:hover { color: var(--ink); }
.nav__lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 920px) {
  .nav__lang {
    margin: 16px 0 0;
    align-self: flex-start;
  }
}

.kpis--soft .kpi {
  padding: 40px 28px 36px;
}
.kpis--soft .kpi__num {
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.kpis--soft .kpi__num sup {
  font-size: 0.45em;
}
.kpis--soft .kpi__lbl {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
@media (min-width: 880px) {
  .featured { grid-template-columns: 1.4fr 1fr; }
}
.featured__visual {
  position: relative;
  min-height: 320px;
}
.featured__visual .ph {
  aspect-ratio: auto;
  height: 100%;
  border: 0;
}
.featured__body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.featured__head .mono { font-size: 11px; }
.featured__title {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 18px 0 16px;
  max-width: 18ch;
}
.featured__desc {
  font-size: 15px;
  color: var(--stone-700);
  margin: 0;
  max-width: 44ch;
}
.featured__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured__facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.featured__facts dd {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.insight {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background .22s ease;
}
.insight:hover { background: var(--paper); }
.insight__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
}
.insight__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0;
}
.insight__excerpt {
  font-size: 13.5px;
  color: var(--stone-700);
  margin: 0;
  flex: 1;
}
.insight__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.footer__grid--xl {
  grid-template-columns: 1.6fr repeat(4, 1fr);
}
@media (max-width: 1020px) {
  .footer__grid--xl { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .footer__grid--xl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid--xl { grid-template-columns: 1fr; }
}

.footer__doc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
}
.footer__doc:last-child { border-bottom: 0; }
.footer__doc .doc-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer__doc a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.footer__doc a::after {
  content: "↓";
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer__doc.is-soon a::after { content: "·"; }
.footer__doc.is-soon a { color: rgba(255,255,255,0.55); pointer-events: none; }
.footer__doc.is-soon .doc-meta { color: rgba(255,255,255,0.35); }

.footer__tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

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

/* ═══════════════════════════════════════════════════════════
   HOME · HERO VIDEO BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.alsa-page--home .hero { isolation: isolate; }

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(26, 42, 74, 0.35);
  pointer-events: none;
}

.hero--has-video > .container {
  position: relative;
  z-index: 2;
}

.hero--has-video .hero__headline em { color: var(--petrol-tint); }
.hero--has-video .hero__rail .mono          { color: rgba(255,255,255,0.45); }
.hero--has-video .eyebrow                   { color: rgba(255,255,255,0.75); }
.hero--has-video .eyebrow::before           { background: rgba(255,255,255,0.35); }
.hero--has-video .tagline                   { color: var(--white); border-color: rgba(255,255,255,0.2); }
.hero--has-video .tagline::before           { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .hero__video-bg { display: none; }
}

/* Gallery progetti — homepage */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.project-gallery__item:hover img { transform: scale(1.03); }

@media (max-width: 1100px) { .project-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .project-gallery { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────
   Team — lista resto dello staff
───────────────────────────────────────────────────────── */
.team-staff {
  padding-top: 40px;
}
.team-staff__heading {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 32px;
  text-align: center;
}

/* ── Staff card grid ── */
.team-staff__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.staff-card {
  position: relative;
  width: calc(25% - 18px);
  overflow: hidden;
  cursor: default;
}
@media (max-width: 900px) {
  .staff-card { width: calc(33.333% - 16px); }
}
@media (max-width: 600px) {
  .staff-card { width: calc(50% - 12px); }
}

/* Immagine — dimensioni naturali, nessun aspect-ratio forzato */
.staff-card__img {
  width: 100%;
  display: block;
  line-height: 0;
}
.staff-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder per chi non ha foto */
.staff-card__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--stone-150);
  border: 1px solid var(--line);
}

.staff-card__img {
  position: relative; /* se non già presente */
  overflow: hidden;
}

.staff-card__img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(14, 27, 51, 0.82), transparent);
  transition: height .3s ease;
  pointer-events: none;
}

.staff-card:hover .staff-card__img::after {
  height: 100%;
}

.staff-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 100px;
  padding: 14px 16px;
  /* niente più background qui: lo fornisce .staff-card__img::after sotto */
}

.staff-card__overlay .staff-card__nome {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.staff-card__overlay .staff-card__ruolo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

/* Info sotto la card — visibile solo quando non c'è foto */
.staff-card__info {
  display: none;
}
.staff-card:not(:has(.staff-card__img img)) .staff-card__info,
.staff-card:has(.staff-card__placeholder) .staff-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 0;
}
.staff-card__info .staff-card__nome {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.staff-card__info .staff-card__ruolo {
  font-size: 12px;
  color: var(--stone-500);
}

/* ─────────────────────────────────────────────────────────
   Gallery progetto — lightbox + batch layout
───────────────────────────────────────────────────────── */
.proj-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-gallery__item {
  margin: 0;
  overflow: hidden;
}
.proj-gallery__item a {
  display: block;
  position: relative;
  overflow: hidden;
}
.proj-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.proj-gallery__item a:hover img {
  transform: scale(1.03);
}

/* ─────────────────────────────────────────────────────────
   Nav active page indicator
───────────────────────────────────────────────────────── */
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy-800);
}

/* ─────────────────────────────────────────────────────────
   html.nav-open — topbar fixed quando menu aperto
───────────────────────────────────────────────────────── */
html.nav-open .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* ─────────────────────────────────────────────────────────
   Immagine inter-sezione (home e studio)
   Varianti: fullscreen | boxed | wide-fullscreen | wide-boxed
───────────────────────────────────────────────────────── */
.home-img {
  line-height: 0;
}

/* ── Fullscreen: tutta la larghezza, altezza contenuta ── */
.home-img--fullscreen {
  width: 100%;
}
.home-img--fullscreen img {
  width: 100%;
  height: clamp(280px, 40vw, 560px);
  object-fit: cover;
  display: block;
}

/* ── Boxed: nel container, altezza contenuta ── */
.home-img--boxed {
  max-width: var(--maxw);
  background: var(--white);
  margin: 0 auto;
  /* padding-inline: var(--pad-x); */
}
.home-img--boxed img {
  width: 100%;
  height: clamp(280px, 40vw, 560px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ── Wide Fullscreen: tutta la larghezza, alta, parallax ── */
.home-img--wide-fullscreen {
  width: 100%;
}
.home-img--wide-fullscreen .home-img__parallax {
  height: 40vh;
  background-image: var(--parallax-img);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ── Wide Boxed: nel container, alta, parallax ── */
.home-img--wide-boxed {
  max-width: var(--maxw);
  margin: 0 auto;
}
.home-img--wide-boxed .home-img__parallax {
  height: 40vh;
  background-image: var(--parallax-img);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  border-radius: var(--radius);
}

/* Fallback mobile: background-attachment:fixed non funziona
   correttamente su Safari iOS — si disabilita il parallax */
@media (max-width: 768px) {
  .home-img--wide-fullscreen .home-img__parallax,
  .home-img--wide-boxed .home-img__parallax {
    background-attachment: scroll;
    height: 40vh;
  }
}

/* Rispetto per chi preferisce animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
  .home-img--wide-fullscreen .home-img__parallax,
  .home-img--wide-boxed .home-img__parallax {
    background-attachment: scroll;
  }
}
/* ─────────────────────────────────────────────────────────
   FluentForms — override stile per allineamento design ALSA
───────────────────────────────────────────────────────── */

/* Wrapper generale */
.fluentform {
  font-family: var(--font-garet);
  font-size: 15px;
  color: var(--ink);
}

/* Label */
.fluentform .ff-el-form-control-label label,
.fluentform .ff-el-group label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}

/* Campi input, textarea, select */
.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform input[type="url"],
.fluentform input[type="date"],
.fluentform textarea,
.fluentform select {
  font-family: var(--font-garet);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .18s ease;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.fluentform .ff-el-form-control:focus,
.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus,
.fluentform input[type="tel"]:focus,
.fluentform input[type="number"]:focus,
.fluentform input[type="url"]:focus,
.fluentform input[type="date"]:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  border-color: var(--ink);
  box-shadow: none;
  outline: none;
}

/* Placeholder */
.fluentform input::placeholder,
.fluentform textarea::placeholder {
  color: var(--stone-300);
  font-family: var(--font-garet);
}

/* Textarea */
.fluentform textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
  border-radius: 0 !important;
}

/* Select — freccia custom */
.fluentform select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B7A72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Checkbox e radio */
.fluentform .ff-el-form-check-input,
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.fluentform .ff-el-form-check-label {
  font-size: 14px;
  color: var(--graphite);
  cursor: pointer;
}

/* Messaggi errore */
.fluentform .error,
.fluentform .ff-el-is-error .ff-el-form-control {
  border-color: #c0392b;
}
.fluentform .error-message,
.fluentform .ff-el-form-control + span.error {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #c0392b;
  margin-top: 4px;
  display: block;
}

/* Spaziatura tra campi */
.fluentform .ff-el-group {
  margin-bottom: 20px;
}

/* Bottone submit */
.fluentform .ff_submit_btn_wrapper button,
.fluentform button[type="submit"],
.fluentform input[type="submit"] {
  font-family: var(--font-garet) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--white) !important;
  background: var(--black) !important;
  border: 1px solid var(--black) !important;
  border-radius: var(--radius) !important;
  padding: 14px 22px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: background .18s ease, border-color .18s ease !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.fluentform .ff_submit_btn_wrapper button:hover,
.fluentform button[type="submit"]:hover,
.fluentform input[type="submit"]:hover {
  background: var(--graphite) !important;
  border-color: var(--graphite) !important;
}
.fluentform .ff_submit_btn_wrapper button:focus-visible,
.fluentform button[type="submit"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Messaggio di successo */
.fluentform .ff-message-success {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--stone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}

/* Step form progress bar */
.fluentform .ff-step-header {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.fluentform .ff-step-header .ff-step-bar .ff-step-item.active {
  background: var(--ink);
}
.fluentform .ff-step-header .ff-step-bar .ff-step-item {
  background: var(--stone-200);
}