/* =========================================================
   Otosense — sistema di stile condiviso
   Warm editorial, consulenziale
   ========================================================= */

:root {
  /* Palette base (tweakable) */
  --paper: #fbfaf7;
  --paper-2: #f3efe6;
  --ink: #1a1a1a;
  --ink-2: #3a3835;
  --ink-3: #6a655c;
  --terra: #c75a3c;
  --terra-2: #a8462c;
  --sand: #e8e2d6;
  --line: #d8d3c4;
  --line-2: #ebe6d8;

  /* Type */
  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "Geist", "Söhne", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spazio */
  --pad-x: clamp(20px, 4vw, 56px);
  --max: 1400px;
}

[data-palette="ink"] {
  --paper: #0e0d0b;
  --paper-2: #161513;
  --ink: #f3efe6;
  --ink-2: #c8c2b4;
  --ink-3: #8d8779;
  --terra: #e07a55;
  --terra-2: #c75a3c;
  --sand: #2a2620;
  --line: #2f2a23;
  --line-2: #221e18;
}

[data-palette="forest"] {
  --paper: #f7f5f0;
  --paper-2: #ece8dc;
  --ink: #1d2a25;
  --ink-2: #2d4a3e;
  --ink-3: #5a6a60;
  --terra: #b8a47a;
  --terra-2: #8a7a55;
  --sand: #dcd5c2;
  --line: #c9c2af;
  --line-2: #ddd6c2;
}

[data-font="grotesk"] {
  --serif: "Newsreader", Georgia, serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

[data-font="classic"] {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   Reset
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* Accessibility — visible focus for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Accessibility — honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Typography helpers
   ========================================================= */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

h1.display, h2.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}
h1.display { font-size: clamp(54px, 8.4vw, 132px); }
h2.display { font-size: clamp(40px, 5.5vw, 84px); line-height: 1; }
h3.section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* =========================================================
   Layout / shell
   ========================================================= */
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-soft { height: 1px; background: var(--line-2); width: 100%; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand .mark em { color: var(--terra); font-style: italic; }
.brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px;
  height: 1px; background: var(--terra);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--terra); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--terra) 25%, transparent);
}
.nav-cta:hover .dot { background: var(--paper); box-shadow: 0 0 0 4px color-mix(in oklab, var(--paper) 25%, transparent); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terra); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* Footer */
footer.foot {
  margin-top: 120px;
  background: var(--paper-2);
  border-top: 1px solid var(--line-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 40px;
}
.foot h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot ul li { margin: 8px 0; }
.foot ul li a { color: var(--ink-2); font-size: 14px; }
.foot ul li a:hover { color: var(--terra); }
.foot-mark {
  font-family: var(--serif); font-size: 38px; letter-spacing: -0.02em; line-height: 1;
}
.foot-mark em { color: var(--terra); font-style: italic; }
.foot-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0 36px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
  font-family: var(--mono); letter-spacing: 0.05em;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 24px; }
  .foot-meta { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Placeholder image (subtle stripes + caption) */
.ph {
  position: relative;
  background: var(--sand);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    color-mix(in oklab, var(--sand) 70%, var(--ink) 30%) 22px 23px
  );
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.ph .cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  padding: 6px 10px;
  margin: 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
}

/* Selection */
::selection { background: var(--terra); color: var(--paper); }

/* Scroll marker animation */
@keyframes pulseDown {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Reusable section header */
.sect-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 56px;
}
.sect-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--terra);
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .sect-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
}

/* Sections wrapper */
section.block { padding: 110px 0; }
@media (max-width: 700px) { section.block { padding: 72px 0; } }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal][data-in="true"] {
  opacity: 1; transform: none;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

/* =========================================================
   Tweaks panel
   ========================================================= */
#tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.25);
  font-family: var(--sans);
  color: var(--ink);
  overflow: hidden;
}
.tw-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.tw-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.tw-close { font-size: 22px; line-height: 1; color: var(--ink-3); padding: 0 6px; }
.tw-close:hover { color: var(--ink); }
.tw-body { padding: 16px; }
.tw-row + .tw-row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.tw-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.tw-opts { display: flex; gap: 8px; }
.tw-opts button {
  display: flex; gap: 0; padding: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  flex: 1;
}
.tw-opts button span { flex: 1; height: 100%; display: block; }
.tw-opts button.on { outline: 2px solid var(--terra); outline-offset: 1px; }
.tw-pills { display: flex; flex-direction: column; gap: 6px; }
.tw-pills button {
  text-align: left; font-size: 13px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-2);
}
.tw-pills button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tw-foot { margin-top: 14px; font-size: 11px; color: var(--ink-3); }
@media (max-width: 600px) {
  #tweaks-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
}


/* =========================================================
   Otosense — Restyle "DrDoctor"
   Si applica via [data-style="drdoctor"] o [data-style="mix"]
   sull'<html>. Rimappa i token e ridefinisce i blocchi chiave.
   ========================================================= */

/* ---------- VARIANTE A: drdoctor (fedele) ---------- */
html[data-style="drdoctor"] {
  /* Palette */
  --paper:   #fbf7f1;   /* crema caldo */
  --paper-2: #f0eadf;   /* crema piÃ¹ saturo */
  --ink:     #01394a;   /* navy profondo */
  --ink-2:   #1e6878;   /* navy medio */
  --ink-3:   #5e8b96;   /* navy soft per micro */
  --terra:   #e08312;   /* corallo caldo (accento principale) */
  --terra-2: #c66f0a;
  --sand:    #fde6d2;   /* peach soft */
  --line:    #e3d9c7;
  --line-2:  #ece4d5;

  /* Accenti secondari DrDoctor-like */
  --teal:    #0097b2;
  --teal-2:  #dcf0f3;
  --lilac:   #6b5fb0;

  /* Tipografia: sans grande + friendly, niente serif display */
  --serif: "Comfortaa", "DM Sans", "Inter Tight", system-ui, sans-serif;
  --sans:  "Comfortaa", "DM Sans", "Inter Tight", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Densità  più ariosa */
  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1320px;

  /* Raggi */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  /* Brand Otosense — palette ufficiale */
  --brand:    #0292b7;   /* azzurro intenso brand */
  --brand-2:  #0097b2;   /* turchese scuro brand */
  --brand-3:  #e08312;   /* arancione brand */
}

/* ---------- VARIANTE B: mix (warm + DrDoctor energy) ---------- */
html[data-style="mix"] {
  --paper:   #fbfaf7;
  --paper-2: #f1ece1;
  --ink:     #1c2237;
  --ink-2:   #3b4357;
  --ink-3:   #707a8f;
  --terra:   #c75a3c;
  --terra-2: #a8462c;
  --sand:    #ead8c6;
  --line:    #ddd4c4;
  --line-2:  #ebe5d6;

  --teal:    #355757;
  --teal-2:  #e9efe7;
  --lilac:   #6b5fb0;

  /* Serif solo display, sans per tutto il resto */
  --serif: "Comfortaa", "DM Sans", system-ui, sans-serif;
  --sans:  "Comfortaa", "DM Sans", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 4.5vw, 64px);
  --max: 1360px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

/* =========================================================
   Body baseline (entrambe le varianti)
   ========================================================= */
html[data-style] body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

/* Niente più corsivo serif per .italic */
html[data-style] .italic {
  font-style: normal;
  color: var(--terra);
  font-weight: 600;
}
html[data-style] em { font-style: normal; color: var(--terra); font-weight: 600; }

/* Display: niente serif italic, sans grassetto e tight */
html[data-style] .hero-title,
html[data-style] h1.display,
html[data-style] h2.display,
html[data-style] h3.section,
html[data-style] .acu-hero h1,
html[data-style] .acu h2,
html[data-style] .cta-final h2,
html[data-style] .cta h2,
html[data-style] .page-hero h1,
html[data-style] .t-hero h1,
html[data-style] .c-hero h1,
html[data-style] .what h2,
html[data-style] .ethos h2,
html[data-style] .step-detail h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* Sottolinea l'accento sui display in drdoctor faithful */
html[data-style="drdoctor"] .hero-title em,
html[data-style="drdoctor"] .acu-hero h1 em,
html[data-style="drdoctor"] .cta-final h2 em,
html[data-style="drdoctor"] .cta h2 em,
html[data-style="drdoctor"] .page-hero h1 em,
html[data-style="drdoctor"] .t-hero h1 em,
html[data-style="drdoctor"] .c-hero h1 em,
html[data-style="drdoctor"] .what h2 em,
html[data-style="drdoctor"] .step-detail h2 em,
html[data-style="drdoctor"] .ethos h2 em {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
html[data-style="drdoctor"] .hero-title em::after,
html[data-style="drdoctor"] .acu-hero h1 em::after,
html[data-style="drdoctor"] .cta-final h2 em::after,
html[data-style="drdoctor"] .cta h2 em::after,
html[data-style="drdoctor"] .page-hero h1 em::after,
html[data-style="drdoctor"] .t-hero h1 em::after,
html[data-style="drdoctor"] .c-hero h1 em::after,
html[data-style="drdoctor"] .what h2 em::after,
html[data-style="drdoctor"] .step-detail h2 em::after,
html[data-style="drdoctor"] .ethos h2 em::after {
  content: "";
  position: absolute; left: -2px; right: -2px; bottom: -0.04em;
  height: 0.22em;
  background: var(--terra);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.55;
}

/* Brand mark */
html[data-style] .brand .mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}
html[data-style] .brand .mark em {
  color: var(--terra);
  font-weight: 700;
}
html[data-style] .brand .sub {
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
html[data-style] .foot-mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* =========================================================
   Header / nav
   ========================================================= */
html[data-style] .nav {
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--paper) 94%, transparent);
}
html[data-style] .nav-row {
  padding: 20px 0;
  align-items: center;
}
html[data-style] .nav-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
html[data-style] .nav-links a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
html[data-style] .nav-links a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--ink);
}
html[data-style] .nav-links a[aria-current="page"]::after { display: none; }

html[data-style] .nav-cta {
  background: var(--terra);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 0 0 var(--terra-2);
  transition: transform .15s, box-shadow .15s, background .2s;
}
html[data-style] .nav-cta:hover {
  background: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 0 var(--terra-2);
}
html[data-style] .nav-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 var(--terra-2);
}
html[data-style] .nav-cta .dot {
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in oklab, #fff 25%, transparent);
}

/* =========================================================
   Bottoni
   ========================================================= */
html[data-style] .btn,
html[data-style] .nav-cta {
  white-space: nowrap;
}
html[data-style] .btn {
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s, border-color .2s;
}
html[data-style] .btn-primary {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 5px 0 0 var(--terra-2);
}
html[data-style] .btn-primary:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 0 var(--terra-2);
}
html[data-style] .btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 var(--terra-2);
}
html[data-style] .btn-ghost {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
html[data-style] .btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 0 var(--ink);
}
html[data-style] .btn-ghost:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 var(--ink);
}

/* Buttons su sfondi scuri (acu, acu-hero) */
html[data-style] .acu .btn-primary,
html[data-style] .acu-hero .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 0 color-mix(in oklab, #fff 70%, var(--ink));
}
html[data-style] .acu .btn-primary:hover,
html[data-style] .acu-hero .btn-primary:hover {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 7px 0 0 var(--terra-2);
}
html[data-style] .acu .btn-ghost,
html[data-style] .acu-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 5px 0 0 rgba(255,255,255,.2);
}

/* =========================================================
   Section header
   ========================================================= */
html[data-style] .sect-head {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 720px;
}
html[data-style] .sect-head .num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terra);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[data-style] .sect-head .num::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
}
html[data-style] h3.section,
html[data-style] .sect-head h3.section {
  font-size: clamp(32px, 4vw, 56px);
}

/* =========================================================
   Eyebrow / mono → friendly tag
   ========================================================= */
html[data-style] .eyebrow {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--terra);
}

/* =========================================================
   Lede
   ========================================================= */
html[data-style] .lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}

/* =========================================================
   Hero (index)
   ========================================================= */
html[data-style] .hero {
  padding: 56px 0 80px;
}
html[data-style] .hero-meta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  margin-bottom: 56px;
}
html[data-style] .hero-meta .pin::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bb673;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px color-mix(in oklab, #2bb673 25%, transparent);
}
html[data-style] .hero-title {
  font-size: clamp(48px, 7.5vw, 112px) !important;
  letter-spacing: -0.035em !important;
}
html[data-style] .hero-stat {
  border-top: 0;
  padding-top: 0;
  gap: 18px;
}
html[data-style] .hero-stat > div {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
html[data-style] .hero-stat .num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.03em;
}
html[data-style] .hero-stat .lab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  margin-top: 6px;
}
html[data-style] .hero-img-row .ph {
  border-radius: var(--r-lg);
}

/* =========================================================
   Placeholder (.ph)
   ========================================================= */
html[data-style] .ph {
  border-radius: var(--r-md);
  background: var(--sand);
  background-image: none;
  display: flex; align-items: center; justify-content: center;
}
html[data-style] .ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--terra) 35%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, color-mix(in oklab, var(--teal) 30%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
html[data-style] .ph .cap {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border: 0;
  color: var(--ink-2);
  align-self: flex-end;
  border-radius: 999px;
  padding: 6px 12px;
}

/* =========================================================
   Manifesto pillars → soft cards
   ========================================================= */
html[data-style] .manifesto {
  background: transparent;
  padding-top: 40px;
}
html[data-style] .manifesto .grid {
  border-top: 0;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}
html[data-style] .pillar {
  border: 0;
  border-radius: var(--r-lg);
  padding: 40px 32px 44px;
  background: var(--paper-2);
  position: relative;
}
html[data-style] .pillar:nth-child(1) { background: var(--sand); }
html[data-style] .pillar:nth-child(2) { background: var(--teal-2); }
html[data-style] .pillar:nth-child(3) { background: var(--paper-2); }
html[data-style] .pillar .num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.5);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
html[data-style] .pillar h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
}

/* =========================================================
   Percorso 2x2 grid → soft cards
   ========================================================= */
html[data-style] .perc {
  border: 0;
  gap: 20px;
}
html[data-style] .step {
  border: 0 !important;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  padding: 40px 36px 44px !important;
}
html[data-style] .step:hover { background: var(--sand); }
html[data-style] .step .step-n {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[data-style] .step h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(24px, 2.2vw, 34px);
}
html[data-style] .step .step-list {
  border-top: 1px solid rgba(0,0,0,.08);
}
html[data-style] .step .step-list li {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
html[data-style] .step .step-list li::before {
  content: "â";
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--terra);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  margin-right: 10px;
  font-weight: 700;
}

/* =========================================================
   Acufene callout (sezione scura)
   ========================================================= */
html[data-style] .acu {
  background: var(--ink);
  border-radius: var(--r-lg);
  margin: 40px var(--pad-x);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
html[data-style] .acu::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 90% 10%, color-mix(in oklab, var(--terra) 30%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, color-mix(in oklab, var(--terra) 18%, transparent) 0%, transparent 45%);
  pointer-events: none;
}
html[data-style] .acu .shell { padding: 0; max-width: 100%; position: relative; }
html[data-style] .acu h2 em { color: var(--terra); }
html[data-style] .acu .acu-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}
html[data-style] .acu .acu-card h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
}
html[data-style] .acu .acu-card .row .k {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================
   Testimonianze
   ========================================================= */
html[data-style] .testi-grid { gap: 20px; }
html[data-style] .testi {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  padding: 36px 32px 32px;
}
html[data-style] .testi blockquote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}
html[data-style] .testi blockquote .open { color: var(--terra); font-size: 32px; line-height: 0; vertical-align: -12px; }
html[data-style] .testi .who .av {
  background: var(--terra);
  background-image:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--terra) 80%, #fff) 0%, var(--terra) 60%);
}
html[data-style] .testi .who .meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

/* =========================================================
   Team teaser + roster
   ========================================================= */
html[data-style] .team-card .ph { border-radius: var(--r-md); }
html[data-style] .team-card .role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
}
html[data-style] .team-card .name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 20px;
}

html[data-style] .roster {
  border: 0;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
html[data-style] .person {
  border: 0 !important;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  transition: transform .25s, background .25s;
}
html[data-style] .person:hover {
  background: var(--sand);
  transform: translateY(-4px);
}
html[data-style] .person .ph { border-radius: var(--r-md); }
html[data-style] .person .role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
}
html[data-style] .person .name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
}
html[data-style] .person .creds {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  border-top: 1px solid rgba(0,0,0,.08);
}

html[data-style] .filter { border-top: 0; padding-top: 0; }
html[data-style] .filter button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper-2);
  border: 0;
}
html[data-style] .filter button.on {
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   Accreditamenti
   ========================================================= */
html[data-style] .acred-list { border-top: 0; gap: 12px; }
html[data-style] .acred-item {
  border: 0;
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 22px 28px;
  gap: 28px;
}
html[data-style] .acred-item .tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--terra);
  color: #fff;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
}
html[data-style] .acred-item .nm {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 19px;
}
html[data-style] .acred-item .nm small {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-3);
}
html[data-style] .acred-item .yr {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}

/* =========================================================
   FAQ
   ========================================================= */
html[data-style] .faq-list { border-top: 0; display: grid; gap: 10px; }
html[data-style] .faq {
  border: 0;
  background: var(--paper-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: background .25s;
}
html[data-style] .faq[data-open="true"] { background: var(--sand); }
html[data-style] .faq button {
  padding: 24px 28px;
}
html[data-style] .faq button .q-n {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0;
  text-transform: none;
}
html[data-style] .faq button .q-t {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(17px, 1.5vw, 21px);
}
html[data-style] .faq button .q-i {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
  align-self: center;
}
html[data-style] .faq[data-open="true"] button .q-i {
  background: var(--terra);
  color: #fff;
}
html[data-style] .faq .a > div { padding-left: 76px; padding-right: 28px; font-size: 16px; }

/* =========================================================
   CTA finale
   ========================================================= */
html[data-style] .cta-final,
html[data-style] .cta {
  padding: 100px 0 100px;
}
html[data-style] .cta-final h2,
html[data-style] .cta h2 {
  font-size: clamp(40px, 6vw, 88px) !important;
  letter-spacing: -0.035em !important;
}

/* =========================================================
   Footer
   ========================================================= */
html[data-style] footer.foot {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  margin-top: 100px;
}
html[data-style] footer.foot .foot-mark { color: var(--paper); }
html[data-style] footer.foot .foot-mark em { color: var(--terra); }
html[data-style] footer.foot p { color: color-mix(in oklab, var(--paper) 70%, transparent) !important; }
html[data-style] footer.foot h5 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
}
html[data-style] footer.foot ul li a {
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}
html[data-style] footer.foot ul li a:hover { color: var(--terra); }
html[data-style] footer.foot .foot-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* =========================================================
   Pagine specifiche — acufene hero
   ========================================================= */
html[data-style] .acu-hero { padding: 100px 0 100px; }
html[data-style] .acu-hero .crumb {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
}
html[data-style] .acu-hero h1 { font-size: clamp(48px, 8vw, 112px); }
html[data-style] .acu-hero h1 em { color: var(--terra); }
html[data-style] .acu-hero .badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
}

/* What */
html[data-style] .what {
  padding: 100px 0;
  border-bottom: 0;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 64px;
  margin: 80px var(--pad-x);
  gap: 56px;
}
html[data-style] .what h2 { font-size: clamp(32px, 4vw, 56px); }
html[data-style] .what .quote {
  background: var(--sand);
  border-radius: var(--r-md);
  border-left: 0;
  padding: 24px 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  font-size: 19px;
  color: var(--ink);
  position: relative;
}
html[data-style] .what .quote::before {
  content: "â";
  position: absolute; left: 16px; top: 6px;
  font-family: var(--sans);
  font-size: 48px;
  color: var(--terra);
  line-height: 1;
}

/* Progr-grid */
html[data-style] .progr-grid {
  border-top: 0;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}
html[data-style] .progr-step {
  border: 0 !important;
  border-radius: var(--r-md);
  background: var(--paper-2);
  padding: 32px 24px 32px !important;
}
html[data-style] .progr-step:nth-child(1) { background: var(--sand); }
html[data-style] .progr-step:nth-child(2) { background: var(--teal-2); }
html[data-style] .progr-step:nth-child(3) { background: var(--paper-2); }
html[data-style] .progr-step:nth-child(4) { background: var(--sand); }
html[data-style] .progr-step:nth-child(5) { background: var(--teal-2); }
html[data-style] .progr-step .n {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  color: var(--terra);
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
html[data-style] .progr-step .ttl {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}
html[data-style] .progr-step .dur {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Approach cards */
html[data-style] .approach {
  background: transparent;
  padding: 60px 0 100px;
}
html[data-style] .approach-card {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  padding: 40px 36px;
}
html[data-style] .approach-card:nth-child(1) { background: var(--sand); }
html[data-style] .approach-card:nth-child(4) { background: var(--teal-2); }
html[data-style] .approach-card .tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255,255,255,.6);
  color: var(--terra);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: 22px;
}
html[data-style] .approach-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 26px;
}

/* =========================================================
   Percorso page
   ========================================================= */
html[data-style] .page-hero .crumb,
html[data-style] .t-hero .crumb,
html[data-style] .c-hero .crumb {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[data-style] .page-hero h1,
html[data-style] .t-hero h1,
html[data-style] .c-hero h1 {
  font-size: clamp(48px, 8vw, 112px);
}
html[data-style] .page-hero .meta { border-top: 0; padding-top: 0; gap: 16px; }
html[data-style] .page-hero .meta > div {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
html[data-style] .page-hero .meta .k {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}
html[data-style] .page-hero .meta .v {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
}

html[data-style] .step-detail {
  border: 0;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  margin-bottom: 24px;
  gap: 40px;
  align-items: start;
}
html[data-style] .step-detail:nth-of-type(odd) { background: var(--sand); }
html[data-style] .step-detail:nth-of-type(even) { background: var(--teal-2); }
html[data-style] .step-detail .stamp .num {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  color: var(--terra);
  font-size: clamp(60px, 7vw, 96px);
  letter-spacing: -0.04em;
}
html[data-style] .step-detail .stamp .lab {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
html[data-style] .step-detail h2 { font-size: clamp(28px, 3.4vw, 44px); }
html[data-style] .step-detail .aside {
  border-left: 0;
  background: rgba(255,255,255,.5);
  border-radius: var(--r-md);
  padding: 28px;
}
html[data-style] .step-detail .aside h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
html[data-style] .step-detail .aside ul li .t {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: 0;
}

/* =========================================================
   Team — ethos & hero
   ========================================================= */
html[data-style] .ethos {
  background: var(--paper-2);
  border: 0;
  border-radius: var(--r-lg);
  margin: 60px var(--pad-x) 0;
  padding: 80px 64px;
}
html[data-style] .ethos h2 { font-size: clamp(32px, 4vw, 56px); }
html[data-style] .ethos .stats { border-top: 0; }
html[data-style] .ethos .stats > div {
  background: rgba(255,255,255,.6);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
html[data-style] .ethos .stats .num {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 44px;
}
html[data-style] .ethos .stats .num em { color: var(--terra); }
html[data-style] .ethos .stats .lab {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

/* =========================================================
   Contatti
   ========================================================= */
html[data-style] .c-grid {
  border: 0;
  gap: 40px;
}
html[data-style] .c-form,
html[data-style] .c-aside {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  border: 0 !important;
  padding: 48px !important;
}
html[data-style] .form-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
}
html[data-style] .form-title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
}
html[data-style] .field input,
html[data-style] .field select,
html[data-style] .field textarea {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color .2s, background .2s;
}
html[data-style] .field input:focus,
html[data-style] .field select:focus,
html[data-style] .field textarea:focus {
  border-color: var(--terra);
  background: #fff;
}
html[data-style] .field > label,
html[data-style] .field label:first-child {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
html[data-style] .chips label {
  background: var(--paper);
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  transition: background .2s, color .2s;
}
html[data-style] .chips input:checked + label {
  background: var(--terra);
  color: #fff;
}
html[data-style] .info-block h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terra);
}
html[data-style] .info-block .big {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}
html[data-style] .hours .row .d {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
html[data-style] .map {
  margin: 0 var(--pad-x);
  border-top: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
html[data-style] .map .pin .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
}
html[data-style] .quick-grid { border-top: 0; gap: 20px; }
html[data-style] .quick-card {
  border: 0 !important;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 36px 32px !important;
}
html[data-style] .quick-card:nth-child(1) { background: var(--sand); }
html[data-style] .quick-card:nth-child(3) { background: var(--teal-2); }
html[data-style] .quick-card .icn {
  background: var(--terra);
  color: #fff;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
}
html[data-style] .quick-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
}
html[data-style] .quick-card a {
  font-family: var(--sans);
  font-weight: 600;
  border-bottom: 0;
  color: var(--terra);
}

/* =========================================================
   Variante mix: piccoli ritocchi (più sobria)
   ========================================================= */
html[data-style="mix"] .pillar { background: var(--paper-2); }
html[data-style="mix"] .pillar:nth-child(1),
html[data-style="mix"] .pillar:nth-child(2),
html[data-style="mix"] .pillar:nth-child(3) { background: var(--paper-2); }
html[data-style="mix"] .step,
html[data-style="mix"] .progr-step,
html[data-style="mix"] .step-detail:nth-of-type(odd),
html[data-style="mix"] .step-detail:nth-of-type(even),
html[data-style="mix"] .quick-card:nth-child(1),
html[data-style="mix"] .quick-card:nth-child(3),
html[data-style="mix"] .approach-card:nth-child(1),
html[data-style="mix"] .approach-card:nth-child(4) {
  background: var(--paper-2);
}
html[data-style="mix"] .nav-cta,
html[data-style="mix"] .btn-primary { box-shadow: none; }
html[data-style="mix"] .nav-cta:hover,
html[data-style="mix"] .btn-primary:hover { transform: none; box-shadow: none; background: var(--terra-2); }
html[data-style="mix"] .btn-ghost { box-shadow: none; }
html[data-style="mix"] .btn-ghost:hover { transform: none; box-shadow: none; background: var(--paper-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  html[data-style] .acu { margin: 24px var(--pad-x); padding: 48px 28px; }
  html[data-style] .what { padding: 40px 28px; margin: 40px var(--pad-x); }
  html[data-style] .ethos { padding: 48px 28px; margin: 40px var(--pad-x) 0; }
  html[data-style] .step-detail { padding: 36px 24px; }
  html[data-style] .c-form, html[data-style] .c-aside { padding: 28px !important; }
}
@media (max-width: 700px) {
  html[data-style] .manifesto .grid { grid-template-columns: 1fr; }
  html[data-style] .progr-grid { grid-template-columns: 1fr; }
  html[data-style] .roster { grid-template-columns: 1fr; }
}

/* =========================================================
   Image slot defaults (compatibili anche col tema originale)
   ========================================================= */
image-slot {
  display: block;
  width: 100%;
}
image-slot.slot-portrait {
  aspect-ratio: 4 / 5;
}
image-slot.slot-photo {
  aspect-ratio: 4 / 3;
}
/* Nel tema originale: piccolo richiamo alla didascalia (mostrata dal componente
   come placeholder interno); con drdoctor.css il colore di sfondo viene
   passato come custom property se serve. */

/* =========================================================
   Style switcher widget
   ========================================================= */
.style-switcher {
  position: fixed; bottom: 20px; left: 20px; z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.25), 0 2px 8px -2px rgba(0,0,0,.1);
  font-family: var(--sans);
}
.style-switcher button {
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.style-switcher button:hover {
  color: var(--paper);
}
.style-switcher button.on {
  background: var(--terra);
  color: #fff;
}
.style-switcher .ssl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  padding: 8px 6px 8px 12px;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .style-switcher .ssl { display: none; }
  .style-switcher { left: 12px; bottom: 12px; }
}

/* =========================================================
   Brand logo immagine — sostituisce il wordmark testuale
   ========================================================= */
/* Brand logo NAV — orizzontale, sfondo trasparente, su paper */
html[data-style="drdoctor"] .brand,
html[data-style="mix"] .brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}
html[data-style="drdoctor"] .brand-logo,
html[data-style="mix"] .brand-logo {
  display: block;
  height: 96px;          /* dimezzato da 192px */
  width: auto;
  max-width: 330px;
  object-fit: contain;
  background: transparent;
}

/* Brand logo FOOTER — circolare, container chiaro per risaltare su footer scuro */
html[data-style="drdoctor"] footer.foot .foot-logo,
html[data-style="mix"] footer.foot .foot-logo {
  display: block;
  height: 140px;         /* dimezzato da 280px */
  width: 140px;
  border-radius: 50%;
  background: var(--paper);   /* container chiaro: serve perché il logo PNG è trasparente
                                   ma sul footer scuro alcuni dettagli turchesi sparirebbero */
  padding: 10px;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.25);
  object-fit: contain;
  margin-bottom: 12px;
  max-width: 100%;
}

/* Mobile — logo più contenuto */
@media (max-width: 800px) {
  html[data-style="drdoctor"] .brand-logo,
  html[data-style="mix"] .brand-logo {
    height: 64px;
    max-width: 220px;
  }
  html[data-style="drdoctor"] footer.foot .foot-logo,
  html[data-style="mix"] footer.foot .foot-logo {
    height: 110px;
    width: 110px;
  }
}
/* Header nav — alza leggermente la riga per accomodare il logo più grande */
html[data-style="drdoctor"] .nav-row,
html[data-style="mix"] .nav-row {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* CTA — usa il brand color azzurro come default per i bottoni principali */
html[data-style="drdoctor"] .nav-cta,
html[data-style="drdoctor"] .btn-primary {
  background: var(--brand, var(--ink));
  color: var(--paper);
}
html[data-style="drdoctor"] .nav-cta:hover,
html[data-style="drdoctor"] .btn-primary:hover {
  background: var(--terra);
  color: var(--paper);
}
html[data-style="drdoctor"] .nav-cta .dot {
  background: var(--terra);
}

/* Footer tagline brand payoff "Sentiamoci in Salute!" */
html[data-style="drdoctor"] footer.foot .foot-tagline,
html[data-style="mix"] footer.foot .foot-tagline {
  font-family: "Comfortaa", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--terra);
  margin-top: 6px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}


/* === Menu mobile (dal sito pubblicato) === */
/* === Otosense Mobile Menu === */
  .ots-nav .nav-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--line, #d8d3c4);
    width: 44px; height: 44px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s;
  }
  .ots-nav .nav-burger:hover { border-color: var(--ink, #1a1a1a); }
  .ots-nav .nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink, #1a1a1a);
    position: relative;
    transition: transform 0.3s;
  }
  .ots-nav .nav-burger span::before,
  .ots-nav .nav-burger span::after {
    content: ""; position: absolute; left: 0;
    width: 22px; height: 2px;
    background: var(--ink, #1a1a1a);
    transition: transform 0.3s, top 0.3s;
  }
  .ots-nav .nav-burger span::before { top: -7px; }
  .ots-nav .nav-burger span::after { top: 7px; }
  .ots-nav[data-menu="open"] .nav-burger span { background: transparent; }
  .ots-nav[data-menu="open"] .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .ots-nav[data-menu="open"] .nav-burger span::after { top: 0; transform: rotate(-45deg); }

  @media (max-width: 900px) {
    .ots-nav .nav-burger { display: inline-flex; }
    .ots-nav .nav-cta { display: none; }
    .ots-nav {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 1002 !important;
      background: var(--paper, #fbf7f1);
      border-bottom: 1px solid var(--line, #d8d3c4);
    }
    .ots-nav .nav-row { position: relative; z-index: 1002; background: var(--paper, #fbf7f1); }
    /* Spazio per il contenuto sotto il header fixed */
    body.ots-has-fixed-nav main { padding-top: 80px; }
    .ots-nav .nav-links {
      display: none !important;
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 100vh; height: 100dvh;
      background: var(--paper, #fbf7f1);
      flex-direction: column;
      align-items: stretch;
      padding: 100px 24px 40px;
      gap: 4px !important;
      z-index: 1000;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
    }
    .ots-nav[data-menu="open"] .nav-links { display: flex !important; }
    .ots-nav .nav-links a {
      font-size: 22px !important;
      padding: 18px 12px !important;
      border-bottom: 1px solid var(--line, #d8d3c4);
      color: var(--ink, #1a1a1a) !important;
      text-decoration: none;
    }
    .ots-nav .nav-links a::after { display: none !important; }
    .ots-nav .nav-links::after {
      content: "Prenota una visita";
      display: block;
      margin-top: 24px;
      padding: 20px 24px;
      background: var(--brand, var(--ink, #01394a));
      color: var(--paper, #fbf7f1);
      text-align: center;
      border-radius: 999px;
      font-size: 16px;
      font-weight: 500;
    }
  }

/* === Piè di pagina: payoff e descrizione (erano stili in linea) === */
html[data-style] footer.foot .foot-payoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  margin-top: 6px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
html[data-style] footer.foot .foot-payoff-2 {
  font-size: 15px;
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}
html[data-style] footer.foot .foot-desc {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.55;
}

/* Parola messa in risalto dentro un paragrafo, dal pannello contenuti. */
.hl { color: var(--terra); }

/* Salta al contenuto: fuori schermo finché non lo si raggiunge con il tasto Tab. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 9999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }
