/* =========================================================
   LS Consulting — Elegant build
   Due temi su [data-theme]: "tufo" (pietra calda) e "maiolica" (monocromia + ceramica)
   ========================================================= */

/* ---------------- THEME: TUFO ---------------- */
:root,
[data-theme="tufo"] {
  --paper:        #F4EFE7;
  --paper-2:      #ECE4D7;
  --surface:      #FBF8F2;
  --ink:          #20242D;
  --ink-soft:     #444A56;
  --muted:        #6E7480;
  --primary:      #103A3C;
  --primary-2:    #0C2E30;
  --accent:       #B0834A;
  --accent-2:     #946C38;
  --accent-soft:  #ECDCC1;
  --line:         #DED5C5;
  --on-dark:      #F2ECE2;
  --on-dark-mut:  rgba(242,236,226,0.66);
  --on-dark-line: rgba(242,236,226,0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --display-italic: italic;
}

/* ---------------- THEME: MAIOLICA ---------------- */
[data-theme="maiolica"] {
  --paper:        #F7F4EE;
  --paper-2:      #EFEAE0;
  --surface:      #FFFFFF;
  --ink:          #16181C;
  --ink-soft:     #3A3D44;
  --muted:        #6B6F79;
  --primary:      #16181C;
  --primary-2:    #0E0F12;
  --accent:       #245C86;
  --accent-2:     #1A4A6F;
  --accent-soft:  #D8E3EC;
  --line:         #E4DED2;
  --on-dark:      #F2EFE8;
  --on-dark-mut:  rgba(242,239,232,0.66);
  --on-dark-line: rgba(242,239,232,0.14);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display-italic: italic;
}

/* ---------------- Tokens comuni ---------------- */
:root {
  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4.75rem, 9vw, 8.5rem);
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-sm: 0 1px 2px rgba(16,22,28,.04), 0 8px 24px rgba(16,22,28,.05);
  --shadow-md: 0 18px 48px rgba(16,22,28,.10);
}

/* ---------------- Reset / base ---------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--primary); color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-mut); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

/* ---------------- Tipografia ---------------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.display-xxl { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
.display-l   { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }
.display-m   { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.12; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.62; color: var(--ink-soft); font-weight: 400; }
.serif { font-family: var(--font-display); }
[data-theme="maiolica"] h1,[data-theme="maiolica"] h2,[data-theme="maiolica"] h3 { font-weight: 600; letter-spacing: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Inter", sans-serif; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.9rem; height: 1px; background: var(--accent); opacity: .8; }
.section--dark .eyebrow { color: var(--accent-soft); }
.section--dark .eyebrow::before { background: var(--accent-soft); }

.hl-mark { color: var(--accent); font-style: var(--display-italic); }
.section-head { max-width: 60ch; }

/* ---------------- Bottoni ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: .96rem; letter-spacing: -.01em;
  padding: .82rem 1.4rem; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--lg { padding: .98rem 1.7rem; font-size: 1rem; }
.btn .arrow, .btn svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--primary); color: var(--on-dark); }
.btn--primary:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost, .image-band .btn--ghost { color: var(--on-dark); border-color: var(--on-dark-line); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn--accent { background: var(--accent); color: #fff; }
[data-theme="tufo"] .btn--accent { color: #2A1E0C; }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Maiolica: accento blu scuro poco leggibile sul duotone scuro → bottone chiaro */
[data-theme="maiolica"] .image-band .btn--accent { background: var(--on-dark); color: var(--ink); }
[data-theme="maiolica"] .image-band .btn--accent:hover { background: #fff; }
.btn--block { width: 100%; justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size .28s var(--ease); padding-bottom: 2px;
}
.textlink:hover { background-size: 100% 1px; }
.textlink svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------------- Header ---------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s var(--ease); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px; background: var(--accent); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.site-header.scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--line); }
.nav-toggle { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--primary); color: var(--on-dark); padding: 6.5rem var(--pad) 3rem; display: flex; flex-direction: column; gap: .25rem; transform: translateY(-100%); transition: transform .42s var(--ease); visibility: hidden; }
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.75rem; padding: .7rem 0; border-bottom: 1px solid var(--on-dark-line); color: var(--on-dark); }
.mobile-menu .btn { margin-top: 1.5rem; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; min-height: clamp(600px, 80vh, 820px); display: grid; align-items: center; padding-top: clamp(6rem, 11vh, 8rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
/* mappa: sfondo a destra del testo, sovrapposizione marginale */
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; }
.hero__bg .hero-map { width: 100%; height: 100%; background: transparent; border: 0; border-radius: 0; aspect-ratio: auto; }
.hero__scrim { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 52%, transparent) 22%, transparent 48%); }
.hero > .container { position: relative; z-index: 2; }
.hero__content { max-width: 600px; }
@media (max-width: 860px) {
  .hero__bg, .hero__scrim { width: 100%; }
  .hero__scrim { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 50%, color-mix(in srgb, var(--paper) 80%, transparent) 76%, transparent 100%); }
  .hero__content { max-width: none; }
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.25rem); }
.hero h1 { margin: 1.5rem 0; max-width: 18ch; }
.hero__lead { max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45rem .95rem; background: var(--surface); }
.chip svg { width: 1rem; height: 1rem; color: var(--accent); }
/* hero map (animazione territorio: Palermo -> Italia -> Europa/UK) */
.hero__media { position: relative; }
.hero-map { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 100 / 52; }
.hero-map svg { width: 100%; height: 100%; display: block; }
.hm-country { fill: var(--primary); fill-opacity: .05; stroke: var(--primary); stroke-opacity: .38; stroke-width: .5; }
.hm-emph { fill-opacity: .11; stroke-opacity: .85; stroke-width: .8; }
.hm-ray { stroke: var(--accent); stroke-width: 1.3; fill: none; stroke-linecap: round; }
.hm-dot { fill: var(--accent); }
.hm-hub { fill: var(--accent); }
.hm-hubring { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: .55; }
.hm-halo { fill: var(--accent); }
.hm-lbl { font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.hm-hub-lbl { fill: var(--accent-2); font-weight: 600; font-size: 15px; }

/* ---------------- Proof ---------------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
.proof__item { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.proof__item .k { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: .6rem; color: var(--ink); }
.proof__item .k .dot { color: var(--accent); }
.proof__item p { color: var(--muted); font-size: .96rem; }
.section--dark .proof__item { border-top-color: var(--on-dark-line); }
.section--dark .proof__item .k { color: var(--on-dark); }
.section--dark .proof__item p { color: var(--on-dark-mut); }

/* ---------------- Section head ---------------- */
.section-head h2 { margin-top: .9rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------------- Competenze (cards) ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2.5rem,5vw,3.5rem); }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.9rem 1.7rem; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); overflow: hidden; }
.svc-card::after { content:""; position:absolute; left:0; top:0; width:100%; height:2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__index { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--accent); display: block; margin-bottom: 1rem; letter-spacing: .04em; }
.svc-card__icon { width: 3rem; height: 3rem; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.2rem; }
.svc-card__icon svg { width: 1.4rem; height: 1.4rem; stroke-width: 1.5; }
.svc-card h3 { font-size: 1.32rem; margin-bottom: .5rem; }
.svc-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; font-size: .88rem; font-weight: 500; color: var(--accent); }
.svc-card__more svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.svc-card:hover .svc-card__more svg { transform: translateX(3px); }

/* ---------------- Settori (dark) ---------------- */
.sectors-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.sectors-head h2 { margin-top: .9rem; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--r-md); overflow: hidden; }
.sector { background: var(--primary); padding: 1.9rem 1.7rem; transition: background .25s var(--ease); }
.sector:hover { background: var(--primary-2); }
.sector__ic { width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); border: 1px solid var(--on-dark-line); color: var(--accent-soft); display: grid; place-items: center; margin-bottom: 1.1rem; }
.sector__ic svg { width: 1.3rem; height: 1.3rem; }
.sector h3 { font-size: 1.18rem; color: var(--on-dark); margin-bottom: .45rem; }
.sector p { color: var(--on-dark-mut); font-size: .92rem; }

/* ---------------- Approccio / Chi siamo (split) ---------------- */
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.approach__media { position: relative; }
.approach__media .frame { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 2.2rem; aspect-ratio: 4/3; display: grid; place-items: center; color: var(--primary); overflow: hidden; }
[data-theme="maiolica"] .approach__media .frame { color: var(--ink); }
.approach__media .frame svg { width: 78%; }
.approach__media .tag { position: absolute; bottom: -14px; right: 16px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem; padding: .6rem 1.1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
[data-theme="tufo"] .approach__media .tag { color: #2A1E0C; }
.steps { display: grid; gap: 1.6rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); flex: none; width: 2.4rem; line-height: 1.2; }
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------------- Track record (dark split) ---------------- */
.tr__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tr__grid h2 { color: var(--on-dark); }
.tr__points { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2.2rem) clamp(2rem,4vw,3.2rem); margin-top: clamp(2.5rem,5vw,3.5rem); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.method-step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.method-step__n { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--accent); display: block; margin-bottom: .7rem; }
.method-step h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.method-step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .method-grid { grid-template-columns: 1fr 1fr; } .tr__points { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .method-grid { grid-template-columns: 1fr; } }
.tr__point { display: flex; gap: .9rem; align-items: flex-start; }
.tr__point .ck { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; margin-top: .15rem; }
.tr__point .ck svg { width: .95rem; height: .95rem; stroke-width: 3; }
.tr__point b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; display: block; margin-bottom: .15rem; color: var(--on-dark); }
.tr__point span span, .tr__point > div > span { color: var(--on-dark-mut); font-size: .92rem; }
.tr__media .frame { border: 1px solid var(--on-dark-line); border-radius: var(--r-lg); padding: 2.5rem; aspect-ratio: 1/1; display: grid; place-items: center; color: var(--accent-soft); }
.tr__media .frame svg { width: 86%; }

/* ---------------- Image band (foto Palermo duotone) ---------------- */
.image-band { position: relative; min-height: 420px; display: grid; align-items: center; overflow: hidden; background: var(--primary-2); }
.image-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .5; mix-blend-mode: luminosity; }
.image-band__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 88%, transparent), color-mix(in srgb, var(--primary-2) 72%, transparent)); }
.image-band__inner { position: relative; color: var(--on-dark); display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; padding-block: 3rem; }
.image-band__inner h2 { color: var(--on-dark); max-width: 20ch; }
.image-band__credit { position: absolute; right: 1rem; bottom: .7rem; font-size: .7rem; letter-spacing: .04em; color: var(--on-dark-mut); z-index: 1; }

/* ---------------- FAQ ---------------- */
.faq__list { max-width: 760px; margin-inline: auto; margin-top: clamp(2rem,4vw,3rem); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; text-align: left; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
[data-theme="maiolica"] .faq-item__q { font-weight: 600; }
.faq-item__icon { flex: none; width: 1.5rem; height: 1.5rem; position: relative; }
.faq-item__icon::before, .faq-item__icon::after { content:""; position:absolute; top:50%; left:50%; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-item__icon::before { width: 13px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-item__icon::after { width: 1.5px; height: 13px; transform: translate(-50%,-50%); }
.faq-item.open .faq-item__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.faq-item.open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { color: var(--ink-soft); padding-bottom: 1.5rem; max-width: 64ch; }

/* ---------------- CTA ---------------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__inner { max-width: 640px; margin-inline: auto; position: relative; z-index: 1; }
.cta .eyebrow { justify-content: center; }
.cta h2 { color: var(--on-dark); margin-top: .9rem; }
.cta__mail { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.8rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--on-dark); border-bottom: 2px solid var(--accent); padding-bottom: .25rem; transition: color .2s var(--ease); }
.cta__mail:hover { color: var(--accent-soft); }
.cta__sub { margin-top: 1.6rem; color: var(--on-dark-mut); font-size: .92rem; }
.cta__deco { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark); opacity: .05; pointer-events: none; }
.cta__deco svg { width: min(60%, 520px); }

/* ---------------- Footer ---------------- */
.footer { background: var(--primary-2); color: var(--on-dark-mut); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--on-dark-line); }
.footer__brand img { height: 26px; margin-bottom: 1.1rem; }
.footer__brand p { max-width: 34ch; font-size: .92rem; }
.footer__col h5 { color: var(--on-dark); font-family: "Inter", sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer__col a { display: block; padding: .32rem 0; font-size: .92rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent-soft); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: .82rem; color: var(--on-dark-mut); }
.footer__legal a { color: var(--on-dark-mut); text-decoration: underline; }

/* ---------------- Modale servizio ---------------- */
.svc-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.svc-modal.open { display: block; }
.svc-modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary-2) 60%, transparent); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.svc-modal__panel { position: relative; max-width: 760px; margin: 6vh auto; max-height: 88vh; overflow-y: auto; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.6rem,4vw,2.8rem); box-shadow: var(--shadow-md); animation: rise .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.svc-modal__close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-soft); background: var(--paper-2); transition: background .2s var(--ease), color .2s var(--ease); }
.svc-modal__close:hover { background: var(--primary); color: var(--on-dark); }
.svc-modal__head { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.5rem; padding-right: 2rem; }
.svc-modal__head .ic { flex: none; width: 3.4rem; height: 3.4rem; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.svc-modal__head .ic svg { width: 1.5rem; height: 1.5rem; }
.svc-modal__intro { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.8rem; }
.svc-modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.svc-modal__label { font-family: "Inter", sans-serif; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .9rem; }
.svc-list { display: grid; gap: .7rem; }
.svc-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.svc-list svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; margin-top: .2rem; stroke-width: 2.5; }
.svc-modal__who { margin-top: 1.8rem; padding: 1.3rem 1.5rem; background: var(--paper-2); border-radius: var(--r-md); border: 1px solid var(--line); }
.svc-modal__who p { color: var(--ink-soft); font-size: .94rem; }
.svc-modal__foot { margin-top: 1.8rem; }

/* ---------------- Theme switch (controllo prototipo) ---------------- */
.theme-switch { position: fixed; z-index: 150; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .4rem; box-shadow: var(--shadow-md); }
.theme-switch__label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-left: .6rem; }
.theme-switch button { font-size: .82rem; font-weight: 500; padding: .42rem .9rem; border-radius: var(--r-pill); color: var(--ink-soft); transition: background .2s var(--ease), color .2s var(--ease); }
.theme-switch button.active { background: var(--primary); color: var(--on-dark); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.stagger > .reveal:nth-child(3) { transition-delay: .14s; }
.stagger > .reveal:nth-child(4) { transition-delay: .07s; }
.stagger > .reveal:nth-child(5) { transition-delay: .14s; }
.stagger > .reveal:nth-child(6) { transition-delay: .21s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero__grid, .approach__grid, .tr__grid, .sectors-head { grid-template-columns: 1fr; }
  .hm-lbl { font-size: 17px; }
  .svc-grid, .sector-grid, .proof { grid-template-columns: repeat(2, 1fr); }
  .tr__media { display: none; }
}
@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .svc-grid, .sector-grid, .proof, .footer__top { grid-template-columns: 1fr; }
  .theme-switch__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
