/* =========================================================================
   ARME — nuovo design "Precisione incandescente"
   Grafite, griglia da disegno tecnico e un unico accento: l'arancio del laser.
   Le variabili qui sotto sono l'unico posto in cui cambiare colori e misure.
   ========================================================================= */

:root {
  --nero: #0b0c0e;
  --grafite: #131518;
  --acciaio: #1c1f24;
  --linea: rgba(255, 255, 255, .09);
  --linea-forte: rgba(255, 255, 255, .18);
  --testo: #e9e7e2;
  --testo-2: #9a9c9f;
  --laser: #ff5a1f;
  --laser-caldo: #ffb347;
  --carta: #efede8;
  --inchiostro: #121212;

  --f-titolo: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --margine: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nero);
  color: var(--testo);
  font-family: var(--f-titolo);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--laser); color: var(--nero); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margine); }

/* griglia millimetrata di sfondo, comune a tutte le sezioni scure */
.griglia {
  background-image:
    linear-gradient(var(--linea) 1px, transparent 1px),
    linear-gradient(90deg, var(--linea) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
}

/* ------------------------------------------------------------- header -- */
.testata {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--margine);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.testata.scorsa {
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--linea);
  padding-block: 12px;
}
.marchio { display: flex; align-items: center; gap: 12px; }
/* logo scontornato: scritta e contorni schiariti per il fondo scuro (logo-arme-chiaro.png) */
.marchio img { width: 150px; height: auto; }
.marchio .mono { color: var(--testo-2); border-left: 1px solid var(--linea-forte); padding-left: 12px; line-height: 1.3; }

.navigazione { display: flex; align-items: center; gap: 6px; }
.navigazione > a, .navigazione .voce > a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; color: var(--testo-2);
  transition: color .2s, background .2s;
}
.navigazione > a:hover, .navigazione .voce:hover > a, .navigazione a[aria-current="page"] { color: var(--testo); background: rgba(255,255,255,.06); }
.voce { position: relative; }
.tendina {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 320px; padding: 8px;
  background: var(--grafite); border: 1px solid var(--linea-forte); border-radius: 14px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.voce:hover .tendina, .voce:focus-within .tendina { opacity: 1; pointer-events: auto; transform: none; }
.tendina a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 9px; font-size: 15px; }
.tendina a:hover { background: rgba(255,255,255,.06); color: var(--laser); }

.lingua { font-family: var(--f-mono); font-size: 12px; color: var(--testo-2); padding: 10px 6px; }
.lingua b { color: var(--testo); font-weight: 500; }

.bottone {
  --bg: var(--laser); --fg: var(--nero);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease);
  border: 0; cursor: pointer;
}
.bottone::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--laser-caldo); transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.bottone:hover::before { transform: none; }
.bottone:hover { transform: translateY(-2px); }
.bottone .freccia { transition: transform .3s var(--ease); }
.bottone:hover .freccia { transform: translateX(4px); }
.bottone.vuoto { --bg: transparent; --fg: var(--testo); box-shadow: inset 0 0 0 1px var(--linea-forte); }
.bottone.vuoto::before { background: rgba(255,255,255,.08); }

.apri-menu { display: none; background: none; border: 1px solid var(--linea-forte); color: var(--testo); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.apri-menu span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
.menu-aperto .apri-menu span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-aperto .apri-menu span:nth-child(2) { opacity: 0; }
.menu-aperto .apri-menu span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* menu a tutto schermo per telefono */
.pannello {
  position: fixed; inset: 0; z-index: 40;
  background: var(--nero);
  padding: 100px var(--margine) 40px;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-aperto .pannello { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.pannello a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: clamp(24px, 7vw, 40px); font-weight: 600; font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
.pannello a.figlio { font-size: 18px; font-weight: 400; padding-left: 20px; color: var(--testo-2); }
.pannello a .mono { color: var(--laser); }

@media (max-width: 1100px) {
  .navigazione, .testata > .bottone { display: none; }
  .apri-menu { display: block; }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 140px 0 48px;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* vignettatura per leggibilità del testo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 70% 30%, transparent 30%, var(--nero) 85%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-etichetta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--testo-2); margin-bottom: 28px; }
.hero-etichetta i { font-style: normal; color: var(--laser); }
.titolone {
  margin: 0;
  font-size: clamp(48px, 10.4vw, 188px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.045em;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
}
.titolone .riga { display: block; overflow: hidden; padding-bottom: .04em; }
.titolone .riga > span { display: inline-block; transform: translateY(105%); animation: sali 1.1s var(--ease) forwards; }
.titolone .riga:nth-child(2) > span { animation-delay: .12s; }
.titolone .riga:nth-child(3) > span { animation-delay: .24s; }
.titolone em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--testo); }
.titolone .caldo { color: var(--laser); }
@keyframes sali { to { transform: none; } }

.hero-piede {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--linea-forte);
}
.hero-piede p { margin: 0; max-width: 460px; color: var(--testo-2); }
.coordinate { font-family: var(--f-mono); font-size: 12px; color: var(--testo-2); line-height: 1.9; }
.coordinate b { color: var(--laser); font-weight: 500; display: inline-block; min-width: 7ch; }
@media (max-width: 860px) { .hero-piede { grid-template-columns: 1fr; } }

/* hero delle pagine interne */
.hero-pagina { min-height: 78svh; }
.hero-pagina .titolone { font-size: clamp(40px, 7.4vw, 128px); }
.briciole { display: flex; gap: 10px; flex-wrap: wrap; color: var(--testo-2); margin-bottom: 28px; }
.briciole a:hover { color: var(--laser); }
.briciole span { opacity: .4; }

/* ---------------------------------------------------- nastro scorrevole -- */
.nastro { border-block: 1px solid var(--linea-forte); overflow: hidden; background: var(--grafite); }
.nastro-traccia { display: flex; width: max-content; animation: scorri 38s linear infinite; }
.nastro-traccia span {
  display: flex; align-items: center; gap: 40px; padding: 22px 40px 22px 0;
  font-size: clamp(22px, 3vw, 40px); font-weight: 700; font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
}
.nastro-traccia span::after { content: ""; width: 12px; height: 12px; background: var(--laser); transform: rotate(45deg); }
.nastro-traccia span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--testo-2); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sezioni -- */
.sezione { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.sezione.chiara { background: var(--carta); color: var(--inchiostro); }
.sezione.chiara .testo-2 { color: #5d5d5a; }
.intestazione { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: clamp(48px, 7vw, 96px); }
.intestazione .mono { color: var(--laser); padding-top: 14px; }
.intestazione h2 {
  margin: 0; font-size: clamp(34px, 5.4vw, 84px); line-height: .95; font-weight: 700;
  letter-spacing: -.035em; font-variation-settings: "wdth" 112; max-width: 18ch;
}
.intestazione h2 em { font-style: normal; color: var(--laser); }
@media (max-width: 760px) { .intestazione { grid-template-columns: 1fr; gap: 12px; } }
.testo-2 { color: var(--testo-2); }

/* manifesto: testo grande che si "accende" parola per parola mentre scorri */
.manifesto {
  font-size: clamp(26px, 3.6vw, 56px); line-height: 1.15; font-weight: 500;
  letter-spacing: -.025em; margin: 0; max-width: 24ch;
}
.manifesto .parola { opacity: .16; transition: opacity .5s; }
.manifesto .parola.accesa { opacity: 1; }
.manifesto .parola.calda { color: var(--laser); }

/* numeri */
.numeri { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea-forte); margin-top: clamp(60px, 8vw, 120px); }
.numero { padding: 32px 24px 0 0; border-right: 1px solid var(--linea); }
.numero:last-child { border-right: 0; }
.numero + .numero { padding-left: 24px; }
.numero strong { display: block; font-size: clamp(44px, 6vw, 96px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 125; }
.numero strong sup { font-size: .35em; color: var(--laser); vertical-align: top; margin-left: 4px; }
.numero .mono { color: var(--testo-2); display: block; margin-top: 12px; }
@media (max-width: 860px) {
  .numeri { grid-template-columns: 1fr 1fr; }
  .numero:nth-child(2) { border-right: 0; }
  .numero:nth-child(3) { padding-left: 0; }
  .numero:nth-child(n+3) { border-top: 1px solid var(--linea); margin-top: 32px; }
}

/* lista servizi con anteprima immagine che segue il cursore */
.servizi { border-top: 1px solid var(--linea-forte); }
.servizio {
  display: grid; grid-template-columns: 1fr 1fr 60px; gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--linea-forte);
  position: relative;
}
.servizio::before { /* linea laser che taglia la riga al passaggio */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--laser), var(--laser-caldo));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
  box-shadow: 0 0 12px var(--laser);
}
.servizio:hover::before { transform: none; }
.servizio .mono { color: var(--testo-2); }
.servizio h3 {
  margin: 0; font-size: clamp(26px, 3.6vw, 56px); line-height: 1; font-weight: 700;
  letter-spacing: -.03em; font-variation-settings: "wdth" 115; transition: transform .5s var(--ease), color .3s;
}
.servizio:hover h3 { transform: translateX(16px); color: var(--laser); }
.servizio p { margin: 0; color: var(--testo-2); max-width: 44ch; }
.servizio .cerchio { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--linea-forte); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.servizio:hover .cerchio { background: var(--laser); border-color: var(--laser); color: var(--nero); transform: rotate(-45deg); }
.anteprima {
  position: fixed; z-index: 30; left: 0; top: 0; width: 320px; aspect-ratio: 4/3;
  pointer-events: none; border-radius: 10px; overflow: hidden;
  opacity: 0; scale: .7; transition: opacity .3s, scale .4s var(--ease);
}
.anteprima.visibile { opacity: 1; scale: 1; }
.anteprima img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .servizio { grid-template-columns: 1fr 48px; gap: 10px 16px; }
  .servizio p { grid-column: 1; }
  .servizio .cerchio { grid-row: 1 / 3; grid-column: 2; width: 44px; height: 44px; }
  .anteprima { display: none; }
}

/* due anime: ARME e A.B. */
.anime { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linea-forte); border: 1px solid var(--linea-forte); }
.anima {
  background: var(--nero); position: relative; overflow: hidden; min-height: 640px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px);
}
.anima img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(1) contrast(1.1); transition: opacity .8s var(--ease), transform 1.2s var(--ease), filter .8s; }
.anima:hover img { opacity: .62; transform: scale(1.05); filter: grayscale(.2) contrast(1.1); }
.anima::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--nero) 92%); z-index: 1; }
.anima > * { position: relative; z-index: 2; }
.anima .sigla { font-size: clamp(72px, 9.5vw, 170px); line-height: .8; font-weight: 800; letter-spacing: -.06em; font-variation-settings: "wdth" 125; margin: 0 0 24px; }
.anima .sigla em { font-style: normal; color: var(--laser); }
.anima h3 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.anima p { margin: 0 0 28px; color: var(--testo-2); max-width: 46ch; }
@media (max-width: 860px) { .anime { grid-template-columns: 1fr; } .anima { min-height: 520px; } .anima .sigla { font-size: clamp(60px, 20vw, 170px); } }

/* processo: dal foglio al pezzo finito, scorrimento orizzontale "fissato" */
.processo { height: 420vh; position: relative; }
.processo-fisso { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.processo-testa { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.processo-testa h2 { margin: 0; font-size: clamp(34px, 5vw, 76px); line-height: .95; letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.processo-barra { height: 2px; background: var(--linea-forte); margin-top: 18px; width: min(320px, 40vw); }
.processo-barra i { display: block; height: 100%; width: 0; background: var(--laser); box-shadow: 0 0 10px var(--laser); }
.processo-traccia { display: flex; gap: 24px; padding-left: var(--margine); will-change: transform; }
.fase {
  flex: 0 0 min(440px, 78vw); height: min(58vh, 560px);
  border: 1px solid var(--linea-forte); border-radius: 18px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: var(--grafite);
}
.fase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.7); }
.fase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,.5), rgba(11,12,14,.92)); }
.fase > * { position: relative; z-index: 2; }
.fase h3 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.02em; }
.fase p { margin: 0; color: var(--testo-2); font-size: 15px; }
@media (max-width: 760px) {
  .processo { height: auto; }
  .processo-fisso { position: static; height: auto; padding: 80px 0; }
  .processo-traccia { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--margine); transform: none !important; }
  .fase { scroll-snap-align: start; height: 460px; }
}

/* certificazioni */
.certificati { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.certificato {
  border: 1px solid rgba(0,0,0,.14); border-radius: 16px; padding: 28px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.certificato:hover { background: var(--inchiostro); color: var(--carta); transform: translateY(-6px); }
.certificato strong { font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 120; }
.certificato .mono { display: flex; justify-content: space-between; opacity: .7; }
.certificato .pdf { color: var(--laser); }
@media (max-width: 960px) { .certificati { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .certificati { grid-template-columns: 1fr; } }

/* --------------------------------------------- pagine interne: contenuto -- */
.scheda { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.scheda-media { position: sticky; top: 110px; }
.cornice { position: relative; border-radius: 16px; overflow: hidden; background: var(--acciaio); }
.cornice img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.cornice.vista img { transform: scale(1); }
.cornice .mirino { position: absolute; inset: 14px; pointer-events: none; }
.cornice .mirino::before, .cornice .mirino::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--laser); }
.cornice .mirino::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cornice .mirino::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cornice figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; color: var(--testo); background: rgba(11,12,14,.7); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 6px; }
.prosa h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -.03em; font-variation-settings: "wdth" 112; margin: 0 0 28px; }
.prosa h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; margin: 56px 0 16px; }
.prosa p { color: var(--testo-2); margin: 0 0 18px; max-width: 62ch; }
.prosa p.lead { font-size: clamp(19px, 1.6vw, 23px); color: var(--testo); line-height: 1.5; }
.prosa strong { color: var(--testo); font-weight: 600; }
.prosa a.tel { color: var(--laser); border-bottom: 1px solid currentColor; }
@media (max-width: 900px) { .scheda { grid-template-columns: 1fr; } .scheda-media { position: static; } }

.specifiche { list-style: none; padding: 0; margin: 32px 0; border-top: 1px solid var(--linea-forte); counter-reset: s; }
.specifiche li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--linea); color: var(--testo);
}
.specifiche li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; background: var(--laser); transform: rotate(45deg); }

.pastiglie { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.pastiglie span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--linea-forte); border-radius: 999px; color: var(--testo-2); }
.pastiglie span.on { border-color: var(--laser); color: var(--laser); }

/* scheda tecnica (diametri, modelli…) */
.tabella-dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--linea-forte); border: 1px solid var(--linea-forte); border-radius: 12px; overflow: hidden; margin: 32px 0; }
.tabella-dati div { background: var(--grafite); padding: 20px 16px; }
.tabella-dati strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 120; }
.tabella-dati .mono { color: var(--testo-2); font-size: 11px; }

/* pagine sorelle in fondo alla scheda */
.sorelle { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sorella {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 300px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; background: var(--grafite);
  border: 1px solid var(--linea);
}
.sorella img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1); transition: opacity .6s, transform 1s var(--ease), filter .6s; }
.sorella:hover img { opacity: .55; transform: scale(1.06); filter: grayscale(0); }
.sorella > * { position: relative; z-index: 1; }
.sorella .mono { color: var(--laser); }
.sorella h3 { margin: 0; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "wdth" 110; }

/* --------------------------------------------------------- invito (CTA) -- */
.invito { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 220px) 0; text-align: center; background: var(--laser); color: var(--nero); }
.invito h2 {
  margin: 0 auto; font-size: clamp(48px, 11vw, 200px); line-height: .85; font-weight: 800;
  letter-spacing: -.05em; font-variation-settings: "wdth" 125; text-transform: uppercase; max-width: 12ch;
}
.invito p { max-width: 520px; margin: 32px auto 40px; font-size: 19px; }
.invito .bottone { --bg: var(--nero); --fg: var(--testo); }
.invito .bottone::before { background: var(--acciaio); }
.invito .bottone.vuoto { --bg: transparent; --fg: var(--nero); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.invito .bottone.vuoto::before { background: rgba(0,0,0,.08); }
.invito .scintille { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.azioni { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------ contatti -- */
.contatti-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linea-forte); border: 1px solid var(--linea-forte); border-radius: 18px; overflow: hidden; }
.contatti-griglia > div { background: var(--nero); padding: clamp(24px, 3vw, 44px); }
.contatti-griglia h3 { margin: 0 0 20px; font-size: 14px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--laser); }
.contatti-griglia .grande { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; display: block; }
.contatti-griglia a.grande:hover { color: var(--laser); }
.orari { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-family: var(--f-mono); font-size: 14px; }
.stato-orario { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linea-forte); }
.stato-orario::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--testo-2); }
.stato-orario.aperto::before { background: #3ee08f; box-shadow: 0 0 10px #3ee08f; }
@media (max-width: 760px) { .contatti-griglia { grid-template-columns: 1fr; } }

/* selettore del reparto + modulo */
.reparti { display: inline-flex; padding: 5px; border: 1px solid var(--linea-forte); border-radius: 999px; margin-bottom: 40px; flex-wrap: wrap; }
.reparti button { background: none; border: 0; color: var(--testo-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.reparti button[aria-pressed="true"] { background: var(--laser); color: var(--nero); }
.modulo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.campo { position: relative; padding-top: 22px; margin-bottom: 18px; }
.campo.largo { grid-column: 1 / -1; }
.campo input, .campo textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--linea-forte);
  color: var(--testo); font: inherit; font-size: 20px; padding: 10px 0; outline: none; resize: vertical;
  transition: border-color .3s;
}
.campo textarea { min-height: 120px; }
.campo label { position: absolute; left: 0; top: 34px; color: var(--testo-2); pointer-events: none; transition: all .3s var(--ease); }
.campo input:focus, .campo textarea:focus { border-color: var(--laser); }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label {
  top: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--laser);
}
.spunta { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; color: var(--testo-2); font-size: 15px; margin: 8px 0; cursor: pointer; }
.spunta input { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid var(--linea-forte); border-radius: 5px; margin: 2px 0 0; cursor: pointer; transition: background .2s; }
.spunta input:checked { background: var(--laser) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3.5 3.5L15 7' fill='none' stroke='%230b0c0e' stroke-width='2'/%3E%3C/svg%3E"); border-color: var(--laser); }
.spunta a { color: var(--testo); text-decoration: underline; }
.modulo .bottone { margin-top: 24px; justify-self: start; }
.esito { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 13px; color: var(--laser); min-height: 1.5em; margin-top: 12px; }
@media (max-width: 640px) { .modulo { grid-template-columns: 1fr; } }

.mappa { border-radius: 18px; overflow: hidden; border: 1px solid var(--linea-forte); aspect-ratio: 16/7; filter: grayscale(1) invert(.92) contrast(.9); }
.mappa iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .mappa { aspect-ratio: 4/5; } }

/* -------------------------------------------------------------- footer -- */
.piede { padding: 100px 0 32px; border-top: 1px solid var(--linea-forte); background: var(--nero); }
.piede-alto { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.piede h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); font-weight: 400; margin: 0 0 18px; }
.piede ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.piede ul a { color: var(--testo); transition: color .2s; }
.piede ul a:hover { color: var(--laser); }
.piede address { font-style: normal; color: var(--testo-2); }
.firma { font-size: clamp(80px, 22vw, 380px); line-height: .78; font-weight: 800; letter-spacing: -.06em; font-variation-settings: "wdth" 125; margin: 80px 0 24px; color: var(--acciaio); user-select: none; display: flex; justify-content: space-between; }
.firma span { transition: color .4s, transform .6s var(--ease); display: inline-block; }
.firma span:hover { color: var(--laser); transform: translateY(-4%); }
.piede-basso { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--testo-2); padding-top: 24px; border-top: 1px solid var(--linea); }
.piede-basso a:hover { color: var(--testo); }
@media (max-width: 860px) { .piede-alto { grid-template-columns: 1fr 1fr; } .piede-alto > :first-child { grid-column: 1 / -1; } }

/* avviso chiusura estiva / feste — riprende il popup del vecchio sito */
.avviso {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; translate: -50% 0;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; max-width: calc(100vw - 32px);
  background: var(--testo); color: var(--nero); border-radius: 999px; font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  transform: translateY(160%); transition: transform .7s var(--ease);
}
.avviso.visibile { transform: none; }
.avviso b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--laser); }
.avviso button { background: var(--nero); color: var(--testo); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex: 0 0 34px; }

/* cursore personalizzato: un mirino (solo con mouse) */
.mirino-cursore { position: fixed; z-index: 100; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none; translate: -50% -50%; transition: width .3s var(--ease), height .3s var(--ease), opacity .3s; mix-blend-mode: difference; opacity: 0; }
.mirino-cursore::before, .mirino-cursore::after { content: ""; position: absolute; background: #fff; }
.mirino-cursore::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.mirino-cursore::after { top: 50%; left: 0; right: 0; height: 1px; }
.mirino-cursore.sopra { width: 64px; height: 64px; }
@media (hover: none) { .mirino-cursore { display: none; } }

/* comparsa al passaggio */
.svela { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.svela.vista { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .titolone .riga > span { transform: none; }
  .svela { opacity: 1; transform: none; }
  .processo { height: auto; }
  .processo-fisso { position: static; height: auto; }
  .processo-traccia { overflow-x: auto; transform: none !important; }
}

.salta { position: absolute; left: -9999px; }
.salta:focus { left: 16px; top: 16px; z-index: 200; background: var(--laser); color: var(--nero); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }

/* foto di prodotto su fondo bianco (macchine tessili, Rotlin…): cornice chiara */
.cornice.chiara { background: var(--carta); }
.cornice.chiara img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cornice.chiara figcaption { background: var(--inchiostro); }
.sorella.chiara { background: var(--carta); color: var(--inchiostro); }
.sorella.chiara img { object-fit: contain; padding: 18% 18% 30%; opacity: .9; filter: none; mix-blend-mode: multiply; }
.sorella.chiara:hover img { opacity: 1; }

/* disegno tecnico SVG animato (al posto di foto troppo piccole) */
.tavola { width: 100%; height: auto; display: block; }
.tavola .traccia { fill: none; stroke: var(--laser); stroke-width: 1.4; stroke-dasharray: var(--l, 2000); stroke-dashoffset: var(--l, 2000); }
.vista .tavola .traccia, .tavola.vista .traccia { animation: disegna 3.2s var(--ease) forwards; }
.tavola .quota { fill: none; stroke: var(--testo-2); stroke-width: .8; }
.tavola text { font-family: var(--f-mono); font-size: 11px; fill: var(--testo-2); letter-spacing: .06em; }
@keyframes disegna { to { stroke-dashoffset: 0; } }

/* telefono: le parole lunghe del titolone (PUNZONATURA, PASSAMANERIA…) devono stare in riga */
.hero .wrap { min-width: 0; }
@media (max-width: 600px) {
  .titolone, .hero-pagina .titolone { font-size: 10vw; font-variation-settings: "wdth" 100; letter-spacing: -.035em; }
  .briciole { font-size: 10px; }
}
@media (max-width: 600px) {
  .numero strong { font-size: 11vw; }
  .numero, .numero + .numero { padding-right: 12px; }
  .numero:nth-child(even) { padding-left: 16px; }
}
@media (max-width: 480px) { .marchio .mono { display: none; } }

/* ------------------------------------------------ contenuti dal CMS (Tina) -- */
.prosa .occhiello { color: var(--laser); }
/* il testo formattato del CMS: gli elenchi prendono lo stile delle specifiche */
.testo-ricco h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; margin: 56px 0 16px; }
.testo-ricco ul, .testo-ricco ol { list-style: none; padding: 0; margin: 32px 0; border-top: 1px solid var(--linea-forte); }
.testo-ricco li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--linea); color: var(--testo); }
.testo-ricco li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; background: var(--laser); transform: rotate(45deg); }
.testo-ricco li p { margin: 0; color: inherit; }
.testo-ricco a { color: var(--laser); border-bottom: 1px solid currentColor; }
.testo-ricco li a { color: var(--testo); border-bottom-color: var(--linea-forte); }
.testo-ricco li a:hover { color: var(--laser); }
.nota { margin-top: 48px; max-width: 60ch; }
.nota p { margin: 0; }
.sorella.alta { min-height: 440px; }
.sorella-testo { margin: 10px 0 0; color: #5d5d5a; font-size: 15px; }

/* dentro il pannello Tina: tutto subito visibile, niente effetti di scorrimento */
.in-modifica .svela { opacity: 1; transform: none; }
.in-modifica .titolone .riga > span { animation: none; transform: none; }
.in-modifica .manifesto .parola { opacity: 1; }
.in-modifica .processo { height: auto; }
.in-modifica .processo-fisso { position: static; height: auto; padding: 80px 0; }
.in-modifica .processo-traccia { overflow-x: auto; transform: none !important; }
.in-modifica .mirino-cursore { display: none; }
