/* ==========================================================================
   LaTo — latoapp.it
   Il sito è disegnato come una tavola di progetto elettrico: carta, inchiostro
   blu notte, un blu elettrico per ciò che è "sotto tensione", la griglia del
   logo come trama, il cartiglio in fondo.
   ========================================================================== */

:root {
  --carta: #F3F1EA;
  --carta-2: #EAE6DB;
  --inchiostro: #0B1F44;
  --inchiostro-2: #33415F;
  --grigio: #6A7389;
  --linea: #D3CEC0;
  --linea-forte: #B9B3A2;
  --blu: #0B63E5;
  --blu-scuro: #0A4FB8;
  --notte: #081833;
  --notte-2: #0F2550;

  --mk-a: var(--inchiostro);
  --mk-b: var(--blu);
  --mk-bg: var(--carta);

  --larghezza: 1240px;
  --margine: clamp(20px, 4vw, 48px);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--blu); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--inchiostro); color: #fff; padding: 10px 14px; text-decoration: none;
}
.salta:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; }

.riga { width: 100%; max-width: var(--larghezza); margin: 0 auto; padding: 0 var(--margine); }

/* ---------- elementi tipografici ricorrenti ---------- */
.etichetta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--grigio);
  display: flex; align-items: center; gap: 10px;
}
.etichetta i {
  font-style: normal;
  color: var(--blu);
  border: 1px solid currentColor;
  padding: 1px 6px;
}

h2 {
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h3 {
  font-stretch: 108%;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.sezione-testa { display: grid; gap: 22px; max-width: 760px; }
.sezione-testa__sotto { color: var(--inchiostro-2); font-size: clamp(17px, 1.5vw, 19px); max-width: 600px; text-wrap: pretty; }
.sezione-testa--chiara .etichetta { color: #8C9BBD; }
.sezione-testa--chiara .sezione-testa__sotto { color: #B7C2DA; }

/* ---------- bottoni ---------- */
.bottone {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--inchiostro);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 22px 15px 24px;
  border-radius: 2px;
  position: relative;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.bottone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s var(--ease); }
.bottone:hover { background: var(--blu); }
.bottone:hover svg { transform: translateX(4px); }
.bottone--piccolo { padding: 10px 16px; font-size: 14px; }
.bottone--chiaro { background: #fff; color: var(--inchiostro); }
.bottone--chiaro:hover { background: var(--blu); color: #fff; }

.collegamento {
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color .2s, background-size .3s var(--ease);
}
.collegamento:hover { color: var(--blu); }
.collegamento--chiaro { color: #fff; }
.collegamento--chiaro:hover { color: #8FB6FF; }

/* ---------- testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--carta) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.testata.staccata { border-bottom-color: var(--linea); }
.testata__dentro { display: flex; align-items: center; gap: 32px; height: 72px; }

.marchio { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marchio__segno { width: 34px; height: 34px; }
.marchio__nome {
  font-family: "Montserrat", var(--sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--inchiostro);
}

.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a {
  font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--inchiostro-2);
  position: relative; padding: 6px 0;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blu); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.menu a:hover, .menu a.attivo { color: var(--inchiostro); }
.menu a:hover::after, .menu a.attivo::after { transform: scaleX(1); }

.hamburger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--linea-forte); background: transparent;
  border-radius: 2px; cursor: pointer; position: relative;
}
.hamburger span:not(.sr) {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--inchiostro);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 17px; }
.hamburger span:nth-child(2) { top: 25px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu-mobile {
  border-top: 1px solid var(--linea);
  padding: 8px var(--margine) 24px;
  background: var(--carta);
}
.menu-mobile nav { display: grid; }
.menu-mobile nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--linea);
  text-decoration: none; font-size: 22px; font-weight: 650; font-stretch: 110%;
}
.menu-mobile nav a i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--blu); }
.menu-mobile .bottone { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------- apertura ---------- */
.apertura {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  /* la trama del logo: una griglia leggera, che sfuma verso il basso */
  background-image:
    linear-gradient(var(--linea) 1px, transparent 1px),
    linear-gradient(90deg, var(--linea) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: none;
}
.apertura::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 20%, transparent 0%, var(--carta) 72%);
}
.apertura > * { position: relative; }

.apertura__testa { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.apertura__note { display: flex; gap: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--linea-forte); background: var(--carta); }
.apertura__note span { padding: 7px 12px; border-right: 1px solid var(--linea-forte); color: var(--inchiostro-2); }
.apertura__note span:last-child { border-right: 0; }
.apertura__note b { color: var(--grigio); font-weight: 500; margin-right: 6px; }
.apertura__note .live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blu); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(11, 99, 229, .5);
  animation: battito 2.4s infinite;
}
@keyframes battito {
  0% { box-shadow: 0 0 0 0 rgba(11, 99, 229, .55); }
  70% { box-shadow: 0 0 0 9px rgba(11, 99, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 99, 229, 0); }
}

.apertura__titolo {
  margin-top: clamp(28px, 5vw, 56px);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.7rem, 8.6vw, 7.6rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.apertura__titolo .r { display: block; }
.apertura__titolo em {
  font-style: normal;
  color: var(--blu);
  position: relative;
  white-space: nowrap;
}
/* il "filo" sotto la parola filo, con i due nodi del logo alle estremità */
.apertura__titolo em::after {
  content: "";
  position: absolute; left: -.04em; right: -.04em; bottom: -.02em; height: .07em;
  background:
    radial-gradient(circle closest-side, var(--carta) 34%, var(--blu) 38%, var(--blu) 94%, transparent 100%) left center / .16em .16em no-repeat,
    radial-gradient(circle closest-side, var(--carta) 34%, var(--blu) 38%, var(--blu) 94%, transparent 100%) right center / .16em .16em no-repeat,
    linear-gradient(var(--blu), var(--blu)) center / calc(100% - .16em) 40% no-repeat;
  height: .16em; bottom: -.1em;
  transform: scaleX(0); transform-origin: left;
  animation: stendi 1.1s .5s var(--ease) forwards;
}
@keyframes stendi { to { transform: scaleX(1); } }

.apertura__piede {
  margin-top: clamp(32px, 4.5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end;
}
.apertura__lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--inchiostro-2); max-width: 560px; text-wrap: pretty; }
.apertura__azioni { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-self: end; }

/* ---------- lo schema unifilare ---------- */
.unifilare {
  --y: 34px;
  margin-top: clamp(56px, 7vw, 96px);
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--linea-forte);
  border-bottom: 1px solid var(--linea-forte);
  background: color-mix(in srgb, var(--carta) 70%, transparent);
}
.unifilare::before {
  /* la sbarra */
  content: ""; position: absolute; left: 0; right: 0; top: var(--y); height: 2px;
  background: var(--inchiostro); transform: translateY(-1px);
}
.unifilare li {
  position: relative;
  padding: calc(var(--y) + 26px) 18px 26px;
  border-left: 1px dashed var(--linea-forte);
  display: grid; gap: 6px; align-content: start;
}
.unifilare li:first-child { border-left: 0; }
.unifilare li::before {
  /* la derivazione che scende dal nodo */
  content: ""; position: absolute; left: 30px; top: var(--y); width: 2px; height: 22px; background: var(--inchiostro);
}
.unifilare .nodo {
  position: absolute; left: 31px; top: var(--y);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--carta); border: 2px solid var(--inchiostro);
  transform: translate(-50%, -50%);
  transition: background .3s, border-color .3s, box-shadow .3s;
  z-index: 2;
}
.unifilare li.acceso .nodo { background: var(--blu); border-color: var(--blu); box-shadow: 0 0 0 5px rgba(11, 99, 229, .16); }
.unifilare b {
  font-stretch: 112%; font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  padding-left: 12px;
}
.unifilare li::after {
  content: counter(fase, decimal-leading-zero);
  counter-increment: fase;
  position: absolute; right: 14px; top: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--grigio);
}
.unifilare { counter-reset: fase; }
.unifilare__corrente {
  position: absolute; top: var(--y); left: 0; width: 120px; height: 2px;
  transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, var(--blu) 70%, #7FB0FF);
  box-shadow: 0 0 12px 1px rgba(11, 99, 229, .55);
  animation: corrente 5.4s linear infinite;
  z-index: 1;
}
@keyframes corrente {
  from { left: -120px; }
  to { left: 100%; }
}

/* ---------- percorso ---------- */
.percorso { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--linea); }
.benefici {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--inchiostro);
}
.beneficio {
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 40px) clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--linea);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; row-gap: 12px; align-content: start;
}
.beneficio:nth-child(odd) { border-right: 1px solid var(--linea); }
.beneficio:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); }
.beneficio__n {
  grid-row: span 2;
  font-family: var(--mono); font-size: 12px; color: var(--blu);
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--blu); border-radius: 50%;
}
.beneficio h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }
.beneficio p { color: var(--inchiostro-2); max-width: 440px; text-wrap: pretty; }

/* ---------- sul campo (tavola in notturna) ---------- */
.campo {
  --mk-a: #FFFFFF;
  --mk-b: #4D8DFF;
  --mk-bg: var(--notte);
  background-color: var(--notte);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  color: #fff;
  padding: clamp(80px, 11vw, 150px) 0;
}
.campo__griglia {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 7vw, 110px); align-items: start;
}
.campo__voci { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.14); }
.voce {
  padding: 30px 28px 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: grid; gap: 12px; align-content: start;
}
.voce:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.14); }
.voce:nth-child(even) { padding-left: 28px; padding-right: 0; }
.voce__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: #6FA2FF; }
.voce h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
.voce p { color: #B7C2DA; font-size: 16px; text-wrap: pretty; }

/* il telefono */
.telefono { position: sticky; top: 110px; display: grid; gap: 16px; justify-items: center; }
.telefono figcaption { font-family: var(--mono); font-size: 11.5px; color: #8C9BBD; text-align: center; max-width: 280px; line-height: 1.5; }
.telefono__scocca {
  width: 300px; padding: 10px; border-radius: 44px;
  background: #1A2B4D;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 40px 80px -30px rgba(0,0,0,.7),
    0 0 0 1px rgba(0,0,0,.4);
  transform: rotate(-2.5deg);
  transition: transform .6s var(--ease);
}
.telefono:hover .telefono__scocca { transform: rotate(0deg); }
.telefono__schermo {
  --mk-a: var(--inchiostro); --mk-b: var(--blu); --mk-bg: #fff;
  background: #fff; color: #0B1F44; border-radius: 35px;
  padding: 46px 20px 22px;
  display: grid; gap: 12px;
  position: relative;
  font-size: 14px;
}
.telefono__schermo::before {
  content: ""; position: absolute; top: 11px; left: 50%; width: 84px; height: 22px; margin-left: -42px;
  background: #0B1424; border-radius: 20px;
}
.tel-testa { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #E5E8EF; }
.tel-testa__segno { width: 30px; height: 30px; }
.tel-testa b { display: block; font-size: 17px; line-height: 1.1; }
.tel-testa small { color: #6A7389; font-size: 12.5px; }

.targa {
  justify-self: center; margin-top: 4px;
  display: inline-flex; align-items: stretch;
  border: 2px solid #0B1F44; border-radius: 6px; overflow: hidden; background: #fff;
}
.targa__ue {
  background: #003399; color: #fff; font-weight: 700; font-size: 12px;
  width: 22px; display: grid; place-items: end center; padding-bottom: 3px;
  position: relative;
}
.targa__ue::before {
  content: ""; position: absolute; top: 5px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; border: 1.5px dotted #FFCC00;
}
.targa__num { font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: .06em; padding: 3px 12px; }
.tel-mezzo { text-align: center; color: #6A7389; font-size: 13px; }
.tel-mezzo b { color: #0B1F44; }
.tel-campo { display: grid; gap: 5px; }
.tel-campo > span:first-child { font-size: 12.5px; font-weight: 600; color: #33415F; }
.tel-campo em { font-style: normal; font-weight: 400; color: #8A92A6; }
.tel-input {
  display: flex; align-items: center;
  height: 44px; padding: 0 12px; border: 1.5px solid #D6DBE5; border-radius: 10px;
  font-family: var(--mono); font-size: 17px; font-weight: 500;
}
.tel-input--attivo { border-color: var(--blu); box-shadow: 0 0 0 3px rgba(11, 99, 229, .15); }
.tel-input--vuoto { color: #A9B0C0; }
.cursore { width: 2px; height: 20px; background: var(--blu); margin-left: 2px; animation: lampeggia 1s steps(1) infinite; }
@keyframes lampeggia { 50% { opacity: 0; } }
.tel-due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tel-bottone {
  margin-top: 4px; height: 50px; border-radius: 12px; background: var(--blu); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15.5px;
}

/* ---------- ruoli ---------- */
.ruoli { padding: clamp(80px, 11vw, 150px) 0; }
.ruoli__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.profili { display: flex; flex-wrap: wrap; gap: 10px; }
.profili li {
  font-stretch: 112%; font-weight: 650; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  padding: 10px 18px 10px 34px; position: relative;
  border: 1px solid var(--linea-forte); border-radius: 999px; background: var(--carta);
  transition: border-color .25s, color .25s;
}
.profili li::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; border: 2px solid var(--blu); background: var(--carta);
}
.profili li:hover { border-color: var(--blu); color: var(--blu); }

/* ---------- come si parte ---------- */
.partenza { padding: clamp(80px, 11vw, 150px) 0; background: var(--carta-2); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.passi {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
  position: relative;
}
/* il filo che collega i tre passi */
.passi::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--inchiostro);
}
.passi li { position: relative; display: grid; gap: 14px; align-content: start; padding-right: 12px; }
.passi span {
  justify-self: start;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  background: var(--carta-2); padding: 6px 12px 6px 0; position: relative;
}
.passi span::before {
  content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blu); margin-right: 10px; vertical-align: -1px;
  box-shadow: 0 0 0 4px var(--carta-2);
}
.passi h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); }
.passi p { color: var(--inchiostro-2); text-wrap: pretty; }

/* ---------- chi ---------- */
.chi { padding: clamp(80px, 11vw, 150px) 0; }
.chi__griglia {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
}
.chi h2 { margin-top: 22px; }
.chi__testo { display: grid; gap: 20px; color: var(--inchiostro-2); font-size: 18px; align-content: end; }
.chi__testo strong { color: var(--inchiostro); font-weight: 650; }

/* ---------- contatto ---------- */
.contatto {
  --mk-a: rgba(255,255,255,.9); --mk-b: #fff; --mk-bg: var(--blu);
  background: var(--blu); color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative; overflow: hidden;
}
.contatto::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.contatto__dentro { position: relative; display: grid; gap: 26px; }
.contatto__segno {
  position: absolute; right: var(--margine); top: 50%; width: clamp(160px, 26vw, 340px); height: auto; aspect-ratio: 1;
  transform: translateY(-50%); opacity: .95;
}
.contatto h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 14ch; font-stretch: 122%; }
.contatto p { font-size: 19px; color: #D6E4FF; max-width: 460px; }
.contatto__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }

/* ---------- cartiglio ---------- */
.cartiglio { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
/* le righe del cartiglio sono lo sfondo che si vede tra le celle */
.cartiglio__tabella {
  display: grid;
  grid-template-columns: 1.25fr 1.5fr 1.2fr 1fr .7fr;
  gap: 1px;
  background: var(--inchiostro);
  border: 2px solid var(--inchiostro);
}
.cartiglio .c {
  background: var(--carta);
  padding: 12px 16px 14px;
  font-size: 14.5px; font-weight: 500; line-height: 1.4;
}
.cartiglio .c small {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); font-weight: 400;
}
.cartiglio .c a { text-decoration: none; }
.cartiglio .c a:hover { color: var(--blu); }
.c--marchio { grid-row: span 2; display: flex; align-items: center; gap: 14px; }
.cartiglio__segno { width: 54px; height: 54px; }
.c--marchio .marchio__nome { font-size: 34px; }

/* ---------- comparsa allo scorrimento ---------- */
.js [data-appari] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-appari].visto { opacity: 1; transform: none; }

/* ==========================================================================
   Schermi più stretti
   ========================================================================== */
@media (max-width: 1080px) {
  .menu { gap: 20px; }
  .campo__griglia { grid-template-columns: minmax(0, 1fr); }
  .telefono { position: static; }
}

@media (max-width: 900px) {
  .menu, .testata .bottone--piccolo { display: none; }
  .hamburger { display: block; }
  .testata__dentro { height: 64px; }

  .apertura__piede { grid-template-columns: 1fr; gap: 28px; }
  .apertura__azioni { justify-self: start; }

  /* lo schema unifilare diventa verticale */
  .unifilare { grid-template-columns: 1fr; border-top: 0; border-bottom: 0; --y: 0px; background: none; }
  .unifilare::before { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: translateX(-1px); }
  .unifilare li {
    border-left: 0; border-bottom: 1px dashed var(--linea-forte);
    padding: 18px 0 18px 64px;
  }
  .unifilare li:last-child { border-bottom: 0; }
  .unifilare li::before { display: none; }
  .unifilare .nodo { top: 50%; }
  .unifilare b { padding-left: 0; }
  .unifilare li::after { top: 50%; transform: translateY(-50%); right: 0; }
  .unifilare__corrente {
    left: 31px; top: 0; width: 2px; height: 90px; transform: translateX(-1px);
    background: linear-gradient(180deg, transparent, var(--blu) 70%, #7FB0FF);
    animation-name: corrente-giu;
  }
  @keyframes corrente-giu { from { top: -90px; } to { top: 100%; } }

  .benefici { grid-template-columns: 1fr; }
  .beneficio, .beneficio:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0 !important; }
  .ruoli__griglia, .chi__griglia { grid-template-columns: 1fr; }
  .passi { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .passi::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .passi li { padding-left: 30px; }
  .passi span { margin-left: -30px; }

  .contatto__segno { opacity: .18; right: -40px; }

  .cartiglio__tabella { grid-template-columns: 1fr 1fr; }
  .c--marchio { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .apertura__note span:nth-child(2) { display: none; }
  .campo__voci { grid-template-columns: 1fr; }
  .voce, .voce:nth-child(even) { padding: 26px 0 28px; border-right: 0 !important; }
  .telefono__scocca { width: 286px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .unifilare__corrente { display: none; }
  .apertura__titolo em::after { transform: none; }
}
