/* =================================================================
   ITALVANCE — Advertising Agency
   Brand Kit v1.0 (Luglio 2025)
   Palette: Blu Profondo #0A0E1A · Blu Elettrico #0066FF ·
            Arancione #FF6A00 · Grigio Chiaro #F2F4F7 · Bianco #FFFFFF
   Font:    Poppins (heading) · Montserrat (body)
   ================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --c-deep:      #0A0E1A;
  --c-deep-2:    #0d1424;
  --c-deep-3:    #111a30;
  --c-blue:      #0066FF;
  --c-blue-soft: #3d8bff;
  --c-orange:    #FF6A00;
  --c-orange-soft:#ff8a3d;
  --c-grey:      #F2F4F7;
  --c-grey-2:    #c7cede;
  --c-white:     #FFFFFF;

  /* Semantic */
  --bg:          var(--c-deep);
  --surface:     rgba(255,255,255,.03);
  --surface-2:   rgba(255,255,255,.05);
  --border:      rgba(255,255,255,.09);
  --border-hi:   rgba(61,139,255,.45);
  --text:        #eaf0fb;
  --text-dim:    #9aa6be;
  --text-mute:   #6b7690;

  /* Gradients */
  --grad-brand:  linear-gradient(100deg, var(--c-blue) 0%, var(--c-orange) 100%);
  --grad-blue:   linear-gradient(135deg, #0066FF 0%, #00a2ff 100%);
  --grad-streak: linear-gradient(90deg, transparent, var(--c-blue), var(--c-orange), transparent);

  /* Type */
  --f-head: "Poppins", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
  --dur: .5s;

  /* Z scale */
  --z-bg: 0;
  --z-base: 10;
  --z-nav: 40;
  --z-cursor: 90;
  --z-overlay: 60;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--c-orange); color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); z-index: var(--z-base); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-blue-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h2.section-title { font-size: clamp(2rem, 5vw, 3.35rem); margin-top: 1rem; }
.section-lead { color: var(--text-dim); font-size: clamp(1rem,1.6vw,1.15rem); max-width: 58ch; margin-top: 1.1rem; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-blue { color: var(--c-blue-soft); }
.text-orange { color: var(--c-orange-soft); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 30px -8px rgba(0,102,255,.6); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(255,106,0,.55); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--border-hi); background: var(--surface-2); transform: translateY(-3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }

/* ---------- 5. Custom cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none; z-index: var(--z-bg);
  background: radial-gradient(circle, rgba(0,102,255,.14), transparent 62%);
  transform: translate(-50%,-50%); transition: opacity .4s; opacity: 0;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed; inset: 1rem 1rem auto 1rem; z-index: var(--z-nav);
  max-width: calc(var(--container) + 2rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.1rem .7rem 1.3rem; border-radius: 100px;
  background: rgba(10,14,26,.55); backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: background-color .4s, box-shadow .4s, border-color .4s;
}
.nav.scrolled { background: rgba(10,14,26,.82); box-shadow: 0 10px 40px -18px rgba(0,0,0,.9); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .92rem; color: var(--text-dim); font-family: var(--f-head); font-weight: 500; position: relative; transition: color .25s; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--grad-brand); border-radius:2px; transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); }
.nav__burger span { display:block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width:20px; height:2px; background: var(--text); transition:.3s; }
.nav__burger span::before { top:-6px; } .nav__burger span::after { top:6px; }
.nav.open .nav__burger span { background: transparent; }
.nav.open .nav__burger span::before { top:0; transform: rotate(45deg); }
.nav.open .nav__burger span::after { top:0; transform: rotate(-45deg); }

/* ---------- 7. Logo ---------- */
.logo { display: inline-flex; align-items: center; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; color: #fff; }
.logo .v-mark { width: .82em; height: .82em; margin: 0 .02em; transform: translateY(.06em); }
.logo small { display:block; font-size: .5rem; letter-spacing:.34em; color: var(--text-mute); font-weight:500; margin-top: 2px; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 7rem; overflow: hidden; }
/* Sfondo scie di luce — solo CSS, GPU-friendly (transform/opacity) */
.hero__bg { position: absolute; inset: 0; z-index: var(--z-bg); overflow: hidden; }
.hero__bg .beam {
  position: absolute; left: -30%; width: 160%; height: 2px; border-radius: 3px;
  background: var(--grad-streak); opacity: .5; filter: blur(.5px);
  transform: rotate(-14deg); transform-origin: center;
  animation: beamMove 9s linear infinite;
}
.hero__bg .beam--1 { top: 22%; animation-duration: 8s;  animation-delay: -1s; }
.hero__bg .beam--2 { top: 38%; height: 1px; opacity: .32; animation-duration: 12s; animation-delay: -4s; }
.hero__bg .beam--3 { top: 55%; height: 3px; opacity: .6;  animation-duration: 7s;  animation-delay: -2s;
  background: linear-gradient(90deg, transparent, var(--c-orange), transparent); }
.hero__bg .beam--4 { top: 68%; height: 1px; opacity: .28; animation-duration: 14s; animation-delay: -6s; }
.hero__bg .beam--5 { top: 82%; height: 2px; opacity: .4;  animation-duration: 10s; animation-delay: -3s; }
@keyframes beamMove {
  0%   { transform: rotate(-14deg) translateX(-16%); opacity: 0; }
  15%  { opacity: .6; }
  85%  { opacity: .6; }
  100% { transform: rotate(-14deg) translateX(16%); opacity: 0; }
}
.hero__bg .grid-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 78% 12%, rgba(0,102,255,.22), transparent 60%),
    radial-gradient(45% 50% at 8% 85%, rgba(255,106,0,.16), transparent 60%);
  animation: huefloat 12s ease-in-out infinite alternate;
}
@keyframes huefloat { to { transform: translate3d(0,-14px,0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero__bg .beam, .hero__bg .grid-glow { animation: none; } }
.hero::after {
  content:""; position:absolute; inset:0; z-index: 1; pointer-events:none;
  background: radial-gradient(120% 90% at 80% 15%, transparent 40%, var(--c-deep) 100%),
              linear-gradient(180deg, transparent 55%, var(--c-deep) 100%);
}
.hero .container { position: relative; z-index: var(--z-base); }
.hero__badge {
  display:inline-flex; align-items:center; gap:.6rem; padding:.45rem .9rem .45rem .55rem;
  border-radius:100px; background: var(--surface-2); border:1px solid var(--border);
  font-size:.8rem; color: var(--text-dim); font-family: var(--f-head); font-weight:500;
}
.hero__badge b { color: var(--text); font-weight:600; }
.hero__badge .dot { width:8px; height:8px; border-radius:50%; background: var(--c-orange); box-shadow:0 0 0 4px rgba(255,106,0,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 8px rgba(255,106,0,0); } }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); margin-top: 1.6rem; max-width: 16ch; }
.hero h1 .line { display:block; overflow:hidden; }
.hero p.hero__lead { margin-top: 1.6rem; color: var(--text-dim); font-size: clamp(1.05rem,1.8vw,1.28rem); max-width: 50ch; }
.hero__cta { display:flex; flex-wrap:wrap; gap:1rem; margin-top: 2.3rem; }
.hero__stats { display:flex; flex-wrap:wrap; gap: clamp(1.5rem,4vw,3.5rem); margin-top: 3.5rem; }
.hero__stats .stat b { font-family:var(--f-head); font-weight:700; font-size: clamp(1.8rem,3vw,2.5rem); display:block; line-height:1; }
.hero__stats .stat span { color: var(--text-mute); font-size:.82rem; letter-spacing:.02em; }
.scroll-hint { position:absolute; left:50%; bottom:2rem; transform:translateX(-50%); z-index:var(--z-base); display:flex; flex-direction:column; align-items:center; gap:.5rem; color:var(--text-mute); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; font-family:var(--f-head); }
.scroll-hint .mouse { width:22px; height:36px; border:2px solid var(--border); border-radius:12px; position:relative; }
.scroll-hint .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:7px; background:var(--c-blue-soft); border-radius:2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1;transform:translate(-50%,0)} 70%{opacity:0;transform:translate(-50%,10px)} 100%{opacity:0} }

/* ---------- 9. Marquee (loghi/claim) ---------- */
.marquee { border-block: 1px solid var(--border); padding-block: 1.4rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display:flex; gap:3.5rem; width:max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family:var(--f-head); font-weight:600; font-size:clamp(1rem,2vw,1.4rem); color:var(--text-mute); display:flex; align-items:center; gap:3.5rem; white-space:nowrap; }
.marquee__track span::after { content:"◆"; color:var(--c-orange); font-size:.6em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- 10. Services ---------- */
.services__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.2rem; }
.svc {
  position: relative; padding: 2.2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s;
}
.svc::before { content:""; position:absolute; inset:0; opacity:0; transition:opacity .45s; background: radial-gradient(120% 80% at 50% 0%, rgba(0,102,255,.16), transparent 60%); }
.svc::after { content:""; position:absolute; left:0; top:0; height:3px; width:100%; transform:scaleX(0); transform-origin:left; background:var(--grad-brand); transition:transform .5s var(--ease); }
.svc:hover { transform: translateY(-8px); border-color: var(--border-hi); }
.svc:hover::before { opacity:1; }
.svc:hover::after { transform: scaleX(1); }
.svc__ico { width:56px; height:56px; border-radius:14px; display:grid; place-items:center; background: rgba(0,102,255,.1); border:1px solid var(--border); margin-bottom:1.5rem; color:var(--c-blue-soft); }
.svc__ico svg { width:28px; height:28px; }
.svc:nth-child(2) .svc__ico { color: var(--c-orange-soft); background: rgba(255,106,0,.1); }
.svc h3 { font-size: 1.45rem; }
.svc__num { position:absolute; top:1.6rem; right:1.8rem; font-family:var(--f-head); font-weight:700; font-size:1rem; color:var(--text-mute); }
.svc p { color: var(--text-dim); margin-top:.7rem; font-size:.96rem; }
.svc__list { margin-top:1.4rem; display:flex; flex-direction:column; gap:.6rem; }
.svc__list li { display:flex; gap:.6rem; align-items:flex-start; font-size:.9rem; color:var(--text); }
.svc__list li svg { width:18px; height:18px; color:var(--c-orange-soft); flex-shrink:0; margin-top:.15rem; }
.svc__link { margin-top:1.8rem; display:inline-flex; align-items:center; gap:.5rem; font-family:var(--f-head); font-weight:600; font-size:.9rem; color:var(--c-blue-soft); }
/* Card servizio interamente cliccabile (stretched link verso la pagina) */
.svc__link::after { content:""; position:absolute; inset:0; z-index:2; }
.svc__link svg { width:16px; height:16px; transition:transform .3s var(--ease); }
.svc:hover .svc__link svg { transform: translateX(4px); }

/* ---------- 11. Approccio / metodo ---------- */
.method { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.method__steps { display:flex; flex-direction:column; gap:1rem; margin-top:2.4rem; }
.step { display:grid; grid-template-columns:auto 1fr; gap:1.3rem; padding:1.4rem 1.5rem; border-radius:var(--radius-sm); background:var(--surface); border:1px solid var(--border); transition:border-color .35s, background-color .35s; }
.step:hover { border-color:var(--border-hi); background:var(--surface-2); }
.step__n { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-family:var(--f-head); font-weight:700; background:var(--grad-brand); color:#fff; }
.step h4 { font-size:1.1rem; }
.step p { color:var(--text-dim); font-size:.9rem; margin-top:.25rem; }
.method__visual { position:relative; aspect-ratio: 1/1; border-radius:24px; overflow:hidden; border:1px solid var(--border); background:linear-gradient(160deg,var(--c-deep-3),var(--c-deep)); display:grid; place-items:center; }
.method__visual .orb { position:absolute; border-radius:50%; filter:blur(50px); }
.method__visual .orb.b { width:60%; height:60%; background:rgba(0,102,255,.4); top:-10%; left:-10%; }
.method__visual .orb.o { width:55%; height:55%; background:rgba(255,106,0,.35); bottom:-12%; right:-8%; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-24px); } }
.ring-stat { position:relative; z-index:2; text-align:center; }
.ring-stat b { font-family:var(--f-head); font-weight:700; font-size:clamp(3rem,7vw,4.5rem); background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; display:block; line-height:1; }
.ring-stat span { color:var(--text-dim); font-size:.95rem; }

/* ---------- 12. Stats band ---------- */
.stats-band { background: linear-gradient(120deg, var(--c-deep-2), var(--c-deep-3)); border-block:1px solid var(--border); }
.stats-band .grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; text-align:center; }
.stats-band .num { font-family:var(--f-head); font-weight:700; font-size:clamp(2.2rem,4.5vw,3.4rem); line-height:1; }
.stats-band .num.blue{color:var(--c-blue-soft)} .stats-band .num.or{color:var(--c-orange-soft)}
.stats-band .lbl { color:var(--text-dim); font-size:.88rem; margin-top:.4rem; }

/* ---------- 13. Testimonials ---------- */
.tst__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; margin-top:3rem; }
.tst { padding:2rem; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); display:flex; flex-direction:column; gap:1.3rem; transition:transform .4s var(--ease), border-color .4s; }
.tst:hover{ transform:translateY(-6px); border-color:var(--border-hi); }
.tst__quote { font-size:1.02rem; color:var(--text); line-height:1.6; }
.tst__quote::before{ content:"“"; font-family:var(--f-head); font-size:2.4rem; color:var(--c-orange); line-height:0; display:block; height:.6em; }
.tst__who { display:flex; align-items:center; gap:.9rem; margin-top:auto; }
.tst__av { width:44px; height:44px; border-radius:50%; background:var(--grad-blue); display:grid; place-items:center; font-family:var(--f-head); font-weight:600; color:#fff; }
.tst__who b { font-family:var(--f-head); font-size:.95rem; display:block; }
.tst__who span { color:var(--text-mute); font-size:.82rem; }
.stars { display:flex; gap:.15rem; color:var(--c-orange); }
.stars svg{ width:16px; height:16px; }

/* ---------- 14. CTA ---------- */
.cta-wrap { position:relative; border-radius:28px; overflow:hidden; padding:clamp(2.5rem,6vw,5rem); text-align:center; border:1px solid var(--border-hi); background:linear-gradient(150deg,var(--c-deep-3),var(--c-deep)); }
.cta-wrap::before{ content:""; position:absolute; inset:0; z-index:0; background:radial-gradient(60% 120% at 50% 0%, rgba(0,102,255,.25), transparent 60%), radial-gradient(50% 120% at 90% 100%, rgba(255,106,0,.22), transparent 55%); }
.cta-wrap > * { position:relative; z-index:1; }
.cta-wrap h2 { font-size:clamp(2rem,5vw,3.4rem); }
.cta-wrap p { color:var(--text-dim); max-width:48ch; margin:1.1rem auto 2rem; }
.cta-wrap .hero__cta { justify-content:center; }

/* ---------- 15. Footer ---------- */
.footer { border-top:1px solid var(--border); padding-block:4rem 2rem; }
.footer__top { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.5rem; }
.footer__brand p { color:var(--text-dim); font-size:.92rem; margin-top:1.2rem; max-width:34ch; }
.footer h5 { font-family:var(--f-head); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; color:var(--text-mute); margin-bottom:1.1rem; }
.footer__col a { display:block; color:var(--text-dim); font-size:.92rem; padding:.35rem 0; transition:color .25s; }
.footer__col a:hover { color:var(--c-blue-soft); }
.footer__bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; align-items:center; margin-top:3rem; padding-top:1.6rem; border-top:1px solid var(--border); color:var(--text-mute); font-size:.82rem; }
.footer__social { display:flex; gap:.7rem; }
.footer__social a { width:40px; height:40px; border-radius:11px; border:1px solid var(--border); display:grid; place-items:center; color:var(--text-dim); transition:.3s; }
.footer__social a:hover { border-color:var(--border-hi); color:var(--c-blue-soft); transform:translateY(-3px); }
.footer__social svg{ width:18px; height:18px; }

/* ---------- 16. Scroll reveal ---------- */
[data-reveal] { opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity:1; transform:none; }
[data-reveal-delay="1"]{ transition-delay:.08s } [data-reveal-delay="2"]{ transition-delay:.16s } [data-reveal-delay="3"]{ transition-delay:.24s }

/* ---------- 17. Responsive ---------- */
@media (max-width: 980px) {
  .services__grid, .tst__grid { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr; }
  .method__visual { max-width:460px; }
  .stats-band .grid { grid-template-columns: repeat(2,1fr); gap:2.2rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { position:fixed; inset:5.2rem 1rem auto 1rem; flex-direction:column; align-items:flex-start; gap:.3rem; padding:1rem; background:rgba(13,20,36,.96); backdrop-filter:blur(18px); border:1px solid var(--border); border-radius:20px; transform:translateY(-12px); opacity:0; pointer-events:none; transition:.35s var(--ease); }
  .nav.open .nav__links { transform:none; opacity:1; pointer-events:auto; }
  .nav__links a { padding:.6rem .2rem; font-size:1rem; width:100%; }
  .nav__burger { display:flex; }
  .nav .btn--primary { display:none; }
  .services__grid, .tst__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap:2rem; }
  .hero { padding-top: 6rem; }
}

/* ---------- 18. Modale "Richiedi strategia" ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-overlay); display: none; align-items: center; justify-content: center; padding: clamp(.75rem, 3vw, 2rem); }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,7,15,.72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1fr;
  width: 100%; max-width: 940px; max-height: calc(100svh - 2rem); overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border-hi);
  background: linear-gradient(160deg, var(--c-deep-2), var(--c-deep));
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .4s var(--ease), opacity .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: .9rem; right: .9rem; z-index: 5; width: 42px; height: 42px;
  border-radius: 12px; display: grid; place-items: center; color: var(--text);
  background: rgba(10,14,26,.5); border: 1px solid var(--border); transition: .25s;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--surface-2); border-color: var(--border-hi); transform: rotate(90deg); }

/* Pannello brand */
.modal__aside { position: relative; overflow: hidden; padding: 2.4rem; display: flex; background: linear-gradient(165deg, var(--c-deep-3), var(--c-deep)); border-right: 1px solid var(--border); }
.modal__aside-bg { position: absolute; inset: 0; opacity: .6; }
.modal__aside-bg .beam { position: absolute; left: -30%; width: 160%; height: 2px; background: var(--grad-streak); transform: rotate(-16deg); }
.modal__aside-bg .beam--1 { top: 30%; opacity: .5; }
.modal__aside-bg .beam--3 { top: 62%; background: linear-gradient(90deg, transparent, var(--c-orange), transparent); opacity: .45; }
.modal__aside::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 20% 90%, rgba(255,106,0,.16), transparent 60%), radial-gradient(60% 50% at 90% 10%, rgba(0,102,255,.22), transparent 60%); }
.modal__aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.1rem; }
.modal__aside .logo { font-size: 1.15rem; }
.modal__aside h3 { font-size: 1.5rem; line-height: 1.15; margin-top: .4rem; }
.modal__aside p { color: var(--text-dim); font-size: .92rem; }
.modal__perks { display: flex; flex-direction: column; gap: .7rem; margin-top: .3rem; }
.modal__perks li { display: flex; gap: .6rem; align-items: center; font-size: .9rem; color: var(--text); }
.modal__perks svg { width: 20px; height: 20px; color: var(--c-orange-soft); flex-shrink: 0; }
.modal__trust { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.modal__trust .stars { color: var(--c-orange); margin-bottom: .4rem; }
.modal__trust span { color: var(--text-mute); font-size: .8rem; }

/* Body / form */
.modal__body { overflow-y: auto; }
.modal__form-wrap { padding: 2.4rem clamp(1.4rem, 3vw, 2.4rem); }
.modal__heading { font-size: 1.6rem; margin: .6rem 0 1.4rem; }
.form { display: flex; flex-direction: column; gap: 1.05rem; }
.form[hidden], .form__success[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__banner { font-size: .85rem; padding: .7rem .9rem; border-radius: 10px; text-align: center;
  color: #ffb4b4; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); }
.form__banner[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .field__label { font-family: var(--f-head); font-weight: 500; font-size: .82rem; color: var(--text-dim); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; padding: .8rem .95rem; border-radius: 11px; color: var(--text); font: inherit; font-size: .92rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus { outline: none; border-color: var(--c-blue); background: rgba(0,102,255,.06); box-shadow: 0 0 0 3px rgba(0,102,255,.15); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; }
.select-wrap svg { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-mute); pointer-events: none; }
.select-wrap select option { background: var(--c-deep-2); color: var(--text); }

/* Chips servizi */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-flex; align-items: center; padding: .55rem .95rem; border-radius: 100px; font-size: .85rem; color: var(--text-dim);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: .2s; }
.chip:hover span { border-color: var(--border-hi); color: var(--text); }
.chip input:checked + span { background: rgba(0,102,255,.14); border-color: var(--c-blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--c-orange); outline-offset: 2px; }

/* Consenso */
.consent { flex-direction: row; align-items: flex-start; gap: .65rem; cursor: pointer; }
.consent input { margin-top: .15rem; width: 18px; height: 18px; accent-color: var(--c-blue); flex-shrink: 0; cursor: pointer; }
.consent span { font-size: .82rem; color: var(--text-dim); line-height: 1.5; }
.consent a { color: var(--c-blue-soft); text-decoration: underline; }

/* Errori */
.field__err { display: none; color: #ff6b6b; font-size: .76rem; }
.field.has-err input, .field.has-err select { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.12); }
.field.has-err .field__err { display: block; }

/* Submit + spinner */
.form__submit { justify-content: center; margin-top: .3rem; }
.form__spinner { display: none; width: 20px; height: 20px; animation: spin .8s linear infinite; }
.form.is-loading .form__submit { pointer-events: none; opacity: .85; }
.form.is-loading .form__submit-label { opacity: .7; }
.form.is-loading .form__submit-arrow { display: none; }
.form.is-loading .form__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: .76rem; color: var(--text-mute); text-align: center; margin-top: -.2rem; }

/* Successo */
.form__success { text-align: center; padding: 1.5rem 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.form__success-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: 0 12px 40px -10px rgba(0,102,255,.6); animation: pop .5s var(--ease); }
.form__success-ico svg { width: 34px; height: 34px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.form__success h4 { font-size: 1.5rem; }
.form__success p { color: var(--text-dim); max-width: 34ch; }
.form__success [data-success-name] { color: var(--c-blue-soft); font-weight: 600; }

/* Blocco scroll body */
body.modal-open { overflow: hidden; }

/* Responsive modale */
@media (max-width: 780px) {
  .modal__dialog { grid-template-columns: 1fr; max-height: calc(100svh - 1.5rem); }
  .modal__aside { display: none; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .modal__form-wrap { padding: 2rem 1.25rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .modal__dialog, .modal__overlay { transition: none; }
  .form__success-ico, .form__spinner { animation: none; }
}

/* ---------- 19. Pagine servizio ---------- */
/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-mute); }
.breadcrumb a { color: var(--text-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--c-blue-soft); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--text); }

/* Subhero (hero pagina interna) */
.subhero { position: relative; padding: 8.5rem 0 clamp(3rem,6vw,5rem); overflow: hidden; }
.subhero__bg { position: absolute; inset: 0; z-index: var(--z-bg); overflow: hidden; }
.subhero__bg::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 85% 0%, rgba(0,102,255,.2), transparent 60%), radial-gradient(50% 50% at 5% 100%, rgba(255,106,0,.14), transparent 60%); }
.subhero__bg .beam { position:absolute; left:-30%; width:160%; height:2px; background:var(--grad-streak); transform:rotate(-14deg); opacity:.4; animation: beamMove 11s linear infinite; }
.subhero__bg .beam.o { background: linear-gradient(90deg, transparent, var(--c-orange), transparent); }
.subhero .container { position: relative; z-index: var(--z-base); }
.subhero__inner { max-width: 40rem; }
.subhero__ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,102,255,.1); border: 1px solid var(--border); color: var(--c-blue-soft); margin: 1.4rem 0; }
.subhero__ico.or { color: var(--c-orange-soft); background: rgba(255,106,0,.1); }
.subhero__ico svg { width: 30px; height: 30px; }
.subhero h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); margin-top: .4rem; }
.subhero__lead { color: var(--text-dim); font-size: clamp(1.05rem,1.7vw,1.2rem); margin-top: 1.2rem; max-width: 46ch; }
.subhero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.subhero__pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 100px; font-size: .85rem; font-family: var(--f-head); font-weight: 500; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.pill svg { width: 16px; height: 16px; color: var(--c-orange-soft); }

/* Sezione intro con occhiello */
.lead-block { max-width: 62ch; }
.lead-block p { color: var(--text-dim); margin-top: 1.1rem; font-size: 1.05rem; }

/* Feature grid (cosa facciamo) */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3rem; }
.feat { padding: 1.9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s, background-color .4s; }
.feat:hover { transform: translateY(-6px); border-color: var(--border-hi); background: var(--surface-2); }
.feat__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,102,255,.1); color: var(--c-blue-soft); margin-bottom: 1.1rem; }
.feat:nth-child(even) .feat__ico { color: var(--c-orange-soft); background: rgba(255,106,0,.1); }
.feat__ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.2rem; }
.feat p { color: var(--text-dim); font-size: .93rem; margin-top: .5rem; }

/* FAQ accordion */
.faq { max-width: 760px; margin-top: 2.6rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .8rem; overflow: hidden; transition: border-color .3s, background-color .3s; }
.faq__item.open { border-color: var(--border-hi); background: var(--surface-2); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; text-align: left; font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq__q:hover { color: var(--c-blue-soft); }
.faq__q .ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); transition: .3s; }
.faq__q .ico svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.faq__item.open .ico { background: var(--grad-brand); border-color: transparent; color: #fff; }
.faq__item.open .ico svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a-inner { padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: .96rem; line-height: 1.7; }

/* Bullet check list riusabile */
.checklist { display: grid; gap: .8rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .98rem; }
.checklist svg { width: 22px; height: 22px; color: var(--c-orange-soft); flex-shrink: 0; margin-top: .1rem; }

/* Cross-link altri servizi */
.related { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin-top: 3rem; }
.related__card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .35s; }
.related__card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.related__card h4 { font-size: 1.15rem; }
.related__card span { color: var(--text-mute); font-size: .85rem; }
.related__card .arw { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--c-blue-soft); flex-shrink: 0; transition: .3s; }
.related__card:hover .arw { background: var(--grad-brand); color: #fff; border-color: transparent; }
.related__card .arw svg { width: 18px; height: 18px; }

@media (max-width: 780px) {
  .feat-grid, .related { grid-template-columns: 1fr; }
  .subhero { padding-top: 7rem; }
}

/* ---------- 20. Prose (pagine legali) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose p, .prose li { color: var(--text-dim); margin-top: .9rem; font-size: .98rem; line-height: 1.75; }
.prose ul { margin-top: .6rem; padding-left: 1.2rem; list-style: disc; }
.prose li { margin-top: .4rem; }
.prose a { color: var(--c-blue-soft); text-decoration: underline; }
.prose strong { color: var(--text); }
.prose .note { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(255,106,0,.08); border: 1px solid rgba(255,106,0,.3); color: var(--text); font-size: .9rem; margin-top: 1.4rem; }

/* ---------- 21. Subhero a due colonne (bilanciamento) ---------- */
.subhero__grid { display: grid; grid-template-columns: 1.05fr .85fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; margin-top: 1.4rem; }
.subhero__grid .subhero__inner { margin-top: 0; }
.subhero__visual { position: relative; }
.sv-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(160deg, var(--c-deep-3), var(--c-deep)); padding: 1.9rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,.75); }
.sv-card .orb { position: absolute; border-radius: 50%; filter: blur(45px); z-index: 0; }
.sv-card .orb.b { width: 60%; height: 60%; background: rgba(0,102,255,.35); top: -15%; right: -10%; }
.sv-card .orb.o { width: 55%; height: 55%; background: rgba(255,106,0,.28); bottom: -18%; left: -12%; animation: float 8s ease-in-out infinite; }
.sv-card > * { position: relative; z-index: 1; }
.sv-head { display: flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 500; font-size: .85rem; color: var(--text-dim); }
.sv-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange); box-shadow: 0 0 0 4px rgba(255,106,0,.18); animation: pulse 2s infinite; }
.sv-metric { margin: 1.1rem 0 .2rem; }
.sv-metric b { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem,4vw,3rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; display: block; }
.sv-metric span { color: var(--text-mute); font-size: .85rem; }
.sv-chart { width: 100%; height: 110px; margin-top: 1rem; display: block; }
.sv-legend { display: flex; justify-content: space-between; margin-top: .7rem; }
.sv-legend span { color: var(--text-mute); font-size: .72rem; }
@media (max-width: 920px) {
  .subhero__grid { grid-template-columns: 1fr; }
  .subhero__visual { display: none; }
}

/* ---------- 22. Nav: sottomenu Servizi (dropdown) ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__toplink { display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; color: var(--text-dim); font-family: var(--f-head); font-weight: 500; transition: color .25s; }
.nav__toplink svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item:hover .nav__toplink, .nav__item:focus-within .nav__toplink { color: var(--text); }
.nav__item:hover .nav__toplink svg, .nav__item:focus-within .nav__toplink svg { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: 100%; left: 50%; margin-top: 14px;
  min-width: 250px; padding: .5rem; border-radius: 16px;
  background: rgba(13,20,36,.97); backdrop-filter: blur(18px); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.9);
  display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(10px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item:hover .nav__submenu, .nav__item:focus-within .nav__submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__submenu a { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem; border-radius: 11px; color: var(--text-dim); font-family: var(--f-head); font-weight: 500; font-size: .9rem; transition: background-color .2s, color .2s; }
.nav__submenu a::after { display: none; }
.nav__submenu a:hover, .nav__submenu a[aria-current] { background: var(--surface-2); color: var(--text); }
.nav__submenu a .mini { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,102,255,.12); color: var(--c-blue-soft); flex-shrink: 0; }
.nav__submenu a .mini.mini--or { background: rgba(255,106,0,.12); color: var(--c-orange-soft); }
.nav__submenu a .mini svg { width: 17px; height: 17px; }
.nav__submenu a small { display: block; color: var(--text-mute); font-size: .72rem; font-weight: 400; margin-top: 1px; }

/* ---------- 23. Grafico subhero radiale (Smart TV) ---------- */
.sv-chart--radial { display: flex; justify-content: center; align-items: center; height: 172px; margin-top: .6rem; }
.sv-chart--radial svg { width: 172px; height: 172px; }

/* ---------- Nav dropdown: mobile ---------- */
@media (max-width: 720px) {
  .nav__item { display: block; width: 100%; }
  .nav__toplink { padding: .6rem .2rem; font-size: 1rem; width: 100%; }
  .nav__toplink svg { margin-left: auto; }
  .nav__submenu { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; margin: .1rem 0 .4rem; padding: .2rem 0 .2rem .6rem; min-width: 0; background: transparent; border: none; box-shadow: none; border-left: 1px solid var(--border); }
  .nav__submenu::before { display: none; }
  .nav__submenu a small { display: none; }
}

/* ---------- 24. Pagina Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem,5vw,4rem); align-items: start; margin-top: 3rem; }
.contact-info__list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.cinfo { display: flex; gap: 1.05rem; align-items: flex-start; padding: 1.2rem 1.35rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, background-color .3s; }
.cinfo:hover { border-color: var(--border-hi); background: var(--surface-2); }
.cinfo__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,102,255,.1); color: var(--c-blue-soft); flex-shrink: 0; }
.cinfo:nth-child(even) .cinfo__ico { color: var(--c-orange-soft); background: rgba(255,106,0,.1); }
.cinfo__ico svg { width: 22px; height: 22px; }
.cinfo h4 { font-size: 1rem; }
.cinfo p, .cinfo a { color: var(--text-dim); font-size: .93rem; margin-top: .15rem; display: block; }
.cinfo a:hover { color: var(--c-blue-soft); }
.contact-info__social { display: flex; gap: .7rem; margin-top: 1.6rem; }
.contact-info__social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-dim); transition: .3s; }
.contact-info__social a:hover { border-color: var(--border-hi); color: var(--c-blue-soft); transform: translateY(-3px); }
.contact-info__social svg { width: 19px; height: 19px; }

.contact-form-card { position: relative; overflow: hidden; padding: clamp(1.6rem,3vw,2.5rem); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.contact-form-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 100% 0%, rgba(0,102,255,.12), transparent 60%); }
.contact-form-card > * { position: relative; z-index: 1; }
.contact-form-card .form { margin-top: 1.4rem; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Textarea (form contatti) — stessa resa degli input */
.field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 11px; color: var(--text); font: inherit; font-size: .92rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); resize: vertical; min-height: 110px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea::placeholder { color: var(--text-mute); }
.field textarea:focus { outline: none; border-color: var(--c-blue); background: rgba(0,102,255,.06); box-shadow: 0 0 0 3px rgba(0,102,255,.15); }

/* ---------- 25. Quote card (Chi siamo) ---------- */
.sv-quote { display: flex; flex-direction: column; gap: 1rem; }
.sv-quote__mark { width: 40px; height: 40px; color: var(--c-orange-soft); opacity: .9; }
.sv-quote p { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; line-height: 1.45; color: var(--text); }
.sv-quote__by { margin-top: .4rem; }
.sv-quote__by .logo { font-size: 1.05rem; }

/* ---------- 26. Case study (Risultati) ---------- */
.stats-band .num.plain { color: var(--text); }
.case { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: grid; grid-template-columns: 1.15fr .85fr; margin-bottom: 1.6rem; transition: border-color .4s, transform .4s var(--ease); }
.case:hover { border-color: var(--border-hi); transform: translateY(-4px); }
.case__main { padding: clamp(1.8rem,3.5vw,2.8rem); }
.case__side { padding: clamp(1.8rem,3.5vw,2.8rem); border-left: 1px solid var(--border); background: radial-gradient(130% 110% at 100% 0%, rgba(0,102,255,.1), transparent 60%); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.2rem; align-content: center; }
.case__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .9rem; border-radius: 100px; background: rgba(0,102,255,.12); color: var(--c-blue-soft); font-family: var(--f-head); font-weight: 600; font-size: .78rem; }
.case__badge.or { background: rgba(255,106,0,.12); color: var(--c-orange-soft); }
.case__badge svg { width: 15px; height: 15px; }
.case__sector { color: var(--text-mute); font-size: .82rem; margin-top: 1rem; font-family: var(--f-head); letter-spacing: .02em; }
.case h3 { font-size: clamp(1.3rem,2.4vw,1.75rem); margin-top: .45rem; }
.case__block { margin-top: 1.3rem; }
.case__block h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--text-mute); margin-bottom: .35rem; font-family: var(--f-head); font-weight: 600; }
.case__block p { color: var(--text-dim); font-size: .95rem; }
.case__quote { margin-top: 1.7rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; gap: .9rem; align-items: center; }
.case__quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; font-family: var(--f-head); font-weight: 600; color: #fff; flex-shrink: 0; font-size: .9rem; }
.case__quote em { font-style: italic; color: var(--text); font-size: .9rem; line-height: 1.5; }
.case__quote b { font-family: var(--f-head); font-size: .85rem; display: block; margin-top: .3rem; }
.case__quote b span { color: var(--text-mute); font-weight: 400; }
.case__kpi b { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.9rem,3vw,2.5rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; display: block; }
.case__kpi span { color: var(--text-dim); font-size: .8rem; margin-top: .35rem; display: block; }
.case__disclaimer { color: var(--text-mute); font-size: .82rem; text-align: center; max-width: 60ch; margin: 2.4rem auto 0; line-height: 1.6; }
@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
  .case__side { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- 27. Footer legal links ---------- */
.footer__legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__legal a { color: var(--text-mute); font-size: .82rem; transition: color .25s; }
.footer__legal a:hover { color: var(--c-blue-soft); }

/* ---------- 28. Timeline metodo (fasi) ---------- */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--c-blue), var(--c-orange)); opacity: .45; }
.phase { position: relative; padding-left: 78px; padding-bottom: 2rem; }
.phase:last-child { padding-bottom: 0; }
.phase__node { position: absolute; left: 0; top: 4px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 26px -8px rgba(0,102,255,.5); z-index: 1; }
.phase__card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1.7rem 1.9rem; transition: border-color .35s, background-color .35s, transform .35s var(--ease); }
.phase__card:hover { border-color: var(--border-hi); background: var(--surface-2); transform: translateX(4px); }
.phase__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.phase h3 { font-size: 1.35rem; }
.phase__dur { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border-radius: 100px; background: rgba(0,102,255,.1); border: 1px solid var(--border); color: var(--c-blue-soft); font-family: var(--f-head); font-weight: 600; font-size: .74rem; }
.phase__dur svg { width: 13px; height: 13px; }
.phase__lead { color: var(--text-dim); margin-top: .55rem; font-size: .97rem; }
.phase__list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; margin-top: 1.2rem; }
.phase__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--text); }
.phase__list li svg { width: 17px; height: 17px; color: var(--c-orange-soft); flex-shrink: 0; margin-top: .15rem; }
.phase__deliver { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border); display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-dim); }
.phase__deliver b { color: var(--text); font-family: var(--f-head); font-weight: 600; }
.phase__deliver svg { width: 20px; height: 20px; color: var(--c-blue-soft); flex-shrink: 0; }
@media (max-width: 620px) {
  .timeline::before { left: 21px; }
  .phase { padding-left: 60px; }
  .phase__node { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 13px; }
  .phase__list { grid-template-columns: 1fr; }
}
