/* ==========================================================================
   Poliambulatorio Analysis — foglio di stile
   Struttura: 1. Font  2. Token  3. Base  4. Layout  5. Componenti
              6. Header/Nav  7. Footer  8. Pagine  9. Cookie  10. Utility
   ========================================================================== */

/* 1. FONT ---------------------------------------------------------------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

/* 2. TOKEN --------------------------------------------------------------- */
:root {
  --navy: #132573;
  --navy-700: #0d1b58;
  --navy-050: #eef0f8;
  --ink: #142940;
  --text: #61656a;
  --muted: #8a8d91;
  --green: #23a455;
  --green-btn: #1b8a46;
  --green-btn-hover: #157339;
  --green-050: #eaf6ee;
  --bg: #f8f8f8;
  --bg-warm: #f7f6f4;
  --white: #fff;
  --line: #e4e6ea;
  --line-strong: #cfd3d9;
  --footer: #171a21;

  --font-head: "halyard-display", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius: 10px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 41, 64, .06), 0 1px 3px rgba(20, 41, 64, .05);
  --shadow: 0 6px 24px rgba(20, 41, 64, .08), 0 2px 6px rgba(20, 41, 64, .04);
  --shadow-lg: 0 24px 60px rgba(20, 41, 64, .14);
  --section: clamp(64px, 8vw, 112px);
  --header-h: 88px;
  --topbar-h: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 767px) { :root { --gutter: 16px; --header-h: 68px; } }

/* 3. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.68; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
@media (max-width: 767px) { body { font-size: 16px; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--green-btn); }
strong, b { font-weight: 700; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); font-weight: 500; line-height: 1.18; letter-spacing: -.005em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: #fff; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.skip-link:focus { top: 12px; color: #fff; }

/* 4. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.section--white { background: var(--white); }
.center { text-align: center; }
.spacer-lg { height: clamp(48px, 6vw, 80px); }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1023px) { .layout-aside { grid-template-columns: 1fr; } }

/* 5. COMPONENTI ---------------------------------------------------------- */
.ui-icon { width: 1.25em; height: 1.25em; flex: none; }
.spec-icon { width: 100%; height: 100%; color: var(--green); }

.eyebrow { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.eyebrow--light { color: rgba(255, 255, 255, .9); }
.display-h { font-size: clamp(1.85rem, 3.4vw, 2.9rem); line-height: 1.12; margin-bottom: .55em; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.12; margin-bottom: clamp(28px, 4vw, 48px); }
.text-green { color: var(--green); }

/* bottoni */
.btn {
  --b-bg: var(--navy); --b-fg: #fff; --b-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 28px; border: 1.5px solid var(--b-bd); border-radius: var(--radius-sm);
  background: var(--b-bg); color: var(--b-fg); font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ui-icon { width: 18px; height: 18px; margin-left: -2px; }
.btn:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(19, 37, 115, .18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--navy:hover { --b-bg: var(--navy-700); --b-bd: var(--navy-700); }
.btn--green { --b-bg: var(--green-btn); --b-bd: var(--green-btn); }
.btn--green:hover { --b-bg: var(--green-btn-hover); --b-bd: var(--green-btn-hover); box-shadow: 0 8px 20px rgba(27, 138, 70, .22); }
.btn--outline { --b-bg: transparent; --b-fg: var(--navy); --b-bd: var(--navy); }
.btn--outline:hover { --b-bg: var(--navy); --b-fg: #fff; }
.btn--ghost { --b-bg: rgba(255, 255, 255, .08); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .7); backdrop-filter: blur(4px); }
.btn--ghost:hover { --b-bg: #fff; --b-fg: var(--navy); --b-bd: #fff; }
.btn--light { --b-bg: #f1f2f4; --b-fg: var(--ink); --b-bd: #f1f2f4; }
.btn--light:hover { --b-bg: #e6e8eb; --b-bd: #e6e8eb; --b-fg: var(--ink); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 11px 20px; font-size: 12px; letter-spacing: .12em; }
.btn--lg { min-height: 54px; padding: 16px 32px; }
.btn--block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.link-arrow .ui-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--green-btn); }
.link-arrow:hover .ui-icon { transform: translateX(4px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.round-arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: all .25s var(--ease); }
.round-arrow .ui-icon { width: 16px; height: 16px; }

.phone-pill { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 19px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.phone-pill__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; transition: transform .25s var(--ease); }
.phone-pill__ico .ui-icon { width: 19px; height: 19px; }
.phone-pill:hover { color: var(--green-btn); }
.phone-pill:hover .phone-pill__ico { transform: rotate(-10deg) scale(1.05); }
.phone-pill--block { display: flex; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn .ui-icon { width: 20px; height: 20px; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.card--pad { padding: clamp(24px, 4vw, 48px); }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* prose: testi lunghi delle pagine */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 0; }
.prose h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); margin-top: 1.7em; margin-bottom: .55em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: .45em; }
.prose h4.as-h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 0; }
.prose ul { list-style: none; margin: 0 0 1.25em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--green); }
.prose ul.cols-2 { columns: 2; column-gap: 40px; }
.prose ul.cols-3 { columns: 3; column-gap: 32px; }
.prose ul.cols-2 li, .prose ul.cols-3 li { break-inside: avoid; }
@media (max-width: 599px) { .prose ul.cols-2, .prose ul.cols-3 { columns: 1; } }
@media (min-width: 600px) and (max-width: 767px) { .prose ul.cols-3 { columns: 2; } }
.prose a { font-weight: 500; }
.prose strong { color: #4b4f55; }
.prose .lead { font-size: 1.1em; color: var(--ink); }

.article > section { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.article > section:last-of-type { border-bottom: 0; }
.article > section > :first-child { margin-top: 0; }

/* FAQ */
.faq { margin: 8px 0 clamp(40px, 5vw, 56px); padding: 0 !important; border: 0 !important; }
.faq__title { margin: 0 0 18px !important; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--navy); }
.faq__sign { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-050); color: var(--green-btn); transition: transform .3s var(--ease), background .3s; }
.faq__sign .ui-icon { width: 16px; height: 16px; }
.faq__item[open] .faq__sign { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq__answer { padding: 0 24px 22px; }
.faq__answer > :last-child { margin-bottom: 0; }

/* booking box (CTA "Sei interessato…") */
.booking-box { border: 2px solid var(--green); border-radius: var(--radius); background: var(--white); padding: clamp(28px, 4vw, 44px); text-align: center; }
.booking-box__title { color: var(--green-btn); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .3em; }
.booking-box p { margin-bottom: 22px; }
.booking-box__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.phone-big { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--ink); text-decoration: none; }
.phone-big__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); }
.phone-big__ico .ui-icon { width: 20px; height: 20px; }
.phone-big:hover { color: var(--green-btn); }

/* avatar medici */
.avatar { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--navy-050); flex: none; }
.avatar--sm { width: 84px; height: 84px; }
.avatar--md { width: 56px; height: 56px; }
.avatar--xs { width: 36px; height: 36px; }
.avatar--initials { display: inline-grid; place-items: center; background: linear-gradient(145deg, #eef0f8, #dfe3f1); color: var(--navy); font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(19, 37, 115, .08); }
.avatar--initials span { font-size: 36px; line-height: 1; }
.avatar--sm.avatar--initials span { font-size: 26px; }
.avatar--md.avatar--initials span { font-size: 18px; }
.avatar--xs.avatar--initials span { font-size: 12.5px; }

/* mappa con consenso */
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: #e9ecef; min-height: 360px; height: 100%; }
.map--tall { min-height: 380px; margin-top: 28px; }
.map--side { height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: 16px; }
.map--side .map__addr { display: none; }
.map { overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px;
  background: #edf0f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Crect width='600' height='600' fill='%23edf0f3'/%3E%3Cg fill='%23e2e8e4'%3E%3Cpath d='M40 60h150v110H40zM230 40h120v80H230zM400 70h160v120H400zM60 230h110v140H60zM420 260h130v90H420zM70 440h170v110H70zM330 420h90v130H330zM460 410h110v150H460z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-width='16' d='M-20 200C120 190 220 215 300 300S470 420 640 400'/%3E%3Cpath stroke-width='12' d='M210 -20c10 120-30 230 0 330s70 200 60 320'/%3E%3Cpath stroke-width='9' d='M-20 400c150 10 260-30 360-80M380 -20c-10 110 40 170 120 230'/%3E%3Cpath stroke-width='7' d='M0 520c120-20 210 10 300 60M520 640c-20-80-10-160 80-220M30 -10c40 90 20 160-40 210'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23cfe7d6' stroke-width='18' stroke-linecap='round' d='M-20 120c140 40 240-20 380 20s200 0 260-30'/%3E%3C/svg%3E") center / cover no-repeat; }
.map__placeholder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 75%); }
.map__placeholder > * { position: relative; }
.map__pin { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(19,37,115,.3); }
.map__pin .ui-icon { width: 24px; height: 24px; }
.map__addr { margin: 0; color: var(--ink); line-height: 1.45; }
.map__note { margin: 0; font-size: 13px; color: var(--muted); max-width: 320px; }
.map__note a { white-space: nowrap; color: var(--muted); }
.map__note .ui-icon { display: inline; width: 13px; height: 13px; vertical-align: -1px; }
.map.is-loaded .map__placeholder { display: none; }

/* form */
.form { display: grid; gap: 4px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field__ico { position: absolute; left: 0; top: 17px; color: var(--muted); pointer-events: none; }
.field__ico .ui-icon { width: 20px; height: 20px; }
.field__input { width: 100%; padding: 16px 4px 14px 34px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s var(--ease); -webkit-appearance: none; appearance: none; }
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.field__input:focus + .field__ico, .field:focus-within .field__ico { color: var(--navy); }
textarea.field__input { resize: vertical; min-height: 110px; line-height: 1.5; }
.field.is-invalid .field__input { border-bottom-color: #c0392b; box-shadow: 0 1px 0 0 #c0392b; }
.field.is-invalid .field__ico { color: #c0392b; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 8px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.check.is-invalid span { color: #c0392b; }
.form__error { margin: 4px 0 0; color: #c0392b; font-size: 14px; font-weight: 500; }
.form .btn { justify-self: start; margin-top: 14px; }
.form-intro { margin-bottom: 8px; }

/* chips e filtri */
.filter, .team__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.filter__field { position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 460px; }
.filter__field .ui-icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.filter__field input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 15.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.filter__field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 37, 115, .08); }
.filter__count { margin: 0; font-size: 14px; color: var(--muted); }
.filter__empty { margin: 24px 0 0; padding: 24px; text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
[data-filter-item][hidden] { display: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: all .2s var(--ease); }
.chip:hover, .chip.is-active { border-color: var(--green); color: var(--green-btn); background: var(--green-050); }
.chip[hidden] { display: none; }

/* schede specialità */
.spec-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.spec-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: clamp(36px, 4vw, 52px); }
@media (max-width: 1100px) { .spec-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .spec-grid, .spec-grid--4 { grid-template-columns: 1fr; gap: 14px; } }
.spec-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); isolation: isolate; }
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.spec-card__num { position: absolute; right: 18px; top: 2px; z-index: -1; font-family: var(--font-head); font-size: 88px; font-weight: 500; line-height: 1; color: #f2f3f5; letter-spacing: -.03em; transition: color .3s var(--ease); }
.spec-card:hover .spec-card__num { color: var(--green-050); }
.spec-card__ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; padding: 15px; border-radius: 18px; background: var(--green-050); }
.spec-card__ico svg { width: 100%; height: 100%; }
.spec-card__title { font-size: 1.3rem; margin: 0 0 8px; }
.spec-card__title a { color: var(--ink); text-decoration: none; }
.spec-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.spec-card:hover .spec-card__title a { color: var(--navy); }
.spec-card__text { font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.spec-card__more { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--ink); }
.spec-card:hover .round-arrow { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 6. HEADER / NAV -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: transform .35s var(--ease); }
@media (min-width: 768px) { .topbar-hidden .site-header { transform: translateY(calc(-1 * var(--topbar-h))); } }
.topbar { background: var(--bg-warm); font-size: 13px; color: var(--text); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--topbar-h); gap: 16px; }
.topbar ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; }
.topbar__info li { display: flex; align-items: center; gap: 8px; }
.topbar__info .ui-icon { width: 16px; height: 16px; color: var(--muted); }
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--navy); }
.topbar__links { gap: 18px !important; }
.topbar__addr { display: flex; align-items: center; gap: 8px; margin-right: 10px; }
.topbar__addr .ui-icon { width: 16px; height: 16px; color: var(--muted); }
.topbar .social .ui-icon { width: 17px; height: 17px; }
.mainbar { background: #fff; transition: box-shadow .3s var(--ease); }
.is-scrolled .mainbar { box-shadow: 0 10px 30px -12px rgba(20, 41, 64, .12); }
.mainbar__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.is-scrolled .mainbar__inner { height: 74px; }
.brand { flex: none; display: block; }
.brand img { width: 196px; height: auto; }
@media (max-width: 767px) { .brand img { width: 150px; } .is-scrolled .mainbar__inner { height: var(--header-h); } }
.mainbar__actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; position: relative; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link[aria-current] { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__toggle { display: inline-grid; place-items: center; width: 22px; height: 30px; margin-left: -10px; margin-right: 2px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.nav__toggle .ui-icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav__mobile-cta { display: none; }
.card .section-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 14px; }

.nav__sub { position: absolute; top: calc(100% + 10px); left: 0; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .nav__toggle .ui-icon, .has-sub.is-open > .nav__toggle .ui-icon { transform: rotate(180deg); }
.drop { min-width: 240px; padding: 10px; }
.drop ul { list-style: none; margin: 0; }
.drop a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.drop a:hover, .drop a[aria-current] { background: var(--bg); color: var(--navy); }
.mega { left: 50%; width: min(860px, calc(100vw - 48px)); padding: 24px 24px 18px; transform: translate(-50%, 8px); }
.has-sub:hover > .mega, .has-sub:focus-within > .mega, .has-sub.is-open > .mega { transform: translate(-50%, 0); }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 10px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega__title { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.mega__head .link-arrow { font-size: 14px; }
.mega__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; margin: 0; }
.mega__grid a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.mega__grid a:hover, .mega__grid a[aria-current] { background: var(--green-050); color: var(--navy); }
.mega__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--bg); }
.mega__grid a:hover .mega__ico { background: #fff; }

.burger, .show-sm { display: none; }
.burger__close { display: none; }

@media (max-width: 1280px) and (min-width: 1181px) {
  .phone-pill__num { display: none; }
  .mainbar__actions .phone-pill { gap: 0; }
  .nav__link { padding: 0 10px; }
}
@media (max-width: 1180px) {
  .burger { display: inline-grid; }
  .nav { position: fixed; inset: calc(var(--topbar-h) + var(--header-h)) 0 0 0; z-index: 99; margin: 0; padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .is-scrolled .nav { inset-block-start: calc(var(--topbar-h) + 74px); }
  .topbar-hidden .nav { inset-block-start: 74px; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .burger__open { display: none; }
  .menu-open .burger__close { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; height: 58px; padding: 0 4px; font-size: 18px; }
  .nav__link::after { display: none; }
  .nav__toggle { width: 48px; height: 48px; margin: 0; border-radius: 50%; color: var(--ink); }
  .nav__toggle .ui-icon { width: 20px; height: 20px; }
  .nav__sub, .mega { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none !important; border: 0; box-shadow: none; padding: 0 0 14px; }
  .nav__sub::before { display: none; }
  .has-sub.is-open > .nav__sub { display: block; }
  .has-sub:hover > .nav__toggle .ui-icon { transform: none; }
  .has-sub.is-open > .nav__toggle .ui-icon { transform: rotate(180deg); }
  .mega__head { display: none; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .drop { padding: 0 0 14px; }
  .nav__mobile-cta { display: grid; gap: 14px; padding-top: 24px; }
  .nav__mobile-cta .phone-pill { justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .nav__mobile-hours { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
  .nav__mobile-hours .ui-icon { width: 16px; height: 16px; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .topbar { display: none; }
  .nav { inset-block-start: var(--header-h) !important; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-grid; }
  .mainbar__actions { gap: 10px; }
  .mega__grid { grid-template-columns: 1fr; }
}
@media (max-width: 459px) { .hide-xs { display: none !important; } }

/* 7. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--footer); color: #a9adb6; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 56px); }
@media (max-width: 959px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__name { font-family: var(--font-head); font-size: 1.65rem; font-weight: 500; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.footer__claim { max-width: 300px; }
.footer__title { margin: 0 0 14px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; color: #fff; }
.site-footer a { color: #d6d9df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__phone { font-size: 1.15rem; }
.footer__phone strong { color: #fff; }
.footer__hours span { display: block; }
.footer__social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; transition: all .25s var(--ease); }
.footer__social a:hover { background: #fff; color: var(--footer); text-decoration: none; }
.footer__social .ui-icon { width: 18px; height: 18px; }
.footer__links { list-style: none; margin: 0; }
.footer__links li { margin-bottom: 8px; }
.site-footer .btn { color: #fff; }
.site-footer .btn:hover { text-decoration: none; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .09); padding-block: 26px 30px; font-size: 13.5px; line-height: 1.6; text-align: center; }
.footer__legal p { margin: 0 0 6px; }
.footer__bottom { margin-top: 10px !important; }
.footer__bottom .linklike { color: #d6d9df; text-decoration: none; }
.footer__bottom .linklike:hover { color: #fff; text-decoration: underline; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top .ui-icon { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* 8. PAGINE -------------------------------------------------------------- */
/* hero home */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 78vh, 760px); color: #fff; overflow: hidden; isolation: isolate; background: #2b3540; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 105% at 50% 46%, rgba(10, 28, 48, .40) 0%, rgba(10, 28, 48, .26) 58%, rgba(10, 28, 48, .06) 100%), linear-gradient(180deg, rgba(20, 41, 64, .28) 0%, rgba(20, 41, 64, .28) 55%, rgba(20, 41, 64, .52) 100%); }
.hero__inner { position: relative; text-align: center; padding-block: 80px; }
.hero__title { color: #fff; font-size: clamp(2.8rem, 7.4vw, 6.1rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 0 auto 34px; max-width: 560px; color: rgba(255, 255, 255, .95); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; color: #fff; }
.hero__scroll .ui-icon { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) { .hero__scroll .ui-icon { animation: nudge 2.2s var(--ease) infinite; } }
/* comparsa della hero: dissolvenza dell'immagine, zoom che si posa, testi che salgono */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-fade 1.2s var(--ease) both, hero-settle 16s cubic-bezier(.16, .62, .24, 1) both; will-change: opacity, transform; }
  .hero__title, .hero__text, .hero__actions { animation: hero-rise .9s var(--ease) both; }
  .hero__title { animation-delay: .20s; }
  .hero__text { animation-delay: .34s; }
  .hero__actions { animation-delay: .46s; }
  .hero__scroll { animation: hero-fade .8s var(--ease) .9s both; }
  .hero__scroll .ui-icon { animation: nudge 2.2s var(--ease) 1.7s infinite; }
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-settle { from { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero--page { min-height: clamp(380px, 50vh, 520px); }
.hero__inner--center { display: flex; flex-direction: column; align-items: center; }
.hero__title--page { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; }
.hero .crumbs ol, .hero .crumbs a, .hero .crumbs [aria-current] { color: rgba(255, 255, 255, .85); }
.hero .crumbs li + li::before { color: rgba(255, 255, 255, .5); }

/* page hero (pagine interne) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--green-050) 0%, rgba(234, 246, 238, 0) 70%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(32px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.page-hero__ico { display: grid; place-items: center; width: 68px; height: 68px; padding: 15px; margin-bottom: 20px; border-radius: 18px; background: var(--green-050); }
.page-hero__title { margin-bottom: 0; }
.page-hero__lead { max-width: 720px; margin: 16px 0 0; font-size: 1.08rem; }

/* intro home */
.intro__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__micro { display: block; width: 92px; color: var(--green); margin-bottom: 36px; }
.intro__micro svg { width: 100%; height: auto; }
.hours-box .eyebrow { margin-bottom: 10px; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.hours dt { font-weight: 500; color: var(--ink); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours--inline > div { justify-content: flex-start; border: 0; padding: 0; gap: 8px; }
.hours--inline dt::after { content: ":"; }
.hours-box__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.intro__main h1 { max-width: 760px; }
.intro__main .btn { margin-top: 12px; }
@media (max-width: 859px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__side { order: 2; display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: center; }
  .intro__micro { width: 60px; margin: 0; }
}

/* about home */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding-bottom: 90px; }
.about__media > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.stats { position: absolute; right: -24px; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: min(560px, 90%); padding: 36px 40px; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.stat__label { margin: 0 0 6px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; color: #fff; }
.stat__num { margin: 0 0 6px; font-family: var(--font-head); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__text { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
@media (max-width: 959px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { right: 16px; }
}
@media (max-width: 599px) {
  .about__media { padding-bottom: 0; }
  .stats { position: relative; right: auto; width: 100%; margin-top: -40px; padding: 28px 24px; gap: 16px; }
  .about__media > img { width: calc(100% - 32px); margin-inline: auto; }
  .stat__label { font-size: .92rem; white-space: nowrap; }
}

/* split home */
.split + .split { padding-top: 0; }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split--rev .split__body { order: 0; }
@media (max-width: 859px) { .split__grid { grid-template-columns: 1fr; } .split--rev .split__media { order: -1; } }
.duo { position: relative; padding: 0 0 70px 0; }
.duo__a { width: 78% !important; aspect-ratio: 1 / 1 !important; margin-left: auto; }
.duo__b { position: absolute; left: 0; bottom: 0; width: 52% !important; aspect-ratio: 4 / 3 !important; border: 8px solid #fff; box-shadow: var(--shadow-lg); }

/* contatto home */
.contact-home__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-home__map .map { height: 100%; min-height: 440px; }
.contact-home .section-title { margin-bottom: 12px; }
@media (max-width: 859px) { .contact-home__grid { grid-template-columns: 1fr; } .contact-home__map { order: 2; } }

/* layout con colonna laterale */
.aside__sticky { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; }
.side-title { margin: 0 0 16px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.doc-card { padding: 26px 24px; border-top: 3px solid var(--green); }
.doc-card .side-title { text-align: center; margin-bottom: 20px; }
.doc-card__list { list-style: none; display: grid; gap: 20px; margin: 0; }
.doc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.doc__name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
.doc__role { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.doc-card__list--duo { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.doc-card__list--duo .avatar { width: 104px; height: 104px; }
.doc-card__list--duo .doc__name { font-size: 15px; }
.doc-card__list--compact { gap: 12px; }
.doc-card__list--compact .doc { flex-direction: row; text-align: left; gap: 14px; }
.side-book { padding: 22px 24px; display: grid; gap: 12px; }
.side-book .side-title { margin-bottom: 4px; }
.side-nav { padding: 6px 24px; }
.side-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; margin: 0; cursor: pointer; list-style: none; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary .ui-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.side-nav details[open] summary .ui-icon { transform: rotate(180deg); }
.side-nav ul { list-style: none; margin: 0 0 14px; }
.side-nav li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--text); font-size: 15px; text-decoration: none; transition: all .2s; }
.side-nav li a:hover { color: var(--navy); border-left-color: var(--navy); }
.side-nav li a[aria-current] { color: var(--ink); font-weight: 700; border-left-color: var(--green); }
.side-figure { margin: 0; overflow: hidden; }
.side-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.side-info { padding: 8px 24px; }
.side-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; }
.side-block h5 { margin: 0 0 10px; font-size: 1.05rem; }
.side-block p { margin: 0 0 8px; font-size: 15px; }
.side-block p:last-child { margin-bottom: 0; }
.side-block .small { font-size: 14px; color: var(--muted); }
.side-hours .hours { margin-bottom: 10px; }
.side-contact { padding: 22px 24px 24px; }
.side-contact__h { font-size: 1.15rem; margin: 0 0 16px; }
.side-contact__addr { display: flex; gap: 10px; margin: 16px 0 0; font-size: 15px; color: var(--ink); }
.side-contact__addr .ui-icon { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
@media (max-width: 1023px) { .aside__sticky { position: static; } .layout-aside .aside { order: 2; } .page-specialty .side-book { display: none; } }

/* striscia medici (mobile) */
.doc-strip { display: none; background: var(--white); border-bottom: 1px solid var(--line); }
.doc-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 14px; }
.doc-strip__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-strip__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.doc-strip__list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.doc-strip__list em { font-style: normal; color: var(--muted); font-weight: 400; }
@media (max-width: 1023px) { .doc-strip { display: block; } .doc-card { display: none; } }

/* info cards (lab) */
.info-cards { display: grid; gap: 16px; margin: 24px 0 0; }
.info-cards--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .info-cards--2 { grid-template-columns: 1fr; } }
.info-card { padding: 26px 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--green-050); color: var(--green-btn); }
.info-card__icon .ui-icon { width: 22px; height: 22px; }
.info-card h4 { margin: 0 0 8px !important; font-size: 1.15rem; }
.info-card p { margin: 0; font-size: 15.5px; }

/* elenco test laboratorio */
.test-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.test-index a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500 !important; text-decoration: none; transition: all .2s var(--ease); }
.test-index a:hover { border-color: var(--green); color: var(--green-btn); background: var(--green-050); }
.test-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767px) { .test-list { grid-template-columns: 1fr; } }
.test { display: flex; flex-direction: column; padding: 24px 24px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 40px); transition: box-shadow .3s var(--ease), border-color .3s; }
.test:target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }
.test h4 { margin: 0 0 8px !important; font-size: 1.15rem; }
.test p { font-size: 15.5px; margin-bottom: 14px; }
.test__docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 6px; background: var(--navy-050); color: var(--navy) !important; font-size: 13.5px; font-weight: 700 !important; text-decoration: none; transition: all .2s var(--ease); }
.doc-link::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3.5H7a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8.5Z'/%3E%3Cpath d='M14 3.5v5h5M9 13h6M9 16.5h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3.5H7a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8.5Z'/%3E%3Cpath d='M14 3.5v5h5M9 13h6M9 16.5h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.doc-link:hover { background: var(--navy); color: #fff !important; }
.prose ul.test-index li::before { display: none; }

/* esami oculistica */
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 22px; }
@media (max-width: 767px) { .exam-grid { grid-template-columns: 1fr; } }
.exam { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.exam h4 { margin: 0 0 6px !important; font-size: 1.08rem; }
.exam p { margin: 0; font-size: 15.5px; }

/* laboratorio indice */
.lab-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.lab-fact { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; background: var(--navy); color: rgba(255, 255, 255, .82); border-radius: var(--radius); font-size: 15px; line-height: 1.45; }
.lab-fact__big { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; color: #fff; line-height: 1.1; }
@media (max-width: 767px) { .lab-facts { grid-template-columns: 1fr; } }
.promo-list { display: grid; gap: 28px; }
.promo { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.promo__media { display: block; overflow: hidden; }
.promo__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform .8s var(--ease); }
.promo:hover .promo__media img { transform: scale(1.04); }
.promo__body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.promo__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.promo__title a { color: var(--ink); text-decoration: none; }
.promo__title a:hover { color: var(--navy); }
.promo__text { margin-bottom: 26px; }
.promo--rev .promo__media { order: 2; }
@media (max-width: 859px) { .promo { grid-template-columns: 1fr; } .promo--rev .promo__media { order: 0; } .promo__media img { min-height: 0; aspect-ratio: 16 / 9; } }

/* centro medico */
.centro-intro { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.centro-intro__media { position: relative; }
.centro-intro__media > img { width: 100%; border-radius: var(--radius); aspect-ratio: 507 / 600; object-fit: cover; object-position: 50% 20%; }
.badge-round { position: absolute; right: -40px; bottom: 40px; display: grid; place-items: center; width: 132px; height: 132px; padding: 14px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.badge-round > * { grid-area: 1 / 1; }
.badge-round__mark { width: 34%; height: auto; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { .badge-round img { animation: spin 22s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.service-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.service { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.service__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.service__ico .ui-icon { width: 24px; height: 24px; }
.service__title { font-size: 1.3rem; margin-bottom: 10px; }
.service p { font-size: 15.5px; }
.service .link-arrow { margin-top: auto; }
@media (max-width: 1023px) { .centro-intro { grid-template-columns: 1fr; } .centro-intro__media { max-width: 420px; } .badge-round { right: -20px; width: 112px; height: 112px; } }
@media (max-width: 599px) { .service-duo { grid-template-columns: 1fr; } .badge-round { right: 12px; bottom: -28px; width: 96px; height: 96px; padding: 10px; } .centro-intro__media { margin-bottom: 24px; } }

.team__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.team__lead { margin: 0; font-size: 1.05rem; }
.team__tools { flex-direction: column; align-items: center; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
.team__tools .filter__field { width: 100%; max-width: 520px; flex: none; }
.team__tools .chips { justify-content: center; }
@media (max-width: 767px) {
  .team__tools .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .team__tools .chips::-webkit-scrollbar { display: none; }
}
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .team-grid { grid-template-columns: 1fr; gap: 14px; } }
.area { display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 60px); transition: box-shadow .3s var(--ease), border-color .3s; }
.area:hover { box-shadow: var(--shadow); border-color: transparent; }
.area:target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }
.area__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.area__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--green-050); }
.area__title { margin: 0; font-size: 1.35rem; }
.area__text { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.area__text strong { color: #4b4f55; }
.area__docs { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-row { display: flex; align-items: center; gap: 14px; }
.doc-row__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.area__link { margin-top: auto; font-size: 14.5px; }

/* striscia contatti */
.contact-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
@media (max-width: 859px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { position: relative; padding: 32px 28px 28px; background: var(--bg); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.contact-card__num { position: absolute; right: 16px; top: 0; z-index: -1; font-family: var(--font-head); font-size: 80px; line-height: 1; color: #eceef1; }
.contact-card__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--green); color: #fff; }
.contact-card__ico .ui-icon { width: 22px; height: 22px; }
.contact-card__label { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.35; word-break: break-word; }
.contact-card__value:hover { color: var(--navy); text-decoration: underline; }
.contact-strip__cta { margin: clamp(28px, 4vw, 44px) 0 0; }

/* contatti */
.contact-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "info form" "map form"; gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.contact-page__info { grid-area: info; }
.contact-page__map { grid-area: map; }
.contact-page__form { grid-area: form; }
@media (max-width: 959px) { .contact-page__grid { grid-template-columns: 1fr; grid-template-areas: "info" "form" "map"; gap: 32px; } .contact-page__map .map--tall { margin-top: 0; } }
.info-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 28px 0 0; }
@media (max-width: 599px) { .info-list { grid-template-columns: 1fr; } }
.info-list li { display: flex; gap: 14px; }
.info-list li > .ui-icon { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.info-list__label { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.info-list a:hover { color: var(--navy); text-decoration: underline; }
.info-list .hours { color: var(--ink); font-weight: 500; }
.info-list .hours dt { font-weight: 500; }

/* ringraziamento / 404 */
.thanks__box { max-width: 760px; margin-inline: auto; text-align: center; }
.thanks__ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--green); color: #fff; }
.thanks__ico .ui-icon { width: 34px; height: 34px; }
.thanks__logo { width: 180px; margin: 0 auto 28px; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 28px; }
.nf-code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--green-050); -webkit-text-stroke: 2px var(--green); margin: 0 0 10px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }
.nf-links a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nf-links a:hover { border-color: var(--navy); color: var(--navy); }

/* privacy */
.prose--legal { max-width: 900px; margin-inline: auto; font-size: 16px; }
.prose--legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose--legal h3 { font-size: 1.2rem; }
.prose--legal a { word-break: break-word; }
.consent-reopen { margin: 8px 0 24px; }

/* 9. COOKIE -------------------------------------------------------------- */
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 300; width: min(460px, calc(100vw - 32px)); }
.cookie[hidden] { display: none; }
.cookie__box { max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 22px 16px; background: #fff; border-radius: 12px; box-shadow: 0 30px 80px rgba(20, 41, 64, .28), 0 0 0 1px rgba(20, 41, 64, .06); }
.cookie__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cookie__title { margin: 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.cookie__x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.cookie__x:hover { background: var(--bg); }
.cookie__x .ui-icon { width: 18px; height: 18px; }
.cookie__text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; }
.cookie__prefs { margin: 0 0 14px; border-top: 1px solid var(--line); }
.cookie__cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie__cat-body { display: block; }
.cookie__cat-title { display: block; margin: 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.cookie__cat-text { display: block; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cookie__always { flex: none; font-size: 12px; font-weight: 700; color: var(--green-btn); }
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #cfd3d9; transition: background .2s; pointer-events: none; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--green-btn); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--navy); outline-offset: 2px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; }
.cookie__actions .btn { padding-inline: 10px; font-size: 11.5px; letter-spacing: .08em; }
.cookie__actions [data-cookie-save] { grid-column: 1 / -1; }
.cookie.is-prefs .cookie__actions [data-cookie-toggle-prefs] { display: none; }
.cookie.is-prefs .cookie__actions { grid-template-columns: 1fr 1fr; }
.cookie__policy { margin: 12px 0 0; text-align: center; font-size: 12.5px; }
.cookie__policy a { color: var(--muted); }
@media (max-width: 599px) {
  .cookie { right: 0; bottom: 0; width: 100%; }
  .cookie__box { border-radius: 14px 14px 0 0; max-height: 80vh; }
  .cookie__actions { grid-template-columns: 1fr 1fr; }
  .cookie__actions [data-cookie-toggle-prefs] { grid-column: 1 / -1; }
}

/* 10. UTILITY ------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.show-lg-down { display: none; }
@media (max-width: 1023px) { .show-lg-down { display: block; } }
[hidden] { display: none !important; }

/* animazioni d'ingresso (solo se l'utente non preferisce ridurle) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie, .to-top, .aside, .doc-strip, .map, .booking-box { display: none !important; }
  body { background: #fff; color: #000; }
  .layout-aside { display: block; }
}
