/* ==========================================================================
   LilouSoft — foglio di stile unico
   Direzione: «Nocturne algérois» — nero-verde profondo, cinematografico,
   geometria khatam (stella a 8 punte) come firma, verde/bianco/rosso sobri.
   Proprietà logiche ovunque (inline/block) → RTL arabo senza duplicazioni.
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --bg: #050a08;
  --bg-1: #08110d;
  --bg-2: #0c1813;
  --surface: rgba(237, 232, 220, .035);
  --surface-hi: rgba(237, 232, 220, .06);
  --surface-2: #0e1a15;
  --line: rgba(237, 232, 220, .09);
  --line-strong: rgba(237, 232, 220, .17);
  --text: #efebe1;
  --text-2: #bcc2bb;
  --muted: #8b958f;
  --em: #1fa463;
  --em-hi: #46e09a;
  --em-deep: #0c6b3e;
  --em-tint: rgba(46, 204, 128, .1);
  --red: #e23b4e;
  --amber: #e5a53a;
  --ivory: #f4f0e6;
  --field-bg: rgba(5, 10, 8, .55);
  --pattern-color: rgba(70, 224, 154, .5);
  --shadow-lg: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 18px 40px -24px rgba(0, 0, 0, .7);
  --shadow-md: 0 20px 50px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(70, 224, 154, .28), 0 18px 60px -18px rgba(31, 164, 99, .55);
  --bezel: linear-gradient(160deg, #1d2a24, #0b1410 60%);
  --grain-opacity: .07;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --maxw: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* Tema chiaro opzionale */
:root[data-theme="light"] {
  --bg: #f5f2ea;
  --bg-1: #eeeae0;
  --bg-2: #e6e1d4;
  --surface: rgba(12, 40, 26, .035);
  --surface-hi: rgba(12, 40, 26, .06);
  --surface-2: #fffdf8;
  --line: rgba(12, 40, 26, .1);
  --line-strong: rgba(12, 40, 26, .2);
  --text: #0b1a13;
  --text-2: #34443c;
  --muted: #5c6a63;
  --em: #13854f;
  --em-hi: #1b9e60;
  --em-deep: #0b5c35;
  --em-tint: rgba(19, 133, 79, .09);
  --red: #c92a3d;
  --field-bg: #fffdf8;
  --pattern-color: rgba(19, 133, 79, .55);
  --shadow-lg: 0 40px 90px -40px rgba(20, 40, 30, .45), 0 18px 40px -24px rgba(20, 40, 30, .3);
  --shadow-md: 0 20px 50px -26px rgba(20, 40, 30, .35);
  --glow: 0 0 0 1px rgba(19, 133, 79, .3), 0 18px 50px -20px rgba(19, 133, 79, .45);
  --bezel: linear-gradient(160deg, #26332d, #111b16 60%);
  --grain-opacity: .045;
  color-scheme: light;
}

/* Arabo: tipografia dedicata, nessuna spaziatura tra lettere */
html[lang="ar"] {
  --f-display: "Alexandria", "Bricolage Grotesque", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
  --f-serif: "Alexandria", sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-size: 1.08rem; line-height: 1.85; }

/* Grana cinematografica (statica, nessun costo di scroll) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--em); color: #03140b; }

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

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--em);
  color: #03140b;
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 14px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Numeri/telefoni sempre LTR anche in RTL */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- 3. Tipografia ---------- */
.display-hero, .display-xl, .display-lg, .display-md {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display-hero { font-size: clamp(2.65rem, 6.6vw, 6.1rem); line-height: .97; }
.display-xl  { font-size: clamp(2.2rem, 5.4vw, 4.8rem); }
.display-lg  { font-size: clamp(2rem, 4.1vw, 3.55rem); line-height: 1.04; }
.display-md  { font-size: clamp(1.65rem, 2.8vw, 2.45rem); line-height: 1.08; letter-spacing: -.028em; }

/* Accento editoriale: corsivo serif con riflesso smeraldo */
.display-hero em, .display-xl em, .display-lg em, .display-md em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--em-hi) 0%, var(--ivory) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: .06em;
}
:root[data-theme="light"] .display-hero em, :root[data-theme="light"] .display-xl em,
:root[data-theme="light"] .display-lg em, :root[data-theme="light"] .display-md em {
  background-image: linear-gradient(100deg, var(--em) 0%, var(--em-deep) 80%);
}
html[lang="ar"] .display-hero, html[lang="ar"] .display-xl, html[lang="ar"] .display-lg, html[lang="ar"] .display-md {
  letter-spacing: 0;
  line-height: 1.28;
  font-weight: 700;
}
html[lang="ar"] .display-hero { font-size: clamp(2.4rem, 5.8vw, 5.2rem); line-height: 1.22; }
html[lang="ar"] .display-hero em, html[lang="ar"] .display-xl em, html[lang="ar"] .display-lg em, html[lang="ar"] .display-md em {
  font-style: normal;
  font-weight: 800;
  padding-inline-end: 0;
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--em-hi);
}
:root[data-theme="light"] .eyebrow, :root[data-theme="light"] .kicker { color: var(--em); }
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow { color: var(--text-2); }
.eyebrow-mark {
  width: 12px; height: 12px;
  background: var(--em-hi);
  -webkit-mask: url("/assets/img/brand/khatam.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/khatam.svg") center / contain no-repeat;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .kicker {
  font-family: var(--f-body);
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}
.sec-text { color: var(--text-2); max-width: 36em; margin-top: 1.2rem; font-size: 1.1rem; text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- 4. Icone ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .flip { transform: scaleX(-1); }
.flip-rev { transform: scaleX(-1); }
[dir="rtl"] .flip-rev { transform: none; }

/* ---------- 5. Pulsanti, pill ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:not(.flip-rev) { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ico.flip { transform: scaleX(-1) translateX(3px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #03140b;
  background: linear-gradient(180deg, #34cf82 0%, #17975a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 32px -12px rgba(31, 164, 99, .75);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 4px rgba(70, 224, 154, .14), 0 18px 46px -12px rgba(31, 164, 99, .85);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--em-hi) 60%, transparent); background: var(--surface-hi); }
.btn-text { color: var(--text-2); padding-inline: 6px; }
.btn-text:hover { color: var(--em-hi); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
html[lang="ar"] .pill { font-family: var(--f-body); font-size: .8rem; letter-spacing: 0; }
.pill-live {
  color: var(--em-hi);
  background: var(--em-tint);
  box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .28);
}
:root[data-theme="light"] .pill-live { color: var(--em-deep); }
.pill-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--em-hi);
  box-shadow: 0 0 0 0 rgba(70, 224, 154, .6);
  animation: ping 2.4s var(--ease) infinite;
}
.pill-soon { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill-lg { height: 30px; padding: 0 14px; font-size: .75rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-hi); }
.icon-btn .ico { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  color: var(--em-hi);
  border-bottom: 1px solid color-mix(in srgb, var(--em-hi) 35%, transparent);
  padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s;
}
:root[data-theme="light"] .link-arrow { color: var(--em); }
.link-arrow:hover { gap: .8em; border-color: currentColor; }

.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-2); }
.ticks .ico {
  width: 22px; height: 22px;
  padding: 4px;
  margin-top: .12em;
  border-radius: 50%;
  color: var(--em-hi);
  background: var(--em-tint);
  stroke-width: 2.4;
}
:root[data-theme="light"] .ticks .ico { color: var(--em); }

/* ---------- 6. Firma tricolore + header ---------- */
.tricolor {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  /* Bandiera: verde | bianco, con il rosso della stella al centro */
  background: linear-gradient(90deg, var(--em) 0 49.2%, var(--red) 49.2% 50.8%, var(--ivory) 50.8% 100%);
  opacity: .9;
}
[dir="rtl"] .tricolor { background: linear-gradient(90deg, var(--ivory) 0 49.2%, var(--red) 49.2% 50.8%, var(--em) 50.8% 100%); }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 2px;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { transition: transform .8s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(45deg); }
.logo-word {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
}
.logo-word b { font-weight: 600; color: var(--em-hi); }
:root[data-theme="light"] .logo-word b { color: var(--em); }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-trigger {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface); }
.nav-trigger[aria-current="page"], .nav-trigger.is-current { color: var(--text); }
.nav-trigger[aria-current="page"]::after, .nav-trigger.is-current::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--em-hi);
  box-shadow: 0 0 10px var(--em-hi);
  transform: translateX(-50%);
}
[dir="rtl"] .nav-trigger[aria-current="page"]::after, [dir="rtl"] .nav-trigger.is-current::after { transform: translateX(50%); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.lang-switch a[lang="ar"] { font-family: "Alexandria", "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", sans-serif; font-size: .95rem; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-toggle .when-light { display: none; }
:root[data-theme="light"] .theme-toggle .when-light { display: block; }
:root[data-theme="light"] .theme-toggle .when-dark { display: none; }
.burger { display: none; }

/* Menu mobile a tutto schermo */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding-block: 14px 32px; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-links { margin-block: 5vh auto; display: grid; gap: 4px; }
.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
html[lang="ar"] .mobile-links a { letter-spacing: 0; }
.mobile-menu.is-open .mobile-links a { opacity: 1; transform: none; }
.mobile-links .num { font-family: var(--f-mono); font-size: .8rem; color: var(--em-hi); letter-spacing: .1em; }
.mobile-links a[aria-current="page"] { color: var(--em-hi); }
.mobile-menu-foot { display: grid; gap: 12px; margin-top: 32px; }
.lang-switch-lg { justify-content: space-between; }
.lang-switch-lg a { flex: 1; height: 44px; font-family: var(--f-body); font-size: .95rem; }

/* ---------- 7. Sfondi: motivo geometrico + aurora ---------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pattern {
  position: absolute;
  inset: 0;
  background-color: var(--pattern-color);
  -webkit-mask: url("/assets/img/brand/pattern.svg") 0 0 / 112px 112px repeat;
  mask: url("/assets/img/brand/pattern.svg") 0 0 / 112px 112px repeat;
  opacity: .16;
}
.pattern-fade {
  /* il motivo svanisce verso i bordi: un velo radiale sopra */
  opacity: .2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, transparent 0%, var(--bg) 62%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
[dir="rtl"] .hero-bg::after {
  background:
    radial-gradient(120% 80% at 30% 20%, transparent 0%, var(--bg) 62%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.aurora {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 80vw;
  height: 80vw;
  max-width: 1100px;
  max-height: 1100px;
  background:
    radial-gradient(closest-side at 55% 45%, rgba(31, 164, 99, .34), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(12, 107, 62, .35), transparent 70%),
    radial-gradient(closest-side at 72% 72%, rgba(226, 59, 78, .1), transparent 65%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}
[dir="rtl"] .aurora { inset: -20% auto auto -10%; }
:root[data-theme="light"] .aurora { opacity: .55; }
.aurora-product { inset: 10% 0 auto 0; margin-inline: auto; }
.aurora-about { inset: -30% auto auto -20%; }
[dir="rtl"] .aurora-about { inset: -30% -20% auto auto; }
.aurora-contact { width: 60vw; height: 60vw; inset: -40% -10% auto auto; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px));
  padding-bottom: clamp(56px, 8vw, 100px);
}
.hero-home { min-height: min(100svh, 1000px); display: flex; flex-direction: column; justify-content: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .lead { margin-top: 28px; }
.hero-copy .actions { margin-top: 40px; }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
[dir="rtl"] .hero-art { justify-self: start; }

/* Emblema geometrico */
.emblem { width: 100%; height: 100%; overflow: visible; }
.emblem .em-line { fill: none; stroke: var(--em-hi); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.emblem .em-strong { stroke-width: 1.6; opacity: .95; stroke: url(#emg); }
.emblem .em-faint { opacity: .16; }
.emblem .em-dash { stroke-dasharray: 2 7; opacity: .35; }
.emblem .em-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) forwards; }
.emblem .em-mid .em-draw { animation-delay: .35s; }
.emblem .em-core .em-draw { animation-delay: .7s; }
.emblem .em-ring, .emblem .em-core { transform-box: view-box; transform-origin: 300px 300px; }
.emblem .em-slow { animation: spin 240s linear infinite; }
.emblem .em-rev  { animation: spin 180s linear infinite reverse; }
.emblem .em-mid  { animation: spin 320s linear infinite; }
.emblem .em-glow { animation: breathe 7s ease-in-out infinite; transform-box: view-box; transform-origin: 300px 300px; }
.emblem .em-heart { transform-box: view-box; transform-origin: 300px 300px; animation: pop 1.2s 1.4s var(--ease-out) both; filter: drop-shadow(0 0 18px rgba(70, 224, 154, .6)); }
.emblem .em-dot { transform-box: view-box; transform-origin: 300px 300px; animation: pop .8s 1.9s var(--ease-out) both; filter: drop-shadow(0 0 10px rgba(226, 59, 78, .9)); }

.float-card {
  position: absolute;
  inset-inline-start: -4%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
  transition: border-color .25s, box-shadow .25s;
}
[dir="rtl"] .float-card { padding: 12px 12px 12px 16px; }
.float-card:hover { border-color: rgba(70, 224, 154, .5); box-shadow: var(--glow); }
.float-card img { border-radius: 11px; }
.float-card strong { display: block; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.float-card small { display: block; color: var(--muted); font-size: .82rem; }

.facts {
  margin-top: clamp(56px, 9vh, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 0 0;
  font-size: .96rem;
  color: var(--text-2);
}
[dir="rtl"] .facts li { padding: 22px 0 0 20px; }
.facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.facts-num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--em-hi); }

/* ---------- 9. Sezioni comuni ---------- */
.section { position: relative; padding-block: clamp(72px, 8.5vw, 128px); }
.sec-head { max-width: 760px; }
.sec-head .kicker { margin-bottom: 22px; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-center .kicker { justify-content: center; }
.sec-head-center .sec-text { margin-inline: auto; }

/* Visione */
.vision-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.vision-text { color: var(--text-2); font-size: 1.12rem; text-wrap: pretty; }
.values { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: v; }
.value {
  position: relative;
  padding: 32px 28px 8px 0;
  border-top: 1px solid var(--line);
}
[dir="rtl"] .value { padding: 32px 0 8px 28px; }
.value + .value { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.value::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--em-hi), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
[dir="rtl"] .value::before { transform-origin: right; background: linear-gradient(270deg, var(--em-hi), transparent); }
.value:hover::before, .value.is-in::before { transform: scaleX(1); }
.value-num {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--em-hi);
  margin-bottom: 26px;
}
html[lang="ar"] .value-num { font-style: normal; font-family: var(--f-mono); font-size: 1.6rem; }
.value h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.value p { color: var(--text-2); font-size: .98rem; }

/* ---------- 10. Billboard prodotto (home) ---------- */
.billboard {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  display: flex;
  align-items: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 85% 50%, rgba(31, 164, 99, .22), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-lg);
}
[dir="rtl"] .billboard { background: radial-gradient(70% 90% at 15% 50%, rgba(31, 164, 99, .22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.billboard::after {
  /* vignettatura stile «title card» */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-1) 0%, color-mix(in srgb, var(--bg-1) 88%, transparent) 34%, transparent 62%);
}
[dir="rtl"] .billboard::after { background: linear-gradient(270deg, var(--bg-1) 0%, color-mix(in srgb, var(--bg-1) 88%, transparent) 34%, transparent 62%); }
.billboard-media { position: absolute; inset: 0; perspective: 1800px; }
.bb-shot { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong); }
.bb-shot img { width: 100%; }
.bb-main {
  width: 66%;
  inset-inline-end: -8%;
  top: 13%;
  transform: rotateY(-16deg) rotateX(5deg);
  transform-origin: right center;
  transition: transform 1.4s var(--ease-out);
}
[dir="rtl"] .bb-main { transform: rotateY(16deg) rotateX(5deg); transform-origin: left center; }
.billboard:hover .bb-main { transform: rotateY(-10deg) rotateX(3deg); }
[dir="rtl"] .billboard:hover .bb-main { transform: rotateY(10deg) rotateX(3deg); }
.bb-display {
  width: 30%;
  inset-inline-end: 5%;
  bottom: 7%;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 0 0 6px #0b1310, var(--shadow-lg);
}
.bb-ticket {
  width: 118px;
  inset-inline-end: 36%;
  bottom: -12%;
  z-index: 2;
  border-radius: 4px;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-lg);
}
[dir="rtl"] .bb-ticket { transform: rotate(6deg); }
.billboard-copy { position: relative; z-index: 3; max-width: 560px; padding: clamp(28px, 5vw, 72px); }
.bb-brand { display: flex; align-items: center; gap: 20px; }
.app-icon { border-radius: 22%; box-shadow: 0 10px 30px -10px rgba(31, 164, 99, .7), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bb-brand .kicker { gap: .6em; margin-bottom: 10px; }
.bb-brand .kicker::before { display: none; }
.bb-title { font-size: clamp(2.3rem, 4.6vw, 4rem); }
html[lang="ar"] .bb-title { line-height: 1.1; }
.bb-ar { font-family: "Alexandria", "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.bb-tagline { margin-top: 28px; font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; letter-spacing: -.015em; }
html[lang="ar"] .bb-tagline { letter-spacing: 0; line-height: 1.6; }
.bb-text { margin-top: 14px; color: var(--text-2); }
.billboard .ticks { margin-top: 26px; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; font-size: .95rem; }
.billboard .actions { margin-top: 36px; }

/* ---------- 11. Domini: rail ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-nav .icon-btn { width: 50px; height: 50px; }
.rail-nav .icon-btn[disabled] { opacity: .35; cursor: default; }
.rail-viewport { margin-top: 48px; }
.rail {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 18px var(--pad) 40px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -4px; }
.domain {
  position: relative;
  flex: 0 0 clamp(262px, 25vw, 312px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
}
.domain:hover { transform: translateY(-8px); border-color: rgba(70, 224, 154, .35); box-shadow: var(--glow); }
.domain-art {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(31, 164, 99, .2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
  border-bottom: 1px solid var(--line);
}
.domain-star {
  position: absolute;
  width: 170px;
  height: 170px;
  background: linear-gradient(135deg, var(--em-hi), transparent 70%);
  -webkit-mask: url("/assets/img/brand/khatam-line.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/khatam-line.svg") center / contain no-repeat;
  opacity: .35;
  transition: transform 1.6s var(--ease-out), opacity .5s;
}
.domain:hover .domain-star { transform: rotate(45deg) scale(1.08); opacity: .6; }
.domain-ico { position: relative; width: 54px; height: 54px; stroke-width: 1.3; color: var(--em-hi); }
:root[data-theme="light"] .domain-ico { color: var(--em); }
.domain-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.domain-num { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .14em; }
.domain h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.domain p { color: var(--text-2); font-size: .95rem; line-height: 1.55; flex: 1; }
.domain .pill { align-self: flex-start; }
.domain-live {
  border-color: rgba(70, 224, 154, .32);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(31, 164, 99, .25), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.domain-link { transition: box-shadow .2s; }
.domain-link:hover { box-shadow: inset 0 0 0 1px var(--em-hi); }
.domain:not(.domain-live) .domain-ico { opacity: .75; }

/* ---------- 12. Fondatore ---------- */
.founder-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.founder-portrait { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.founder-portrait::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 164, 99, .35), transparent);
  filter: blur(30px);
  z-index: -1;
}
.monogram { width: 100%; height: auto; overflow: visible; }
.monogram polygon:first-child { animation: spin 200s linear infinite; transform-origin: 200px 200px; transform-box: view-box; }
.monogram-text { font-family: "Bricolage Grotesque", sans-serif; font-size: 118px; font-weight: 600; letter-spacing: -6px; fill: var(--text); }
.quote { position: relative; margin-top: 26px; }
.quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.1vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.quote::before {
  content: "“";
  position: absolute;
  inset-inline-start: -.08em;
  top: -.42em;
  font-family: var(--f-serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--em-hi);
  opacity: .25;
}
html[lang="ar"] .quote p { font-style: normal; font-weight: 500; line-height: 1.6; font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
html[lang="ar"] .quote::before { content: "”"; }
.founder-name { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.founder-name small { font-family: var(--f-body); font-weight: 400; font-size: .92rem; color: var(--muted); letter-spacing: 0; }
.founder-text { margin-top: 18px; color: var(--text-2); max-width: 36em; }
.founder-copy .link-arrow { margin-top: 26px; }

/* ---------- 13. CTA ---------- */
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: clamp(56px, 9vw, 120px) clamp(22px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 115%, rgba(31, 164, 99, .42), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}
.cta-panel > p { margin: 22px auto 0; max-width: 34em; color: var(--text-2); font-size: 1.12rem; }
.cta-panel .actions { justify-content: center; margin-top: 40px; }
.cta-panel .display-lg { max-width: 15em; margin-inline: auto; }
.cta-icon { margin: 0 auto 30px; }
.pattern-cta {
  z-index: -1;
  opacity: .1;
  -webkit-mask-image: url("/assets/img/brand/pattern.svg"), radial-gradient(70% 70% at 50% 100%, #000, transparent);
  mask-image: url("/assets/img/brand/pattern.svg"), radial-gradient(70% 70% at 50% 100%, #000, transparent);
  -webkit-mask-size: 112px 112px, 100% 100%;
  mask-size: 112px 112px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: .32;
}
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-block: 48px;
  border-block: 1px solid var(--line);
}
.cta-inline p { color: var(--text-2); margin-top: 12px; }
.cta-simple { padding-top: 0; }

/* ---------- 14. Pagina prodotto ---------- */
.hero-product { text-align: center; padding-bottom: 0; }
.product-hero-copy { max-width: 980px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.product-id { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.product-name {
  display: block;
  margin-bottom: .55em;
  font-family: var(--f-mono);
  font-size: max(.16em, .8rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--em-hi);
  line-height: 1;
}
:root[data-theme="light"] .product-name { color: var(--em); }
.hero-product .lead { margin: 28px auto 0; }
.hero-product .actions { justify-content: center; margin-top: 38px; }
.badges { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .88rem;
  color: var(--text-2);
}
.badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--em-hi); }

.product-stage { position: relative; margin-top: clamp(56px, 7vw, 88px); perspective: 2200px; padding-bottom: clamp(40px, 6vw, 80px); }
.stage-glow {
  position: absolute;
  inset: 10% 8% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 164, 99, .45), transparent);
  filter: blur(50px);
  z-index: -1;
}
.device {
  position: relative;
  padding: clamp(6px, .8vw, 11px);
  border-radius: clamp(12px, 1.5vw, 20px);
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.device .pic img, .device img { border-radius: clamp(6px, .9vw, 11px); width: 100%; }
.product-stage > .device {
  max-width: 1180px;
  margin-inline: auto;
  transform: rotateX(var(--tilt, 9deg));
  transform-origin: center top;
  transition: transform .2s linear;
  will-change: transform;
}
.stage-chips li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 8s ease-in-out infinite;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--em-hi); box-shadow: 0 0 12px var(--em-hi); }
.chip-0 { inset-inline-start: 0; top: 18%; }
.chip-1 { inset-inline-end: 0; top: 46%; animation-delay: -3s !important; }
.chip-2 { inset-inline-start: 8%; bottom: 10%; animation-delay: -5s !important; }
.chip-2 .chip-dot { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* Settori */
.sector-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-hi), transparent 70%);
  transition: border-color .3s, transform .5s var(--ease-out), box-shadow .5s;
}
.sector-card:hover { transform: translateY(-4px); border-color: rgba(70, 224, 154, .3); box-shadow: var(--glow); }
.sector-ico, .why-ico, .skill-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--em-hi);
  background: linear-gradient(160deg, rgba(70, 224, 154, .16), rgba(70, 224, 154, .03));
  box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .22);
  margin-bottom: 24px;
}
:root[data-theme="light"] .sector-ico, :root[data-theme="light"] .why-ico, :root[data-theme="light"] .skill-ico { color: var(--em); }
.sector-ico .ico, .why-ico .ico, .skill-ico .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.sector-card h3, .why-card h3, .skill h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.25; }
.sector-card p, .why-card p, .skill p { color: var(--text-2); font-size: .98rem; }
.sector-note { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; text-align: center; }
.sector-note .ico { color: var(--em-hi); }

/* Navigazione capitoli */
.chapter-nav {
  position: sticky;
  top: calc(var(--header-h) + 2px);
  z-index: 40;
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
}
.chapter-nav ul {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: safe center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  padding-inline: 8px;
}
.chapter-nav ul::-webkit-scrollbar { display: none; }
.chapter-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.chapter-nav a .ico { width: 16px; height: 16px; }
.chapter-nav a:hover { color: var(--text); background: var(--surface); }
.chapter-nav a[aria-current="true"] { color: var(--text); background: var(--em-tint); box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .3); }
.chapter-nav a[aria-current="true"] .ico { color: var(--em-hi); }

/* Capitoli */
.chapter { position: relative; padding-block: clamp(72px, 9vw, 130px); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.chapter-alt .chapter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter-alt .chapter-copy { order: 2; }
.chapter-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 30% 50%, rgba(31, 164, 99, .08), transparent 70%);
}
[dir="rtl"] .chapter-alt::before { background: radial-gradient(50% 60% at 70% 50%, rgba(31, 164, 99, .08), transparent 70%); }
.chapter-copy .kicker { margin-bottom: 22px; gap: .6em; }
.chapter-copy .kicker::before { display: none; }
.chapter-copy .kicker .ico { width: 16px; height: 16px; }
.ch-num {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(70, 224, 154, .35);
  font-size: .7rem;
  letter-spacing: .08em;
  margin-inline-end: .3em;
}
.chapter-text { margin-top: 20px; color: var(--text-2); font-size: 1.08rem; text-wrap: pretty; }
.chapter-copy .ticks { margin-top: 28px; }
.chapter-media { position: relative; }

.media-duo { padding-bottom: 16%; }
.duo-back { width: 90%; }
.duo-front { position: absolute; width: 62%; inset-inline-end: 0; bottom: 0; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05); }

/* Lightbox trigger */
.zoomable {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: inherit;
}
.zoom-hint {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 10, 8, .72);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s, transform .25s var(--ease);
}
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { opacity: 1; transform: none; }

/* Schermo cliente con tab */
.screen-tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 22px; }
.screen-tablist button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.screen-tablist button[aria-selected="true"] { color: #03140b; background: var(--em-hi); }
.monitor {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  margin-bottom: 56px;
}
.monitor-panel img { border-radius: 8px; width: 100%; }
.monitor-panel:not([hidden]) { animation: fadeIn .5s var(--ease); }
.monitor-stand {
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  width: 22%;
  height: 46px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #17221d, #0b1410);
  clip-path: polygon(38% 0, 62% 0, 70% 82%, 100% 82%, 100% 100%, 0 100%, 0 82%, 30% 82%);
}
[dir="rtl"] .monitor-stand { transform: translateX(50%); }

/* Ticket che «esce» dalla stampante */
.media-ticket { display: flex; flex-direction: column; align-items: center; }
.printer {
  position: relative;
  z-index: 2;
  width: min(380px, 92%);
  height: 54px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #24312b, #101914);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.printer span {
  position: absolute;
  inset-inline: 9%;
  bottom: 12px;
  height: 6px;
  border-radius: 6px;
  background: #020403;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .9);
}
.printer::after {
  content: "";
  position: absolute;
  top: 18px;
  inset-inline-end: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--em-hi);
  box-shadow: 0 0 10px var(--em-hi);
}
.ticket-paper {
  width: min(300px, 76%);
  margin-top: -14px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.ticket-paper .zoomable { border-radius: 0; }
html.js .media-ticket .ticket-paper .pic { transform: translateY(-62%); transition: transform 2.4s cubic-bezier(.3, .6, .2, 1) .2s; }
html.js .media-ticket.is-in .ticket-paper .pic { transform: none; }

/* Mock carnet crediti */
.mock-credit {
  max-width: 520px;
  margin-inline: auto;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-1));
  box-shadow: var(--shadow-lg);
  font-size: .95rem;
}
.mc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.mc-title .ico { color: var(--em-hi); }
.mc-points { font-size: .82rem; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: var(--em-tint); }
.mc-points b { color: var(--em-hi); font-weight: 600; }
.mc-total { margin-top: 22px; padding: 20px; border-radius: 16px; background: #050a08; color: #efebe1; }
.mc-total small { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #ff8a97; }
html[lang="ar"] .mc-total small { font-family: var(--f-body); letter-spacing: 0; font-size: .85rem; }
.mc-total strong { display: block; margin-top: 6px; font-family: var(--f-display); font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; text-align: start; }
[dir="rtl"] .mc-total strong { text-align: end; }
.mc-total strong span { font-size: 1rem; color: #8b958f; }
.mc-age { margin-top: 20px; }
.mc-age small { color: var(--muted); font-size: .82rem; }
.mc-bar { display: flex; gap: 4px; height: 10px; margin-top: 8px; }
.mc-bar span { width: var(--w); border-radius: 6px; }
.mc-bar .b0, .mc-legend .lg0::before, .mc-rows .age0 .mc-days { background: var(--em); }
.mc-bar .b1, .mc-legend .lg1::before, .mc-rows .age1 .mc-days { background: var(--amber); }
.mc-bar .b2, .mc-legend .lg2::before, .mc-rows .age2 .mc-days { background: var(--red); }
.mc-legend { display: flex; gap: 16px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.mc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mc-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.mc-rows { margin-top: 18px; display: grid; gap: 8px; }
.mc-rows li {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mc-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-hi); color: var(--muted); }
.mc-av .ico { width: 16px; height: 16px; }
.mc-who { color: var(--text-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-rows b { font-family: var(--f-display); font-weight: 600; }
.mc-days { padding: 2px 8px; border-radius: 6px; color: #04110a; font-size: .75rem; font-weight: 700; }
.mc-remind {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 12px;
  background: #1fa463;
  color: #03140b;
  font-weight: 600;
}

/* Documento */
.media-doc { display: grid; place-items: center; }
.paper {
  width: min(430px, 86%);
  transform: rotate(-2.5deg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .9s var(--ease-out);
}
[dir="rtl"] .paper { transform: rotate(2.5deg); }
.media-doc:hover .paper { transform: rotate(0); }
.doc-stamp {
  position: absolute;
  inset-inline-end: 4%;
  bottom: 12%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .08em;
}
.doc-stamp .ico { width: 26px; height: 26px; color: var(--em-hi); }

/* Fiscalità: capitolo in evidenza */
.chapter-fiscal {
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(31, 164, 99, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
}
.deadline {
  margin-top: 36px;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 18px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(226, 59, 78, .35);
  background: linear-gradient(135deg, rgba(226, 59, 78, .1), transparent);
}
.deadline-label { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.deadline strong { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1; }
.deadline-law { padding: 5px 10px; border-radius: 8px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; }

.secu-tiles { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.secu-tiles li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--text-2);
}
.secu-tiles .ico { color: var(--em-hi); }

/* Perché */
.why-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.why-card { padding: 38px 32px; background: var(--bg); transition: background-color .3s; }
.why-card:hover { background: var(--bg-1); }

/* Confronto */
.compare-table { margin: 56px auto 0; max-width: 980px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-row > span { display: flex; align-items: flex-start; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cmp-headrow > span {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom-color: var(--line-strong);
}
html[lang="ar"] .cmp-headrow > span { font-family: var(--f-body); letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.cmp-before { color: var(--muted); }
.cmp-before .ico { color: var(--red); opacity: .8; margin-top: .2em; }
.cmp-after { color: var(--text); background: var(--em-tint); }
.cmp-after .ico { color: var(--em-hi); stroke-width: 2.4; margin-top: .2em; }
.cmp-headrow .cmp-after { color: var(--em-hi); border-radius: 16px 16px 0 0; }
.cmp-row:last-child .cmp-after { border-radius: 0 0 16px 16px; border-bottom: 0; }
:root[data-theme="light"] .cmp-after .ico, :root[data-theme="light"] .cmp-headrow .cmp-after { color: var(--em); }

/* Prezzi */
.price-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(70, 224, 154, .25);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(31, 164, 99, .22), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--glow);
}
.price-main .kicker { margin-bottom: 18px; }
.price-main h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.price-main > p { margin-top: 20px; color: var(--text-2); max-width: 32em; }
.price-main .actions { margin-top: 34px; }
.price-incl { align-self: center; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.price-incl h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 90px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -.015em;
  transition: color .2s;
}
html[lang="ar"] .faq-item summary { letter-spacing: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--em-hi); }
.faq-plus { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .35s var(--ease), background-color .3s, border-color .3s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--em-tint); border-color: rgba(70, 224, 154, .4); color: var(--em-hi); }
.faq-a { padding: 0 0 26px; color: var(--text-2); max-width: 44em; }
.faq-item[open] .faq-a { animation: fadeUp .45s var(--ease-out); }

/* ---------- 15. À propos ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.name-title { font-size: clamp(3rem, 8vw, 7.4rem); letter-spacing: -.045em; }
html[lang="ar"] .name-title { letter-spacing: 0; }
.about-hero-copy .eyebrow { margin-bottom: 26px; }
.role { margin-top: 24px; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--em-hi); }
html[lang="ar"] .role { font-family: var(--f-body); letter-spacing: 0; font-size: 1.05rem; font-weight: 600; }
.about-hero-copy .lead { margin-top: 20px; }
.about-hero-copy .actions { margin-top: 36px; }
.portrait { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(31, 164, 99, .3), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-lg);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--pattern-color);
  -webkit-mask: url("/assets/img/brand/pattern.svg") 0 0 / 80px 80px repeat;
  mask: url("/assets/img/brand/pattern.svg") 0 0 / 80px 80px repeat;
  opacity: .08;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .monogram { width: 78%; position: relative; }
.portrait figcaption { margin-top: 14px; display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: .85rem; }

.timeline { margin-top: 72px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--em-hi), var(--line-strong) 40%, var(--line-strong) 80%, var(--red));
}
[dir="rtl"] .timeline::before { background: linear-gradient(270deg, var(--em-hi), var(--line-strong) 40%, var(--line-strong) 80%, var(--red)); }
.tl-item { position: relative; padding-top: 40px; }
.tl-dot {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 15px;
  height: 15px;
  background: var(--bg);
  border: 1.5px solid var(--em-hi);
  transform: rotate(45deg);
}
.tl-item:last-child .tl-dot { background: var(--em-hi); box-shadow: 0 0 16px var(--em-hi); }
.tl-step { display: flex; gap: 10px; align-items: baseline; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .tl-step { font-family: var(--f-body); letter-spacing: 0; font-size: .95rem; }
.tl-num { color: var(--em-hi); }
.tl-place { margin-top: 10px; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.tl-text { margin-top: 10px; color: var(--text-2); font-size: .96rem; }

.skill-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-hi), transparent 80%); transition: border-color .3s, transform .5s var(--ease-out); }
.skill:hover { border-color: rgba(70, 224, 154, .3); transform: translateY(-4px); }

.cert-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border-radius: var(--r);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.cert-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--em-hi);
  background: linear-gradient(160deg, rgba(70, 224, 154, .16), rgba(70, 224, 154, .02));
  -webkit-mask: url("/assets/img/brand/khatam.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/khatam.svg") center / contain no-repeat;
}
.cert-seal { -webkit-mask: none; mask: none; clip-path: polygon(50% 0, 64% 15%, 85% 15%, 85% 36%, 100% 50%, 85% 64%, 85% 85%, 64% 85%, 50% 100%, 36% 85%, 15% 85%, 15% 64%, 0 50%, 15% 36%, 15% 15%, 36% 15%); }
.cert-seal .ico { width: 24px; height: 24px; }
.cert h3 { font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--text-2); }
.cert p { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.cert-idx { position: absolute; top: 12px; inset-inline-end: 14px; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); }

.mission-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(60% 90% at 100% 0%, rgba(31, 164, 99, .22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.mission-panel .kicker { margin-bottom: 22px; }
.mission-panel .display-lg { max-width: 17em; }
.mission-text { margin-top: 24px; color: var(--text-2); font-size: 1.12rem; max-width: 40em; }
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillars li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.pillars .value-num { margin-bottom: 16px; font-size: 2rem; }
.pillars h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.pillars p { margin-top: 8px; color: var(--text-2); font-size: .97rem; }

/* ---------- 16. Contatti e form ---------- */
.hero-contact { padding-bottom: 0; }
.hero-contact .lead { margin-top: 24px; }
.hero-contact .eyebrow { margin-bottom: 24px; }
.contact-section { padding-top: clamp(48px, 6vw, 80px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-lg);
}
.form-title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 26px; }
.lead-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--text-2); padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--em-hi);
  box-shadow: 0 0 0 4px rgba(70, 224, 154, .16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 59, 78, .14); }
.field-err { min-height: 0; font-size: .84rem; color: #ff7d8c; }
:root[data-theme="light"] .field-err { color: var(--red); }
.field-err:empty { display: none; }
.field-hint { display: flex; align-items: center; gap: 8px; margin-top: -8px; font-size: .84rem; color: var(--muted); }
.field-hint .ico { width: 14px; height: 14px; }
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  width: 8px;
  height: 8px;
  border-inline-end: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-inline-end: 44px; cursor: pointer; }
.select select option { background: var(--bg-2); color: var(--text); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  font-size: .92rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  color: var(--text-2);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.seg-opt:hover span { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.seg-opt input:checked + span { color: var(--text); border-color: var(--em-hi); background: var(--em-tint); box-shadow: inset 0 0 0 1px var(--em-hi); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(70, 224, 154, .2); }

.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(226, 59, 78, .1); border: 1px solid rgba(226, 59, 78, .35); color: var(--text); font-size: .94rem; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.privacy .ico { width: 15px; height: 15px; margin-top: .25em; }
.lead-form .btn[type="submit"] { margin-top: 6px; }
.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(3, 20, 11, .35);
  border-top-color: #03140b;
  animation: spin .8s linear infinite;
}
.btn.is-loading .ico { display: none; }

.form-success { text-align: center; padding: clamp(32px, 6vw, 72px) 8px; }
.form-success .display-md { margin-top: 26px; outline: none; }
.form-success p { margin: 16px auto 0; max-width: 28em; color: var(--text-2); }
.form-success .actions { justify-content: center; margin-top: 32px; }
.success-mark { width: 96px; height: 96px; margin-inline: auto; overflow: visible; }
.sm-star { fill: var(--em-tint); stroke: var(--em-hi); stroke-width: 1.6; stroke-dasharray: 400; stroke-dashoffset: 400; animation: dash 1.2s var(--ease-out) forwards; filter: drop-shadow(0 0 14px rgba(70, 224, 154, .5)); }
.sm-check { fill: none; stroke: var(--em-hi); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .6s .7s var(--ease-out) forwards; }

.contact-aside { display: grid; gap: 18px; }
.aside-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.aside-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.aside-title .ico { color: var(--em-hi); }
.contact-list { display: grid; gap: 8px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.contact-item:hover { background: var(--surface-hi); border-color: var(--line); }
.ci-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-hi);
  border: 1px solid var(--line);
  color: var(--em-hi);
}
.ci-ico .ico { width: 20px; height: 20px; }
.ci-code { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; color: var(--text-2); letter-spacing: .06em; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
[dir="rtl"] .ci-body .ltr, [dir="rtl"] .ci-body [dir="ltr"] { align-self: flex-end; }
.ci-body small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.ci-arrow { color: var(--muted); width: 18px; height: 18px; transition: transform .25s var(--ease), color .2s; }
.contact-item:hover .ci-arrow { color: var(--em-hi); }
.contact-wa { background: linear-gradient(135deg, rgba(31, 164, 99, .16), rgba(31, 164, 99, .04)); border-color: rgba(70, 224, 154, .28); }
.contact-wa .ci-ico { background: #1fa463; color: #03140b; border-color: transparent; }
.hours { display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--text-2); }
.hours dd { font-family: var(--f-mono); font-size: .92rem; }
.hours-note { margin-top: 14px; font-size: .86rem; color: var(--muted); }

/* ---------- 17. 404 ---------- */
.hero-404 { min-height: 86svh; display: grid; place-items: center; text-align: center; }
.nf-inner { display: flex; flex-direction: column; align-items: center; }
.nf-code { font-family: var(--f-mono); font-size: .9rem; letter-spacing: .4em; color: var(--em-hi); margin-bottom: 20px; }
.nf-inner .lead { margin-top: 20px; }
.nf-inner .actions { justify-content: center; margin-top: 36px; }

/* ---------- 18. Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.footer-pattern {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background-color: var(--pattern-color);
  -webkit-mask-image: url("/assets/img/brand/pattern.svg"), linear-gradient(180deg, #000, transparent);
  mask-image: url("/assets/img/brand/pattern.svg"), linear-gradient(180deg, #000, transparent);
  -webkit-mask-size: 112px 112px, 100% 100%;
  mask-size: 112px 112px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: .1;
}
.footer-statement { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.footer-statement .display-xl { max-width: 12em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px; }
.footer-brand p { margin-top: 16px; color: var(--text-2); max-width: 22em; }
.made-in { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.dz-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 24%, transparent 27%), linear-gradient(90deg, #1fa463 50%, #f4f0e6 50%);
  box-shadow: 0 0 0 1px var(--line-strong);
}
[dir="rtl"] .dz-dot { background: radial-gradient(circle, var(--red) 0 24%, transparent 27%), linear-gradient(270deg, #1fa463 50%, #f4f0e6 50%); }
.footer-title { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
html[lang="ar"] .footer-title { font-family: var(--f-body); letter-spacing: 0; font-size: .95rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--em-hi); }
.footer-links .pill { margin-inline-start: 6px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ico { width: 16px; height: 16px; color: var(--muted); }
.flag-code { font-family: var(--f-mono); font-size: .7rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px 34px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-domain { font-family: var(--f-mono); letter-spacing: .08em; }

/* ---------- 19. Lightbox ---------- */
.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 5, 4, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: zoomIn .35s var(--ease-out); }
.lightbox img { max-width: 100%; max-height: 88vh; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: fixed; top: 18px; inset-inline-end: 18px; background: rgba(5, 10, 8, .8); color: #fff; border-color: rgba(255, 255, 255, .2); }

/* ---------- 20. Animazioni ---------- */
.load-in { animation: fadeUp 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 5%, 0) scale(1.08); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(70, 224, 154, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(70, 224, 154, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .emblem .em-draw { stroke-dashoffset: 0; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .media-ticket .ticket-paper .pic { transform: none; }
  .product-stage > .device { transform: none; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-trigger { padding: 10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .tl-item { border-top: 1px solid var(--line); padding-top: 32px; }
  .tl-dot { top: -8px; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .main-nav, .header-tools .lang-switch, .header-cta { display: none; }
  .burger { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }

  .hero-grid, .vision-grid, .founder-grid, .chapter-grid, .chapter-alt .chapter-grid,
  .about-hero-grid, .contact-grid, .faq-grid, .price-card { grid-template-columns: minmax(0, 1fr); }
  .chapter-alt .chapter-copy { order: 0; }
  .faq-grid .sec-head { position: static; }

  .hero-home { min-height: auto; }
  .hero-art { position: absolute; inset-inline-end: -38%; top: 70px; width: 105vw; max-width: none; opacity: .32; z-index: -1; pointer-events: none; }
  [dir="rtl"] .hero-art { inset-inline-end: auto; inset-inline-start: -38%; }
  .float-card { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }

  .billboard { flex-direction: column; align-items: stretch; min-height: 0; }
  .billboard-media { position: relative; height: clamp(260px, 62vw, 420px); }
  .billboard::after { background: linear-gradient(180deg, transparent 30%, var(--bg-1) clamp(260px, 62vw, 420px)); }
  [dir="rtl"] .billboard::after { background: linear-gradient(180deg, transparent 30%, var(--bg-1) clamp(260px, 62vw, 420px)); }
  .bb-main { width: 92%; inset-inline-end: -4%; top: 12%; }
  .bb-display { width: 42%; inset-inline-end: auto; inset-inline-start: 6%; bottom: 4%; }
  .bb-ticket { display: none; }
  .billboard-copy { max-width: none; padding-top: 0; margin-top: -30px; }

  .sector-grid, .why-grid, .skill-grid, .cert-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .chapter-media { max-width: 680px; }
  .founder-portrait { max-width: 300px; }
  .portrait { max-width: 420px; }
  .footer-statement { align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding-block: 72px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .btn-lg { --h: 54px; }
  .header-tools .theme-toggle { width: 38px; height: 38px; }
  .logo-word { font-size: 1.2rem; }

  .values, .sector-grid, .why-grid, .skill-grid, .cert-grid, .pillars, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding-inline: 0; border-inline-start: 0; }
  .facts li { font-size: .9rem; }
  .billboard .ticks { grid-template-columns: 1fr; }
  .bb-brand { gap: 14px; }
  .bb-brand .app-icon { width: 52px; height: 52px; }

  .rail { gap: 12px; }
  .domain { flex-basis: 78vw; min-height: 370px; }
  .rail-nav { display: none; }

  .stage-chips { display: none; }
  .product-stage > .device { transform: none; }
  .chapter { padding-block: 64px; }
  .media-duo { padding-bottom: 22%; }
  .duo-front { width: 70%; }
  .secu-tiles { grid-template-columns: 1fr 1fr; }
  .compare-table { margin-top: 36px; }
  .cmp-row > span { padding: 14px 12px; font-size: .92rem; gap: 8px; }
  .price-incl { padding: 22px; }
  .mock-credit { padding: 18px; }
  .mc-rows li { grid-template-columns: 30px 1fr auto; }
  .mc-rows .mc-days { display: none; }
  .mc-total strong { font-size: 2rem; }

  .field-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg-opt span { min-height: 48px; }
  .form-card { border-radius: var(--r-lg); }
  .aside-card { padding: 20px; }
  .footer-grid { gap: 32px; padding-block: 48px; }
  .name-title { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .quote::before { font-size: 5rem; }
}

@media (hover: none) {
  .zoom-hint { opacity: 1; transform: none; width: 32px; height: 32px; }
}

/* ==========================================================================
   v2 — Identità aziendale: mega-menu, hero con mockup, sezioni corporate
   ========================================================================== */

/* ---------- Header & mega-menu ---------- */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--f-body);
}
.nav-chev { width: 15px; height: 15px; opacity: .6; transition: transform .3s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); opacity: 1; }
.site-header.is-mega { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom-color: var(--line); }

.mega {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding-top: 10px;
  z-index: 2;
}
.mega[hidden] { display: none; }
html.no-js .nav-item:hover .mega, html.no-js .nav-item:focus-within .mega { display: block; }
.mega-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0f1c16, #0a1410);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02);
  animation: megaIn .32s var(--ease-out);
}
:root[data-theme="light"] .mega-panel { background: var(--surface-2); box-shadow: 0 40px 80px -30px rgba(20, 40, 30, .35); }
.mega-list { display: grid; gap: 4px; padding: 8px; align-content: start; }
.mega-list-2 { grid-template-columns: 1fr 1fr; }
.mega-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  transition: background-color .2s;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--surface-hi); }
.mi-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--em-hi);
  background: linear-gradient(160deg, rgba(70, 224, 154, .16), rgba(70, 224, 154, .03));
  box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .2);
  transition: transform .3s var(--ease);
}
:root[data-theme="light"] .mi-ico { color: var(--em); }
.mega-item:hover .mi-ico { transform: scale(1.06); }
.mi-ico .ico { width: 20px; height: 20px; stroke-width: 1.6; }
.mega-item.is-soon .mi-ico { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mi-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mi-txt strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .96rem; font-weight: 600; color: var(--text); }
.mi-txt small { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.mi-txt .pill { height: 18px; padding: 0 7px; font-size: .58rem; }
.mega-feature {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(70, 224, 154, .22);
  background: radial-gradient(90% 70% at 50% 0%, rgba(31, 164, 99, .3), transparent 70%), var(--bg-1);
  transition: border-color .25s;
}
.mega-feature:hover { border-color: rgba(70, 224, 154, .5); }
.mf-shot { padding: 18px 18px 0; }
.mf-shot img { border-radius: 10px 10px 0 0; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .6); }
.mf-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.mf-body .kicker { font-size: .66rem; }
.mf-body .kicker::before { display: none; }
.mf-body strong { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -.02em; }
.mf-body small { color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.mf-body .link-arrow { align-self: flex-start; margin-top: 8px; font-size: .88rem; }
.mega-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 100% 0%, rgba(31, 164, 99, .2), transparent 70%), var(--bg-1);
  min-height: 220px;
}
.mega-aside p { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; }
html[lang="ar"] .mega-aside p { letter-spacing: 0; line-height: 1.7; }
.mega-aside .link-arrow { align-self: flex-start; font-size: .9rem; }
.mega-star, .bs-star {
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--em-hi), transparent 70%);
  -webkit-mask: url("/assets/img/brand/khatam-line.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/khatam-line.svg") center / contain no-repeat;
  opacity: .35;
  animation: spin 90s linear infinite;
}
.mega-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(2, 5, 4, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s var(--ease);
}
.mega-scrim[hidden] { display: none; }

/* Menu mobile: gruppi ad accordion */
.mobile-groups { margin-block: 3vh auto; display: grid; }
.m-group, .m-link {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 60ms);
}
.mobile-menu.is-open .m-group, .mobile-menu.is-open .m-link { opacity: 1; transform: none; }
.m-group summary, .m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.025em;
  cursor: pointer;
  list-style: none;
}
html[lang="ar"] .m-group summary, html[lang="ar"] .m-link { letter-spacing: 0; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary .nav-chev { width: 22px; height: 22px; }
.m-group[open] summary .nav-chev { transform: rotate(180deg); }
.m-list { display: grid; gap: 2px; padding-bottom: 14px; }
.m-list .mega-item { padding: 10px 6px; }

/* ---------- Hero aziendale con mockup ---------- */
.hero-home { min-height: 0; display: block; padding-top: calc(var(--header-h) + clamp(40px, 7vh, 88px)); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-home .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 48px); }
.hero-home .display-hero { font-size: clamp(2.7rem, 5.6vw, 5.4rem); }
html[lang="ar"] .hero-home .display-hero { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(70, 224, 154, .28);
  background: linear-gradient(90deg, rgba(31, 164, 99, .16), rgba(31, 164, 99, .04));
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .25s, background-color .25s;
}
[dir="rtl"] .hero-badge { padding: 6px 8px 6px 14px; }
.hero-badge:hover { border-color: rgba(70, 224, 154, .6); }
.hero-badge .ico { width: 15px; height: 15px; color: var(--em-hi); }
.hb-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--em-hi) 0 28%, rgba(70, 224, 154, .2) 32%); animation: ping 2.4s var(--ease) infinite; }
.hero-home .eyebrow { display: flex; margin-bottom: 22px; }
.hero-home .lead { margin-top: 24px; max-width: 34em; }
.hero-home .actions { margin-top: 36px; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.hero-note .ico { width: 16px; height: 16px; color: var(--em-hi); stroke-width: 2.4; }

.mesh { position: absolute; inset: 0; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(70px); }
.mesh-a { width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; top: -18%; inset-inline-end: -8%; background: radial-gradient(closest-side, rgba(31, 164, 99, .42), transparent); animation: drift 22s ease-in-out infinite alternate; }
.mesh-b { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; top: 30%; inset-inline-end: 22%; background: radial-gradient(closest-side, rgba(12, 107, 62, .5), transparent); animation: drift 28s ease-in-out infinite alternate-reverse; }
.mesh-c { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; top: 8%; inset-inline-end: 4%; background: radial-gradient(closest-side, rgba(226, 59, 78, .14), transparent); animation: drift 34s ease-in-out infinite alternate; }
:root[data-theme="light"] .mesh { opacity: .5; }
.grid-floor {
  position: absolute;
  inset-inline: -20%;
  bottom: -10%;
  height: 60%;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  opacity: .7;
}
.hero-home .pattern-fade { opacity: .1; }

.hero-devices {
  position: relative;
  aspect-ratio: 1.22;
  perspective: 2400px;
  margin-inline-end: calc(var(--gutter) * -1 - max(0px, (100vw - var(--maxw) - var(--gutter) * 2) / 2) + 0px);
}
.hd-glow { position: absolute; inset: 12% 6% 6% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 164, 99, .55), transparent); filter: blur(40px); }
.laptop {
  position: absolute;
  top: 4%;
  inset-inline-start: 8%;
  width: 96%;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -17deg)) rotateX(var(--rx, 7deg)) rotateZ(.6deg);
  transform-origin: 30% 50%;
  transition: transform .9s var(--ease-out);
}
[dir="rtl"] .laptop { --ry: 17deg; transform: rotateY(var(--ry)) rotateX(var(--rx, 7deg)) rotateZ(-.6deg); transform-origin: 70% 50%; }
.laptop-screen {
  position: relative;
  padding: 2.4% 2.4% 3.2%;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(180deg, #121916, #070b09);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px -40px rgba(0, 0, 0, .95), 0 30px 80px -30px rgba(31, 164, 99, .45);
}
.laptop-screen img { width: 100%; border-radius: 6px; }
.laptop-cam { position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1d2622; box-shadow: inset 0 0 0 1.5px #050806; }
.screen-glare { position: absolute; inset: 2.4% 2.4% 3.2%; border-radius: 6px; background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 36%); pointer-events: none; }
.laptop-base {
  position: relative;
  height: 0;
  padding-bottom: 3.2%;
  margin-inline: -7%;
  border-radius: 2px 2px 22px 22px / 2px 2px 14px 14px;
  background: linear-gradient(180deg, #3a4741 0%, #1b2420 45%, #0c1210 100%);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.laptop-base span { position: absolute; top: 0; left: 50%; width: 15%; height: 38%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #0d1311; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
.cust-display {
  position: absolute;
  z-index: 3;
  width: 36%;
  inset-inline-start: -2%;
  bottom: 4%;
  transform: rotateY(var(--ry2, -10deg));
}
[dir="rtl"] .cust-display { --ry2: 10deg; }
.cd-screen { padding: 6px; border-radius: 12px; background: linear-gradient(180deg, #18201c, #080c0a); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6); }
.cd-screen img { border-radius: 7px; }
.cd-stand { display: block; width: 18%; height: 26px; margin: 0 auto; background: linear-gradient(180deg, #1c2521, #0b100e); clip-path: polygon(30% 0, 70% 0, 76% 80%, 100% 80%, 100% 100%, 0 100%, 0 80%, 24% 80%); }
.hero-receipt {
  position: absolute;
  z-index: 4;
  width: 14%;
  inset-inline-end: 9%;
  bottom: -2%;
  transform: rotate(6deg);
  border-radius: 3px;
  overflow: hidden;
  max-height: 46%;
  box-shadow: 0 30px 50px -16px rgba(0, 0, 0, .85);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
[dir="rtl"] .hero-receipt { transform: rotate(-6deg); }
.hchip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: float 8s ease-in-out infinite;
}
[dir="rtl"] .hchip { padding: 10px 10px 10px 16px; }
.hchip small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.hchip b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.hchip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #1fa463; color: #03140b; }
.hchip-ico .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.hchip-ico-shield { background: rgba(226, 59, 78, .16); color: #ff8a97; box-shadow: inset 0 0 0 1px rgba(226, 59, 78, .4); }
.hchip-ico-shield .ico { stroke-width: 1.8; }
.hchip-1 { top: 0; inset-inline-end: 8%; }
.hchip-2 { top: 44%; inset-inline-end: -1%; animation-delay: -4s; }

/* Barra di fiducia */
.trust { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; padding-block: 26px; border-block: 1px solid var(--line); }
.trust-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
html[lang="ar"] .trust-label { font-family: var(--f-body); letter-spacing: 0; font-size: .9rem; }
.trust-list { display: grid; grid-template-columns: repeat(6, 1fr); }
.trust-list li { display: flex; flex-direction: column; gap: 4px; padding-inline: 18px; border-inline-start: 1px solid var(--line); }
.trust-list strong { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
html[lang="ar"] .trust-list strong { letter-spacing: 0; }
.trust-list span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Intestazione divisa */
.sec-split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.sec-split .sec-text { margin-top: 0; }

/* ---------- Bento piattaforma ---------- */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transition: border-color .35s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bento-kassa {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 520px;
  border-color: rgba(70, 224, 154, .28);
  background: radial-gradient(80% 90% at 100% 100%, rgba(31, 164, 99, .3), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
[dir="rtl"] .bento-kassa { background: radial-gradient(80% 90% at 0% 100%, rgba(31, 164, 99, .3), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.bento-kassa:hover { border-color: rgba(70, 224, 154, .55); box-shadow: var(--glow); }
.bk-copy { position: relative; z-index: 2; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.bk-id { display: flex; align-items: center; gap: 14px; }
.bento-kassa h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.bk-copy > p { color: var(--text-2); }
.bk-points { display: grid; gap: 8px; margin-top: 4px; }
.bk-points li { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--text-2); }
.bk-points .ico { width: 16px; height: 16px; color: var(--em-hi); stroke-width: 2.4; }
.bk-copy .link-arrow { margin-top: auto; align-self: flex-start; }
.bk-shot { position: relative; }
.bk-shot .device { position: absolute; top: 18%; inset-inline-start: 0; width: 150%; transform: perspective(1400px) rotateY(-12deg); transform-origin: left center; transition: transform .9s var(--ease-out); }
[dir="rtl"] .bk-shot .device { transform: perspective(1400px) rotateY(12deg); transform-origin: right center; }
.bento-kassa:hover .bk-shot .device { transform: perspective(1400px) rotateY(-6deg) translateX(-2%); }
[dir="rtl"] .bento-kassa:hover .bk-shot .device { transform: perspective(1400px) rotateY(6deg) translateX(2%); }
.bento-soon { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 252px; }
.bento-soon:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.bs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.bs-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-hi); border: 1px solid var(--line); color: var(--text-2); }
.bs-ico .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.bento-soon h3 { margin-top: 28px; font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; }
.bento-soon p { color: var(--muted); font-size: .94rem; }
.bento-soon .bs-star { top: auto; bottom: -70px; inset-inline-end: -70px; width: 200px; height: 200px; opacity: .12; animation-duration: 140s; }
.bento-soon:hover .bs-star { opacity: .25; }

/* ---------- Manifesto ---------- */
.statement { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(90px, 13vw, 190px); text-align: center; border-block: 1px solid var(--line); background: radial-gradient(50% 70% at 50% 50%, rgba(31, 164, 99, .1), transparent 70%); }
.statement-emblem { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(760px, 120vw); transform: translate(-50%, -50%); opacity: .4; }
.statement-text {
  max-width: 21em;
  margin-inline: auto;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.statement-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--em-hi); letter-spacing: -.01em; }
html[lang="ar"] .statement-text { letter-spacing: 0; line-height: 1.6; font-size: clamp(1.5rem, 3vw, 2.6rem); }
html[lang="ar"] .statement-text em { font-style: normal; font-weight: 700; }

/* ---------- Showcase a tab ---------- */
.sc-wrap { margin-top: 64px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.sc-tabs { display: grid; gap: 6px; }
.sc-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: none;
  text-align: start;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.sc-tab:hover { background: var(--surface); }
.sc-tab[aria-selected="true"] { background: var(--surface-hi); border-color: var(--line-strong); }
.sc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: color .25s, background-color .25s, border-color .25s; }
.sc-ico .ico { width: 19px; height: 19px; }
.sc-tab[aria-selected="true"] .sc-ico { color: #03140b; background: var(--em-hi); border-color: transparent; }
.sc-txt { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.sc-txt strong { font-size: 1rem; font-weight: 600; color: var(--text-2); transition: color .2s; }
.sc-tab[aria-selected="true"] .sc-txt strong { color: var(--text); }
.sc-txt small { display: grid; grid-template-rows: 0fr; font-size: .88rem; color: var(--muted); line-height: 1.5; overflow: hidden; transition: grid-template-rows .4s var(--ease-out); }
.sc-tab[aria-selected="true"] .sc-txt small { grid-template-rows: 1fr; }
.sc-progress { position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--em-hi), var(--em)); }
.sc-wrap.is-playing .sc-tab[aria-selected="true"] .sc-progress { animation: progress var(--sc-dur, 6s) linear forwards; }
@keyframes progress { to { width: 100%; } }
.sc-stage { position: relative; }
.sc-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 164, 99, .45), transparent); filter: blur(46px); z-index: -1; }
.sc-device { aspect-ratio: 16 / 10; }
.sc-panel { position: absolute; inset: clamp(6px, .8vw, 11px); border-radius: clamp(6px, .9vw, 11px); overflow: hidden; background: #0b1310; }
.sc-panel:not([hidden]) { animation: panelIn .6s var(--ease-out); }
.sc-panel .zoomable, .sc-panel .pic { height: 100%; }
.sc-panel img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0 !important; }
.sc-panel.is-portrait { background: radial-gradient(70% 90% at 50% 0%, #1b2a23, #0b1310); }
.sc-panel.is-portrait img { object-fit: contain; object-position: center top; padding-top: 4%; }
@keyframes panelIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.sc-more { margin-top: 40px; text-align: center; }

/* ---------- Perché LilouSoft ---------- */
.pillar-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-hi), transparent 75%);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.pillar::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--em-hi), transparent); opacity: 0; transition: opacity .4s; }
.pillar:hover { border-color: rgba(70, 224, 154, .3); transform: translateY(-4px); }
.pillar:hover::before { opacity: 1; }
.pillar-num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.pillar-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--em-hi); background: linear-gradient(160deg, rgba(70, 224, 154, .18), rgba(70, 224, 154, .03)); box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .22); margin-bottom: 44px; }
:root[data-theme="light"] .pillar-ico { color: var(--em); }
.pillar-ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }
.pillar h3 { font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.pillar p { color: var(--text-2); font-size: .95rem; }

/* ---------- Conformità & sicurezza ---------- */
.cp-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5.5vw, 72px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 100% 0%, rgba(31, 164, 99, .22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(226, 59, 78, .07), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cp-copy .kicker { margin-bottom: 20px; }
.cp-text { margin-top: 22px; color: var(--text-2); max-width: 34em; }
.cp-deadline { margin: 30px 0; display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 4px 16px; padding: 16px 22px; border-radius: 18px; border: 1px solid rgba(226, 59, 78, .32); background: linear-gradient(135deg, rgba(226, 59, 78, .1), transparent); }
.cp-deadline span { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.cp-deadline strong { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1; }
.cp-deadline em { font-style: normal; padding: 5px 10px; border-radius: 8px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; }
.cp-copy .link-arrow { display: flex; width: max-content; }
.display-lg sup { font-size: .5em; vertical-align: super; line-height: 0; }
.chain { position: relative; display: grid; gap: 0; justify-items: center; padding: 8px; }
.chain-block {
  position: relative;
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  box-shadow: var(--shadow-md);
}
.chain-block:nth-of-type(odd) { transform: translateX(-6%); }
.chain-block:nth-of-type(even) { transform: translateX(6%); }
.chain-block:last-of-type { border-color: rgba(70, 224, 154, .45); box-shadow: var(--glow); }
.cb-idx { grid-row: span 2; font-family: var(--f-mono); font-size: .72rem; color: var(--em-hi); padding: 6px 8px; border-radius: 8px; background: var(--em-tint); }
.chain-block strong { font-size: .98rem; font-weight: 600; }
.chain-block code { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.chain-link { position: relative; width: 2px; height: 26px; background: linear-gradient(var(--line-strong), var(--line-strong)); overflow: hidden; }
.chain-link::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--em-hi); box-shadow: 0 0 10px var(--em-hi); animation: flow 2.4s linear infinite; animation-delay: calc(var(--j) * .6s); }
@keyframes flow { to { top: 100%; } }
.chain-ok { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--em-hi); }
.chain-ok .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--em-hi); color: #03140b; stroke-width: 3; }
.cp-items { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.cp-items li { display: flex; gap: 14px; align-items: flex-start; }
.cp-items > li > .ico { flex: none; width: 22px; height: 22px; color: var(--em-hi); margin-top: 2px; }
.cp-items h3 { font-size: 1rem; font-weight: 600; }
.cp-items p { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* ---------- Processo di adozione ---------- */
.steps { margin-top: 64px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 12.5%; height: 1px; background: linear-gradient(90deg, var(--em-hi), var(--line-strong) 50%, var(--em-hi)); opacity: .6; }
.step { position: relative; text-align: center; padding-inline: 8px; }
.step-node { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(70, 224, 154, .45); color: var(--em-hi); box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(70, 224, 154, .6); }
.step-node .ico { width: 22px; height: 22px; stroke-width: 1.6; }
.step-num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.step h3 { margin-top: 6px; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 10px auto 0; max-width: 17em; font-size: .94rem; color: var(--text-2); }

/* ---------- Settori (home) ---------- */
.sector-row { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sector-tile a {
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transition: border-color .3s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.sector-tile:not(.is-soon) a:hover { border-color: rgba(70, 224, 154, .4); transform: translateY(-6px); box-shadow: var(--glow); }
.st-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; color: var(--em-hi); background: linear-gradient(160deg, rgba(70, 224, 154, .18), rgba(70, 224, 154, .03)); box-shadow: inset 0 0 0 1px rgba(70, 224, 154, .22); }
:root[data-theme="light"] .st-ico { color: var(--em); }
.st-ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }
.sector-tile h3 { font-family: var(--f-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.sector-tile p { font-size: .9rem; color: var(--text-2); flex: 1; }
.st-cta { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--em-hi); }
:root[data-theme="light"] .st-cta { color: var(--em); }
.st-cta .ico { width: 16px; height: 16px; }
.sector-tile.is-soon a { background: transparent; border-style: dashed; }
.sector-tile.is-soon .st-ico { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sector-tile.is-soon p { color: var(--muted); }
.sector-tile .pill { align-self: flex-start; }

.cta-emblem { display: grid; place-items: center; margin: 0 auto 30px; width: 96px; height: 96px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--glow); }
.cta-emblem .logo-mark { animation: spin 60s linear infinite; }

/* ---------- Footer aziendale ---------- */
.footer-statement .actions { flex: none; }
.site-footer .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand > p { font-size: .94rem; }
.footer-contact { margin-top: 22px; display: grid; gap: 10px; font-size: .9rem; }
.footer-contact a, .footer-addr { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); transition: color .2s; }
.footer-contact a:hover { color: var(--em-hi); }
.footer-addr { color: var(--muted); }
.socials { margin-top: 24px; display: flex; gap: 8px; }
.social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: color .2s, border-color .2s; }
.social .ico { width: 17px; height: 17px; }
a.social:hover { color: var(--em-hi); border-color: rgba(70, 224, 154, .4); }
.social.is-soon { opacity: .4; cursor: default; }
.footer-links li { font-size: .92rem; }
.pill-xs { height: 18px; padding: 0 7px; font-size: .56rem; margin-inline-start: 4px; }
.footer-bottom { align-items: center; }
.footer-bottom .made-in { font-size: .84rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: var(--muted); transition: color .2s; }
.legal-links a:hover { color: var(--text); }

@keyframes megaIn { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- v2 responsive ---------- */
@media (max-width: 1180px) {
  .header-tools .lang-switch { display: none; }
  .trust { grid-template-columns: 1fr; gap: 16px; }
  .trust-list { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .trust-list li:nth-child(4) { border-inline-start: 0; }
  .sector-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  .hero-home .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-devices { margin-inline: 0; margin-top: 24px; aspect-ratio: 1.3; }
  .laptop { inset-inline-start: 6%; width: 92%; --ry: -10deg; --rx: 5deg; }
  [dir="rtl"] .laptop { --ry: 10deg; }
  .sec-split, .cp-grid, .sc-wrap { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-kassa { grid-column: 1 / -1; grid-row: auto; }
  .sc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-tab { flex-direction: column; gap: 10px; padding: 14px; }
  .sc-txt { padding-top: 0; }
  .sc-txt small { display: none; }
  .cp-items { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .hero-home { padding-bottom: 32px; }
}
@media (max-width: 640px) {
  .hero-devices { aspect-ratio: 1.12; }
  .laptop { inset-inline-start: 2%; width: 98%; top: 10%; }
  .cust-display { width: 44%; bottom: 0; }
  .hero-receipt { width: 20%; inset-inline-end: 2%; }
  .hchip { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 12px; }
  .hchip-ico { width: 28px; height: 28px; }
  .hchip b { font-size: .8rem; }
  .hchip-1 { top: 0; inset-inline-end: 0; }
  .hchip-2 { top: auto; bottom: 34%; inset-inline-end: 0; }
  .hero-badge { font-size: .78rem; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(4) { border-inline-start: 1px solid var(--line); }
  .trust-list li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-kassa { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bk-copy { padding: 26px; }
  .bk-shot { height: 220px; }
  .bk-shot .device { top: 0; width: 120%; inset-inline-start: 26px; }
  .bento-soon { min-height: 0; }
  .sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sc-tab { flex-direction: row; align-items: center; padding: 10px; }
  .sc-ico { width: 34px; height: 34px; }
  .sc-txt strong { font-size: .88rem; }
  .pillar-grid, .cp-items, .steps { grid-template-columns: minmax(0, 1fr); }
  .chain-block:nth-of-type(odd), .chain-block:nth-of-type(even) { transform: none; }
  .sector-row { grid-template-columns: minmax(0, 1fr); }
  .sector-tile a { min-height: 0; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-statement .actions { width: 100%; }
}

/* Le composizioni che «sbordano» non devono mai allargare la pagina su mobile */
.hero, .statement, .showcase, .platform { overflow-x: clip; }
.footer-links a.is-soon { color: var(--muted); }
.cp-deadline em, .deadline-law { white-space: nowrap; }
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-kassa { grid-column: 1 / -1; }
  .bento-soon { padding: 18px; gap: 6px; border-radius: 20px; }
  .bento-soon .bs-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bento-soon .bs-ico { width: 40px; height: 40px; border-radius: 12px; }
  .bento-soon h3 { margin-top: 6px; font-size: 1.04rem; }
  .bento-soon p { font-size: .82rem; line-height: 1.45; }
  .bento-soon .pill { height: 20px; font-size: .56rem; padding: 0 7px; }
  .bento-soon:last-child { grid-column: 1 / -1; }
  .pillar { padding: 24px 22px; }
  .pillar-ico { margin-bottom: 20px; width: 46px; height: 46px; }
  .steps { gap: 0; row-gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: start; padding: 0 0 30px; }
  .step::before { content: ""; position: absolute; top: 56px; bottom: 0; inset-inline-start: 27px; width: 1px; background: var(--line-strong); }
  .step:last-child::before { display: none; }
  .step-node { grid-row: span 3; margin: 0; }
  .step p { margin: 6px 0 0; max-width: none; }
  .statement { padding-block: 80px; }
}

/* ---------- Entreprise ---------- */
.hero-about .about-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.hero-about .display-hero { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.about-hero-copy .lead { margin-top: 24px; }
.company-card {
  padding: 28px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: radial-gradient(90% 70% at 100% 0%, rgba(31, 164, 99, .22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-lg);
}
.cc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cc-facts { display: grid; }
.cc-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cc-facts dt { color: var(--muted); font-size: .9rem; }
.cc-facts dd { font-weight: 600; text-align: end; }
.cc-foot { display: flex; align-items: center; gap: 10px; padding-top: 18px; font-size: .86rem; color: var(--text-2); }

.leader {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
}
.leader-photo { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.leader-photo figcaption { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--muted); }
.leader-role { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--em-hi); }
html[lang="ar"] .leader-role { font-family: var(--f-body); letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.leader-name { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
html[lang="ar"] .leader-name { letter-spacing: 0; line-height: 1.3; }
.leader-bio { margin-top: 18px; color: var(--text-2); font-size: 1.04rem; max-width: 40em; }
.leader-sub { margin-top: 36px; margin-bottom: 14px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .leader-sub { letter-spacing: 0; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .88rem; color: var(--text-2); }
.cert-grid-compact { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cert-grid-compact .cert { padding: 14px 16px; gap: 14px; }
.cert-grid-compact .cert-seal { width: 44px; height: 44px; }
.cert h5 { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--text-2); }
.leader .actions { margin-top: 32px; }

.pillar-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.press-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(60% 90% at 0% 100%, rgba(31, 164, 99, .16), transparent 70%), var(--bg-1);
}
.press-panel .kicker { margin-bottom: 18px; }
.press-text { margin: 16px 0 24px; color: var(--text-2); }
.contact-press { border-color: var(--line); background: var(--surface); }
.press-kit h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; }
.press-kit ul { display: grid; gap: 10px; }
.press-kit a { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s; }
.press-kit a:hover { border-color: rgba(70, 224, 154, .4); background: var(--surface-hi); }
.press-kit a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.press-kit small { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.press-kit a > .ico { color: var(--em-hi); }
.kit-thumb { display: grid; place-items: center; width: 140px; height: 56px; border-radius: 10px; background: #050a08; border: 1px solid var(--line); }
.kit-thumb.is-light { background: #f5f2ea; }
.kit-thumb img { width: 110px; height: auto; }

/* ---------- Pagine istituzionali (doc) ---------- */
.hero-doc { padding-bottom: clamp(32px, 4vw, 56px); }
.hero-doc .display-hero { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 16em; }
.hero-doc .eyebrow { margin-bottom: 22px; }
.hero-doc .lead { margin-top: 22px; }
.doc-updated { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.doc-updated .ico { width: 15px; height: 15px; }
.doc-cards-section { padding-top: 24px; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-card-title { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.doc-body { padding-top: 24px; }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.doc-toc ol { display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.doc-toc a { display: flex; gap: 10px; padding: 8px 16px; font-size: .9rem; color: var(--muted); border-inline-start: 2px solid transparent; margin-inline-start: -1px; transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--text); border-color: var(--em-hi); }
.doc-toc a span { font-family: var(--f-mono); font-size: .72rem; padding-top: .2em; color: var(--em-hi); }
.doc-grid > .doc-content:only-child { grid-column: 1 / -1; max-width: 860px; }
.doc-sec { padding-block: 8px 40px; }
.doc-sec + .doc-sec { padding-top: 40px; border-top: 1px solid var(--line); }
.doc-sec h2 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; }
html[lang="ar"] .doc-sec h2 { letter-spacing: 0; }
.prose { margin-top: 16px; color: var(--text-2); max-width: 46em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; padding-inline-start: 0; }
.prose li { position: relative; padding-inline-start: 22px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; background: var(--em-hi); transform: rotate(45deg); border-radius: 1px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--em-hi); border-bottom: 1px solid color-mix(in srgb, var(--em-hi) 40%, transparent); }
.prose .todo { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(229, 165, 58, .14); color: var(--amber); font-family: var(--f-mono); font-size: .8em; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.prose dt { color: var(--muted); }
.prose dd { color: var(--text); }

@media (max-width: 960px) {
  .hero-about .about-hero-grid, .leader, .press-panel, .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .leader-photo { position: static; max-width: 340px; }
  .doc-toc { position: static; }
  .pillar-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cert-grid-compact { grid-template-columns: minmax(0, 1fr); }
  .kit-thumb { width: 96px; height: 44px; }
  .kit-thumb img { width: 80px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}
