/* ==========================================================================
   Nixsa Studio — "Studio" theme
   A sober, professional consulting site: white and light-grey pages, the brand
   blue and a deep navy, the gold of the logo as a thin accent, serif headings,
   real photography.
   ========================================================================== */
:root {
  --blue: #2B4870; --navy: #14243B; --navy-2: #0F1C2E;
  --gold: #B8892F; --gold-l: #E4B85A;
  --ink: #17202D; --ink-2: #3A4454; --muted: #5D6675;
  --bg: #FFFFFF; --bg-2: #F4F5F7; --tint: #EDF1F6; --line: #E2E5EA; --line-2: #CDD2DA;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px; --pad: clamp(20px, 4vw, 40px); --hh: 80px; --r: 4px;
  --shadow: 0 1px 2px rgba(20, 36, 59, .06), 0 18px 40px -18px rgba(20, 36, 59, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main:focus { outline: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.mark { display: block; overflow: visible; }
.mark__l { fill: var(--mark-l, currentColor); }
.mark__r { fill: var(--mark-r, var(--gold-l)); }
.p-skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; }
.p-skip:focus { top: 16px; }
.p-wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */
.p-over { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.p-over::before { content: ""; flex: 0 0 28px; height: 2px; background: currentColor; }
.p-h1 { margin-top: 22px; font-family: var(--serif); font-size: clamp(2.5rem, 4.4vw, 4.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
.p-h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.p-h2--page { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
.p-h1 em, .p-h2 em { font-style: italic; font-weight: 500; color: var(--blue); }
.p-lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.05rem, 1.2vw, 1.15rem); line-height: 1.7; color: var(--muted); }
.p-h4 { margin: 36px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r); font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.p-btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.p-btn:hover .icon { transform: translateX(3px); }
.p-btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.p-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.p-btn--primary { background: var(--blue); color: #fff; }
.p-btn--primary:hover { background: var(--navy); }
.p-btn--ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.p-btn--ghost:hover { border-color: var(--navy); }
.p-btn--gold { background: var(--gold-l); color: var(--navy); }
.p-btn--gold:hover { background: #EFC96F; }
.p-btn--light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.p-btn--light:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
/* Opaque: at .97 the text scrolling underneath showed through the bar */
.p-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.p-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(20, 36, 59, .3); }
.p-header__in { display: flex; align-items: center; gap: 32px; height: var(--hh); }
.p-brand img { height: 26px; width: auto; }
.p-nav { display: flex; gap: 28px; margin-left: auto; }
.p-nav a { position: relative; padding: 8px 0; font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.p-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--gold-l); transform: scaleX(0); transition: transform .25s var(--ease); }
.p-nav a:hover, .p-nav a.is-active { color: var(--navy); }
.p-nav a.is-active::after, .p-nav a:hover::after { transform: scaleX(1); }
.p-header__act { display: flex; align-items: center; gap: 12px; }
.p-lang { position: relative; }
.p-lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.p-lang__btn .icon { width: 14px; height: 14px; transition: transform .25s; }
.p-lang.is-open .p-lang__btn .icon { transform: rotate(180deg); }
.p-lang__menu { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; }
.p-lang.is-open .p-lang__menu { opacity: 1; visibility: visible; transform: none; }
.p-lang__item { padding: 9px 12px; border-radius: 3px; font-size: 15px; }
.p-lang__item:hover { background: var(--bg-2); }
.p-lang__item[aria-current] { color: var(--blue); font-weight: 600; }
.p-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.p-burger span { width: 18px; height: 2px; background: var(--navy); transition: transform .3s var(--ease); }
.p-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.p-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.p-menu { position: fixed; inset: var(--hh) 0 0; z-index: 45; overflow-y: auto; background: #fff; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.p-menu.is-open { opacity: 1; visibility: visible; }
.p-menu__in { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 8px; padding-bottom: 32px; }
.p-menu nav { align-self: stretch; }
.p-menu ol a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.p-menu__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-menu__langs a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; }
.p-menu__langs a[aria-current] { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.p-menu__mail { color: var(--muted); }

/* ---------- Hero ---------- */
/* The whole opening section is a blueprint: blue drafting sheet with a grid, white and gold lines */
.p-hero {
  padding: clamp(44px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; color: #fff;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.p-hero .p-over { color: var(--gold-l); }
.p-hero .p-h1 { color: #fff; }
.p-hero .p-h1 em { color: var(--gold-l); }
.p-hero .p-lead { color: rgba(255, 255, 255, .82); }
.p-hero .p-btn--primary { background: var(--gold-l); color: var(--navy); }
.p-hero .p-btn--primary:hover { background: #EFC96F; }
.p-hero .p-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.p-hero .p-btn--ghost:hover { background: #fff; color: var(--navy); }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.p-hero .p-lead { margin-top: 24px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.p-hero__media { position: relative; isolation: isolate; margin-right: 18px; }
.p-hero__media::before { content: ""; position: absolute; right: -18px; bottom: -18px; z-index: -1; width: 64%; height: 60%; border: 2px solid var(--gold-l); border-radius: var(--r); }
.p-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
/* Grid children may shrink: the typed calculation never wraps and must not widen the page */
.p-hero__grid > * { min-width: 0; }
/* Hero sheet: a paper sheet on the blueprint section that cycles through three drawings
   (tender, software, business plan) with numbers counting up and a calculation being typed */
.p-hero__media::before { display: none; }
.p-plate {
  position: relative; isolation: isolate; overflow: hidden; padding: 14px 22px 22px; border-radius: 6px;
  background: #F7F5EF; color: var(--navy); outline: 1px solid rgba(20, 36, 59, .35); outline-offset: -9px;
  box-shadow: 0 50px 90px -40px rgba(4, 12, 28, .6);
}
.p-plate::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(43, 72, 112, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 72, 112, .06) 1px, transparent 1px); background-size: 16px 16px; }
.p-plate__tabs { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 4px 4px 12px; border-bottom: 1px solid rgba(20, 36, 59, .2); }
.p-plate__tabs button { position: relative; padding: 9px 8px 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.p-plate__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-l); transform: scaleX(0); transform-origin: left; }
.p-plate__tabs button:hover, .p-plate__tabs button.is-on { color: var(--navy); }
.p-plate__tabs button.is-on::after { animation: pTab 8s linear forwards; }
.p-plate.is-held .p-plate__tabs button.is-on::after { animation-play-state: paused; }
@keyframes pTab { to { transform: scaleX(1); } }
.p-scenes { display: grid; }
.p-scene { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.p-scene.is-on { opacity: 1; visibility: visible; }
.p-plate__head { display: flex; justify-content: space-between; padding: 0 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.p-plate__draw { display: block; width: 100%; height: auto; margin: 8px 0 2px; overflow: visible; }
/* Lines are drawn again every time a scene appears */
.p-d { fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.p-d--soft { stroke: rgba(43, 72, 112, .4); stroke-width: 1; }
.p-d--gold { stroke: var(--gold); stroke-width: 1.8; }
.p-d--bold { stroke-width: 2.2; }
.p-scene.is-on .p-d { animation: pDraw 1.3s var(--ease) var(--t, .2s) forwards; }
.p-f { opacity: 0; }
.p-scene.is-on .p-f { animation: pFade .7s var(--ease) var(--t, .8s) forwards; }
.p-draw__circle { fill: none; stroke: rgba(43, 72, 112, .45); stroke-width: 1; stroke-dasharray: 4 5; transform-origin: 200px 112px; animation: pSpin 80s linear infinite; }
.p-draw__l { fill: var(--blue); }
.p-draw__r { fill: var(--gold-l); }
.p-scene.is-on .p-draw__l { animation: pFromL 1.2s var(--ease) .2s both; }
.p-scene.is-on .p-draw__r { animation: pFromR 1.2s var(--ease) .2s both; }
.p-draw__txt { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9.5px; letter-spacing: .12em; fill: var(--ink-2); }
.p-draw__txt--gold { fill: var(--gold); }
.p-packet { fill: var(--gold-l); stroke: var(--navy); stroke-width: .8; }
.p-bar { fill: rgba(43, 72, 112, .16); stroke: var(--blue); stroke-width: 1.2; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.p-scene.is-on .p-bar { animation: pRise .9s var(--ease) calc(.3s + var(--i, 0) * .1s) forwards; }
.p-dot { fill: var(--gold-l); stroke: var(--navy); stroke-width: 1; }
@keyframes pFromL { from { transform: translateX(-40px); opacity: 0; } }
@keyframes pFromR { from { transform: translateX(40px); opacity: 0; } }
@keyframes pDraw { to { stroke-dashoffset: 0; } }
@keyframes pFade { to { opacity: 1; } }
@keyframes pRise { to { transform: scaleY(1); } }
@keyframes pSpin { to { transform: rotate(360deg); } }
/* The calculation, typed with a blinking cursor */
.p-calc { min-height: 1.5em; margin: 4px 4px 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-calc::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--gold-l); animation: pBlink 1s steps(1) infinite; }
@keyframes pBlink { 50% { opacity: 0; } }
.p-plate__table { margin: 10px 4px 0; border-top: 1px solid rgba(20, 36, 59, .35); }
.p-plate__table li { display: grid; grid-template-columns: 34px 1fr auto; gap: 5px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(20, 36, 59, .14); font-size: 14px; }
.p-plate__table .p-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--gold); }
.p-plate__table b { font-weight: 500; }
.p-plate__table em { font-style: normal; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-plate__table i { position: relative; grid-column: 2 / -1; height: 3px; border-radius: 3px; overflow: hidden; background: #E4E8EE; }
.p-plate__table i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.p-scene.is-on .p-plate__table i::after { animation: pBar 1.3s var(--ease) calc(.4s + var(--i) * .1s) forwards; }
@keyframes pBar { to { transform: scaleX(1); } }
.p-plate__foot { display: grid; gap: 2px; margin: 14px 4px 0; }
.p-plate__foot strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.p-plate__foot span { font-size: 13.5px; color: var(--muted); }
.p-plate__chip { display: inline-flex; align-items: center; gap: 8px; margin: 12px 4px 0; padding: 7px 14px; border-radius: 999px; background: var(--gold-l); color: var(--navy); font-size: 13.5px; font-weight: 600; }
.p-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.p-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--navy); animation: pPulse 1.8s ease-out infinite; }
@keyframes pPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.p-in { animation: pIn .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.p-sec { padding: clamp(72px, 9vw, 120px) 0; }
.p-sec--alt { background: var(--bg-2); }
.p-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.p-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 64px; align-items: end; max-width: none; }
.p-head--split .p-lead { margin-top: 0; }
.p-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.p-split--top { align-items: start; }
.p-media { position: relative; isolation: isolate; }
.p-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.p-media--tall img { aspect-ratio: 4 / 5; }
.p-media--wide img { aspect-ratio: 3 / 2; }
/* Photo frames in the studio's own language: a blueprint plate set behind the photo,
   gold corner marks like the registration marks of a technical drawing. */
.p-frame { position: relative; }
.p-frame img { position: relative; z-index: 1; }
.p-frame__plate { position: absolute; z-index: 0; inset: 28px -28px -28px 28px; border-radius: var(--r);
  background-color: var(--blue);
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 32px 32px; }
.p-frame--marks img { outline: 1px solid rgba(255, 255, 255, .55); outline-offset: -10px; }
.p-frame--marks::before, .p-frame--marks::after { content: ""; position: absolute; z-index: 2; width: 56px; height: 56px; border: 3px solid var(--gold); }
.p-frame--marks::before { left: -14px; top: -14px; border-right: 0; border-bottom: 0; }
.p-frame--marks::after { right: -14px; bottom: -14px; border-left: 0; border-top: 0; }
/* On narrow screens the plate and the marks stay inside the page margins */
@media (max-width: 900px) {
  .p-frame__plate { inset: 20px -20px -20px 20px; }
}
@media (max-width: 640px) {
  .p-frame__plate { inset: 16px 0 -16px 16px; }
  .p-frame--marks::before, .p-frame--marks::after { width: 34px; height: 34px; border-width: 2.5px; }
  .p-frame--marks::before { left: -6px; top: -6px; }
  .p-frame--marks::after { right: -6px; bottom: -6px; }
}

/* Studio */
.p-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(56px, 7vw, 88px); padding-top: 40px; border-top: 1px solid var(--line-2); }
.p-pillars span { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--gold); }
.p-pillars h3 { margin: 8px 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.p-pillars p { font-size: 16px; color: var(--muted); }

/* Services */
.p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card { position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.p-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: var(--r) var(--r) 0 0; background: var(--gold-l); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.p-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.p-card:hover::before { transform: scaleX(1); }
.p-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.p-card__icon .icon { width: 24px; height: 24px; }
.p-card h3 { margin-top: 22px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.p-card__tag { margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.p-card > p:not(.p-card__tag) { margin-top: 12px; font-size: 16px; color: var(--muted); }
.p-card__list { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 15px; color: var(--ink-2); }
.p-card > p + .p-card__list { margin-top: 20px; border-top: 1px solid var(--line); }
.p-card__list li { display: flex; gap: 10px; }
.p-card__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }

/* Tenders */
/* How a tender is worked on: a timeline across the page, then the scoring sheet and what we deliver */
.p-flow__title { margin: clamp(40px, 5vw, 60px) 0 34px; }
.p-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 26px; }
/* Nixsa Bandi explains itself in three steps, not five */
.p-flow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-tend__side .p-btn { margin-top: 26px; }
.p-flow li { position: relative; padding: 30px 0 4px; border-top: 2px solid var(--line-2); }
/* The gold line starts after the numbered dot, so it never crosses the number */
.p-flow li::after { content: ""; position: absolute; left: 44px; top: -2px; width: 0; height: 2px; background: var(--gold); transition: width 1s var(--ease) var(--d, 0s); }
.p-flow.is-in li::after { width: calc(100% - 44px); }
.p-flow li > span { position: absolute; z-index: 1; top: -19px; left: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); font-size: 15px; font-weight: 700; color: #fff; box-shadow: 0 0 0 5px var(--bg-2); }
.p-flow h4 { font-size: 17px; font-weight: 700; color: var(--navy); }
.p-flow p { margin-top: 5px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
/* The scoring sheet is the only framed block: what we deliver is a plain list on the page ground,
   so a difference in height between the two columns never reads as a hole. */
.p-tend { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 4vw, 64px); margin-top: clamp(52px, 6vw, 84px); align-items: start; }
/* A bid we laid out ourselves, rendered from scripts/mockup-offerta.html — no stock photography */
.p-shot { margin: 0; }
.p-shot img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 4px rgba(20, 36, 59, .08), 0 40px 70px -35px rgba(20, 36, 59, .5); }
.p-shot figcaption { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.p-score { margin: 0; padding: clamp(20px, 2.4vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.p-score figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.p-score figcaption span { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.p-score figcaption b { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.p-score li { display: grid; grid-template-columns: 38px minmax(0, 1fr) clamp(64px, 9vw, 110px) auto; align-items: center; gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-score__code { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--blue); }
.p-score__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; color: var(--ink-2); }
.p-score__bar { height: 9px; border-radius: 5px; background: #E7EBF1; overflow: hidden; }
.p-score__bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--gold-l)); transition: width 1s var(--ease) var(--d, 0s); }
.p-tend.is-in .p-score__bar i { width: var(--w); }
.p-score li b { font-size: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.p-score li b small { margin-left: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.p-score__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 20px; border-radius: var(--r); background: var(--navy); }
.p-score__total > span { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.p-score__total b { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.p-score__total b small { font-size: .5em; font-weight: 500; color: rgba(255, 255, 255, .7); }
.p-score__note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.p-stat { padding: 22px 24px; margin-bottom: 30px; background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.p-stat strong { display: block; font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: 1; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.p-stat strong small { font-size: .42em; font-weight: 500; color: rgba(255, 255, 255, .7); }
.p-stat > span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.p-tend__side .p-h4 { margin: 28px 0 16px; }
.p-tend__side .p-checks { gap: 14px; }
.p-proc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 32px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-2); }
.p-proc .p-h4 { margin: 0; }
.p-tend__side .p-checks { grid-template-columns: 1fr; }
@media (max-width: 1080px) {
  .p-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 42px; }
  .p-tend { grid-template-columns: 1fr; }
  .p-tend__main, .p-tend__side { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .p-flow { grid-template-columns: 1fr; row-gap: 34px; }
  .p-score li { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .p-score__bar { display: none; }
  .p-proc { grid-template-columns: 1fr; gap: 14px; }
}
.p-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.p-checks li { display: flex; gap: 10px; font-size: 16px; color: var(--ink-2); }
.p-checks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.p-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.p-tags li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 15.5px; font-weight: 600; color: var(--navy); }

/* Software (dark band) */
.p-sec--dark { position: relative; background: var(--navy); color: #fff; }
.p-sec--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; }
.p-sec--dark > * { position: relative; }
.p-sec--dark .p-over { color: var(--gold-l); }
.p-sec--dark .p-h2 { color: #fff; }
.p-sec--dark .p-h2 em { color: var(--gold-l); }
.p-sec--dark .p-lead { color: rgba(255, 255, 255, .74); }
.p-soft { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.p-feats { display: grid; gap: 24px; }
.p-feats li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.p-feats__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(228, 184, 90, .45); color: var(--gold-l); }
.p-feats__icon .icon { width: 20px; height: 20px; }
.p-feats h3 { font-size: 17.5px; font-weight: 700; color: #fff; }
.p-feats p { margin-top: 2px; font-size: 15.5px; color: rgba(255, 255, 255, .7); }
.p-dash { overflow: hidden; background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.p-dash__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #F1F3F6; border-bottom: 1px solid var(--line); }
.p-dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D8E0; }
.p-dash__bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
/* What we build, as cards on the dark band */
.p-feats--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 52px); }
.p-feats--cards li { display: block; padding: clamp(20px, 2.2vw, 26px); border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px; background: rgba(255, 255, 255, .04); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.p-feats--cards li:hover { border-color: rgba(228, 184, 90, .45); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.p-feats--cards .p-feats__icon { margin-bottom: 16px; }
.p-feats--cards p { margin-top: 6px; }

/* Three platforms as cards: the front one opens, the others come forward with a click */
.p-stack { position: relative; margin-top: clamp(40px, 5vw, 64px); padding-top: 42%; }
.p-card3 { position: absolute; top: 0; left: 0; width: 54%; transition: transform .55s var(--ease), opacity .45s, filter .45s; }
.p-card3 .p-dash { box-shadow: 0 45px 85px -32px rgba(0, 0, 0, .8); }
.p-card3.is-front { left: 23%; z-index: 3; }
.p-card3.is-back1 { left: 0; top: 9%; z-index: 2; opacity: .66; filter: saturate(.85); transform: scale(.9) rotate(-1.6deg); }
.p-card3.is-back2 { left: 46%; top: 9%; z-index: 1; opacity: .66; filter: saturate(.85); transform: scale(.9) rotate(1.6deg); }
.p-card3.is-back1:hover, .p-card3.is-back2:hover { opacity: .95; filter: none; transform: scale(.93); }
.p-card3__hit { position: absolute; inset: 0; z-index: 4; display: grid; place-items: end center; padding-bottom: 14px; cursor: pointer; }
.p-card3__hit span { padding: 7px 15px; border-radius: 999px; background: rgba(20, 36, 59, .88); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.p-card3.is-front .p-card3__hit { display: none; }
.p-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(22px, 3vw, 32px); }
.p-tabs button { padding: 9px 17px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .75); transition: background .2s, color .2s, border-color .2s; }
.p-tabs button:hover { border-color: var(--gold-l); color: #fff; }
.p-tabs button[aria-current] { background: var(--gold-l); border-color: var(--gold-l); color: var(--navy); }
.p-tabs__hint { margin-left: auto; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.p-demo__fine { margin-top: 14px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .5); }
@media (max-width: 1080px) {
  .p-feats--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* On a phone the section starts with the button that opens a platform, then the windows
     become a strip you swipe sideways: no crooked cards, no endless scrolling. */
  .p-sec--dark .p-wrap { display: flex; flex-direction: column; }
  /* Il titolo resta in cima, il paragrafo scende dopo il carosello: il pulsante si raggiunge subito */
  .p-sec--dark .p-head { display: contents; }
  .p-sec--dark .p-head > div { order: 1; }
  .p-sec--dark .p-head > .p-lead { order: 5; margin-top: 30px; }
  .p-demo { order: 2; margin-top: clamp(24px, 4vw, 36px); }
  .p-tabs { order: 3; }
  .p-stack { order: 4; }
  .p-feats--cards { order: 6; }
  .p-principles { order: 7; }
  .p-stack { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 2px 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  /* Sul telefono si parte da FM·One */
  .p-card3[data-card="fmone"] { order: -1; }
  .p-stack::-webkit-scrollbar { display: none; }
  .p-card3, .p-card3.is-front, .p-card3.is-back1, .p-card3.is-back2, .p-card3.is-hidden {
    position: static; flex: 0 0 86%; width: auto; top: auto; left: auto;
    transform: none; opacity: 1; filter: none; scroll-snap-align: center;
  }
  .p-card3__hit { display: none; }
  .p-tabs__hint { display: none; }
  .p-demo { grid-template-columns: 1fr; }
  .p-demo__act { justify-items: stretch; }
  .p-demo__act .p-btn { width: 100%; }
}
@media (max-width: 640px) { .p-feats--cards { grid-template-columns: 1fr; } }
/* The window shows a real screenshot of FM·One and opens its demo */
.p-dash__shot { display: block; }
.p-dash > img { display: block; width: 100%; height: auto; }
.p-dash__shot img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.p-dash__shot:hover img { transform: scale(1.015); }
.p-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 44px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.p-demo .p-over { color: var(--gold-l); }
.p-demo h3 { margin-top: 12px; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; color: #fff; }
.p-demo p { margin-top: 8px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.p-demo__act { display: grid; gap: 12px; justify-items: start; }
.p-demo__act small { max-width: 36ch; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .p-demo { grid-template-columns: 1fr; } }
.p-dash__body { display: grid; grid-template-columns: 176px 1fr; min-height: 390px; }
.p-dash__side { padding: 18px 10px; border-right: 1px solid var(--line); background: #FAFBFC; }
.p-dash__side img { width: 84px; margin: 0 10px 18px; }
.p-dash__side span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; font-size: 13.5px; color: var(--muted); }
.p-dash__side .icon { width: 16px; height: 16px; }
.p-dash__side .is-on { background: var(--tint); color: var(--blue); font-weight: 600; }
.p-dash__main { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 12px; padding: 18px; }
.p-dash__kpi, .p-dash__chart, .p-dash__list { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; }
.p-dash__kpi span { font-size: 12px; color: var(--muted); }
.p-dash__kpi strong { display: block; margin-top: 2px; font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.p-dash__kpi:nth-child(2) strong { color: var(--blue); }
.p-dash__chart { grid-column: span 2; }
.p-dash__chart p, .p-dash__list p { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.p-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.p-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #C9D3E2; transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 40ms + .2s); }
.p-bars i:nth-last-child(-n+4) { background: var(--blue); }
.p-bars i:last-child { background: var(--gold-l); }
.js .p-screen:not(.is-in) .p-bars i { transform: scaleY(0); }
.p-dash__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.p-dash__list li:first-child { border-top: 0; }
.p-dash__list span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.p-dash__list b { flex-basis: 100%; }
.p-dash__list b { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.p-pill { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
.p-pill--gold { background: #F7ECD3; color: #8A6414; }
.p-pill--ok { background: #E2F3E9; color: #1B7447; }
.p-pill--muted { background: #EEF0F3; color: var(--muted); }
.p-principles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(44px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
.p-principles > span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.p-principles ul { display: flex; flex-wrap: wrap; gap: 10px; }
.p-principles li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r); font-size: 15px; color: rgba(255, 255, 255, .88); }

/* Advantage */
.p-points { margin-top: 32px; }
.p-points li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.p-points li > span { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--gold); }
.p-points h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.p-points p { margin-top: 2px; font-size: 16px; color: var(--muted); }

/* Sectors */
.p-sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.p-sectors li { padding: 30px 26px 32px; background: #fff; transition: background .25s; }
.p-sectors li:hover { background: #FAFBFD; }
.p-sectors .icon { width: 28px; height: 28px; color: var(--blue); }
.p-sectors h3 { margin-top: 18px; font-size: 17.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.p-sectors p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Values */
.p-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.p-values li { padding-top: 24px; border-top: 2px solid var(--gold-l); }
.p-values h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.p-values p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Method */
.p-method { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.p-method::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: var(--line-2); }
.p-method li { position: relative; }
.p-method li > span { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 0 0 8px var(--bg-2); }
.p-method h3 { margin-top: 22px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.p-method p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* CTA band */
.p-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.p-cta__img { position: absolute; inset: 0 0 0 50%; }
.p-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.p-cta__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(20, 36, 59, .55) 45%, rgba(20, 36, 59, .25) 100%); }
.p-cta__in { position: relative; padding-block: clamp(72px, 9vw, 112px); }
.p-cta .p-h2 { max-width: 17ch; margin-top: 0; color: #fff; }
.p-cta .p-h2 em { color: var(--gold-l); }
.p-cta p { max-width: 50ch; margin-top: 18px; font-size: 1.12rem; color: rgba(255, 255, 255, .82); }

/* Contact */
.p-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.p-maillabel { display: block; margin-top: 36px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold-l); font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; color: var(--blue); }
.p-mail .icon { width: 22px; height: 22px; color: var(--gold); transition: transform .25s; }
.p-mail:hover .icon { transform: translateX(4px); }
.p-mail--sm { font-size: 1.3rem; }
.p-start { padding: clamp(24px, 3.5vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.p-start h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.p-start > p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.p-start__list { display: grid; gap: 8px; margin-top: 22px; }
.p-start__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.p-start__list a > .icon:first-child { width: 22px; height: 22px; color: var(--blue); }
.p-start__list b { display: block; font-size: 16px; font-weight: 600; color: var(--navy); }
.p-start__list small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
.p-start__list a > .icon:last-child { width: 18px; height: 18px; color: var(--gold); transition: transform .25s; }
.p-start__list a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.p-start__list a:hover > .icon:last-child { transform: translateX(3px); }

/* ---------- Footer & toast ---------- */
.p-footer { padding: clamp(64px, 8vw, 88px) 0 28px; background: var(--navy-2); color: rgba(255, 255, 255, .72); }
.p-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.p-footer__brand img { width: 170px; }
.p-footer__brand p { max-width: 34ch; margin-top: 18px; font-size: 15.5px; }
.p-footer__brand a { display: inline-block; margin-top: 14px; border-bottom: 1px solid var(--gold-l); color: #fff; font-weight: 600; }
.p-footer h2 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.p-footer ul { display: grid; gap: 9px; }
.p-footer ul a { font-size: 15.5px; transition: color .2s; }
.p-footer ul a:hover, .p-footer ul a[aria-current] { color: var(--gold-l); }
.p-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 14px; }
.p-footer__bottom div { display: flex; gap: 24px; }
.p-footer__bottom a:hover { color: #fff; }
.p-toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.p-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.p-toast a { padding: 8px 14px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap; }
.p-toast button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); }
.p-toast .icon { width: 15px; height: 15px; }

/* ---------- Quote page + form ---------- */
/* Quote page: the same blueprint section as the home opening, the form is a paper sheet laid on it */
.p-quote {
  padding: clamp(44px, 6vw, 88px) 0 clamp(72px, 8vw, 112px); color: #fff;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.p-quote .p-over { color: var(--gold-l); }
.p-quote .p-h2 { color: #fff; }
.p-quote .p-h2 em { color: var(--gold-l); }
.p-quote .p-lead { color: rgba(255, 255, 255, .82); }
.p-quote .p-quote__points li { color: rgba(255, 255, 255, .9); }
.p-quote .p-quote__points .icon { color: var(--gold-l); }
.p-quote .p-maillabel { color: rgba(255, 255, 255, .62); }
.p-quote .p-mail { color: #fff; border-color: var(--gold-l); }
.p-quote .p-mail .icon { color: var(--gold-l); }
.p-quote .qf-wrap { background: #F7F5EF; border: 0; border-radius: 6px; outline: 1px solid rgba(20, 36, 59, .35); outline-offset: -9px; box-shadow: 0 50px 90px -40px rgba(4, 12, 28, .6); }
.p-quote__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.p-quote__intro { position: sticky; top: calc(var(--hh) + 32px); }
.p-quote__points { display: grid; gap: 12px; margin-top: 28px; }
.p-quote__points li { display: flex; gap: 10px; font-size: 16px; color: var(--ink-2); }
.p-quote__points .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.qf-wrap { padding: clamp(24px, 3.5vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.qf { color-scheme: light; }
.qf__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qf__progress li { position: relative; padding-top: 14px; font-size: 13.5px; color: var(--muted); }
/* Step numbers are buttons: the whole column, bar included, jumps to that step */
.qf__goto { display: block; width: 100%; margin-top: -14px; padding-top: 14px; text-align: left; cursor: pointer; }
.qf__goto:hover em { text-decoration: underline; text-underline-offset: 3px; }
.qf__progress li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: #E6E9EE; transition: background .4s; }
.qf__progress li.is-done::before { background: var(--blue); }
.qf__progress li.is-current::before { background: linear-gradient(90deg, var(--blue), var(--gold-l)); }
.qf__progress li.is-current { color: var(--navy); font-weight: 600; }
.qf__progress span { display: block; font-size: 12px; font-weight: 700; color: var(--blue); }
.qf__progress em { font-style: normal; }
.qf__steplabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qf__restored { margin-top: 16px; padding: 10px 14px; border-radius: var(--r); background: #FBF3E1; color: #7A5A14; font-size: 14px; }
.qf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf__legend { display: block; margin: 28px 0 18px; padding: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 600; color: var(--navy); outline: none; }
.qf__types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qf__type { position: relative; }
.qf__type:last-child { grid-column: 1 / -1; }
.qf__type input { position: absolute; opacity: 0; pointer-events: none; }
.qf__type-box { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.qf__type-box > .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--tint); color: var(--blue); transition: background .2s, color .2s; }
.qf__type-box b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.qf__type-box small { font-size: 14px; line-height: 1.4; color: var(--muted); }
.qf__type:hover .qf__type-box { border-color: var(--blue); }
.qf__type input:checked + .qf__type-box { border-color: var(--blue); background: #F7F9FC; box-shadow: 0 0 0 3px rgba(43, 72, 112, .14); }
.qf__type input:checked + .qf__type-box > .icon { background: var(--blue); color: #fff; }
.qf__type input:focus-visible + .qf__type-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.qf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.qf__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.qf__field label, .qf__label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.qf__opt { font-weight: 400; color: var(--muted); }
.qf__req { color: #B42318; }
.qf input:not([type=radio]):not([type=checkbox]):not([type=file]), .qf select, .qf textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff;
  color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.qf textarea { min-height: 120px; resize: vertical; }
.qf input::placeholder, .qf textarea::placeholder { color: #98A0AC; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 72, 112, .14); }
.qf select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4870' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.qf__field.is-invalid input, .qf__field.is-invalid select { border-color: #C4320A; }
.qf__error { font-size: 13.5px; color: #B42318; }
.qf__error:empty { display: none; }
.qf__error--form { margin-top: 14px; font-size: 15px; }
.qf__hint { margin: -2px 0 14px; font-size: 14.5px; color: var(--muted); }
.qf__label + .qf__hint { margin: 0 0 4px; }
.qf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf__chip { position: relative; }
.qf__chip input { position: absolute; opacity: 0; pointer-events: none; }
.qf__chip span { display: inline-flex; align-items: center; gap: 0; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s, color .2s, gap .2s; }
.qf__chip .icon { width: 0; height: 16px; opacity: 0; transition: width .2s, opacity .2s; }
.qf__chip:hover span { border-color: var(--blue); }
.qf__chip input:checked + span { gap: 8px; border-color: var(--blue); background: var(--blue); color: #fff; }
.qf__chip input:checked + span .icon { width: 16px; opacity: 1; }
.qf__chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.qf__sub { margin: 30px 0 6px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.qf__repeats { display: grid; }
.qf__repeat { display: grid; grid-template-columns: 1fr 190px 50px; gap: 0 12px; align-items: end; }
.qf__repeat--link { grid-template-columns: 1fr 50px; align-items: start; }
.qf__remove { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--muted); transition: color .2s, border-color .2s; }
.qf__remove .icon { width: 18px; height: 18px; }
.qf__remove:hover { color: #B42318; border-color: #B42318; }
.qf__add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--blue); }
.qf__add .icon { width: 18px; height: 18px; }
.qf__drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #FAFBFC; text-align: center; color: var(--ink-2); font-size: 15.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.qf__drop .icon { width: 30px; height: 30px; color: var(--blue); }
.qf__drop u { color: var(--blue); text-underline-offset: 3px; }
.qf__drop small { font-size: 13px; color: var(--muted); }
.qf__drop:hover, .qf__drop.is-over { border-color: var(--blue); background: var(--tint); }
.qf__drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.qf__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.qf__files { display: grid; gap: 8px; margin-top: 12px; }
.qf__files:empty { display: none; }
.qf__files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #FAFBFC; font-size: 14.5px; }
.qf__file-ext { padding: 3px 7px; border-radius: 3px; background: var(--tint); color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.qf__file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf__files small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.qf__file-remove { width: 36px; height: 36px; border-radius: var(--r); font-size: 20px; line-height: 1; color: var(--muted); }
.qf__file-remove:hover { color: #B42318; background: #FDECEA; }
.qf__summary { margin: 4px 0 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #FAFBFC; }
.qf__summary:empty { display: none; }
.qf__summary h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.qf__summary dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 15px; }
.qf__summary dt { font-size: 14px; color: var(--muted); }
.qf__summary dd { margin: 0; overflow-wrap: anywhere; }
.qf__summary small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.qf__check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px !important; font-weight: 400 !important; line-height: 1.55; color: var(--ink-2) !important; cursor: pointer; }
.qf__check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.qf__check a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.qf__nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.qf__nav [data-next], .qf__nav [data-submit] { margin-left: auto; }
.qf .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r); font-size: 16px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.qf .btn .icon { width: 18px; height: 18px; }
.qf .btn--gold { background: var(--blue); color: #fff; }
.qf .btn--gold:hover { background: var(--navy); }
.qf .btn--ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.qf .btn--ghost:hover { border-color: var(--navy); }
.qf__nav .btn[disabled] { opacity: .75; cursor: progress; }
.qf__upload { height: 4px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: #E6E9EE; }
.qf__upload i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }
.qf__done { display: grid; justify-items: center; gap: 14px; padding: 36px 8px; text-align: center; outline: none; }
.qf__done-mark { width: 90px; margin-bottom: 8px; --mark-l: var(--blue); --mark-r: var(--gold-l); }
.qf__done h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; color: var(--navy); }
.qf__done p { max-width: 44ch; color: var(--muted); }
.qf__done strong { color: var(--blue); }

/* ---------- Legal ---------- */
.p-legal { padding: clamp(44px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.p-legal__in { max-width: calc(820px + var(--pad) * 2); }
.p-legal__date { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.p-legal .p-lead { margin-top: 26px; }
.p-legal section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-legal h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.p-legal section p { margin-top: 10px; color: var(--ink-2); }
.p-legal a:not(.p-btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.p-legal .p-btn { margin-top: 44px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .p-nav { gap: 22px; }
  .p-nav a { font-size: 15px; }
}
@media (max-width: 1080px) {
  .p-nav { display: none; }
  .p-burger { display: inline-flex; }
  .p-header__act { margin-left: auto; }
  .p-hero__grid, .p-split, .p-soft, .p-contact, .p-quote__grid, .p-head--split { grid-template-columns: 1fr; }
  .p-hero__media { max-width: 560px; }
  .p-cards { grid-template-columns: repeat(2, 1fr); }
  .p-sectors { grid-template-columns: repeat(2, 1fr); }
  .p-values, .p-method { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .p-method::before { display: none; }
  .p-footer__top { grid-template-columns: 1fr 1fr; }
  .p-quote__intro { position: static; }
  .p-dash { max-width: 720px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --hh: 68px; }
  .p-brand img { height: 22px; }
  .p-header__cta { display: none; }
  .p-actions .p-btn { width: 100%; }
  .p-hero__media { margin-right: 12px; }
  .p-hero__media::before { right: -12px; bottom: -12px; }
  .p-plate { padding: 12px 14px 18px; }
  .p-plate__tabs { gap: 0 2px; }
  .p-plate__tabs button { padding: 8px 5px 9px; font-size: 10px; letter-spacing: .04em; }
  .p-calc { font-size: 11px; }
  .p-plate__table li { font-size: 12.5px; }
  .p-cards, .p-pillars, .p-checks, .p-deliver, .p-sectors, .p-values, .p-method, .p-footer__top { grid-template-columns: 1fr; }
  .p-pillars { gap: 28px; }
  .p-stat { max-width: none; margin: 0 0 24px; }
  .p-dash__body { grid-template-columns: 1fr; min-height: 0; }
  .p-dash__side { display: none; }
  .p-dash__main { grid-template-columns: 1fr 1fr; padding: 12px; }
  .p-dash__chart, .p-dash__list { grid-column: 1 / -1; }
  .p-dash__kpi:nth-child(3) { display: none; }
  .p-bars { height: 110px; }
  .p-cta__img { inset: 0; opacity: .35; }
  .p-footer__bottom { flex-direction: column; }
  .p-toast { flex-wrap: wrap; width: calc(100vw - 32px); }
  .qf__types, .qf__row { grid-template-columns: 1fr; }
  .qf__progress em { display: none; }
  .qf__progress { margin-bottom: 4px; }
  .qf__steplabel { position: static; width: auto; height: auto; clip: auto; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
  .qf__repeat { grid-template-columns: 1fr 50px; }
  .qf__repeat > .qf__field:first-child { grid-column: 1 / -1; margin-bottom: 10px; }
  .qf__summary dl { grid-template-columns: 1fr; gap: 2px; }
  .qf__summary dd { margin-bottom: 10px; }
  .qf__nav .btn { flex: 1; }
  .qf__nav [data-back] { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The hero sheet keeps its small drawing and counting animations: they are its content */
  *:not(.p-plate *), *:not(.p-plate *)::before, *:not(.p-plate *)::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

@media (max-width: 640px) {
  /* Meno testo prima del pulsante: la precisazione resta sul computer */
  .p-demo__fine { display: none; }
  .p-demo h3 { margin-top: 8px; }
  .p-demo p { font-size: 15px; }
}

/* Company details in the footer: name and rights on one line, address, registry code and VAT under it */
.p-footer__co { display: block; margin-top: 4px; color: rgba(255, 255, 255, .5); }

@media (max-width: 640px) {
  /* Compact feature cards: icon and title on one line, shorter block */
  .p-feats--cards li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 15px 16px; }
  .p-feats--cards li > div { display: contents; }
  .p-feats--cards .p-feats__icon { width: 38px; height: 38px; margin: 0; align-self: center; }
  .p-feats--cards .p-feats__icon .icon { width: 18px; height: 18px; }
  .p-feats--cards h3 { align-self: center; font-size: 16.5px; }
  .p-feats--cards p { grid-column: 2; margin-top: 2px; font-size: 14.5px; line-height: 1.5; }
}

/* ---------- Software: rimando a nixsa.app ---------- */
.p-hub { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 30px 34px; border: 1px solid rgba(228, 184, 90, .4); border-radius: 10px; background: linear-gradient(120deg, rgba(228, 184, 90, .14), rgba(255, 255, 255, .03) 60%); }
.p-hub h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.2; color: #fff; }
.p-hub__text > p:not(.p-over) { margin-top: 8px; max-width: 62ch; color: #C3CCD9; }
.p-hub__sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-hub__sectors a { display: inline-block; padding: 6px 13px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14.5px; font-weight: 600; color: #fff; transition: border-color .2s, background .2s; }
.p-hub__sectors a:hover { border-color: var(--gold-l); background: rgba(228, 184, 90, .12); }
.p-hub > .p-btn { flex-shrink: 0; }
@media (max-width: 860px) { .p-hub { flex-direction: column; align-items: flex-start; padding: 24px 22px; } }
.p-card3.is-hidden { left: 23%; top: 12%; z-index: 0; opacity: 0; pointer-events: none; transform: scale(.85); }
@media (max-width: 1080px) { .p-card3.is-hidden { pointer-events: auto; } }
.p-tabs__tutti { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-l); }
.p-tabs__tutti .icon { width: 16px; height: 16px; }
.p-tabs__tutti:hover { color: #fff; }
@media (max-width: 1080px) { .p-tabs__tutti { display: inline-flex !important; margin-left: 0; } }

/* ---------- Software: griglia con tutti i software ---------- */
.p-swg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.p-swg__c { display: flex; flex-direction: column; padding: 18px 18px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .04); transition: border-color .25s, background .25s; }
.p-swg__c:hover { border-color: var(--gold-l); background: rgba(255, 255, 255, .07); }
.p-swg__c .p-dash { box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .8); }
.p-swg__c .p-dash img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top left; }
.p-swg__c h3 { margin-top: 20px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #fff; }
.p-swg__c p { margin: 8px 0 20px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.p-swg__c .p-btn { margin-top: auto; align-self: flex-start; }
.p-swg__tutti { margin-top: 28px; text-align: center; }
.p-swg__tutti a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-l); }
.p-swg__tutti a:hover { color: #fff; }
.p-swg__tutti .icon { width: 16px; height: 16px; }
@media (max-width: 760px) { .p-swg { grid-template-columns: minmax(0, 1fr); } }
.p-swg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.p-swg__c { padding: 14px 14px 20px; }
.p-swg__sw { margin-top: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); }
.p-swg__c h3 { margin-top: 6px; font-size: 1.3rem; line-height: 1.2; }
.p-swg__c .p-swg__txt { margin: 8px 0 18px; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1080px) { .p-swg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .p-swg { grid-template-columns: minmax(0, 1fr); } }
.p-swg__sw { color: var(--gold-l) !important; }
.p-swg__c .p-dash { position: relative; }

/* bollino Gratis: sobrio, blu notte con bordo oro */
.p-dash { position: relative; }
.p-gratis { position: absolute; top: 46px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 6px; background: #14243B; border: 1px solid #E4B85A; color: #E4B85A; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.p-gratis::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E4B85A; }
.p-gratis--pic { position: static; height: 20px; padding: 0 7px; margin-left: 6px; font-size: 10px; letter-spacing: .1em; box-shadow: none; vertical-align: 1px; }
.p-gratis--pic::before { display: none; }
.p-tabs button[aria-current] .p-gratis--pic { background: #14243B; }

/* carosello a cerchio delle schede software */
@media (min-width: 1081px) {
  .p-stack { padding-top: 38%; perspective: 1800px; perspective-origin: 50% 40%; }
  .p-card3.p-giro { left: 27%; top: 4%; width: 46%; transform-origin: 50% 50%; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s, filter .9s; }
  .p-card3.p-giro:not(.is-front) { cursor: pointer; }
  .p-card3.p-giro:not(.is-front):hover { opacity: 1 !important; filter: none !important; }
  .p-card3.p-giro.is-front .p-dash { box-shadow: 0 50px 90px -30px rgba(0,0,0,.85); }
  .p-card3.p-giro .p-card3__hit { display: grid; }
  .p-card3.p-giro.is-front .p-card3__hit { display: none; }
}
#software { overflow-x: clip; }
@media (min-width: 1081px) {
  .p-card3.p-giro .p-card3__hit span { opacity: 0; transition: opacity .2s; }
  .p-card3.p-giro:hover .p-card3__hit span { opacity: 1; }
}
/* frecce semitrasparenti e trascinamento del carosello */
.p-giro__freccia { display: none; }
@media (min-width: 1081px) {
  .p-stack { cursor: grab; touch-action: pan-y; user-select: none; }
  .p-stack.trascina { cursor: grabbing; }
  .p-stack img { -webkit-user-drag: none; pointer-events: none; }
  .p-giro__freccia { position: absolute; top: 50%; z-index: 200; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
  .p-giro__freccia:hover { background: rgba(228,184,90,.85); border-color: var(--gold-l); color: var(--navy); transform: scale(1.06); }
  .p-giro__freccia .icon { width: 22px; height: 22px; }
  .p-giro__freccia--sx { left: 6px; }
  .p-giro__freccia--sx .icon { transform: rotate(180deg); }
  .p-giro__freccia--dx { right: 6px; }
}
/* sezione Software sul telefono: un solo elenco di settori (le schede), niente doppioni */
.p-card3__cap { display: none; }
@media (max-width: 1080px) {
  .p-sec--dark .p-head > div { order: 1; }
  .p-stack { order: 2; }
  .p-demo { order: 3; }
  .p-sec--dark .p-head > .p-lead { order: 4; }
  .p-hub { order: 5; margin-top: 28px; }
  .p-feats--cards { order: 6; }
  .p-principles { order: 7; }
  .p-tabs, .p-hub__sectors { display: none !important; }
  .p-stack { gap: 12px; padding: 4px 4px 10px; scroll-padding: 0 7%; }
  .p-card3, .p-card3.is-front, .p-card3.is-back1, .p-card3.is-back2, .p-card3.is-hidden, .p-card3.p-giro { flex: 0 0 84%; opacity: 1 !important; filter: none !important; }
  .p-card3__cap { display: grid; gap: 2px; margin-top: 12px; padding: 0 4px; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.6); }
  .p-card3__cap strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: #fff; }
  .p-card3.is-front .p-card3__cap strong { color: var(--gold-l); }
  .p-demo { margin-top: 18px; }
  .p-demo .p-over, .p-demo__fine { display: none; }
  .p-hub { padding: 22px 20px; }
  .p-hub h3 { font-size: 1.25rem; }
  .p-feats--cards { margin-top: 28px; }
}
@media (max-width: 1080px) {
  .p-demo h3 { display: none; }
  .p-demo { padding: 18px 18px 20px; }
  .p-demo p { margin-top: 0; }
}
