/* Five Innovation Hub — sistema di design delle pagine di marketing.
   Mondo: studio notturno, carbone e avorio caldo, oro come accento raro, serif editoriale.
   Nessuna dipendenza: niente Tailwind/daisyUI/CDN. Le pagine transazionali (auth, carrello, admin) usano ancora _Layout. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("Fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("Fonts/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1b1b1e;
  --line: rgba(237, 232, 221, .10);
  --line-strong: rgba(237, 232, 221, .20);
  --text: #ede8dd;
  --text-muted: #a8a397;
  --paper: #f3eee4;
  --paper-2: #e9e2d3;
  --on-paper: #17150f;
  --on-paper-muted: #575141;
  --gold: #c9a24a;
  --gold-bright: #e2be6c;
  --gold-ink: #7a5c14;

  --serif: "Bricolage Grotesque", system-ui, "Segoe UI", sans-serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
input, textarea, select, button { font: inherit; color: inherit; }
::placeholder { color: var(--text-muted); opacity: .8; }
input, textarea { caret-color: var(--gold); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); color: var(--on-paper); }
.section--raised { background: var(--ink-2); }
.section--paper .muted { color: var(--on-paper-muted); }
.muted { color: var(--text-muted); }

/* Tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.75rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--gold-bright); }
.section--paper h2 em { color: var(--gold-ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.prose { max-width: 68ch; }
.stack-sm > * + * { margin-top: .75rem; }
.stack-md > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 3rem; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.section--paper .btn--ghost { border-color: rgba(23, 21, 15, .28); color: var(--on-paper); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-bright); }
  .btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
  .section--paper .btn--ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
}
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } }

/* Navigazione */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.nav__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.01em; }
.nav__brand img { height: 2rem; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .95rem; color: var(--text-muted); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links { position: absolute; inset: 4.5rem 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--text); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(201, 162, 74, .20), rgba(201, 162, 74, .06) 55%, transparent 75%); }
.hero__grid { display: grid; gap: 2.5rem; max-width: 62rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .5rem; }
.hero__sectors { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--text-muted); font-size: .95rem; }
.hero__sectors strong { color: var(--text); font-weight: 500; }

/* Sezioni: intestazione */
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 54rem; }
.head--split { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 4rem; } .head--split .lede { margin: 0; padding-top: .6rem; max-width: 44ch; } .head--split .head__aside { margin: 0; align-self: center; justify-self: end; } }

/* Linee di servizio: elenco editoriale, non griglia di card */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc__row { position: relative; display: grid; gap: .5rem 3rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: inherit; background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 74, .09), transparent 60%); background-repeat: no-repeat; background-size: 0 0; transition: background-size .2s; }
@media (min-width: 900px) { .svc__row { grid-template-columns: 1fr 1.2fr auto; align-items: center; } }
.svc__row h3 { transition: color .2s var(--ease-out); }
.svc__row p { margin: 0; color: var(--text-muted); max-width: 52ch; }
.svc__row svg { width: 1.6rem; height: 1.6rem; color: var(--gold); transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover { background-size: 100% 100%; }
  .svc__row:hover h3 { color: var(--gold-bright); }
  .svc__row:hover svg { transform: translate(5px, -5px); }
}

/* AI: testo + conversazione di esempio */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.chat { background: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 1.25rem; padding: 1.25rem; display: grid; gap: .75rem; max-width: 28rem; width: 100%; justify-self: center; }
.chat__label { font-size: .8rem; color: var(--text-muted); display: flex; justify-content: space-between; padding: 0 .25rem .25rem; }
.bubble { padding: .8rem 1rem; border-radius: 1rem; font-size: .95rem; line-height: 1.5; max-width: 88%; }
.bubble--in { background: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: .3rem; justify-self: start; }
.bubble--out { background: var(--gold); color: var(--ink); border-bottom-right-radius: .3rem; justify-self: end; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; }
.checks svg { width: 1.25rem; height: 1.25rem; color: var(--gold); margin-top: .25rem; }
.section--paper .checks svg { color: var(--gold-ink); }

/* Casi studio */
.cases { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.case { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; border: 1px solid var(--line-strong); border-radius: 1.25rem; overflow: hidden; background: var(--ink-2); transition: border-color .25s var(--ease-out); }
.case__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.case__ph { width: 100%; height: 100%; display: grid; place-items: end start; padding: 1.25rem; background: radial-gradient(120% 90% at 85% 100%, rgba(201, 162, 74, .22), transparent 60%), linear-gradient(160deg, #1b1b1e, #101012); }
.case__ph span { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(201, 162, 74, .4); border-radius: 999px; padding: .3rem .7rem; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .8s var(--ease-out); }
.case__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.case__meta { font-size: .85rem; color: var(--text-muted); }
.case__body p { margin: 0; color: var(--text-muted); font-size: .98rem; }
@media (hover: hover) and (pointer: fine) {
  .case:hover { border-color: var(--gold); }
  .case:hover .case__media img { transform: scale(1); }
}
.nda { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.nda p { margin: 0; max-width: 56ch; }

/* Metodo */
.method { position: relative; display: grid; gap: 2rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2.5rem; } }
.method::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(23, 21, 15, .18); }
.method__step { position: relative; padding-top: 1.75rem; counter-increment: step; }
.method__step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-ink); }
.method__step h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.method__step h3::before { content: counter(step, decimal-leading-zero) "  "; font-family: var(--sans); font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--gold-ink); vertical-align: middle; }
.method__step p { margin: 0; color: var(--on-paper-muted); font-size: 1rem; }
@media (max-width: 899px) {
  .method::before { top: 0; bottom: 0; width: 1px; height: auto; left: 4px; right: auto; }
  .method__step { padding: 0 0 0 2rem; }
  .method__step::before { top: .5rem; left: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .method::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--gold-ink); transform-origin: left; animation: draw linear both; animation-timeline: view(); animation-range: entry 25% cover 55%; }
    @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (max-width: 899px) {
      .method::after { width: 1px; height: 100%; left: 4px; transform-origin: top; animation-name: drawy; }
      @keyframes drawy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    }
  }
}

/* Stack */
.stackgrid { display: grid; gap: 2.75rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stackgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stackgrid { grid-template-columns: repeat(3, 1fr); } }
.stackgrid h3 { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line-strong); }
.stackgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.stackgrid li { font-size: 1.02rem; display: flex; align-items: center; gap: .65rem; }
.tech { flex: none; width: 1.15rem; height: 1.15rem; background: var(--gold); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; opacity: .9; transition: background-color .2s; }
.stackgrid li:hover .tech { background: var(--gold-bright); }

/* Recensioni */
.reviews { --gap: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .25rem; }
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline-offset: 6px; }
.review { scroll-snap-align: start; }
@media (min-width: 640px) { .reviews { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (min-width: 900px) { .reviews { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
.carousel__nav { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; }
.carousel__nav[hidden] { display: none; }
.carousel__btn { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: color .18s, border-color .18s, opacity .18s; }
.carousel__btn--prev svg { transform: rotate(180deg); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .carousel__btn:not(:disabled):hover { color: var(--gold-bright); border-color: var(--gold); } }
@media (pointer: coarse) { .carousel__nav { display: none; } }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.review { margin: 0; display: grid; gap: 1.25rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.review cite { font-style: normal; font-size: .92rem; color: var(--text-muted); }
.stars { display: inline-flex; gap: .2rem; color: var(--gold); }
.stars svg { width: 1rem; height: 1rem; }

/* Formule di ingaggio: colonne divise da filetti */
.offers { display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } .offer + .offer { border-left: 1px solid var(--line-strong); } }
.offer { padding: 2rem 0; display: grid; gap: 1rem; align-content: start; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 900px) { .offer { padding: 2.25rem 2rem 2.5rem; border-bottom: 0; } .offer:first-child { padding-left: 0; } }
.offer h3 { font-size: 1.75rem; }
.offer p { margin: 0; color: var(--text-muted); }
.offer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: var(--text); font-size: .98rem; }
.offer .price { font-variant-numeric: tabular-nums; color: var(--gold-bright); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--gold); transition: transform .25s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.5rem; max-width: 62ch; color: var(--text-muted); }
.section--paper .faq { border-color: rgba(23, 21, 15, .2); }
.section--paper .faq details { border-color: rgba(23, 21, 15, .2); }
.section--paper .faq summary svg { color: var(--gold-ink); }
.section--paper .faq .answer { color: var(--on-paper-muted); }

/* CTA finale */
.cta { text-align: left; display: grid; gap: 2rem; }
.cta h2 { max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4.5rem); }
.cta__row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Form */
.form { display: grid; gap: 1.25rem; max-width: 36rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .92rem; color: var(--text-muted); }
.field input, .field textarea, .field select { width: 100%; padding: .9rem 1rem; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: .75rem; transition: border-color .15s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(237, 232, 221, .35); }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--gold); }
.field--check label { color: var(--text); font-size: .95rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: .75rem; border: 1px solid var(--line-strong); background: var(--ink-2); }
.notice--ok { border-color: rgba(201, 162, 74, .6); }
.notice--err { border-color: #c8584b; color: #f0c4be; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Pagine interne */
.pagehead { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); }
.pagehead h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); max-width: 18ch; }
.crumbs { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.answerbox { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.55; max-width: 52ch; color: var(--text); border-top: 1px solid var(--line-strong); padding-top: 1.5rem; margin-top: 2rem; }
.twocol { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
.list-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.list-rules li { padding: 1rem 0; border-bottom: 1px solid var(--line-strong); }
.section--paper .list-rules, .section--paper .list-rules li { border-color: rgba(23, 21, 15, .2); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 4rem 2.5rem; background: var(--ink); }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--text-muted); margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; color: var(--text); }
.footer a:hover { color: var(--gold-bright); }
.footer__brand { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .75rem; }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .15s var(--ease-out); }
.wa svg { width: 1.6rem; height: 1.6rem; }
.wa:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wa:hover { background: var(--gold-bright); } }

/* Motion */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  html.js .hero h1 .line > span { display: inline-block; transform: translateY(105%); filter: blur(8px); opacity: 0; animation: lineIn .85s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  @keyframes lineIn { to { transform: none; filter: blur(0); opacity: 1; } }
  .hero::before { animation: drift 38s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(-8vmax, 6vmax, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Hero in vetro (schegge) ---------- */
.glass { position: relative; padding: clamp(.75rem, 3.5vw, 3rem); overflow: hidden; isolation: isolate; }
.glass::before { display: none; }
.glass__layer { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.glass__cell { background: var(--ink-2); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .6rem; position: relative; }
.glass__cell--title { padding-block: clamp(2.5rem, 8vw, 5rem); gap: 1.75rem; align-items: flex-start; }
.glass__cell--title h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.glass__cell--svc h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.glass__cell--svc p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.45; }
.glass__cell--svc svg { width: 1.1rem; height: 1.1rem; margin-top: auto; padding-top: .75rem; color: var(--gold); box-sizing: content-box; }
@media (hover: hover) { .glass__cell--svc:hover h2 { color: var(--gold-bright); } }
@media (min-width: 640px) { .glass__layer { grid-template-columns: 1fr 1fr; } .glass__cell--title { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .glass__layer { grid-template-columns: repeat(4, 1fr); } }

.glass.is-gl { height: clamp(620px, calc(100svh - 4.5rem), 920px); padding: 0; }
.glass.is-gl .glass__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.glass.is-gl .glass__layer { position: absolute; display: block; background: none; border: 0; border-radius: 0; overflow: visible; z-index: 1; transform-style: preserve-3d; pointer-events: none; }
.glass.is-gl .glass__cell { position: absolute; background: none; padding: 0; pointer-events: auto; will-change: transform; }
.glass__cell { text-decoration: none; color: var(--text); }
.glass.is-gl .glass__cell--title { width: calc(var(--pw) * .3); align-items: flex-start; gap: calc(var(--pw) * .018); }
.glass.is-gl .glass__cell--title h1 { font-size: calc(var(--pw) * .04); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.glass.is-gl .glass__cell--svc { width: calc(var(--pw) * .17); }
.glass.is-gl .glass__cell--svc h2 { font-size: max(1.05rem, calc(var(--pw) * .0155)); }
.glass.is-gl .glass__cell--svc p { font-size: max(.9rem, calc(var(--pw) * .0115)); line-height: 1.45; }
.glass.is-gl .glass__cell--svc svg { padding-top: .4rem; }
.glass.is-gl.is-hover-cell { cursor: pointer; }
/* in attesa del vetro 3D: spazio riservato, contenuto statico nascosto (si toglie appena parte, o dopo 4 s) */
.glass-wait .glass:not(.is-gl) { min-height: clamp(620px, calc(100svh - 4.5rem), 920px); }
.glass-wait .glass:not(.is-gl) .glass__layer { visibility: hidden; }
@media (max-width: 759px) { .glass-wait .glass:not(.is-gl) { min-height: calc(100vw * 2.2); } }

.intro { padding-block: clamp(3rem, 6vw, 5rem); }
.intro__row { display: grid; gap: 2.5rem; }
.intro .hero__sectors { margin-top: 0; border-top: 0; padding-top: 0; align-content: start; gap: .6rem 1.75rem; }
.intro .hero__sectors strong { flex-basis: 100%; }
.intro .lede { margin: 0; }
@media (min-width: 900px) { .intro__row { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 4rem; } .intro .lede { max-width: 52ch; } .intro .hero__sectors { padding-top: .5rem; } }

.guide { display: grid; gap: 2rem; border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink-2); align-items: center; }
.guide__cover { width: min(220px, 60%); height: auto; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.guide__body { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.guide__form { display: flex; flex-wrap: wrap; gap: .75rem; width: 100%; max-width: 32rem; }
.guide__form input { flex: 1 1 14rem; min-width: 0; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ink); color: var(--text); font: inherit; }
@media (min-width: 800px) { .guide { grid-template-columns: 240px 1fr; gap: 3.5rem; } }

/* Ingresso su mobile / senza WebGL: i riquadri entrano uno dopo l'altro, nessun movimento continuo */
@media (prefers-reduced-motion: no-preference) {
  .js .glass:not(.is-gl) .glass__cell { animation: cell-in .8s var(--ease-out) both; }
  .js .glass:not(.is-gl) .glass__cell:nth-child(2) { animation-delay: .1s; }
  .js .glass:not(.is-gl) .glass__cell:nth-child(3) { animation-delay: .2s; }
  .js .glass:not(.is-gl) .glass__cell:nth-child(4) { animation-delay: .3s; }
  .js .glass:not(.is-gl) .glass__cell:nth-child(5) { animation-delay: .4s; }
  @keyframes cell-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* Vetro su schermi verticali: stesse schegge, tagliate per il telefono */
.glass.is-gl { touch-action: pan-y; }
.glass.is-gl.is-portrait { height: calc(100vw * 2.2); }
.glass.is-gl.is-portrait .glass__cell--title { width: calc(var(--pw) * .88); gap: calc(var(--pw) * .06); }
.glass.is-gl.is-portrait .glass__cell--title h1 { font-size: calc(var(--pw) * .108); }
.glass.is-gl.is-portrait .glass__cell--svc { width: calc(var(--pw) * .38); gap: .3rem; }
.glass.is-gl.is-portrait .glass__cell--svc h2 { font-size: max(1rem, calc(var(--pw) * .047)); line-height: 1.15; }
.glass.is-gl.is-portrait .glass__cell--svc p { font-size: max(.85rem, calc(var(--pw) * .037)); line-height: 1.35; }


/* ---------- Materiale vetro: navigazione, footer e card delle pagine interne ---------- */
:root { --glass: linear-gradient(160deg, #1b1b1e 0%, #101012 100%); --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 40px -24px rgba(0, 0, 0, .9); --glass-line: 1px solid rgba(237, 232, 221, .11); }
.nav { top: .75rem; margin: .75rem auto 0; width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); }
.nav.is-scrolled { border-color: var(--line-strong); }
.nav .container { padding-inline: 1.25rem; }
@media (max-width: 900px) { .nav__links { inset: calc(100% + .5rem) 0 auto 0; background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); padding: .5rem 1.25rem 1rem; } }
.footer { margin: clamp(3rem, 6vw, 5rem) auto 1.5rem; width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); }
.offers { border-top: 0; gap: 1rem; }
.offers .offer, .offers .offer:first-child, .offers .offer:last-child, .offers .offer + .offer { padding: 1.75rem; background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); }
.review { padding: 1.5rem; background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); }
.cta { background: var(--glass); border: var(--glass-line); border-radius: 14px; box-shadow: var(--glass-rim); padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.cta::after, .pagehead::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(70%, 560px); aspect-ratio: 640 / 420; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20640%20420%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22g%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f0cd78%22%20stop-opacity%3D%22.5%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f0cd78%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e2be6c%22%20stroke-opacity%3D%22.2%22%20stroke-width%3D%221.2%22%3E%3Cpath%20d%3D%22M610%20380H320l-40-40V200L180%20100H40%22%2F%3E%3Cpath%20d%3D%22M610%20300H470l-40-40V150%22%2F%3E%3Cpath%20d%3D%22M540%20400V260l-60-60H300%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e2be6c%22%20stroke-opacity%3D%22.38%22%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%22100%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22430%22%20cy%3D%22150%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22200%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22610%22%20cy%3D%22380%22%20r%3D%2230%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22610%22%20cy%3D%22380%22%20r%3D%222.6%22%20fill%3D%22%23fce4a5%22%2F%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%22100%22%20r%3D%2222%22%20fill%3D%22url%28%23g%29%22%20opacity%3D%22.6%22%2F%3E%3C%2Fsvg%3E") no-repeat right bottom / contain; pointer-events: none; opacity: .9; }
.cta > *, .pagehead > .container { position: relative; z-index: 1; }
.pagehead { position: relative; overflow: hidden; }
.guide { background: var(--glass); box-shadow: var(--glass-rim); border-radius: 14px; }

.nav__links { gap: 1.5rem; }
.nav__links .nav__account { color: var(--gold-bright); }
.nav__cart { position: relative; display: inline-flex; align-items: center; color: var(--text-muted); }
.nav__cart svg { width: 1.3rem; height: 1.3rem; }
.nav__count { position: absolute; top: -.5rem; right: -.65rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .7rem; line-height: 1.1rem; font-weight: 600; text-align: center; }
@media (hover: hover) { .nav__cart:hover { color: var(--text); } }

/* ---------- Logo, social e colore all'hover dei link ---------- */
.nav__brand img { height: 2.1rem; }
.footer__logo { display: inline-block; margin-bottom: 1rem; }
.footer__logo img { width: min(220px, 100%); height: auto; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: var(--glass-line); color: var(--text-muted); transition: color .18s, border-color .18s, background-color .18s; }
.social svg { width: 1.1rem; height: 1.1rem; }
a, .link-arrow, .nav__links a { transition: color .18s var(--ease-out), text-decoration-color .18s, border-color .18s; }
@media (hover: hover) and (pointer: fine) {
  a:not([class]):hover, .footer a:hover, .link-arrow:hover, .nav__links a:hover, .nav__cart:hover, .crumbs a:hover, .legacy-skin a:not(.btn):not([class*="bg-"]):hover { color: var(--gold-bright); }
  .social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
  .section--paper a:not([class]):hover, .section--paper .link-arrow:hover { color: var(--gold-ink); }
  .case:hover h3, .offer a:hover { color: var(--gold-bright); }
}

/* Etichetta NDA, ben visibile su card e dettaglio */
.tag-nda { position: absolute; top: .9rem; left: .9rem; z-index: 2; padding: .3rem .7rem; border-radius: 999px; background: var(--gold); color: var(--ink); font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); }
.tag-nda--inline { position: static; display: inline-block; align-self: center; box-shadow: none; }

/* Elenchi con segnaposto: tecnologie (punto) e competenze (freccia) */
.list-rules--dot li, .list-rules--arrow li { display: flex; align-items: baseline; gap: .85rem; }
.list-rules--dot li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); transform: translateY(-.1em); }
.list-rules--arrow li::before { content: "\2192"; flex: none; color: var(--gold); font-weight: 500; }

/* Guida: la copertina è orizzontale, occupa tutta la sua colonna */
.guide__cover { width: 100%; max-width: 32rem; height: auto; border-radius: 10px; }
@media (min-width: 800px) { .guide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; } .guide__cover { max-width: none; } }

/* Sfaccettature di vetro nelle testate e nella CTA finale: solo CSS, nessuna richiesta di rete, nessun JavaScript, fuori dal flusso (nessun impatto sul layout) */
.pagehead { position: relative; overflow: hidden; isolation: isolate; }
.pagehead::before, .pagehead::after, .cta::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.pagehead::before { right: -6%; top: -35%; width: 44%; height: 160%; background: linear-gradient(140deg, rgba(201, 162, 74, .11), rgba(255, 255, 255, .02) 55%, transparent); clip-path: polygon(34% 0, 100% 0, 100% 64%, 0 100%); }
.pagehead::after { right: 16%; top: 6%; width: 22%; height: 120%; background: linear-gradient(200deg, rgba(255, 255, 255, .05), rgba(201, 162, 74, .04) 60%, transparent); clip-path: polygon(0 14%, 100% 0, 74% 100%, 16% 88%); }
.cta { position: relative; isolation: isolate; }
.cta::before { right: 0; top: -12%; width: 36%; height: 124%; background: linear-gradient(150deg, rgba(201, 162, 74, .10), rgba(255, 255, 255, .02) 60%, transparent); clip-path: polygon(30% 0, 100% 0, 100% 70%, 0 100%); }
.pagehead::before, .pagehead::after { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%); }
@media (max-width: 700px) { .pagehead::after { display: none; } .pagehead::before { width: 70%; right: -20%; } .cta::before { width: 55%; opacity: .7; } }
@media (prefers-reduced-motion: no-preference) {
  .pagehead::before, .pagehead::after, .cta::before { animation: shardIn 1.2s var(--ease-out) both; }
  @keyframes shardIn { from { opacity: 0; transform: translate3d(2rem, -.5rem, 0); } to { opacity: 1; transform: none; } }
}

/* Categoria del progetto sull'immagine: stessa pillola dei segnaposto (.case__ph span) */
.tag-cat { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(201, 162, 74, .4); border-radius: 999px; padding: .3rem .7rem; background: rgba(11, 11, 12, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
