/* Tema Darlin — chiaro + blu #20384f. Caricato dopo stile.css; vince per specificità. */
html:root {
  --color-bg: #ffffff;
  --color-surface: #f2f5f8;
  --color-text: #14202d;
  --color-divider: rgba(32, 56, 79, 0.16);
  --color-accent: #20384f;
  --color-accent-100: rgba(32, 56, 79, 0.08);
  --color-accent-600: #2c4a68;
  --color-accent-700: #20384f;
  --color-accent-800: #162736;
  --color-neutral-100: #eef2f6;
  --color-neutral-800: #2f4155;
  --radius-md: 12px; --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,32,45,.06), 0 8px 24px rgba(32,56,79,.07);
  --shadow-md: 0 12px 32px rgba(32,56,79,.12);
  --shadow-lg: 0 24px 60px rgba(32,56,79,.18);
}
html { scroll-behavior: smooth; }
html body {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(32,56,79,.09), transparent 60%),
    radial-gradient(700px 400px at -5% 30%, rgba(32,56,79,.04), transparent 60%),
    var(--color-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; gap: 6px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.nav a { padding: 8px 12px; border-radius: 999px; color: rgba(20,32,45,.75); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent) !important; background: rgba(32,56,79,.08); }
.nav a.btn-primary { color: #fff !important; background: var(--color-accent); }
.nav a.btn-primary:hover { background: #2c4a68; }

/* bottoni */
.btn { border-radius: 999px; padding: 12px 22px; font-size: 15px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { background: #2c4a68; box-shadow: 0 8px 30px rgba(32,56,79,.3); }
.btn-secondary { border-color: rgba(32,56,79,.35); color: var(--color-text); }
.btn-ghost { border: 1px solid rgba(32,56,79,.4); padding-inline: 22px; }

/* card & tag */
.card {
  background: linear-gradient(160deg, #ffffff, #f6f8fb);
  border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(32,56,79,.5); }
.card-body { font-size: 15px; opacity: .78; }
.tag { border-radius: 999px; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent); }

/* form */
.input { background: #fff; border-radius: var(--radius-md); color: var(--color-text); }
.input:focus-visible { box-shadow: 0 0 0 3px rgba(32,56,79,.2); }

/* componenti home */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px; border: 1px solid rgba(32,56,79,.3); border-radius: 999px;
  font-size: 13px; letter-spacing: .04em; color: var(--color-accent); background: rgba(32,56,79,.06);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 10px rgba(32,56,79,.4); }
.hl { color: var(--color-accent); position: relative; }
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40px -10vw; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--color-divider) 1px, transparent 1px), linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000, transparent 75%);
}
.panel {
  border: 1px solid var(--color-divider); border-radius: 24px; padding: 22px;
  background: linear-gradient(160deg, #ffffff, #f3f6f9);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.flow { display: grid; gap: 12px; }
.flow-step {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--color-divider); border-radius: 14px; background: #fff;
  animation: rise .6s both;
}
.flow-step:nth-child(2) { animation-delay: .15s; } .flow-step:nth-child(3) { animation-delay: .3s; } .flow-step:nth-child(4) { animation-delay: .45s; }
.flow-step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--color-accent); color: #fff; font-size: 14px; }
.flow-step span { font-size: 15px; font-weight: 600; }
.flow-step small { display: block; font-weight: 400; font-size: 12.5px; opacity: .6; }
.flow-step.done b { background: transparent; border: 1px solid var(--color-accent); color: var(--color-accent); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sec-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 36px; max-width: 22ch; }
.cta-band {
  margin: 40px clamp(12px, 3vw, 40px); border-radius: 32px; color: #fff; background:
    radial-gradient(600px 300px at 90% 0, rgba(255,255,255,.18), transparent 60%), var(--color-accent);
}
footer { border-top: 1px solid var(--color-divider); }
@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr !important; }
  .nav a:not(.btn) { display: none; }
}

/* ═══ v3 — più vivo e leggibile ═══ */
html:root {
  --warm: #ff7a3d;
  --warm-soft: #fff0e8;
  --sky: #e8f1fa;
  --color-text: #0f1b27;
}
html body { font-size: 17px; line-height: 1.6; }
html body p { color: #34475a; }
.card-body { font-size: 16.5px; opacity: 1; color: #3a4d60; }
.card-title { color: #0f1b27; }

/* titolo hero più equilibrato, evidenziatore caldo */
.hero h1 { font-size: clamp(38px, 4.8vw, 62px) !important; max-width: 17ch; text-wrap: balance; }
.hl { color: var(--color-accent); background: linear-gradient(transparent 62%, rgba(255,122,61,.38) 62% 92%, transparent 92%); padding: 0 .08em; }
.hero p { font-size: 20px !important; color: #34475a !important; }
.eyebrow { color: #20384f; background: var(--warm-soft); border-color: rgba(255,122,61,.45); font-weight: 600; font-size: 13.5px; }
.eyebrow::before { background: var(--warm); box-shadow: 0 0 0 4px rgba(255,122,61,.22); }

/* sfondo hero: blob colorati morbidi */
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -8vw; top: -30px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,122,61,.28), rgba(32,56,79,.16) 55%, transparent 70%); filter: blur(30px);
}
.hero::before { opacity: .9; background-image: linear-gradient(rgba(32,56,79,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(32,56,79,.07) 1px, transparent 1px); }

/* pannello più vivo */
.panel { border: 0; background: #fff; box-shadow: 0 30px 70px rgba(32,56,79,.22), 0 0 0 1px rgba(32,56,79,.08); transform: rotate(1.2deg); }
.flow-step { background: #f6f9fc; border-color: rgba(32,56,79,.1); }
.flow-step b { background: var(--color-accent); }
.flow-step:nth-child(3) b { background: var(--warm); }
.flow-step.done b { background: #1fa971; border-color: #1fa971; color: #fff; }
.flow-step span { color: #0f1b27; font-size: 16px; }
.flow-step small { opacity: 1; color: #5a6e82; }

/* fasce di colore alternate */
.band { background: linear-gradient(180deg, var(--sky), #f7fafd); border-block: 1px solid rgba(32,56,79,.08); }
.band-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,5vw,72px); }

/* sezioni */
.sec-title { color: #0f1b27; font-size: clamp(30px, 3.8vw, 46px); text-wrap: balance; }
.card { box-shadow: 0 10px 30px rgba(32,56,79,.08); }
.card:hover { box-shadow: 0 20px 50px rgba(32,56,79,.16); }
.tag-accent { background: var(--warm-soft); color: #b8480f; font-weight: 700; }
.card a[href]:not(.btn) { color: var(--color-accent); }
.card a[href]:not(.btn):hover { color: var(--warm); }

/* immagine con cornice e badge */
.photo { position: relative; }
.photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 22px; background: linear-gradient(135deg, var(--color-accent), #3b82c4); z-index: -1; }
.photo figure { border: 0 !important; box-shadow: 0 24px 60px rgba(32,56,79,.25); }
.photo .badge { position: absolute; left: -14px; bottom: 28px; background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px; color: #0f1b27; box-shadow: 0 12px 30px rgba(32,56,79,.2); display: flex; gap: 10px; align-items: center; }
.photo .badge i { width: 10px; height: 10px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 4px rgba(31,169,113,.2); }

/* CTA più ricco */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #162b3e, #20384f 55%, #2f5577); margin-inline: clamp(12px,3vw,40px); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 380px; height: 380px; right: -90px; top: -140px; background: rgba(255,122,61,.35); filter: blur(10px); }
.cta-band::after { width: 260px; height: 260px; left: 38%; bottom: -150px; background: rgba(255,255,255,.1); }
.cta-band > div { position: relative; z-index: 1; }
.cta-band a.btn { background: var(--warm) !important; color: #fff !important; box-shadow: 0 10px 30px rgba(255,122,61,.45); }
.cta-band a.btn:hover { background: #ff8f5c !important; }
footer, footer span, footer a { font-size: 14.5px !important; color: #3a4d60; }
html body > div:last-of-type a { font-size: 14px; }
@media (max-width: 820px) { .panel { transform: none; } .photo::before { display: none; } }

/* ═══ pagine interne ═══ */
html body section > span[style*="uppercase"], html body div > span[style*="uppercase"] {
  display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--warm-soft); border: 1px solid rgba(255,122,61,.45); color: #20384f !important;
  font-weight: 600; font-size: 13.5px !important; letter-spacing: .04em !important;
}
html body section > span[style*="uppercase"]::before, html body div > span[style*="uppercase"]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warm);
}
html body h1[style] { font-size: clamp(36px, 4.6vw, 58px) !important; text-wrap: balance; color: #0f1b27; }
html body h2[style], html body h3[style] { color: #0f1b27; }
html body p[style*="font-size:15"], html body p[style*="font-size:14"] { font-size: 16.5px !important; line-height: 1.65 !important; color: #3a4d60 !important; }
html body p[style*="font-size:18"] { color: #34475a !important; }
html body p[style*="font-family:var(--font-heading)"][style*="font-size:15px"] {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--warm-soft); color: #b8480f !important; font-size: 15px !important;
}
.card-title { font-size: 20px !important; }
.card .card-body { font-size: 16px; }
.hr { background: rgba(32,56,79,.12); height: 1px; }
html body section[style*="grid-template-columns"] h2[style] { color: #0f1b27; }
html body a[href^="./"]:not(.btn):not(.nav a) { font-weight: 600; text-decoration-color: rgba(255,122,61,.7); text-decoration-thickness: 2px; }
.nav a { font-weight: 500; font-size: 15px; }
.num { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warm-soft); color: #b8480f !important; font-size: 15px !important; }
.card .card-body { font-size: 16px !important; line-height: 1.6; }
.card .card-title { font-size: 20px !important; }
.card[style*="padding:16px"] { padding: 24px !important; }
.nav a.btn-primary, .nav a.btn-primary[aria-current='page'] { color: #fff !important; background: var(--color-accent) !important; }
.nav a.btn-primary:hover { background: #2c4a68 !important; }
section[style*="neutral-100"] { border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--sky), #fff7f1) !important; padding-inline: 32px !important; }
html body .cta-band h3, html body .cta-band h3[style] { color: #fff !important; }

/* ═══ pannello percorso: dritto + animato ═══ */
.panel { transform: none !important; position: relative; animation: float 6s ease-in-out infinite; }
.panel::after {
  content: ""; display: block; height: 4px; margin-top: 20px; border-radius: 4px;
  background: linear-gradient(90deg, var(--warm), var(--color-accent)) no-repeat, rgba(32,56,79,.1);
  background-size: 0% 100%, 100% 100%; animation: progress 8s linear infinite;
}
.flow-step { transition: none; animation: rise .6s both, pulse 8s ease-in-out infinite; }
.flow-step:nth-child(1) { animation-delay: 0s, .8s; }
.flow-step:nth-child(2) { animation-delay: .15s, 2.8s; }
.flow-step:nth-child(3) { animation-delay: .3s, 4.8s; }
.flow-step:nth-child(4) { animation-delay: .45s, 6.8s; }
.flow-step b { animation: chip 8s ease-in-out infinite; animation-delay: inherit; }
.flow-step:nth-child(1) b { animation-delay: .8s; } .flow-step:nth-child(2) b { animation-delay: 2.8s; }
.flow-step:nth-child(3) b { animation-delay: 4.8s; } .flow-step:nth-child(4) b { animation-delay: 6.8s; }
@keyframes pulse {
  0%, 26%, 100% { transform: none; background: #f6f9fc; border-color: rgba(32,56,79,.1); box-shadow: none; }
  4%, 22% { transform: translateX(8px); background: #fff; border-color: var(--warm); box-shadow: 0 10px 26px rgba(255,122,61,.22); }
}
@keyframes chip { 0%, 26%, 100% { transform: scale(1); } 4%, 22% { transform: scale(1.15) rotate(-6deg); } }
@keyframes progress { from { background-size: 0% 100%, 100% 100%; } to { background-size: 100% 100%, 100% 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0) !important; } 50% { transform: translateY(-8px) !important; } }
@media (prefers-reduced-motion: reduce) { .panel, .panel::after, .flow-step, .flow-step b { animation: none !important; } }

/* ═══ due percorsi ═══ */
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #eef2f6; margin-bottom: 18px; }
.tab-labels label { cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #4a5d70; transition: background .2s, color .2s; }
#t1:checked ~ .tab-labels label[for="t1"], #t2:checked ~ .tab-labels label[for="t2"] { background: var(--color-accent); color: #fff; box-shadow: 0 4px 12px rgba(32,56,79,.3); }
#t1:focus-visible ~ .tab-labels label[for="t1"], #t2:focus-visible ~ .tab-labels label[for="t2"] { outline: 2px solid var(--warm); outline-offset: 2px; }
.tabs .pane { display: none; }
#t1:checked ~ .p1, #t2:checked ~ .p2 { display: grid; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.path { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 36px; border-radius: 28px; background: #fff; border: 1px solid rgba(32,56,79,.12); box-shadow: 0 16px 44px rgba(32,56,79,.1); transition: transform .25s, box-shadow .25s; }
.path:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(32,56,79,.18); }
.path.alt { background: linear-gradient(150deg, #20384f, #2f5577); color: #fff; border: 0; }
.path.alt h3, .path.alt p, .path.alt li { color: #fff !important; }
.path h3 { font-family: var(--font-heading); font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 6px 0 0; color: #0f1b27; }
.path .kicker { align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--warm-soft); color: #b8480f; }
.path.alt .kicker { background: rgba(255,255,255,.16); color: #ffd2bb; }
.path ul { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 10px; }
.path li { position: relative; padding-left: 28px; font-size: 16.5px; color: #34475a; }
.path li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--color-accent); color: #fff; }
.path.alt li::before { background: var(--warm); }
.path .go { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--color-accent); }
.path.alt .go { color: #ffd2bb; }
.path .go:hover { color: var(--warm); }

.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.svc .card { padding: 26px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--sky); color: var(--color-accent); }
.svc .card:nth-child(2) .ico { background: var(--warm-soft); color: #d65a1c; }
.ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.mini span { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(32,56,79,.1); font-weight: 700; font-size: 14px; color: #0f1b27; }
.mini em { font-style: normal; color: var(--warm); font-weight: 800; }

.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; counter-reset: ph; }
.phase { counter-increment: ph; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid rgba(32,56,79,.12); box-shadow: 0 8px 24px rgba(32,56,79,.07); }
.phase::before { content: counter(ph); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px; background: var(--color-accent); color: #fff; font-weight: 800; }
.phase:nth-child(odd)::before { background: var(--warm); }
.phase h4 { font-size: 19px; margin: 0 0 6px; color: #0f1b27; }
.phase p { margin: 0; font-size: 15.5px; }
.anchor { scroll-margin-top: 90px; }

/* tab: percorso 1 di default, percorso 2 se selezionato */
.tabs .p1 { display: grid; } .tabs .p2 { display: none; }
#t2:checked ~ .p1 { display: none; } #t2:checked ~ .p2 { display: grid; }
.tab-labels label[for="t1"] { background: var(--color-accent); color: #fff; box-shadow: 0 4px 12px rgba(32,56,79,.3); }
#t2:checked ~ .tab-labels label[for="t1"] { background: transparent; color: #4a5d70; box-shadow: none; }
.tab-labels label { white-space: nowrap; }

/* ═══ pagina servizi unificata ═══ */
details.audit { margin-top: 22px; border: 1px solid rgba(32,56,79,.14); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(32,56,79,.07); overflow: hidden; }
details.audit summary { cursor: pointer; list-style: none; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 18px; color: #0f1b27; }
details.audit summary::-webkit-details-marker { display: none; }
details.audit summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--warm-soft); color: #d65a1c; font-size: 20px; transition: transform .2s; }
details.audit[open] summary::after { transform: rotate(45deg); }
.audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid rgba(32,56,79,.1); }
.audit-grid div { padding: 18px 26px; border-bottom: 1px solid rgba(32,56,79,.08); }
.audit-grid b { display: block; font-size: 15px; color: #0f1b27; margin-bottom: 4px; }
.audit-grid b i { font-style: normal; color: var(--warm); margin-right: 6px; }
.audit-grid p { margin: 0; font-size: 15px; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 28px; padding: 26px 30px; border-radius: 24px; background: linear-gradient(120deg, #20384f, #2f5577); color: #fff; }
.callout h3 { margin: 0 0 6px; font-size: 22px; color: #fff !important; }
.callout p { margin: 0; color: #dfe9f2 !important; font-size: 16.5px; }
.callout .ico { margin: 0; background: rgba(255,255,255,.14); color: #fff; width: 56px; height: 56px; }

/* ═══ chi siamo ═══ */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.member { text-align: left; }
.member .role { color: #b8480f; font-weight: 700; font-size: 14.5px; margin: 2px 0 12px; }
.values { display: grid; gap: 18px; }
.value { display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: start; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid rgba(32,56,79,.12); box-shadow: 0 8px 24px rgba(32,56,79,.07); }
.value .n { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; background: linear-gradient(135deg, var(--color-accent), #3b82c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value:nth-child(2) .n { background-image: linear-gradient(135deg, var(--warm), #ffb347); }
.value h3 { margin: 0 0 6px; font-size: 22px; color: #0f1b27; }
.value p { margin: 0; font-size: 16.5px; }
.fact { padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(32,56,79,.08); }
.fact b { display: block; font-size: 18px; color: #0f1b27; margin-bottom: 4px; }
.fact span { font-size: 15.5px; color: #3a4d60; }
@media (max-width: 600px) { .value { grid-template-columns: 1fr; } }

/* ═══ faq ═══ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid rgba(32,56,79,.14); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(32,56,79,.06); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(255,122,61,.5); box-shadow: 0 12px 30px rgba(32,56,79,.12); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 18px; color: #0f1b27; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--warm-soft); color: #d65a1c; font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 24px 22px; font-size: 16.5px; line-height: 1.65; max-width: 70ch; }

/* ═══ hero servizi ═══ */
.svc-hero { padding: 56px 0 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.choices { display: grid; gap: 14px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid rgba(32,56,79,.14); box-shadow: 0 10px 28px rgba(32,56,79,.1); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.choice:hover { transform: translateX(6px); border-color: var(--warm); box-shadow: 0 16px 38px rgba(32,56,79,.16); }
.choice .num { flex: none; }
.choice b { display: block; font-size: 19px; color: #0f1b27; margin-bottom: 2px; }
.choice span { font-size: 15.5px; color: #3a4d60; }
.choice i { font-style: normal; font-size: 22px; color: var(--warm); font-weight: 800; }
.choice.alt { background: linear-gradient(140deg, #20384f, #2f5577); border: 0; }
.choice.alt b, .choice.alt span { color: #fff; }
.choice.alt .num { background: rgba(255,255,255,.16); color: #ffd2bb !important; }
@media (max-width: 820px) { .svc-hero { grid-template-columns: 1fr; padding-top: 36px; } }

/* ═══ i due percorsi hanno lo stesso peso ═══ */
.choice.alt { background: #fff; border: 1px solid rgba(32,56,79,.14); }
.choice.alt b { color: #0f1b27; } .choice.alt span { color: #3a4d60; }
.choice.alt .num { background: var(--warm-soft); color: #b8480f !important; }
.path.alt { background: #fff; color: inherit; border: 1px solid rgba(32,56,79,.12); }
.path.alt h3 { color: #0f1b27 !important; }
.path.alt p, .path.alt li { color: #34475a !important; }
.path.alt .kicker { background: var(--warm-soft); color: #b8480f; }
.path.alt li::before { background: var(--color-accent); }
.path.alt .go { color: var(--color-accent); }
.path.alt .go:hover { color: var(--warm); }

/* ═══ pulsanti primari: stesso stile ovunque, testo sempre bianco ═══ */
html .btn-primary, html a.btn-primary, html .nav a.btn-primary,
html a.btn-primary:hover, html a.btn-primary:focus, html a.btn-primary:active,
html .nav a.btn-primary:hover, html .nav a.btn-primary[aria-current='page'] {
  color: #fff !important; font-weight: 800; font-size: 15px;
}
html .nav a.btn-primary { padding: 12px 22px; }

/* ═══ tendina "Domande Frequenti" ═══ */
details.faq-all { border: 1px solid rgba(32,56,79,.14); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(32,56,79,.1); }
details.faq-all > summary { cursor: pointer; list-style: none; padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; color: #0f1b27; }
details.faq-all > summary::-webkit-details-marker { display: none; }
details.faq-all > summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 26px; font-weight: 400; transition: transform .25s; }
details.faq-all[open] > summary::after { transform: rotate(45deg); background: var(--warm); }
details.faq-all > summary:hover { color: var(--color-accent); }
.faq-body { padding: 0 32px 32px; }
.faq-body .faq { max-width: none; }
@media (max-width: 600px) { details.faq-all > summary { padding: 20px; } .faq-body { padding: 0 16px 20px; } }


/* ═══ pulsanti: movimento ripristinato (sollevamento + alone) ═══ */
html .btn:hover { transform: translateY(-2px) !important; }
html .btn-primary:hover { box-shadow: 0 8px 30px rgba(32,56,79,.3) !important; }
html .cta-band a.btn:hover { box-shadow: 0 10px 30px rgba(255,122,61,.45) !important; }

/* ═══ rettangoli: stesso comportamento al passaggio del mouse ═══ */
.card, .phase, .choice, .path, .choice.alt, .path.alt { transition: transform .2s, box-shadow .2s, border-color .2s; }
html .card:hover, html .phase:hover, html .choice:hover, html .choice.alt:hover, html .path:hover, html .path.alt:hover {
  transform: translateY(-5px) !important;
  border-color: var(--warm) !important;
  box-shadow: 0 20px 48px rgba(32,56,79,.16);
}

/* ═══ pulsanti secondari: stessa reazione dei primari ═══ */
html a.btn-secondary, html a.btn-ghost { color: var(--color-text); }
html a.btn-secondary:hover, html a.btn-secondary:focus-visible, html a.btn-ghost:hover, html a.btn-ghost:focus-visible {
  background: var(--color-accent) !important; border-color: var(--color-accent) !important; color: #fff !important;
  box-shadow: 0 8px 30px rgba(32,56,79,.3) !important;
}

/* ═══ dimensioni pulsanti identiche in ogni stato: nessun spostamento dei vicini ═══ */
html a.btn, html a.btn:hover, html a.btn:focus, html a.btn:active, html button.btn, html button.btn:hover {
  font-size: 15px !important; font-weight: 800 !important; letter-spacing: normal !important; line-height: 1.2 !important;
  padding: 12px 22px !important;
}

/* ═══ pulsanti bianchi: restano bianchi, cambia solo il bordo ═══ */
html a.btn-secondary:hover, html a.btn-secondary:focus-visible, html a.btn-ghost:hover, html a.btn-ghost:focus-visible {
  background: #fff !important; color: var(--color-text) !important;
  border-color: var(--color-accent) !important; box-shadow: 0 8px 24px rgba(32,56,79,.16) !important;
}

/* ═══ card percorsi: tutta l'area è cliccabile (il link resta visibile) ═══ */
.path { cursor: pointer; }
.path .go::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.path .go:focus-visible { outline: none; }
.path .go:focus-visible::after { outline: 2px solid var(--warm); outline-offset: 3px; }

/* frecce nei pulsanti: icone disegnate, non caratteri */
.btn .arr { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ sezione "Come lavoriamo" (home) ═══ */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: 40px 0 96px; }
.how-photo { margin: 0; }
.how-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; display: block; }
.how-photo figcaption { margin-top: 12px; font-size: 14px; color: #5a6e82; }
.how h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; color: #0f1b27; text-wrap: balance; }
.track { margin: 0 0 30px; }
.track h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 14px; }
.track ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.track ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--color-accent), rgba(32,56,79,.15)); }
.track li { position: relative; padding-left: 36px; font-size: 17px; color: #34475a; }
.track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--color-accent); }
.track li:last-child::before { background: var(--warm); border-color: var(--warm); }
.track li b { color: #0f1b27; font-weight: 700; }
.track.two h3 { color: #d65a1c; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how-photo img { aspect-ratio: 4 / 3; } }
.how-photo img { aspect-ratio: 1 / 1; object-position: 38% center; }

/* etichetta sulla foto */
.how-photo { position: relative; }
.how-photo .badge { position: absolute; left: 16px; bottom: 56px; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: #0f1b27; box-shadow: 0 10px 28px rgba(15,27,39,.22); }
.how-photo .badge i { width: 10px; height: 10px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 4px rgba(31,169,113,.22); }

/* "Come lavoriamo": solo qui niente arancione sparso, tutto blu */
.how .track li:last-child::before { background: var(--color-accent); border-color: var(--color-accent); }
.how .track.two h3 { color: var(--color-accent); }
.how h2 { margin-bottom: 28px; }
.how .track h3, .how .track.two h3 { color: #d65a1c; }
.svc .card:nth-child(4) .ico { background: var(--warm-soft); color: #d65a1c; }

/* ═══ "+" disegnato con due linee: sempre perfettamente centrato ═══ */
html details.audit summary::after, html .faq summary::after, html details.faq-all > summary::after {
  content: "" !important; font-size: 0 !important; line-height: 0;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor) !important;
  background-repeat: no-repeat !important; background-position: center !important;
  background-size: 14px 2.5px, 2.5px 14px !important;
}
html details.faq-all > summary::after { background-size: 18px 3px, 3px 18px !important; }

/* box "formazione": discreto, in tinta con la pagina */
.callout { background: var(--sky); border: 1px solid rgba(32,56,79,.12); padding: 20px 26px; border-radius: 20px; gap: 16px; }
.callout h3 { color: #0f1b27 !important; font-size: 18px; margin: 0 0 2px; }
.callout p { color: #3a4d60 !important; font-size: 16px; }
.callout .ico { background: #fff; color: var(--color-accent); width: 44px; height: 44px; border-radius: 12px; }

/* ═══ chi siamo: coerenza con le altre pagine ═══ */
.choices .fact { transition: transform .2s, box-shadow .2s, border-color .2s; border: 1px solid rgba(32,56,79,.14); box-shadow: 0 10px 28px rgba(32,56,79,.1); }
.member.solo { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 760px; }
html .fact:hover, html .value:hover {
  transform: translateY(-5px); border-color: var(--warm) !important; box-shadow: 0 20px 48px rgba(32,56,79,.16);
}
.value { transition: transform .2s, box-shadow .2s, border-color .2s; }
@media (max-width: 600px) { .member.solo { grid-template-columns: 1fr; } }
.member-photo { width: 168px; height: 168px; object-fit: cover; object-position: center; border-radius: 24px; display: block; flex: none; }
.member.solo { grid-template-columns: auto 1fr; gap: 28px; max-width: 820px; }
@media (max-width: 600px) { .member-photo { width: 120px; height: 120px; } }

/* numeri dei principi (Chi siamo): colore pieno, niente gradiente */
html .value .n { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor; color: var(--color-accent) !important; }
html .value:nth-child(2) .n { color: var(--warm) !important; }
html body .cta-band .cta-sub { color: #dfe9f2 !important; font-size: 17px; line-height: 1.6; margin: 14px 0 0; }

/* ═══ pagina prenota ═══ */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 28px; align-items: start; }
html .card.static:hover { transform: none !important; border-color: rgba(32,56,79,.12) !important; box-shadow: var(--shadow-sm); }
.card.static { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-list { display: grid; gap: 22px; }
.contact-list small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5a6e82; margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 600; color: #0f1b27; }
.form-note { font-size: 14px; color: #5a6e82; margin: 0; }
.form-note a { font-weight: 600; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* contatti: stesso corpo e peso per link e testo */
html .contact-list span, html .contact-list a { font-size: 14px; font-weight: 600; line-height: 22.4px; }
html .contact-list span { color: var(--color-accent); }

/* modulo: campo trappola anti-spam e messaggi di stato */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 600; }
.form-status[data-state="ok"] { color: #157a50; }
.form-status[data-state="error"] { color: #b3261e; }
.input:user-invalid { border-color: #b3261e; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — le card restano in fila e si rimpiccioliscono;
   vanno a capo solo quando serve, in righe equilibrate:
   2 card → 1+1 · 3 card → 1+1+1 · 4 card → 2+2
   ═══════════════════════════════════════════════════════════════ */
html, body { overflow-x: clip; }
img, svg { max-width: 100%; }

/* — 4 card — */
.svc, .phases:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
/* — 3 card — */
.phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* — 2 card — */
.paths { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
/* — 9 voci dell'audit: 3×3 — */
.audit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* contenuto delle card più compatto mentre si stringe */
@media (max-width: 1100px) {
  .svc .card { padding: 20px; }
  .phase { padding: 20px; }
  .path { padding: 28px; }
  .card .card-body, .phase p { font-size: 15px !important; }
  .card .card-title { font-size: 18px !important; }
  .phase h4 { font-size: 17px; }
}
/* 4 card → 2+2 */
@media (max-width: 960px) {
  .svc, .phases:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* 3 card → 1+1+1 · 2 card → 1+1 */
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr !important; }
  .audit-grid { grid-template-columns: 1fr; }
  .card .card-body, .phase p { font-size: 16px !important; }
  .card .card-title { font-size: 19px !important; }
  .phase h4 { font-size: 18px; }
}
/* telefoni in verticale: anche 2+2 diventa una colonna */
@media (max-width: 520px) {
  .svc, .phases:has(> :nth-child(4)) { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  .card.static { padding: 22px; }
  .path { padding: 24px; }
  .cta-band > div { padding-block: 48px !important; }
  .callout { grid-template-columns: 1fr; }
}

/* — menu: sempre raggiungibile, anche su telefono — */
.nav { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 820px) { .nav a:not(.btn) { display: inline-flex !important; } }
@media (max-width: 640px) {
  .nav { padding-block: 10px; }
  .nav > a:first-child img { height: 28px !important; }
  html .nav a.btn-primary { order: 2; padding: 9px 16px !important; font-size: 14px !important; margin-left: 0 !important; }
  .nav a:not(.btn):not(:first-child) { order: 3; flex: 1 1 0; justify-content: center; padding: 8px 6px; font-size: 14px; }
  .nav::after { content: none; }
}

/* rifiniture telefono */
.eyebrow { max-width: 100%; box-sizing: border-box; }
footer a { white-space: nowrap; }
footer > span:last-of-type { flex-wrap: wrap; gap: 8px 20px !important; }
@media (max-width: 820px) {
  .home-hero, .svc-hero, .how, .book-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ═══ pannello del percorso: mai deformato ═══ */
.flow-step b { flex: none !important; width: 34px; height: 34px; min-width: 34px; aspect-ratio: 1; }
.flow-step span { min-width: 0; }
.tab-labels { display: grid; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; }
.tab-labels label { white-space: normal !important; text-align: center; line-height: 1.2; padding: 10px 12px; display: grid; place-items: center; }
.panel { box-sizing: border-box; max-width: 100%; min-width: 0; }
/* il pannello va sotto il testo prima di diventare troppo stretto */
@media (max-width: 1020px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) !important; }
  .home-hero .panel { max-width: 560px; width: 100%; }
}
@keyframes chip { 0%, 26%, 100% { transform: scale(1); } 4%, 22% { transform: scale(1.1); } }

/* ═══ menu su schermi stretti: griglia fissa, due righe ordinate ═══ */
@media (max-width: 640px) {
  html .nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 4px; row-gap: 6px; align-items: center; padding-block: 10px; }
  html .nav > a:first-child { grid-column: 1 / 3; grid-row: 1; margin: 0 !important; justify-self: start; }
  html .nav > a.btn-primary { grid-column: 3; grid-row: 1; justify-self: end; margin: 0 !important; white-space: nowrap; }
  html .nav > a:not(.btn):not(:first-child) { grid-row: 2; order: 0; justify-content: center; text-align: center; padding: 8px 6px; font-size: 14px; white-space: nowrap; }
  html .nav > a:nth-child(2) { grid-column: 1; }
  html .nav > a:nth-child(3) { grid-column: 2; }
  html .nav > a:nth-child(4) { grid-column: 3; }
}

/* ═══ menu su schermi stretti, versione 3: in alto solo "Darlin", sotto le 4 voci una accanto all'altra ═══ */
@media (max-width: 640px) {
  html .nav { grid-template-columns: auto auto auto minmax(0, 1fr) !important; column-gap: 2px; row-gap: 4px; padding-block: 8px; }
  html .nav > a:first-child { grid-column: 1 / -1 !important; grid-row: 1; }
  html .nav > a:not(.btn):not(:first-child) { grid-row: 2 !important; padding: 8px 9px; font-size: 13.5px; }
  html .nav > a:nth-child(2) { grid-column: 1 !important; }
  html .nav > a:nth-child(3) { grid-column: 2 !important; }
  html .nav > a:nth-child(4) { grid-column: 3 !important; }
  html .nav > a.btn-primary { grid-column: 4 !important; grid-row: 2 !important; justify-self: end; padding: 8px 12px !important; font-size: 13px !important; }
}
@media (max-width: 640px) { html .nav { grid-template-columns: auto auto auto minmax(max-content, 1fr) !important; } }
@media (max-width: 420px) {
  html .nav { padding-inline: 14px !important; }
  html .nav > a:not(.btn):not(:first-child) { padding: 8px 6px; font-size: 13px; }
  html .nav > a.btn-primary { padding: 8px 10px !important; font-size: 12.5px !important; }
}

@media (max-width: 345px) {
  html .nav { padding-inline: 10px !important; column-gap: 2px; }
  html .nav > a:not(.btn):not(:first-child) { padding: 8px 5px; font-size: 12.5px; }
  html .nav > a.btn-primary { padding: 8px 9px !important; font-size: 12px !important; margin-left: 2px !important; }
}
.expanding { margin: 18px 0 0 6px; font-size: 16px; font-weight: 600; font-style: italic; color: #5a6e82; }

/* ═══ schermi stretti: meno spazio vuoto sotto il menu e nel menu ═══ */
.nav > a:first-child, .nav > a:first-child:hover { padding: 0; background: none; }
html .nav { row-gap: 10px; }
@media (max-width: 820px) {
  .home-hero, .svc-hero { padding-top: 36px !important; padding-bottom: 48px !important; }
}
@media (max-width: 640px) {
  html .nav { row-gap: 10px; padding-block: 10px; }
  html .nav > a:not(.btn):not(:first-child) { padding-block: 6px; }
  html .nav > a.btn-primary { padding-block: 7px !important; }
  .home-hero, .svc-hero { padding-top: 24px !important; }
}

/* menu: scompare scorrendo in basso, ricompare scorrendo in alto */
.nav { transition: transform .3s ease; }
.nav.nav-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* il menu resta agganciato in alto per tutta la pagina: html e body non devono essere alti quanto lo schermo */
html, body { height: auto !important; min-height: 100%; }
#dc-root, #dc-root > .sc-host { height: auto !important; }
