:root {
  --bg: #FAFCFF;
  --bg-soft: #F2F7FA;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-solid: #FFFFFF;
  --text: #0B192C;
  --text-gray: #4A637A;
  --accent: #0A7A70;
  --accent-hover: #0F766E;
  --accent-soft: rgba(13, 148, 136, 0.10);
  --accent-warm: #0284C7;
  --border: rgba(15, 30, 45, 0.08);
  --dark-section: #0B192C;
  --warn-soft: #FFF1F2;
  --warn-border: #FECDD3;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 32px rgba(11, 25, 44, 0.05);
  --shadow-hover: 0 12px 48px rgba(11, 25, 44, 0.08);
  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-system);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageIn 0.4s ease forwards;
  overflow-x: clip;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

main {
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p {
  margin: 0;
  color: var(--text-gray);
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.07;
  font-family: var(--font-system);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  font-family: var(--font-system);
  font-weight: 700;
  letter-spacing: -0.02em;
}

svg {
  display: block;
}

.section {
  padding-block: 120px;
}

.section-soft {
  background: var(--bg-soft);
}

.container {
  width: min(100%, calc(100% - 48px));
  max-width: 1280px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-system);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #0c615a);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.7s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.8);
    opacity: 0;
  }
}

/* ── Navbar ── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 32px rgba(11, 25, 44, 0.08);
  border-bottom-color: rgba(15, 30, 45, 0.06);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  padding-inline: 40px;
  height: 72px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-main {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 400;
}

.nav-separator {
  margin-left: auto;
  padding-inline: 12px 8px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-gray);
  user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--accent);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}

/* ── Dropdown Nav ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  list-style: none;
  margin: 0;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Mobile Dropdown */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-family: inherit;
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 20px;
  background: var(--bg-soft);
}

.mobile-dropdown-menu.is-open {
  display: flex;
}

.mobile-dropdown-menu a {
  font-size: 0.95rem !important;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.04) !important;
}

.nav-drawer a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-cta {
  margin-left: 16px;
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: none;
  box-shadow: none;
  opacity: 0.85;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay — no backdrop-filter */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
  z-index: 9998;
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.render-warning-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 25, 44, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.render-warning {
  width: min(100%, 560px);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 80px rgba(11, 25, 44, 0.28);
  text-align: center;
}

.render-warning__eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.render-warning h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.render-warning p {
  margin-bottom: 24px;
  color: var(--text-gray);
  font-size: 1rem;
}

.render-warning__button {
  min-width: 180px;
}

.render-warning__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.render-warning__button:disabled:hover {
  background: var(--accent);
  color: #fff;
}

body.render-warning-open {
  overflow: hidden;
}

.nav-drawer {
  display: none;
}

body.nav-is-open {
  overflow: hidden;
}

/* ── Province cards grid (index.html) ── */
.province-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.province-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.province-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(10, 138, 122, 0.12);
  transform: translateY(-2px);
}

.province-card-name {
  font-family: var(--font-system);
  font-size: 1.15rem;
  color: #1d1d1f;
  font-weight: 600;
  display: block;
}

.province-card-sub {
  font-size: 0.82rem;
  color: var(--text-gray);
  display: block;
}

.province-section-cta {
  text-align: center;
  margin-top: 48px;
}

.province-section-cta p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── Province links row (servizi.html) ── */
.province-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.province-links-row a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.province-links-row a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}


.hero-inner {
  text-align: center;
}

.hero-badge {
  margin-inline: auto;
  width: fit-content;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(10, 138, 122, 0.25);
  border-radius: 980px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

h1 {
  margin-top: 24px;
  font-size: clamp(46px, 7.6vw, 84px);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 1.14rem;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

[data-stagger] {
  opacity: 1;
}

.stats-strip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
}

.stat-value {
  font-size: clamp(38px, 5.8vw, 62px);
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.stat-value-text {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2,
.chi-content h2 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-head h2::after,
.chi-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 0.9s ease;
}

.section-head h2.h2-in-view::after,
.chi-content h2.h2-in-view::after {
  width: 100%;
}

.section-head p {
  max-width: 740px;
  margin: 14px auto 0;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.problem-panel,
.solution-panel {
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--border);
}

.problem-panel {
  background: var(--warn-soft);
  border-left: 6px solid #D66B5A;
}

.solution-panel {
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
}

.panel-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-kicker-warn {
  color: #B15746;
}

.problem-panel h3,
.solution-panel h3 {
  margin-top: 10px;
  font-size: 1.45rem;
  color: #1d1d1f;
  font-weight: 600;
}

.problem-panel p,
.solution-panel p,
.problem-panel ul,
.solution-panel ul {
  color: #3a3a3a;
}

.sequence-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sequence-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease;
  color: var(--text);
  font-weight: 500;
}

.sequence-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mini-sanction-chart {
  margin-top: 22px;
  border: 1px solid rgba(15, 30, 45, 0.12);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.mini-chart-title {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  align-items: center;
  gap: 10px;
}

.mini-row + .mini-row {
  margin-top: 8px;
}

.mini-label {
  color: var(--text-gray);
  font-size: 0.82rem;
}

.mini-track {
  height: 8px;
  border-radius: 999px;
  background: #E7EDF2;
  overflow: hidden;
}

.mini-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #E17C6A, #D66B5A);
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}

.mini-row strong {
  color: #B15746;
  font-size: 0.84rem;
}

.compliance-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 980px;
  background: #fff;
  border: 1px solid rgba(10, 138, 122, 0.26);
  padding: 10px 16px;
  color: var(--accent);
  font-weight: 700;
}

.compliance-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  animation: pulse-shield 2s ease-in-out infinite;
}

@keyframes pulse-shield {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.timeline-line {
  position: absolute;
  left: 3%;
  top: 34px;
  width: 94%;
  height: 3px;
  background: rgba(10, 138, 122, 0.2);
  border-radius: 99px;
  z-index: 0;
}

.timeline-progress {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 1.2s ease;
}

.timeline.is-animated .timeline-progress {
  width: 100%;
}

.timeline-step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 18px;
}

.timeline-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.timeline-step h3 {
  font-size: 1.25rem;
  color: #1d1d1f;
  font-weight: 600;
}

.timeline-step p {
  margin-top: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(13, 148, 136, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.shimmer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card h3 {
  font-size: 1.24rem;
  margin-top: 16px;
  color: #1d1d1f;
  font-weight: 600;
}

.service-card p {
  margin-top: 10px;
  min-height: 54px;
  color: #3a3a3a;
}

.service-card a {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
}

.service-badge {
  margin-top: 12px;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(10, 138, 122, 0.25);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.caption {
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.chi-content p + p {
  margin-top: 15px;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #3a3a3a;
  font-weight: 500;
}

.check-list svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  stroke-width: 2.4;
  fill: none;
  margin-top: 2px;
  flex-shrink: 0;
}

.doctor-photo-card {
  border-radius: 24px;
  border: 1px solid rgba(10, 138, 122, 0.16);
  box-shadow: var(--shadow-soft);
  height: 65vh;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: var(--accent-soft);
  display: block;
}

.doctor-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
  z-index: 1;
  pointer-events: none;
}

.doctor-photo-card:hover .doctor-photo-img {
  transform: scale(1.04);
}

.doctor-photo-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 24px;
  z-index: 2;
  text-align: center;
}

.doctor-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
  border: none;
  transition: transform 400ms ease;
  margin: 0;
  z-index: 0;
}

.doctor-initials {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(10, 138, 122, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto;
  font-size: 2.6rem;
  font-weight: 700;
}

.doctor-photo-name {
  margin-top: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.doctor-photo-role {
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.doctor-photo-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.approach-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.approach-card h3 {
  color: #1d1d1f;
  font-weight: 600;
}

.approach-card p {
  margin-top: 10px;
  color: #3a3a3a;
}

.service-filter {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-gray);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.24s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: rgba(10, 138, 122, 0.36);
  color: var(--accent);
  background: var(--accent-soft);
}

.service-detail-grid {
  display: grid;
  gap: 12px;
}

.service-detail-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.service-detail-card.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.service-detail-card.is-hidden {
  display: none;
}

.service-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  color: #1d1d1f;
  font-size: 1.02rem;
  font-weight: 600;
}

.service-toggle .service-badge {
  margin-top: 0;
  margin-left: 8px;
  white-space: nowrap;
}

.service-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.service-detail-card.is-open .service-toggle::after {
  transform: rotate(-135deg);
}

.service-panel {
  height: 0;
  overflow: hidden;
}

.service-panel p,
.service-panel ul {
  margin: 0 20px 14px;
  color: #3a3a3a;
}

.service-panel ul {
  padding-left: 18px;
  color: #3a3a3a;
}

.service-panel .btn {
  margin: 4px 20px 20px;
}

.aziende-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.big-quote {
  font-size: clamp(34px, 4.6vw, 54px);
  color: var(--text);
  font-style: italic;
  letter-spacing: -0.02em;
}

.quote-sign {
  margin-top: 14px;
  color: var(--text-gray);
}

.quote-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 52px 52px 40px;
  max-width: 640px;
  margin: 56px auto;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.11);
}

.quote-card::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  left: 40px;
  pointer-events: none;
  user-select: none;
}

.quote-card blockquote {
  position: relative;
  margin: 0 0 32px 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.42rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
  color: #1d1d1f;
  letter-spacing: -0.022em;
}

.quote-card blockquote em {
  color: var(--accent);
  font-style: italic;
}

.quote-card .quote-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.09);
  padding-top: 20px;
}

.quote-card .quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.quote-card .quote-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 980px) {
  .quote-card {
    padding: 40px 24px 28px;
    margin: 40px 18px;
  }
  .quote-card::before {
    font-size: 5rem;
    left: 20px;
    top: 8px;
  }
  .quote-card blockquote {
    font-size: 1.1rem;
  }
}

.benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: #3a3a3a;
}

.benefits-list svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  stroke-width: 2.4;
  fill: none;
  flex-shrink: 0;
}

.risk-chart-card {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
}

.risk-chart-card h3 {
  font-size: 1.34rem;
  color: #1d1d1f;
  font-weight: 600;
}

.risk-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.7fr 2fr auto;
  gap: 12px;
  align-items: center;
}

.risk-label {
  color: #3a3a3a;
  font-size: 0.9rem;
}

.risk-track {
  height: 10px;
  border-radius: 999px;
  background: #E7EDF2;
  overflow: hidden;
}

.risk-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

.risk-value {
  color: var(--accent);
}

.risk-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #3a3a3a;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
  cursor: pointer;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  height: 0;
  overflow: hidden;
}

.accordion-panel p {
  padding: 0 24px 22px;
}

/* === CONTACTS PAGE === */
.contacts-hero {
  background: #fff;
  padding: 72px 0 56px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
  text-align: center;
}

.contacts-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.contacts-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1d1d1f;
  margin-bottom: 14px;
}

.contacts-sub {
  font-size: 1.05rem;
  color: #6e6e73;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.contacts-section {
  background: #f5f5f7;
  padding: 64px 0 80px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
}

.contact-info-item.no-divider {
  border-bottom: none;
}

/* Icona su sfondo teal soft */
.contact-info-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Wrapper icona */
.contact-info-item > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: #E1F5EE;
  border-radius: 8px;
  stroke: var(--accent);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--accent);
}

.contacts-social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
}

.contacts-social .contacts-eyebrow {
  margin-bottom: 14px;
}

.social-links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1d1d1f;
  transition: background 0.2s, border-color 0.2s;
}

.social-link-item:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.22);
}

.social-link-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1d1d1f;
}

.contacts-form-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.08);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e6e73;
}

.field-group input,
.field-group textarea {
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 0.92rem;
  font-family: inherit;
  color: #1d1d1f;
  background: #fafafa;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 138, 122, 0.10);
}

.field-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: background 0.2s;
  margin-top: 4px;
}

.contact-submit:hover {
  background: #087a6c;
}

.form-fields {
  display: flex;
  flex-direction: column;
}

@media (max-width: 980px) {
  .contacts-hero { padding: 48px 0 36px; }
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 18px;
  }
  .contacts-section { padding: 40px 0 60px; }
  .contacts-form-wrap { padding: 28px 20px; }
  .social-links-row { gap: 10px; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.blog-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 12px;
  background-image: url('../img/logo.png');
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.blog-card-img-icon {
  display: none;
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
  margin-bottom: 12px;
  background: var(--bg-soft);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-image-placeholder img {
  object-fit: contain;
  padding: 24px;
  background: var(--bg-soft);
  opacity: 0.35;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  padding: 16px;
  box-shadow: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.blog-card svg {
  width: 100%;
  border-radius: 18px;
}

.blog-category {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin-top: 8px;
  font-size: 1.24rem;
  color: #1d1d1f;
  font-weight: 600;
}

.blog-card p:last-child {
  margin-top: 10px;
  color: #3a3a3a;
}

.blog-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Site footer ── */
.site-footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col-brand .footer-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-col-brand .footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  max-width: 280px;
  margin: 0 0 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.footer-social a svg {
  fill: currentColor;
}

.footer-social a[href*="linkedin"] {
  background: rgba(10, 102, 194, 0.18);
  color: #0a66c2;
}

.footer-social a[aria-label="Instagram"] {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff;
}

.footer-social a:hover {
  opacity: 0.9;
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 16px;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-col-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  gap: 20px;
}

.footer-bottom-right a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-right a:hover {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.reveal,
.slide-right,
.reveal-card,
.tilt-in {
  opacity: 1;
}

@media (max-width: 1080px) {
  .brand-main {
    font-size: 0.88rem;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
  }

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .problem-solution-grid,
  .chi-grid,
  .aziende-grid,
  .approach-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-line {
    left: 25px;
    top: 28px;
    width: 3px;
    height: calc(100% - 56px);
  }

  .timeline-progress {
    width: 100%;
    height: 0;
  }

  .timeline.is-animated .timeline-progress {
    width: 100%;
    height: 100%;
  }

  .timeline-step {
    padding-left: 88px;
    min-height: 110px;
  }

  .timeline-dot {
    position: absolute;
    left: 18px;
    top: 22px;
    width: 44px;
    height: 44px;
  }

  .risk-row,
  .mini-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100%, calc(100% - 32px));
  }

  .stats-strip {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 16px;
  }

  .stat-item + .stat-item {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 18px;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    margin-top: 0;
    padding-top: 18px;
  }
}

/* ── Hero section ── */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
}

/* ── Hero two-column layout ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .hero-badge {
  margin-inline: 0;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-top: 18px;
}

.hero .hero-subtitle {
  margin: 20px 0 0;
  max-width: 480px;
}

.hero .hero-actions {
  justify-content: flex-start;
  margin-top: 32px;
}

.hero-photo-card {
  border: 1px solid rgba(10, 138, 122, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  height: 65vh;
  background: var(--accent-soft);
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-card:hover .hero-photo-img {
  transform: scale(1.04);
}

.hero-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(10, 138, 122, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 0;
  border: none;
  transition: transform 400ms ease;
}

.hero-photo-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  padding: 0 20px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-top: 0;
  z-index: 2;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-photo-role {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  padding: 0 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  z-index: 2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-text {
    align-items: center;
    order: 2;
  }

  .hero-image {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .hero {
    min-height: unset;
    display: block;
  }

  .hero-photo-card {
    width: 280px;
    height: 280px;
    min-height: unset;
    aspect-ratio: auto;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
  }

  .hero-photo-card::after {
    display: none;
  }

  .hero-photo-name,
  .hero-photo-role {
    display: none;
  }

  .hero-initials {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 0;
    border: none;
  }

  .doctor-photo-card {
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42vh;
  }

  .doctor-photo-card::after {
    display: none;
  }

  .doctor-photo-inner {
    position: relative;
    inset: auto;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
  }

  .doctor-photo-img {
    position: relative;
    inset: auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 4px solid rgba(10, 138, 122, 0.18);
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    display: block;
    z-index: auto;
  }

  .doctor-photo-name {
    margin-top: 20px;
    color: var(--text);
    text-shadow: none;
  }

  .doctor-photo-role {
    margin-top: 6px;
    color: var(--text-gray);
    text-shadow: none;
  }

  .doctor-photo-note {
    margin-top: 12px;
    color: var(--text-gray);
    text-shadow: none;
  }

  .hero .hero-badge {
    margin-inline: auto;
  }

  .hero .hero-subtitle {
    margin-inline: auto;
  }

  .hero .hero-actions {
    justify-content: center;
  }
}

/* ── Global polish ── */
::selection {
  background: var(--accent);
  color: #fff;
}

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

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}

.title-line {
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.6rem 0 1.8rem;
  transform-origin: left center;
}

/* ── Province pages ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: #fff;
}

.page-hero-small {
  background: var(--dark-section);
  padding-block: 80px 60px;
}

.page-hero-small h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  max-width: 620px;
  margin-top: 14px;
}

.province-content-wrap {
  padding-block: 80px;
}

.province-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.province-main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.province-main h3 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.province-main p {
  color: #3a3a3a;
  line-height: 1.7;
  margin-top: 12px;
}

.province-main ul {
  padding-left: 20px;
  color: #3a3a3a;
  line-height: 1.8;
  margin-top: 10px;
}

.province-main li {
  margin-bottom: 6px;
}

.province-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-card);
}

.sidebar-box h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1d1f;
  margin: 0 0 12px;
}

.sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sidebar-box li {
  font-size: 0.9rem;
  color: #3a3a3a;
}

.sidebar-box a {
  color: var(--accent);
  font-size: 0.9rem;
}

.sidebar-cta-box {
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-cta-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sidebar-cta-box p {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.sidebar-cta-box .btn-primary {
  background: #fff;
  color: var(--accent);
}

.sidebar-cta-box .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.sidebar-cta-box .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.sidebar-cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.other-provinces {
  background: var(--bg-soft);
  padding-block: 60px;
}

.other-provinces h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-gray);
  font-family: var(--font-system);
}

.other-provinces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.other-province-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 980px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.other-province-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 980px) {
  .province-content-grid {
    grid-template-columns: 1fr;
  }

  .province-sidebar {
    position: static;
  }

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


/* Scrollbar Styling */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: rgba(13, 148, 136, 0.4); border-radius: 10px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.bento-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
@media (min-width: 900px) { .bento-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; } .bento-item-large { grid-column: span 2; grid-row: span 2; } .bento-item-wide { grid-column: span 2; } }

/* Sticky Scroll Layout */
.sticky-layout { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 900px) { .sticky-layout { flex-direction: row; align-items: flex-start; gap: 60px; } .sticky-sidebar { flex: 1; position: sticky; top: 120px; } .sticky-content { flex: 2; } }

@media (min-width: 900px) { .service-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* 3D Clinic Wrapper */
#clinic-3d-wrapper { width: 100%; height: 600px; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
.scroll-spacer { position: relative; z-index: 10; }
.sticky-wrapper { z-index: 10; }

/* ── Province Visualization Section ── */
.prov-viz {
  background: var(--bg-soft);
  padding-block: 72px 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.prov-viz-inner {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Stats row */
.pv-stats {
  display: flex;
  justify-content: center;
  gap: 0;
}
.pv-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.pv-stat:last-child { border-right: none; }
.pv-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
}
.pv-stat-label {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

/* Process flow */
.pv-flow-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pv-flow-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0;
}
.pv-flow {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 28px;
}
.pv-flow::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(0,0,0,0.10);
  z-index: 0;
}
.pv-flow::after {
  content: '';
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.pv-flow.animated::after { transform: scaleX(1); }
.pv-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 2;
}
.pv-node.in {
  opacity: 1;
  transform: translateY(0);
}
.pv-node-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: border-color 0.4s ease, background 0.4s ease;
  position: relative;
  z-index: 1;
}
.pv-node.in .pv-node-dot {
  border-color: var(--accent);
  background: #e8f5f3;
}
.pv-node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-gray);
  text-align: center;
  max-width: 80px;
  line-height: 1.35;
}

/* Lombardy schematic map */
.pv-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pv-map-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0;
}
.pv-map-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
}
.pm-bg { fill: #d5ede6; }
.pm-route {
  fill: none;
  stroke: #b0cfc8;
  stroke-width: 2.5;
  stroke-dasharray: 4 3;
}
.pm-route.active {
  stroke: var(--accent);
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawRoute 1.4s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
}
@keyframes drawRoute {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
.pm-dot {
  fill: #9bbdb6;
  transition: fill 0.4s ease;
}
.pm-dot.active {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 1.8s ease 1.5s infinite;
}
@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.65; }
}
.pm-base {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: basePulse 2.2s ease infinite;
}
@keyframes basePulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}
.pm-label {
  font-size: 16px;
  fill: #3a3a3a;
  font-family: var(--font-system);
  font-weight: 500;
}
.pm-label.base-label {
  font-weight: 700;
  fill: #1d1d1f;
}
.pm-dot.active + .pm-label,
.pm-label.active-label {
  font-weight: 700;
  fill: var(--accent);
}

/* Province viz mobile */
@media (max-width: 980px) {
  .prov-viz { padding-block: 48px 56px; }
  .prov-viz-inner { gap: 40px; }
  .pv-stats { gap: 0; }
  .pv-stat { padding: 0 12px; }
  .pv-stat-num { font-size: 1.6rem; }
  .pv-stat-label { font-size: 0.75rem; }
  .pv-flow::before,
  .pv-flow::after { left: 4%; right: 4%; }
  .pv-node-dot { width: 40px; height: 40px; font-size: 1rem; }
  .pv-node-label { font-size: 0.72rem; max-width: 64px; }
}

@media (max-width: 600px) {
  .pv-stats {
    flex-wrap: wrap;
    gap: 28px 0;
  }
  .pv-stat {
    flex: 0 0 50%;
    padding: 0 10px;
    border-right: none;
  }
  .pv-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  
  .pv-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 0;
    padding-left: 10px;
  }
  .pv-flow::before, .pv-flow::after {
    top: 10px;
    bottom: 10px;
    left: 34px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pv-flow::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .pv-flow.animated::after { 
    transform: scaleY(1); 
  }
  .pv-node {
    flex-direction: row;
    width: 100%;
    transform: translateX(-14px);
    gap: 16px;
  }
  .pv-node.in {
    transform: translateX(0);
  }
  .pv-node-label {
    text-align: left;
    max-width: 100%;
    font-size: 0.85rem;
  }
  
  .pm-label {
    font-size: 26px;
  }
}
