/* =========================================================================
   Dr. Rossi Del Chicca — "Rouge" rebuild — DARK theme (1:1 con l'originale)
   Page #0d141c · cards #1a2838 · accent cyan #67dded · Exo + PT Sans.
   ========================================================================= */

:root {
  --bg:        #0d141c;   /* page background (black_blue)  */
  --surface:   #1a2838;   /* cards / bands (dark_blue)     */
  --surface-2: #213a52;   /* hover / elevated             */
  --navy-2:    #304d6d;   /* light_blue                   */
  --accent:    #67dded;   /* blue                         */
  --accent-soft: rgba(103,221,237,.14);
  --off:       #f3f3f3;   /* dirty_white (light buttons)  */

  --heading: #f3f3f3;
  --bright:  #ffffff;
  --text:    #f3f3f3;
  --muted:   rgba(243,243,243,.62);
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.16);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --btn-r: 12px;

  --shadow:    0 2px 8px rgba(0,0,0,.30);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.45);

  --font-head: "Exo", system-ui, sans-serif;
  --font-body: "PT Sans", system-ui, sans-serif;

  --container: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; font-weight: 700; letter-spacing: normal; }
strong { color: #fff; }

/* ----- layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: #141e2a; }  /* via di mezzo tra #0d141c e #1a2838 */
.center { text-align: center; }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; letter-spacing: normal; text-transform: none;
  color: var(--text); margin-bottom: .7rem;
}
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
h1 { font-size: clamp(28px, 4.2vw, 36px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; }
.lead { font-size: 16px; color: var(--text); }
.hero h1, .section-head h2 { color: var(--bright); }
.section-head .subtitle { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text); margin-top: .4rem; }

/* ----- buttons ----- */
.btn {
  --bg-b: var(--accent); --fg: var(--bg); --bd: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  line-height: 1; padding: .85rem 1.5rem; border-radius: var(--btn-r);
  background: var(--bg-b); color: var(--fg); border: 1.6px solid var(--bd);
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.btn svg { width: 18px; height: 18px; }
.btn:not(.btn-ghost):not(.btn-dark):not(.btn-outline):hover { background: #8be7f3; border-color: #8be7f3; }
/* secondary = light solid (come "Scopri i Servizi" originale) */
.btn-ghost { --bg-b: var(--off); --fg: var(--surface); --bd: var(--off); }
.btn-ghost:hover { background: #fff; border-color: #fff; }
/* dark navy (bottone "Seguimi su Instagram") */
.btn-dark { --bg-b: var(--surface); --fg: var(--off); --bd: var(--surface); }
.btn-dark:hover { background: #22364a; border-color: #22364a; }
/* outline variant on light cards if ever needed */
.btn-outline { --bg-b: transparent; --fg: #fff; --bd: var(--line-2); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); }
.btn-block { width: 100%; justify-content: center; }

/* ----- media (real photo, with graceful placeholder) ----- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--surface-2); isolation: isolate;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media img.is-missing { opacity: 0; }
.media::after {
  content: attr(data-ph); position: absolute; inset: 0; z-index: -1;
  display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: var(--muted);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px);
}
.ratio-portrait  { aspect-ratio: 4 / 5; }
.ratio-landscape { aspect-ratio: 16 / 10; }
.ratio-square    { aspect-ratio: 1 / 1; }
.ratio-wide      { aspect-ratio: 16 / 7; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,20,28,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.brand b { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--heading); letter-spacing: normal; }
.brand span { font-size: 13px; letter-spacing: .02em; color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #fff;
  position: relative; padding-block: .4rem;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-social { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pill, 999px);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #fff;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.icon-btn:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); border-radius: var(--r-sm); color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin-inline: auto; }
.nav-toggle .ico-close { display: none; }
body.menu-open .nav-toggle .ico-open { display: none; }
body.menu-open .nav-toggle .ico-close { display: block; }

/* =========================================================================
   HERO (full-bleed video, come l'originale)
   ========================================================================= */
.hero { position: relative; padding: 16px clamp(14px, 2.4vw, 32px) 0; background: var(--bg); }
.hero-box { position: relative; overflow: hidden; border-radius: 12px;
  min-height: clamp(500px, 76vh, 760px); display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,20,28,.88) 0%, rgba(13,20,28,.55) 45%, rgba(13,20,28,.30) 100%),
    linear-gradient(0deg, rgba(13,20,28,.65), rgba(13,20,28,0) 40%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2rem, 5vw, 4rem); }
.hero h1 { color: #fff; max-width: 600px; margin-bottom: 2rem; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* =========================================================================
   SERVICE CARDS
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .media { border-radius: 0; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { font-size: 26px; }
.card-body p { color: var(--text); font-size: 16px; line-height: 1.6; }
.card-link {
  margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent);
}
.card-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* =========================================================================
   TESTIMONIALS (carousel)
   ========================================================================= */
.testi { position: relative; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testi-slide { min-width: 100%; padding: .25rem; }
.testi-card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); display: grid; grid-template-columns: 320px 1fr; align-items: center; overflow: hidden;
}
.section--alt .testi-card { background: var(--bg); }
.testi-card .media { border-radius: 0; aspect-ratio: 1 / 1; position: relative; align-self: center; }
.testi-play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 999px;
  background: rgba(103,221,237,.92); color: var(--surface); display: grid; place-items: center;
  box-shadow: var(--shadow-lg); border: none; cursor: pointer; transition: transform .2s ease;
}
.testi-play:hover { transform: scale(1.07); }
.testi-play svg { width: 26px; height: 26px; margin-left: 3px; }
.testi-content { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.testi-quote { font-size: 16px; color: var(--text); font-family: var(--font-body);
  font-weight: 400; line-height: 1.6; margin: 1.3rem 0 0; }
.testi-quote::before { content: none; }
.testi-name { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 26px; margin-bottom: .25rem; }
.testi-meta { color: var(--accent); font-size: 14px; font-weight: 600; font-family: var(--font-head); }
.testi-nav { display: flex; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.testi-dots { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 1.2rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); border: none; cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.testi-dot.is-active { width: 26px; background: var(--accent); }

/* =========================================================================
   PROCESS STEPS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.6rem; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.step-ico { display: inline-grid; place-items: center; background: transparent; color: #fff; }
.step-ico svg { width: 34px; height: 34px; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: var(--navy-2); line-height: 1; }
.step h3 { font-size: 18px; margin-bottom: .5rem; }
.step p { color: var(--text); font-size: 16px; line-height: 1.6; }

/* =========================================================================
   CTA BAND  (Iniziamo un percorso insieme!)
   ========================================================================= */
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 320px; padding: clamp(2rem, 4.5vw, 3.4rem); }
.cta-band .inner { position: relative; z-index: 2; max-width: 60%; }
.cta-band h2 { margin-bottom: 1.6rem; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.2; color: var(--heading); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-photo { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; max-width: 62%;
  display: flex; justify-content: flex-end; }
.cta-photo img { height: 100%; width: auto; display: block; }
.cta-photo img.is-missing { opacity: 0; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(26,40,56,.5) 22%, transparent 50%); }

/* =========================================================================
   INSTAGRAM STRIP
   ========================================================================= */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.ig-grid .media { border-radius: var(--r-sm); transition: transform .2s ease; }
.ig-grid a { position: relative; }
.ig-grid a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sm);
  background: rgba(12,20,28,.35); opacity: 0; transition: opacity .2s ease; }
.ig-grid a:hover::after { opacity: 1; }
.ig-grid a:hover .media { transform: scale(1.03); }

/* =========================================================================
   ACCORDION  (Chinesiologia Clinica)
   ========================================================================= */
.accordion { max-width: 880px; margin-inline: auto; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .8rem; overflow: hidden; }
.acc-item.open { border-color: var(--line-2); }
.acc-head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.acc-head .acc-ico { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: transform .25s ease; }
.acc-head .acc-ico svg { width: 16px; height: 16px; }
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel-inner { padding: 0 1.4rem 1.4rem; color: var(--muted); }
.acc-panel-inner p + p { margin-top: .8rem; }
.acc-panel-inner ul { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.acc-panel-inner li { position: relative; padding-left: 1.4rem; }
.acc-panel-inner li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); }

/* =========================================================================
   GENERIC CONTENT (service / article / curriculum)
   ========================================================================= */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: radial-gradient(120% 140% at 80% -20%, rgba(48,77,109,.35), transparent 60%); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; font-family: var(--font-head); }
.breadcrumb a:hover { color: var(--accent); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media .media { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

.prose h3 { margin-top: 2rem; margin-bottom: .8rem; font-size: 1.35rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose .lead { color: var(--muted); margin-bottom: 1.4rem; }

.ticks { display: flex; flex-direction: column; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.3rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.feature-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.feature-box h3 { margin-bottom: 1rem; }

.mini-steps { display: grid; gap: 1rem; counter-reset: ms; }
.mini-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem 1.3rem 3.6rem; position: relative; }
.mini-step::before { counter-increment: ms; content: "0" counter(ms); position: absolute; left: 1.3rem; top: 1.25rem;
  font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.mini-step h4 { font-size: 1.05rem; margin-bottom: .35rem; color: #fff; }
.mini-step p { color: var(--muted); font-size: .96rem; }

/* curriculum */
.cv-head { display: grid; grid-template-columns: 290px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cv-avatar .media { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.cv-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.cv-list { position: relative; padding-left: 1.6rem; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 1.1rem; }
.cv-list li { position: relative; color: var(--text); }
.cv-list li::before { content: ""; position: absolute; left: calc(-1.6rem - 6px); top: .55em; width: 10px; height: 10px;
  border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.cv-list em { font-style: normal; font-weight: 700; color: #fff; font-family: var(--font-head); }

/* publications / blog list */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-card .media { border-radius: 0; }
.post-tag { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: rgba(13,20,28,.82); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-body h3 { font-size: 1.18rem; }
.post-body p { color: var(--muted); font-size: .96rem; }
.post-link { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: .94rem; }
.post-link svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .post-link svg { transform: translateX(4px); }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article .media { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); margin-block: 1.8rem; }
.article-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; font-family: var(--font-head); margin-bottom: 1rem; }
.article-meta .pill { background: var(--accent-soft); color: var(--accent); padding: .25rem .7rem; border-radius: 999px; font-weight: 600; }
.article-body p { margin-bottom: 1.1rem; font-size: 1.06rem; }
.note { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--r); padding: 1.1rem 1.3rem; color: var(--muted); font-size: .94rem; }
.note b { color: #fff; font-family: var(--font-head); }
.note code { background: rgba(255,255,255,.08); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }
.share { display: flex; gap: .6rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); align-items: center; }
.share span { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .9rem; margin-right: .3rem; }

/* =========================================================================
   FAITHFUL SUBPAGE LAYOUTS (servizi / curriculum / articolo)
   ========================================================================= */
/* dark rounded title banner */
.hero-band { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.6rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, #1b2c40, #0f1b29); }
.hero-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 170% at 88% -20%, rgba(103,221,237,.16), transparent 55%); }
.hero-band .breadcrumb { position: relative; }
.hero-band h1 { position: relative; }
.narrow { max-width: 820px; margin-inline: auto; }
.sub { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: 1rem; }
.svc-eyebrow { color: var(--accent); margin-bottom: 1.1rem; }
.svc-media { margin: 2.2rem 0 2.6rem; }
.svc-media .media { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.svc-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 1rem; margin: 2.4rem 0; }
.svc-vid { aspect-ratio: 344 / 500; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.svc-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .svc-videos { grid-template-columns: 1fr 1fr; gap: .6rem; } }
.narrow .ticks { margin-bottom: .4rem; }

/* curriculum: two columns + sticky profile card */
.cv-grid { display: grid; grid-template-columns: 1fr 330px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.cv-main h1 { margin-bottom: 1.7rem; }
.cv-bullets { display: flex; flex-direction: column; gap: 1.05rem; }
.cv-bullets li { position: relative; padding-left: 1.5rem; color: var(--text); }
.cv-bullets li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.cv-bullets em { font-style: normal; font-weight: 700; color: #fff; font-family: var(--font-head); }
.profile-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.profile-card .media { border-radius: var(--r); margin-bottom: 1.1rem; }
.profile-card .pc-name { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.2rem; text-align: center; }
.profile-card .pc-role { text-align: center; color: var(--accent); font-size: .8rem; letter-spacing: .02em; font-weight: 700; margin-bottom: 1.2rem; }
.profile-card .pc-actions { display: flex; flex-direction: column; gap: .6rem; }
.profile-card .pc-actions .btn { justify-content: center; width: 100%; }
.profile-card .pc-actions .btn svg:last-child { margin-left: auto; }

/* blog article: banner with title + vertical share column */
.article-wrap { max-width: 900px; margin-inline: auto; }
.article-hero { position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: clamp(240px, 38vw, 420px); display: flex; align-items: flex-end; }
.article-hero .media { position: absolute; inset: 0; border-radius: 0; }
.article-hero .ah-overlay { position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,20,28,.94) 0%, rgba(13,20,28,.35) 55%, rgba(13,20,28,.12) 100%); }
.article-hero h1 { position: relative; z-index: 1; color: #fff;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.4rem, 3vw, 2.2rem);
  padding-left: calc(56px + clamp(1.4rem, 3vw, 2.4rem));
  max-width: 30ch; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.article-layout { display: grid; grid-template-columns: 56px 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2rem; }
.share-col { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: .6rem; height: max-content; }
.share-col .share-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-head);
  font-weight: 600; color: var(--muted); font-size: .76rem; letter-spacing: .1em; margin-bottom: .3rem; }
.article-lead { font-size: clamp(1.12rem, 1.9vw, 1.38rem); font-family: var(--font-head); color: #fff;
  line-height: 1.45; margin-bottom: 1.5rem; font-weight: 600; }
.article-content p { margin-bottom: 1.1rem; }

/* publications: bordered "Leggi Articolo" button */
.post-card .post-btn { margin: 0 1.5rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: .7rem 1rem; border-radius: var(--btn-r);
  border: 1.5px solid var(--line-2); color: #fff; transition: background .18s, border-color .18s; }
.post-card:hover .post-btn { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.post-card .post-btn svg { width: 16px; height: 16px; }
.post-tag.on-image { top: auto; bottom: .9rem; }

@media (max-width: 860px) {
  .cv-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; max-width: 360px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-hero h1 { padding-left: clamp(1.4rem, 5vw, 2rem); }
  .share-col { position: static; flex-direction: row; justify-content: flex-start; }
  .share-col .share-label { writing-mode: horizontal-tb; transform: none; margin: 0 .3rem 0 0; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-brand b { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; display: block; line-height: 1.15; margin-bottom: 3px; }
.footer-brand span { font-size: .8rem; letter-spacing: .02em; color: var(--accent); font-weight: 700; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact a { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }

/* back to top */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent); color: var(--surface); border: none; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #8be7f3; }
.to-top svg { width: 22px; height: 22px; }

/* cookie banner (light, come l'originale) */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120; max-width: 460px;
  background: #fff; color: #333; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem; transform: translateY(160%); transition: transform .4s cubic-bezier(.4,0,.2,1); }
.cookie.show { transform: translateY(0); }
.cookie h4 { font-size: 1rem; margin-bottom: .4rem; color: #0d141c; }
.cookie p { font-size: .86rem; color: #5d6b78; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions { align-items: center; }
.cookie-actions .btn { font-size: .85rem; padding: .65rem 1.1rem; }
.cookie-actions .btn-ghost { --bg-b: #f3f3f3; --fg: #1a2838; --bd: #e2e2e2; }

/* link-style button (footer "Privacy Policy", banner "Preferenze") */
.link-btn { background: none; border: none; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }
.cookie-actions .link-btn { color: #5d6b78; }
.cookie-actions .link-btn:hover { color: #0d141c; }

/* =========================================================================
   CONSENT MODAL (Privacy Policy / gestione consensi)
   ========================================================================= */
.consent { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.consent[hidden] { display: none; }
.consent-backdrop { position: absolute; inset: 0; background: rgba(6,10,16,.62); backdrop-filter: blur(2px); }
.consent-panel { position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
  background: #fff; color: #333; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem); animation: consent-in .25s ease; }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.consent-x { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 999px; border: none;
  background: #f1f3f5; color: #1a2838; cursor: pointer; display: grid; place-items: center; }
.consent-x:hover { background: #e6e9ec; }
.consent-x svg { width: 18px; height: 18px; }
.consent-panel h3 { color: #0d141c; font-size: 1.3rem; margin-bottom: .7rem; padding-right: 2rem; }
.consent-panel > p { color: #5d6b78; font-size: .9rem; margin-bottom: 1.3rem; }
.consent-top-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.consent-panel h4 { color: #0d141c; font-size: 1rem; margin-bottom: .4rem; padding-bottom: .7rem; border-bottom: 1px solid #ececec; }
.consent-row { display: flex; gap: 1.2rem; align-items: flex-start; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid #f1f1f1; }
.consent-name { font-family: var(--font-head); font-weight: 700; color: #0d141c; display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.consent-always { font-size: .7rem; font-weight: 600; color: #1aa6bd; background: rgba(103,221,237,.16); padding: .15rem .55rem; border-radius: 999px; text-transform: none; }
.consent-info p { font-size: .84rem; color: #5d6b78; margin: 0; }
.consent-bottom-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.5rem; }
.consent .btn { --bg-b: #67dded; --fg: #0d141c; --bd: #67dded; }
.consent .btn:hover { background: #54cfe2; border-color: #54cfe2; }
.consent .btn-ghost { --bg-b: #fff; --fg: #1a2838; --bd: #d6dbe0; }
.consent .btn-ghost:hover { background: #f3f3f3; border-color: #d6dbe0; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cfd6dc; border-radius: 999px; transition: .25s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: #67dded; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch.is-locked .slider { background: #67dded; opacity: .5; cursor: not-allowed; }

/* =========================================================================
   TESTIMONIAL VIDEO LIGHTBOX (YouTube)
   ========================================================================= */
.video-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); }
.video-modal[hidden] { display: none; }
.video-backdrop { position: absolute; inset: 0; background: rgba(6,10,16,.86); backdrop-filter: blur(3px); }
.video-frame { position: relative; z-index: 1; width: 100%; max-width: 920px; animation: consent-in .25s ease; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-x { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border-radius: 999px; border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.video-x:hover { background: rgba(255,255,255,.22); }
.video-x svg { width: 20px; height: 20px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .cards, .steps, .list-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-card { grid-template-columns: 1fr; }
  .testi-card .media { aspect-ratio: 1 / 1; max-width: 380px; width: 100%; margin-inline: auto; }
  .split, .cv-head, .footer-top { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .cv-head { gap: 1.5rem; }
  .cv-avatar { max-width: 240px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  body.menu-open .nav-links {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 0;
  }
  body.menu-open .nav-links a { padding: 1rem clamp(1.1rem, 4vw, 2rem); width: 100%; }
  body.menu-open .nav-links a::after { display: none; }
  .cards, .steps, .list-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie { max-width: none; }
  .hero h1 { max-width: none; }
  .cta-band { flex-direction: column; align-items: flex-start; min-height: 0; }
  .cta-band .inner { max-width: 100%; }
  .cta-photo { position: relative; width: 100%; max-width: none; height: 200px; inset: auto; margin-top: 1.6rem;
    border-radius: var(--r); overflow: hidden; display: block; }
  .cta-photo::before { display: none; }
  .cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; }
}
@media (max-width: 520px) {
  .hero-cta .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}
/* =========================================================================
   SCROLL PROGRESS BAR + detail-page typography tuned 1:1 all'originale
   (titoli pagina Exo 36px · titoli-card Exo 18px · titoli di sezione PT Sans
    bold 24px · testo PT Sans 16px/1.6, spaziatura 10px · colonna 720px)
   ========================================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 150; transition: width .08s linear; will-change: width; }

/* page titles → 36px */
.page-hero h1, .hero-band h1, .article-hero h1 { font-size: clamp(1.7rem, 4.4vw, 36px); line-height: 1.12; }

/* service detail: single narrow column */
.narrow p, .narrow .prose p { font-size: 16px; line-height: 1.6; margin-bottom: 10px; color: var(--text); }
.narrow .lead { font-size: 17px; color: var(--muted); margin-bottom: 1rem; }
.narrow h2.sub { font-family: var(--font-body); font-weight: 700; font-size: 25px; line-height: 1.28; letter-spacing: 0; margin-bottom: 12px; }
.narrow h3 { font-family: var(--font-body); font-weight: 700; font-size: 24px; line-height: 1.25; letter-spacing: 0; margin-top: 2.4rem; margin-bottom: .9rem; }
.narrow .feature-box { margin-top: 2rem; }
.narrow .feature-box h3 { margin-top: 0; }
.narrow .ticks li { font-size: 16px; line-height: 1.6; }
.narrow .ticks { gap: .55rem; }
.narrow .mini-step h4 { font-family: var(--font-body); font-weight: 700; font-size: 17px; }
.narrow .mini-step p { font-size: 16px; margin-bottom: 0; }

/* blog article */
.article-content { max-width: 720px; }
.article-content p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; color: var(--text); }
.article-content h3 { font-family: var(--font-body); font-weight: 700; font-size: 24px; line-height: 1.25; margin: 2.2rem 0 .9rem; }
.article-content p.article-lead { font-size: 19px; line-height: 1.5; color: var(--accent); margin-bottom: 1.5rem; }

/* listing cards (blog / pubblicazioni) → titolo Exo 18px */
.post-body h3 { font-size: 18px; line-height: 1.3; }
.post-body p { font-size: 16px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-video { display: none; }
}
