/* ═══════════════════════════════════════════════════════
   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-partners {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 18px 36px;
  margin: 26px 0 8px; padding-top: 26px;
  border-top: 1px solid var(--border);
}
.footer-partners-label {
  width: 100%; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.footer-partners .partner-logo { height: 36px; width: auto; display: block; opacity: .85; }
.footer-partners .partner-logo:hover { opacity: 1; }

.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 {
    display: none;
    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 { display: flex; 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; }
}

:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --ink: #061b49;
  --ink-soft: #536987;
  --ink-mute: #8293aa;
  --border: #dbe8f7;
  --primary: #1769f5;
  --primary-soft: #edf5ff;
  --accent: #069b92;
  --accent-soft: #eafbf8;
  --shadow-sm: 0 4px 16px rgba(15, 55, 105, .06);
  --shadow-md: 0 16px 42px rgba(24, 73, 130, .1);
  --shadow-lg: 0 28px 80px rgba(15, 55, 105, .18);
}

body { background: #fff; overflow-x: hidden; }
.container { max-width: 1240px; }
.btn-primary {
  background: linear-gradient(135deg, #1769f5 0%, #246df4 58%, #1559e5 100%);
  box-shadow: 0 9px 24px rgba(23, 105, 245, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #0f5ee8, #1b60e9); }
.btn-ghost { border-color: #0c8f9a; color: #075d75; background: rgba(255,255,255,.76); }
.btn-ghost:hover { border-color: #087d88; color: #075d75; background: #fff; }
.btn-patient { background: #fff; color: #007d7a; border: 1.5px solid #08a19a; box-shadow: none; }
.btn-patient:hover { background: #edfffc; color: #006b69; border-color: #007f7b; box-shadow: 0 7px 18px rgba(6,155,146,.14); }

.site-header { background: rgba(255,255,255,.96); border-bottom-color: #eef3f8; }
.header-inner { max-width: 1240px; height: 78px; }
.brand { gap: 9px; min-width: 132px; }
.brand-symbol { position: relative; width: 34px; height: 34px; flex: 0 0 34px; margin-right: 10px; }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo2 { height: 34px; width: auto; display: block; flex: 0 0 auto; }
.brand-name { color: var(--ink); font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.main-nav { margin-left: auto; margin-right: auto; gap: 12px; }
.main-nav a { color: #18345f; font-size: .9rem; font-weight: 600; padding: 10px 14px; }
.main-nav a:hover { color: var(--primary); background: #f1f6ff; }
.header-actions .btn-sm { padding: 10px 20px; }

.hero {
  min-height: 620px;
  padding: 72px 24px 40px;
  background:
    linear-gradient(90deg, rgba(249,253,255,.99) 0%, rgba(249,253,255,.96) 37%, rgba(239,249,255,.84) 58%, rgba(225,244,252,.2) 100%),
    url('/esamidiprevenzione.com/background.jpg') center right / cover no-repeat;
  background-image:
    linear-gradient(90deg, rgba(249,253,255,.99) 0%, rgba(249,253,255,.96) 37%, rgba(239,249,255,.84) 58%, rgba(225,244,252,.2) 100%),
    image-set(url('/esamidiprevenzione.com/background.webp') type('image/webp'), url('/esamidiprevenzione.com/background.jpg') type('image/jpeg'));
  border-bottom: 1px solid #dcebf7;
}
.hero::after {
  content: '';
  position: absolute; width: 540px; height: 540px; left: 38%; bottom: -360px;
  border-radius: 50%; background: rgba(213,242,248,.6); pointer-events: none;
}
.hero-inner { max-width: 1240px; z-index: 1; }
.hero-layout { grid-template-columns: minmax(0, .95fr) minmax(420px, .82fr); gap: clamp(54px, 8vw, 120px); }
.hero-kicker { color: #087f79; background: #e5faf7; border-color: #c7f1eb; margin-bottom: 16px; padding: 6px 13px; font-size: .68rem; }
.hero h1 { max-width: 590px; color: var(--ink); font-size: clamp(3.2rem, 5.6vw, 5.45rem); font-weight: 850; line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; }
.hero-sub { max-width: 610px; color: #526887; font-size: 1.02rem; line-height: 1.68; }
.hero-cta { margin-top: 24px; }
.hero-cta .btn { min-width: 190px; padding: 14px 28px; }
.hero-search--hidden { display: none; }
.hero-trust { display: flex; gap: 38px; margin-top: 34px; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 10px; color: #536987; font-size: .74rem; font-weight: 600; line-height: 1.35; }
.trust-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #075d75; }

.profile-preview { padding: 26px; border: 1px solid rgba(207,226,246,.95); border-radius: 24px; background: rgba(255,255,255,.91); box-shadow: 0 24px 65px rgba(41,88,132,.15); }
.profile-preview::before { display: none; }
.profile-preview-head { padding-bottom: 18px; }
.profile-preview-head > div strong { max-width: 310px; color: var(--ink); font-size: 1.25rem; }
.profile-status { color: #048578; border-color: #b9eee6; background: #e9faf7; }
.profile-metrics { margin: 18px 0; border-color: #d6e6f8; background: #d6e6f8; }
.profile-metrics div { position: relative; padding: 12px 8px; }
.profile-metrics strong { color: #1769f5; font-size: 1.4rem; }
.metric-icon {
  position: relative;
  display: block;
  width: 30px; height: 30px;
  margin: 0 auto 7px; padding: 0; line-height: 0;
  color: #1769f5; background: linear-gradient(145deg, #eaf3ff, #f7fbff);
  border: 1px solid #d8e9ff; border-radius: 10px;
  box-shadow: 0 5px 12px rgba(23,105,245,.08);
}
.metric-icon svg {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  display: block;
}
.profile-areas { gap: 8px 24px; }
.profile-areas span { font-size: .75rem; }
.area-dot--slate { background: #6687b8; }
.profile-prep { margin-top: 18px; padding: 12px 14px; background: linear-gradient(90deg,#eef6ff,#e9f3ff); border-color: #d4e6fa; }

.section { padding: 92px 0; }
.section-head { max-width: 700px; }
.section-head h2 { color: var(--ink); font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.028em; }
.section-head--left { max-width: 620px; margin: 0 0 24px; text-align: left; }
.section-head--left h2 { margin-bottom: 8px; }
.section-head--left p { max-width: 610px; font-size: .94rem; line-height: 1.55; }
.section-eyebrow { display: inline-flex; padding: 5px 11px; margin-bottom: 8px; border-radius: 999px; background: #e8faf7; color: #087f79; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.profile-explorer { background: linear-gradient(180deg,#fff 0%,#f8fbff 100%); }
.profile-explorer-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 920px; gap: 52px; }
.catalog-tools { margin-bottom: 14px; }
.catalog-search { max-width: none; margin: 0 0 12px; }
.catalog-search input { border-color: #cfdff0; padding-top: 11px; padding-bottom: 11px; box-shadow: 0 3px 12px rgba(35,76,119,.04); }
.category-chips { justify-content: flex-start; flex-wrap: wrap; gap: 7px; overflow: visible; scrollbar-width: none; padding-bottom: 2px; }
.category-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 15px; font-size: .72rem; background: #fff; border-color: #d4e2f2; }
.exam-panel { max-width: none; border-color: #d4e2f2; border-radius: 16px; box-shadow: 0 12px 30px rgba(29,72,119,.08); }
.exam-panel-head { padding: 13px 19px; background: #f8fbff; }
.exam-panel-title { font-size: .65rem; }
.results-count { font-size: .72rem; }
.exam-row { gap: 13px; padding: 13px 19px; }
.exam-row-idx { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #eef5ff; color: #5a7ca7; font-size: .72rem; }
.exam-row-name { font-size: 1rem; }
.exam-row-desc { font-size: .875rem; line-height: 1.45; white-space: normal; }
.exam-row-cats span { color: #087f79; background: #e7faf6; font-size: .68rem; }
.exam-panel-foot { padding: 14px 19px; }
.exam-panel-foot .btn { padding: 9px 18px; font-size: .8rem; }

.profile-side-card { overflow: hidden; border: 1px solid #d4e6fa; border-radius: 18px; background: linear-gradient(145deg,#f8fbff 0%,#eaf4ff 100%); box-shadow: 0 18px 46px rgba(28,75,128,.1); }
.profile-side-card > :not(.side-card-services) { margin-left: 26px; margin-right: 26px; }
.side-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-top: 26px; margin-bottom: 18px; border-radius: 50%; color: #1769f5; background: #e5f0ff; }
.side-card-kicker { display: block; color: #1769f5; font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-side-card h3 { margin-top: 6px; color: var(--ink); font-size: 1.3rem; line-height: 1.14; letter-spacing: -.03em; }
.profile-side-card > p { margin-top: 10px; color: #5f7390; font-size: .8rem; line-height: 1.55; }
.profile-side-card > .btn { display: flex; margin-top: 22px; margin-bottom: 22px; }
.side-card-services { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #d4e6fa; background: rgba(255,255,255,.34); }
.side-card-services div { padding: 18px 8px; color: #087f79; text-align: center; }
.side-card-services div + div { border-left: 1px solid #d4e6fa; }
.side-card-services div > span { display: block; margin-bottom: 6px; font-size: 1.15rem; }
.side-card-services small { display: block; color: #58708e; font-size: .62rem; line-height: 1.45; }

#incluso { position: relative; overflow: hidden; background: #fff; }
#incluso::before, #incluso::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #f0f9fc; pointer-events: none; }
#incluso::before { left: -180px; top: -150px; }
#incluso::after { right: -170px; top: -170px; }
#incluso .container { position: relative; z-index: 1; }
#incluso .section-head { margin-bottom: 30px; }
#incluso .section-head p { font-size: 1.05rem; }
.package-detail-card { max-width: 1120px; margin: 0 auto; padding: 12px 30px 26px; border: 1.5px solid #bcdafe; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(28,75,128,.07); }
.package-detail-head { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 18px; border-bottom: 1px solid #dbe7f4; }
.package-detail-head > div { max-width: 680px; }
.package-label { display: inline-flex; transform: translateY(-5px); padding: 4px 14px; border-radius: 999px; color: #fff; background: #1769f5; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.package-detail-head h3 { margin-top: 2px; color: var(--ink); font-size: 1.75rem; letter-spacing: -.02em; }
.package-detail-head p { margin-top: 6px; color: #5b6f8c; font-size: .88rem; }
.transparent-price { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #07877f; background: #e9faf7; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.package-groups { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; padding: 20px 0; }
.package-group { display: flex; gap: 13px; padding: 0 20px; }
.package-group:first-child { padding-left: 4px; }
.package-group + .package-group { border-left: 1px solid #d9e5f1; }
.package-group-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #e8f2ff; color: #1769f5; font-size: 1.45rem; }
.package-group--teal .package-group-icon { color: #099b91; background: #e3faf6; }
.package-group--cyan .package-group-icon { color: #0c8ec6; background: #e9f7fd; }
.package-group h4 { margin-bottom: 7px; color: var(--ink); font-size: .84rem; }
.package-group ul { padding-left: 16px; color: #17345f; font-size: .75rem; line-height: 1.75; }
.package-group li::marker { color: #0aa8d8; }
.package-preparation { display: flex; gap: 30px; padding: 12px 18px; border-radius: 12px; background: linear-gradient(90deg,#eef6ff,#f2f8ff); }
.package-preparation span { display: inline-flex; align-items: center; gap: 9px; color: #17345f; font-size: .78rem; font-weight: 650; }
.package-preparation svg { color: #1769f5; }
.package-book { display: flex; width: 100%; margin-top: 14px; padding: 12px 20px; }
.included-items { max-width: 1120px; margin-top: 26px; gap: 18px; }
.included-items li { align-items: center; min-height: 120px; background: #fff; border-color: #cfe0f2; padding: 20px 22px; }
.inc-icon { width: 46px; height: 46px; border-radius: 50%; color: #1769f5; background: #e9f3ff; }
.inc-icon--teal { color: #07998f; background: #e5faf6; }
.included-items strong { color: var(--ink); }

.how-steps li, .wizard, .faq-item { border-color: #d9e6f3; box-shadow: var(--shadow-sm); }
.how-steps li { background: #fff; }
.site-footer { background: #f8fbff; }

@media (max-width: 1000px) {
  .hero { min-height: auto; background-position: right center; }
  .hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 660px; }
  .profile-preview { width: min(100%, 660px); }
  .profile-explorer-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-explorer-layout > * { min-width: 0; }
  .profile-side-card { max-width: 680px; width: 100%; margin: 0 auto; }
  .package-groups { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .package-group:nth-child(3) { grid-column: 1 / -1; border-left: none; border-top: 1px solid #d9e5f1; padding-top: 20px; }
}

@media (max-width: 860px) {
  .main-nav { inset: 78px 0 auto 0; }
  .brand { min-width: 0; }
  .main-nav { margin: 0; }
}

@media (max-width: 640px) {
  .header-inner { height: 66px; padding: 0 14px; justify-content: space-between; gap: 10px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-symbol { width: 27px; height: 29px; flex-basis: 27px; }
  .brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
  .brand-logo2 { height: 27px; }
  .brand-name { font-size: 1.25rem; }
  .header-actions { flex: 0 0 auto; gap: 8px; min-width: 0; }
  .header-actions > .btn-primary { display: none; }
  .header-actions .btn-patient { padding: 8px 11px; font-size: .72rem; }
  .main-nav { display: none; inset: 66px 0 auto 0; }
  .main-nav.is-open { display: flex; }
  .hero { padding: 52px 18px 36px; background-position: right center; }
  .hero::before { content: ''; position: absolute; inset: 0; background: rgba(248,253,255,.72); }
  .hero-inner, .hero-copy { min-width: 0; z-index: 1; }
  .hero h1 { max-width: 100%; font-size: clamp(2.4rem, 11.4vw, 3rem); line-height: .94; overflow-wrap: break-word; }
  .hero-sub { font-size: .95rem; }
  .hero-cta { display: grid; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .profile-preview { padding: 19px; background: rgba(255,255,255,.94); }
  .profile-preview-head { align-items: flex-start; }
  .profile-preview-head > div strong { font-size: 1.05rem; }
  .profile-status { padding: 5px 8px; font-size: .62rem; }
  .profile-areas { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .section-head--left { margin-bottom: 20px; }
  .section-head--left h2 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .profile-explorer-layout { gap: 28px; padding-left: 16px; padding-right: 16px; }
  .profile-explorer-main, .catalog-tools, .exam-panel, .profile-side-card { width: 100%; }
  .catalog-tools { margin-bottom: 12px; }
  .catalog-search { width: 100%; margin: 0 0 10px; }
  .catalog-search input { min-width: 0; padding: 12px 16px 12px 42px; font-size: 16px; }
  .category-chips {
    width: 100%; margin-right: -16px; padding: 0 16px 4px 0;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .chip { padding: 7px 13px; font-size: .68rem; }
  .exam-panel { border-radius: 18px; }
  .exam-row { padding: 14px 14px; }
  .exam-row-main { min-width: 0; }
  .exam-row-name, .exam-row-desc { overflow-wrap: anywhere; }
  .exam-row-desc { line-height: 1.45; }
  .exam-panel-foot { align-items: stretch; }
  .profile-side-card { max-width: 100%; }
  .profile-side-card > :not(.side-card-services) { margin-left: 20px; margin-right: 20px; }
  .side-card-services { grid-template-columns: 1fr; }
  .side-card-services div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
  .side-card-services div + div { border-left: none; border-top: 1px solid #d4e6fa; }
  .side-card-services div > span { margin: 0; }
  .package-detail-card { margin-left: 16px; margin-right: 16px; padding: 10px 18px 20px; }
  .package-detail-head { flex-direction: column; gap: 12px; }
  .package-detail-head h3 { font-size: 1.45rem; line-height: 1.15; }
  .transparent-price { align-self: flex-start; }
  .package-groups { grid-template-columns: 1fr; }
  .package-group, .package-group:first-child { padding: 18px 0; }
  .package-group + .package-group, .package-group:nth-child(3) { grid-column: auto; border-left: none; border-top: 1px solid #d9e5f1; }
  .package-preparation { flex-direction: column; gap: 9px; }
  .included-items { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 390px) {
  .header-actions .btn-patient svg { display: none; }
  .header-actions .btn-patient { padding: 8px 9px; }
  .hero-trust { grid-template-columns: 1fr; }
  .profile-metrics span:last-child { font-size: .6rem; }
}

/* ── Assistenza prenotazione ── */
.booking-help {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  max-width: 760px; margin: 34px auto 0; padding: 22px 24px;
  background: #fff; border: 1px solid #d4e6fa; border-radius: 18px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.booking-help strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.booking-help p { margin-top: 4px; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.booking-help .btn { flex: 0 0 auto; }

.support-card {
  background: var(--surface); border: 1px solid #d4e6fa; border-radius: 22px;
  padding: clamp(26px, 5vw, 44px); box-shadow: var(--shadow-md);
}
.support-card-head { max-width: 640px; margin-bottom: 28px; }
.support-card-head h2 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.028em; }
.support-card-head p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

.support-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-field { display: flex; flex-direction: column; gap: 7px; }
.support-field--full { grid-column: 1 / -1; }
.support-field label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.support-field label span[aria-hidden] { color: #dc2626; }
.support-field input,
.support-field textarea {
  width: 100%; border: 1.5px solid #d4e2f2; border-radius: 12px;
  background: #fbfdff; color: var(--ink); font-family: inherit; font-size: 16px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.support-field textarea { min-height: 132px; resize: vertical; }
.support-field input:focus,
.support-field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 105, 245, .1);
}
/* Firefox mostra i required vuoti con bordo rosso :invalid — disattivo finché non inviato */
.support-field input:invalid,
.support-field textarea:invalid,
.support-field input:-moz-ui-invalid,
.support-field textarea:-moz-ui-invalid {
  box-shadow: none;
}
.support-field small { color: var(--ink-mute); font-size: .72rem; }
.support-honeypot {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important;
}
.support-privacy {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0 16px; color: var(--ink-soft); font-size: .8rem; line-height: 1.5;
}
.support-privacy input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); }
.support-form-status {
  display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  font-size: .88rem; font-weight: 600;
}
.support-form-status.is-success { display: block; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.support-form-status.is-error { display: block; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.support-submit { width: 100%; padding: 14px 24px; }
.support-submit[disabled] { opacity: .68; cursor: wait; transform: none; }
.support-noscript { margin-top: 14px; color: var(--ink-soft); font-size: .82rem; }

@media (max-width: 640px) {
  .booking-help { flex-direction: column; align-items: stretch; margin-left: 16px; margin-right: 16px; }
  .booking-help .btn { width: 100%; }
  .support-card { padding: 24px 18px; }
  .support-form-grid { grid-template-columns: 1fr; }
}

/* ── Selettore lingua ── */
.lang-switch { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  color: var(--ink-soft); font-family: inherit; font-size: .8rem; font-weight: 600;
  transition: all .2s var(--ease);
}
.lang-btn:hover { color: var(--ink); background: var(--surface); border-color: var(--ink-mute); }
.lang-btn svg { flex: 0 0 auto; }
.lang-btn span { letter-spacing: .04em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 148px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 40, 70, .16);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; width: 100%;
  padding: 9px 12px; border: none; border-radius: 9px;
  background: none; color: var(--ink-soft); cursor: pointer;
  font-family: inherit; font-size: .86rem; font-weight: 500; text-align: left;
  transition: background .15s, color .15s;
}
.lang-menu button:hover { background: var(--bg); color: var(--ink); }
.lang-menu button[aria-selected="true"] { color: var(--primary); font-weight: 700; background: var(--primary-soft); }

@media (max-width: 640px) {
  .lang-btn { padding: 8px; }
  .lang-btn span { display: none; }
  .lang-menu { right: -4px; }
  .header-actions .btn-patient { padding: 8px; gap: 0; }
  .header-actions .btn-patient span { display: none; }
  .header-actions .btn-patient svg { display: block; }
}

/* ═══════════════════════════════════════════════════════
   Widget WhatsApp (index) + link FAQ → info-esami
   ═══════════════════════════════════════════════════════ */
.faq-more { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }
.faq-more a { color: var(--primary); font-weight: 600; }
.faq-more a:hover { text-decoration: underline; }

.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

.wa-fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.42);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPulse {
  0%   { box-shadow: 0 4px 18px rgba(37,211,102,.42), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 4px 18px rgba(37,211,102,.42), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 18px rgba(37,211,102,.42), 0 0 0 0 rgba(37,211,102,0); }
}

/* Card chat stile WhatsApp */
.wa-chat-card {
  position: absolute; bottom: 72px; right: 0; width: 320px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background: #efeae2;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(.92);
  pointer-events: none;
  transition: opacity .25s ease, transform .28s cubic-bezier(.34,1.4,.64,1);
}
.wa-chat-card.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.wa-chat-head {
  display: flex; align-items: center; gap: 10px;
  background: #075e54; color: #fff; padding: 12px 14px;
}
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wa-avatar img { width: 30px; height: 30px; object-fit: contain; }
.wa-chat-head-text { display: flex; flex-direction: column; line-height: 1.25; }
.wa-chat-head-text strong { font-size: .92rem; }
.wa-online { font-size: .72rem; opacity: .85; }
.wa-online::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #4ade80; margin-right: 5px;
}
.wa-close {
  margin-left: auto; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; opacity: .8;
}
.wa-close:hover { opacity: 1; }

.wa-chat-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.wa-bubble {
  max-width: 85%;
  background: #fff; border-radius: 10px; border-top-left-radius: 2px;
  padding: 9px 12px; font-size: .87rem; color: #111b21; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(8px);
}
.wa-chat-card.is-visible .wa-bubble { animation: waBubbleIn .3s ease forwards; }
.wa-chat-card.is-visible .wa-bubble:nth-child(1) { animation-delay: .25s; }
.wa-chat-card.is-visible .wa-bubble:nth-child(2) { animation-delay: .55s; }
.wa-chat-card.is-visible .wa-bubble:nth-child(3) { animation-delay: .85s; }
@keyframes waBubbleIn { to { opacity: 1; transform: none; } }

.wa-chat-foot { padding: 0 14px 14px; }
.wa-open-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; border-radius: 999px;
  padding: 12px; font-size: .92rem; font-weight: 650; text-decoration: none;
  transition: background .2s ease;
}
.wa-open-btn:hover { background: #1fba59; text-decoration: none; }

@media (max-width: 640px) {
  /* Sopra la mobile-cta-bar (~76px + safe-area) */
  .wa-widget { bottom: calc(88px + env(safe-area-inset-bottom)); right: 14px; }
  .wa-chat-card { width: calc(100vw - 28px); bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
  .wa-chat-card { transition: none; }
  .wa-chat-card.is-visible .wa-bubble { animation: none; opacity: 1; transform: none; }
}
