/* ============================================================================
   Prof. Andrea Battisti — Chirurgia Maxillo-Facciale
   Design system (teal / crema, Bricolage Grotesque + Instrument Sans).
   Reskin del sito statico: stessi nomi-classe del markup esistente.
   ========================================================================== */

:root {
  --teal: #1e4b4f;
  --teal-2: #16383b;
  --crema: #fbfaf7;
  --surface: #f4ede4;
  --ink: #1c2b2c;
  --muted: #5a6a68;
  --on-teal: rgba(251, 250, 247, 0.72);

  --line: rgba(28, 43, 44, 0.12);
  --line-strong: rgba(42, 38, 32, 0.15);

  --shadow-card: 0 10px 30px rgba(18, 45, 42, 0.06);
  --shadow-card-hover: 0 22px 50px rgba(18, 45, 42, 0.2);
  --shadow-cta: 0 30px 70px rgba(14, 50, 54, 0.22);

  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 26px;

  --max-width: 1180px;
  --title-font: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--crema);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-2);
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--surface);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--teal);
  color: var(--crema);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--crema);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--title-font);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}

.brand-copy span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--teal-2);
}

.site-nav a.is-current {
  color: var(--teal);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(28, 43, 44, 0.25);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-primary {
  background: var(--teal);
  color: var(--crema);
}

.button-primary:hover {
  background: var(--teal-2);
  color: var(--crema);
}

.button-secondary {
  background: transparent;
  border-color: var(--teal-2);
  color: var(--teal);
}

.button-secondary:hover {
  background: var(--teal);
  color: var(--crema);
}

.button-ghost {
  background: transparent;
  color: var(--teal);
}

/* ── Sections & typography ──────────────────────────────────────────────── */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-surface {
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--title-font);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 5vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p,
li {
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.text-link {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--teal-2);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-copy .lead {
  margin-top: 1.1rem;
  max-width: 34ch;
}

.hero-subcopy {
  margin-top: 1.1rem;
  max-width: 34ch;
  color: var(--muted);
}

.hero-actions,
.inline-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2.1rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ece3d6;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* Il badge sovrapposto non fa parte del nostro design: nascosto. */
.hero-badge {
  display: none;
}

/* ── Intro di sezione ───────────────────────────────────────────────────── */
.section-intro {
  max-width: 44em;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  font-size: 1.06rem;
  color: var(--muted);
}

.section-intro p + p {
  margin-top: 0.8rem;
}

/* ── Griglie ────────────────────────────────────────────────────────────── */
.grid-2,
.grid-3,
.grid-4,
.card-grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: card;
}

.grid-4,
.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Credenziali (info-card) ────────────────────────────────────────────── */
.info-card {
  padding: 1.6rem 1.4rem;
  background: var(--crema);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.info-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1rem;
}

.info-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── "Quando serve" (path-card) ─────────────────────────────────────────── */
.path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem 1.6rem;
  border-top: 1px solid rgba(28, 43, 44, 0.16);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.path-card:hover {
  border-top-color: var(--teal);
  background: linear-gradient(180deg, rgba(30, 75, 79, 0.22) 0%, rgba(30, 75, 79, 0) 94%);
  transform: translateY(-2px);
}

.path-card span {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 1rem;
}

.path-card h3 {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.path-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.path-card a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}

.path-card > a::after {
  content: " →";
}

/* ── Stepper (timeline / process-flow) ──────────────────────────────────── */
.timeline,
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 0;
}

.process-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-card,
.flow-card {
  position: relative;
  padding-right: 1.75rem;
  background: none;
  border: 0;
  box-shadow: none;
}

.timeline-card span,
.flow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: var(--crema);
  color: var(--teal);
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.timeline-card:hover span,
.flow-card:hover span {
  background: var(--teal);
  color: var(--crema);
}

.timeline-card::after,
.flow-card::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 56px;
  right: 0;
  height: 2px;
  background: rgba(30, 75, 79, 0.22);
}

.timeline-card:last-child::after,
.flow-card:last-child::after {
  display: none;
}

.timeline-card strong,
.flow-card strong {
  display: block;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.timeline-card p,
.flow-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Aree cliniche (service-card) ───────────────────────────────────────── */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  counter-increment: card;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card::after {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--teal);
  transition: color 0.25s ease;
}

.service-card span {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.service-card h3 {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.6rem;
  max-width: 12ch;
  transition: color 0.25s ease;
}

.service-card p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  transition: color 0.25s ease;
}

.service-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.25s ease;
}

.service-card a::after {
  content: " →";
}

.service-card:hover {
  background: var(--teal);
  border-top-color: #fff;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.service-card:hover::after,
.service-card:hover h3,
.service-card:hover a {
  color: var(--crema);
}

.service-card:hover span,
.service-card:hover p {
  color: var(--on-teal);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list {
  display: grid;
}

.faq-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-strong);
  background: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.9rem;
  max-width: 52em;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(105deg, #0e3236 0%, var(--teal) 42%, #4d7e7f 74%, var(--crema) 100%);
  box-shadow: var(--shadow-cta);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  right: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 320' preserveAspectRatio='xMaxYMid slice'><g fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5'><polygon points='700,60 750,88 750,144 700,172 650,144 650,88'/><polygon points='750,144 800,172 800,228 750,256 700,228 700,172'/><polygon points='820,110 858,132 858,176 820,198 782,176 782,132'/><path d='M560 120 L650 120 L700 172 L750 144'/></g></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band .eyebrow {
  color: var(--on-teal);
}

.cta-band h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--on-teal);
  max-width: 46ch;
}

.cta-band .button {
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  border: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.cta-band .button:hover {
  background: #f3efe9;
  color: var(--ink);
}

.cta-band .text-link {
  color: #fff;
}

/* ── Pagine interne: hero, breadcrumb, colonne ──────────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--surface);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.breadcrumbs {
  margin-bottom: 2.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--teal-2);
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

.page-hero .lead {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.12rem;
}

.split-grid,
.contact-grid,
.long-copy-grid,
.story-block {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  align-items: start;
}

.long-copy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-block {
  max-width: 52rem;
  gap: 0.9rem;
}

.story-block p + p {
  margin-top: 0;
}

/* Card generiche con bordo teal (panel, mini-card, stat-card, ecc.) */
.panel,
.mini-card,
.stat-card,
.publication-card,
.contact-card,
.link-card {
  padding: 2rem;
  background: var(--crema);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.panel h3,
.mini-card strong,
.stat-card strong,
.publication-card strong,
.contact-card strong,
.link-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--title-font);
  margin-bottom: 0.5rem;
}

.stat-card strong {
  font-size: 1.6rem;
  color: var(--teal);
}

.publication-card em {
  display: block;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.7rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.editorial-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ece3d6;
}

.editorial-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.editorial-photo figcaption {
  padding: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* Liste puntate teal */
.check-list,
.link-list,
.publication-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--teal);
}

.list-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.list-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 600;
}

.list-links a::after {
  content: "→";
}

/* Info rows (contatti) */
.info-stack {
  display: grid;
  gap: 1.25rem;
}

.info-row {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row strong {
  color: var(--ink);
  font-family: var(--title-font);
  font-weight: 600;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: start;
}

.pull-quote {
  margin: 0;
  padding: 1.1rem 1.6rem;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-family: var(--title-font);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: clamp(3rem, 6vw, 4rem) 0 2.5rem;
  background: var(--teal);
  color: var(--on-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  font-family: var(--title-font);
  font-size: 1.35rem;
  color: var(--crema);
}

.footer-brand p {
  margin-top: 0.6rem;
  color: var(--on-teal);
  font-size: 0.9rem;
}

.footer-brand small {
  display: block;
  margin-top: 1rem;
  color: var(--on-teal);
  font-size: 0.8rem;
  max-width: 32em;
}

.footer-nav,
.footer-links {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  font-size: 0.9rem;
}

.footer-nav a,
.footer-links a {
  color: var(--on-teal);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--crema);
}

.footer-links small,
.footer small {
  display: block;
  margin-top: 0.4rem;
  color: var(--on-teal);
  font-size: 0.78rem;
}

.footer .footer-grid + small,
.footer > .container > small {
  display: block;
  margin-top: 1.6rem;
}

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(20px, 4vw, 32px) 1.25rem;
    background: var(--crema);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(42, 38, 32, 0.08);
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4,
  .card-grid-4,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline,
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-card::after,
  .flow-card::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .long-copy-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .card-grid-4,
  .metrics,
  .timeline,
  .process-flow,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .button {
    width: 100%;
  }

  .hero-actions .button,
  .card-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}

/* ── Articoli ───────────────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(28, 43, 44, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--crema);
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ddce;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(18, 45, 42, 0.14);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: rgba(30, 75, 79, 0.32);
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
  padding: 1.4rem 1.4rem 1.5rem;
}

.article-cat {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(30, 75, 79, 0.3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.article-card h3 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-card h3 a {
  color: var(--ink);
  transition: color 0.18s ease;
}

.article-card:hover h3 a {
  color: var(--teal);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.article-excerpt {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}

.article-more::after {
  content: " →";
}

/* Articolo in evidenza */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ddce;
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
}

.featured .article-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.featured-body h2 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.featured-body h2 a {
  color: var(--ink);
  transition: color 0.18s ease;
}

.featured:hover .featured-body h2 a {
  color: var(--teal);
}

/* Disclaimer medico */
.disclaimer {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
}

.disclaimer .disclaimer-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--teal);
  display: grid;
  place-items: center;
}

.disclaimer p {
  max-width: 70em;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Corpo articolo + indice */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
}

.toc p {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid rgba(28, 43, 44, 0.14);
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover {
  color: var(--teal);
  border-left-color: var(--teal);
}

.prose {
  max-width: 68ch;
}

.prose > p:first-child {
  font-size: 1.18rem;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 100px;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.9rem 0 0.6rem;
  color: var(--ink);
}

.prose p {
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.prose li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.06rem;
  color: var(--ink);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.6rem;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-family: var(--title-font);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
}

.prose figure {
  margin: 1.9rem 0;
}

.prose figure .article-thumb {
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.article-hero-head {
  max-width: 820px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-tags .author {
  font-weight: 600;
  color: var(--ink);
}

.article-tags .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.article-cover {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 860px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

/* ── Allineamento 1:1 alla versione Next (solo design) ──────────────────── */
.hero-accent { color: var(--teal); }

/* Credenziali: banda con bordi + icone lineari (come Next) */
.cred-section {
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.cred-band-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.cred strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.cred p { font-size: 0.86rem; color: var(--muted); }

/* "Contatti" in nav come bottone teal (come Next) */
.site-nav > a:last-child {
  background: var(--teal);
  color: var(--crema);
  padding: 0.5rem 1.05rem;
  border-radius: 8px;
}
.site-nav > a:last-child:hover,
.site-nav > a:last-child.is-current { background: var(--teal-2); color: var(--crema); }

@media (max-width: 1024px) {
  .cred-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cred-band { grid-template-columns: 1fr; }
}

/* Su banda surface le icone-tile usano crema (altrimenti si confondono) */
.section-surface .cred-icon { background: var(--crema); }

/* Hero chirurgia: sfondo bianco + 2 colonne (testo + foto), come Next */
.page-hero.hero-split { background: var(--crema); }
.hero-split .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.hero-split .editorial-photo img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .hero-split .page-hero-grid { grid-template-columns: 1fr; } }

/* ── Fix UX/UI responsive (audit) ───────────────────────────────────────── */
/* Chirurgia: foto hero a piena larghezza quando l'hero si impila su mobile/tablet */
@media (max-width: 860px) {
  .hero-split .page-hero-grid { align-items: stretch; }
  .hero-split .editorial-photo,
  .hero-split .editorial-photo img { width: 100%; }
}
/* Menu mobile: bottone Contatti con altezza di tap adeguata (>=44px) */
@media (max-width: 1080px) {
  .site-nav > a:last-child { padding: 0.85rem 1.05rem; }
}

/* ── Contatti: card "Recapiti principali" in teal (look Next) ────────────── */
.contact-card {
  background: var(--teal);
  color: var(--on-teal);
  border-top: 0;
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-card);
}
.contact-card > strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--on-teal);
}
.contact-card .info-row { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contact-card .info-row strong { color: var(--crema); }
.contact-card .info-row p { color: var(--on-teal); }
.contact-card .info-row .text-link { color: var(--crema); }
.contact-card .button-secondary {
  background: var(--crema);
  color: var(--ink);
  border-color: transparent;
}
.contact-card .button-secondary:hover { background: #f3efe9; color: var(--ink); }
