/* ============================================================
   4Gol v2: linguaggio "cielo" (titoli serif stretti, nuvole che
   prendono il colore del prodotto, vetro smerigliato, pillole).
   Si carica dopo style.css e ne ridefinisce i token.
   ============================================================ */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/sourceserif4-latin.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/caveat-latin.woff2") format("woff2"); }

:root {
  --ink: #0a1430;            /* titoli */
  --ink-2: #44506e;          /* testo secondario */
  --ink-3: #7d87a3;          /* note */
  --paper: #fcfdff;          /* fondo pagina */
  --line-soft: #e6ebf5;
  --glass: rgba(255, 255, 255, .72);

  /* colore della pagina: blu 4Gol, i prodotti lo sostituiscono */
  --p: #2e5bff;
  --p-deep: #1800ad;
  --p-soft: #dfe7ff;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 .6px .6px -1.25px rgba(0, 7, 26, .12), 0 2.3px 2.3px -2.5px rgba(0, 7, 26, .1), 0 10px 10px -3.75px rgba(0, 7, 26, .04);
  --shadow-win: 0 1px 2px rgba(10, 20, 48, .06), 0 12px 32px -12px rgba(10, 20, 48, .18), 0 40px 80px -40px rgba(24, 0, 173, .25);
}

body { background: var(--paper); color: var(--ink-2); letter-spacing: -0.01em; }

/* ---------- Tipografia ---------- */
.h1, .h2, .h3, .t-serif { font-family: var(--font-serif); font-optical-sizing: auto; color: var(--ink); font-weight: 560; }
.h1 { font-size: clamp(2.7rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.05em; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.05em; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.12; letter-spacing: -0.035em; margin: 0; }
.h2 .muted-line, .h3 .muted-line { display: block; color: #5b6b8c; }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.08rem); line-height: 1.5; letter-spacing: -0.03em; }
.accent { color: var(--p-deep); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Pillola sopra i titoli */
.kick {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
  font: 500 .9rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.kick svg { width: 15px; height: 15px; color: var(--p); flex: none; }
a.kick:hover { color: var(--ink); border-color: #cfd8ec; }
.kick--link::after { content: "›"; font-size: 1.1em; margin-left: 2px; color: var(--ink-2); }

/* Evidenziatore nel testo di apertura */
.mark { background: color-mix(in oklab, var(--p) 12%, white); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Bottoni ---------- */
.btn { letter-spacing: -0.02em; }
.btn--sky {
  background: linear-gradient(180deg, #3d6bff 0%, var(--p-deep) 100%); color: #fff; border: 0;
  min-height: 48px; padding: 0 22px 0 26px; font-weight: 600;
  box-shadow: 0 .7px 2.7px -1.2px rgba(24, 0, 173, .3), 0 2.7px 10px -2.3px rgba(24, 0, 173, .25), 0 12px 45px -3.5px rgba(24, 0, 173, .22);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--sky::after { content: "›"; font-size: 1.35em; line-height: 0; margin-left: 4px; transform: translateY(-1px); transition: transform .3s var(--ease-out); }
.btn--sky:hover { color: #fff; background: linear-gradient(180deg, #4a76ff 0%, #1d06c2 100%); }
.btn--sky:hover::after { transform: translate(3px, -1px); }
/* riflesso che passa sul bottone, come una luce sul vetro */
.btn--sky::before { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; width: 40px; left: -60px; background: rgba(255, 255, 255, .55); filter: blur(10px); transform: skewX(-18deg); animation: sheen-pass 5.5s var(--ease-out) 1.2s infinite; }
@keyframes sheen-pass { 0% { left: -60px; } 30%, 100% { left: calc(100% + 60px); } }
.btn--ink { background: var(--ink); color: #fff; min-height: 38px; padding: 0 16px; font-size: .95rem; }
.btn--ink:hover { background: #18244a; color: #fff; }
.btn--soft { background: #fff; color: var(--ink); border: 1px solid var(--line-soft); min-height: 38px; padding: 0 14px; font-size: .95rem; box-shadow: var(--shadow-card); }
.btn--soft:hover { color: var(--ink); border-color: #cfd8ec; }
.note { font-size: .82rem; color: var(--ink-3); margin-top: 12px; letter-spacing: -0.01em; }

/* ---------- Header (stile "aria") ---------- */
.header { background: rgba(252, 253, 255, .8); border-bottom: 1px solid transparent; }
.header--scrolled { border-bottom-color: var(--line-soft); box-shadow: none; }
.header__inner { height: 76px; }
.nav__link { font-weight: 500; color: var(--ink-2); letter-spacing: -0.02em; }
.nav__link:hover { background: transparent; color: var(--ink); }
.nav__cta.btn--primary { background: var(--ink); color: #fff; min-height: 38px; padding: 0 16px; font-size: .95rem; }
.nav__cta.btn--primary:hover { background: #18244a; color: #fff; }
@media (min-width: 961px) {
  .nav { flex: 1; margin-left: 32px; }
  .nav > .nav__dropdown { margin-left: auto; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Cielo: nuvole colorate con il colore della pagina ---------- */
.sky { position: absolute; pointer-events: none; z-index: 0; }
.sky::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 60%, var(--p) 0%, color-mix(in oklab, var(--p) 55%, #7fd0ff) 45%, color-mix(in oklab, var(--p) 20%, white) 80%);
  -webkit-mask: var(--cloud) center / 100% 100% no-repeat; mask: var(--cloud) center / 100% 100% no-repeat;
}
.sky--mound { --cloud: url("/assets/sky/cloud-mound.webp"); }
.sky--haze { --cloud: url("/assets/sky/cloud-haze.webp"); opacity: .55; }
.sky--haze::before { background: radial-gradient(70% 80% at 50% 50%, color-mix(in oklab, var(--p) 55%, #8fd6ff), color-mix(in oklab, var(--p) 18%, white)); }
.sky--card { --cloud: url("/assets/sky/cloud-card.webp"); opacity: .7; }
.sky--card::before { background: linear-gradient(180deg, color-mix(in oklab, var(--p) 45%, #8fd6ff), color-mix(in oklab, var(--p) 10%, white)); }

/* ---------- Apertura ---------- */
.s-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.s-hero .h1 { max-width: 15ch; margin: 22px auto 0; }
.s-hero .lead { max-width: 33rem; margin: 22px auto 0; }
.s-hero__cta { margin-top: 30px; }
.s-hero__stage { position: relative; margin-top: clamp(40px, 6vw, 72px); padding: 0 20px; }
.s-hero__stage .sky--mound { left: -12%; right: -12%; top: -8%; height: 120%; }
.s-hero__chip { position: absolute; z-index: 3; top: -16px; left: max(20px, calc(50% - 560px)); }
.s-hero__hand { position: absolute; z-index: 3; top: -64px; right: max(20px, calc(50% - 600px)); font: 500 1.5rem/1 var(--font-hand); color: var(--ink); transform: rotate(-8deg); display: flex; align-items: flex-end; gap: 6px; }
.s-hero__hand svg { width: 42px; height: 42px; transform: rotate(12deg); }
@media (max-width: 760px) { .s-hero__hand { display: none; } .s-hero__chip { position: relative; top: auto; left: auto; margin-bottom: 12px; } }

/* ---------- Finestre d'app (illustrazioni in HTML) ---------- */
.app { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; background: rgba(255, 255, 255, .25); border-radius: 18px; padding: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.app__win { background: #fff; border-radius: 12px; box-shadow: var(--shadow-win); overflow: hidden; display: grid; grid-template-columns: 210px minmax(0, 1fr); text-align: left; font-size: 13px; color: var(--ink); letter-spacing: -0.01em; }
.app__side { border-right: 1px solid var(--line-soft); padding: 12px; background: #fafbfe; display: grid; align-content: start; gap: 4px; }
.app__ws { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; font-weight: 600; margin-bottom: 8px; }
.app__ws i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #3d6bff, var(--p-deep)); }
.app__nav { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--ink-2); }
.app__nav.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-card); }
.app__nav svg { width: 22px; height: auto; color: var(--ink); flex: none; }
.app__nav em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--ink-3); }
.app__label { font-size: 11px; color: var(--ink-3); margin: 10px 8px 2px; }
.app__main { padding: 0; min-width: 0; }
.app__top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.app__top span { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--ink-2); font-weight: 500; }
.app__body { padding: 18px; display: grid; gap: 14px; }
.app__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
.kpi small { display: block; color: var(--ink-3); font-size: 11.5px; }
.kpi b { display: block; font: 600 1.45rem/1.2 var(--font-serif); letter-spacing: -0.03em; margin-top: 4px; }
.kpi .up { display: inline-block; font: 600 10.5px var(--font-body); color: #13804b; background: #e3f6ec; border-radius: 99px; padding: 1px 6px; margin-left: 6px; vertical-align: 3px; }
.app__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.panel { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.panel__t { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11.5px; margin-bottom: 8px; }
.chart { width: 100%; height: 120px; display: block; }
.rows { display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f0f3f9; }
.rows > div:first-child { border-top: 0; }
.rows b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { color: var(--ink-3); }
.tag { font-size: 10.5px; font-weight: 600; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.tag--ok { background: #e3f6ec; color: #13804b; }
.tag--wait { background: #fdf3d7; color: #8a6400; }
.tag--ko { background: #fde7e7; color: #b42318; }
.tag--p { background: color-mix(in oklab, var(--p) 12%, white); color: var(--p-deep); }
@media (max-width: 860px) {
  .app__win { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .app__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .app__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app__kpis .kpi:last-child { display: none; } }

/* ---------- Sezioni ---------- */
.s { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.s__head { position: relative; z-index: 1; text-align: center; max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 72px); }
.s__head .h2 { margin-top: 18px; }
.s__head .lead { margin: 18px auto 0; max-width: 34rem; }

/* Tre passi: schede con la nuvola in alto */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }
.ccard { position: relative; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: linear-gradient(#fff, #fbfcff); text-align: center; padding: 0 28px 34px; box-shadow: var(--shadow-card); }
.ccard .sky--card { inset: 0 0 auto 0; height: 300px; }
.ccard__art { position: relative; z-index: 1; height: 270px; display: grid; place-items: center; }
.ccard h3 { margin-top: 6px; }
.ccard p { margin: 10px 0 0; font-size: .97rem; line-height: 1.5; }
/* mini illustrazioni */
.mini { background: rgba(255, 255, 255, .92); border: 1px solid var(--line-soft); border-radius: 10px; box-shadow: var(--shadow-win); text-align: left; font-size: 12px; color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mini--call { width: 250px; padding: 14px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: center; }
.mini--call .av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--oro), #8a6400); display: grid; place-items: center; color: #fff; font-weight: 700; }
.mini--call small { color: var(--ink-3); }
.mini--call .acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.mini--call .acts span { flex: 1; text-align: center; padding: 7px; border-radius: 8px; font-weight: 600; background: #e3f6ec; color: #13804b; }
.mini--call .acts span + span { background: #f2f4f9; color: var(--ink-2); }
.mini--demo { width: 240px; padding: 14px; }
.mini--demo .row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid #f0f3f9; }
.mini--demo .row:first-of-type { border-top: 0; }
.badge-round { position: absolute; top: 34px; right: calc(50% - 150px); width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(180deg, #3d6bff, var(--p-deep)); color: #fff; display: grid; place-items: center; text-align: center; font: 700 1.1rem/1 var(--font-serif); box-shadow: 0 10px 30px -8px rgba(24, 0, 173, .6); }
.badge-round small { display: block; font: 600 9px var(--font-body); }
.mini--dl { width: 250px; padding: 12px; display: grid; gap: 8px; }
.mini--dl div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.mini--dl div b { font-weight: 600; }
.mini--dl div i { margin-left: auto; font-style: normal; font-size: 11px; color: #13804b; font-weight: 600; }
.mini--dl .bar { height: 6px; border-radius: 9px; background: #edf1f8; overflow: hidden; border: 0; padding: 0; }
.mini--dl .bar::before { content: ""; width: 72%; background: linear-gradient(90deg, #3d6bff, var(--p-deep)); border-radius: 9px; }

/* Blocchi prodotto */
.s-suite { overflow: hidden; }
.s-suite > .sky--haze { left: -10%; right: -10%; top: -2%; height: 900px; }
.prod { position: relative; margin-top: clamp(80px, 10vw, 140px); }
.prod:first-of-type { margin-top: 0; }
.prod__head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 36px; }
.prod__logo { display: inline-block; color: var(--ink); margin-bottom: 18px; }
.prod__logo svg { height: 40px; width: auto; display: block; }
.prod__head p { margin: 0; font-size: 1.05rem; line-height: 1.55; letter-spacing: -0.02em; }
.prod__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.prod__more::after { content: "→"; transition: transform .3s var(--ease-out); }
.prod__more:hover { color: var(--p-deep); }
.prod__more:hover::after { transform: translateX(4px); }
.prod__price { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) { .prod__head { grid-template-columns: minmax(0, 1fr); } }
.prod__stage { position: relative; }
.prod__stage .sky--haze { inset: -18% -10% -10%; opacity: .5; }
.prod .app__win { grid-template-columns: minmax(0, 1fr); }
.prod .app { max-width: none; }
.overlay { position: absolute; z-index: 3; right: -8px; bottom: -28px; width: min(380px, 70%); }
.overlay .mini { padding: 16px; width: 100%; }
@media (max-width: 700px) { .overlay { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 12px; } }
.mini h4 { margin: 0 0 4px; font: 600 1.05rem var(--font-serif); letter-spacing: -0.02em; }
.mini .sub { color: var(--ink-3); margin: 0 0 12px; }
.field-mk { border: 1px solid var(--line-soft); border-radius: 7px; padding: 7px 10px; margin-top: 6px; display: flex; justify-content: space-between; }
.field-mk small { color: var(--ink-3); }
.mini .go { margin-top: 12px; display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }

/* kanban */
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb > div { background: #f7f9fd; border-radius: 10px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.kb small { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.kb small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--p)); }
.kb p { margin: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 10px; font-weight: 600; }
.kb p span { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
@media (max-width: 600px) { .kb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kb > div:last-child { display: none; } }

/* chat 4You */
.chat { display: grid; gap: 12px; max-width: 640px; }
.chat .q { justify-self: end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 14px; max-width: 80%; }
.chat .a { border: 1px solid var(--line-soft); border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: color-mix(in oklab, var(--p) 25%, white); }
.bars i.top { background: linear-gradient(180deg, color-mix(in oklab, var(--p) 80%, white), var(--p)); }
.src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.src span { font-size: 11px; border: 1px solid var(--line-soft); border-radius: 99px; padding: 2px 8px; color: var(--ink-2); }

/* Colori dei prodotti (kit 2026), ammorbiditi per le nuvole */
.c-4target { --p: #cda434; --p-deep: #8a6400; }
.c-4numbers { --p: #1dc319; --p-deep: #138a10; }
.c-4studio { --p: #ff751f; --p-deep: #b8480a; }
.c-4docs { --p: #2a2d35; --p-deep: #0b0d12; }
/* 4Docs: nero su bianco, nuvole color carta e inchiostro */
.c-4docs .sky::before { background: radial-gradient(70% 80% at 50% 50%, #9aa0ad, #e9ebf0 70%, #f7f7f9); }
.c-4docs .sky--haze { opacity: .45; }
.c-4you { --p: #f62a5b; --p-deep: #b0103a; }

/* Schede per tipo di cliente */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tabs button { font: 500 .95rem var(--font-body); letter-spacing: -0.02em; color: var(--ink); background: #fff; border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--p-deep); border-color: color-mix(in oklab, var(--p) 60%, white); background: color-mix(in oklab, var(--p) 6%, white); }
.ba { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.ba[hidden] { display: none; }
.ba__row { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 12px; }
.ba__row p { margin: 0; border-radius: 12px; padding: 14px 16px; line-height: 1.45; }
.ba__before { background: #f3f5fa; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(125, 135, 163, .6); }
.ba__after { background: #fff; border: 1px solid var(--line-soft); color: var(--ink); box-shadow: var(--shadow-card); }
.ba__row > span { text-align: center; color: var(--p); font-size: 1.2rem; }
@media (max-width: 700px) { .ba__row { grid-template-columns: minmax(0, 1fr); } .ba__row > span { justify-self: center; width: 32px; transform: rotate(90deg); } }

/* Lista di controllo */
.s-check { overflow: hidden; }
.s-check > .sky--haze { left: -10%; right: -10%; bottom: -10%; height: 700px; top: auto; opacity: .6; }
.check { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.check .h2 { margin: 0; }
.check > .lead { margin: 18px 0 0; }
.check__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 40px 0; padding: 0; list-style: none; }
.check__cols li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); letter-spacing: -0.02em; }
.check__cols li::before { content: ""; width: 19px; height: 19px; flex: none; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(180deg, #5b86ff, var(--p-deep)); box-shadow: 0 2px 6px -2px rgba(24, 0, 173, .5); }
.check__cols li small { font-size: .72rem; font-weight: 600; color: var(--ink-2); background: #eef1f8; border-radius: 6px; padding: 1px 6px; }
@media (max-width: 760px) { .check__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 460px) { .check__cols { grid-template-columns: minmax(0, 1fr); } }
.bundle-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 30px; color: var(--ink); }
.bundle-line b { font: 600 1.4rem var(--font-serif); letter-spacing: -0.03em; color: var(--p-deep); }

/* Chiusura su una nuvola */
.s-final { padding-top: 0; }
.final { position: relative; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 22px; background: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 24px; box-shadow: var(--shadow-card); }
.final .sky--haze { inset: 0; opacity: .75; }
.final > * { position: relative; z-index: 1; }
.final__icon { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-win); color: var(--ink); }
.final__icon svg { width: 46px; height: auto; }
.final .h2 { max-width: 14ch; margin: 0 auto; }
.final .lead { max-width: 30rem; margin: 18px auto 28px; }

/* ---------- Piè di pagina ---------- */
.footer { background: transparent; color: var(--ink-2); border-top: 1px solid var(--line-soft); }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer__title { font: 600 1.05rem var(--font-serif); letter-spacing: -0.02em; color: var(--ink); }
.footer__logo g { stroke: var(--ink) !important; }
.footer__logo circle[fill] { fill: var(--ink); }
.footer__logo circle:not([fill]) { stroke: var(--ink); }
.footer__bottom { border-top-color: var(--line-soft); color: var(--ink-3); }
.footer__small { color: var(--ink-3); }

/* ---------- Rifiniture ---------- */
/* le nuvole sfumano ai bordi invece di finire con un taglio */
.sky--haze { -webkit-mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%); }
.sky--mound { -webkit-mask: linear-gradient(180deg, #000 55%, transparent 92%); mask: linear-gradient(180deg, #000 55%, transparent 92%); }
.final > *:not(.sky) { position: relative; z-index: 1; }
.final > .sky { position: absolute; }
.s-hero .h1 { max-width: none; }
@media (max-width: 700px) { .s-hero .h1 br { display: none; } }
/* nei blocchi prodotto il contenuto lascia spazio alla scheda sovrapposta */
@media (min-width: 701px) { .prod .app__body { padding-right: min(36%, 400px); } .prod.c-4you .app__body { padding-right: 18px; } }
.prod__logo { text-decoration: none; }
/* le nuvole mantengono le proporzioni invece di stirarsi */
.sky--haze::before, .sky--card::before { -webkit-mask-size: cover; mask-size: cover; }
@media (max-width: 700px) { .sky--mound::before { -webkit-mask-size: cover; mask-size: cover; } }
/* logo 4GOL: cornice e "4" in inchiostro, "GOL" nel suo blu */
.header__logo, .footer__brand { color: var(--ink); }
.header__logo-svg { display: block; width: 112px; height: auto; }
.footer__logo { width: 132px; }
/* elenco con spunte (Servizi) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 32px; max-width: 900px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); letter-spacing: -0.02em; }
.check-list li::before { content: ""; width: 19px; height: 19px; flex: none; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(180deg, #5b86ff, var(--p-deep)); }
.price-head__svg { color: var(--ink); }

/* ---------- Compatibilità telefono e tablet (verifica del 18/10/2026) ---------- */
/* le cifre non vanno a capo */
.calc__totals dd, .calc__grand dd, .calc__lines em { white-space: nowrap; }
.kpi .up { white-space: nowrap; }
@media (max-width: 520px) { .kpi b { font-size: 1.2rem; } }
@media (max-width: 420px) {
  .calc__summary { padding-left: 18px; padding-right: 18px; }
  .calc__grand dd { font-size: 1.75rem; }
  .calc__totals > div { flex-wrap: wrap; }
}
/* sui dispositivi touch ogni elemento cliccabile è alto almeno 44px */
@media (pointer: coarse) {
  .header__logo, .pbar__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .kick--link { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
  .prod__more { min-height: 44px; }
  .tabs button { min-height: 44px; padding: 8px 16px; }
  .nav__link, .nav__cta, .pbar__cta, .pbar__back, .btn--ink, .btn--soft { min-height: 44px; }
  .stepper__btn, .stepper input { min-height: 44px; }
  .stepper__btn { width: 44px; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-right: 8px; }
  .footer ul { gap: 0; }
  .nav__cta.btn--primary { min-height: 44px; }
}
/* Safari e iOS precedenti alla 16.2 non conoscono color-mix(): colori di riserva */
@supports not (color: color-mix(in oklab, red, blue)) {
  .sky::before { background: radial-gradient(60% 70% at 50% 60%, var(--p) 0%, #7fb0ff 45%, #e9efff 80%); }
  .sky--haze::before { background: radial-gradient(70% 80% at 50% 50%, #8fb8ff, #eef3ff); }
  .sky--card::before { background: linear-gradient(180deg, #8fb8ff, #f2f6ff); }
  .mark, .tag--p, .tabs button[aria-selected="true"] { background: #e8eeff; }
  .tabs button[aria-selected="true"] { border-color: #9db4ff; }
  .bars i { background: #f7c9d4; }
}
