/* =====================================================================
   Pagina iniziale: foglio di stile proprio (le altre pagine usano stile.css)
   Petrolio notte e giallo del logo, titoli Bricolage Grotesque, testo Plus Jakarta Sans
   ===================================================================== */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("font/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("font/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("font/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("font/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("font/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("font/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("font/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --petrolio: #0A232C;      /* testata, apertura, sezioni scure */
  --petrolio-2: #12343F;    /* schede su fondo scuro */
  --petrolio-3: #071B22;    /* piede */
  --ghiaccio: #EDF2F1;      /* fondo chiaro */
  --ghiaccio-2: #E1E9E8;
  --bianco: #FFFFFF;
  --giallo: #F2B33D;        /* il giallo del logo */
  --giallo-2: #F7C766;
  --laser: #FF5847;         /* solo la linea del lettore */
  --acqua: #0B6B70;         /* testi piccoli e dettagli su fondo chiaro */
  --acqua-chiaro: #5FD0C4;  /* dettagli su fondo scuro */
  --testo: #0A232C;
  --testo-2: #46606A;
  --su-scuro: #A9C0C6;
  --bordo: #D3DEDD;
  --bordo-scuro: rgba(169, 192, 198, 0.18);
  --titoli: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --corpo: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --larghezza: 78rem;
  --curva: cubic-bezier(0.22, 0.8, 0.3, 1);
  --ombra: 0 1px 2px rgba(10, 35, 44, 0.06), 0 18px 40px -22px rgba(10, 35, 44, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--testo);
  background: var(--ghiaccio);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--titoli); line-height: 1.04; }
h3, h4 { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acqua); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--acqua); outline-offset: 3px; border-radius: 6px; }
.testata :focus-visible, .apertura :focus-visible, .scuro :focus-visible,
.fascia :focus-visible, .piede :focus-visible { outline-color: var(--giallo); }
::selection { background: var(--giallo); color: var(--petrolio); }

.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--giallo); color: var(--petrolio); font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 8px;
}
.salta:focus { top: 1rem; }

.riga { max-width: var(--larghezza); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
br.solo-telefono { display: none; }

/* Etichetta sopra i titoli: tre barre di codice a barre, poi il testo */
.etichetta {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.95rem; font-weight: 600; color: var(--acqua);
}
.etichetta::before {
  content: ""; width: 0.95rem; height: 0.95rem; flex: none;
  background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 8px, transparent 8px 10px, currentColor 10px 11px, transparent 11px 13px, currentColor 13px 15px);
}
.apertura .etichetta, .scuro .etichetta, .fascia .etichetta, .invito-demo .etichetta { color: var(--giallo); }

h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.9rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.96;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; }

.testa-sezione { max-width: 46rem; margin: 0 auto; text-align: center; }
.testa-sezione h2 { margin-top: 1rem; }
.introduzione { margin: 1.25rem auto 0; color: var(--testo-2); font-size: 1.15rem; max-width: 38rem; }
.scuro .introduzione { color: var(--su-scuro); }
.centrato { text-align: center; }

/* ---------- Bottoni e collegamenti ---------- */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.8rem 1.45rem;
  border-radius: 999px; border: 1px solid var(--giallo);
  background: var(--giallo); color: var(--petrolio);
  font: 700 1rem/1.2 var(--corpo); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 28px -14px rgba(242, 179, 61, 0.9);
  transition: transform 0.25s var(--curva), box-shadow 0.25s var(--curva), background-color 0.2s, border-color 0.2s;
}
.bottone:hover { background: var(--giallo-2); border-color: var(--giallo-2); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(242, 179, 61, 1); }
.bottone:active { transform: translateY(0); }
.bottone svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.freccia { display: inline-block; transition: transform 0.25s var(--curva); }
.bottone:hover .freccia, .link-freccia:hover .freccia { transform: translateX(4px); }

.bottone-vetro {
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border-color: rgba(255, 255, 255, 0.22); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bottone-vetro:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); box-shadow: none; }
.bottone-scuro { background: var(--petrolio); border-color: var(--petrolio); color: #fff; box-shadow: 0 12px 28px -16px rgba(10, 35, 44, 0.8); }
.bottone-scuro:hover { background: var(--petrolio-2); border-color: var(--petrolio-2); box-shadow: 0 16px 32px -16px rgba(10, 35, 44, 0.9); }
.bottone-piccolo { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.95rem; }

.link-freccia {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--acqua); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--curva);
}
.link-freccia:hover { background-size: 100% 1.5px; }

.azioni { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.azioni.centrate { margin-top: 2.5rem; }

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 40;
  background: var(--petrolio);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.testata.scorsa { border-bottom-color: var(--bordo-scuro); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6); }
.testata .riga { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; height: 4.6rem; }
.marchio { justify-self: start; display: inline-flex; min-width: 0; }
.logo { display: block; height: 2.5rem; width: auto; max-width: 100%; }
.logo-barre, .logo-innov { fill: #FFFFFF; }
.logo-activity { fill: var(--giallo); }
.testata .logo-alone { fill: var(--petrolio); stroke: var(--petrolio); }
.piede .logo-alone { fill: var(--petrolio-3); stroke: var(--petrolio-3); }

.menu { display: flex; align-items: center; gap: 0.15rem; justify-self: center; }
.menu a {
  position: relative; color: #D5E2E4; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.menu a[aria-current="page"] { color: #fff; }
.menu-cta { display: none; }
.testata > .riga > .bottone { justify-self: end; }
.menu-bottone {
  display: none; justify-self: end;
  width: 2.85rem; height: 2.85rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); color: #fff;
  border: 1px solid var(--bordo-scuro); border-radius: 12px;
}
.menu-bottone span, .menu-bottone span::before, .menu-bottone span::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform 0.25s var(--curva), background-color 0.25s;
}
.menu-bottone span::before, .menu-bottone span::after { content: ""; position: absolute; left: 0; }
.menu-bottone span::before { top: -6px; }
.menu-bottone span::after { top: 6px; }
.menu-aperto .menu-bottone span { background: transparent; }
.menu-aperto .menu-bottone span::before { transform: translateY(6px) rotate(45deg); }
.menu-aperto .menu-bottone span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Apertura ---------- */
.apertura {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, rgba(95, 208, 196, 0.16), transparent 70%),
    radial-gradient(40rem 26rem at 85% 75%, rgba(242, 179, 61, 0.08), transparent 70%),
    var(--petrolio);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
/* Fondo a barre verticali irregolari, come un codice a barre che sfuma */
.apertura-griglia {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: repeating-linear-gradient(90deg,
    rgba(169, 192, 198, 0.07) 0 1px, transparent 1px 22px,
    rgba(169, 192, 198, 0.05) 22px 25px, transparent 25px 41px,
    rgba(169, 192, 198, 0.06) 41px 42px, transparent 42px 70px);
  -webkit-mask: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
          mask: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.apertura-testo { max-width: 52rem; margin: 0 auto; text-align: center; }
.apertura h1 { margin-top: 1.4rem; }
.apertura h1 em { position: relative; font-style: normal; color: var(--giallo); white-space: nowrap; }
/* La riga del lettore passa una volta sotto "semplificata." */
.apertura h1 em::after {
  content: ""; position: absolute; left: 0; right: 0.3em; bottom: -0.06em; height: 0.07em; border-radius: 2px;
  background: var(--giallo); transform-origin: left;
  animation: sottolinea 1.4s var(--curva) 0.9s both;
}
@keyframes sottolinea {
  0% { transform: scaleX(0); background: var(--laser); box-shadow: 0 0 18px 2px rgba(255, 88, 71, 0.8); }
  60% { transform: scaleX(1); background: var(--laser); box-shadow: 0 0 18px 2px rgba(255, 88, 71, 0.8); }
  100% { transform: scaleX(1); background: var(--giallo); box-shadow: none; }
}
.sottotitolo { margin: 1.6rem auto 0; max-width: 41rem; text-wrap: pretty; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: #D2E0E2; }
.apertura .azioni { margin-top: 2.1rem; }
.nota-breve { margin: 1.4rem auto 0; max-width: 34rem; font-size: 0.92rem; color: var(--su-scuro); }

/* Ingresso dell'apertura: un'unica sequenza al caricamento */
.apertura-testo > * { animation: entra 0.9s var(--curva) both; }
.apertura-testo > :nth-child(2) { animation-delay: 0.08s; }
.apertura-testo > :nth-child(3) { animation-delay: 0.16s; }
.apertura-testo > :nth-child(4) { animation-delay: 0.24s; }
.apertura-testo > :nth-child(5) { animation-delay: 0.3s; }
.sincro { animation: entra 1.1s var(--curva) 0.35s both; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* La scena: si legge il codice, la giacenza cambia in tre posti nello stesso momento */
.sincro {
  --alto: clamp(18rem, 32vw, 25rem);
  position: relative; margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 64rem;
  display: grid; grid-template-columns: minmax(0, 1.35fr) 4.5rem minmax(0, 1fr); align-items: stretch;
}
.sincro-lettura {
  position: relative; height: var(--alto); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.sincro-lettura img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.sincro-lettura::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 35, 44, 0.65));
}
.laser {
  position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 88, 71, 0.18) 85%, rgba(255, 88, 71, 0.95) 98%, transparent);
  border-bottom: 2px solid var(--laser);
  box-shadow: 0 6px 22px rgba(255, 88, 71, 0.65);
  opacity: 0; transform: translateY(-100%);
}
.sincro.legge .laser { animation: passa-laser 1s cubic-bezier(0.45, 0, 0.3, 1) both; }
@keyframes passa-laser {
  0% { opacity: 0; transform: translateY(-100%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(265%); }
}
.sincro-prodotto {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2;
  display: flex; align-items: center; gap: 0.8rem; text-align: left;
  padding: 0.75rem 1rem; border-radius: 14px;
  background: rgba(10, 35, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.sincro-prodotto strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.sincro-ean { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--su-scuro); }
.sincro-led {
  width: 0.7rem; height: 0.7rem; flex: none; border-radius: 50%;
  background: #50656C; box-shadow: 0 0 0 3px rgba(80, 101, 108, 0.3);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.sincro.letto .sincro-led { background: #3EE08F; box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.3), 0 0 14px #3EE08F; }

.sincro-fili { width: 100%; height: var(--alto); overflow: visible; }
.sincro-fili path {
  fill: none; stroke: rgba(169, 192, 198, 0.28); stroke-width: 1.5;
  vector-effect: non-scaling-stroke; stroke-dasharray: 3 5;
}
.sincro-fili .impulso { stroke: var(--giallo); stroke-width: 2.5; stroke-dasharray: 18 100; stroke-dashoffset: 18; opacity: 0; filter: drop-shadow(0 0 4px rgba(242, 179, 61, 0.9)); }
.sincro.invia .impulso { animation: impulso 0.6s ease-in both; }
@keyframes impulso { 0% { stroke-dashoffset: 18; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }

.sincro-posti { display: grid; grid-template-rows: repeat(3, 1fr); gap: 0.7rem; height: var(--alto); }
.sincro-posti li {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 0.85rem; padding: 0.7rem 1.1rem; border-radius: 16px; text-align: left;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color 0.35s, box-shadow 0.35s, background-color 0.35s;
}
.sincro-posti svg {
  grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; padding: 0.5rem; border-radius: 11px;
  background: rgba(95, 208, 196, 0.12); fill: none; stroke: var(--acqua-chiaro); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.posto-nome { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.posto-voce { grid-column: 2; font-size: 0.85rem; color: var(--su-scuro); line-height: 1.3; }
.posto-numero {
  grid-column: 3; grid-row: 1 / 3;
  font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--mono); font-variant-numeric: tabular-nums;
  min-width: 2ch; text-align: right; color: #fff;
}
.sincro-posti li.aggiornato { border-color: rgba(242, 179, 61, 0.75); box-shadow: 0 0 0 1px rgba(242, 179, 61, 0.35), 0 0 32px -6px rgba(242, 179, 61, 0.55); }
.sincro-posti li.aggiornato .posto-numero { color: var(--giallo); animation: scatta 0.45s var(--curva); }
@keyframes scatta { 0% { transform: translateY(-0.35em); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Quattro fatti in una fascia di vetro */
.fatti {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bordo-scuro);
}
.fatti li { display: grid; gap: 0.2rem; padding: 1.5rem 1.4rem; text-align: left; }
.fatti li + li { border-left: 1px solid var(--bordo-scuro); }
.fatti svg { width: 1.6rem; height: 1.6rem; margin-bottom: 0.6rem; fill: none; stroke: var(--giallo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fatti strong { font-size: 1rem; }
.fatti span { font-size: 0.9rem; color: var(--su-scuro); line-height: 1.45; }

/* ---------- Nastro ---------- */
.nastro { overflow: hidden; background: var(--giallo); color: var(--petrolio); padding: 0.85rem 0; }
.nastro-pista { display: flex; width: max-content; animation: nastro 42s linear infinite; }
.nastro-pista span { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: 0.98rem; }
.nastro-pista span::after {
  content: ""; width: 0.8rem; height: 0.85rem; margin: 0 1.8rem;
  background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 7px, transparent 7px 9px, currentColor 9px 10px, transparent 10px 11px, currentColor 11px 13px);
}
@keyframes nastro { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
/* Ogni sezione ha il suo spazio sopra e sotto; i settori continuano gli strumenti sullo stesso fondo */
.sezione { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.sezione-settori { padding-top: 0; }
.scuro { background: var(--petrolio); color: #fff; }
.sezione-confronto, .sezione-metodo { background: var(--bianco); }

/* ---------- Strumenti ---------- */
.strumenti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.strumento {
  display: flex; flex-direction: column; padding: 0.6rem; border-radius: 24px;
  background: var(--bianco); border: 1px solid var(--bordo); box-shadow: var(--ombra);
  transition: transform 0.35s var(--curva), box-shadow 0.35s var(--curva), border-color 0.35s;
}
.strumento:hover { transform: translateY(-4px); border-color: rgba(11, 107, 112, 0.35); box-shadow: 0 1px 2px rgba(10, 35, 44, 0.06), 0 28px 50px -24px rgba(10, 35, 44, 0.45); }
.strumento .foto { aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; }
.strumento .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--curva); }
.strumento:hover .foto img { transform: scale(1.05); }
.strumento-corpo { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1rem 1.2rem; }
.strumento-tag {
  display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start;
  padding: 0.3rem 0.75rem 0.3rem 0.5rem; border-radius: 999px;
  background: rgba(11, 107, 112, 0.09); color: var(--acqua); font-size: 0.85rem; font-weight: 700;
}
.strumento-tag svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strumento h3 { margin-top: 0.95rem; }
.strumento-corpo > p:not(.strumento-tag) { margin-top: 0.65rem; color: var(--testo-2); font-size: 0.99rem; }
.strumento .link-freccia { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; }

/* Invito alla demo: l'unica scheda con il bordo luminoso in questa parte */
.invito-demo {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  margin-top: 1.4rem; padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 24px; border: 1px solid transparent; color: #fff;
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgba(242, 179, 61, 0.16), transparent 70%) padding-box,
    linear-gradient(var(--petrolio), var(--petrolio)) padding-box,
    linear-gradient(115deg, rgba(242, 179, 61, 0.9), rgba(95, 208, 196, 0.55) 45%, rgba(255, 255, 255, 0.08) 75%) border-box;
}
.invito-demo-testo { max-width: 40rem; }
.invito-demo h3 { margin-top: 0.7rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.invito-demo-testo > p:last-child { margin-top: 0.6rem; color: var(--su-scuro); }

/* ---------- Settori ---------- */
.settori { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.settore { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--petrolio); }
.settore img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--curva); }
.settore::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 35, 44, 0.92));
}
.settore figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 0.15rem; padding: 1.1rem 1.15rem; color: #fff;
}
.settore figcaption strong { font-family: var(--titoli); font-weight: 800; font-size: 1.12rem; line-height: 1.15; letter-spacing: -0.01em; }
.settore figcaption span { font-size: 0.88rem; color: #C9D8DB; }
.settore:hover img { transform: scale(1.06); }
.settori-nota { max-width: 44rem; margin: 2.5rem auto 0; text-align: center; color: var(--testo-2); }

/* ---------- Prima e dopo ---------- */
.griglia-confronto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.scheda-confronto { border-radius: 24px; padding: clamp(1.6rem, 3.5vw, 2.5rem); }
.scheda-confronto.prima { background: var(--ghiaccio); border: 1px solid var(--bordo); }
.scheda-confronto.dopo {
  color: #fff; border: 1px solid transparent;
  background:
    radial-gradient(26rem 16rem at 100% 0%, rgba(95, 208, 196, 0.16), transparent 70%) padding-box,
    linear-gradient(var(--petrolio), var(--petrolio)) padding-box,
    linear-gradient(160deg, rgba(242, 179, 61, 0.85), rgba(95, 208, 196, 0.4) 40%, rgba(255, 255, 255, 0.06) 70%) border-box;
  box-shadow: 0 40px 70px -40px rgba(10, 35, 44, 0.7);
}
.confronto-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--bordo); }
.dopo .confronto-testa { border-bottom-color: var(--bordo-scuro); }
.confronto-testa h3 { order: -1; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.confronto-tag { font-size: 0.88rem; font-weight: 700; color: var(--testo-2); }
.dopo .confronto-tag { color: var(--giallo); }
.confronto-lista { display: grid; gap: 1.3rem; margin-top: 1.5rem; }
.confronto-lista li { display: grid; grid-template-columns: auto 1fr; gap: 0.95rem; }
.confronto-icona {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-size: 0.85rem; font-weight: 700; margin-top: 0.1rem;
}
.prima .confronto-icona { background: var(--ghiaccio-2); color: #6B7F86; }
.dopo .confronto-icona { background: var(--giallo); color: var(--petrolio); }
.confronto-lista strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.confronto-lista p { margin-top: 0.25rem; font-size: 0.95rem; color: var(--testo-2); }
.dopo .confronto-lista p { color: var(--su-scuro); }

/* ---------- Chi sono ---------- */
.servizio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.foto-persona { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--ombra); }
.foto-persona img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.foto-persona::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10, 35, 44, 0.08); pointer-events: none; }
.servizio h2 { margin-top: 1rem; }
.servizio .azioni { justify-content: flex-start; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.persona-testo { margin-top: 1.3rem; color: var(--testo-2); font-size: 1.08rem; max-width: 40rem; }

/* ---------- Fascia finale ---------- */
.fascia { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(6rem, 12vw, 9.5rem) 0; background: var(--petrolio); }
/* Niente foto: le barre di un codice a barre, come nell'apertura, e la luce gialla del logo */
.fascia::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background:
    radial-gradient(40rem 20rem at 50% 115%, rgba(242, 179, 61, 0.16), transparent 70%),
    repeating-linear-gradient(90deg,
      rgba(169, 192, 198, 0.07) 0 1px, transparent 1px 22px,
      rgba(169, 192, 198, 0.05) 22px 25px, transparent 25px 41px,
      rgba(169, 192, 198, 0.06) 41px 42px, transparent 42px 70px);
  -webkit-mask: radial-gradient(75% 85% at 50% 50%, #000, transparent 80%);
          mask: radial-gradient(75% 85% at 50% 50%, #000, transparent 80%);
}
.fascia h2 { margin-top: 1rem; }
.fascia .riga > p:not(.etichetta) { max-width: 34rem; margin: 1.2rem auto 0; color: #D2E0E2; font-size: 1.1rem; }
.fascia .azioni { margin-top: 2rem; }

/* ---------- Piede ---------- */
.piede { background: var(--petrolio-3); color: #8EA6AC; font-size: 0.95rem; padding: 5rem 0 2rem; }
.piede-griglia { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
.piede-marchio { display: inline-flex; user-select: none; cursor: default; }
.piede-marchio .logo { height: 3rem; }
.piede-descrizione { margin-top: 1rem; max-width: 22rem; }
.piede h4 { color: #fff; font-family: var(--corpo); font-size: 0.95rem; font-weight: 700; }
.piede ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.piede a { color: #C6D5D8; text-decoration: none; transition: color 0.2s; }
.piede a:hover { color: var(--giallo); }
.piede-fondo {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(169, 192, 198, 0.14); font-size: 0.85rem;
}

/* ---------- WhatsApp ---------- */
.whatsapp-fisso { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; }
.whatsapp-bottone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #25D366; color: #fff; padding: 0.75rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(10, 35, 44, 0.2);
  transition: transform 0.25s var(--curva), box-shadow 0.25s var(--curva), background-color 0.2s;
}
.whatsapp-bottone:hover { background: #1FBF5B; transform: translateY(-2px); }
.whatsapp-icona { flex-shrink: 0; }

/* ---------- Comparsa allo scorrimento (sito.js) ---------- */
.js .rivela { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--curva), transform 0.8s var(--curva); }
.js .rivela.visibile { opacity: 1; transform: none; }
.js .rivela[data-ritardo="1"] { transition-delay: 0.08s; }
.js .rivela[data-ritardo="2"] { transition-delay: 0.16s; }
.js .rivela[data-ritardo="3"] { transition-delay: 0.24s; }
.js .svela-foto > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--curva); }
.js .svela-foto.visibile > * { clip-path: inset(0 0 0 0); }

/* ---------- Schermi medi ---------- */
@media (max-width: 1080px) {
  .testata .riga { grid-template-columns: 1fr auto; }
  .menu, .testata > .riga > .bottone { display: none; }
  .menu-bottone { display: block; }
  .menu-aperto .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: var(--petrolio); border-bottom: 1px solid var(--bordo-scuro);
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.7);
  }
  .menu-aperto .menu a { padding: 1rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--bordo-scuro); font-size: 1.08rem; color: #EAF2F3; }
  .menu-aperto .menu a:hover { background: none; color: var(--giallo); }
  .menu-aperto .menu .menu-cta {
    display: block; margin-top: 1.2rem; padding: 0.95rem 1rem; text-align: center;
    border: 0; border-radius: 999px; background: var(--giallo); color: var(--petrolio); font-weight: 700;
  }
  .strumenti { grid-template-columns: 1fr 1fr; }
  .strumento:last-child { grid-column: 1 / -1; flex-direction: row; }
  .strumento:last-child .foto { flex: 1 1 50%; aspect-ratio: auto; min-height: 15rem; }
  .strumento:last-child .strumento-corpo { flex: 1 1 50%; padding: 1.5rem; }
  .settori { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settore { aspect-ratio: 4 / 3; }
  .fatti { grid-template-columns: 1fr 1fr; }
  .fatti li:nth-child(3) { border-left: 0; }
  .fatti li:nth-child(n+3) { border-top: 1px solid var(--bordo-scuro); }
  .piede-griglia { grid-template-columns: 1fr 1fr; }
}

/* ---------- Telefono ---------- */
@media (max-width: 760px) {
  br.solo-telefono { display: inline; }
  body { font-size: 1rem; }
  .testata .riga { height: 4rem; }
  .logo { height: 2.1rem; }
  .sincro { grid-template-columns: 1fr; gap: 0; --alto: auto; }
  .sincro-lettura { height: auto; aspect-ratio: 4 / 3; }
  .sincro-fili { display: none; }
  .sincro-posti { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; height: auto; margin-top: 0.6rem; }
  .sincro-posti li { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0.15rem; padding: 0.75rem 0.7rem; text-align: center; justify-items: center; }
  .sincro-posti svg { grid-row: auto; width: 2rem; height: 2rem; padding: 0.4rem; }
  .posto-nome { font-size: 0.8rem; }
  .posto-voce { grid-column: auto; font-size: 0.72rem; }
  .posto-numero { grid-column: auto; grid-row: auto; text-align: center; font-size: 1.5rem; margin-top: 0.15rem; }
  .sincro-prodotto { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 0.6rem 0.8rem; }
  .sincro-prodotto strong { font-size: 0.9rem; }
  .fatti li { padding: 1.2rem 1rem; }
  .strumenti, .griglia-confronto, .servizio { grid-template-columns: 1fr; }
  .strumento:last-child { flex-direction: column; }
  .strumento:last-child .foto { aspect-ratio: 3 / 2; min-height: 0; }
  .strumento:last-child .strumento-corpo { padding: 1.3rem 1rem 1.2rem; }
  .settori { gap: 0.6rem; }
  .settore { aspect-ratio: 3 / 4; border-radius: 16px; }
  .settore figcaption { padding: 0.8rem; }
  .settore figcaption strong { font-size: 0.98rem; }
  .settore figcaption span { font-size: 0.78rem; }
  .foto-persona { max-width: 22rem; width: 100%; margin: 0 auto; }
  .piede-griglia { grid-template-columns: 1fr; gap: 2rem; }
  .whatsapp-fisso { bottom: 1rem; right: 1rem; }
  .whatsapp-bottone { padding: 0.65rem 1rem; font-size: 0.88rem; }
}
@media (max-width: 420px) {
  .whatsapp-testo { display: none; }
  .whatsapp-bottone { padding: 0.8rem; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .rivela, .js .svela-foto > * { opacity: 1; transform: none; clip-path: none; }
}
