/* ═══════════════════════════════════════════════════════
   Prevenzione360 — style.css
   Palette chiara: bianco/off-white, blu delicato, teal per le CTA
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --accent: #0d9488;
  --accent-soft: #f0fdfa;
  --danger-soft: #fef2f2;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, .btn { touch-action: manipulation; }

img, svg { display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; z-index: 2000;
}
.skip-link:focus { left: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 12px 26px; transition: all .25s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .36); }
.btn-primary:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .25); }
.btn-accent:hover { background: #0f766e; transform: translateY(-1px); }
.btn-patient {
  gap: 7px; background: #0f766e; color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, .22);
}
.btn-patient:hover {
  background: #115e59; color: #fff; transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(15, 118, 110, .3);
}
.btn-patient svg { flex: 0 0 auto; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.brand-text { font-weight: 500; letter-spacing: -.01em; }
.brand-text strong { font-weight: 800; color: var(--primary); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: all .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: all .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  background:
    radial-gradient(780px 430px at 10% 0%, rgba(37, 99, 235, .1), transparent 66%),
    radial-gradient(680px 390px at 92% 18%, rgba(13, 148, 136, .11), transparent 65%),
    linear-gradient(180deg, #f6faff 0%, var(--bg) 100%);
  padding: 92px 24px 68px;
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; opacity: .5;
}
.hero-orb--1 {
  width: 440px; height: 440px; left: -140px; top: -100px;
  background: radial-gradient(circle, rgba(147, 197, 253, .52), transparent 70%);
}
.hero-orb--2 {
  width: 400px; height: 400px; right: -110px; top: 40px;
  background: radial-gradient(circle, rgba(94, 234, 212, .42), transparent 70%);
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center; gap: clamp(48px, 7vw, 92px);
}
.hero-copy { text-align: left; }
.hero-kicker {
  display: inline-block; font-size: .76rem; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(240,253,250,.85);
  border: 1px solid #ccfbf1; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 820; letter-spacing: -.05em; line-height: 1.02;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 610px; margin: 0;
  font-size: 1.08rem; color: var(--ink-soft); line-height: 1.7;
}
.hero-sub strong { color: var(--ink); font-weight: 750; }

.hero-search { max-width: 610px; margin-top: 30px; }
.hero-search-label {
  display: block; margin: 0 0 8px 3px;
  color: var(--ink-soft); font-size: .78rem; font-weight: 650;
}
.search-box {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-md);
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), var(--shadow-md); }
.search-icon { color: var(--ink-mute); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1.02rem; font-family: inherit; color: var(--ink);
  min-width: 0; padding: 10px 0;
}
.search-box input::placeholder { color: var(--ink-mute); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  list-style: none; overflow: hidden; z-index: 50;
  text-align: left; display: none;
}
.search-suggestions.is-open { display: block; }
.search-suggestions li button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 20px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; color: var(--ink); text-align: left;
  transition: background .15s;
}
.search-suggestions li button:hover,
.search-suggestions li button.is-active { background: var(--primary-soft); }
.search-suggestions .sug-cat {
  margin-left: auto; font-size: .75rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px; flex-shrink: 0;
}
.search-suggestions .sug-empty { padding: 14px 20px; color: var(--ink-mute); font-size: .9rem; }

.hero-search-hint { margin-top: 14px; font-size: .85rem; color: var(--ink-mute); }

.hero-cta {
  display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap;
  margin-top: 30px;
}
.hero-cta .btn-ghost { background: rgba(255,255,255,.72); border-color: var(--border); }
.hero-cta .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.profile-preview {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 30px 80px rgba(30,64,175,.13), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.profile-preview::before {
  content: '';
  position: absolute; inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(37,99,235,.18), rgba(13,148,136,.05), transparent 60%);
}
.profile-preview-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.profile-preview-head > div { display: flex; flex-direction: column; gap: 3px; }
.profile-preview-head > div span { color: var(--ink-mute); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.profile-preview-head > div strong { font-size: 1.25rem; letter-spacing: -.025em; }
.profile-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; color: #047857; border: 1px solid #a7f3d0;
  border-radius: 999px; background: #ecfdf5; font-size: .7rem; font-weight: 750;
}
.profile-status i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.13); }
.profile-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 22px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px;
  background: var(--border);
}
.profile-metrics div { padding: 16px 8px; background: rgba(255,255,255,.92); text-align: center; }
.profile-metrics strong { display: block; color: var(--primary); font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; }
.profile-metrics span { display: block; margin-top: 6px; color: var(--ink-mute); font-size: .67rem; font-weight: 600; }
.profile-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.profile-areas span { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.area-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.area-dot--blue { background: #3b82f6; }
.area-dot--teal { background: #14b8a6; }
.area-dot--amber { background: #f59e0b; }
.area-dot--violet { background: #8b5cf6; }
.profile-prep {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 14px 16px;
  border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff;
}
.profile-prep > svg { flex: 0 0 auto; color: var(--primary); }
.profile-prep > div { display: flex; flex-direction: column; gap: 1px; }
.profile-prep strong { font-size: .8rem; }
.profile-prep span { color: var(--ink-soft); font-size: .72rem; }

.hero-badges {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px 42px;
  list-style: none; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,.2);
}
.hero-badges li {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
}
.hero-badges svg { color: var(--accent); }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ── Catalog tools ── */
.catalog-tools { margin-bottom: 20px; }
.catalog-search {
  position: relative; display: flex; align-items: center;
  max-width: 480px; margin: 0 auto 22px;
}
.catalog-search .search-icon { position: absolute; left: 16px; }
.catalog-search input {
  width: 100%; padding: 13px 18px 13px 46px;
  border: 1.5px solid var(--border); border-radius: 999px;
  font-family: inherit; font-size: 16px; /* >=16px: evita zoom iOS al focus */
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }

.category-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.chip {
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--ink-soft); font-family: inherit; font-size: .86rem; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.results-count { font-size: .85rem; color: var(--ink-mute); }

/* ── Exam panel (lista unificata) ── */
.exam-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); max-width: 860px; margin: 0 auto;
}
.exam-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, var(--bg));
}
.exam-panel-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

.exam-list { display: flex; flex-direction: column; }
.exam-row {
  display: flex; align-items: center; gap: 18px;
  width: 100%; padding: 20px 28px;
  border: none; border-bottom: 1px solid var(--border);
  background: none; font-family: inherit; text-align: left; cursor: pointer;
  transition: background .2s var(--ease);
}
.exam-row:last-child { border-bottom: none; }
.exam-row:hover, .exam-row:focus-visible { background: var(--primary-soft); }
.exam-row-idx {
  width: 30px; flex-shrink: 0;
  font-size: .78rem; font-weight: 700; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.exam-row-main { flex: 1; min-width: 0; }
.exam-row-name {
  font-size: 1rem; font-weight: 650; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 2px;
}
.exam-row-desc {
  font-size: .85rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.exam-row-cats { display: flex; gap: 6px; flex-shrink: 0; }
.exam-row-cats span {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px;
}
.exam-row-arrow { flex-shrink: 0; color: var(--ink-mute); transition: transform .2s var(--ease), color .2s; }
.exam-row:hover .exam-row-arrow, .exam-row:focus-visible .exam-row-arrow { transform: translateX(4px); color: var(--primary); }

.exam-panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 28px; border-top: 1px solid var(--border);
  background: var(--accent-soft);
}
.exam-panel-note { font-size: .85rem; color: #0f766e; font-weight: 500; }
.exam-panel .no-results { border: none; border-radius: 0; margin: 0; box-shadow: none; }

/* Featured cards */
.featured-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px; max-width: 640px; margin: 0 auto;
}
.featured-card {
  position: relative; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.featured-card .feat-flag {
  position: absolute; top: -10px; left: 24px;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.featured-card h3 { font-size: 1.15rem; font-weight: 700; }
.featured-card p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.featured-card .btn { width: 100%; }

/* Package card — il prodotto prenotabile */
.featured-card--package {
  padding: 36px 32px;
  border-color: #c7d7f5;
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
}
.featured-card--package h3 { font-size: 1.35rem; }
.feat-included { font-size: .85rem; color: var(--ink-mute); line-height: 1.6; }
.feat-included strong { color: var(--ink-soft); }
.feat-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.feat-meta span {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}

/* ── Included items ── */
.included-items {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  list-style: none; max-width: 860px; margin: 36px auto 0;
}
.included-items li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.inc-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.included-items strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.included-items p { font-size: .82rem; color: var(--ink-soft); line-height: 1.55; }

/* ── No results ── */
.no-results {
  text-align: center; padding: 48px 24px; color: var(--ink-soft);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg);
}

/* ── Wizard ── */
.wizard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.wizard-steps {
  display: flex; justify-content: center; gap: 10px;
  list-style: none; margin-bottom: 32px;
}
.wizard-dot {
  width: 34px; height: 6px; border-radius: 999px;
  background: var(--border); transition: background .3s;
}
.wizard-dot.is-active { background: var(--primary); }
.wizard-dot.is-done { background: var(--accent); }

.wizard-panel { min-height: 190px; }
.wizard-question { font-size: 1.2rem; font-weight: 700; text-align: center; margin-bottom: 24px; }
.wizard-options { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
.wizard-option {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-family: inherit; font-size: .98rem; font-weight: 500;
  color: var(--ink); cursor: pointer; text-align: left; width: 100%;
  transition: all .2s var(--ease);
}
.wizard-option:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(3px); }
.wizard-option svg { color: var(--ink-mute); flex-shrink: 0; }
.wizard-option:hover svg { color: var(--primary); }

.wizard-result { text-align: center; }
.wizard-result h3 { font-size: 1.15rem; margin-bottom: 8px; }
.wizard-result > p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.wizard-result-list { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto 20px; text-align: left; }
.wizard-result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
}
.wizard-result-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wizard-result-item strong { font-size: .95rem; }
.wizard-result-item small { font-size: .78rem; color: var(--ink-mute); }
.wizard-result-item .btn { padding: 8px 18px; font-size: .82rem; flex-shrink: 0; }
.wizard-result-item--pkg { border-color: var(--primary); background: var(--primary-soft); }
.wizard-result-item--pkg strong { color: var(--primary); }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 26px; }
.wizard-actions .btn { padding: 9px 20px; font-size: .85rem; }

.wizard-disclaimer {
  display: flex; align-items: flex-start; gap: 8px; justify-content: center;
  margin-top: 24px; font-size: .82rem; color: var(--ink-mute);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.wizard-disclaimer svg { flex-shrink: 0; margin-top: 3px; }

/* ── How it works ── */
.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; list-style: none; counter-reset: none;
}
.how-steps li {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem;
  margin-bottom: 16px;
}
.how-steps h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.how-steps p { font-size: .88rem; color: var(--ink-soft); }

.section-cta { text-align: center; margin-top: 48px; }
.cta-note { margin-top: 14px; font-size: .85rem; color: var(--ink-mute); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.faq-item.is-open { border-color: #c7d7f5; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 18px 22px; border: none; background: none;
  font-family: inherit; font-size: .98rem; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
}
.faq-question svg {
  flex-shrink: 0; color: var(--ink-mute);
  transition: transform .3s var(--ease);
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: .92rem; }

/* ── Exam detail modal ── */
.exam-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.exam-modal[hidden] { display: none; }
.exam-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); }
.exam-modal-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  max-width: 620px; width: 100%; max-height: min(86vh, 780px);
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: sticky; top: 14px; margin-left: calc(100% - 56px);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--bg); color: var(--ink-soft); font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 2; transition: all .2s;
}
.modal-close:hover { background: var(--border); color: var(--ink); }
.exam-modal-body { padding: 4px 34px 34px; }
.exam-modal-body h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.exam-modal-body .modal-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.exam-modal-body .modal-cats span {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px;
}
.exam-detail-section { margin-bottom: 18px; }
.exam-detail-section h3 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); margin-bottom: 6px;
}
.exam-detail-section p { font-size: .93rem; color: var(--ink-soft); }
.exam-modal-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--primary-soft); border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 14px 16px;
  font-size: .85rem; color: #1e40af; margin: 20px 0;
}
.exam-modal-note svg { flex-shrink: 0; margin-top: 2px; }
.exam-modal-cta .btn { width: 100%; padding: 15px; font-size: 1rem; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 40px; margin-top: 20px; }
.footer-inner { text-align: center; }
.footer-brand .brand-text { font-size: 1.1rem; }
.footer-logo { height: 72px; width: auto; display: inline-block; }
.footer-brand p { color: var(--ink-mute); font-size: .88rem; margin-top: 6px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 24px 0; }
.footer-nav a { color: var(--ink-soft); font-size: .9rem; }
.footer-disclaimer {
  max-width: 640px; margin: 0 auto 16px;
  font-size: .8rem; color: var(--ink-mute); line-height: 1.6;
}
.footer-legal { font-size: .8rem; color: var(--ink-mute); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Sticky mobile CTA ── */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.mobile-cta-bar .btn { width: 100%; padding: 14px; font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 680px; }
  .profile-preview { width: 100%; max-width: 620px; }
  .hero-badges { margin-top: 44px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .25s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: .8rem; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 18px 54px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.15rem); }
  .hero-sub { font-size: 1rem; line-height: 1.65; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-search { margin-top: 26px; }
  .search-box { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 12px; }
  .search-box input { flex: 1 1 100%; padding: 10px 8px 12px 36px; font-size: 16px; }
  .search-box .btn { width: 100%; }
  .search-box .search-icon { position: absolute; left: 20px; top: 24px; }
  .profile-preview { padding: 21px; border-radius: 22px; }
  .profile-metrics { margin: 18px 0; }
  .profile-metrics div { padding: 14px 4px; }
  .profile-areas { grid-template-columns: 1fr; gap: 9px; }
  .hero-badges { grid-template-columns: 1fr; justify-content: start; gap: 10px; margin-top: 36px; padding-top: 20px; }
  .section { padding: 60px 0; }
  .exam-row { padding: 16px 18px; gap: 12px; }
  .exam-row-desc { white-space: normal; }
  .exam-row-cats { display: none; }
  .exam-panel-head, .exam-panel-foot { padding: 16px 18px; }
  .exam-panel-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .exam-panel-foot .btn { width: 100%; }
  .included-items { grid-template-columns: 1fr; }
  .wizard { padding: 28px 18px; }
  .wizard-option { padding: 16px 18px; font-size: 1rem; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 76px; }

  /* Modale → bottom sheet nativa */
  .exam-modal { align-items: flex-end; padding: 0; }
  .exam-modal-card {
    max-width: 100%; max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: sheetIn .32s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .exam-modal-body { padding: 4px 22px 26px; }
}

/* Header stretto su schermi piccoli */
@media (max-width: 400px) {
  .header-inner { padding: 0 10px; gap: 6px; }
  .brand-text { font-size: 1rem; }
  .brand-logo { height: 38px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 9px; font-size: .72rem; }
  .btn-patient { gap: 0; }
  .btn-patient svg { display: none; }
  .nav-toggle { padding: 6px; }
}

@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
