/* Work Is Business — segnaletica di pronto soccorso
   Token, poi componenti. Mobile-first, breakpoint 768 / 1024. */

:root {
  --bg:        oklch(98.8% 0.003 250);
  --bg-2:      oklch(95.5% 0.008 255);
  --ink:       oklch(18% 0.02 265);
  --ink-2:     oklch(43% 0.03 265);
  --line:      oklch(88% 0.01 255);

  --blue:      oklch(52% 0.26 264);
  --blue-deep: oklch(38% 0.2 265);

  --verde:      oklch(62% 0.15 155);
  --verde-ink:  oklch(50% 0.13 155);
  --giallo:     oklch(83% 0.16 88);
  --giallo-ink: oklch(50% 0.11 85);
  --rosso:      oklch(53% 0.2 28);

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --wrap: 72rem;
  --gutter: 1.25rem;

  --color-fg: var(--ink);
  --color-bg: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { inset-block-start: 1rem; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  min-height: 44px;
}
.brand__mark { display: inline-flex; gap: 2px; }
.brand__mark i { width: 7px; height: 16px; display: block; }
.brand__mark i:nth-child(1) { background: var(--verde); }
.brand__mark i:nth-child(2) { background: var(--giallo); }
.brand__mark i:nth-child(3) { background: var(--rosso); }

/* ---------- Header / nav ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; min-height: 64px; gap: .5rem 1rem;
}

.menu-btn {
  width: 48px; height: 48px; margin-inline-end: -8px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.menu-btn__bar { width: 24px; height: 3px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding-block: .5rem 1rem;
  border-top: 1px solid var(--line);
}
.nav.is-open { display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav a.nav__cta {
  margin-top: .5rem; justify-content: center;
  background: var(--blue); color: var(--bg);
  border-radius: 999px; padding-inline: 1.2rem; font-weight: 600;
}
.nav a.nav__cta:hover { background: var(--blue-deep); }

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav {
    display: flex; flex-basis: auto; flex-direction: row; align-items: center;
    gap: 1.5rem; padding: 0; border: 0;
  }
  .nav a { min-height: 44px; }
  .nav a.nav__cta { margin: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .7rem 1.5rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  font-size: 1.0625rem; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--bg); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding-block: 3rem 0; }
.hero__intro { color: var(--ink-2); font-weight: 500; max-width: 40ch; }
.hero__title {
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  margin-top: .75rem;
  max-width: 12ch;
}
.hero__text { margin-top: 1.5rem; max-width: 52ch; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Le targhe: tre codici, il momento memorabile della pagina */
.triage {
  display: grid; gap: 1rem;
  margin-top: 3.5rem;
}
.plate {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .15s;
}
.plate:hover { transform: translateY(-3px); }
.plate__code {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.5rem; padding: 1.1rem 1.25rem;
}
.plate--verde .plate__code  { background: var(--verde); color: var(--ink); }
.plate--giallo .plate__code { background: var(--giallo); color: var(--ink); }
.plate--rosso .plate__code  { background: var(--rosso); color: #fff; }
.plate__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; flex: 1; }
.plate__who { font-weight: 600; font-size: 1.15rem; }
.plate__desc { color: var(--ink-2); }
.plate__cure {
  margin-top: auto; padding-top: .75rem;
  font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: .2em;
}

@media (min-width: 768px) {
  .hero { padding-block: 5rem 0; }
  .triage { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 5rem; }
}

/* ---------- Metodo ---------- */
.metodo { padding-block: 5rem; margin-top: 4rem; background: var(--bg-2); }
.metodo .wrap { display: grid; gap: 2.5rem; }
.metodo__head p { margin-top: 1rem; max-width: 52ch; font-size: 1.1rem; }

.steps { display: grid; gap: 0; counter-reset: none; }
.step {
  position: relative;
  padding: 1.25rem 0 1.25rem 2rem;
  border-left: 0;
}
.step::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px; background: var(--blue);
}
.step::after {
  content: ""; position: absolute; inset-inline-start: -6px; top: 1.6rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-2); border: 4px solid var(--blue);
}
.step:first-child::before { top: 1.6rem; }
.step:last-child::before { bottom: auto; height: 1.6rem; }
.step h3 { font-size: 1.5rem; }
.step p { margin-top: .4rem; color: var(--ink-2); max-width: 44ch; }

.metodo__fig { margin: 0; }
.metodo__fig img { border-radius: var(--radius-md); aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% 30%; }
.metodo__fig figcaption { margin-top: .6rem; color: var(--ink-2); font-size: .9375rem; }

@media (min-width: 1024px) {
  .metodo .wrap { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr; column-gap: 4rem; }
  .metodo__head { grid-column: 1 / -1; }
  .metodo__fig { grid-row: 2; grid-column: 2; }
  .steps { grid-row: 2; grid-column: 1; }
}

/* ---------- Servizi ---------- */
.servizi { padding-block: 5rem 0; }
.servizi__lead { margin-top: 1rem; font-size: 1.1rem; max-width: 52ch; color: var(--ink-2); }

.cura {
  margin-top: 2.5rem;
  border-top: 14px solid var(--code);
  padding-block: 2.5rem 3rem;
  background: var(--bg-2);
}
.cura--verde  { --code: var(--verde);  --code-ink: var(--verde-ink); }
.cura--giallo { --code: var(--giallo); --code-ink: var(--giallo-ink); }
.cura--rosso  { --code: var(--rosso);  --code-ink: var(--rosso); }
.cura + .cura { margin-top: 0; }

.cura__grid { display: grid; gap: 2rem; }
.cura__who h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1rem; max-width: 20ch; }
.cura__label {
  margin-top: 1.5rem; font-weight: 600; color: var(--code-ink);
}
.cura__what .cura__label { margin-top: 0; }
.cura__who ul { margin-top: .5rem; display: grid; gap: .4rem; }
.cura__who li { position: relative; padding-inline-start: 1.4rem; }
.cura__who li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: .7rem; height: .7rem; background: var(--code); border-radius: 2px;
}
.cura__name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; margin-top: .4rem;
}
.cura__dur { margin-top: .5rem; font-weight: 500; color: var(--ink-2); }
.cura__what p:last-child { margin-top: 1rem; max-width: 46ch; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: .95rem;
  padding: .35rem .8rem; border-radius: 999px; background: var(--code); color: var(--ink);
}
.chip--rosso { color: #fff; }

@media (min-width: 768px) {
  .cura__grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .cura__what { padding-top: 3.4rem; }
}

/* ---------- Chi siamo ---------- */
.chi { padding-block: 5rem; }
.chi__grid { display: grid; gap: 2.5rem; align-items: center; }
.chi__photo img { border-radius: var(--radius-md); }
.chi__text p { margin-top: 1rem; max-width: 52ch; }
.chi__text h2 + p { margin-top: 1.5rem; font-size: 1.1rem; }
.chi__sub { margin-top: 2rem; font-size: 1.1rem; }
.chi__values { margin-top: .75rem; display: grid; gap: .5rem; }
.chi__values li { padding: .75rem 1rem; background: var(--bg-2); border-radius: var(--radius-sm); font-weight: 500; }

@media (min-width: 768px) {
  .chi__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}

/* ---------- Plus lock (barriera free) ---------- */
.plus-lock { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.plus-lock__fake {
  filter: blur(6px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.plus-badge {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .5em 1.1em;
  border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  background: var(--color-fg); color: var(--color-bg);
}
.plus-badge:hover { background: var(--blue); }

/* Segnaposto dentro i blocchi spenti */
.fake-line { display: block; height: .8rem; border-radius: 3px; background: var(--ink-2); opacity: .5; width: 100%; }
.fake-line--title { height: 1.2rem; width: 85%; background: var(--ink); }
.fake-line--short { width: 55%; }
.fake-tag { display: block; width: 4.5rem; height: 1.1rem; border-radius: 999px; }
.fake-tag--verde { background: var(--verde); }
.fake-tag--giallo { background: var(--giallo); }
.fake-tag--rosso { background: var(--rosso); }
.fake-btn { display: block; width: 9rem; height: 2.6rem; border-radius: 999px; background: var(--blue); }

/* ---------- Archivio ---------- */
.archivio { padding-block: 4rem 5rem; background: var(--bg-2); }
.archivio__lead { margin-top: 1rem; max-width: 56ch; font-size: 1.1rem; }
.archivio .plus-lock { margin-top: 2rem; }
.archivio__fake { display: grid; gap: 1rem; }
.fake-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.5rem; display: grid; gap: .75rem; min-height: 11rem;
}
.fake-card--dl { background: var(--ink); }
.fake-card--dl .fake-line { background: var(--bg); }
@media (min-width: 768px) { .archivio__fake { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .archivio__fake { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Blog ---------- */
.blog { padding-block: 5rem; }
.blog__grid { display: grid; gap: 2rem; align-items: start; }
.blog__text p { margin-top: 1rem; max-width: 40ch; font-size: 1.1rem; }
.blog__fake { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fake-row { display: grid; gap: .6rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .blog__grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }

/* ---------- Anamnesi ---------- */
.anamnesi { padding-block: 5rem; background: var(--ink); color: var(--bg); --color-fg: var(--bg); --color-bg: var(--ink); }
.anamnesi__grid { display: grid; gap: 2.5rem; align-items: start; }
.anamnesi__text p { margin-top: 1rem; max-width: 46ch; font-size: 1.1rem; }
.anamnesi__text h2 + p { margin-top: 1.5rem; }
.anamnesi .plus-lock { background: oklch(24% 0.02 265); }
.anamnesi__fake { padding: 1.5rem; display: grid; gap: 1.5rem; }
.fake-form { display: grid; gap: 1rem; }
.fake-field { display: grid; gap: .35rem; font-size: .9375rem; }
.fake-field input, .fake-textarea {
  display: block; width: 100%; height: 2.8rem; border-radius: var(--radius-sm);
  border: 1px solid oklch(45% 0.02 265); background: oklch(20% 0.02 265);
}
.fake-textarea { height: 6rem; }
.fake-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .6rem 1.4rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; width: max-content;
}
.fake-contacts { display: grid; gap: .5rem; font-weight: 500; }
@media (min-width: 768px) {
  .anamnesi__grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .fake-form { grid-template-columns: 1fr 1fr; }
  .fake-field--wide, .fake-submit { grid-column: 1 / -1; }
}
.plus-badge:focus-visible { outline-color: var(--giallo); }

/* ---------- Footer ---------- */
.foot { padding-block: 3rem; border-top: 1px solid var(--line); }
.foot__grid { display: grid; gap: 2rem; }
.foot__brand p { margin-top: .75rem; color: var(--ink-2); max-width: 36ch; }
.foot__nav { display: grid; gap: .25rem; }
.foot__nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__nav a:hover { text-decoration: underline; }
.foot__legal { color: var(--ink-2); font-size: .9375rem; display: grid; gap: .5rem; align-content: end; }
.footer-credit { font-size: .8125rem; }
.footer-credit a { color: var(--ink-2); }
@media (min-width: 768px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
