/* Wave Studio — rifacimento di pcmp.jp con il cobalto al posto del verde.
   Mappa dei colori (loro → nostri):
   --dark-green #0d181a → --notte    #0a0f24
   --mid-green  #101918 → --notte-2  #0e1430
   --green      #00847f → --cobalto  #2b4cff
   --accent     #42f5c8 → --acceso   #7d95ff
   --light-green#93c8b6 → --chiaro   #a9b8ff
   --off-white  #f7f7f7 → --fondo    #f4f6ff
   --primary-black       → --inchiostro #111633 */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cobalto: #2b4cff;
  --cobalto-scuro: #1f38d6;
  --acceso: #7d95ff;
  --chiaro: #a9b8ff;
  --notte: #0a0f24;
  --notte-2: #0e1430;
  --notte-3: #141b3d;
  --fondo: #f4f6ff;
  --bianco: #fff;
  --inchiostro: #111633;
  --grigio: #646a89;
  --linea: #c9cde0;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 3.9vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--inchiostro);
  background: var(--notte);
  font-size: 15px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
mark { background: none; color: inherit; }
.display { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: -.005em; margin: 0; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 28px;
  height: 46px; padding: 0 6px 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .4s, color .4s, border-color .4s;
}
.btn__ico {
  font-style: normal; width: 32px; height: 32px; border-radius: 4px;
  display: grid; place-items: center; font-size: 14px;
  background: var(--acceso); color: var(--notte);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .btn__ico { transform: translateX(4px); }
.btn__ico--dark { background: var(--notte); color: var(--bianco); }
.btn--glass { border: 1px solid rgba(255,255,255,.22); color: var(--bianco); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.1); }
.btn--dark { background: var(--notte); color: var(--bianco); }
.btn--dark .btn__ico { background: var(--acceso); }
.btn--light { background: var(--bianco); color: var(--inchiostro); border: 1px solid var(--linea); }
.btn--ghost { height: 40px; padding: 0 26px; border: 1px solid rgba(169,184,255,.4); color: var(--chiaro); font-size: 12px; }
.btn--ghost:hover { background: rgba(169,184,255,.1); }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 500; line-height: 1;
  padding: 5px 7px; border-radius: 3px; background: var(--acceso); color: var(--notte);
}

/* ---------- caricamento ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--fondo); pointer-events: none; }
.loader__line { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: var(--inchiostro); opacity: .5; transform: scaleY(0); }
.loader__words { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(28px, 4.4vw, 46px); color: var(--inchiostro); line-height: 1; transform: translateY(14vh); }
.loader__l, .loader__r { position: absolute; opacity: 0; }
.loader__l { right: calc(50% + 4vw); }
.loader__r { left: calc(50% + 7vw); }
.loader__pill { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 999px; background: var(--notte); transform: scale(0); }
html:not(.js) .loader { display: none; }

/* ---------- testata ---------- */
.header { position: fixed; top: 20px; left: 0; width: 100%; z-index: 60; display: flex; justify-content: center; gap: 2px; padding: 0 16px; pointer-events: none; }
.header > * { pointer-events: auto; }
.header__pill {
  display: flex; align-items: center; width: min(305px, 70vw); height: 36px; padding: 0 12px;
  border-radius: 3px 0 0 3px; background: var(--cobalto); color: var(--bianco); font-size: 12.5px; font-weight: 500; letter-spacing: -.01em;
}
.header__menu { width: 36px; height: 36px; border-radius: 0 3px 3px 0; background: var(--cobalto); display: grid; place-content: center; gap: 3px; }
.header__menu span { display: block; width: 12px; height: 1.5px; background: var(--bianco); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.menu-open .header__menu span:first-child { transform: translateY(2.25px) rotate(45deg); }
.menu-open .header__menu span:last-child { transform: translateY(-2.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--notte); visibility: hidden; clip-path: inset(0 0 100% 0); overflow: hidden; }
.menu__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu__inner a { font-family: var(--display); font-size: clamp(36px, 6.4vw, 72px); line-height: 1.05; color: var(--chiaro); text-transform: uppercase; transition: color .35s; }
.menu__inner a:hover { color: var(--bianco); }
.menu__glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(125,149,255,.9), rgba(43,76,255,0) 65%); filter: blur(10px); left: 0; top: 0; transform: translate(-50%,-50%); pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; background:
  radial-gradient(120% 90% at 50% 36%, #16257a 0%, #0e1650 36%, #090e2c 70%, #060917 100%); }
.hero__fumo, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: absolute; inset: 0; padding: 0 var(--pad) 32px; display: grid; grid-template-columns: 1fr minmax(240px, 32%); grid-template-rows: 1fr auto; align-items: end; column-gap: 40px; }
.hero__title { grid-column: 1; margin: 0 0 54px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.6vw, 84px); line-height: .9; color: var(--bianco); letter-spacing: -.005em; }
.hero__title em { font-style: normal; color: var(--acceso); }
.hl { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.hl > span { display: block; }
.hero__text { grid-column: 2; margin: 0 0 54px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; max-width: 330px; }
.hero__btn { grid-column: 1; grid-row: 2; justify-self: start; }

/* ---------- pagina chiara che scorre sopra l'eroe ---------- */
.page { position: relative; z-index: 10; background: var(--fondo); transition: background-color .5s; }
.page.is-dark { background: var(--notte); }

.manifesto { padding: clamp(80px, 14vw, 200px) var(--pad) 80px; display: grid; grid-template-columns: 1fr 1fr; }
.manifesto__big { grid-column: 1 / -1; justify-self: center; max-width: 620px; margin: 0; font-family: var(--display); font-size: clamp(36px, 5.3vw, 58px); line-height: .98; color: var(--inchiostro); }
.manifesto__big .w { color: rgba(17,22,51,.14); transition: color .25s; }
.manifesto__big .w.on { color: var(--inchiostro); }
.manifesto__big mark .w.on { color: var(--acceso); }
.manifesto__small { grid-column: 2; margin: 120px 0 64px; max-width: 300px; justify-self: center; color: var(--grigio); font-size: 13.5px; line-height: 1.55; }
.manifesto__img { grid-column: 1 / -1; margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9.4; }
.manifesto__img img { width: 100%; height: 100%; object-fit: cover; }

.rule { height: 1px; background: var(--linea); margin-bottom: 24px; }
.services { padding: 0 var(--pad) clamp(120px, 16vw, 200px); }
.acc { margin-top: 24px; border-top: 1px solid var(--linea); }
.acc__item { border-bottom: 1px solid var(--linea); }
.acc__head { width: 100%; display: grid; grid-template-columns: clamp(60px, 9.4vw, 96px) 1fr 30px; align-items: center; padding: 24px 0; text-align: left; }
.acc__n { font-family: var(--display); font-size: clamp(32px, 4.3vw, 46px); color: rgba(17,22,51,.15); line-height: 1; transition: color .4s; }
.acc__t { font-family: var(--display); font-size: clamp(30px, 4.3vw, 46px); line-height: 1; color: var(--inchiostro); }
.acc__item.open .acc__n { color: var(--cobalto); }
.acc__plus { position: relative; width: 30px; height: 30px; border: 1px solid var(--linea); border-radius: 4px; background: var(--bianco); }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--inchiostro); transform: translate(-50%,-50%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.acc__plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc__item.open .acc__plus::after { transform: translate(-50%,-50%) rotate(0); }
.acc__body { height: 0; overflow: hidden; }
.acc__inner { padding: 0 0 32px clamp(60px, 9.4vw, 96px); display: grid; gap: 24px; max-width: 760px; justify-items: start; }
.acc__inner p { margin: 0; color: var(--grigio); font-size: 14.5px; }

.trust { padding: 0 var(--pad) clamp(120px, 14vw, 180px); text-align: center; }
.trust__h { margin: 0 0 56px; font-size: 15px; font-weight: 500; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.trust__cell { aspect-ratio: 1.03; background: #fbfbff; display: grid; place-items: center; border-radius: 4px; }
.trust__cell span { font-family: var(--display); font-size: clamp(16px, 2vw, 22px); letter-spacing: .06em; color: #b9bfd8; transition: color .4s; }
.trust__cell:hover span { color: var(--cobalto); }

.how { padding: 0 var(--pad) clamp(120px, 16vw, 200px); }
.how__label { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.how__bar { height: 32px; background: var(--notte); border-radius: 2px; transform-origin: left; margin-bottom: 56px; }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.how__left { position: sticky; top: 100px; align-self: start; display: grid; justify-items: start; }
.how__h { font-size: clamp(46px, 5.7vw, 72px); color: var(--inchiostro); }
.how__rule { width: 100%; height: 1px; background: var(--linea); margin: 32px 0 20px; }
.how__p { margin: 16px 0 40px; color: var(--grigio); font-size: 13.5px; max-width: 420px; }
.how__cards { display: grid; gap: 2px; }
.how__card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; background: var(--bianco); padding: 20px; border-radius: 4px; min-height: 150px; }
.how__thumb { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; }
.how__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .6s; }
.how__card:hover .how__thumb img { filter: none; }
.how__card p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.how__card b { font-weight: 600; }

/* ---------- zona scura ---------- */
.dark-zone { color: var(--bianco); }

.rows { padding: clamp(80px, 10vw, 140px) var(--pad) clamp(100px, 12vw, 160px); }
.rows__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 140px; }
.rows__h { margin: 0; font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.03em; color: var(--chiaro); }
.rows__p { margin: 0; max-width: 240px; font-size: 12px; color: rgba(255,255,255,.75); }
.rows__list { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 92px; padding: 0 32px; background: var(--notte-3); border-radius: 4px; font-size: 14px; transition: background-color .4s; }
.row:hover { background: #1a2350; }
.row__b { color: rgba(255,255,255,.85); }
.row__btn { justify-self: end; display: inline-flex; align-items: center; gap: 18px; height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; font-size: 11.5px; }
.row__btn i { font-style: normal; color: var(--acceso); }

.names { padding: 120px var(--pad) 200px; display: grid; grid-template-columns: 1fr 1.1fr 2.2fr; gap: 20px; align-items: start; }
.names__side { position: sticky; top: 120px; display: grid; gap: 14px; justify-items: start; }
.names__side p { margin: 0; font-size: 12px; color: rgba(255,255,255,.75); max-width: 210px; }
.names__photo { position: sticky; top: 120px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--notte-3); }
.names__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform .9s cubic-bezier(.2,.7,.2,1); }
.names__photo img.is-on { opacity: 1; transform: scale(1); }
.names__list { list-style: none; margin: 0; padding: 0; }
.names__list li { border-bottom: 1px solid rgba(255,255,255,.1); }
.names__list a { display: block; padding: 14px 0 12px; font-family: var(--display); font-size: clamp(36px, 4.9vw, 60px); line-height: 1; color: #3a4166; transition: color .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.names__list a.is-on { color: #eef1ff; transform: translateX(32px); }

.work { padding: 80px var(--pad) 160px; text-align: center; }
.work__h { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.03em; color: var(--chiaro); }
.work__p { margin: 0 auto 100px; max-width: 420px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.wcard { background: #0c1230; border-radius: 6px; overflow: hidden; }
.wcard__top { display: flex; justify-content: space-between; align-items: center; margin: 0 24px; padding: 18px 0 14px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 11.5px; position: relative; z-index: 2; }
.wcard__top i { width: 8px; height: 8px; border-radius: 50%; background: var(--acceso); box-shadow: 0 0 12px var(--acceso); }
.wcard__img { height: clamp(260px, 32vw, 380px); margin-top: -46px; position: relative; overflow: hidden; }
.wcard__img img { width: 100%; height: 115%; object-fit: cover; }
.wcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,48,.55) 0%, rgba(12,18,48,.1) 25%, rgba(12,18,48,.75) 68%, #0c1230 92%); }
.wcard__body { padding: 0 32px 40px; display: grid; justify-items: center; text-align: center; gap: 18px; margin-top: -40px; position: relative; }
.wcard__body h3 { font-size: clamp(30px, 3.6vw, 42px); color: var(--chiaro); }
.wcard__body p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.75); max-width: 380px; }

.why { padding: 120px var(--pad) 160px; }
.why__h { margin: 18px 0 48px; font-size: clamp(34px, 4.4vw, 54px); color: var(--bianco); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card { background: var(--notte-2); border-radius: 4px; padding: 24px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; }
.why__card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.85); }
.why__card b { display: block; font-weight: 600; color: var(--bianco); margin-bottom: 4px; }
.shape { position: relative; width: 60px; height: 60px; }
.shape i { position: absolute; display: block; }
.shape--a i { width: 28px; height: 60px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, var(--acceso), var(--cobalto-scuro)); }
.shape--a i:last-child { left: 32px; }
.shape--b i { width: 60px; height: 28px; background: linear-gradient(90deg, var(--cobalto), var(--acceso)); }
.shape--b i:first-child { border-radius: 0 0 30px 30px; }
.shape--b i:last-child { top: 32px; border-radius: 30px 30px 0 0; background: linear-gradient(90deg, var(--acceso), var(--cobalto-scuro)); }
.shape--c i { width: 30px; height: 60px; background: linear-gradient(180deg, var(--cobalto), var(--acceso)); }
.shape--c i:first-child { border-radius: 0 30px 30px 0; }
.shape--c i:last-child { left: 30px; border-radius: 30px 0 0 30px; background: linear-gradient(180deg, var(--acceso), var(--cobalto-scuro)); }

.contact { padding: 120px var(--pad) 120px; text-align: center; }
.contact__h { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--chiaro); }
.contact__p { margin: 0 auto 56px; font-size: 12.5px; color: rgba(255,255,255,.65); max-width: 320px; }
.form { background: #0c1230; border-radius: 6px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; text-align: left; }
.f { display: grid; gap: 10px; }
.f--wide { grid-column: 1 / -1; }
.f span { font-size: 11.5px; color: var(--chiaro); }
.f input, .f select, .f textarea { font: inherit; font-size: 13.5px; color: var(--bianco); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 6px 0 14px; outline: none; transition: border-color .4s; resize: vertical; border-radius: 0; }
.f select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9b8ff' fill='none'/%3E%3C/svg%3E") right 4px top 12px no-repeat; }
.f select option { background: var(--notte); }
.f input::placeholder, .f textarea::placeholder { color: rgba(255,255,255,.85); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--acceso); }
.form__end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.form__note { margin: 0; font-size: 11.5px; color: rgba(255,255,255,.5); max-width: 360px; }
.form__err { grid-column: 1 / -1; margin: 0; min-height: 1em; font-size: 12px; color: #ffb4b4; }
.form__err.ok { color: var(--chiaro); }

.footer { padding: 40px var(--pad) 32px; overflow: hidden; }
.footer__bar { height: 14px; background: #060918; border-radius: 2px; margin-bottom: 32px; }
.footer__row { display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: start; font-size: 11.5px; }
.footer__row a:hover { color: var(--acceso); }
.footer__logo { font-family: var(--display); font-size: 26px; letter-spacing: .02em; color: var(--bianco); }
.footer__giant { margin: 160px 0 24px; font-family: var(--display); font-size: 19.5vw; line-height: .82; white-space: nowrap; color: #eef1ff; display: flex; justify-content: space-between; gap: .22em; }
.footer__giant span { display: inline-block; }
.footer__giant .ch { display: inline-block; }
.footer__legal { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.45); }

/* ---------- telefono ---------- */
@media (max-width: 800px) {
  .hero__content { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .hero__title { margin-bottom: 24px; }
  .hero__text { grid-column: 1; margin-bottom: 28px; }
  .hero__btn { grid-row: 3; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__small { grid-column: 1; margin: 64px 0 40px; }
  .how__grid { grid-template-columns: 1fr; }
  .how__left { position: static; }
  .how__card { grid-template-columns: 64px 1fr; }
  .trust__grid, .why__grid, .work__grid { grid-template-columns: 1fr; }
  .trust__cell { aspect-ratio: 2.4; }
  .rows__top { flex-direction: column; margin-bottom: 60px; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .row__btn { justify-self: start; margin-top: 8px; }
  .names { grid-template-columns: 1fr; }
  .names__side { position: static; }
  .names__photo { position: relative; top: auto; max-width: 340px; width: 100%; }
  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .form__end { flex-direction: column; align-items: flex-start; }
  .footer__row { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  * { transition: none !important; }
}
