/* Alata (Eduardo Tunni) e IBM Plex Sans (IBM): SIL Open Font License 1.1 */
@font-face { font-family: "Alata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alata-400.544e89c4.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.24828974.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.4d42c785.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.90d9c226.woff2") format("woff2"); }

:root {
  --inchiostro: #14213d;
  --blu: #244b9a;
  --blu-scuro: #1a3772;
  --azzurro: #9db8e6;
  --nebbia: #eef2f8;
  --linea: #d6dde9;
  --tenue: #56627b;
  --bianco: #ffffff;

  --titoli: "Alata", "Avenir Next", "Segoe UI", sans-serif;
  --testo: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --largo: 1180px;
  --margine: clamp(20px, 5vw, 56px);
  --sezione: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--testo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--inchiostro);
  background: var(--bianco);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--titoli);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.6em;
}

h3 { font-size: 1.375rem; line-height: 1.25; }

:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; border-radius: 2px; }

.contenitore {
  width: 100%;
  max-width: calc(var(--largo) + 2 * var(--margine));
  margin: 0 auto;
  padding: 0 var(--margine);
}

.salta {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--inchiostro);
  color: var(--bianco);
  padding: 10px 14px;
  z-index: 20;
  text-decoration: none;
}
.salta:focus { top: 12px; }

/* Pulsanti e collegamenti */

.pulsante {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--bianco);
  background: var(--blu);
  padding: 0.85em 1.4em;
  border-radius: 3px;
  transition: background-color 0.2s;
}
.pulsante:hover { background: var(--blu-scuro); }
.pulsante--piccolo { font-size: 0.9375rem; padding: 0.55em 1em; }

.collegamento {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--azzurro);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.collegamento:hover { text-decoration-color: var(--blu); }

/* Testata */

.testata {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.testata.staccata { border-bottom-color: var(--linea); }

.testata__riga {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.testata__logo img { width: 172px; }

.testata__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}
.testata__nav a { text-decoration: none; color: var(--tenue); }
.testata__nav a:hover { color: var(--inchiostro); }

/* Apertura */

.apertura { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }

.apertura__griglia {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.apertura h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.apertura__sotto {
  margin-top: 1.4em;
  font-size: 1.1875rem;
  color: var(--tenue);
  max-width: 34em;
}

.apertura__frase {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  padding-left: 22px;
  border-left: 3px solid var(--blu);
  margin-bottom: 1.6em;
}
.apertura__frase strong { font-weight: 600; color: var(--blu); }

.apertura__azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* Il vostro cliente è ovunque */

.ovunque {
  background: var(--inchiostro);
  color: #dfe6f3;
  padding: var(--sezione) 0;
}
.ovunque h2 { color: var(--bianco); }

.ovunque__griglia {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.ovunque__testo p { font-size: 1.125rem; max-width: 30em; }

.ruota { margin: 0; }
.ruota svg { width: 100%; max-width: 560px; margin: 0 auto; display: block; overflow: visible; }
.ruota figcaption {
  text-align: center;
  font-size: 0.9375rem;
  color: #9fb0cf;
  margin-top: 12px;
}

.ruota__orbita { fill: none; stroke: #3a4f7d; stroke-width: 1.5; stroke-dasharray: 4 8; }
.ruota__raggi line { stroke: #2c3d63; stroke-width: 1; }

.ruota__centro circle { fill: var(--blu); }
.ruota__centro text {
  font-family: var(--titoli);
  font-size: 34px;
  fill: var(--bianco);
  letter-spacing: 0.01em;
}

.ruota__nodo > circle { fill: var(--inchiostro); stroke: var(--azzurro); stroke-width: 1.5; }
.ruota__nodo .icona { fill: none; stroke: var(--bianco); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruota__nodo text { font-family: var(--testo); font-size: 17px; font-weight: 500; fill: #dfe6f3; }

.js .ruota__nodo, .js .ruota__raggi line { opacity: 0; }
.js .ruota.visibile .ruota__raggi line { animation: compari 0.6s ease-out forwards; }
.js .ruota.visibile .ruota__nodo { animation: compari 0.5s ease-out forwards; animation-delay: calc(0.25s + var(--i) * 0.12s); }

@keyframes compari { to { opacity: 1; } }

/* Omnimix */

.omnimix { padding: var(--sezione) 0; position: relative; overflow: hidden; }
.omnimix::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -260px; top: -300px;
  border: 1.5px dashed var(--linea);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(238, 242, 248, 0.55), 0 0 0 91.5px var(--linea);
  pointer-events: none;
}
.omnimix .contenitore { position: relative; }

.omnimix__intro { margin-bottom: clamp(48px, 6vw, 80px); }
.omnimix__intro h2 { text-wrap: balance; }
.omnimix__intro p { font-size: 1.1875rem; max-width: 46rem; }
@media (min-width: 1000px) { .omnimix__intro h2 { white-space: nowrap; } }

.fasi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(20px, 3vw, 40px);
  counter-reset: fase;
}

.fase {
  counter-increment: fase;
  border-top: 2px solid var(--inchiostro);
  padding-top: 22px;
}
.fase::before {
  content: counter(fase);
  display: block;
  font-family: var(--titoli);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--blu);
  margin-bottom: 18px;
}
.fase h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.fase p { color: var(--tenue); font-size: 1rem; }

/* Omnicanalità */

.omnicanalita { background: var(--nebbia); padding: var(--sezione) 0; }

.omnicanalita__griglia {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.omnicanalita__testo p { font-size: 1.125rem; max-width: 26em; }

.imbuto {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.imbuto__fase {
  width: var(--larghezza);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  color: var(--bianco);
  background: var(--inchiostro);
}
.imbuto__fase:nth-child(2) { background: var(--blu-scuro); }
.imbuto__fase:nth-child(3) { background: var(--blu); }
.imbuto__fase:nth-child(4) { background: #3e66b5; }
.imbuto__fase:nth-child(4) .imbuto__canali { color: var(--bianco); }

.imbuto__icone { display: flex; gap: 6px; flex: none; }
.imbuto__icone svg, .imbuto__esito svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.imbuto__icone svg { color: var(--azzurro); }
.imbuto__momento { font-family: var(--titoli); font-size: 1.25rem; margin-right: auto; }
.imbuto__canali { font-size: 0.9375rem; text-align: right; color: #dbe4f5; }

.imbuto__esito {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--blu-scuro);
  padding-top: 14px;
  border-top: 2px solid var(--blu);
}

/* Approccio integrato */

.approccio { padding: var(--sezione) 0; }

.approccio__intro {
  max-width: 46rem;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.approccio__sotto { font-size: 1.3125rem; color: var(--blu); margin-bottom: 1em; }

.ecosistema {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.mondo--tv { grid-column: 1 / -1; }

/* Un mondo per scheda, uguale su ogni schermo */
.mondo__scheda {
  background: var(--nebbia);
  border-radius: 6px;
  padding: 24px;
  height: 100%;
}
.mondo__centro {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.mondo__centro svg {
  grid-row: span 2;
  width: 52px; height: 52px; padding: 13px;
  border-radius: 50%;
  background: var(--inchiostro);
  box-shadow: 0 0 0 4px var(--bianco), 0 0 0 5.5px var(--blu);
  fill: none; stroke: var(--bianco); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.mondo__marchio { font-size: 0.8125rem; color: var(--tenue); letter-spacing: 0.02em; }
.mondo__centro h3 { font-size: 1.25rem; }

.mondo__editori {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mondo__editori li {
  font-family: var(--titoli);
  font-size: 1rem;
  line-height: 1.2;
  padding: 9px 14px;
  background: var(--bianco);
  border: 1px solid var(--linea);
  border-radius: 4px;
  white-space: nowrap;
}

/* Aree di competenza */

.competenze { padding: 0 0 var(--sezione); }
.competenze h2 { margin-bottom: clamp(32px, 4vw, 56px); }

.area {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(20px, 5vw, 80px);
  padding: 40px 0;
  border-top: 1px solid var(--linea);
}
.area:last-child { border-bottom: 1px solid var(--linea); }

.area__testa h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.area__disegno { width: 100%; max-width: 320px; margin-top: 28px; overflow: visible; }
.d-fondo { fill: var(--nebbia); }
.d-tratto { fill: none; stroke: var(--blu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-sottile { stroke: var(--azzurro); }
.d-pieno { fill: var(--blu); }
.d-pin path { fill: var(--inchiostro); }
.d-buco { fill: var(--bianco); }
.d-bianco { fill: none; stroke: var(--bianco); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-cursore { fill: var(--inchiostro); stroke: var(--bianco); stroke-width: 2; stroke-linejoin: round; }
.area__tema { margin-top: 8px; color: var(--blu); font-weight: 500; }
.area__corpo { max-width: 38em; }
.area__corpo strong { font-weight: 600; }

/* Perché Servizi Italia */

.perche { background: var(--nebbia); padding: var(--sezione) 0; position: relative; overflow: hidden; }
.perche::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: -300px; bottom: -320px;
  border-radius: 50%;
  border: 1.5px dashed #c9d3e4;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.45), 0 0 0 71.5px #c9d3e4;
  pointer-events: none;
}
.perche .contenitore { position: relative; z-index: 1; }
.perche__sotto { font-size: 1.1875rem; max-width: 36em; margin-bottom: clamp(36px, 5vw, 64px); }

.perche__punti {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.perche__punti dt {
  font-family: var(--titoli);
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--blu);
}
.perche__punti dd { margin: 0; color: var(--tenue); }

/* Contatti */

.contatti { background: var(--inchiostro); color: #dfe6f3; padding: var(--sezione) 0; }

.contatti__griglia {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
}
.contatti h2 {
  color: var(--bianco);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  margin: 0;
  max-width: 14ch;
}

.contatti__vie > p { font-size: 1.125rem; margin-bottom: 28px; }

.contatti__elenco { list-style: none; margin: 0; padding: 0; }
.contatti__elenco li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  column-gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #2f4168;
}
.contatti__elenco span { color: #9fb0cf; font-size: 0.9375rem; padding-top: 4px; }
.contatti__elenco a {
  color: var(--bianco);
  font-family: var(--titoli);
  font-size: 1.375rem;
  text-decoration: none;
}
.contatti__elenco a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contatti__elenco small { grid-column: 2; color: #9fb0cf; font-size: 0.875rem; }

/* Piede */

.piede { padding: 40px 0 48px; font-size: 0.9375rem; color: var(--tenue); }

.piede__griglia {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 48px;
  align-items: start;
}
.piede__logo { width: 140px; margin-top: 4px; }
.piede address { font-style: normal; }
.piede address strong { color: var(--inchiostro); font-weight: 600; }
.piede__contatti { text-align: right; }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--inchiostro); text-decoration: underline; }

/* Schermi stretti */

@media (max-width: 960px) {
  .testata__nav { display: none; }
  .testata__riga { justify-content: space-between; }

  .apertura__griglia,
  .ovunque__griglia,
  .omnicanalita__griglia,
  .contatti__griglia { grid-template-columns: 1fr; }

  .apertura__griglia { align-items: start; }
  .apertura h1 { max-width: 14ch; }

  .fasi { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }


  .area { grid-template-columns: 1fr; }
  .area__disegno { max-width: 280px; margin-top: 20px; }
  .perche__punti { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .testata__riga { height: 64px; }
  .testata__logo img { width: 140px; }

  .fasi { grid-template-columns: 1fr; }

  .ecosistema { grid-template-columns: 1fr; }
  .mondo__scheda { padding: 20px; }
  .mondo__editori li { font-size: 0.9375rem; padding: 8px 12px; }

  .imbuto__fase { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 18px; }
  .imbuto__icone { grid-row: span 2; }
  .imbuto__icone svg { width: 22px; height: 22px; }
  .imbuto__fase { width: 100% !important; }
  .imbuto__fase:nth-child(2) { width: 94% !important; }
  .imbuto__fase:nth-child(3) { width: 88% !important; }
  .imbuto__fase:nth-child(4) { width: 82% !important; }
  .imbuto__canali { text-align: left; }

  .piede__griglia { grid-template-columns: 1fr; }
  .piede__contatti { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ruota__nodo, .js .ruota__raggi line { opacity: 1; animation: none !important; }
}
