/* =========================================================
   ghila.it — design system v3 (mobile-first)
   Chiaro, arioso, card flottanti, gradiente blu→viola→acqua.
   ========================================================= */
:root {
  --bg: #f6f7fb; --card: #ffffff; --ink: #121721; --ink-2: #3f4655; --ink-3: #6b7280; --line: rgba(18, 23, 33, .07);
  --blue: #2b6bf3; --violet: #7a4df5; --teal: #1fb8ad; --rose: #ef5b8a;
  --blue-soft: #e8efff; --violet-soft: #efe9ff; --teal-soft: #dff6f3; --rose-soft: #fde8ef; --amber-soft: #fff1dc;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --grad-text: linear-gradient(120deg, var(--blue) 0%, var(--violet) 55%, var(--teal) 100%);
  --grad-line: linear-gradient(90deg, var(--blue), var(--violet), var(--teal));
  /* alias per le pagine secondarie */
  --accent: var(--blue); --accent-2: #1f55d1; --accent-soft: var(--blue-soft);
  --paper: var(--bg); --paper-2: #eef1f8; --white: var(--card); --surface: var(--card); --bg-alt: #eef1f8;
  --ok: var(--teal); --ok-soft: var(--teal-soft); --warn: #d9534f; --warn-soft: var(--rose-soft);
  --head: "Outfit", "Segoe UI", system-ui, sans-serif; --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: var(--head); --font-body: var(--body); --font-mono: var(--body); --serif: var(--head);
  --max: 1120px; --pad: 20px; --r: 20px; --r-s: 14px;
  --sh: 0 2px 6px rgba(18, 23, 33, .04), 0 18px 40px -18px rgba(43, 107, 243, .18);
  --sh-lg: 0 30px 70px -30px rgba(43, 107, 243, .35);
  --radius: var(--r); --radius-sm: var(--r-s); --shadow: var(--sh);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 760px) { :root { --pad: 40px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; } button { font: inherit; } [hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 8.2vw, 3.7rem); font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); } h3 { font-size: 1.2rem; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); } .small { font-size: .9rem; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.progress-top { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-line); z-index: 120; transition: width .12s linear; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--blue-soft); color: var(--blue); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.teal { background: var(--teal-soft); color: #0f8f86; } .pill.violet { background: var(--violet-soft); color: var(--violet); } .pill.rose { background: var(--rose-soft); color: #d13f6f; }
/* header */
.top { position: sticky; top: 0; z-index: 100; background: rgba(246, 247, 251, .8); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(18, 23, 33, .2); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.wordmark .m { width: 36px; height: 36px; display: block; flex: none; object-fit: contain; }
.wordmark small { display: block; font-family: var(--body); font-size: .72rem; color: var(--ink-3); font-weight: 500; }
.top nav { display: flex; gap: 4px; }
.top nav a { font-size: .93rem; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.menu-btn { display: none; }
@media (max-width: 899px) {
  .top .wrap { position: relative; }
  .top .btn { display: none; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh); cursor: pointer; padding: 0; flex: none; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top nav { position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 6px); flex-direction: column; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .top nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .top nav a { display: block; padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .top nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
}
/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(43, 107, 243, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(43, 107, 243, .7); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 2px 8px rgba(18, 23, 33, .04); }
.btn-ghost:hover { border-color: rgba(43, 107, 243, .35); color: var(--blue); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn .arrow { transition: transform .25s var(--ease); } .btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (min-width: 600px) { .btn-row { flex-direction: row; align-items: center; } }
/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .float, .plan li, .bob { transition: none !important; animation: none !important; } }
/* sfondi */
.glow { position: relative; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.glow::before { width: 520px; height: 520px; left: -200px; top: -160px; background: radial-gradient(circle, rgba(43,107,243,.28), transparent 65%); }
.glow::after { width: 520px; height: 520px; right: -220px; bottom: -200px; background: radial-gradient(circle, rgba(239,91,138,.18), transparent 65%); }
.glow > * { position: relative; }
/* hero */
.hero { padding: clamp(28px, 7vw, 80px) 0 clamp(32px, 6vw, 56px); }
.hero .pill { margin-bottom: 20px; }
.hero .lead { margin: 18px 0 26px; font-size: 1.15rem; }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.hero .ticks li { display: flex; align-items: center; gap: 7px; }
.hero .ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fb8ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; flex: none; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }
.hero-photo { position: relative; margin: 8px auto 0; width: min(100%, 360px); }
.hero-photo::before { content: ""; position: absolute; inset: 12% -8% -6% -8%; border-radius: 40%; background: var(--grad); filter: blur(46px); opacity: .28; z-index: 0; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--r); box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.7); }
.hero-photo figcaption { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: grid; gap: 1px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--sh); }
.hero-photo figcaption strong { font-family: var(--head); font-weight: 700; font-size: .95rem; color: var(--ink); }
.hero-photo figcaption span { font-size: .78rem; color: var(--ink-3); }
@media (min-width: 900px) { .hero-photo { width: min(100%, 420px); margin: 0 0 0 auto; } }
/* icone */
.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; }
.ic.blue { background: var(--blue-soft); color: var(--blue); } .ic.violet { background: var(--violet-soft); color: var(--violet); } .ic.teal { background: var(--teal-soft); color: #159a90; } .ic.rose { background: var(--rose-soft); color: var(--rose); } .ic.amber { background: var(--amber-soft); color: #d97706; } .ic.grad { background: var(--grad); color: #fff; }
/* fatti */
.facts { display: grid; gap: 12px; padding-top: 22px; }
.fact { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; box-shadow: var(--sh); }
.fact strong { display: block; font-family: var(--head); font-weight: 600; } .fact span { color: var(--ink-3); font-size: .88rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* sezioni */
.sec { padding: clamp(44px, 6.5vw, 72px) 0; }
.sec.has-bridge { padding-bottom: clamp(20px, 3vw, 28px); }
.sec.alt { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.sec-head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 36px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .pill { margin-bottom: 16px; }
.bridge { margin: clamp(36px, 6vw, 52px) auto 0; text-align: center; max-width: 34em; }
.bridge p { font-family: var(--head); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0 0 12px; }
.bridge .bob { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--sh); color: var(--blue); animation: bob 2.2s ease-in-out infinite; }
.bridge .bob svg { width: 18px; height: 18px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
/* card */
.cards { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(18,23,33,.04), 0 26px 50px -20px rgba(43,107,243,.28); }
.card .ic { margin-bottom: 16px; } .card h3 { margin-bottom: 6px; } .card p { color: var(--ink-2); font-size: .97rem; }
.card .tag { display: block; font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
@media (min-width: 760px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
/* metodo */
.steps { display: grid; gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step .tile { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(43,107,243,.6); }
.step .tile svg { width: 24px; height: 24px; }
.step .tile b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: var(--ink); font-family: var(--head); font-size: .72rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(18,23,33,.12); }
.step:nth-child(2) .tile { background: linear-gradient(135deg, var(--blue), var(--teal)); } .step:nth-child(3) .tile { background: linear-gradient(135deg, var(--violet), var(--rose)); } .step:nth-child(4) .tile { background: linear-gradient(135deg, var(--teal), var(--blue)); } .step:nth-child(5) .tile { background: linear-gradient(135deg, var(--rose), var(--violet)); } .step:nth-child(6) .tile { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.step h3 { margin: 2px 0 4px; } .step .sum { color: var(--ink-2); margin: 0; font-size: .97rem; }
.step details { margin-top: 8px; }
.step summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.step summary::-webkit-details-marker { display: none; }
.step summary::after { content: "+"; font-size: 1.1rem; line-height: 1; transition: transform .25s var(--ease); }
.step details[open] summary::after { transform: rotate(45deg); }
.step details p { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 18px; } }
.duo { display: grid; gap: 16px; margin-top: clamp(32px, 6vw, 52px); }
.duo .card.me { background: var(--grad); color: #fff; border: 0; }
.duo .card.me h3, .duo .card.me p { color: #fff; } .duo .card.me p { color: rgba(255,255,255,.85); } .duo .card.me .ic { background: rgba(255,255,255,.18); color: #fff; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
/* programma */
.stack { display: grid; gap: 12px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; box-shadow: var(--sh); }
.row .ic { width: 44px; height: 44px; border-radius: 12px; } .row .ic svg { width: 20px; height: 20px; }
.row strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.02rem; } .row span { color: var(--ink-3); font-size: .9rem; }
.row.bonus strong::after { content: "Incluso"; margin-left: 8px; font-family: var(--body); font-size: .68rem; font-weight: 700; color: #0f8f86; background: var(--teal-soft); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
@media (min-width: 900px) { .stack { grid-template-columns: 1fr 1fr; gap: 14px; } }
.terms { margin-top: 22px; padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.terms strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.12rem; margin-bottom: 4px; } .terms p { color: var(--ink-2); font-size: .95rem; }
.index { margin-top: clamp(36px, 6vw, 56px); display: grid; gap: 22px; }
.index ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: i; }
.index li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: .95rem; color: var(--ink-2); counter-increment: i; }
.index li::before { content: counter(i, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: .8rem; color: var(--violet); }
@media (min-width: 900px) { .index { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
/* percorsi */
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } .path.primary { transform: translateY(-8px); } }
@media (min-width: 760px) { .commit { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* casi */
/* chi sono */
.about { display: grid; gap: 28px; }
.about .photo { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; box-shadow: var(--sh-lg); }
.about .proof ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.about .proof li { display: flex; gap: 10px; align-items: flex-start; } .about .proof li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: none; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr .75fr; gap: 64px; align-items: start; } .about .photo { order: 2; } }
/* domande */
.qa { display: grid; gap: 10px; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 20px; box-shadow: var(--sh); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--head); font-size: 1.05rem; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-family: var(--body); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; animation: fade .35s var(--ease); font-size: .97rem; }
.qa-group { font-size: .8rem; color: var(--ink-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 22px 0 4px; } .qa-group:first-child { margin-top: 0; }
/* finale */
.final .panel { border-radius: 28px; padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 56px); background: var(--card); position: relative; overflow: hidden; text-align: center; box-shadow: var(--sh-lg); }
.final .panel::before { content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 2px; background: var(--grad-line); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.final .panel .glow-a, .final .panel .glow-b { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.final .panel .glow-a { left: -160px; top: -140px; background: radial-gradient(circle, rgba(43,107,243,.35), transparent 65%); }
.final .panel .glow-b { right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(239,91,138,.28), transparent 65%); }
.final .panel > * { position: relative; }
.final h2 { font-size: clamp(2rem, 7vw, 3.2rem); } .final .lead { margin: 0 auto 26px; }
.final .steps-list { list-style: none; margin: 26px auto 0; padding: 0; display: grid; gap: 10px; max-width: 560px; text-align: left; counter-reset: s; }
.final .steps-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: .95rem; counter-increment: s; align-items: start; }
.final .steps-list li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: .8rem; font-weight: 700; }
.final .who { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; background: var(--bg); border-radius: 14px; padding: 8px 16px 8px 8px; text-align: left; }
.final .who img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; object-position: 50% 20%; }
.final .who strong { display: block; font-family: var(--head); font-weight: 600; font-size: .95rem; } .final .who span { font-size: .82rem; color: var(--ink-3); }
/* footer */
/* footer */
.site-foot { margin-top: clamp(24px, 4vw, 40px); padding: clamp(36px, 6vw, 56px) 0 clamp(96px, 10vw, 48px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #ffffff); font-size: .92rem; color: var(--ink-3); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { margin: 14px 0 16px; max-width: 34em; color: var(--ink-2); }
.foot-brand .wordmark { display: inline-flex; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-h { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.foot-col a, .foot-col .linkbtn { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; width: fit-content; }
.foot-col a:hover, .foot-col .linkbtn:hover { color: var(--blue); }
.foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--ink-3); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } .site-foot { padding-bottom: 48px; } }
@media (max-width: 759px) { .site-foot { padding-bottom: 100px; } }
@media (min-width: 760px) { footer { padding-bottom: 32px; } footer .wrap { grid-template-columns: 1fr auto; align-items: center; } footer .legal { grid-column: 1 / -1; } }
/* CTA fissa */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 247, 251, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: none; } .sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } }
/* check */
.modal { position: fixed; inset: 0; z-index: 130; background: rgba(18, 23, 33, .45); display: grid; place-items: end center; padding: 0; overflow-y: auto; }
.modal-box { width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom)); position: relative; animation: up .35s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .modal { place-items: center; padding: 20px; } .modal-box { border-radius: 24px; max-height: calc(100vh - 40px); padding: 32px; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal h2 { font-size: 1.6rem; margin-right: 44px; }
.q { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.q p { margin: 0; font-weight: 500; font-size: .97rem; } .q .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.q label { cursor: pointer; position: relative; } .q input { position: absolute; opacity: 0; }
.q label span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--card); transition: background .15s, color .15s, border-color .15s; }
.q input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.q input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.result h3 { font-size: 1.3rem; }
.area-row { padding: 14px 0; border-top: 1px solid var(--line); }
.area-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; } .area-head span { color: var(--blue); font-size: .85rem; font-weight: 700; }
.area-row p { margin: 4px 0 0; color: var(--ink-2); font-size: .94rem; }
.note { font-size: .86rem; color: var(--ink-3); margin-top: 18px; }
/* pagine secondarie */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.cta-micro { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-3); } .cta-micro span::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.prose { max-width: 720px; } .prose h2 { margin-top: 2em; font-size: 1.5rem; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.fp-foot { text-align: center; font-size: .86rem; color: var(--ink-3); padding: 0 var(--pad) 40px; } .fp-foot a { color: var(--blue); }

/* esito del check */
.rcard { display: grid; gap: 12px; margin-top: 18px; }
.rblock { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; box-shadow: var(--sh); }
.rk { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.rblock p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.rblock p b { color: var(--ink); font-weight: 700; }
.rcta { margin-top: 22px; padding: 22px; border-radius: var(--r); background: var(--grad); color: #fff; display: grid; gap: 8px; }
.rcta strong { font-family: var(--head); font-size: 1.15rem; font-weight: 700; } .rcta p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; }
.rcta .btn { justify-self: start; background: #fff; color: var(--blue); box-shadow: none; margin-top: 6px; }

/* il documento (03) */
.doc-wrap { margin-top: clamp(32px, 6vw, 52px); position: relative; padding: 0 0 18px; }
.doc-wrap::before, .doc-wrap::after { content: ""; position: absolute; inset: 10px 10px -8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; z-index: 0; transform: rotate(-1.4deg); opacity: .8; }
.doc-wrap::after { transform: rotate(1.1deg); inset: 6px 6px -4px 6px; opacity: .9; }
.doc { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(18,23,33,.25), var(--sh); overflow: hidden; }
.doc-head { padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 36px) 20px; background: var(--grad); color: #fff; }
.doc-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.doc-head h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(1.25rem, 3.6vw, 1.7rem); line-height: 1.15; color: #fff; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .8rem; opacity: .85; }
.doc-body { padding: clamp(18px, 4vw, 30px) clamp(20px, 4vw, 36px); }
.doc-label { display: block; font-family: var(--head); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; }
.toc li { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.toc li:last-child { border-bottom: 0; }
.toc .n { font-family: var(--head); font-weight: 700; font-size: .78rem; color: var(--violet); }
.toc .t { color: var(--ink); font-weight: 500; }
.toc .pg { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.doc-foot { display: flex; justify-content: space-between; padding: 12px clamp(20px, 4vw, 36px); border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-3); }
.chapters-lead { text-align: center; font-family: var(--head); font-weight: 600; font-size: 1.15rem; margin: clamp(36px, 6vw, 56px) 0 18px; }
.chapters { display: grid; gap: 10px; }
.chap { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; box-shadow: var(--sh); }
.chap .n { font-family: var(--head); font-weight: 700; font-size: .8rem; color: var(--violet); padding-top: 3px; }
.chap strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.chap p { margin: 0; color: var(--ink-3); font-size: .9rem; }
@media (min-width: 760px) { .chapters { grid-template-columns: 1fr 1fr; gap: 12px; } .toc li { font-size: .98rem; } }

/* l'obiezione (02) */
.verdict { margin-top: 18px; display: grid; gap: 14px; }
.verdict-main { background: var(--ink); color: #fff; border-radius: var(--r); padding: clamp(24px, 4vw, 36px); }
.verdict-main .tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fc0ff; margin-bottom: 10px; }
.verdict-main h3 { color: #fff; font-size: clamp(1.25rem, 3.4vw, 1.6rem); line-height: 1.2; margin: 0 0 12px; }
.verdict-main p { margin: 0; color: rgba(255,255,255,.8); font-size: .97rem; max-width: 62ch; }
.verdict-side { display: grid; gap: 10px; }
.verdict-side > div { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; box-shadow: var(--sh); }
.verdict-side .ic { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; } .verdict-side .ic svg { width: 16px; height: 16px; }
.verdict-side p { margin: 0; font-size: .92rem; color: var(--ink-3); } .verdict-side strong { color: var(--ink); font-weight: 600; }


/* pagina protezione dei dati */
.pd-hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.4rem); }
.pd-hero .cards { margin-top: clamp(24px, 4vw, 40px); }
.card.link { display: block; text-decoration: none; color: inherit; }
.card.link .tag { color: var(--violet); }
.card.link:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.pd-why { margin-top: clamp(36px, 6vw, 56px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 34px); box-shadow: var(--sh); }
.pd-why h3 { margin: 0 0 16px; font-size: 1.3rem; }
.pd-why-grid { display: grid; gap: 16px; }
.pd-why-grid strong { display: block; font-family: var(--head); font-weight: 600; margin-bottom: 4px; }
.pd-why-grid p { margin: 0; color: var(--ink-3); font-size: .93rem; }
@media (min-width: 760px) { .pd-why-grid { grid-template-columns: 1fr 1fr; gap: 20px 28px; } }
.mask { display: grid; gap: 14px; align-items: stretch; }
.mask-label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.mask-label .dot { width: 10px; height: 10px; border-radius: 50%; } .dot.rose { background: var(--rose); } .dot.teal { background: var(--teal); }
.mask-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 20px 22px; box-shadow: var(--sh); font-size: 1rem; line-height: 1.7; color: var(--ink-2); height: calc(100% - 28px); }
.mask-box mark { border-radius: 6px; padding: 1px 6px; font-weight: 600; color: var(--ink); }
.mask mark.m1 { background: #ffe1ea; } .mask mark.m2 { background: #e6dcff; } .mask mark.m3 { background: #dbe8ff; } .mask mark.m4 { background: #fff0cc; } .mask mark.m5 { background: #d6f5f2; }
.mask-col:last-child .mask-box mark { background: var(--teal-soft); color: #0f8f86; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.mask-arrow { display: grid; place-items: center; color: var(--blue); } .mask-arrow svg { width: 28px; height: 28px; transform: rotate(90deg); }
@media (min-width: 900px) { .mask { grid-template-columns: 1fr 48px 1fr; } .mask-arrow svg { transform: none; } }
.pd-steps { margin-top: clamp(36px, 6vw, 56px); }
.pd-more { margin-top: clamp(28px, 5vw, 44px); }
.pd-paths .path .tag { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pd-paths .path.primary .tag { color: #fff; opacity: .9; }
.pd-pro, .pd-con { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.pd-pro li, .pd-con li { display: flex; gap: 8px; align-items: flex-start; }
.pd-pro li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: none; }
.pd-con li::before { content: "–"; color: var(--rose); font-weight: 700; flex: none; }
.pd-fit { margin: 14px 0 0; font-size: .9rem; padding-top: 12px; border-top: 1px dashed var(--line); }
.pd-paths + .verdict { margin-top: clamp(28px, 5vw, 44px); }

/* processo d'incarico (05) */
.proc { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: p; }
.proc-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.proc-n { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.1rem; box-shadow: 0 10px 20px -10px rgba(43,107,243,.6); }
.proc-step:nth-child(2) .proc-n { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.proc-step:nth-child(3) .proc-n { background: linear-gradient(135deg, var(--violet), var(--rose)); }
.proc-step:nth-child(4) .proc-n { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.proc-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.proc-step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.proc-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.proc-step .btn { margin-top: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .proc { grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
  .proc::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: var(--grad-line); opacity: .35; }
  .proc-step { grid-template-columns: 1fr; padding: 24px 22px; }
  .proc-step .proc-n { margin-bottom: 14px; }
}

/* card a confronto (pagina protezione dei dati) */
.paths { display: grid; gap: 16px; }
.path { border-radius: var(--r); padding: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); display: grid; gap: 8px; align-content: start; }
.path.primary { background: var(--grad); color: #fff; border: 0; box-shadow: var(--sh-lg); }
.path.primary h3, .path.primary p, .path.primary li { color: #fff; }
.path h3 { font-size: 1.45rem; margin: 0; }
.path p { color: var(--ink-2); font-size: .95rem; margin: 0; } .path.primary p { color: rgba(255,255,255,.88); }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path.primary .pd-pro li::before, .path.primary .pd-con li::before { color: #fff; }
.path.primary .pd-fit { border-top-color: rgba(255,255,255,.3); }

/* progetti diretti: carosello (dalla landing ConsultAI, adattato ai colori del sito) */
.cases-carousel-wrap { position: relative; margin-top: 8px; }
.cases-carousel-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 36px; width: 80px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; z-index: 2; }
.cases-carousel { display: flex; width: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
.cases-carousel::-webkit-scrollbar { display: none; }
.cases-carousel .card.case { flex: 0 0 calc((100% - 40px) / 3); width: calc((100% - 40px) / 3); scroll-snap-align: start; padding: 28px; }
.case .avatar { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 26px; color: #fff; margin-bottom: 18px; }
.av-blue { background: var(--blue); } .av-teal { background: var(--teal); } .av-magenta { background: var(--rose); }
.case h3 { margin-bottom: 4px; }
.case .sector { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.case .typebadge { font-size: 11px; font-weight: 600; padding: 5px 14px; border-radius: 100px; background: transparent; border: 1px solid rgba(43,107,243,.35); color: var(--blue); display: inline-block; margin-bottom: 20px; }
.pd { margin-bottom: 14px; }
.pd .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; }
.pd .v { font-size: 15px; color: var(--ink-2); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(43,107,243,.2); border: none; cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.carousel-dot.active { background: var(--blue); width: 20px; border-radius: 100px; }
@media (max-width: 860px) { .cases-carousel .card.case { flex: 0 0 calc((100% - 20px) / 2); width: calc((100% - 20px) / 2); } }
@media (max-width: 580px) { .cases-carousel .card.case { flex: 0 0 100%; width: 100%; } .cases-carousel-wrap::after { width: 40px; } }

/* mobile: caroselli con anteprima della card successiva e freccia */
.m-carousel { position: relative; }
.m-arrow { display: none; }
@media (max-width: 759px) {
  .m-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0 8px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * { flex: 0 0 82%; width: 82%; scroll-snap-align: start; }
  .m-carousel > *:last-child { margin-right: var(--pad); }
  .m-arrow { display: grid; place-items: center; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--sh-lg); color: var(--ink); z-index: 3; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .m-arrow svg { width: 18px; height: 18px; }
  .m-arrow.gone { opacity: 0; transform: translateY(-50%) translateX(10px); }
  /* indice del Piano: la riga si apre al tocco, la lista sotto sparisce */
  .chapters, .chapters-lead { display: none; }
  .toc li[data-m-toggle] { cursor: pointer; grid-template-columns: 28px 1fr auto; }
  .toc .pg { display: none; }
  .toc li[data-m-toggle]::after { content: "+"; grid-column: 3; color: var(--blue); font-weight: 700; font-size: 1.05rem; line-height: 1; transition: transform .25s var(--ease); }
  .toc li.open::after { transform: rotate(45deg); }
  .toc .toc-d { grid-column: 2 / -1; display: none; color: var(--ink-3); font-size: .88rem; line-height: 1.55; padding-top: 6px; animation: fade .3s var(--ease); }
  .toc li.open .toc-d { display: block; }
}
.toc-d { display: none; }

/* privacy: tabelle e segnaposto */
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: 6px; }
.tablewrap { overflow-x: auto; margin: 12px 0 18px; }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ptable th { font-family: var(--head); font-weight: 600; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); }
.ptable tr:last-child td { border-bottom: 0; }
.todo { background: #fff3cd; color: #7a4d00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.fp-foot .linkbtn { font-size: inherit; font-weight: 500; color: var(--ink-3); text-decoration: none; }

/* banner cookie */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 130; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 18px 18px 16px; display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.consent[hidden] { display: none !important; }
.consent p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.consent strong { font-family: var(--head); font-weight: 700; color: var(--ink); }
.consent .row { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { flex: 1 1 140px; justify-content: center; }
.consent .btn-ghost { box-shadow: none; }
@media (min-width: 760px) { .consent { left: auto; right: 24px; bottom: 24px; } .sticky-cta.show ~ .consent { bottom: 24px; } }
@media (max-width: 759px) { .consent { bottom: 84px; } }

.consent-prefs { display: grid; gap: 8px; }
.consent-prefs label { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.consent-prefs input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.consent .btn { flex: 1 1 120px; padding: 10px 14px; font-size: .9rem; }

/* link nel testo della sezione Chi sono */
.about p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about p a:hover { color: var(--violet); }
