/* ==========================================================================
   Enigma Tech — foglio di stile principale
   Struttura: 1. Token  2. Base  3. Layout  4. Componenti  5. Sezioni  6. Pagine  7. Responsive
   ========================================================================== */

/* 1. TOKEN ---------------------------------------------------------------- */
:root {
  --bg: #F8F7F5;          /* sfondo pagina */
  --bg-alt: #EFEDE6;      /* sfondo sezioni alternate */
  --surface: #FFFFFF;     /* card */
  --ink: #181E25;         /* testo principale */
  --ink-soft: #4A5058;    /* testo secondario */
  --line: #D9D7D0;        /* bordi */
  --lime: #D6FD70;        /* colore brand */
  --lime-dark: #B9E44A;

  --font: "Inter", Arial, Helvetica, sans-serif;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 50px;

  --container: none;      /* full width: il contenuto occupa tutta la larghezza, con margini laterali --gutter */
  --gutter: clamp(16px, 3vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1.1; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
blockquote, figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.skip-link:focus { top: 12px; }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
.stack > * + * { margin-top: 24px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* gradiente lime in alto (usato in hero e "Stay different") */
.lime-fade { background: linear-gradient(180deg, var(--lime) 0%, rgba(214, 253, 112, 0) 40%); }

/* 4. COMPONENTI ----------------------------------------------------------- */

/* Tipografia */
.display { font-size: clamp(48px, 8.5vw, 120px); letter-spacing: -0.075em; line-height: 1.05; font-weight: 500; }
.h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.04em; line-height: 1.08; }
.h2 { font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -0.035em; line-height: 1.1; }
.h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -0.02em; line-height: 1.3; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Etichetta a pillola (es. "ABOUT US") */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .02em;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface);
}
.about-hero .tag { color: var(--ink); }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  padding: 7px 7px 7px 18px; border-radius: var(--pill); border: 0; cursor: pointer;
  background: var(--lime); color: var(--ink);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--lime-dark); }
.btn .btn__icon {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; flex-shrink: 0; transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: rotate(45deg); }  /* la freccia ↗ ruota fino a puntare a destra → */
.btn .btn__icon svg { width: 12px; height: 12px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .btn__icon { background: var(--lime); color: var(--ink); }
.btn--dark:hover { background: #2b333d; }
.btn--light { background: var(--surface); border: 1px solid var(--line); }
.btn--light:hover { background: var(--bg-alt); }
.btn--plain { padding: 12px 20px; }

/* Card */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 2.5vw, 36px); }
.card--line { border: 1px solid var(--line); }
.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--lime);
  display: grid; place-items: center; margin-bottom: 28px;
}
.icon-box svg { width: 24px; height: 24px; }

/* Media con angoli arrotondati */
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* Accordion (basato su <details>, nessun JS richiesto) */
.accordion { display: grid; gap: 10px; }
.accordion details { background: var(--surface); border-radius: var(--radius-sm); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 22px 22px; color: var(--ink-soft); }
.accordion--icons summary { justify-content: flex-start; }
.accordion--icons summary::after { margin-left: auto; }
.accordion__ico { width: 28px; height: 28px; border-radius: 8px; background: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.accordion__ico svg { width: 14px; height: 14px; }

/* Marquee loghi */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 40px; width: 120px; object-fit: contain; filter: grayscale(1); opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contatori */
.stat { background: var(--surface); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.stat__num { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.stat__label { color: var(--ink-soft); margin-top: 16px; }

/* Rivelazione allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* HEADER ------------------------------------------------------------------ */
.site-header { position: fixed; inset: 10px var(--gutter) auto; z-index: 100; }
.site-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 12px 0 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.site-header__logo img { height: 24px; width: auto; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; position: relative; padding-block: 6px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime-dark); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-alt); border-radius: var(--radius-sm); cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
main { display: block; }
.page-top { padding-top: calc(var(--header-h) + 60px); }

/* FOOTER ------------------------------------------------------------------ */
.site-footer { padding: 80px var(--gutter) var(--gutter); background: linear-gradient(180deg, rgba(214, 253, 112, 0) 0%, var(--lime) 100%); overflow: hidden; }
.footer-claim { font-size: clamp(48px, 9vw, 130px); letter-spacing: -0.05em; font-weight: 500; white-space: nowrap; line-height: 1; margin-bottom: 40px; }
.footer-claim .marquee__track { gap: 80px; animation-duration: 30s; }
.footer-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; list-style: none; margin: 0 0 48px; padding: 0; }
.footer-nav a { font-size: 12px; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-title { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 32px; }
.footer-label { font-size: 11px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; letter-spacing: .04em; }
.footer-info p { margin: 0; font-size: 14px; }
.footer-info .gap { height: 14px; }
.footer-info a:hover { text-decoration: underline; }
.footer-buttons { display: grid; gap: 8px; justify-items: start; margin-bottom: 32px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--lime); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.footer-bottom a { color: var(--ink); }

/* 5. SEZIONI HOME --------------------------------------------------------- */
.hero { padding: calc(var(--header-h) + 90px) 0 60px; text-align: center; }
.hero__sub { max-width: 340px; margin: 40px auto 28px; }
.hero .tag { margin-bottom: 28px; }
.clients { padding-block: 48px; }

.about-media { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.about-media .media { height: clamp(320px, 42vw, 600px); }
.statement { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 80px; }

.stats-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; margin-top: 80px; }
.chart-card { background: #E8EBF7; border-radius: var(--radius); padding: 24px; }
.chart-card__num { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.chart-card svg { width: 100%; height: auto; margin-top: 12px; }

.section-head { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .tag { margin-bottom: 24px; }

.projects-stack { display: grid; gap: 24px; }
.project-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; height: clamp(320px, 45vw, 620px); color: #fff; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.project-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 48px); z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.project-card__title { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.03em; }
.projects-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }

.services-head { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: end; margin-bottom: 32px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card h3 { font-size: 21px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

.stay { padding-top: var(--section-y); }
.stay__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.stay__quote { font-style: italic; color: var(--ink-soft); font-size: 18px; }
.stay__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.stay__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; }
.stay__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonial { margin: 0; position: absolute; left: 24px; right: 24px; top: 24px; background: var(--surface); border-radius: var(--radius); padding: 28px; }
.testimonial p { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; }
.testimonial__author { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; }
.testimonial__author img { width: 35px; height: 35px; border-radius: 50%; }
.testimonial__author span { display: block; color: var(--ink-soft); font-size: 11px; }
.float-stat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(260px, 80%); }

.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq__title { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.04em; line-height: 1; margin-top: 24px; }

/* 6. PAGINE INTERNE ------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + 80px) 0 var(--section-y); }
.page-hero .tag { margin-bottom: 28px; }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-top: 48px; }

.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.feature .icon-box { width: 44px; height: 44px; margin-bottom: 40px; }
.feature small { display: block; color: var(--ink-soft); margin-bottom: 6px; }

/* Chi siamo */
.about-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 60px) 0 48px; overflow: hidden; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.about-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); z-index: -1; }
.about-hero__inner { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; width: 100%; }
.about-hero h1 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.15; max-width: 900px; margin-block: 20px 28px; }
.about-hero__points { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; font-size: 14px; }
.about-hero__points span { display: inline-flex; align-items: center; gap: 8px; }
.about-hero__points svg { width: 16px; height: 16px; color: var(--lime); }
.quote-card { margin: 0; background: rgba(255,255,255,.12); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 24px; font-size: 14px; }
.quote-card__author { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.quote-card__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.quote-card__author small { display: block; opacity: .75; font-size: 11px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--ink-soft); }
.value-card .num { font-size: 12px; color: var(--ink-soft); margin-bottom: 40px; display: block; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid > *, .form > * { min-width: 0; }
.choice-group { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 14px; cursor: pointer; transition: background .2s; }
.choice input:checked + span { background: var(--lime); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.field .file-drop { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-alt); cursor: pointer; font-size: 14px; }
.file-drop { position: relative; }
.file-drop svg { flex-shrink: 0; }
.file-drop input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-success { display: none; margin-top: 16px; padding: 20px; border-radius: var(--radius-sm); background: var(--lime); }
.form.is-sent + .form-success { display: block; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; min-height: 220px; }
.contact-card .icon-box { width: 40px; height: 40px; background: var(--bg-alt); margin-bottom: auto; border-radius: var(--radius-sm); }
.contact-card .icon-box svg { width: 18px; height: 18px; }
.contact-card small { font-size: 11px; text-transform: uppercase; color: var(--ink-soft); margin-top: 32px; }
.contact-card a:hover { text-decoration: underline; }
.contact-phone { grid-row: span 2; border-radius: var(--radius); background: #1d1d1d center / contain no-repeat; min-height: 380px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Settori */
.industry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.industry:nth-child(even) .industry__media { order: -1; }
.industry__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.industry__media img { width: 100%; height: 100%; object-fit: cover; }
.industry h2 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.03em; margin-bottom: 20px; }
.industry p { color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Portfolio (elenco) */
.filter-bar { position: sticky; top: calc(var(--header-h) + 20px); z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 8px; background: rgba(248,247,245,.9); backdrop-filter: blur(8px); border-radius: var(--pill); margin-bottom: 40px; scrollbar-width: none; }
.filter-bar a { flex-shrink: 0; font-size: 13px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface); }
.filter-bar a:hover { background: var(--lime); }
.pf-group { padding-top: 56px; scroll-margin-top: calc(var(--header-h) + 90px); }
.pf-group__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pf-group__title sup { font-size: .4em; color: var(--ink-soft); }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pf-card .media { aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 14px; }
.pf-card img { transition: transform .8s var(--ease); }
.pf-card:hover img { transform: scale(1.05); }
.pf-card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pf-card__meta span { color: var(--ink-soft); text-align: right; }

/* Portfolio (dettaglio) */
.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; position: sticky; top: calc(var(--header-h) + 30px); }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero h1 { font-size: clamp(44px, 5.5vw, 80px); letter-spacing: -0.045em; margin-block: 20px 28px; }
.case-meta { list-style: none; padding: 0; margin: 36px 0; border-top: 1px solid var(--line); }
.case-meta li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.case-meta li > span:first-child { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; border-radius: var(--pill); background: var(--bg-alt); font-size: 13px; }
.case-overview { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.case-overview h2 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.03em; margin-top: 24px; }
.case-text { font-size: 17px; color: var(--ink-soft); max-width: 760px; }
.case-rest .case-text { margin-left: auto; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-block: 56px; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--3 > :first-child { grid-column: 1 / -1; }
.gallery .media img { aspect-ratio: auto; height: auto; }
.next-project { text-align: center; }
.next-project h2 { font-size: clamp(44px, 7vw, 110px); letter-spacing: -0.05em; margin-block: 24px; }
.next-project p { max-width: 640px; margin: 0 auto 40px; color: var(--ink-soft); }
.next-project .media { aspect-ratio: 21 / 9; }

/* Policy */
.prose { max-width: 820px; margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
/* Pagine policy/flexiclock (page-hero senza varianti): header centrato e titolo più compatto */
.page-hero:not(.lime-fade):not(.fq-hero) .container { text-align: center; }
.page-hero:not(.lime-fade):not(.fq-hero) .container .muted { margin-inline: auto; }
.page-hero:not(.lime-fade):not(.fq-hero) .h1 { font-size: clamp(30px, 3.6vw, 46px); }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin: 56px 0 16px; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose a { text-decoration: underline; color: var(--ink); }

/* 7. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 20px; }
  .services-grid, .grid-3, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-header__actions .btn { display: none; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + 20px) 10px auto; background: var(--surface);
    border-radius: var(--radius); padding: 24px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s; box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; font-size: 18px; padding: 10px 0; text-transform: none; }
  .site-nav .btn { display: inline-flex; margin-top: 16px; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }

  .split, .statement, .stats-wrap, .section-head, .services-head, .stay__head, .stay__grid,
  .faq, .page-hero__grid, .about-hero__inner, .industry, .case-hero, .case-overview, .grid-2 { grid-template-columns: 1fr; }
  .industry:nth-child(even) .industry__media { order: 0; }
  .case-hero__media { position: static; }
  .about-media { grid-template-columns: 1fr; }
  .about-media .media:last-child { display: none; }
  .statement { margin-top: 48px; }
  .stay__media { min-height: 640px; }
  .float-stat { top: auto; bottom: 24px; transform: translateX(-50%); }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .services-grid, .grid-3, .grid-4, .values-grid, .contact-grid, .feature-row, .form, .footer-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pf-card__meta { flex-direction: column; gap: 2px; }
  .pf-card__meta span { text-align: left; }
  .gallery { grid-template-columns: 1fr; }
  .case-meta li { grid-template-columns: 1fr; gap: 6px; }
  .contact-phone { grid-row: auto; }
  .footer-nav ul { justify-content: flex-start; gap: 16px; }
  .projects-foot { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero { padding-top: calc(var(--header-h) + 60px); }
  .stay__media { min-height: 0; padding: 16px; }
  .stay__media:first-child .testimonial { position: relative; inset: auto; }
  .stay__media:last-child { min-height: 420px; }
}

/* ==========================================================================
   8. REDESIGN v2 — sezioni orientate alla conversione
   ========================================================================== */
:root {
  --night: #0E1216;          /* sezioni scure */
  --night-2: #171D23;        /* card su sfondo scuro */
  --night-line: rgba(255,255,255,.12);
  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
}
h1, h2, h3, .display, .h1, .h2, .h3, .footer-title, .footer-claim, .faq__title { font-family: var(--font-display); }
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding-inline: .05em; }
.section--dark .hl, .cta-band .hl { background: none; color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 12px; }
.mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.head-title { margin-top: 20px; max-width: 820px; }
.head-cta { display: flex; justify-content: flex-end; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px) rotate(45deg); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid var(--night-line); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.tag--dark { background: transparent; color: #fff; border-color: var(--night-line); }

/* Hero v2 */
.hero2 { padding: calc(var(--header-h) + 72px) 0 56px; background: radial-gradient(1200px 520px at 85% -10%, rgba(214,253,112,.55), transparent 60%), var(--bg); overflow: hidden; }
.hero2__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero2__title { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 24px 0; }
.hero2__sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 620px; margin-bottom: 32px; }
.hero2__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-soft); }
.hero2__trust li { display: inline-flex; gap: 8px; align-items: center; }
.hero2__trust svg { width: 16px; height: 16px; color: var(--ink); }
.hero2__visual { position: relative; aspect-ratio: 1 / 1; max-height: 640px; }
.hv { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(14,18,22,.25); background: var(--bg-alt); }
.hv img { width: 100%; height: 100%; object-fit: cover; }
.hv--a { left: 0; top: 4%; width: 46%; height: 78%; }
.hv--b { right: 0; top: 0; width: 50%; height: 46%; background: #e9e6df; }
.hv--b img, .hv--c img { object-fit: contain; }
.hv--c { right: 4%; bottom: 0; width: 58%; height: 48%; background: #e9e6df; }
.hv-badge { position: absolute; left: 30%; bottom: 8%; display: inline-flex; align-items: center; gap: 10px; background: var(--night); color: #fff; font-size: 13px; padding: 12px 18px; border-radius: var(--pill); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.hv-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214,253,112,.25); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.kpi { padding: 28px 24px 0 0; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line); }
.kpi__num { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.kpi__label { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.clients--labeled { padding-top: 24px; }
.clients__label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 24px; }

/* Sezione scura + pain points */
.section--dark { background: var(--night); color: #fff; }
.section--dark .muted, .section--dark .section-head p { color: rgba(255,255,255,.65); }
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .3s var(--ease); }
.pain:hover { border-color: var(--lime); transform: translateY(-4px); }
.pain__ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(214,253,112,.12); color: var(--lime); display: grid; place-items: center; }
.pain__ico svg { width: 22px; height: 22px; }
.pain h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.pain p { color: rgba(255,255,255,.65); font-size: 15px; flex: 1; }
.pain .link-arrow { color: var(--lime); align-self: flex-start; font-size: 13px; }

/* Bento servizi */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.bento { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform .35s var(--ease), box-shadow .35s; }
.bento:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(14,18,22,.25); }
.bento--wide { grid-column: span 2; }
.bento--tall { grid-row: span 2; }
.bento--lime { background: var(--lime); border-color: var(--lime); }
.bento__ico { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--lime); display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.bento--lime .bento__ico { background: var(--ink); color: var(--lime); }
.bento__ico svg { width: 22px; height: 22px; }
.bento__body { position: relative; z-index: 1; max-width: 360px; }
.bento h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
.bento p { color: var(--ink-soft); font-size: 15px; }
.bento--lime p { color: var(--ink); }
.bento__img { position: absolute; right: -6%; bottom: -10%; width: 58%; border-radius: var(--radius-sm); transform: rotate(-4deg); transition: transform .5s var(--ease); }
.bento--tall .bento__img { width: 110%; right: -30%; bottom: -6%; transform: rotate(0); border-radius: var(--radius); }
.bento--wide .bento__body { max-width: 46%; }
.bento:hover .bento__img { transform: rotate(-2deg) translateY(-6px); }
.bento__go { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; z-index: 1; transition: transform .3s var(--ease); }
.bento__go svg { width: 14px; height: 14px; }
.bento:hover .bento__go { transform: rotate(45deg); }

/* Casi studio */
.cases { display: grid; gap: 24px; }
.case-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.case-row:nth-child(even) .case-row__media { order: 2; }
.case-row__media { display: block; overflow: hidden; min-height: 380px; }
.case-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-row:hover .case-row__media img { transform: scale(1.04); }
.case-row__body { padding: clamp(28px, 3.5vw, 56px); display: flex; flex-direction: column; }
.case-row h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; margin-bottom: 28px; }
.case-row__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; }
.case-row__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Processo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 28px 0; border-top: 2px solid var(--ink); }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.step__n { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; color: var(--line); line-height: 1; margin: 12px 0 20px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Stack tecnologico */
.stack-strip { border-block: 1px solid var(--line); }
.stack-strip__inner { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; align-items: center; }
.stack-strip__title { font-size: 20px; letter-spacing: -0.02em; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-cloud span { padding: 8px 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }

/* Testimonial grande */
.big-quote { margin: 0; position: relative; background: var(--lime); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 80px); }
.big-quote__mark { position: absolute; top: -10px; right: 40px; font-family: var(--font-display); font-size: 220px; line-height: 1; opacity: .18; }
.big-quote blockquote { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1.25; max-width: 1100px; }
.big-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.big-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; }
.big-quote figcaption span { display: block; font-size: 13px; opacity: .7; }
.big-quote .link-arrow { margin-left: auto; }

/* Settori */
.sector-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.sector-pill { padding: 14px 22px; border-radius: var(--pill); background: var(--surface); font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; transition: background .2s, transform .2s; }
.sector-pill:hover { background: var(--lime); transform: translateY(-2px); }

/* CTA finale */
.cta-band { padding: var(--section-y) 0 0; }
.cta-band__inner { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 96px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; position: relative; overflow: hidden; }
.cta-band__inner::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(214,253,112,.35), transparent 65%); pointer-events: none; }
.cta-band__title { font-size: clamp(36px, 4.8vw, 76px); letter-spacing: -0.045em; line-height: 1.02; font-weight: 600; margin-top: 24px; }
.cta-band__side p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta-band__mail { font-size: 14px; margin-top: 20px; margin-bottom: 0 !important; }
.cta-band__mail a { color: #fff; border-bottom: 1px solid var(--night-line); }

/* Servizi dettaglio */
.srv-index { display: grid; background: var(--surface); border-radius: var(--radius); padding: 8px 24px; }
.srv-index a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.srv-index a:last-child { border-bottom: 0; }
.srv-index a span { font-size: 12px; color: var(--ink-soft); width: 24px; }
.srv-index a svg { width: 14px; height: 14px; margin-left: auto; transform: rotate(90deg); transition: transform .25s; }
.srv-index a:hover svg { transform: rotate(135deg); }
.srv-row { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 40px); }
.srv-row__head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.srv-row__n { font-size: 13px; color: var(--ink-soft); }
.srv-row h2 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.03em; }
.srv-row__desc { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; margin-bottom: 36px; }
.srv-row__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.refs { display: flex; flex-wrap: wrap; gap: 8px; }
.ref { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); background: var(--bg-alt); font-size: 14px; transition: background .2s; }
.ref svg { width: 11px; height: 11px; }
.ref:hover { background: var(--lime); }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.models .bento__ico { color: var(--ink); }
.model { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 32px; }
.model h3 { font-size: 22px; margin: 28px 0 10px; }
.model p { color: rgba(255,255,255,.65); }

/* Contatti v2 */
.contact2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.contact2__aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 30px); }
.card--dark { background: var(--night); color: #fff; }
.card--dark .mini-label { color: rgba(255,255,255,.6); }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.next-steps li { display: flex; gap: 16px; }
.next-steps__n { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.next-steps p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.contact-list small { display: block; font-size: 12px; color: var(--ink-soft); }
.contact-list a:hover { text-decoration: underline; }
.choice-group--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.map--wide, .map--wide iframe { min-height: 360px; }

@media (max-width: 1100px) {
  .pains, .steps { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento--tall { grid-row: span 1; }
  .case-row__cols, .srv-row__cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .hero2__grid, .case-row, .srv-row, .cta-band__inner, .contact2, .stack-strip__inner, .models { grid-template-columns: 1fr; }
  .hero2__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .case-row:nth-child(even) .case-row__media { order: 0; }
  .case-row__media { min-height: 260px; aspect-ratio: 16 / 10; }
  .contact2__aside { position: static; }
  .head-cta { justify-content: flex-start; }
  .srv-row { gap: 24px; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 20px 12px 20px 0; }
  .kpi + .kpi { border-left: 0; padding-left: 0; }
  .kpi:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .pains, .steps, .bento-grid { grid-template-columns: 1fr; }
  .bento--wide { grid-column: auto; }
  .bento--wide .bento__body { max-width: none; }
  .bento__img { position: relative; right: auto; bottom: auto; width: 100%; transform: none; margin-top: 8px; }
  .bento--tall .bento__img { width: 100%; right: auto; }
  .big-quote .link-arrow { margin-left: 0; }
  .hv-badge { left: 8%; }
}

/* ==========================================================================
   9. PAGINE SERVIZIO + MENU SERVIZI
   ========================================================================== */
/* Menu a tendina "Servizi" */
.has-sub { position: relative; }
.subnav {
  position: absolute; left: 50%; top: calc(100% + 18px); transform: translate(-50%, 8px); width: min(640px, 90vw);
  background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: 0 24px 60px -12px rgba(14,18,22,.22);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.site-nav .subnav a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); text-transform: none; font-size: 14px; }
.site-nav .subnav a::after { display: none; }
.site-nav .subnav a:hover { background: var(--bg); }
.subnav .bento__ico { width: 38px; height: 38px; border-radius: var(--radius-sm); }
.subnav .bento__ico svg { width: 18px; height: 18px; }
.subnav strong { display: block; font-weight: 500; }
.subnav small { display: block; color: var(--ink-soft); font-size: 12px; }
.site-nav .subnav .subnav__all { justify-content: center; margin-top: 6px; background: var(--bg-alt); font-weight: 500; font-size: 13px; }
.subnav__all svg { width: 12px; height: 12px; }

/* Hero servizio */
.shero { padding: calc(var(--header-h) + 48px) 0 48px; background: radial-gradient(1000px 480px at 90% -20%, rgba(214,253,112,.55), transparent 60%), var(--bg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 40px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.shero .hero2__title { max-width: 1150px; }
.tag svg { width: 14px; height: 14px; }

/* Bento con mini-interfacce */
.sbento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sbento { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 280px; }
.sbento--wide { grid-column: span 2; }
.sbento h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.sbento p { color: var(--ink-soft); font-size: 15px; }
.mui { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; }
.mui strong { display: block; font-weight: 500; }
.mui small { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12px; }
.mui--row { display: flex; align-items: center; gap: 12px; max-width: 380px; }
.mui__ico { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--ink); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.mui__ico svg { width: 16px; height: 16px; }
.mui__ok { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.mui__ok svg { width: 12px; height: 12px; }
.mui--chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.mui__bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.mui__bar span { width: 100%; border-radius: 6px 6px 2px 2px; background: #DCDAD2; }
.mui__bar:nth-child(4) span { background: var(--lime); }
.mui__bar small { font-size: 11px; }
.mui--list { list-style: none; margin: 0; display: grid; gap: 8px; max-width: 380px; }
.mui--list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius-sm); padding: 8px 10px; }
.mui--list svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.mui--flow { display: flex; align-items: center; gap: 0; }
.mui__node { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
.mui__node--hl { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.mui__line { flex: 1; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-soft) 0 4px, transparent 4px 8px); }
.mui__avatars { display: flex; }
.mui__avatars i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; background: var(--lime); border: 2px solid var(--bg); }
.mui__avatars i + i { margin-left: -10px; background: var(--ink); color: #fff; }
.mui__avatars i:last-child { background: var(--surface); color: var(--ink); }
.mui__live { width: 7px; height: 7px; border-radius: 50%; background: #3BB273; display: inline-block; }
.mui--chat { display: grid; gap: 8px; max-width: 420px; }
.mui--chat p { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); max-width: 85%; }
.mui--chat .q { background: var(--surface); justify-self: end; border-bottom-right-radius: 4px; }
.mui--chat .a { background: var(--ink); color: #fff; border-bottom-left-radius: 4px; }
.mui__gauge { width: 40px; height: 40px; flex-shrink: 0; }

/* Valori, elenco, integrazioni */
.values2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value2 { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); }
.value2 h3 { font-size: 22px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.value2 p { color: var(--ink-soft); }
.what-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.what-list li { display: flex; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--night-line); font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
.what-list span { font-size: 12px; color: var(--lime); font-family: var(--font); }
.integ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.integ { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s; }
.integ:hover { border-color: var(--ink); }
.integ strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.integ small { color: var(--ink-soft); }
.pf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.other-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.other-srv { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15px; transition: background .2s; }
.other-srv:hover { background: var(--lime); }
.other-srv .bento__ico { width: 38px; height: 38px; border-radius: var(--radius-sm); }
.other-srv .bento__ico svg { width: 18px; height: 18px; }
.other-srv > svg { width: 12px; height: 12px; margin-left: auto; flex-shrink: 0; }
.other-srv strong { font-weight: 500; }

@media (max-width: 1100px) {
  .other-grid { grid-template-columns: repeat(3, 1fr); }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .subnav { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; padding: 0 0 8px; }
  .subnav::before { display: none; }
  .has-sub:hover .subnav { transform: none; }
  .subnav__grid { grid-template-columns: 1fr; }
  .site-nav .subnav a { font-size: 14px; padding: 6px 0; }
  .site-nav .subnav small, .subnav__all { display: none !important; }
  .site-nav { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .sbento-grid, .values2, .pf-grid--3 { grid-template-columns: 1fr 1fr; }
  .sbento--wide { grid-column: span 2; }
  .what-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sbento-grid, .values2, .pf-grid--3, .other-grid { grid-template-columns: 1fr; }
  .sbento--wide { grid-column: auto; }
  .mui--flow { flex-wrap: wrap; gap: 8px; }
  .mui__line { display: none; }
}

/* ==========================================================================
   10. PAGINE SERVIZIO PERSONALIZZATE
   ========================================================================== */
/* Hero comune */
.sh { padding: calc(var(--header-h) + 48px) 0 var(--section-y); background: radial-gradient(1000px 480px at 90% -20%, rgba(214,253,112,.5), transparent 60%), var(--bg); overflow: hidden; }
.sh--dark { background: radial-gradient(900px 520px at 85% 0%, rgba(214,253,112,.16), transparent 60%), var(--night); color: #fff; }
.sh--dark .hero2__sub { color: rgba(255,255,255,.7); }
.sh--dark .hl { background: none; color: var(--lime); }
.sh--grid { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), radial-gradient(900px 520px at 85% 0%, rgba(214,253,112,.14), transparent 60%); background-size: 48px 48px, 48px 48px, auto; background-color: var(--night); }
.sh--glow { background: radial-gradient(700px 420px at 75% 45%, rgba(214,253,112,.22), transparent 65%), radial-gradient(600px 400px at 10% 100%, rgba(120,140,255,.12), transparent 60%), var(--night); }
.sh__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sh .hero2__title { font-size: clamp(38px, 4.8vw, 76px); }
.crumbs--dark { color: rgba(255,255,255,.55); }
.crumbs--dark a:hover { color: #fff; }
.sh__center { max-width: 1100px; margin-inline: auto; }
.sh__display { font-size: clamp(48px, 7.5vw, 120px); margin: 24px 0; }
.sh__stage { position: relative; margin-top: 64px; }

/* Finestra codice (custom software) */
.code-win { position: relative; background: #12171C; border: 1px solid var(--night-line); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.code-win__bar, .dv-browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font-size: 12px; color: rgba(255,255,255,.5); }
.code-win__bar i, .dv-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-win__bar span, .dv-browser__bar span { margin-left: 10px; }
.code-win pre { margin: 0; padding: 24px; font: 13px/1.7 ui-monospace, "SF Mono", Consolas, monospace; color: #C9D1D9; overflow-x: auto; }
.c-k { color: #D6FD70; } .c-t { color: #8EC5FF; } .c-c { color: #6E7781; font-style: italic; }
.code-win__toast { position: absolute; left: -24px; bottom: -28px; display: flex; gap: 12px; align-items: center; background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.3); font-size: 13px; }
.code-win__toast strong { display: block; font-weight: 500; }
.code-win__toast small { color: var(--ink-soft); }

/* Prima / Dopo */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba__col { border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 44px); }
.ba__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; font-size: 17px; }
.ba__col--before { background: var(--bg-alt); color: var(--ink-soft); }
.ba__col--before li { text-decoration: line-through; text-decoration-color: rgba(24,30,37,.35); }
.ba__col--after { background: var(--surface); border: 1px solid var(--line); }
.ba__arrow { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.ba__arrow svg { width: 20px; height: 20px; transform: rotate(45deg); }

/* Hub integrazioni */
.hub { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle, transparent 0 34%, rgba(24,30,37,.06) 34% 34.4%, transparent 34.4% 62%, rgba(24,30,37,.06) 62% 62.4%, transparent 62.4%); }
.hub__core { position: absolute; inset: 34%; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; font-weight: 500; font-size: 14px; box-shadow: 0 0 0 12px rgba(214,253,112,.25); }
.hub__core .bento__ico { margin-inline: auto; color: var(--ink); }
.hub__node { position: absolute; width: 92px; padding: 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transform: translate(-50%, -50%); box-shadow: 0 10px 24px -14px rgba(14,18,22,.3); }
.hub__node strong { display: block; font-family: var(--font-display); font-size: 16px; }
.hub__node small { color: var(--ink-soft); font-size: 11px; }

/* Device mockup (web app, siti) */
.devices { position: relative; padding: 0 0 40px 0; }
.dv-browser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(14,18,22,.35); }
.dv-browser__bar { border-bottom-color: var(--line); color: var(--ink-soft); background: var(--bg); }
.dv-browser__bar i { background: #D9D6CE; }
.dv-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #E9E6DF; }
.devices .dv-browser { width: 88%; }
.dv-phone { position: absolute; right: 0; bottom: 0; width: 30%; aspect-ratio: 9 / 19; border-radius: var(--radius-lg); border: 8px solid var(--night); overflow: hidden; background: #E9E6DF; box-shadow: 0 30px 60px -20px rgba(14,18,22,.45); }
.dv-phone img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: 0 20px 40px -12px rgba(14,18,22,.3); font-size: 13px; }
.float-card strong { display: block; font-weight: 500; }
.float-card small { color: var(--ink-soft); }
.devices .float-card { left: -12px; bottom: 8px; }
.dv-browser--xl { max-width: 1100px; margin-inline: auto; }
.dv-browser--xl img { aspect-ratio: 16 / 8; }

/* Web app: piattaforme, roadmap, tecnologie */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plat { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.plat:hover { transform: translateY(-4px); }
.plat h3 { font-size: 22px; margin: 40px 0 10px; }
.plat p { color: var(--ink-soft); font-size: 15px; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--lime), rgba(214,253,112,.15)); }
.roadmap li { position: relative; padding-top: 40px; }
.roadmap__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--night); border: 3px solid var(--lime); }
.roadmap strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; display: block; margin-bottom: 8px; }
.roadmap p { color: rgba(255,255,255,.65); }
.techcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.techcard { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.techcard strong { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.03em; display: block; margin-bottom: 40px; }
.techcard p { color: var(--ink-soft); }

/* IoT: pannello, pipeline, feature, spotlight */
.panel { background: #12171C; border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.panel__head, .panel__foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.7); }
.panel__head span { display: inline-flex; gap: 8px; align-items: center; }
.sensors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.sensor { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: 14px; position: relative; }
.sensor small { color: rgba(255,255,255,.5); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.sensor strong { display: block; font-family: var(--font-display); font-size: 28px; color: #fff; margin-top: 4px; }
.sensor__ok { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 600; color: var(--night); background: var(--lime); padding: 2px 6px; border-radius: 6px; }
.panel__wave { width: 100%; height: 70px; display: block; margin-bottom: 14px; }
.panel__wave path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s var(--ease) forwards infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pipe, .funnel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.funnel { grid-template-columns: repeat(5, 1fr); }
.pipe li, .funnel li { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pipe li:not(:last-child)::after, .funnel li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.pipe__ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--lime); display: grid; place-items: center; margin-bottom: 20px; }
.pipe__ico svg { width: 20px; height: 20px; }
.pipe strong, .funnel strong { font-size: 18px; font-weight: 500; }
.pipe small, .funnel small { color: var(--ink-soft); font-size: 14px; }
.feat2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat2 { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.feat2 span { font-size: 13px; color: var(--ink-soft); }
.feat2 h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; margin: 32px 0 12px; }
.feat2 p { color: var(--ink-soft); }
.spot { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.spot__media { display: block; min-height: 420px; }
.spot__media img { width: 100%; height: 100%; object-fit: cover; }
.spot__body { padding: clamp(32px, 4vw, 64px); align-self: center; }

/* AI: chat, capacità, casi d'uso, avvio */
.chat { background: rgba(23,29,35,.9); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(8px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); display: grid; gap: 14px; font-size: 15px; }
.chat__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--night-line); }
.chat__head small { display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,.55); font-size: 12px; }
.chat__q, .chat__a { margin: 0; padding: 12px 16px; border-radius: var(--radius); max-width: 88%; }
.chat__q { justify-self: end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 4px; }
.chat__a { background: var(--night-2); border: 1px solid var(--night-line); color: rgba(255,255,255,.88); border-bottom-left-radius: 4px; }
.chat__a b { color: var(--lime); font-weight: 500; }
.chat__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chat__chips span { font-size: 12px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--night-line); color: rgba(255,255,255,.8); }
.chat__input { margin-top: 4px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--night); border: 1px solid var(--night-line); color: rgba(255,255,255,.4); font-size: 14px; }
.chat__caret { display: inline-block; width: 2px; height: 16px; background: var(--lime); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cap__ico { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--lime); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.cap__ico svg { width: 20px; height: 20px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.cap .cap__ico { width: 52px; height: 52px; }
.cap h3 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.cap p { color: var(--ink-soft); }
.uc { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }
.uc-tabs { display: grid; gap: 8px; align-content: start; }
.uc-tab { text-align: left; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--night-line); background: transparent; color: rgba(255,255,255,.75); font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.uc-tab:hover { color: #fff; }
.uc-tab.is-active { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 500; }
.uc-panel { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.uc-panel > p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; margin-bottom: 28px; }
.uc-term { display: grid; gap: 8px; background: var(--night); border-radius: var(--radius-sm); padding: 20px; }
.uc-term code { font: 14px/1.5 ui-monospace, Consolas, monospace; color: rgba(255,255,255,.8); }
.uc-term code:not(:first-child) { color: var(--lime); }
.start { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.start li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.start li span { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.start strong { font-size: 20px; font-weight: 500; }
.start p { color: var(--ink-soft); margin-top: 4px; }

/* Siti web: punteggi, showcase, confronto, incluso */
.scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: -32px; position: relative; }
.score { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: 0 20px 40px -16px rgba(14,18,22,.3); font-size: 13px; }
.score strong { display: block; font-weight: 500; }
.score small { color: var(--ink-soft); }
.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.show span { display: block; margin-top: 12px; font-weight: 500; }
.show .dv-browser { transition: transform .4s var(--ease); }
.show:hover .dv-browser { transform: translateY(-6px); }
.cmps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmps--3 { grid-template-columns: repeat(3, 1fr); }
.cmp { padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.cmp--hl { background: var(--night); color: #fff; border-color: var(--night); }
.cmp--hl .mini-label, .cmp--hl .muted, .cmp--hl .cmp__ex { color: rgba(255,255,255,.65); }
.cmp h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; margin-bottom: 20px; }
.cmp .ticks { margin-bottom: 24px; }
.cmp__ex { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.cmp--hl .cmp__ex { border-top-color: var(--night-line); }
.incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); }
.incl svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--lime); color: var(--ink); flex-shrink: 0; }

/* E-commerce: shop mockup, pain, funnel */
.shop { position: relative; padding: 24px 0 48px; }
.shop__product { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(14,18,22,.35); }
.shop__product img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: #E9E6DF; }
.shop__product > div { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.shop__product small { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.shop__product strong { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.shop__product span { font-size: 18px; }
.shop__product b { margin-top: 12px; align-self: flex-start; font-weight: 500; font-size: 13px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.shop__order { right: -12px; top: 0; }
.shop__stock { position: absolute; left: 24px; bottom: 8px; background: var(--night); color: #fff; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; box-shadow: 0 20px 40px -12px rgba(14,18,22,.4); }
.shop__stock small { display: block; color: rgba(255,255,255,.6); font-size: 11px; }
.shop__stock strong { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.epains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.epain { padding: 36px; border-radius: var(--radius-lg); background: var(--night-2); border: 1px solid var(--night-line); }
.epain span { font-size: 13px; color: var(--lime); }
.epain h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; margin: 40px 0 14px; }
.epain p { color: rgba(255,255,255,.65); }

@media (max-width: 1100px) {
  .plat-grid, .feat2-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .funnel { grid-template-columns: repeat(3, 1fr); }
  .pipe li::after, .funnel li::after { display: none; }
  .caps, .techcards, .epains, .cmps--3 { grid-template-columns: 1fr 1fr; }
  .shows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sh__grid, .spot, .uc, .ba { grid-template-columns: 1fr; }
  .ba__arrow { justify-self: center; transform: rotate(90deg); }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap::before { display: none; }
  .code-win__toast { left: 12px; }
  .spot__media { min-height: 260px; }
}
@media (max-width: 640px) {
  .plat-grid, .feat2-grid, .pipe, .funnel, .caps, .techcards, .epains, .cmps, .cmps--3, .shows, .incl, .roadmap { grid-template-columns: 1fr; }
  .hub__node { width: 64px; padding: 6px; }
  .hub__node strong { font-size: 13px; }
  .hub__node small { display: none; }
  .hub__core { font-size: 12px; }
  .shop__product { grid-template-columns: 1fr; }
  .shop__order { right: 0; }
  .scores { margin-top: 16px; }
  .code-win pre { font-size: 11px; }
}

/* ==========================================================================
   11. LOGHI ANIMATI (marquee, orbita, griglia fluttuante)
   ========================================================================== */
.tlogo { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.tlogo--txt { display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--lime); font: 600 11px/1 var(--font); letter-spacing: .02em; }
.tchip { display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tchip strong { display: block; font-weight: 500; font-size: 15px; }
.tchip small { display: block; color: var(--ink-soft); font-size: 12px; }
.tchip:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 16px 30px -18px rgba(14,18,22,.4); }

/* Marquee a righe alterne */
.tmq { display: grid; gap: 14px; overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tmq__track { display: flex; gap: 14px; width: max-content; animation: tmq var(--d, 40s) linear infinite; }
.tmq__row--rev .tmq__track { animation-direction: reverse; }
.tmq:hover .tmq__track { animation-play-state: paused; }
@keyframes tmq { to { transform: translateX(calc(-50% - 7px)); } }
.tmq--dark .tchip { background: var(--night-2); border-color: var(--night-line); color: #fff; }
.tmq--dark .tchip small { color: rgba(255,255,255,.55); }
.stack-band { overflow: hidden; }
.stack-band .section-head { margin-bottom: 40px; }

/* Orbita (pagina AI) */
.orb { --size: min(520px, 86vw); position: relative; width: var(--size); height: var(--size); margin-inline: auto; }
.orb::before, .orb::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.orb::before { inset: 22%; }
.orb::after { inset: 2%; }
.orb__core { position: absolute; inset: 37%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2A3340, var(--night)); border: 1px solid var(--night-line); box-shadow: 0 0 0 10px rgba(214,253,112,.08), 0 0 80px rgba(214,253,112,.35); animation: orbPulse 3.5s ease-in-out infinite; z-index: 2; }
@keyframes orbPulse { 50% { box-shadow: 0 0 0 18px rgba(214,253,112,.05), 0 0 120px rgba(214,253,112,.5); } }
.orb__brand { font: 600 clamp(16px, 2.2vw, 24px)/1 var(--font-display); letter-spacing: -0.04em; color: #fff; }
.orb__brand b { color: var(--lime); font-weight: 600; margin-left: 2px; }
.orb__ring { position: absolute; border-radius: 50%; animation: orbSpin var(--t) linear infinite; }
.orb__ring--in { inset: 22%; --t: 36s; }
.orb__ring--out { inset: 2%; --t: 60s; animation-direction: reverse; }
.orb__item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--size) * -.5 + var(--off))); }
.orb__ring--in .orb__item { --off: calc(var(--size) * .22); }
.orb__ring--out .orb__item { --off: calc(var(--size) * .02); }
.orb__badge { position: absolute; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: var(--radius); background: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  transform: rotate(calc(var(--a) * -1)); animation: orbCounter var(--t) linear infinite; }
.orb__ring--out .orb__badge { animation-direction: reverse; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: var(--radius-sm); }
.orb__badge .tlogo { width: 30px; height: 30px; }
.orb__ring--in .orb__badge { --t: 36s; }
.orb__ring--out .orb__badge { --t: 60s; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbCounter { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
.orb:hover .orb__ring, .orb:hover .orb__badge { animation-play-state: paused; }

/* Griglia fluttuante (IoT) */
.tfloat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tfloat__item .tchip { animation: tfloat 5s ease-in-out infinite; animation-delay: var(--delay); }
.tfloat__item:nth-child(even) { transform: translateY(24px); }
.tfloat__item.reveal.is-visible:nth-child(even) { transform: translateY(24px); }
@keyframes tfloat { 50% { transform: translateY(-8px); } }

/* Logo nelle card tecnologia (web app) */
.techcard__logo { width: 64px; height: 64px; border-radius: var(--radius); background: var(--surface); display: grid; place-items: center; margin-bottom: 28px; box-shadow: 0 12px 24px -14px rgba(14,18,22,.35); animation: tfloat 6s ease-in-out infinite; }
.techcard:nth-child(2) .techcard__logo { animation-delay: .8s; }
.techcard:nth-child(3) .techcard__logo { animation-delay: 1.6s; }
.techcard__logo .tlogo { width: 36px; height: 36px; }
.techcard strong { margin-bottom: 16px; }

/* Hub custom software: anello che ruota */
.hub::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; border: 2px dashed rgba(24,30,37,.18); animation: orbSpin 40s linear infinite; }

@media (max-width: 640px) {
  .orb__badge { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: var(--radius-sm); }
  .orb__ring--out .orb__badge { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .orb__badge .tlogo { width: 22px; height: 22px; }
  .tchip { padding: 10px 14px 10px 10px; }
  .tfloat { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tmq__track, .orb__ring, .orb__badge, .orb__core, .tfloat__item .tchip, .techcard__logo, .hub::after, .panel__wave path, .chat__caret { animation: none !important; }
  .tmq { overflow-x: auto; }
}
.orb-section { overflow: hidden; }

/* ==========================================================================
   12. PAGINA SERVIZI v3
   ========================================================================== */
.svh { padding: calc(var(--header-h) + 64px) 0 var(--section-y); background: radial-gradient(1100px 520px at 10% -10%, rgba(214,253,112,.45), transparent 60%), var(--bg); }
.svh__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.svh__head .hero2__title { margin-bottom: 0; }
.svh__head .hero2__sub { margin-bottom: 28px; }

/* Vetrina con schede */
.svs { display: grid; grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: 0 40px 80px -50px rgba(14,18,22,.35); }
.svs-tabs { display: grid; gap: 4px; align-content: start; }
.svs-tab { position: relative; display: grid; grid-template-columns: 26px 36px 1fr; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 16px 14px; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; font-size: 16px; color: var(--ink-soft); transition: background .25s, color .25s; overflow: hidden; }
.svs-tab:hover { background: var(--bg); color: var(--ink); }
.svs-tab.is-active { background: var(--night); color: #fff; }
.svs-tab__n { font-size: 12px; opacity: .6; }
.svs-tab__ico { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-alt); display: grid; place-items: center; color: var(--ink); transition: background .25s; }
.svs-tab.is-active .svs-tab__ico { background: var(--lime); }
.svs-tab__ico svg { width: 18px; height: 18px; }
.svs-tab__name { font-weight: 500; }
.svs-tab__bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); opacity: 0; }
.svs-tab__bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 2px; }
.svs.is-auto .svs-tab.is-active .svs-tab__bar { opacity: 1; }
.svs.is-auto .svs-tab.is-active .svs-tab__bar i { animation: svsBar var(--svs-dur, 6s) linear forwards; }
.svs.is-paused .svs-tab.is-active .svs-tab__bar i { animation-play-state: paused; }
@keyframes svsBar { to { width: 100%; } }
.svs-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg); animation: svsIn .5s var(--ease); }
@keyframes svsIn { from { opacity: 0; transform: translateY(10px); } }
.svs-panel__media { position: relative; min-height: 440px; background: #E9E6DF; overflow: hidden; }
.svs-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: svsZoom 8s ease-out forwards; }
@keyframes svsZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.svs-panel__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.svs-panel__title { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.035em; line-height: 1.08; }
.svs-panel__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.logo-row { display: flex; gap: 8px; }
.logo-row__item { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.logo-row__item .tlogo { width: 22px; height: 22px; }
.logo-row__item .tlogo--txt { width: 22px; height: 22px; font-size: 9px; }

/* Numeri */
.svh-trust { padding-top: 0; }
.kpis--flat { margin-top: 0; }

/* Obiettivi */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goal { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.goal::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--lime); transition: width .5s var(--ease); }
.goal:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(14,18,22,.35); }
.goal:hover::before { width: 100%; }
.goal__n { font: 600 44px/1 var(--font-display); letter-spacing: -0.04em; color: var(--line); }
.goal h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 20px; }
.goal p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.goal__links { display: grid; gap: 6px; margin-top: 8px; }
.goal__link { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; font-weight: 500; transition: background .2s; }
.goal__link svg { width: 12px; height: 12px; }
.goal__link:hover { background: var(--lime); }

/* Catalogo */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .35s var(--ease), background .35s, color .35s; }
.svc::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(214,253,112,.55), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.svc:hover { transform: translateY(-6px); background: var(--night); color: #fff; border-color: var(--night); }
.svc:hover::after { opacity: 1; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.svc__n { font-size: 13px; color: var(--ink-soft); transition: color .35s; }
.svc h3 { font-size: 26px; letter-spacing: -0.025em; }
.svc p { color: var(--ink-soft); font-size: 15px; transition: color .35s; }
.svc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.svc__list li { padding-left: 16px; position: relative; color: var(--ink-soft); transition: color .35s; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); }
.svc:hover p, .svc:hover .svc__list li, .svc:hover .svc__n { color: rgba(255,255,255,.7); }
.svc__foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); transition: border-color .35s; }
.svc:hover .svc__foot { border-color: var(--night-line); }
.svc__go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s; }
.svc:hover .svc__go { background: var(--lime); color: var(--ink); transform: rotate(45deg); }
.svc__go svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .svs { grid-template-columns: 1fr; }
  .svs-tabs { grid-template-columns: repeat(3, 1fr); }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svh__head { grid-template-columns: 1fr; gap: 20px; }
  .svs-panel { grid-template-columns: 1fr; }
  .svs-panel__media { min-height: 240px; }
}
@media (max-width: 640px) {
  .svs-tabs { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .svs-tab { flex: 0 0 auto; width: auto; grid-template-columns: 32px auto; padding: 10px 14px 10px 10px; }
  .svs-tab__n { display: none; }
  .svs-tab__ico { width: 32px; height: 32px; }
  .goals, .svc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .svs-panel, .svs-panel__media img { animation: none; }
}
.svs-panel[hidden], .uc-panel[hidden] { display: none !important; }

/* ==========================================================================
   13. SETTORI (pagina generale + pagine dedicate)
   ========================================================================== */
.subnav--1 { width: min(360px, 90vw); }
.subnav--1 .subnav__grid { grid-template-columns: 1fr; }

.ih { padding: calc(var(--header-h) + 64px) 0 var(--section-y); background: radial-gradient(1100px 520px at 90% -10%, rgba(214,253,112,.45), transparent 60%), var(--bg); }
.sfeat-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 640px; }
.sfeat { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; min-height: 300px; background: var(--night); }
.sfeat--0 { grid-row: span 2; }
.sfeat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sfeat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,22,.05) 20%, rgba(14,18,22,.85)); transition: background .4s; }
.sfeat:hover img { transform: scale(1.06); }
.sfeat:hover::after { background: linear-gradient(180deg, rgba(14,18,22,.2) 0%, rgba(14,18,22,.92)); }
.sfeat__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3vw, 40px); }
.sfeat__count { display: inline-block; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--pill); background: var(--lime); color: var(--ink); margin-bottom: 16px; }
.sfeat h2 { font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 10px; }
.sfeat--0 h2 { font-size: clamp(32px, 3.8vw, 60px); }
.sfeat p { color: rgba(255,255,255,.8); max-width: 520px; }
.sfeat__clients { font-size: 13px; margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; color: rgba(255,255,255,.6) !important; }
.sfeat:hover .sfeat__clients, .sfeat:focus-visible .sfeat__clients { max-height: 80px; opacity: 1; }
.sfeat__go { position: absolute; top: 24px; right: 24px; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; }
.sfeat:hover .sfeat__go { transform: rotate(45deg); background: var(--lime); }
.sfeat__go svg { width: 16px; height: 16px; }
.osec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.osec { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.osec h3 { font-size: 20px; margin-top: 24px; letter-spacing: -0.02em; }
.osec p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.osec__links { display: flex; flex-wrap: wrap; gap: 6px; }
.osec__links a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 6px 12px; border-radius: var(--pill); background: var(--bg); }
.osec__links a:hover { background: var(--lime); }
.osec__links svg { width: 10px; height: 10px; }
.sbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sbars li { display: grid; grid-template-columns: 200px 1fr 32px; gap: 16px; align-items: center; font-size: 15px; }
.sbar__track { height: 12px; border-radius: 6px; background: var(--bg-alt); overflow: hidden; }
.sbar__fill { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--ink); transition: width 1.4s var(--ease); }
.sbars li:nth-child(-n+3) .sbar__fill { background: var(--lime-dark); }
.sbars li.is-visible .sbar__fill { width: var(--w); }
.sbar__n { font: 600 18px/1 var(--font-display); text-align: right; }
.smeth { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.smeth li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); }
.smeth span { grid-row: span 2; color: var(--lime); font-size: 13px; }
.smeth strong { font-size: 20px; font-weight: 500; }
.smeth p { color: rgba(255,255,255,.65); margin-top: 4px; }

/* Pain points come citazioni */
.spains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spain { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .35s var(--ease); }
.spain:hover { border-color: var(--ink); transform: translateY(-4px); }
.spain__q { font: 500 clamp(20px, 1.9vw, 26px)/1.3 var(--font-display); letter-spacing: -0.02em; }
.spain__a { padding-top: 20px; border-top: 1px solid var(--line); }
.spain__a p { color: var(--ink-soft); }
.ssol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ssol__item { display: flex; flex-direction: column; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-alt); transition: background .3s, transform .35s var(--ease); position: relative; }
.ssol__item h3 { font-size: 22px; margin-bottom: 6px; }
.ssol__item p { color: var(--ink-soft); font-size: 15px; }
.ssol__item .svc__go { position: absolute; top: 24px; right: 24px; }
.ssol__item:hover { background: var(--lime); transform: translateY(-4px); }
.ssol__item:hover .svc__go { transform: rotate(45deg); }
.other-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Industria: linea di produzione */
.fpanel { background: #12171C; border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.fline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 28px 0 24px; }
.fline__track { position: absolute; left: 8%; right: 8%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
.fline__dot { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); animation: fdot 6s linear infinite; }
.fline__dot--2 { animation-delay: -3s; }
@keyframes fdot { 0% { left: 0%; } 16.67% { left: 20%; } 33.33% { left: 40%; } 50% { left: 60%; } 66.67% { left: 80%; } 83.33%, 100% { left: 100%; } }
.fline__st { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.fline__ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-line); color: #fff; display: grid; place-items: center; animation: fst 6s linear infinite; animation-delay: calc(var(--i) * 1s - 6s); }
.fline__ico svg { width: 18px; height: 18px; }
@keyframes fst { 0%, 12% { background: var(--lime); color: var(--ink); border-color: var(--lime); } 20%, 100% { background: var(--night-2); color: #fff; border-color: var(--night-line); } }
.fline__st small { font-size: 11px; color: rgba(255,255,255,.6); }
.fpanel__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fpanel__kpis div { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: 12px 14px; }
.fpanel__kpis small { display: block; font-size: 11px; color: rgba(255,255,255,.5); }
.fpanel__kpis strong { font: 600 22px/1.2 var(--font-display); color: #fff; }
.suite-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.suite { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.suite__item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .35s var(--ease); }
.suite__item:hover { transform: translateY(-6px); }
.suite__item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #E9E6DF; }
.suite__item div { padding: 14px 16px; }
.suite__item strong { display: block; font-weight: 500; }
.suite__item small { color: var(--ink-soft); font-size: 12px; }

/* Retail: collage */
.sh--cream { background: radial-gradient(900px 500px at 85% 10%, rgba(214,253,112,.35), transparent 60%), linear-gradient(180deg, #F3EFE7, var(--bg)); }
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 64px); gap: 12px; }
.collage__item { position: relative; border-radius: var(--radius); overflow: hidden; background: #E2DDD3; box-shadow: 0 24px 50px -28px rgba(14,18,22,.4); animation: tfloat 7s ease-in-out infinite; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.collage__item:hover img { transform: scale(1.06); }
.collage__item span { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--pill); background: rgba(255,255,255,.92); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.collage__item:hover span { opacity: 1; transform: none; }
.collage__item--c1 { grid-column: 1 / 4; grid-row: 1 / 5; }
.collage__item--c2 { grid-column: 4 / 7; grid-row: 1 / 3; animation-delay: -2s; }
.collage__item--c3 { grid-column: 4 / 6; grid-row: 3 / 6; animation-delay: -4s; }
.collage__item--c4 { grid-column: 6 / 7; grid-row: 3 / 6; animation-delay: -1s; }
.collage__item--c5 { grid-column: 1 / 4; grid-row: 5 / 7; animation-delay: -5s; }

/* Turismo: calendario */
.sh--sun { background: radial-gradient(800px 480px at 80% 20%, rgba(214,253,112,.55), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(255,214,150,.35), transparent 60%), var(--bg); }
.cal { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 40px 80px -40px rgba(14,18,22,.4); max-width: 480px; margin-left: auto; }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cal__head strong { font: 600 24px/1 var(--font-display); letter-spacing: -0.02em; }
.cal__head span { font-size: 13px; color: var(--ink-soft); }
.cal__wd, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal__wd span { font-size: 11px; color: var(--ink-soft); padding-bottom: 6px; }
.cal__d { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); }
.cal__d.is-booked { background: var(--bg-alt); color: #B5B1A6; text-decoration: line-through; }
.cal__d.is-sel { background: var(--ink); color: var(--lime); font-weight: 600; animation: calPulse 2.4s ease-in-out infinite; }
@keyframes calPulse { 50% { box-shadow: 0 0 0 6px rgba(214,253,112,.45); } }
.cal__legend { display: flex; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--ink-soft); }
.cal__legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line); }
.cal__legend i.is-booked { background: var(--bg-alt); }
.cal__legend i.is-sel { background: var(--ink); }
.cal__toast { left: -40px; bottom: -28px; animation: tfloat 5s ease-in-out infinite; }

@media (max-width: 1100px) {
  .osec-grid { grid-template-columns: repeat(2, 1fr); }
  .suite { grid-template-columns: repeat(3, 1fr); }
  .ssol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sfeat-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .sfeat--0 { grid-row: auto; min-height: 420px; }
  .sfeat__clients { max-height: none; opacity: 1; }
  .spains { grid-template-columns: 1fr; }
  .cal { margin: 0 auto; }
  .cal__toast { left: 12px; }
  .sbars li { grid-template-columns: 140px 1fr 28px; font-size: 14px; }
}
@media (max-width: 640px) {
  .osec-grid, .ssol, .other-grid--3 { grid-template-columns: 1fr; }
  .suite { grid-template-columns: 1fr 1fr; }
  .fline { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .fline__track { display: none; }
  .collage { grid-template-rows: repeat(6, 44px); }
  .sbars li { grid-template-columns: 110px 1fr 24px; gap: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .fline__dot, .fline__ico, .collage__item, .cal__d.is-sel, .cal__toast { animation: none !important; }
  .sbar__fill { transition: none; width: var(--w); }
}

/* ==========================================================================
   14. PAGINA ENIGMA (about) + GIOCO
   ========================================================================== */
.ab-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: radial-gradient(1000px 500px at 0% -10%, rgba(214,253,112,.45), transparent 60%), var(--bg); }
.ab-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ab-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(460px, 50vw, 600px); background: #E9E6DF; }
.ab-hero__media > img { width: 100%; height: 100%; object-fit: cover; }
.ab-quote { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; padding: 22px; border-radius: var(--radius); background: rgba(14,18,22,.72); backdrop-filter: blur(14px); color: #fff; font-size: 15px; }
.ab-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ab-quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ab-quote small { display: block; color: rgba(255,255,255,.6); font-size: 12px; }
.manifesto { font: 500 clamp(28px, 3.6vw, 56px)/1.15 var(--font-display); letter-spacing: -0.035em; max-width: 1200px; }
.ab-video { aspect-ratio: 4 / 3; }

/* Principi: card con numero grande e hover */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { position: relative; padding: 28px; min-height: 240px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: background .35s, color .35s, transform .35s var(--ease); outline: none; }
.pcard__n { position: absolute; top: 16px; right: 20px; font: 600 64px/1 var(--font-display); letter-spacing: -0.05em; color: var(--bg-alt); transition: color .35s; }
.pcard h3 { font-size: 22px; letter-spacing: -0.02em; position: relative; }
.pcard p { font-size: 14px; color: var(--ink-soft); position: relative; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .35s; }
.pcard:hover, .pcard:focus-visible { background: var(--night); color: #fff; transform: translateY(-4px); }
.pcard:hover .pcard__n, .pcard:focus-visible .pcard__n { color: rgba(214,253,112,.25); }
.pcard:hover p, .pcard:focus-visible p { max-height: 160px; opacity: 1; color: rgba(255,255,255,.7); }
.roadmap--5 { grid-template-columns: repeat(5, 1fr); }
.roadmap--5 strong { color: var(--lime); }

/* Dove siamo */
.where { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: stretch; }
.where__card { padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--bg-alt); display: flex; flex-direction: column; justify-content: center; }
.where__map, .where__map iframe { min-height: 420px; height: 100%; }

/* Gioco */
.mm-section { overflow: hidden; background: radial-gradient(800px 500px at 85% 50%, rgba(214,253,112,.14), transparent 60%), var(--night); }
.mm-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mm-text { color: rgba(255,255,255,.75); margin-top: 20px; max-width: 520px; }
.mm-text strong { color: #fff; font-weight: 500; }
.mm-small { font-size: 14px; color: rgba(255,255,255,.55); }
.mm-legend { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: rgba(255,255,255,.75); font-size: 15px; }
.mm-legend li { display: flex; align-items: center; gap: 12px; }
.mm { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 28px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); display: grid; gap: 16px; }
.mm-board { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; min-height: 52px; scrollbar-width: thin; }
.mm-board:empty::before { content: "I tuoi tentativi appariranno qui"; display: grid; place-items: center; height: 52px; border: 1px dashed var(--night-line); border-radius: var(--radius-sm); font-size: 13px; color: rgba(255,255,255,.4); }
.mm-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); animation: svsIn .35s var(--ease); }
.mm-row__n { font-size: 12px; color: rgba(255,255,255,.4); }
.mm-row__code { display: flex; gap: 6px; }
.mm-row__code .mm-slot { width: 44px; height: 40px; font-size: 14px; }
.mm-row__pegs { display: grid; grid-template-columns: repeat(2, 12px); gap: 4px; }
.mm-peg { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); display: inline-block; }
.mm-peg--hit { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 8px rgba(214,253,112,.6); }
.mm-peg--near { border-color: var(--lime); }
.mm-current { display: flex; gap: 10px; justify-content: center; padding: 14px; border-radius: var(--radius-sm); background: var(--night); border: 1px solid var(--night-line); }
.mm-slot { width: 64px; height: 56px; border-radius: var(--radius-sm); border: 1.5px dashed rgba(255,255,255,.2); display: grid; place-items: center; font: 600 18px/1 ui-monospace, Consolas, monospace; color: #fff; transition: transform .2s var(--ease), background .2s; }
.mm-slot.is-filled { border-style: solid; border-color: rgba(214,253,112,.5); background: rgba(214,253,112,.08); color: var(--lime); }
.mm-current .mm-slot.is-filled { animation: mmPop .25s var(--ease); }
@keyframes mmPop { 50% { transform: scale(1.12); } }
.mm-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mm-key { height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--night-line); background: var(--night); color: #fff; font: 600 17px/1 ui-monospace, Consolas, monospace; cursor: pointer; transition: background .2s, transform .15s, color .2s; }
.mm-key:hover:not(:disabled) { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.mm-key:disabled { opacity: .3; cursor: not-allowed; }
.mm-actions { display: flex; justify-content: space-between; gap: 10px; }
.mm-actions .btn:disabled { opacity: 1; color: rgba(255,255,255,.82); cursor: not-allowed; }
.mm-del { padding-inline: 18px; justify-content: center; }
.mm-result { padding: 20px; border-radius: var(--radius-sm); background: var(--night); border: 1px solid var(--night-line); animation: svsIn .4s var(--ease); }
.mm-result.is-win { border-color: var(--lime); background: radial-gradient(400px 200px at 50% 0%, rgba(214,253,112,.18), transparent 70%), var(--night); }
.mm-result__title { font: 600 22px/1.2 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.mm-result.is-win .mm-result__title { color: var(--lime); }
.mm-result__text { color: rgba(255,255,255,.7); margin: 8px 0 16px; }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pcard p { max-height: none; opacity: 1; }
  .roadmap--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ab-hero__grid, .mm-wrap, .where { grid-template-columns: 1fr; }
  .ab-hero__media { height: auto; aspect-ratio: 4 / 3; }
  .roadmap--5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pgrid, .roadmap--5 { grid-template-columns: 1fr; }
  .mm-slot { width: 54px; height: 48px; font-size: 15px; }
  .mm-keys { grid-template-columns: repeat(3, 1fr); }
  .mm-row__code .mm-slot { width: 38px; height: 34px; font-size: 12px; }
}

/* ==========================================================================
   15. HOME v3 — hero verticale + casi studio impilati
   ========================================================================== */
.hero3 { padding: calc(var(--header-h) + 80px) 0 64px; background: radial-gradient(1200px 560px at 50% -15%, rgba(214,253,112,.6), transparent 62%), var(--bg); overflow: hidden; }
.hero3__copy { max-width: 1040px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero3__title { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 28px 0 24px; }
.hero3__sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 640px; margin-bottom: 32px; }
.hero3__ctas { justify-content: center; }
.hero3__trust { justify-content: center; margin-top: 24px; }
.hero3__stage { position: relative; display: grid; grid-template-columns: 1fr 2.2fr 1fr; align-items: end; gap: clamp(12px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); perspective: 1600px; }
.h3c { border-radius: var(--radius-lg); overflow: hidden; background: #E9E6DF; box-shadow: 0 40px 80px -40px rgba(14,18,22,.45); transition: transform .8s var(--ease); }
.h3c img { width: 100%; height: 100%; object-fit: cover; }
.h3c--l { aspect-ratio: 3 / 4; transform: translateY(40px) rotateY(10deg); }
.h3c--r { aspect-ratio: 3 / 4; transform: translateY(40px) rotateY(-10deg); background: #E2DED5; }
.h3c--r img { object-fit: contain; padding: 8px; }
.h3c--m { background: #fff; border: 1px solid var(--line); }
.h3c--m img { aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; background: #E9E6DF; }
.hero3__stage:hover .h3c--l { transform: translateY(24px) rotateY(4deg); }
.hero3__stage:hover .h3c--r { transform: translateY(24px) rotateY(-4deg); }
.h3-badge { left: 50%; bottom: -18px; transform: translateX(-50%); }
.hero3__kpis { margin-top: 88px; }

/* Casi studio impilati */
.cs-section { background: var(--bg-alt); }
.cs-head-side { display: grid; gap: 20px; justify-items: start; }
.cs-stack { display: grid; gap: 32px; }
.cs-card { position: sticky; top: calc(var(--header-h) + 32px + var(--i) * 20px); display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(640px, calc(100vh - var(--header-h) - 80px)); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 -20px 60px -30px rgba(14,18,22,.35); }
.cs-card--dark { background: var(--night); color: #fff; }
.cs-card--lime { background: var(--lime); color: var(--ink); }
.cs-card--light { background: var(--surface); color: var(--ink); }
.cs-card__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.cs-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.cs-card__n { font: 600 16px/1 var(--font-display); }
.cs-card__n small { opacity: .5; font-weight: 500; }
.cs-card__sector { padding: 6px 12px; border-radius: var(--pill); border: 1px solid currentColor; opacity: .75; }
.cs-card__client { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin: 12px 0 0; }
.cs-card__title { font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1.05; }
.cs-steps { display: grid; gap: 14px; margin-top: 8px; }
.cs-step { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(127,127,127,.25); }
.cs-step__k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cs-card--dark .cs-step__k { color: var(--lime); }
.cs-step p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .85; }
.cs-quote { margin: 4px 0 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg); font: 500 16px/1.45 var(--font-display); }
.cs-quote cite { display: block; margin-top: 8px; font: 400 12px/1 var(--font); font-style: normal; color: var(--ink-soft); }
.cs-card__foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-card--dark .logo-row__item { background: var(--night-2); border-color: var(--night-line); }
.cs-card--lime .logo-row__item { background: rgba(255,255,255,.6); border-color: transparent; }
.cs-card__visual { position: relative; display: block; overflow: hidden; background: #DCD8CE; }
.cs-card__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cs-card__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14,18,22,.45)); }
.cs-card__shot { position: absolute; left: 8%; right: 8%; bottom: 7%; z-index: 1; width: 84%; border-radius: var(--radius-sm); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); background: #fff; transition: transform .8s var(--ease); }
.cs-card__visual:hover .cs-card__cover { transform: scale(1.05); }
.cs-card__visual:hover .cs-card__shot { transform: translateY(-10px); }

@media (max-width: 900px) {
  .hero3__stage { grid-template-columns: 1fr; }
  .h3c--l, .h3c--r { display: none; }
  .hero3__kpis { margin-top: 64px; }
  .cs-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
  .cs-card__visual { order: -1; aspect-ratio: 16 / 11; }
  .cs-step { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-card { position: relative; top: auto; }
}

/* ==========================================================================
   16. HOME — settori a pannelli espandibili
   ========================================================================== */
.sx-wrap { display: flex; gap: 12px; height: clamp(440px, 52vw, 560px); }
.sx { position: relative; flex: 1; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--night); transition: flex-grow .7s var(--ease); }
.sx.is-open { flex-grow: 3.2; }
.sx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.6) brightness(.7); }
.sx.is-open img { transform: scale(1); filter: none; }
.sx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,22,.15) 30%, rgba(14,18,22,.88)); }
.sx__n { position: absolute; top: 22px; left: 24px; z-index: 1; font: 600 14px/1 var(--font-display); color: var(--lime); }
.sx__label { position: absolute; left: 24px; bottom: 28px; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; transition: opacity .3s; }
.sx.is-open .sx__label { opacity: 0; }
.sx__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3vw, 40px); opacity: 0; transform: translateY(16px); transition: opacity .4s .15s, transform .5s .15s var(--ease); pointer-events: none; min-width: 360px; }
.sx.is-open .sx__body { opacity: 1; transform: none; pointer-events: auto; }
.sx__count { display: inline-block; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--pill); background: var(--lime); color: var(--ink); margin-bottom: 16px; }
.sx h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 10px; }
.sx p { color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 8px; }
.sx__clients { font-size: 13px; color: rgba(255,255,255,.6) !important; }
.sx__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--lime); padding-bottom: 2px; }
.sx__cta svg { width: 12px; height: 12px; color: var(--lime); }
.sx-more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.sx-more .mini-label { margin: 0; }
.sx-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.sx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: var(--surface); font-size: 14px; }
.sx-pill svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .sx-wrap { flex-direction: column; height: auto; }
  .sx, .sx.is-open { flex: none; height: 380px; }
  .sx img { transform: none; filter: none; }
  .sx__label { display: none; }
  .sx__body { opacity: 1; transform: none; pointer-events: auto; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sx, .sx img, .sx__body { transition: none; }
}


/* ==========================================================================
   17. FOOTER v2 (scuro)
   ========================================================================== */
.site-footer { padding: var(--section-y) 0 0; background: none; overflow: visible; }
.ft { background: var(--night); color: #fff; border-radius: 32px 32px 0 0; padding: clamp(40px, 6vw, 88px) var(--gutter) 28px; position: relative; overflow: hidden; }
.ft::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(214,253,112,.18), transparent 65%); pointer-events: none; }
.ft a { transition: color .2s; }
.ft-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); position: relative; }
.ft-logo img { height: 30px; width: auto; }
.ft-claim { font: 500 clamp(22px, 2.2vw, 32px)/1.2 var(--font-display); letter-spacing: -0.025em; max-width: 520px; margin: 28px 0; color: rgba(255,255,255,.9); }
.ft .socials a { background: var(--night-2); border: 1px solid var(--night-line); color: #fff; }
.ft .socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ft-contact { justify-self: end; display: grid; gap: 20px; justify-items: start; }
.ft-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.ft-contact .ft-label { margin: 0; }
.ft-mail { display: inline-flex; align-items: center; gap: 16px; font: 600 clamp(26px, 3.2vw, 48px)/1 var(--font-display); letter-spacing: -0.035em; color: #fff; }
.ft-mail span { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; transition: transform .35s var(--ease); }
.ft-mail span svg { width: 16px; height: 16px; }
.ft-mail:hover { color: var(--lime); }
.ft-mail:hover span { transform: rotate(45deg); }
.ft-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); padding: 10px 14px; border-radius: var(--pill); border: 1px solid var(--night-line); }
.ft-tel svg { width: 14px; height: 14px; }
.ft-tel:hover { color: var(--lime); border-color: var(--lime); }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; position: relative; }
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ft-col a { color: rgba(255,255,255,.8); font-size: 15px; }
.ft-col a:hover { color: var(--lime); }
.ft-col address { font-style: normal; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.ft-sub { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.ft-word { font: 600 clamp(96px, 22vw, 340px)/1 var(--font-display); letter-spacing: -0.07em; text-align: center; margin: 0 0 24px; padding-bottom: .08em; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.02)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-word span { background: none; -webkit-text-fill-color: var(--lime); color: var(--lime); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: rgba(255,255,255,.5); position: relative; }
.ft-bottom p { margin: 0; }
.ft-legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.ft-legal a:hover { color: var(--lime); }
.ft-top-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.ft-top-link span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; transform: rotate(-45deg); transition: transform .3s var(--ease), background .3s; }
.ft-top-link span svg { width: 11px; height: 11px; }
.ft-top-link:hover span { background: var(--lime); color: var(--ink); transform: rotate(-45deg) translate(2px, -2px); }
@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr; align-items: start; }
  .ft-contact { justify-self: start; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ft { border-radius: 24px 24px 0 0; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-mail { font-size: 24px; }
  .ft-mail span { width: 40px; height: 40px; }
}

/* ==========================================================================
   18. Ritocchi v4: pallini di stato, bento, casi studio, metodo animato, cipolla tecnologie
   ========================================================================== */
/* Pallino di stato animato (ovunque) */
.tag--dot::before, .hv-badge__dot, .mui__live { position: relative; animation: statusPing 2s cubic-bezier(0, 0, .2, 1) infinite; }
.tag--dot::before { background: #7BC043; }
@keyframes statusPing {
  0% { box-shadow: 0 0 0 0 rgba(123,192,67,.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(123,192,67,0); }
}
.hv-badge__dot { animation-name: statusPingLime; }
@keyframes statusPingLime { 0% { box-shadow: 0 0 0 0 rgba(214,253,112,.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(214,253,112,0); } }

/* Bento: nella card alta l'immagine sta sotto al testo, senza sovrapporsi */
.bento--tall { justify-content: flex-start; }
.bento--tall .bento__img { position: relative; right: auto; bottom: auto; max-width: none; width: calc(100% + 56px); margin: auto -28px -28px; border-radius: var(--radius) var(--radius) 0 0; transform: none; aspect-ratio: 4 / 3; object-fit: cover; }
.bento--tall:hover .bento__img { transform: translateY(-4px); }
.bento--tall .bento__body { max-width: none; }

/* Casi studio: ogni scheda entra in una schermata */
.cs-card { height: calc(100svh - var(--header-h) - 56px - var(--i) * 20px); min-height: 0; max-height: 720px; top: calc(var(--header-h) + 28px + var(--i) * 20px); }
.cs-card__body { padding: clamp(24px, 3vw, 44px); gap: clamp(8px, 1.4vh, 16px); overflow: hidden; }
.cs-card__client { margin-top: 0; }
.cs-card__title { font-size: clamp(24px, min(2.6vw, 4.4vh), 42px); }
.cs-steps { gap: clamp(6px, 1.2vh, 12px); margin-top: 0; }
.cs-step { padding-top: clamp(8px, 1.2vh, 12px); }
.cs-step p { font-size: clamp(13px, 1.75vh, 15px); line-height: 1.45; }
.cs-quote { padding: 12px 16px; font-size: clamp(13px, 1.8vh, 15px); }
.cs-card__foot { padding-top: clamp(10px, 1.6vh, 18px); }
@media (max-width: 900px) { .cs-card { height: auto; max-height: none; } .cs-card__body { overflow: visible; } }

/* Metodo animato: la linea si disegna e le fasi si accendono in sequenza */
.steps--anim { position: relative; }
.steps--anim .step { border-top-color: transparent; }
.steps--anim::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps--anim::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--ink); transition: width 2.4s var(--ease); }
.steps--anim.is-visible::after { width: 100%; }
.steps--anim .step::before { display: none; }
.step__dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); z-index: 1; transition: background .3s, border-color .3s, transform .3s; transition-delay: calc(var(--i) * .6s); }
.steps--anim.is-visible .step__dot { background: var(--lime); border-color: var(--ink); transform: scale(1.15); animation: stepPing 2.4s ease-out infinite; animation-delay: calc(var(--i) * .6s + .4s); }
@keyframes stepPing { 0% { box-shadow: 0 0 0 0 rgba(214,253,112,.9); } 60%, 100% { box-shadow: 0 0 0 10px rgba(214,253,112,0); } }
.steps--anim .step > :not(.step__dot) { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .6s; transition-delay: calc(var(--i) * .6s + .15s); }
.steps--anim.is-visible .step > :not(.step__dot) { opacity: 1; transform: none; }
.steps--anim .step__n { color: var(--line); }
.steps--anim.is-visible .step__n { color: var(--lime-dark); }
.steps--anim.reveal { opacity: 1; transform: none; }
@media (max-width: 1100px) { .steps--anim::before, .steps--anim::after { display: none; } .steps--anim .step { border-top-color: var(--line); } }

/* Cipolla tecnologie */
.onion { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.onion__fig { position: relative; width: min(620px, 100%); aspect-ratio: 1; margin-inline: auto; }
.on-ring { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 50%; transition: background .4s, box-shadow .4s, opacity .4s, transform .5s var(--ease); }
.on-ring--0 { background: var(--night); box-shadow: 0 0 0 8px rgba(214,253,112,.18), 0 0 60px rgba(214,253,112,.35); }
.on-ring--1 { background: #DCE9B4; }
.on-ring--2 { background: #E7ECD8; }
.on-ring--3 { background: var(--surface); border: 1px solid var(--line); }
.on-ring--3::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px dashed var(--line); animation: orbSpin 60s linear infinite; }
.on-items { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.on-logo { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(14,18,22,.4); pointer-events: auto; animation: tfloat 6s ease-in-out infinite; transition: transform .3s; }
.on-items .on-logo:nth-child(2n) { animation-delay: -2s; }
.on-items .on-logo:nth-child(3n) { animation-delay: -4s; }
.on-logo .tlogo { width: 28px; height: 28px; }
.on-logo--core { width: 64px; height: 64px; margin: -40px 0 0 -32px; border-radius: var(--radius); }
.on-logo--core .tlogo { width: 36px; height: 36px; }
.on-label { position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 30; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); pointer-events: none; transition: color .3s; }
.on-label[data-layer="dati"] { color: var(--lime); }
.onion.has-active .on-ring:not(.is-active) { opacity: .45; }
.onion.has-active .on-items:not(.is-active) { opacity: .25; }
.on-ring.is-active:not(.on-ring--0) { background: var(--lime); }
.on-ring--0.is-active { box-shadow: 0 0 0 12px rgba(214,253,112,.35), 0 0 90px rgba(214,253,112,.6); }
.on-label.is-active { color: var(--ink); }
.on-label.is-active[data-layer="dati"] { color: var(--lime); }
.onion__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.on-leg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: default; transition: background .3s, border-color .3s; outline: none; }
.on-leg__n { font: 600 14px/1.6 var(--font-display); color: var(--ink-soft); }
.on-leg strong { font-size: 18px; font-weight: 500; }
.on-leg p { color: var(--ink-soft); font-size: 14px; margin: 4px 0 6px; }
.on-leg small { font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.on-leg.is-active, .on-leg:focus-visible { background: var(--surface); border-color: var(--line); }
.on-leg.is-active .on-leg__n { color: var(--ink); }
@media (max-width: 900px) {
  .onion { grid-template-columns: 1fr; }
  .on-logo { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: var(--radius-sm); }
  .on-logo .tlogo { width: 22px; height: 22px; }
  .on-logo--core { width: 48px; height: 48px; margin: -30px 0 0 -24px; }
  .on-label { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag--dot::before, .hv-badge__dot, .mui__live, .step__dot, .on-logo, .on-ring--3::after { animation: none !important; }
  .steps--anim .step > :not(.step__dot) { opacity: 1; transform: none; }
  .steps--anim::after { width: 100%; transition: none; }
}

/* ==========================================================================
   19. FAQ v2 (blocco compatto + pagina dedicata)
   ========================================================================== */
.fq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.fq-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.fq-help { padding: 28px; border-radius: var(--radius-lg); background: var(--night); color: #fff; display: grid; gap: 14px; justify-items: start; }
.fq-help .mini-label { color: rgba(255,255,255,.55); margin: 0; }
.fq-help__t { font: 500 20px/1.3 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.fq-help__mail { font-size: 15px; color: var(--lime); border-bottom: 1px solid rgba(214,253,112,.4); }
.fq-list { gap: 10px; }
.fq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.fq[open] { border-color: var(--ink); box-shadow: 0 20px 40px -28px rgba(14,18,22,.35); }
.fq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.fq summary::-webkit-details-marker { display: none; }
.fq__n { font: 600 13px/1 var(--font-display); color: var(--ink-soft); min-width: 22px; }
.fq[open] .fq__n { color: var(--lime-dark); }
.fq__q { flex: 1; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.fq__ico { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); flex-shrink: 0; transition: background .3s, transform .35s var(--ease); }
.fq__ico::before, .fq__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.fq__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq[open] .fq__ico { background: var(--lime); transform: rotate(180deg); }
.fq[open] .fq__ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq__a { padding: 0 22px 22px 60px; color: var(--ink-soft); animation: fqIn .35s var(--ease); }
.fq__a p { margin-bottom: 12px; }
@keyframes fqIn { from { opacity: 0; transform: translateY(-6px); } }
.fq[hidden], .fq-group[hidden] { display: none !important; }

.fq-hero { padding-bottom: 48px; }
.fq-search { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-top: 36px; padding: 6px 8px 6px 18px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(14,18,22,.35); }
.fq-search svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.fq-search input { flex: 1; border: 0; outline: none; background: transparent; padding: 12px 0; font-size: 16px; }
.fq-search:focus-within { border-color: var(--ink); }
.fq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fq-chip { padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.fq-chip small { color: var(--ink-soft); margin-left: 4px; }
.fq-chip:hover { border-color: var(--ink); }
.fq-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fq-chip.is-active small { color: var(--lime); }
.fq-group + .fq-group { margin-top: 48px; }
.fq-group__t { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; margin-bottom: 18px; }
.fq-wrap--page .fq-side { order: 2; }
.fq-wrap--page > div:last-child { order: 1; }
.fq-wrap--page { grid-template-columns: 1fr 320px; }
.fq-empty { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); }
.fq-empty a { text-decoration: underline; }
@media (max-width: 900px) {
  .fq-wrap, .fq-wrap--page { grid-template-columns: 1fr; }
  .fq-side { position: static; }
  .fq-wrap--page .fq-side { order: 3; }
  .fq__a { padding-left: 22px; }
}
.fq summary::after { content: none !important; display: none !important; }
.fq-side { justify-items: start; }
.fq-side .fq-help { justify-self: stretch; }
.accordion details.fq { border-radius: var(--radius); }
@media (max-width: 900px) {
  .fq-wrap:not(.fq-wrap--page) { gap: 20px; }
  .fq-wrap:not(.fq-wrap--page) .fq-side { display: contents; }
  .fq-wrap:not(.fq-wrap--page) .tag { justify-self: start; }
  .fq-wrap:not(.fq-wrap--page) .fq-help { order: 2; margin-top: 20px; }
}

/* ==========================================================================
   20. Progetti v2 (elenco + scheda progetto)
   ========================================================================== */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7BC043; animation: statusPing 2s cubic-bezier(0, 0, .2, 1) infinite; flex-shrink: 0; }

/* Hero elenco */
.pj-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.pj-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.pj-hero__grid .hero2__title { margin-top: 20px; }
.pj-hero__kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pj-hero__kpi strong { display: block; font: 600 clamp(28px, 3vw, 40px)/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 6px; }
.pj-hero__kpi > div > span { font-size: 13px; color: var(--ink-soft); }

/* Blocco Fasep */
.pj-fx__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pj-fx .h2 { margin: 20px 0; }
.pj-fx__lead { color: rgba(255,255,255,.7); max-width: 560px; }
.pj-fx__list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--night-line); }
.pj-fx__list a { display: grid; grid-template-columns: 34px 1fr 20px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--night-line); transition: padding .3s var(--ease), color .3s; }
.pj-fx__list a:hover { padding-left: 10px; color: var(--lime); }
.pj-fx__list strong { display: block; font-weight: 500; font-size: 17px; }
.pj-fx__list small { color: rgba(255,255,255,.55); font-size: 13.5px; }
.pj-fx__n { font: 600 12px/1 var(--font-display); color: rgba(255,255,255,.4); }
.pj-fx__list svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pj-fx__list a:hover svg { transform: rotate(45deg); }
.pj-fx__visual { position: relative; }
.pj-fx__visual .dv-browser { border-color: var(--night-line); transform: perspective(1600px) rotateY(-6deg); transition: transform .8s var(--ease); }
.pj-fx__visual:hover .dv-browser { transform: none; }
.pj-fx__badge { position: absolute; left: -24px; bottom: -28px; display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-radius: var(--radius); background: var(--lime); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.pj-fx__badge strong { font: 600 44px/1 var(--font-display); letter-spacing: -0.04em; }
.pj-fx__badge span { font-size: 13px; line-height: 1.35; }

/* Barra filtri */
.pj-bar { position: sticky; top: calc(var(--header-h) + 16px); z-index: 20; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 16px 20px; margin-bottom: 36px; border-radius: var(--radius-lg); background: rgba(248,247,245,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.pj-bar__filters { display: grid; gap: 12px; min-width: 0; }
.pj-filter { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pj-filter .mini-label { margin: 0; min-width: 64px; }
.pj-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pj-chips::-webkit-scrollbar { display: none; }
.pj-chip { flex-shrink: 0; padding: 7px 13px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pj-chip small { color: var(--ink-soft); margin-left: 2px; }
.pj-chip:hover { border-color: var(--ink); }
.pj-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pj-chip.is-active small { color: var(--lime); }
.pj-chip.is-zero { opacity: .4; }
.pj-bar__side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.pj-count { margin: 0; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.pj-count strong { color: var(--ink); font-size: 18px; }
.pj-view { display: flex; padding: 3px; border-radius: var(--pill); background: var(--bg-alt); }
.pj-view button { padding: 7px 14px; border-radius: var(--pill); border: 0; background: transparent; font-size: 13px; cursor: pointer; }
.pj-view button.is-active { background: var(--surface); box-shadow: 0 2px 8px -2px rgba(14,18,22,.18); }

/* Card progetto */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.pj-card { display: block; }
.pj-card[hidden], .pj-row[hidden] { display: none !important; }
.pj-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: #E3E0D8; }
.pj-card__cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.pj-card__shot { position: absolute; left: 8%; right: 8%; bottom: 0; width: 84%; border-radius: var(--radius-sm) 10px 0 0; transform: translateY(102%); transition: transform .7s var(--ease); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.5); background: #fff; }
.pj-card:hover .pj-card__cover { transform: scale(1.06); filter: brightness(.55); }
.pj-card:hover .pj-card__shot { transform: translateY(14%); }
.pj-card__go { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease); }
.pj-card__go svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.pj-card:hover .pj-card__go { opacity: 1; transform: none; }
.pj-card:hover .pj-card__go svg { transform: rotate(45deg); }
.pj-card__body { padding: 18px 4px 0; }
.pj-card__client { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 6px; }
.pj-card__title { font: 500 clamp(21px, 1.7vw, 26px)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.pj-card__line { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.pj-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-card__tags span { font-size: 12px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line); }

/* Vista elenco */
.pj-list { border-top: 1px solid var(--line); }
.pj-row { position: relative; display: grid; grid-template-columns: 70px 1.4fr 1fr 1.3fr 1.1fr 40px; gap: 20px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .25s, padding .3s var(--ease); }
.pj-row--head { padding-block: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.pj-row:not(.pj-row--head):hover { background: var(--surface); padding-left: 18px; }
.pj-row__y { font: 600 14px/1 var(--font-display); color: var(--ink-soft); }
.pj-row__t { font: 500 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.pj-row__c, .pj-row__s, .pj-row__sec { font-size: 14px; color: var(--ink-soft); }
.pj-row__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pj-row:hover .pj-row__go svg { transform: rotate(45deg); }
.pj-row__img { position: absolute; right: 70px; top: 50%; width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); pointer-events: none; opacity: 0; transform: translateY(-50%) scale(.85) rotate(-3deg); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 20px 40px -16px rgba(14,18,22,.45); z-index: 2; }
.pj-row:hover .pj-row__img { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
.pj-empty { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.pj-empty a { text-decoration: underline; }

/* Scheda progetto */
.pj-head { padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(36px, 4vw, 56px); }
.pj-crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); margin-bottom: clamp(28px, 4vw, 48px); }
.pj-crumb a:hover { color: var(--ink); text-decoration: underline; }
.pj-crumb svg { width: 12px; height: 12px; transform: rotate(45deg); opacity: .6; }
.pj-head__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.pj-head__client { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 18px; }
.pj-head__title { font: 600 clamp(48px, 7.5vw, 120px)/.95 var(--font-display); letter-spacing: -0.045em; margin: 0 0 22px; overflow-wrap: anywhere; }
.pj-head__line { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; max-width: 720px; margin: 0; }
.pj-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pj-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pj-facts div:nth-child(odd) { padding-right: 16px; }
.pj-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 6px; }
.pj-facts dd { margin: 0; font-weight: 500; }

.pj-stage { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 110px) 0 0; background: var(--night); min-height: 280px; }
.pj-stage__bg { position: absolute; inset: 0; }
.pj-stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); transform: scale(1.04); }
.pj-stage .container { position: relative; }
.pj-stage__shot { max-width: 1180px; margin: 0 auto; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; box-shadow: 0 -30px 80px -20px rgba(0,0,0,.6); background: #fff; }
.pj-stage__shot img { display: block; width: 100%; }
.pj-stage--photo { padding: 0; height: clamp(320px, 62vh, 720px); }
.pj-stage--photo .pj-stage__bg img { filter: none; transform: none; }

.pj-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.pj-side { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 14px; }
.pj-side__box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pj-side__box .mini-label { margin-bottom: 14px; }
.pj-side .ticks li { display: flex; gap: 10px; font-size: 15px; }
.pj-side .ticks svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--lime-dark); }
.pj-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tool { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--pill); background: var(--bg); font-size: 13.5px; }
.pj-tool .tlogo { width: 24px; height: 24px; }
.pj-tool .tlogo--txt { display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; }
.pj-side__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pj-side__links a, .pj-side__links span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.pj-side__links a { border-bottom: 1px solid var(--line); }
.pj-side__links a:hover { border-color: var(--ink); }
.pj-side__links svg { width: 12px; height: 12px; }
.pj-side > .btn { justify-self: stretch; justify-content: space-between; }

.pj-main > .tag { margin-bottom: 22px; }
.pj-intro { font: 500 clamp(19px, 1.7vw, 25px)/1.45 var(--font-display); letter-spacing: -0.02em; margin: 0 0 clamp(40px, 5vw, 64px); }
.pj-main__h { font: 600 clamp(26px, 2.4vw, 36px)/1.15 var(--font-display); letter-spacing: -0.025em; margin: 0 0 20px; }
.pj-text { max-width: 1200px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.pj-text p { margin-bottom: 18px; }
.pj-gal { display: grid; gap: 16px; margin: clamp(28px, 4vw, 48px) 0; }
.pj-gal--2 { grid-template-columns: 1fr 1fr; }
.pj-gal--3 { grid-template-columns: 1fr 1fr; }
.pj-gal--3 .pj-gal__item:first-child { grid-column: 1 / -1; }
.pj-gal__item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.pj-gal__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pj-gal__item:hover img { transform: scale(1.03); }
.pj-ask { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding: 28px 32px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.pj-ask__t { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.pj-ask .muted { margin: 0; }
.pj-ask .btn { flex-shrink: 0; }

.pj-next { display: block; background: var(--night); color: #fff; padding: clamp(48px, 6vw, 90px) 0; overflow: hidden; }
.pj-next__in { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(24px, 4vw, 60px); align-items: center; }
.pj-next .mini-label { color: rgba(255,255,255,.5); }
.pj-next__t { font: 600 clamp(40px, 6vw, 96px)/1 var(--font-display); letter-spacing: -0.045em; margin: 0 0 14px; transition: color .3s; }
.pj-next__c { color: rgba(255,255,255,.6); margin: 0; max-width: 620px; }
.pj-next__img { width: clamp(140px, 18vw, 280px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; transform: rotate(4deg); transition: transform .6s var(--ease); background: var(--night-2); }
.pj-next__img img { width: 100%; height: 100%; object-fit: cover; }
.pj-next__go { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); transition: transform .4s var(--ease); }
.pj-next__go svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.pj-next:hover .pj-next__t { color: var(--lime); }
.pj-next:hover .pj-next__img { transform: rotate(0) scale(1.04); }
.pj-next:hover .pj-next__go svg { transform: rotate(45deg); }

@media (max-width: 1100px) {
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-row { grid-template-columns: 56px 1.4fr 1fr 1.2fr 32px; }
  .pj-row__sec, .pj-row--head span:nth-child(5) { display: none; }
  .pj-body { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pj-hero__grid, .pj-fx__grid, .pj-head__grid, .pj-body { grid-template-columns: 1fr; }
  .pj-fx__visual { margin: 12px 0 28px; }
  .pj-fx__badge { left: 12px; }
  .pj-bar { position: static; flex-direction: column; align-items: stretch; padding: 14px; }
  .pj-filter { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pj-bar__side { justify-content: space-between; }
  .pj-side { position: static; order: 2; }
  .pj-next__img { display: none; }
  .pj-next__in { grid-template-columns: 1fr auto; }
  .pj-ask { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pj-grid { grid-template-columns: 1fr; }
  .pj-hero__kpi { gap: 12px; }
  .pj-row { grid-template-columns: 48px 1fr 24px; gap: 12px; }
  .pj-row__c, .pj-row__s, .pj-row__img, .pj-row--head span:nth-child(n+3):not(:last-child) { display: none; }
  .pj-gal--2, .pj-gal--3 { grid-template-columns: 1fr; }
  .pj-facts { grid-template-columns: 1fr 1fr; }
  .pj-next__go { width: 56px; height: 56px; }
}
.pj-grid[hidden], .pj-list[hidden], .pj-empty[hidden] { display: none !important; }
@media (max-width: 900px) { .pj-filter .pj-chips { align-self: stretch; max-width: 100%; } .pj-bar__filters { width: 100%; } }
.tfloat { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.tfloat__item, .tfloat .tchip { min-width: 0; }
.tfloat .tchip strong, .tfloat .tchip small { overflow-wrap: anywhere; }
.tfloat .tchip > div { min-width: 0; } .tfloat .tchip { max-width: 100%; }
.tfloat .tchip { white-space: normal; }

/* ==========================================================================
   21. Sistema tipografico e spaziature unificate (revisione omogeneità)
   Scala unica per tutte le pagine: H1 hero · H2 sezione · H3 card grande · H4 card
   ========================================================================== */
:root {
  --fs-h1: clamp(40px, 5.4vw, 80px);
  --fs-h2: clamp(30px, 4vw, 58px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
  --fs-h4: clamp(19px, 1.5vw, 22px);
  --fs-lead-lg: clamp(19px, 1.6vw, 23px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-body: 16px;
  --fs-sm: 15px;
  --fs-label: 12px;
  --hero-top: calc(var(--header-h) + clamp(56px, 6.5vw, 96px));
  --hero-bottom: clamp(48px, 5vw, 72px);
  --head-gap: clamp(36px, 4vw, 56px);
}

/* H1 — tutte le aperture di pagina */
.hero2__title, .hero3__title, .sh .hero2__title, .sh__display, .display, .h1, .pj-head__title {
  font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
}
.hero2__title, .hero3__title, .sh__display { margin: 20px 0 24px; }
.h1, .display { margin-top: 20px !important; }
.pj-head__title { margin: 0 0 20px; }

/* H2 — titoli di sezione */
.h2, .cta-band__title, .faq__title {
  font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500;
}
.cta-band__title { margin-top: 20px; }

/* H3 — titoli di card grandi e blocchi */
.h3, .svs-panel__title, .cs-card__title, .pj-main__h, .sfeat__body h2, .sx__body h3, .cmp h3, .epain h3 {
  font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500;
}

/* H4 — titoli di card */
.pj-card__title, .fq-group__t, .feat2 h3, .svc h3, .cap h3, .bento__body h3, .goal h3, .pcard h3, .value2 h3,
.model h3, .plat h3, .ssol__item h3, .osec h3, .pain h3, .step h3, .prose h2, .prose h3, .mm-result__title, .pj-ask__t {
  font-size: var(--fs-h4); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500;
}

/* Testi */
.hero2__sub, .hero3__sub { font-size: var(--fs-lead); line-height: 1.5; }
.pj-head__line, .pj-intro, .uc-panel p, .spain__q { font-size: var(--fs-lead-lg); line-height: 1.45; letter-spacing: -0.01em; }
.muted, .section-head p, .pj-text, .prose p, .fq__a p, .fq__a, .pj-fx__lead, .pj-next__c { font-size: var(--fs-body); line-height: 1.6; }
.pj-card__line, .feat2 p, .svc p, .cap p, .bento__body p, .goal p, .pcard p, .value2 p, .model p, .plat p,
.osec p, .pain p, .step p, .techcard p, .epain p, .sfeat__body p, .cs-step p, .spain__a p { font-size: var(--fs-sm); line-height: 1.55; }
.fq-help__t { font-size: var(--fs-h4); line-height: 1.3; }

/* Etichette: tag, eyebrow, mini-label con lo stesso tono */
.tag { font-size: var(--fs-label); letter-spacing: .06em; font-weight: 500; }
.eyebrow, .mini-label { font-size: 11.5px; letter-spacing: .08em; font-weight: 500; text-transform: uppercase; }
.pj-card__client, .pj-head__client { font-size: 12px; letter-spacing: .08em; }

/* Bottoni: altezza unica (anche con bordo) */
.btn { min-height: 40px; border: 1px solid transparent; }
.btn--light { border-color: var(--line); }
.btn--ghost { border-color: var(--night-line); }
.btn--plain { min-height: 40px; }

/* Ritmo verticale: tag → titolo sempre 20px, titolo → contenuto uniforme */
.section-head { margin-bottom: var(--head-gap); }
.section-head .tag, .page-hero .tag { margin-bottom: 0; }
.head-title { margin-top: 20px; }
.section-head p { margin-bottom: 0; }
.fq-side .head-title, .pj-fx .h2 { margin: 20px 0 0; }

/* Aperture di pagina: stesso spazio sotto l'header ovunque */
.hero3, .page-hero, .ab-hero, .pj-head, .pj-hero, .sh, .svh, .ih { padding-top: var(--hero-top); }
.page-hero, .ab-hero, .pj-head, .pj-hero, .hero3, .fq-hero { padding-bottom: var(--hero-bottom); }
.pj-next { padding-block: clamp(48px, 6vw, 80px); }
.pj-next__t { font-size: var(--fs-h1); }
.on-leg p, .next-steps p { font-size: var(--fs-sm); line-height: 1.5; }

/* ==========================================================================
   22. Responsive: tablet (≤1024) e mobile (≤640)
   ========================================================================== */
:root {
  --fs-h1: clamp(36px, calc(4.2vw + 18px), 80px);
  --fs-h2: clamp(28px, calc(3vw + 15px), 58px);
  --fs-h3: clamp(22px, calc(1.5vw + 13px), 34px);
}
/* nessun figlio di griglia/flex può allargare il layout oltre lo schermo */
.container > *, [class*="grid"] > *, [class*="__grid"] > *, .split > *, .sh__grid > *, .faq > *, .section-head > * { min-width: 0; }
pre, code { max-width: 100%; }
pre { overflow-x: auto; }
.tag { width: max-content; max-width: 100%; align-self: flex-start; justify-self: start; }
.hv-badge { white-space: nowrap; }

@media (max-width: 1024px) {
  /* sezioni consecutive con lo stesso sfondo: niente spazio doppio */
  .section:not(.section--alt):not(.section--dark):not(.cs-section) + .section:not(.section--alt):not(.section--dark):not(.cs-section),
  .section--alt + .section--alt, .section--dark + .section--dark { padding-top: calc(var(--section-y) * .45); }
  .section-head { gap: 16px; }
  /* bento servizi: 2 colonne ordinate */
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bento, .bento--wide, .bento--tall { grid-column: auto; grid-row: auto; min-height: 220px; gap: 28px; }
  .bento--wide .bento__body { max-width: none; }
  .bento__img, .bento--tall .bento__img { position: relative; inset: auto; width: 100%; transform: none; margin-top: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
  .big-quote__mark { font-size: 140px; right: 24px; top: -4px; }
  .cs-card__visual { max-height: 380px; }
  .onion__fig { width: min(520px, 100%); }
}

@media (max-width: 640px) {
  .section-head { gap: 12px; }
  .section-head .head-cta { justify-self: start; }
  /* bottoni: a tutta larghezza e allineati, più facili da toccare */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; justify-content: space-between; min-height: 48px; padding-left: 20px; }
  .btn { min-height: 44px; }
  /* bento: card compatte */
  .bento-grid { grid-template-columns: 1fr; }
  .bento, .bento--wide, .bento--tall { min-height: 0; padding: 24px; }
  /* processo: più compatto */
  .step { padding: 22px 0 18px; }
  .step__n { font-size: 34px !important; }
  /* cipolla tecnologie: solo anelli ed etichette, i dettagli sono nella legenda */
  .on-items { display: none; }
  .on-label { font-size: 10px; }
  .onion__fig { width: min(340px, 100%); }
  .on-leg { padding: 14px 12px; grid-template-columns: 32px 1fr; }
  /* citazione */
  .big-quote { padding: 28px 24px; }
  .big-quote blockquote { font-size: var(--fs-lead-lg); }
  .big-quote__mark { font-size: 96px; right: 16px; }
  /* valori (Chi siamo): niente spazi vuoti */
  .pcard { min-height: 0 !important; padding: 22px 76px 20px 22px !important; }
  .pcard__n { font-size: 40px !important; }
  /* mappe più basse */
  .map, .map iframe, .where__map, .where__map iframe { min-height: 280px; }
  .cs-card__visual { max-height: 240px; }
  .pj-card__media { aspect-ratio: 16 / 10; }
}
.prose a, .prose p, .pj-text, .fq__a { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .pj-fx .h2 { margin: 20px 0 20px; }
  .pj-stage--photo { height: clamp(260px, 48vw, 520px); }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pj-grid--3 > :nth-child(3) { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .pj-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .pj-side > .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pj-hero__grid, .pj-head__grid { gap: 20px; }
  .pj-hero__kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pj-stage--photo { height: 260px; }
  .pj-fx__list a { grid-template-columns: 28px 1fr 18px; }
}
/* Menu mobile/tablet: CTA in fondo al pannello */
.site-nav__cta { display: none; }
@media (max-width: 900px) {
  .site-nav__cta { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .site-nav__cta .btn { width: 100%; justify-content: space-between; min-height: 48px; margin: 0; padding-left: 20px; font-size: 12px; text-transform: uppercase; }
  .site-nav__cta .site-nav__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 4px 0; text-transform: none; }
  .site-nav__tel svg { width: 16px; height: 16px; }
  .site-nav .site-nav__cta a::after { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .site-nav { left: auto; width: min(560px, calc(100% - 20px)); }
  .subnav__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-nav .subnav .bento__ico { width: 32px; height: 32px; }
  .site-nav .subnav .bento__ico svg { width: 16px; height: 16px; }
  .site-nav > ul > li > a { padding: 8px 0; }
}
@media (max-width: 640px) {
  .big-quote__mark { top: auto; bottom: -34px; right: 16px; }
}
@media (max-width: 640px) {
  /* campi a 16px: evita lo zoom automatico su iPhone */
  input, textarea, select { font-size: 16px !important; }
  /* aree di tocco più comode */
  .link-arrow, .fq-help__mail { padding-block: 8px; }
  /* filtri FAQ su una riga scorrevole, come in Progetti */
  .fq-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .fq-chips::-webkit-scrollbar { display: none; }
  .fq-chip { flex-shrink: 0; }
  .pj-chips { margin-right: -14px; }
}
@media (max-width: 1024px) {
  .bento .bento__img, .bento--tall .bento__img { position: relative !important; inset: auto !important; width: 100% !important; max-width: 100% !important; margin: 4px 0 0 !important; transform: none !important; border-radius: var(--radius-sm); }
}

/* ==========================================================================
   23. Blog (elenco + articolo)
   ========================================================================== */
.bp-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; isolation: isolate; }
.bp-cover--bandi { background: var(--lime); color: var(--ink); }
.bp-cover--innovazione { background: var(--night); color: #fff; }
.bp-cover--progetti { background: var(--bg-alt); color: var(--ink); }
.bp-cover__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 40px 40px; opacity: .07; }
.bp-cover::after { content: ""; position: absolute; right: -15%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255,255,255,.55), transparent 65%); }
.bp-cover--innovazione::after { background: radial-gradient(circle, rgba(214,253,112,.35), transparent 65%); }
.bp-cover__ico { position: absolute; top: clamp(18px, 2vw, 28px); left: clamp(20px, 2.4vw, 32px); width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.bp-cover--innovazione .bp-cover__ico { background: var(--lime); color: var(--ink); }
.bp-cover__ico svg { width: 20px; height: 20px; }
.bp-cover__big { font: 600 clamp(40px, 5vw, 72px)/.95 var(--font-display); letter-spacing: -0.045em; }
.bp-cover__small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; opacity: .75; }
.bp-cover--big { aspect-ratio: 21 / 8; }
.bp-cover--big .bp-cover__big { font-size: clamp(56px, 9vw, 140px); }

.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.bp-cat { padding: 4px 10px; border-radius: var(--pill); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-alt); color: var(--ink); }
.bp-cat--bandi { background: var(--lime); }
.bp-cat--innovazione { background: var(--ink); color: var(--lime); }
.bp-card { display: block; }
.bp-card[hidden] { display: none !important; }
.bp-card .bp-cover { transition: transform .6s var(--ease); }
.bp-card:hover .bp-cover { transform: translateY(-4px); }
.bp-card__body { padding: 18px 4px 0; }
.bp-card__t { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 10px; }
.bp-card__x { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bl-cats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.bl-cats li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; font-size: 14px; }
.bl-cats span { color: var(--ink-soft); }
.bl-feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .4s; }
.bl-feat:hover { box-shadow: 0 30px 60px -36px rgba(14,18,22,.4); }
.bl-feat .bp-cover--big { aspect-ratio: 16 / 10; }
.bl-feat .bp-cover--big .bp-cover__big { font-size: clamp(56px, 7vw, 110px); }
.bl-feat__t { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
.bl-feat .btn { margin-top: 8px; }
.bl-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.bl-ask { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.bl-ask .muted { margin: 8px 0 0; }
[data-blog] .section-head .pj-chips { justify-self: end; flex-wrap: wrap; }

.bp-head__in { max-width: 980px; }
.bp-head__in .pj-head__line { max-width: 980px; }
.bp-title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; margin: 8px 0 20px; }
.bp-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; }
.bp-author__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 600 16px/1 var(--font-display); }
.bp-author strong { display: block; font-weight: 500; }
.bp-author small { color: var(--ink-soft); font-size: 13px; }
.bp-layout { display: grid; grid-template-columns: 280px minmax(0, 1080px); gap: clamp(32px, 6vw, 100px); justify-content: center; align-items: start; }
.bp-side { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; }
.bp-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; border-left: 1px solid var(--line); }
.bp-toc li { counter-increment: t; }
.bp-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-soft); transition: color .2s, border-color .2s; }
.bp-toc a:hover, .bp-toc a.is-active { color: var(--ink); border-left-color: var(--lime-dark); }
.bp-content { font-size: 17px; line-height: 1.75; }
.bp-content > h2, .bp-faq > h2 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.025em; margin: clamp(40px, 5vw, 64px) 0 16px; scroll-margin-top: calc(var(--header-h) + 32px); }
.bp-content p { color: var(--ink-soft); margin: 0 0 18px; }
.bp-content p strong, .bp-content li strong { color: var(--ink); font-weight: 600; }
.bp-content a:not(.btn) { text-decoration: underline; text-decoration-color: var(--lime-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.bp-content ul, .bp-content ol { color: var(--ink-soft); }
.bp-sum { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius-lg); background: var(--night); color: #fff; }
.bp-sum__t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--lime) !important; margin: 0 0 12px !important; font-weight: 500; }
.bp-sum ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.55; }
.bp-sum strong { color: #fff !important; }
.bp-ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.bp-ticks li { position: relative; padding-left: 28px; }
.bp-ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--lime-dark); border-bottom: 2px solid var(--lime-dark); transform: rotate(-45deg); }
.bp-steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; display: grid; gap: 12px; }
.bp-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 60px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); line-height: 1.55; font-size: 16px; }
.bp-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 600 14px/1.6 var(--font-display); color: var(--lime-dark); }
.bp-table { overflow-x: auto; margin: 0 0 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bp-table th, .bp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.bp-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 500; color: var(--ink-soft); background: var(--bg); }
.bp-table tr:last-child td { border-bottom: 0; }
.bp-note { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-alt); border-left: 3px solid var(--lime-dark); }
.bp-note p { margin: 0; font-size: 16px; }
.bp-disclaimer { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px !important; line-height: 1.55; }
.bp-faq .fq-list { margin-top: 8px; }
.bp-content .pj-ask { margin-top: 48px; }
.bp-content .pj-ask .btn-row { flex-shrink: 0; }

@media (max-width: 1024px) {
  .bp-layout { grid-template-columns: 1fr; }
  .bp-side { position: static; order: 2; grid-template-columns: 1fr 1fr; }
  .bl-feat { grid-template-columns: 1fr; }
  .bl-ask { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .bp-cover--big { aspect-ratio: 16 / 10; }
  .bp-side { grid-template-columns: 1fr; }
  .bp-toc { display: none; }
  .pj-grid--2 { grid-template-columns: 1fr; }
  .bl-cats li { grid-template-columns: 1fr; gap: 2px; }
  .bp-content { font-size: 16px; }
  .bp-steps li { padding-left: 52px; }
  [data-blog] .section-head .pj-chips { justify-self: stretch; flex-wrap: nowrap; }
}
.bp-layout { justify-content: start; }

/* Correzioni: menu mobile chiuso non cliccabile, etichette centrate nei blocchi centrati */
@media (max-width: 900px) {
  .site-nav { pointer-events: none; }
  .nav-open .site-nav { pointer-events: auto; }
  .site-nav .subnav { visibility: inherit; }   /* prima "visible" scavalcava il pannello nascosto */
}
.hero3__copy .tag, .sh__center .tag, .text-center .tag, .hero .tag { align-self: center; justify-self: center; }
