/* Ibis Software: foglio di stile del sito */

:root {
  /* marchio */
  --amaranto: #9f1d35;
  --amaranto-scuro: #82152a;
  --amaranto-chiaro: #f6e6e9;
  --amaranto-luce: #f27c8e;
  --ink: #1e2b38;
  --ink-2: #2b3a49;
  --testo: #26313d;
  --testo-2: #56616e;
  --perla: #f4f4f6;
  --perla-2: #e9e9ee;
  --bianco: #ffffff;
  --linea: #e1e1e7;
  --linea-2: #cdcdd6;

  /* accenti dei prodotti (versioni scure per il testo, chiare per gli sfondi) */
  --chatbot: #9e4a00;      --chatbot-bg: #fff1e3;
  --cookie: #0a7a5e;       --cookie-bg: #e3f5ef;
  --essential: #1a56c9;    --essential-bg: #e6eefc;
  --greeting: #c02f3b;     --greeting-bg: #fde8ea;
  --shop: #7d4f2a;         --shop-bg: #f5ebe1;
  --translator: #5b2fc0;   --translator-bg: #eee8fb;
  --assist: #c8331f;       --assist-bg: #fdebe7;

  --font-titoli: 'Titillium Web', system-ui, sans-serif;
  --font-testo: 'Titillium Web', system-ui, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --ombra-s: 0 1px 2px rgba(30, 43, 56, .06), 0 2px 8px rgba(30, 43, 56, .05);
  --ombra-m: 0 2px 4px rgba(30, 43, 56, .05), 0 12px 32px rgba(30, 43, 56, .09);
  --ombra-l: 0 24px 60px rgba(30, 43, 56, .16);

  --contenitore: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--perla);
  color: var(--testo);
  font-family: var(--font-testo);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amaranto); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-titoli); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amaranto); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amaranto); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salta { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.salta:focus { top: 12px; color: #fff; }

.contenitore { width: 100%; max-width: var(--contenitore); margin: 0 auto; padding: 0 24px; }
.sezione { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sezione--bianca { background: var(--bianco); }
.sezione--scura { background: var(--ink); color: #d5dde6; }
.sezione--scura h2, .sezione--scura h3, .sezione--scura h4 { color: #fff; }
.sezione--scura a:not(.btn), .sezione--scura a:not(.btn):hover { color: #ffb4a6; }

.occhiello {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amaranto); margin-bottom: 16px;
}
.occhiello::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.sezione--scura .occhiello { color: var(--amaranto-luce); }
.intro { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.intro--centro { margin-left: auto; margin-right: auto; text-align: center; }
.intro--centro .occhiello::after { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.intro p { font-size: 1.15rem; color: var(--testo-2); }
.sezione--scura .intro p { color: #aebccb; }

.icona { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icona--s { width: 18px; height: 18px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-testo); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primario { background: var(--amaranto); color: #fff; box-shadow: 0 6px 18px rgba(30, 43, 56, .16); }
.btn--primario:hover { background: var(--amaranto-scuro); color: #fff; box-shadow: 0 8px 24px rgba(30, 43, 56, .22); }
.btn--secondario { background: transparent; color: var(--ink); border-color: var(--linea-2); }
.btn--secondario:hover { border-color: var(--ink); color: var(--ink); background: var(--bianco); }
.btn--chiaro { background: #fff; color: var(--ink); }
.btn--chiaro:hover { background: var(--perla-2); color: var(--ink); }
.btn--contorno-chiaro { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--contorno-chiaro:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn .icona { transition: transform .2s var(--ease); }
.btn:hover .icona--freccia { transform: translateX(3px); }
.gruppo-btn { display: flex; flex-wrap: wrap; gap: 12px; }

.link-freccia { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.link-freccia .icona { transition: transform .2s var(--ease); }
.link-freccia:hover .icona { transform: translateX(3px); }

/* Intestazione */
.testata {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(244, 244, 246, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.testata.scorsa { border-bottom-color: var(--linea); background: rgba(244, 244, 246, .95); }
.testata .contenitore { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marchio { display: flex; align-items: center; flex: none; }
.marchio img { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .975rem;
  padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.menu a:not(.btn):hover { background: var(--perla-2); }
.menu a[aria-current="page"] { color: var(--amaranto); }
.menu .btn { margin-left: 8px; min-height: 44px; padding: 10px 18px; }
.apri-menu {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--linea-2);
  background: var(--bianco); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(159, 29, 53, .10), transparent 70%); pointer-events: none;
}
.hero-griglia { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--amaranto); }
.hero-testo > p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--testo-2); max-width: 560px; margin-bottom: 32px; }
.hero-punti { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; list-style: none; color: var(--testo-2); font-size: .95rem; font-weight: 600; }
.hero-punti li { display: flex; align-items: center; gap: 8px; }
.hero-punti .icona { color: var(--cookie); }

/* Costellazione di icone nell'hero */
.costellazione { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; margin-left: auto; }
.costellazione .anello {
  position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed var(--linea-2);
}
.costellazione .anello--2 { inset: 27%; border-style: solid; border-color: var(--linea); }
.costellazione .centro {
  position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%);
  background: var(--bianco); border-radius: 50%; aspect-ratio: 1; padding: 6%;
  box-shadow: var(--ombra-l); display: grid; place-items: center;
}
.costellazione .centro img { width: 100%; }
.costellazione a {
  position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 24%; box-shadow: var(--ombra-m); background: var(--bianco);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.costellazione a img { width: 100%; height: 100%; border-radius: 24%; }
.costellazione a:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--ombra-l); }
.costellazione a span {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap;
  font-size: .75rem; font-weight: 700; color: var(--ink); background: var(--bianco); padding: 3px 10px;
  border-radius: 999px; box-shadow: var(--ombra-s); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.costellazione a:hover span, .costellazione a:focus-visible span { opacity: 1; transform: translate(-50%, 10px); }
.costellazione a:nth-of-type(1) { left: 50%; top: 9%; }
.costellazione a:nth-of-type(2) { left: 85.5%; top: 29.5%; }
.costellazione a:nth-of-type(3) { left: 85.5%; top: 70.5%; }
.costellazione a:nth-of-type(4) { left: 50%; top: 91%; }
.costellazione a:nth-of-type(5) { left: 14.5%; top: 70.5%; }
.costellazione a:nth-of-type(6) { left: 14.5%; top: 29.5%; }
.costellazione .galleggia { animation: galleggia 6s ease-in-out infinite; }
.costellazione a:nth-of-type(2n) .galleggia { animation-delay: -3s; }
@keyframes galleggia { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* Numeri */
.numeri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-l); overflow: hidden; }
.numeri > div { background: var(--bianco); padding: 28px 24px; }
.numeri strong { display: block; font-family: var(--font-titoli); font-size: 2.1rem; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.numeri span { color: var(--testo-2); font-size: .95rem; }

/* Schede prodotto */
.prodotti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prodotto {
  --c: var(--amaranto); --c-bg: var(--amaranto-chiaro);
  position: relative; display: flex; flex-direction: column; background: var(--bianco);
  border: 1px solid var(--linea); border-radius: var(--r-l); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.prodotto:hover { transform: translateY(-4px); box-shadow: var(--ombra-m); border-color: transparent; }
.prodotto::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); opacity: 0; transition: opacity .3s; }
.prodotto:hover::after { opacity: 1; }
.prodotto-testa { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.prodotto-testa img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--ombra-s); }
.prodotto h3 { margin: 0; font-size: 1.25rem; }
.etichetta {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  color: var(--c); background: var(--c-bg); padding: 3px 10px; border-radius: 999px; margin-top: 4px;
}
.prodotto > p { color: var(--testo-2); margin-bottom: 18px; }
.spunte { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.spunte li { display: flex; gap: 10px; align-items: flex-start; font-size: .975rem; line-height: 1.5; }
.spunte .icona { color: var(--c, var(--amaranto)); margin-top: 2px; width: 18px; height: 18px; }
.prodotto .link-freccia { margin-top: auto; color: var(--c); }
.prodotto .link-freccia::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.p-chatbot { --c: var(--chatbot); --c-bg: var(--chatbot-bg); }
.p-cookie { --c: var(--cookie); --c-bg: var(--cookie-bg); }
.p-essential { --c: var(--essential); --c-bg: var(--essential-bg); }
.p-greeting { --c: var(--greeting); --c-bg: var(--greeting-bg); }
.p-shop { --c: var(--shop); --c-bg: var(--shop-bg); }
.p-translator { --c: var(--translator); --c-bg: var(--translator-bg); }
.p-assist { --c: var(--assist); --c-bg: var(--assist-bg); }

/* Ibis Assist in evidenza (home) */
.vetrina { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.vetrina-logo { height: 64px; width: auto; margin-bottom: 24px; }
.vetrina .spunte { --c: #ff8a73; margin: 28px 0 36px; }
.vetrina .spunte li { color: #d5dde6; }
.vetrina .spunte strong { color: #fff; }

.browser {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}
.browser-barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #eef0f3; border-bottom: 1px solid #dfe3e8; }
.browser-barra i { width: 11px; height: 11px; border-radius: 50%; background: #d4d8de; }
.browser-barra i:nth-child(1) { background: #ff5f57; } .browser-barra i:nth-child(2) { background: #febc2e; } .browser-barra i:nth-child(3) { background: #28c840; }
.browser-barra span { margin-left: 12px; flex: 1; max-width: 340px; background: #fff; border-radius: 6px; font-size: .75rem; color: #6b7480; padding: 4px 12px; font-family: var(--font-testo); }
.browser img { width: 100%; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top; }

.telefono {
  position: absolute; width: 27%; right: -4%; bottom: -10%; border-radius: 30px; padding: 7px;
  background: #11161c; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.telefono img { border-radius: 24px; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; width: 100%; }
.composizione { position: relative; margin-bottom: 10%; margin-right: 4%; }

/* Vantaggi */
.vantaggi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vantaggio { padding: 28px; border-radius: var(--r-l); background: var(--perla); border: 1px solid var(--linea); }
.sezione--bianca .vantaggio { background: var(--perla); }
.vantaggio h3 { font-size: 1.125rem; display: flex; align-items: center; gap: 12px; }
.vantaggio h3 .icona { color: var(--amaranto); width: 26px; height: 26px; }
.vantaggio p { color: var(--testo-2); margin: 0; font-size: .975rem; }

/* Passi */
.passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; list-style: none; }
.passo { position: relative; padding: 32px 28px 28px; background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-l); }
.passo::before {
  counter-increment: passo; content: counter(passo);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-titoli); font-weight: 700; margin-bottom: 18px;
}
.passo h3 { font-size: 1.125rem; }
.passo p { color: var(--testo-2); margin: 0; font-size: .975rem; }

/* Mock dell'avviso di aggiornamento WordPress */
.wp-avviso {
  margin-top: 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bianco); border: 1px solid var(--linea); border-left: 4px solid #dba617;
  border-radius: var(--r-m); padding: 18px 22px; box-shadow: var(--ombra-s); font-size: .95rem;
}
.wp-avviso img { width: 40px; height: 40px; border-radius: 9px; }
.wp-avviso p { margin: 0; flex: 1; min-width: 220px; }
.wp-avviso .finto-link { color: #2271b1; text-decoration: underline; font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-m); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--ombra-s); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icona { transition: transform .25s var(--ease); color: var(--amaranto); }
.faq details[open] summary .icona { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--testo-2); }
.faq details > div p:last-child { margin: 0; }

/* Invito finale */
.invito {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  background: var(--amaranto); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.invito h2 { color: #fff; margin-bottom: .3em; }
.invito p { margin: 0; font-size: 1.1rem; max-width: 560px; }
.invito img { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .14; filter: brightness(0) invert(1); pointer-events: none; }
.invito .gruppo-btn { position: relative; }

/* Piè di pagina */
.piede { background: var(--ink); color: #aebccb; padding: 72px 0 32px; font-size: .95rem; }
.piede-griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.piede img.logo { height: 56px; width: auto; margin-bottom: 18px; }
.piede-titolo { font-family: var(--font-testo); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.piede ul { list-style: none; display: grid; gap: 4px; }
.piede a { color: #d5dde6; text-decoration: none; display: inline-block; padding: 4px 0; }
.piede a:hover { color: #fff; text-decoration: underline; }
.skydesk { border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 0; }
.skydesk a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 0; text-decoration: none; }
.skydesk span { font-family: var(--font-titoli); font-weight: 600; font-size: 1.15rem; color: #fff; }
.skydesk img { height: 36px; width: auto; max-width: 100%; }
.skydesk a:hover { text-decoration: none; opacity: .85; }
.piede-fondo { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; }

/* Pagina interna: testata */
.testa-pagina { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 56px); }
.testa-pagina p { font-size: 1.2rem; color: var(--testo-2); max-width: 720px; }
.briciole { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--testo-2); margin-bottom: 20px; list-style: none; }
.briciole a { color: var(--testo-2); }

/* Navigazione tra i plugin */
.schede-plugin {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(244, 244, 246, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea);
}
.schede-plugin ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.schede-plugin ul::-webkit-scrollbar { display: none; }
.schede-plugin a {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; min-height: 44px;
  padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--linea); background: var(--bianco);
  color: var(--ink); font-weight: 600; font-size: .925rem; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s;
}
.schede-plugin a img { width: 32px; height: 32px; border-radius: 8px; }
.schede-plugin a:hover { border-color: var(--ink); }
.schede-plugin a.attivo { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Dettaglio plugin */
.plugin { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--linea); }
.plugin:nth-of-type(even) { background: var(--bianco); }
.plugin-testa { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-bottom: 40px; }
.plugin-testa img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--ombra-m); }
.plugin-testa h2 { margin-bottom: .2em; }
.plugin-testa .sottotitolo { font-size: 1.2rem; color: var(--testo-2); margin-bottom: 14px; max-width: 760px; }
.dati { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.dati li { font-size: .8125rem; font-weight: 600; color: var(--testo-2); background: var(--perla-2); border-radius: 999px; padding: 4px 12px; }
.plugin:nth-of-type(even) .dati li { background: var(--perla); }
.dati li.dato-c { color: var(--c); background: var(--c-bg); }

.plugin-corpo { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.plugin-sintesi { position: sticky; top: calc(var(--header-h) + 88px); }
.plugin-sintesi > p { color: var(--testo-2); }
.riquadro-c { background: var(--c-bg); border-radius: var(--r-l); padding: 24px; margin-top: 20px; }
.riquadro-c h3 { font-size: 1rem; color: var(--c); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.riquadro-c .spunte { margin: 0; }
.riquadro-c .spunte li { font-size: .95rem; }

.gruppi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gruppo { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 24px; }
.plugin:nth-of-type(even) .gruppo { background: var(--perla); }
.gruppo--largo { grid-column: 1 / -1; }
.gruppo h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gruppo h3 .icona { color: var(--c); }
.gruppo ul { list-style: none; display: grid; gap: 8px; }
.gruppo li { position: relative; padding-left: 18px; font-size: .95rem; line-height: 1.55; color: var(--testo); }
.gruppo li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.gruppo p { font-size: .95rem; color: var(--testo-2); margin: 0; }
.gruppo code, .plugin code { font-size: .85em; background: var(--perla-2); padding: 1px 6px; border-radius: 5px; color: var(--ink); word-break: break-word; }

/* Ibis Assist: sezioni alternate */
.funzione { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.funzione + .funzione { margin-top: clamp(72px, 10vw, 120px); }
.funzione--inversa .funzione-testo { order: 2; }
.funzione-testo > p { color: var(--testo-2); font-size: 1.075rem; }
.funzione .spunte { --c: var(--assist); }
.funzione .browser { box-shadow: var(--ombra-l), 0 0 0 1px var(--linea); }
.etichetta-funzione { display: inline-flex; align-items: center; gap: 8px; color: var(--assist); background: var(--assist-bg); font-weight: 700; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }

.griglia-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 24px; }
.mini h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.mini h3 .icona { color: var(--assist); }
.mini p { font-size: .925rem; color: var(--testo-2); margin: 0; }

.ruoli { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ruolo { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-l); padding: 28px; background: rgba(255, 255, 255, .03); }
.ruolo h3 { display: flex; align-items: center; gap: 12px; }
.ruolo h3 .icona { color: #ff8a73; width: 26px; height: 26px; }
.ruolo p { margin: 0; color: #aebccb; font-size: .975rem; }

.hero-assist { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-assist .logo-assist { height: 72px; width: auto; margin-bottom: 24px; }
.hero-assist h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }

.requisiti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.requisiti li { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; }
.requisiti .icona { color: var(--amaranto); margin-top: 2px; }
.requisiti strong { display: block; color: var(--ink); }
.sezione--scura .requisiti li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #d5dde6; }
.sezione--scura .requisiti strong { color: #fff; margin-bottom: 4px; }
.sezione--scura .requisiti .icona { color: #ff8a73; }

/* Comparsa allo scorrimento */
.js .appare { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .appare.visibile { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .appare { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .prodotti { grid-template-columns: repeat(2, 1fr); }
  .griglia-mini { grid-template-columns: repeat(2, 1fr); }
  .piede-griglia { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .apri-menu { display: inline-flex; }
  .menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--perla); padding: 16px 24px 28px; border-bottom: 1px solid var(--linea); box-shadow: var(--ombra-m);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.aperto { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .menu .btn { margin: 8px 0 0; }
  .hero-griglia, .vetrina, .hero-assist, .funzione { grid-template-columns: 1fr; }
  .funzione--inversa .funzione-testo { order: 0; }
  .costellazione { margin: 0 auto; max-width: 440px; }
  .numeri { grid-template-columns: repeat(2, 1fr); }
  .vantaggi, .passi, .ruoli, .requisiti { grid-template-columns: 1fr; }
  .plugin-corpo { grid-template-columns: 1fr; }
  .plugin-sintesi { position: static; }
  .invito { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .contenitore { padding: 0 16px; }
  .marchio img { height: 44px; }
  .prodotti, .gruppi, .griglia-mini { grid-template-columns: 1fr; }
  .plugin-testa { grid-template-columns: 1fr; gap: 18px; }
  .plugin-testa img { width: 80px; height: 80px; border-radius: 19px; }
  .piede-griglia { grid-template-columns: 1fr; }
  .telefono { width: 32%; right: -2%; }
  .gruppo-btn .btn { flex: 1 1 100%; }
  .numeri > div { padding: 20px 18px; }
  .numeri strong { font-size: 1.7rem; }
}

/* Hero di Ibis Assist CRM (home) */
.hero-assist-home .hero-testo h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero-marchio { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-marchio img { height: 56px; width: auto; }
.hero-marchio span { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amaranto); border: 1.5px solid var(--amaranto); border-radius: 999px; padding: 4px 12px; }
.hero .composizione { margin-left: auto; width: 100%; }
.hero .browser { box-shadow: var(--ombra-l), 0 0 0 1px var(--linea); }

/* Sezione plugin nella home: testo e costellazione affiancati */
.intro-plugin { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.intro-plugin .intro { margin-bottom: 0; }
.intro-plugin .costellazione { max-width: 400px; }

/* Funzioni su misura */
.su-misura { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.su-misura .spunte { --c: var(--assist); }
.esempio-richiesta { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-l); box-shadow: var(--ombra-l); overflow: hidden; }
.esempio-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--linea); background: var(--perla); }
.esempio-testa strong { font-size: .95rem; color: var(--ink); }
.esempio-testa span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-2); }
.esempio-corpo { padding: 22px; display: grid; gap: 16px; }
.esempio-campo small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-2); margin-bottom: 2px; }
.esempio-campo p { margin: 0; color: var(--ink); }
.esempio-stato { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 22px 22px; border-top: 1px solid var(--linea); }
.esempio-stato li { position: relative; padding-top: 22px; font-size: .8125rem; font-weight: 600; color: var(--testo-2); line-height: 1.3; }
.esempio-stato li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--linea-2); background: var(--bianco); }
.esempio-stato li::after { content: ""; position: absolute; left: 18px; right: 4px; top: 6px; height: 2px; background: var(--linea); }
.esempio-stato li:last-child::after { display: none; }
.esempio-stato li.fatto { color: var(--ink); }
.esempio-stato li.fatto::before { background: var(--amaranto); border-color: var(--amaranto); }
.esempio-stato li.fatto::after { background: var(--amaranto); }
.esempio-stato li.ora { color: var(--amaranto); }
.esempio-stato li.ora::before { border-color: var(--amaranto); box-shadow: 0 0 0 4px var(--amaranto-chiaro); }

/* Modulo di richiesta */
.richiesta { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.richiesta-testo > p { color: var(--testo-2); font-size: 1.1rem; }
.richiesta-testo .spunte li { color: var(--testo); }
.richiesta-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: .95rem; color: var(--testo-2); }
.modulo { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r-l); box-shadow: var(--ombra-m); padding: clamp(24px, 3.5vw, 40px); }
.modulo-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo--largo { grid-column: 1 / -1; }
.campo label, .campo legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.campo .facoltativo { font-weight: 400; color: var(--testo-2); }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--perla); border: 1.5px solid var(--linea-2); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--testo-2); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--amaranto); background: var(--bianco); box-shadow: 0 0 0 4px var(--amaranto-chiaro); }
.campo [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f2; }
.errore-campo { font-size: .875rem; color: #b3261e; font-weight: 600; min-height: 0; }
.errore-campo:empty { display: none; }
.consenso { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--testo); }
.consenso input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--amaranto); flex: none; }
.esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modulo-invio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.modulo-invio .btn[disabled] { opacity: .65; cursor: progress; }
.cf-turnstile { min-height: 65px; }
.esito { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.esito:empty { display: none; }
.esito--ok { background: #e3f5ef; color: #0a5c46; }
.esito--errore { background: #fdf3f2; color: #8c1d18; }
.modulo.inviato .modulo-griglia, .modulo.inviato .modulo-invio { display: none; }

@media (max-width: 960px) {
  .intro-plugin, .su-misura, .richiesta { grid-template-columns: 1fr; }
  .intro-plugin .costellazione { margin: 0 auto; }
}
@media (max-width: 640px) {
  .modulo-griglia { grid-template-columns: 1fr; }
  .esempio-stato { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .esempio-stato li:nth-child(2)::after { display: none; }
  .hero-marchio img { height: 44px; }
}

/* Richiesta per singolo plugin */
.plugin-azione { margin-top: 32px; display: flex; justify-content: flex-end; }
.btn--plugin { background: var(--c); color: #fff; }
.btn--plugin:hover { color: #fff; filter: brightness(.88); }
@media (max-width: 640px) { .plugin-azione .btn { width: 100%; } }

/* Modulo dentro il riquadro rosso della home */
.invito--modulo { grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(28px, 4vw, 56px); }
.invito--modulo .invito-testo { position: relative; padding-top: 8px; }
.invito--modulo .invito-testo p { max-width: 420px; }
.invito-alt { margin-top: 24px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 1rem !important; }
.invito-alt a { color: #fff; font-weight: 700; }
.invito-alt a:hover { color: #fff; }
.invito--modulo .modulo { position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); border: 0; }
.invito--modulo img { right: auto; left: -70px; bottom: -90px; }
@media (max-width: 960px) { .invito--modulo { grid-template-columns: 1fr; } }
