/* luigimassari.com — vedi DESIGN.md */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin.woff2) format("woff2-variations");
  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 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext.woff2) format("woff2-variations");
  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;
}

:root {
  --carta: #F1F2EE;
  --carta-2: #E4E7E2;
  --inchiostro: #1C2733;
  --grafite: #2B3440;
  --grafite-2: #343E4B;
  --grigio: #56616B;
  --linea: #C6CCCA;
  --segnale: #C8261B;
  --segnale-scuro: #A31E15;
  --serigrafia: #E9ECE6;
  --serigrafia-2: #AEB6BB;
  --ambra: #F2A33A;

  --bg: var(--carta);
  --fg: var(--inchiostro);
  --muted: var(--grigio);
  --rule: var(--linea);
  --surface: var(--carta-2);

  --font: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118%;
  --narrow: 75%;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --content: 1180px;
  --gutter: 24px;
  --section: var(--s9);
  --shadow-panel: 0 1px 0 rgba(255,255,255,.07) inset, 0 18px 40px -24px rgba(28,39,51,.55);
}

.theme-dark {
  --bg: var(--inchiostro);
  --fg: var(--serigrafia);
  --muted: var(--serigrafia-2);
  --rule: #3F4A57;
  --surface: var(--grafite);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--segnale); }
.theme-dark a:hover { color: #FF6B5E; }
:focus-visible { outline: 3px solid var(--segnale); outline-offset: 3px; border-radius: 2px; }
.theme-dark :focus-visible { outline-color: var(--ambra); }

.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--fg); color: var(--bg); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { top: var(--s4); }

/* Tipografia */
.display {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  font-stretch: var(--wide);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-md { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; }
.display-shop { font-size: clamp(56px, 11vw, 150px); letter-spacing: -0.035em; line-height: .95; }
.h2 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; font-stretch: var(--wide); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: var(--s5); }
.h3 { font-size: 21px; font-weight: 700; font-stretch: 105%; line-height: 1.25; margin-bottom: var(--s2); }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; margin-top: var(--s5); }
.prose { max-width: 64ch; }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 22px;
  font: inherit; font-size: 16px; font-weight: 650; font-stretch: 108%;
  text-decoration: none; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--segnale); color: #fff; }
.btn-primary:hover { background: var(--segnale-scuro); color: #fff; }
.btn-secondary { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn-light { border-color: var(--serigrafia); color: var(--serigrafia); background: transparent; }
.btn-light:hover { background: var(--serigrafia); color: var(--inchiostro); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--s5); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-stretch: 122%; font-size: 19px; letter-spacing: -0.01em; text-decoration: none;
}
.wordmark:hover { color: inherit; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--segnale); box-shadow: 0 0 0 3px rgba(200,38,27,.18); flex: none; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { text-decoration: none; font-weight: 550; font-size: 16px; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--segnale); }
.nav .lang { font-stretch: var(--narrow); color: var(--muted); border: 1px solid var(--rule); padding: 4px 10px; border-radius: 2px; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero-text .lede { margin-top: var(--s5); }

/* Le due porte */
.doors { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.door { padding: var(--s9) 0; }
.door-inner { max-width: calc(var(--content) / 2); padding: 0 var(--s8) 0 var(--gutter); margin-left: auto; }
.door-shop .door-inner { margin-left: 0; margin-right: auto; padding: 0 var(--gutter) 0 var(--s8); }
.door-dev { background: var(--carta); }
.door-shop { background: var(--inchiostro); color: var(--serigrafia); }
.door-shop p { color: var(--serigrafia-2); }
.door p { max-width: 46ch; }
.door-list { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); border-top: 1px solid var(--rule); }
.door-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 550; }
.door-products { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); border-top: 1px solid #3F4A57; }
.door-products a { display: flex; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid #3F4A57; text-decoration: none; }
.door-products .dp-name { font-weight: 700; font-stretch: 110%; }
.door-products .dp-status { color: var(--serigrafia-2); font-stretch: var(--narrow); }
.door-products a:hover .dp-name { color: #FF6B5E; }

/* Sezioni */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); }
.page-head { padding: var(--s8) 0 var(--s8); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 var(--s5) var(--s5); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--grigio); }
.timeline li:last-child::before { background: var(--segnale); border-color: var(--segnale); }
.tl-when { display: block; font-weight: 700; font-stretch: 108%; }
.tl-what { color: var(--muted); }
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 64ch; }
.projects li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.projects a { display: block; font-weight: 700; font-stretch: 108%; }
.projects .muted { display: block; font-size: 15px; }

.cta-band { background: var(--inchiostro); color: var(--serigrafia); padding: var(--s8) 0; }
.cta-band p { color: var(--serigrafia-2); max-width: 56ch; }
.cta-band .h2 { margin-bottom: var(--s3); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.theme-dark .cta-band { background: var(--grafite); }

/* Servizi */
.service-rows { border-top: 1.5px solid var(--fg); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s6) 0; border-bottom: 1px solid var(--rule); }
.service-row .h3 { margin: 0; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.process li { border-top: 1.5px solid var(--fg); padding-top: var(--s4); }
.process-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--fg); font-weight: 700; margin-bottom: var(--s4); font-variant-numeric: tabular-nums; }
.process li:first-child .process-n { background: var(--segnale); border-color: var(--segnale); color: #fff; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li { padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.work-list p { color: var(--muted); max-width: 60ch; }
.stack { background: var(--surface); padding: var(--s6); border-radius: 10px; }
.faq { border-top: 1px solid var(--rule); }
.faq:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--s5) 0; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: var(--s5); color: var(--muted); max-width: 64ch; }

/* Negozio */
.shop-head { padding: var(--s8) 0 var(--s6); }
.shop-list-section { padding-top: var(--s6); }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s6); }
.product-link { display: block; text-decoration: none; }
.product-art svg { width: 100%; border-radius: 10px; box-shadow: var(--shadow-panel); }
.product-meta { padding-top: var(--s4); }
.product-meta .h3 { font-size: 26px; font-stretch: var(--wide); font-weight: 800; }
.product-meta p { color: var(--muted); }
.product-link:hover .h3 { color: #FF6B5E; }
.product-price { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s3); color: var(--fg) !important; font-weight: 650; }
.status { display: inline-flex; align-items: center; gap: 8px; font-stretch: var(--narrow); font-weight: 600; font-size: 14px; margin: 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--serigrafia-2); }
.status-disponibile::before { background: #3DBE76; }
.status-su-ordinazione::before, .status-preordine::before { background: var(--ambra); }
.status-in-arrivo::before { background: #6B7682; }
.shop-info { border-top: 1px solid var(--rule); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.info-grid p { color: var(--muted); }

.product-page { padding: var(--s6) 0 var(--s8); }
.back { display: inline-block; margin-bottom: var(--s6); font-stretch: var(--narrow); font-weight: 600; color: var(--muted); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.product-buy .display { margin-top: var(--s3); }
.price-big { font-size: 28px; font-weight: 700; font-stretch: 110%; margin-top: var(--s5); }
.product-buy .actions { margin-top: var(--s5); margin-bottom: var(--s4); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); margin-top: var(--s8); padding-top: var(--s7); border-top: 1px solid var(--rule); }
.prose-block p { max-width: 62ch; font-size: 18px; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--muted); font-stretch: 90%; }
.specs dd { margin: 0; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s8); align-items: start; }
.contact-direct { margin-top: var(--s7); }
.big-link { font-size: 22px; font-weight: 700; font-stretch: 110%; }
.contact-form { background: var(--surface); padding: var(--s6); border-radius: 10px; }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--inchiostro);
  background: #fff; border: 1.5px solid #9AA3A8; border-radius: 2px; padding: 11px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--inchiostro); outline: 3px solid rgba(200,38,27,.35); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 140px; }
.form-error { color: var(--segnale); font-weight: 600; }
.contact-form .btn { margin-bottom: var(--s4); }

/* Testi legali */
.legal { margin-top: var(--s6); }
.legal h2 { font-size: 22px; font-weight: 700; font-stretch: 108%; margin: var(--s6) 0 var(--s3); }
.legal p { max-width: 68ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: var(--s7) 0 var(--s5); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.wordmark-footer { margin-bottom: var(--s2); }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-legal { margin-top: var(--s6); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Responsive */
@media (max-width: 980px) {
  :root { --section: var(--s8); }
  .hero-grid, .about-grid, .work-grid, .product-layout, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .doors { grid-template-columns: 1fr; }
  .door { padding: var(--s8) 0; }
  .door-inner, .door-shop .door-inner { max-width: none; margin: 0; padding: 0 var(--gutter); }
  .service-row { grid-template-columns: 1fr; gap: var(--s2); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16.5px; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    font: inherit; font-weight: 600; background: none; color: inherit; border: 1.5px solid currentColor; border-radius: 2px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: var(--s2) var(--gutter) var(--s4);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--segnale); }
  .nav .lang { align-self: flex-start; margin-top: var(--s3); border: 1px solid var(--rule); }
  .product-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
}

/* ===========================================================================
   Identità "Sintonia" (2026-11-18). Vedi DESIGN.md.
   Palette presa dalla scena: la notte sul Mar Piccolo. L'ambra è la luce e l'azione,
   il rosso segnala solo uno stato (LED, errore). Un solo font: Archivo Variable.
   =========================================================================== */
:root, .theme-dark {
  --notte: #0A1622;       /* fondo: blu inchiostro, non nero */
  --fondale: #0F2031;     /* superfici rialzate */
  --serigrafia: #EEF1EC;  /* testo */
  --foschia: #9DB0BF;     /* testo secondario (8:1 su notte) */
  --sodio: #FFB44A;       /* luce: ago della sintonia, azioni, link attivi */
  --segnale: #FF5A3D;     /* solo stati: LED, errori */
  --bg: var(--notte);
  --fg: var(--serigrafia);
  --muted: var(--foschia);
  --rule: rgba(157, 176, 191, .22);
  --surface: var(--fondale);
  /* valori che cambiano con il tema */
  --accent: var(--sodio);          /* testo e filetti d'accento */
  --veil: 10 22 34;                /* velatura sopra le immagini (terna RGB) */
  --tick: 238 241 236;             /* tacche della scala di sintonia */
  --header-bg: rgba(10, 22, 34, .88);
  --line-strong: rgba(238, 241, 236, .5);
  --hero-lede: #C9D4DC;
  --band-a: #0D1B29; --band-b: #09121B;
  --footer-bg: #08111A;
  --error: #FF8A73;
}
/* Tema chiaro (selezionabile, salvato nel browser): carta al posto della notte, inchiostro al posto del bianco.
   L'ambra resta per i fondi dei pulsanti; per testi e filetti d'accento diventa un arancio scuro leggibile. */
:root[data-theme="light"], :root[data-theme="light"] .theme-dark {
  --notte: #EEF0EA;
  --fondale: #E1E5DE;
  --serigrafia: #14202B;
  --foschia: #4F5E6B;
  --rule: rgba(20, 32, 43, .18);
  --accent: #9A5200;
  --veil: 238 240 234;
  --tick: 20 32 43;
  --header-bg: rgba(238, 240, 234, .9);
  --line-strong: rgba(20, 32, 43, .55);
  --hero-lede: #2A3742;
  --band-a: #E1E5DE; --band-b: #D5DAD2;
  --footer-bg: #E1E5DE;
  --error: #B3261E;
  --bg: var(--notte); --fg: var(--serigrafia); --muted: var(--foschia); --surface: var(--fondale);
}
.hero-media .hero-light { display: none; }
:root[data-theme="light"] .hero-media .hero-light { display: block; }
:root[data-theme="light"] .hero-media .hero-dark { display: none; }
/* Scelta del tema nell'intestazione: un menu a tre voci (scuro, chiaro, dal vivo) con l'aspetto del selettore della lingua */
.theme-select { flex: none; display: inline-flex; }
.theme-select select {
  font: inherit; font-size: 14px; font-weight: 600; font-stretch: 88%; cursor: pointer;
  appearance: none; -webkit-appearance: none; padding-right: 26px; background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 54%, calc(100% - 10px) 54%; background-size: 4px 4px; background-repeat: no-repeat;
}
.theme-select option { background: var(--notte); color: var(--serigrafia); }
@media (max-width: 480px) { /* su telefono marchio, tema e lingua devono stare su una riga */
  .theme-select select { padding-left: 8px; padding-right: 19px; background-position: calc(100% - 10px) 54%, calc(100% - 6px) 54%; }
  .site-header .lang { padding-left: 8px; padding-right: 8px; }
  .theme-select select.lang { padding-right: 19px; }
}
html, body { background: var(--notte); color: var(--fg); }
a:hover, .theme-dark a:hover { color: var(--accent); }
:focus-visible, .theme-dark :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
::selection { background: var(--sodio); color: var(--notte); }
.muted { color: var(--muted); }

/* Tipografia: larghezza 125% solo sui titoli brevi, testo e navigazione al 100% */
.display { font-size: clamp(44px, 6.4vw, 104px); font-weight: 800; font-stretch: 125%; line-height: .98; letter-spacing: -0.03em; max-width: 12ch; }
.display-md { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; max-width: 20ch; }
.display-shop { font-size: clamp(56px, 11vw, 150px); max-width: none; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; line-height: 1.06; }
.h3 { font-size: 20px; font-weight: 700; font-stretch: 104%; }
.lede { color: var(--muted); max-width: 56ch; }
.label { font-size: 15px; font-weight: 650; font-stretch: 88%; color: var(--muted); margin: 0 0 var(--s4); }
.prose { max-width: 62ch; font-size: 18px; }

/* Pulsanti */
.btn { border-radius: 2px; min-height: 50px; font-stretch: 104%; }
.btn-primary { background: var(--sodio); color: #14100A; }
.btn-primary:hover { background: #FFC878; color: #14100A; }
.btn-secondary, .btn-light { border: 1.5px solid var(--line-strong); color: var(--fg); background: transparent; }
.btn-secondary:hover, .btn-light:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-3d[hidden] { display: none; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: var(--s6); min-height: 76px; }
.wordmark { flex: none; color: var(--fg); }
.led { background: var(--segnale); box-shadow: 0 0 0 3px rgba(255, 90, 61, .2), 0 0 10px rgba(255, 90, 61, .7); }
.lang { flex: none; font-size: 14px; font-weight: 600; font-stretch: 88%; text-decoration: none; color: var(--muted); border: 1px solid var(--rule); padding: 5px 10px; border-radius: 2px; }
.lang:hover { color: var(--accent); border-color: var(--accent); }

/* Navigazione "sintonia": le sezioni sono stazioni su una scala, un ago di luce indica quella corrente.
   Sono link normali: la voce corrente è anche in grassetto e sottolineata (non dipende da colore o movimento). */
.tuner { position: relative; flex: 1 1 auto; max-width: 700px; margin-left: auto; }
.tuner ul {
  display: flex; justify-content: space-between; gap: 2px; list-style: none; margin: 0; padding: 15px 0 0;
  background:
    repeating-linear-gradient(90deg, rgb(var(--tick) / .5) 0 1px, transparent 1px 48px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, rgb(var(--tick) / .24) 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat;
}
.tuner a { display: block; padding: 8px 10px 11px; text-decoration: none; color: var(--fg); font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.tuner a:hover { color: var(--accent); }
.tuner a[aria-current] { color: var(--accent); font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tuner-needle {
  position: absolute; left: 0; top: -5px; width: 2px; height: 27px; margin-left: -1px;
  background: var(--accent); box-shadow: 0 0 10px 1px rgba(255, 180, 74, .8);
  opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), opacity .2s ease;
}
.tuner.is-tuned .tuner-needle { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tuner-needle { transition: none; } }

/* Apertura: il banco di notte */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(80vh, 780px); padding: 0; border-bottom: 1px solid var(--rule); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 64% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--veil) / .96) 0%, rgb(var(--veil) / .8) 34%, rgb(var(--veil) / .12) 66%, rgb(var(--veil) / 0) 100%),
    linear-gradient(0deg, rgb(var(--veil) / .85) 0%, rgb(var(--veil) / 0) 30%);
}
.hero-inner { padding-top: var(--s9); padding-bottom: var(--s8); }
.hero .lede { color: var(--hero-lede); max-width: 50ch; font-size: clamp(18px, 1.5vw, 21px); }

/* Sezioni */
.section { padding: var(--section) 0; }
.section-alt, .shop-info { background: var(--fondale); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
.split-head .h2 { margin-bottom: var(--s4); }
.split-head .lede { margin-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.rows .h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); font-size: 16px; }
.cases { margin-top: var(--s8); }
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.case-grid li { border-top: 2px solid var(--sodio); padding-top: var(--s4); }
.case-grid p { color: var(--muted); font-size: 16px; }

/* Fascia Elettrofoni: i frontali degli strumenti */
.band { background: linear-gradient(180deg, var(--band-a), var(--band-b)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: end; margin-bottom: var(--s7); }
.band-head .h2, .band-head .lede { margin: 0; }
.instruments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.instruments a { display: block; text-decoration: none; color: var(--fg); }
.instrument-art, .instrument-name { display: block; }
.instrument-art svg { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 40px -28px #000; }
.instrument-name { margin-top: var(--s4); font-weight: 800; font-stretch: 116%; font-size: 19px; }
.instruments a:hover .instrument-name { color: var(--accent); }
.instruments .status { margin-top: 4px; color: var(--muted); }

.projects { max-width: none; border-top: 1px solid var(--rule); }
.projects a { color: var(--fg); }
.projects a:hover { color: var(--accent); }

/* Fascia finale: l'unico grande campo di colore */
.cta-band, .theme-dark .cta-band { background: var(--sodio); color: #14100A; padding: var(--s8) 0; }
.cta-band .h2 { color: #14100A; }
.cta-band p { color: #3D2C0E; }
.cta-band .btn-primary { background: #14100A; color: var(--serigrafia); }
.cta-band .btn-primary:hover { background: var(--notte); color: #fff; }
.cta-band :focus-visible { outline-color: #14100A; }

/* Pagine interne */
.service-rows, .process li { border-top-color: var(--fg); }
.process-n { border-color: var(--fg); }
.process li:first-child .process-n { background: var(--sodio); border-color: var(--accent); color: #14100A; }
.stack, .contact-form { background: var(--fondale); border-radius: 4px; }
.product-link:hover .h3 { color: var(--accent); }
.field input, .field select, .field textarea { background: #F8F9F6; color: #14202B; border: 1.5px solid var(--rule); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(255, 180, 74, .45); }
.form-error { color: var(--error); }
.status-su-ordinazione::before, .status-preordine::before { background: var(--sodio); }
.site-footer { background: var(--footer-bg); }

@media (max-width: 980px) {
  .split, .band-head { grid-template-columns: 1fr; gap: var(--s6); }
  .rows li { grid-template-columns: 1fr; gap: var(--s2); }
  .case-grid { grid-template-columns: 1fr; }
  .instruments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* la scala di sintonia diventa una striscia che scorre, sempre visibile: niente menu da aprire */
  .header-inner { flex-wrap: wrap; gap: 0 var(--s4); min-height: 0; padding-top: 12px; }
  .wordmark { margin-right: auto; }
  .tuner { order: 3; flex: 0 0 100%; max-width: none; margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .tuner::-webkit-scrollbar { display: none; }
  .tuner ul { width: max-content; min-width: 100%; gap: 8px; }
  .tuner a { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; height: 56vw; min-height: 200px; z-index: 0; }
  .hero-media img { object-position: 60% 40%; }
  .hero-media::after { background: linear-gradient(0deg, var(--notte) 0%, rgb(var(--veil) / 0) 60%); }
  .hero-inner { padding-top: var(--s4); padding-bottom: var(--s7); }
}

/* Rendering degli strumenti (dove ci sono, sostituiscono l'illustrazione del frontale) */
.product-art img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 40px -28px #000; }
.instrument-art img { width: 100%; aspect-ratio: 600 / 380; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 40px -28px #000; }
.product-card .product-art img { aspect-ratio: 600 / 380; object-fit: cover; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.product-gallery img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.render-note { font-size: 14px; color: var(--muted); margin-top: var(--s2); }

/* Plancia della home: le quattro attivita' */
.plancia { border-bottom: 1px solid var(--rule); }
.plancia-grid { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plancia-grid li { border-left: 1px solid var(--rule); }
.plancia-grid li:first-child { border-left: 0; }
.plancia-grid a { display: block; height: 100%; padding: var(--s6) var(--s5) var(--s7); text-decoration: none; color: var(--fg); border-top: 2px solid transparent; }
.plancia-grid li:first-child a { padding-left: 0; }
.plancia-grid a:hover { border-top-color: var(--accent); color: var(--fg); }
.plancia-grid .label { display: block; margin-bottom: var(--s3); }
.plancia-title { display: block; font-size: clamp(21px, 1.9vw, 27px); font-weight: 800; font-stretch: 116%; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.plancia-grid a:hover .plancia-title { color: var(--accent); }
.plancia-text { display: block; margin-top: var(--s3); font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.split-head > .label, .band-head .label { margin-bottom: var(--s3); }
@media (max-width: 980px) {
  .plancia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plancia-grid li:nth-child(odd) { border-left: 0; }
  .plancia-grid li:nth-child(odd) a { padding-left: 0; }
  .plancia-grid li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .plancia-grid { grid-template-columns: 1fr; }
  .plancia-grid li { border-left: 0; border-top: 1px solid var(--rule); }
  .plancia-grid li:first-child { border-top: 0; }
  .plancia-grid a { padding-left: 0; }
}

/* Tema chiaro: velatura piu' ampia sull'apertura, perche' il testo scuro non finisca sopra oggetti scuri */
:root[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgb(var(--veil) / .97) 0%, rgb(var(--veil) / .93) 46%, rgb(var(--veil) / .4) 78%, rgb(var(--veil) / 0) 100%),
    linear-gradient(0deg, rgb(var(--veil) / .85) 0%, rgb(var(--veil) / 0) 30%);
}

/* --- Offerta ristrutturata (2026-11-18): proposte in griglia, metodo numerato, tre strumenti in fila --- */
.offers { list-style: none; margin: 0 0 var(--s7); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.offers li { border-top: 2px solid var(--sodio); padding-top: var(--s4); }
.offers .h3 { margin: 0 0 var(--s3); }
.offers p { margin: 0; color: var(--muted); font-size: 16px; }
.rows-num { counter-reset: passo; }
.rows-num li { counter-increment: passo; }
.rows-num .h3::before { content: counter(passo) ". "; color: var(--accent); }
.proof-side .label { margin-top: var(--s7); }
.proof-side .label:first-child { margin-top: 0; }
.status-aperto::before { background: var(--sodio); }
@media (min-width: 861px) { .instruments { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offers { grid-template-columns: 1fr; } }
