@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
src:url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2");
unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
src:url("/assets/fonts/archivo-latin-ext-wdth.woff2") format("woff2");
unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* BFL Studio: progettazione apparecchi di illuminazione.
   Layout: griglia asimmetrica allineata a sinistra; un solo elemento forte (la curva fotometrica polare in apertura),
   tutto il resto tipografico e disciplinato. Palette: inchiostro e oro del brand BFLSTUDIO su carta calda quadrettata; in apertura l'apparecchio
   "acceso nel buio": fascia antracite con la curva fotometrica e un alone di luce. */
:root {
  --paper: #fbf8f2;
  --sheet: #ffffff;
  --paper-2: #f3ede1;
  --tint: rgba(238, 226, 203, 0.5);
  --grid-fine: rgba(140, 100, 30, 0.045);
  --grid-major: rgba(140, 100, 30, 0.095);
  --ink: #1a1a1a;
  --muted: #675d4e;
  /* Righe strutturali (separatori, tabelle, liste): nettamente più scure della quadrettatura */
  --rule: #8f8170;
  --gold: #c8921a;
  --gold-ink: #865c0a;
  --wash: #fdf3dc;
  --band-bg: #1a1a1a;
  --band-fg: #f6f1e7;
  --band-muted: #bdb3a2;
  --btn-on-gold: #1a1a1a;
  --night: #17181b;
  --night-fg: #f3eee4;
  --night-muted: #a9a294;
  --night-line: rgba(255, 255, 255, 0.14);
  --lamp: #ffc533;
  --ok: #2f6b3a;
  --err: #b23a2b;

  --f: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --measure: 66ch;
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-b: 1.0625rem;
  --t-l: 1.25rem;
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --t-h1: clamp(2.25rem, 1.1rem + 3.9vw, 4rem);
  --sec: clamp(3.5rem, 2rem + 6vw, 6.5rem);
}
/* Il sito resta sempre chiaro, anche se il dispositivo è in modalità scura */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Carta quadrettata da disegno: maglia fine 12px, maglia principale 60px */
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-b);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--sheet);
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  /* Barra bianca pura: il logo mantiene esattamente i suoi colori originali */
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 52px; width: auto; }
@media (max-width: 520px) { .brand img { height: 42px; } }
.wordmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark span { color: var(--gold-ink); }
.nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a { text-decoration: none; font-size: var(--t-s); font-weight: 500; padding-block: 0.35rem; display: inline-block; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
/* Cambio lingua: pillola arrotondata con globo, distinta dal pulsante Contatti */
.site-head .lang {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 2px solid var(--gold); border-radius: 999px;
  background: var(--wash); color: var(--ink);
  font-size: var(--t-s); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.site-head .lang:hover { background: var(--gold); color: var(--night); text-decoration: none; }
.lang-ico { width: 1.15em; height: 1.15em; flex: none; }
.head-tools { display: flex; align-items: center; gap: 0.6rem; }
.site-head .lang-mob { display: none; }
.btn-contact {
  border: 1px solid var(--ink);
  padding: 0.45rem 0.9rem !important;
  border-radius: 2px;
}
.btn-contact:hover { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); color: var(--ink);
  font: inherit; font-size: var(--t-s); font-weight: 600;
  padding: 0.45rem 0.8rem; border-radius: 2px; cursor: pointer;
}
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1.25rem max(16px, env(safe-area-inset-left, 0px));
    flex-direction: column; align-items: stretch;
  }
  .js .nav.open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a { display: block; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); font-size: var(--t-b); }
  .js .nav .btn-contact { text-align: center; margin-top: 0.75rem; }
  .js .site-head .lang-mob { display: inline-flex; }
  .js .nav .lang { display: none; }
  .head-row { position: static; }
  .site-head { position: sticky; }
  .no-js-wrap .nav { flex-wrap: wrap; }
}

/* ---------- Type ---------- */
.h1 {
  font-size: var(--t-h1);
  font-stretch: 122%;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.02;
}
.h2 { font-size: var(--t-h2); font-stretch: 116%; font-weight: 750; letter-spacing: -0.005em; }
.h3 { font-size: var(--t-h3); font-stretch: 108%; font-weight: 700; line-height: 1.2; }
.lead { font-size: var(--t-l); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-s); }
.xs { font-size: var(--t-xs); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.btn {
  display: inline-block;
  font: inherit; font-weight: 650; font-size: var(--t-b);
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--btn-on-gold); }
.btn-gold:hover { background: transparent; color: var(--band-fg); }
.link-strong { font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
/* Link al profilo LinkedIn con il marchio "in" */
.li-link { display: inline-flex; align-items: center; gap: 0.45em; }
.li-ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--tint); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); max-width: 60rem; }
.sec-head p { color: var(--muted); max-width: var(--measure); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.6rem; min-width: 0; }
.hero-text .lead { color: var(--ink); opacity: 0.86; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure figcaption { margin-top: 0.5rem; font-size: var(--t-xs); color: var(--muted); max-width: 40ch; }

/* Apertura "luce nel buio": fascia antracite con quadrettatura chiara, l'apparecchio si accende */
.hero {
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
  color: var(--night-fg);
}
.hero .h1 { color: #ffffff; }
.hero .hero-text .lead { color: #ebe5da; opacity: 1; }
.hero .facts { border-top-color: rgba(255, 255, 255, 0.18); }
.hero .facts li { color: var(--night-muted); }
.hero .facts strong { color: #ffffff; }
.hero .btn { background: var(--gold); border-color: var(--gold); color: var(--night); }
.hero .btn:hover { background: transparent; color: #ffffff; }
.hero .link-strong { color: #ffffff; }
.hero :focus-visible { outline-color: var(--lamp); }
.hero .legend, .hero .hero-figure figcaption { color: var(--night-muted); }
.hero .legend .l0::before { border-top-color: var(--lamp); }
.hero .legend .l90::before { border-top-color: var(--night-fg); }
/* Alone di luce attorno alla sorgente */
.hero-figure { position: relative; isolation: isolate; }
.hero-figure::before {
  content: ""; position: absolute; inset: -22% -18% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 54%, rgba(255, 190, 40, 0.55) 0, rgba(255, 190, 40, 0.18) 28%, rgba(255, 190, 40, 0) 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-figure::before { animation: accendi 1.4s ease-out 1.5s both; }
}
@keyframes accendi { from { opacity: 0; } to { opacity: 1; } }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.facts li { list-style: none; font-size: var(--t-s); color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 420px; }
}

/* Polar diagram */
.polar { display: block; width: 100%; height: auto; overflow: visible; }
/* Il diagramma poggia su un disco pieno, così la quadrettatura della pagina non lo attraversa */
.polar .plate { fill: rgba(255, 255, 255, 0.03); }
.polar .grid { stroke: var(--night-line); fill: none; stroke-width: 1; }
.polar .grid.outer { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.5; }
.polar .axis { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.polar .lbl { fill: #ebe5da; font-family: var(--f); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.polar .lbl-scale { fill: #9d968a; font-family: var(--f); font-size: 11px; }
.polar .c0 { fill: none; stroke: var(--lamp); stroke-width: 4.5; stroke-linejoin: round; }
.polar .c90 { fill: none; stroke: var(--night-fg); stroke-width: 2.25; stroke-dasharray: 7 5; stroke-linejoin: round; }
.polar .fill0 { fill: var(--gold); opacity: 0.35; }
.polar .src { fill: #fff6cc; }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.4rem; font-size: var(--t-xs); color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 0.45rem; }
.legend .l0::before { border-top: 4px solid var(--gold); }
.legend .l90::before { border-top: 2px dashed var(--ink); }
.legend em { font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .polar .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.9s cubic-bezier(.45,.05,.25,1) 0.25s forwards; }
  .polar .c90 { animation: glow90 0.8s ease-out 0.9s both; }
  .polar .fill0 { animation: glow 1.2s ease-out 1.6s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { from { opacity: 0; } to { opacity: 0.35; } }
@keyframes glow90 { from { opacity: 0.15; } to { opacity: 1; } }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps li { position: relative; padding-top: 2.1rem; min-width: 0; }
.steps li::before {
  content: ""; position: absolute; top: 0.45rem; left: 0; right: -1.5rem;
  border-top: 1px solid var(--rule);
}
.steps li:last-child::before { right: 0; }
.steps li::after {
  content: ""; position: absolute; top: 0.1rem; left: 0;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--gold);
}
.step-n { display: block; font-stretch: 125%; font-weight: 800; font-size: var(--t-s); color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-bottom: 0.35rem; }
.steps h3 { font-size: 1.0625rem; font-stretch: 108%; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.25; }
.steps p { font-size: var(--t-s); color: var(--muted); }
.steps-note { margin-top: 2rem; font-weight: 600; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 0 0 1.75rem 2rem; }
  .steps li::before { top: 0.75rem; bottom: 0; left: 0.33rem; right: auto; border-top: 0; border-left: 1px solid var(--rule); }
  .steps li:last-child::before { display: none; }
  .steps li::after { top: 0.3rem; }
}

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.svc { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(0rem, 2vw, 2rem) clamp(1.75rem, 1rem + 1.5vw, 2.5rem) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.svc:nth-child(2n) { padding-left: clamp(1.25rem, 2vw, 2rem); border-left: 1px solid var(--rule); padding-right: 0; }
/* Con un numero dispari di servizi l'ultimo occupa tutta la larghezza */
.svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc p { color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc:nth-child(2n) { padding-left: 0; padding-right: 0; border-left: 0; }
}
.refs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.refs li {
  font-size: var(--t-xs); font-weight: 550; font-variant-numeric: tabular-nums;
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.15rem 0.5rem; white-space: nowrap;
}

/* ---------- Competences ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.col { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.col .h3 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold); }
.ticks { list-style: none; display: grid; gap: 0.45rem; }
.ticks li { padding-left: 1.1rem; position: relative; }
.ticks li::before { content: "›"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 800; }
.cad { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; background: var(--wash); border-radius: 2px; display: grid; gap: 0.35rem; }
.cad p { max-width: var(--measure); }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }
.case { border-top: 1px solid var(--ink); padding-top: 1.1rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.case .kind { font-size: var(--t-xs); font-weight: 650; color: var(--gold-ink); }
.case p { color: var(--muted); font-size: var(--t-s); }
.note { margin-top: 1.75rem; font-size: var(--t-s); color: var(--muted); }
/* Schermata di un software sviluppato in studio */
.shot { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); box-shadow: 0 18px 40px -24px rgba(26, 26, 26, 0.45); }
.shot figcaption { margin-top: 0.8rem; font-size: var(--t-s); color: var(--muted); max-width: 70ch; }

/* ---------- Engagement ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.mode { padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.mode + .mode { border-left: 1px solid var(--rule); }
.mode p { color: var(--muted); font-size: var(--t-s); }
@media (max-width: 860px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode + .mode { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- CTA band ---------- */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.band p { color: var(--band-muted); max-width: 54ch; margin-top: 0.9rem; }
.band a:not(.btn) { color: var(--band-fg); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-head .h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem); max-width: 22ch; }
.page-head .lead { margin-top: 1.25rem; }
/* Pagina Studio: marchio con la lampadina accanto alla presentazione */
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
/* Ritratto nella pagina Studio: poggia sulla riga che chiude l'intestazione, con un alone di luce calda */
.page-head-grid { align-items: end; }
.page-portrait {
  position: relative; isolation: isolate; margin: 0;
  width: clamp(192px, 24vw, 320px);
  margin-bottom: calc(-1 * clamp(2rem, 1.5rem + 2vw, 3rem));
}
.page-portrait::before {
  content: ""; position: absolute; inset: 4% -12% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 196, 40, 0.42) 0, rgba(255, 196, 40, 0.14) 38%, rgba(255, 196, 40, 0) 66%);
}
.page-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .page-portrait { width: min(62%, 256px); justify-self: center; }
}
.crumb { font-size: var(--t-xs); color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); }
.two + .two { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.two > * { min-width: 0; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.prose { display: grid; gap: 1rem; max-width: var(--measure); }
.prose p { color: var(--ink); }
.types { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); max-width: 46rem; }
.types li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-weight: 550; }
.types li:nth-child(odd) { padding-right: 1rem; }
/* Schizzi delle tipologie: il bianco dei disegni si fonde con la carta */
.sketches { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.sketches li { text-align: center; }
.sketches img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.sketches span { display: block; margin-top: 0.35rem; font-size: var(--t-s); font-weight: 600; }
.sketch-note { margin-top: 1.25rem; font-size: var(--t-s); color: var(--muted); }
@media (max-width: 720px) { .sketches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .types { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; max-width: 100%; }
table.reftab { border-collapse: collapse; width: 100%; min-width: 520px; font-size: var(--t-s); }
.reftab th, .reftab td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.reftab th { font-weight: 650; border-bottom: 1px solid var(--ink); font-size: var(--t-xs); color: var(--muted); }
.reftab td:first-child { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.callout { border-left: 3px solid var(--gold); padding: 0.25rem 0 0.25rem 1.1rem; color: var(--muted); max-width: var(--measure); }
.svc-index { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.svc-index li { border-bottom: 1px solid var(--rule); }
.svc-index a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; padding: 1.5rem 0; text-decoration: none; }
.svc-index a:hover .h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.svc-index p { color: var(--muted); }
@media (max-width: 720px) { .svc-index a { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; } }

/* ---------- Case detail ---------- */
.case-full { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.case-full:first-of-type { border-top: 1px solid var(--ink); }
.case-full > * { min-width: 0; }
.case-full dl { margin: 0; display: grid; gap: 1rem; max-width: var(--measure); }
.case-full dt { font-size: var(--t-xs); font-weight: 650; color: var(--gold-ink); }
.case-full dd { margin: 0.2rem 0 0; }
@media (max-width: 820px) { .case-full { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 650; font-size: var(--t-l); font-stretch: 104%; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--gold-ink), var(--gold-ink)) center / 14px 2px no-repeat; }
.faq .ans { padding: 0 0 1.4rem; color: var(--muted); max-width: var(--measure); display: grid; gap: 0.75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: var(--t-s); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-b); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
/* Bordo di selezione dei campi in oro scuro: contrasto 5,6:1, ben visibile anche da tastiera */
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-ink); outline-offset: 0; border-color: var(--gold-ink); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-s); color: var(--muted); }
.check input { margin-top: 0.3rem; width: 1rem; height: 1rem; accent-color: var(--gold); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--t-s); font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.direct { display: grid; gap: 1.5rem; align-content: start; }
.direct dl { margin: 0; display: grid; gap: 1rem; }
.direct dt { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.direct dd { margin: 0.15rem 0 0; font-weight: 650; font-size: var(--t-l); overflow-wrap: anywhere; }
.direct dd a { text-decoration: none; }
.direct dd a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.panel { background: var(--paper-2); padding: 1.4rem 1.5rem; border-radius: 2px; display: grid; gap: 0.6rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--sheet); border-top: 1px solid var(--ink); padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; font-size: var(--t-s); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 2rem; }
.foot-grid h2 { font-size: var(--t-xs); font-weight: 650; color: var(--muted); margin-bottom: 0.75rem; font-stretch: 100%; }
.foot-grid ul { list-style: none; display: grid; gap: 0.4rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-brand img { display: block; height: 64px; width: auto; }
.foot-brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: var(--t-xs); }
.foot-legal a { color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Misc ---------- */
.notfound { padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.25rem; }
.preview-flag { background: var(--wash); color: var(--ink); font-size: var(--t-xs); text-align: center; padding: 0.4rem 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
