:root {
  --ab-ink: #111827;
  --ab-ink-2: #334155;
  --ab-muted: #64748b;
  --ab-light: #f7f8fa;
  --ab-line: #e5e7eb;
  --ab-white: #ffffff;
  --ab-accent: #d5a945;
  --ab-accent-dark: #9a741f;
  --ab-navy: #152238;
  --ab-navy-2: #0d1727;
  --ab-success: #166534;
  --ab-radius: 1.25rem;
  --ab-shadow: 0 20px 60px rgba(15, 23, 42, .10);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ab-ink);
  background: var(--ab-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ab-navy); }
a:hover { color: var(--ab-accent-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: #fff;
  padding: .8rem 1rem;
  border-radius: 0 0 .5rem .5rem;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229,231,235,.88);
}

.navbar { min-height: 82px; }
.navbar-brand { text-decoration: none; color: var(--ab-ink); }
.brand-wrap { display: inline-flex; align-items: center; gap: .8rem; }
.brand-logo { display: block; width: auto; height: 42px; flex: 0 0 auto; }
.brand-text { display: block; }
.brand-name { display: block; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-transform: uppercase;}
.brand-claim { display: block; margin-top: .32rem; font-size: .70rem; color: var(--ab-muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-link { font-weight: 650; color: var(--ab-ink-2); }
.nav-link:hover, .nav-link.active { color: var(--ab-accent-dark); }

.btn { border-radius: 999px; font-weight: 700; padding: .78rem 1.15rem; }
.btn-brand { background: var(--ab-accent); border-color: var(--ab-accent); color: #17120a; }
.btn-brand:hover { background: #c39736; border-color: #c39736; color: #17120a; }
.btn-outline-brand { color: var(--ab-navy); border-color: var(--ab-navy); }
.btn-outline-brand:hover { background: var(--ab-navy); border-color: var(--ab-navy); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ab-accent-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ab-accent); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.4rem 0 5.2rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(213,169,69,.18), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.hero h1 {
  margin-top: 1.1rem;
  max-width: 900px;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero .lead { max-width: 760px; margin-top: 1.5rem; font-size: 1.18rem; color: var(--ab-ink-2); }
.hero-photo-wrap { position: relative; max-width: 480px; margin-inline: auto; }
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2rem;
  background: #fff;
  box-shadow: var(--ab-shadow);
}
.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.25rem;
  max-width: 250px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(13,23,39,.93);
  color: white;
  border-radius: 1rem;
  box-shadow: var(--ab-shadow);
}
.hero-badge strong { display: block; font-size: 1.05rem; }
.hero-badge span { font-size: .84rem; color: #cbd5e1; }

.trust-strip { border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line); background: #fff; }
.metric { padding: 1.55rem .5rem; }
.metric strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric span { display: block; margin-top: .5rem; color: var(--ab-muted); font-size: .88rem; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-light { background: var(--ab-light); }
.section-dark { background: var(--ab-navy-2); color: white; }
.section-title { margin-top: .9rem; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.section-intro { max-width: 720px; color: var(--ab-muted); font-size: 1.08rem; }
.section-dark .section-intro, .section-dark .text-muted-2 { color: #cbd5e1; }

.card-clean {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.card-clean h3 { font-size: 1.2rem; font-weight: 800; }
.card-clean p { color: var(--ab-muted); }
.icon-box {
  width: 46px; height: 46px; display: grid; place-items: center;
  margin-bottom: 1.2rem; border-radius: .9rem;
  background: rgba(213,169,69,.16); color: var(--ab-accent-dark); font-size: 1.25rem;
}

.problem-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.problem-card h3 { font-size: 1.05rem; }
.problem-card p { color: #cbd5e1; margin-bottom: 0; }

.step { position: relative; padding-left: 4.5rem; }
.step-number {
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 999px; background: var(--ab-navy); color: #fff; font-weight: 800;
}
.step h3 { font-size: 1.22rem; font-weight: 800; }
.step p { color: var(--ab-muted); }

.quote-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 2rem;
  background: var(--ab-navy);
  color: white;
  box-shadow: var(--ab-shadow);
}
.quote-panel blockquote { margin: 0; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }

.cta-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--ab-navy-2), var(--ab-navy));
  color: white;
  overflow: hidden;
}
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.cta-panel p { color: #dbe3ee; }

.page-hero { padding: 5rem 0 3.5rem; background: linear-gradient(180deg,#fff,#f8fafc); border-bottom: 1px solid var(--ab-line); }
.page-hero h1 { margin-top: .8rem; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.page-hero p { max-width: 760px; color: var(--ab-ink-2); font-size: 1.13rem; }

.content-prose { max-width: 820px; }
.content-prose h2 { margin-top: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.content-prose h3 { margin-top: 1.7rem; font-weight: 800; }
.content-prose p, .content-prose li { color: var(--ab-ink-2); }
.content-prose li + li { margin-top: .4rem; }

.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .65rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--ab-success); }

.service-nav {
  position: sticky;
  top: 140px;
  padding: 1.25rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: #fff;
}
.service-nav a { display: block; padding: .55rem .7rem; border-radius: .6rem; color: var(--ab-ink-2); text-decoration: none; font-weight: 650; }
.service-nav a:hover { background: var(--ab-light); color: var(--ab-ink); }

.article-card { position: relative; height: 100%; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); overflow: hidden; background: #fff; }
.article-card .article-body { padding: 1.45rem; }
.article-card .article-kicker { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ab-accent-dark); }
.article-card h2, .article-card h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.article-card p { color: var(--ab-muted); }
.article-card a.stretched-link { color: inherit; text-decoration: none; }

.book-cover { width: 100%; max-width: 390px; border-radius: 1rem; box-shadow: var(--ab-shadow); }

.form-panel { padding: 2rem; border-radius: var(--ab-radius); background: #fff; border: 1px solid var(--ab-line); box-shadow: var(--ab-shadow); }
.form-label { font-weight: 700; }
.form-control, .form-select { min-height: 50px; border-radius: .8rem; border-color: #d7dce3; }
textarea.form-control { min-height: 150px; }
.form-control:focus, .form-select:focus { border-color: var(--ab-accent); box-shadow: 0 0 0 .25rem rgba(213,169,69,.15); }

.site-footer { padding: 4rem 0 2rem; background: #0b1220; color: #cbd5e1; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-title { color: #fff; font-weight: 800; }

.footer-brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 800; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-logo { display: block; width: auto; height: 44px; flex: 0 0 auto; }
.footer-small { font-size: .86rem; color: #94a3b8; }

.mobile-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  display: none;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

@media (max-width: 991.98px) {
  .hero { padding-top: 4rem; }
  .hero-photo-wrap { margin-top: 3rem; }
  .hero-badge { left: .75rem; right: .75rem; max-width: none; }
  .service-nav { position: static; }
  .mobile-cta { display: inline-flex; }
  .navbar-collapse { padding: 1rem 0 1.4rem; }
}

@media (max-width: 575.98px) {
  .section { padding: 4rem 0; }
  .page-hero { padding-top: 3.5rem; }
  .metric strong { font-size: 1.65rem; }
  .brand-logo { height: 34px; }
  .brand-claim { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Social e pubblicazioni */
.social-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.social-links .social-link { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 1.15rem; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.social-links a.social-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.35); text-decoration: none; }
.footer-publications-link { font-size: .92rem; font-weight: 750; }
.book-card { height: 100%; min-height: 360px; padding: 1.7rem; display: flex; flex-direction: column; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.06); }
.book-card-main { display: flex; align-items: flex-start; gap: 1.15rem; width: 100%; flex: 1 1 auto; margin-bottom: 1.25rem; }
.book-card-image { flex: 0 0 34%; max-width: 135px; min-width: 100px; }
.book-card-image img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .85rem; box-shadow: 0 10px 24px rgba(15,23,42,.12); }
.book-card-copy { flex: 1 1 0; min-width: 0; }
.book-card-copy .article-kicker { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ab-accent-dark); }
.book-card h2, .book-card h3 { margin-top: .7rem; font-size: 1.35rem; line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
.book-card p { color: var(--ab-muted); }
.book-card > a:last-child { margin-top: auto; align-self: flex-start; }
.book-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 1rem; background: rgba(213,169,69,.16); color: var(--ab-accent-dark); font-size: 1.35rem; }
.book-card-featured { border-color: rgba(213,169,69,.55); background: linear-gradient(180deg,#fffdf8,#fff); }
.book-card-download { background: var(--ab-light); }


/* Navigazione secondaria: percorsi distinti dal core B2B */
.utility-bar { background: var(--ab-navy-2); color: #cbd5e1; font-size: .78rem; }
.utility-bar .container { min-height: 34px; }
.utility-bar a { color: #e2e8f0; text-decoration: none; font-weight: 650; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-label { color: #94a3b8; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
@media (max-width: 575.98px) {
  .utility-bar .container { justify-content: center !important; gap: 1rem !important; }
}

/* Social placeholders: icone presenti anche quando il profilo non è ancora valorizzato */
.social-links .social-link-empty {
  opacity: .48;
  cursor: default;
  pointer-events: none;
}
.social-links .social-link-empty:hover {
  opacity: .48;
  transform: none;
}

/* Pagina Chi sono - profilo biografico */
.bio-hero {
  position: relative;
  overflow: hidden;
  padding: 5.8rem 0 5rem;
  background: radial-gradient(circle at 82% 8%, rgba(213,169,69,.20), transparent 30%), linear-gradient(180deg,#fff 0%,#f8fafc 100%);
}
.bio-hero h1 {
  margin-top: 1rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 800;
}
.bio-hero-lead { max-width: 760px; margin-top: 1.6rem; color: var(--ab-ink-2); font-size: clamp(1.15rem,2vw,1.38rem); }
.bio-signature { max-width: 700px; color: var(--ab-accent-dark); font-weight: 750; font-size: 1.05rem; }
.bio-archive { padding: .75rem; border: 1px solid var(--ab-line); border-radius: 1.6rem; background: #fff; box-shadow: var(--ab-shadow); }
.bio-archive img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 1.15rem; }
.bio-archive figcaption { padding: .9rem .55rem .25rem; color: var(--ab-muted); font-size: .86rem; }
.bio-timeline { position: relative; padding-left: 2.2rem; }
.bio-timeline::before { content:""; position:absolute; left:.55rem; top:.5rem; bottom:.5rem; width:2px; background:linear-gradient(var(--ab-accent),var(--ab-line)); }
.bio-timeline-item { position: relative; padding: 0 0 2rem 1.5rem; }
.bio-timeline-item:last-child { padding-bottom: 0; }
.bio-timeline-mark { position:absolute; left:-2.08rem; top:.35rem; width:1.05rem; height:1.05rem; border-radius:50%; background:var(--ab-accent); box-shadow:0 0 0 6px rgba(213,169,69,.15); }
.bio-timeline h3 { margin:0 0 .45rem; font-size:1.18rem; font-weight:800; }
.bio-timeline p { margin:0; color:var(--ab-muted); }
.bio-now-card { border-color: rgba(213,169,69,.45); background: linear-gradient(180deg,#fffdf8,#fff); }
@media (max-width: 991.98px) { .bio-hero { padding-top: 4rem; } }

@media (max-width: 575.98px) {
  .book-card { min-height: 0; }
  .book-card-main { gap: .95rem; }
  .book-card-image { flex-basis: 105px; min-width: 105px; max-width: 105px; }
}
