:root {
  /* Brand: gradient 90deg #8399A2 -> #EEF2F3 */
  --brand-grad: linear-gradient(90deg, #8399A2, #EEF2F3);
  --brand-grad-soft: linear-gradient(90deg, #dfe6e9, #f6f8f9);
  --bg: #f6f8f9;
  --bg-alt: #e6ecee;
  --card: #ffffff;
  --ink: #17232a;
  --muted: #4f626b;
  --line: #cbd5d9;
  --accent: #2f4a56;
  --accent-ink: #fff;
  --dark: #22343c;
  --dark-ink: #eef2f3;
  --radius: 14px;
  --max: 1120px;
  --serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { font: 400 21px var(--serif); text-decoration: none; letter-spacing: -.02em; }
.brand b { font-weight: 800; }
nav.main { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
@media (max-width: 820px) { nav.main a.hide-m { display: none; } nav.main { gap: 14px; } }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--ink); border: 0; }
.btn.ghost:hover { box-shadow: 0 8px 22px color-mix(in srgb, #fff 65%, transparent); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; line-height: 1.25; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--brand-grad-soft); }
section.dark { background: var(--dark); color: var(--dark-ink); }
section.dark .lead, section.dark p { color: color-mix(in srgb, var(--dark-ink) 72%, transparent); }
.hero { padding: 96px 0 80px; background: var(--brand-grad); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }

.grid { display: grid; gap: 22px; margin-top: 40px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--card); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.num { font: 800 15px var(--serif); color: var(--accent); margin-bottom: 14px; }

.steps { counter-reset: s; display: grid; gap: 0; margin-top: 40px; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font: 800 26px var(--serif); color: var(--accent); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.portrait { aspect-ratio: 4/5; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-size: 14px; overflow: hidden; }
.portrait { border-style: solid; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

ul.check { list-style: none; padding: 0; margin: 18px 0 0; }
ul.check li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.check li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 700 19px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 14px 0 0; max-width: 720px; }

.final { text-align: center; }
.final .lead { margin: 0 auto 30px; }

footer.site { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { text-decoration: none; margin-left: 16px; }

/* Hero sits on the darker end of the brand gradient: keep text high-contrast */
.hero .lead, .hero .note, .proof, .proof b { color: var(--ink); }
.hero .eyebrow { color: #12212a; }
.proof { border-top-color: rgba(23,35,42,.3); }
nav.main a.btn, nav.main a.btn:hover { color: var(--accent-ink); }

/* TidyCal widget: TidyCal sostituisce il div con un iframe, quindi lo stile sta sul contenitore */
.final .lead { margin-bottom: 40px; }
.book-frame { max-width: 1080px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #efefef; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(34,52,60,.12); }
.book-frame iframe { display: block; width: 100%; border: 0; }
.note-book { margin: 22px 0 0; font-size: 14px; }
.note-book a { color: var(--muted); }

/* Language switch: solo testo, con la bandiera a sinistra (niente bottone) */
nav.main a.lang { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; border-radius: 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
nav.main a.lang:hover { color: var(--accent); }
nav.main a.lang .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.btn.sm { white-space: nowrap; }
@media (max-width: 520px) { .btn.sm { padding: 9px 13px; font-size: 13px; } nav.main { gap: 8px; } }
