/* ==========================================================================
   POLIAMBULATORIO SAN MATTEO - MASTER GLOBAL STYLESHEET
   100% Faithful to Adobe XD, Home.svg and Sedi.svg
   ========================================================================== */

:root {
  /* Brand Colors from Sedi.svg & Home.svg */
  --primary: #00A9AE;
  --primary-dark: #017A7E;
  --primary-light: #EEF6F6;
  --navy: #1F2C60;
  --navy-dark: #141D40;
  --accent-orange: #F09332;
  --accent-pink: #D65B74;
  --accent-purple: #844C6C;
  --text-dark: #1F2C60;
  --text-muted: #545C5C;
  --text-light-muted: #9A9A99;
  --white: #FFFFFF;
  --border-light: #E2E8F0;
  
  /* Fonts */
  --font-main: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Caveat', 'Verveine', cursive, serif;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(31, 44, 96, 0.08);

  /* Border Radii exact from XD */
  --radius-xs: 3px;
  --radius-sm: 7px;
  --radius-btn: 8px;
  --radius-card: 20px;
  --radius-pill: 22.5px;
  --radius-form: 30px;
  --radius-full: 9999px;

  /* Sizing */
  --content-max-width: 1172px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Accessibility: Focus indicators for keyboard navigation (WCAG 2.1 AA & 2.2 AA) */
:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

button:focus-visible, 
a:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 1px;
}

/* Accessibility: Skip Links (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  z-index: 999999;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-orange);
}

/* Accessibility: Visually hidden text for screen readers (WCAG 1.1.1, 1.3.1, 2.4.4) */
.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Form error inline description for screen readers (WCAG 3.3.1, 3.3.3) */
.field-error-message {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #B91C1C;
  margin-top: 4px;
}

.container-xd {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   HEADER (Figma Node 7:942 - 90px height, #EEF6F6 background)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #EEF6F6;
  border-bottom: 1px solid rgba(0, 169, 174, 0.08);
  height: 90px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 49px;
  width: auto;
  display: block;
}

/* Logo caricato da Personalizza > Identità del sito (PNG/WebP raster) */
.logo-img--custom {
  height: 70px;
  max-width: 260px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #264D4D;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-portal {
  background-color: var(--primary-dark, #017A7E);
  color: var(--white);
  height: 39px;
  min-width: 223px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-portal:hover {
  background-color: #016E72;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(1, 122, 126, 0.3);
}

.btn-portal:active {
  transform: translateY(0);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: #264D4D;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer (WCAG 2.1.2 No Keyboard Trap & Focus Management) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 10000;
  padding: 24px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  transition: right 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open { 
  right: 0; 
  visibility: visible;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 44, 96, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* Logo del menu mobile: stesso logo della testata, alto 40 px */
.drawer-header .drawer-logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.drawer-nav .nav-link {
  font-size: 1.05rem;
  padding: 10px 0;
  color: #264D4D;
  font-weight: 500;
  border-bottom: 1px solid var(--primary-light);
}

.drawer-nav .nav-link.active,
.drawer-nav .nav-link:hover {
  color: var(--primary);
  font-weight: 700;
}

.drawer-footer-cta {
  margin-top: auto;
  padding-top: 24px;
}

.drawer-portal-btn {
  width: 100% !important;
  min-width: 100% !important;
  display: inline-flex !important;
  justify-content: center !important;
}



/* Breadcrumbs Semantici Standard */
.breadcrumb-bar {
  padding: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-bar a:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #8C9393;
  font-weight: 400;
  user-select: none;
}

.breadcrumb-bar .current {
  color: var(--primary-dark);
}

/* ==========================================================================
   PAGE: HOME - HERO SECTION (Figma Node 7:827 - 637px height, teal gradient)
   ========================================================================== */
.home-hero-wrapper {
  position: relative;
  min-height: 750px;
  height: auto;
  background-color: #D9D9D9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

.home-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.home-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Video hero da YouTube: riempie la hero come object-fit: cover (16:9 ritagliato al centro) */
.home-hero-video--youtube {
  overflow: hidden;
  background-color: #D9D9D9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  container-type: size;
  pointer-events: none;
}

.home-hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  /* 16:9 che copre la hero lasciando fuori almeno 70px sopra e sotto (barra del titolo di YouTube) */
  width: max(100cqw, calc((100cqh + 140px) * 1.7778));
  height: max(56.25cqw, calc(100cqh + 140px));
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.home-hero-video--youtube.is-playing .home-hero-video-frame {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video-frame { transition: none; }
}

.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 169, 174, 0) 18%, rgba(0, 169, 174, 0.35) 48%, rgba(0, 169, 174, 0.82) 76%, #00A9AE 100%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.home-hero-slogan-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.home-hero-slogan-img {
  width: clamp(280px, 36vw, 455px);
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 2px 14px rgba(10, 63, 65, 0.3));
}

.home-hero-subtitle {
  font-family: var(--font-main);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 0 25px rgba(10, 63, 65, 0.95), 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
}

/* Home Search Card & Pill (Container containing Search & Phone note) */
.home-search-pill-card,
.home-search-box-card {
  background: var(--white);
  border-radius: 20px;
  padding: 10px 14px 10px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.home-search-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-search-card-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #EEF6F6;
  font-size: 13.5px;
  color: #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
  font-family: var(--font-main);
}

.home-search-card-note i.fa-phone {
  color: #017A7E;
  font-size: 12.5px;
}

.home-search-card-note a {
  color: #017A7E;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.home-search-card-note a:hover {
  color: #1F2C60;
}

.home-search-card-note strong {
  color: #1F2C60;
  font-weight: 700;
}

.search-field-unit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  border-right: 1px solid var(--border-light);
}

.search-field-unit:last-of-type {
  border-right: none;
}

.search-field-unit i {
  color: var(--primary);
  font-size: 17px;
}

.search-field-unit input, .search-field-unit select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.search-field-unit input:focus, .search-field-unit select:focus {
  outline: none;
}

.search-field-unit:focus-within {
  box-shadow: 0 0 0 2px var(--primary-dark, #017A7E);
  border-radius: 8px;
}

.btn-home-cerca {
  background-color: var(--primary-dark, #017A7E);
  color: var(--white);
  height: 46px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-home-cerca:hover {
  background-color: #016E72;
  transform: translateY(-1px);
}

/* Hero Video Pause/Play Control (WCAG 2.2.2 Pause, Stop, Hide) */
.btn-video-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 44, 96, 0.8);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.btn-video-toggle:hover {
  background: var(--navy);
  transform: scale(1.05);
}

.btn-video-toggle:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

.home-hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PAGE: HOME - QUICK ACCESS CARDS (Figma Node 1:858 - #EEF6F6 bg & Decorative)
   ========================================================================== */
.quick-access-section {
  background-color: #EEF6F6;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}

.quick-access-deco-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 470px;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.quick-access-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Double Card (Left Block - Node 7:947) */
.quick-card-double {
  width: 100%;
  max-width: 672px;
  min-height: 271px;
  border-radius: var(--radius-card);
  background: linear-gradient(136deg, rgba(0, 169, 174, 0.05) 0%, rgba(0, 169, 174, 0.15) 100%);
  border: 1px solid rgba(0, 169, 174, 0.12);
  display: flex;
  align-items: stretch;
  box-shadow: 0 4px 18px rgba(0, 169, 174, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card-double:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 169, 174, 0.1);
}

.quick-card-divider {
  width: 1px;
  height: 218px;
  background-color: rgba(0, 169, 174, 0.25);
  align-self: center;
  flex-shrink: 0;
}

/* Single Card (Right Block - Node 7:944) */
.quick-card-single {
  width: 100%;
  max-width: 326px;
  min-height: 271px;
  border-radius: var(--radius-card);
  background: linear-gradient(136deg, rgba(240, 147, 50, 0.05) 0%, rgba(240, 147, 50, 0.15) 100%);
  border: 1px solid rgba(240, 147, 50, 0.15);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(240, 147, 50, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card-single:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(240, 147, 50, 0.1);
}

/* Card Item Inner Structure */
.quick-card-double .quick-card-item {
  flex: 1 1 50%;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card-single .quick-card-item {
  height: 100%;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card-body {
  display: flex;
  flex-direction: column;
}

.quick-card-icon-wrap {
  height: 54px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 14px;
}

.quick-card-icon-img {
  display: block;
  max-height: 53px;
  width: auto;
  object-fit: contain;
}

.quick-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.quick-card-desc {
  font-size: 16px;
  font-weight: 400;
  color: #545C5C;
  line-height: 1.4;
  margin: 0 0 18px 0;
}

.quick-card-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  padding: 2px 0;
}

.quick-card-link:hover {
  color: #01595C;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quick-card-link:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .quick-access-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .quick-card-double,
  .quick-card-single {
    max-width: 672px;
  }
}

@media (max-width: 680px) {
  .quick-access-section {
    padding: 40px 0;
  }

  .quick-card-double {
    flex-direction: column;
    min-height: auto;
  }

  .quick-card-divider {
    width: 85%;
    height: 1px;
    margin: 0 auto;
  }

  .quick-card-double .quick-card-item,
  .quick-card-single .quick-card-item {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   PAGE: HOME - "COSA TRATTIAMO" (Figma Node 7:852 - Aree di eccellenza clinica)
   ========================================================================== */
.cosa-trattiamo-section {
  padding: 80px 0 90px;
  background-color: var(--white);
}

.home-tag-badge {
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-dark, #017A7E);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.home-tag-cursive {
  font-family: var(--font-accent);
  font-size: 34px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.home-section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.home-section-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

.home-specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 20px;
  max-width: 1018px;
  margin: 0 auto 48px;
}

.home-spec-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 169, 174, 0.1);
  box-shadow: 0 4px 20px rgba(0, 169, 174, 0.05);
  padding: 32px 28px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 169, 174, 0.12);
  border-color: rgba(0, 169, 174, 0.25);
}

.home-spec-icon-wrap {
  height: 54px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
}

.home-spec-icon {
  max-height: 52px;
  max-width: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-spec-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.home-spec-desc {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.home-specialties-action {
  display: flex;
  justify-content: center;
}

.btn-specialties-main {
  font-family: var(--font-heading);
  background-color: var(--primary);
  color: var(--white);
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-specialties-main:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 169, 174, 0.25);
}

.btn-specialties-main:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 4px;
}

@media (max-width: 992px) {
  .home-specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cosa-trattiamo-section {
    padding: 50px 0 60px;
  }

  .home-section-title {
    font-size: 30px;
  }

  .home-specialties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .home-spec-card {
    min-height: auto;
    padding: 26px 22px;
  }

  .btn-specialties-main {
    width: 100%;
  }
}

.btn-center-pill {
  background-color: var(--primary);
  color: var(--white);
  height: 46px;
  padding: 0 36px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-center-pill:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   PAGE: HOME - "PERCHE’ SCEGLIERCI" (Figma Node 7:842 - #EEF6F6 background)
   ========================================================================== */
.perche-sceglierci-section {
  background-color: var(--primary-light);
  padding: 55px 0 0 0;
  position: relative;
  overflow: hidden;
}

.perche-sceglierci-layout {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  position: relative;
}

.perche-left-col {
  flex: 0 1 500px;
  max-width: 500px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.perche-left-col .home-tag-badge {
  margin-bottom: 14px;
}

.perche-left-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 16px;
}

.perche-left-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.perche-heart-wrap {
  position: relative;
  width: 497px;
  max-width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  margin-left: 0;
  line-height: 0;
  display: flex;
  align-items: flex-end;
}

.perche-heart-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  filter: drop-shadow(0 10px 25px rgba(0, 169, 174, 0.08));
  pointer-events: none;
  user-select: none;
}

.perche-right-grid {
  flex: 0 0 515px;
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: 15px;
  z-index: 2;
  margin-bottom: 55px;
}

.perche-feature-card {
  background: var(--white);
  width: 250px;
  height: auto;
  min-height: 310px;
  border-radius: 20px;
  border: 1px solid rgba(0, 169, 174, 0.08);
  box-shadow: 0 4px 20px rgba(0, 169, 174, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.perche-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 169, 174, 0.12);
  border-color: rgba(0, 169, 174, 0.2);
}

.perche-feat-img-wrap {
  width: 100%;
  height: 151px;
  overflow: hidden;
  flex-shrink: 0;
}

.perche-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.35s ease;
}

.perche-feature-card:hover .perche-feat-img {
  transform: scale(1.04);
}

.perche-feat-content {
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.perche-feat-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.perche-feat-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 992px) {
  .perche-sceglierci-layout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .perche-left-col {
    flex: 1 1 auto;
    max-width: 580px;
    text-align: center;
  }

  .perche-heart-wrap {
    margin: 20px auto 0;
  }

  .perche-right-grid {
    flex: 0 0 auto;
    justify-content: center;
    margin-bottom: 50px;
  }
}

@media (max-width: 580px) {
  .perche-sceglierci-section {
    padding: 45px 0 0 0;
  }

  .perche-left-title {
    font-size: 30px;
    line-height: 1.1;
  }

  .perche-right-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 40px;
  }

  .perche-feature-card {
    width: 100%;
    height: auto;
    min-height: 290px;
  }
}

/* ==========================================================================
   PAGE: HOME - "DOVE SIAMO" (Quattro sedi in Puglia - Figma Node 7:966)
   ========================================================================== */
.quattro-sedi-section {
  padding: 80px 0 90px;
  background-color: var(--white);
}

.quattro-sedi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Numero di sedi dal CRM diverso da 4: colonne adattate (solo desktop, tablet/mobile restano a 2/1) */
@media (min-width: 1025px) {
  .quattro-sedi-grid[data-count="1"] { grid-template-columns: minmax(0, 320px); justify-content: center; }
  .quattro-sedi-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
  .quattro-sedi-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
}

.home-sede-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 169, 174, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 380px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-sede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 169, 174, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 169, 174, 0.5);
}

.home-sede-img {
  height: 165px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.home-sede-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-sede-province {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Fallback badge styles preserved for other pages (e.g. contatti.html) */
.home-sede-province-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.badge-foggia { color: #B45309; }
.badge-bari { color: var(--primary-dark, #017A7E); }
.badge-brindisi { color: #A82D46; }
.badge-andria { color: #5B21B6; }

.home-sede-city-title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.home-sede-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.home-sede-info-line i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 14px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.home-sede-link-btn {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.home-sede-link-btn:hover {
  color: #01595C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-sede-link-btn:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.quattro-sedi-action {
  text-align: center;
}

.btn-quattro-sedi-main {
  font-family: var(--font-heading);
  background-color: var(--primary);
  color: var(--white);
  height: 46px;
  padding: 0 36px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-quattro-sedi-main:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(1, 122, 126, 0.3);
}

.btn-quattro-sedi-main:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   PAGE: HOME - "ESPERIENZE REALI" (Testimonials, Gradient background - Figma Node 7:872)
   ========================================================================== */
.esperienze-section {
  background: 
    radial-gradient(circle at 100% 100%, #F09332 0%, rgba(240, 147, 50, 0) 52%),
    radial-gradient(circle at 0% 100%, #1F2C60 0%, rgba(31, 44, 96, 0) 58%),
    radial-gradient(circle at 0% 0%, #844C6C 0%, rgba(132, 76, 108, 0) 54%),
    #00A9AE;
  color: var(--white);
  padding: 85px 0 90px;
  position: relative;
  overflow: hidden;
}

.esperienze-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.testimonial-card-xd {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 169, 174, 0.4);
  padding: 28px 24px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card-xd:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  border-color: rgba(0, 169, 174, 0.7);
}

.test-stars-row {
  color: #F09332;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  gap: 4px;
}

.test-quote-text {
  font-size: 15px;
  color: var(--white);
  line-height: 1.55;
  font-style: normal;
  flex-grow: 1;
}

.test-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid rgba(0, 169, 174, 0.45);
  padding-top: 14px;
  margin-top: 18px;
}

.test-author-name {
  font-weight: 700;
  color: var(--white);
}

.test-date {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.google-rating-bar {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.google-rating-bar i {
  color: #FFFFFF;
  font-size: 16px;
}

.google-rating-bar strong {
  font-weight: 700;
}

/* Fallback backward compatibility */
.google-rating-pill {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   PAGE: HOME - "AGEVOLAZIONI E CONVENZIONI" (Figma Node 7:952)
   ========================================================================== */
.convenzioni-section {
  padding: 85px 0 95px;
  background-color: var(--white);
}

.convenzioni-grid-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 44px;
  max-width: 1020px;
  margin: 0 auto;
}

.convenzioni-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 65px;
  padding: 4px;
}

.convenzioni-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.convenzioni-logo-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .convenzioni-section {
    padding: 70px 0 75px;
  }

  .convenzioni-grid-logos {
    gap: 28px 32px;
    max-width: 720px;
  }

  .convenzioni-logo-item {
    width: 140px;
    height: 55px;
  }
}

@media (max-width: 580px) {
  .convenzioni-section {
    padding: 55px 0 65px;
  }

  .convenzioni-grid-logos {
    gap: 22px 18px;
  }

  .convenzioni-logo-item {
    width: 120px;
    height: 48px;
  }
}

/* ==========================================================================
   PAGE: SEDI - HERO & CARDS (Figma Node 1:2776 Master Alignment)
   ========================================================================== */
.sedi-hero-wrapper {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF6F6 100%);
  padding: 10px 0 45px;
  position: relative;
  overflow: hidden;
}

.sedi-hero-deco-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 480px;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.sedi-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sedi-hero-left {
  padding-right: 20px;
}

.sedi-tag-badge {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark, #017A7E);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sedi-hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.sedi-hero-desc {
  font-family: var(--font-main);
  font-size: 18px;
  color: #545C5C;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 580px;
}

.sedi-link-spec {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.15s ease;
}

.sedi-link-spec:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}

/* Sede Hero Floating Info Card (Figma Node 1:2776) */
.sede-info-card-float {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  box-shadow: 0 10px 30px rgba(31, 44, 96, 0.08);
  border: 1px solid rgba(0, 169, 174, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: #545C5C;
  line-height: 1.4;
}

.info-card-row i {
  color: var(--accent-orange);
  font-size: 16px;
  width: 18px;
  margin-top: 3px;
  text-align: center;
  flex-shrink: 0;
}

.info-card-row strong, .info-card-row a {
  color: var(--navy);
  font-weight: 600;
}

.info-card-row a:hover {
  color: var(--primary);
}

.btn-sede-card-prenota {
  background-color: var(--navy);
  color: var(--white);
  height: 44px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-transform: uppercase;
}

.btn-sede-card-prenota:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.link-sede-indicazioni {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.link-sede-indicazioni:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   PAGE: SEDI - FACILITY PHOTOS ROW (Height 232px, 4 side-by-side images)
   ========================================================================== */
.facility-gallery-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.facility-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 232px;
}

.facility-gallery-item {
  height: 232px;
  overflow: hidden;
  position: relative;
}

.facility-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-gallery-item:hover img {
  transform: scale(1.04);
}

/* Slider in loop continuo (attivato da main.js: senza JS o con riduzione del movimento resta la fascia statica).
   La traccia contiene due copie identiche delle foto e scorre di metà della sua larghezza. */
.facility-gallery-wrapper.is-slider .facility-gallery-strip {
  display: flex;
  width: max-content;
  animation: psm-strip-scroll var(--strip-duration, 120s) linear infinite;
  will-change: transform;
}

.facility-gallery-wrapper.is-slider .facility-gallery-item {
  flex: 0 0 var(--strip-slot, 25vw);
  width: var(--strip-slot, 25vw);
}

.facility-gallery-wrapper.is-slider .facility-gallery-strip:hover,
.facility-gallery-wrapper.is-slider.is-paused .facility-gallery-strip,
.facility-gallery-wrapper.is-slider.is-offscreen .facility-gallery-strip {
  animation-play-state: paused;
}

@keyframes psm-strip-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Pausa/riprendi (WCAG 2.2.2: contenuto in movimento per più di 5 secondi) */
.facility-gallery-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(20, 29, 64, 0.18);
  cursor: pointer;
}

.facility-gallery-toggle[hidden] { display: none; }
.facility-gallery-toggle:hover { background: var(--white); }
.facility-gallery-toggle:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.facility-gallery-toggle .icon-play { display: none; }
.facility-gallery-wrapper.is-paused .facility-gallery-toggle .icon-play { display: block; }
.facility-gallery-wrapper.is-paused .facility-gallery-toggle .icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .facility-gallery-wrapper.is-slider .facility-gallery-strip { animation: none; }
}

/* ==========================================================================
   PAGE: SEDI - "COSA PUOI FARE QUI" SPECIALTIES SECTION
   ========================================================================== */
.specialties-section {
  padding: 40px 0 80px;
  background-color: var(--white);
}

.specialties-header-box {
  text-align: center;
  margin-bottom: 40px;
}

.spec-header-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.spec-header-title strong,
.spec-header-title .highlight {
  font-weight: 800;
  color: var(--navy);
}

/* Clinical Area Category Pill & Group (Figma Pastel System) */
.clinical-category-group {
  margin-bottom: 50px;
}

.clinical-category-pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.clinical-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pill-medica {
  background-color: #EEF6F6;
  color: #016E72;
}

.pill-chirurgica {
  background-color: #F6EEF4;
  color: #844C6C;
}

.pill-diagnostica {
  background-color: #FDF5EC;
  color: #B45309;
}

.pill-riabilitativa {
  background-color: #FBF0F2;
  color: #A82D46;
}

/* 3-Column Card Grid (Figma 20px rx, 20px gap) */
.clinical-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Centered layouts for orphan cards in last rows */
.clinical-cards-grid-centered-2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.clinical-cards-grid-centered-2 .clinical-spec-card {
  width: calc((100% - 40px) / 3);
}

.clinical-cards-grid-centered-1 {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.clinical-cards-grid-centered-1 .clinical-spec-card {
  width: calc((100% - 40px) / 3);
}

.clinical-spec-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 169, 174, 0.12);
  box-shadow: 0 3px 12px rgba(31, 44, 96, 0.04);
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 124px;
  height: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clinical-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(31, 44, 96, 0.08);
  border-color: rgba(0, 169, 174, 0.35);
}

/* Card specialità cliccabili (pagina sede): stesso aspetto della versione statica */
a.clinical-spec-card {
  text-decoration: none;
  color: inherit;
}

a.clinical-spec-card:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.clinical-spec-card .spec-card-title,
.clinical-spec-card .spec-card-desc {
  display: block;
}

h3.clinical-category-pill {
  margin: 0;
}

.sede-spec-empty {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.sede-spec-empty a {
  color: var(--primary-dark);
  font-weight: 600;
}

.spec-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.spec-card-body {
  display: flex;
  flex-direction: column;
}

.spec-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.spec-card-desc {
  font-family: var(--font-main);
  font-size: 13px;
  color: #545C5C;
  line-height: 1.45;
}

/* ==========================================================================
   PAGE: SEDI - BOOKING CTA BANNER (Figma Node 1:2776)
   ========================================================================== */
.booking-banner-section {
  background-color: var(--navy);
  color: var(--white);
  padding: 44px 0;
  margin-bottom: 0;
}

.booking-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.booking-banner-left h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.booking-banner-left p {
  font-family: var(--font-main);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.booking-banner-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-banner-call {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: transparent;
  color: var(--white);
  height: 44px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-banner-call:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-banner-online {
  background-color: var(--primary);
  color: var(--white);
  height: 44px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-banner-online:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   PAGE: SEDI & CONTATTI - "TI RICHIAMIAMO NOI" SECTION (Figma Node 7:2705)
   ========================================================================== */
.callback-section-xd {
  background-color: var(--primary-light);
  padding: 70px 0 85px;
}

.callback-header-box {
  text-align: center;
  margin-bottom: 38px;
}

.callback-header-box .home-tag-badge {
  margin-bottom: 10px;
}

.callback-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.callback-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #545C5C;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin: 0 auto;
}

/* Centered Form Card (w: 710px, rx: 30px, white) */
.callback-form-card-xd {
  background: var(--white);
  border-radius: var(--radius-form); /* 30px */
  max-width: 710px;
  margin: 0 auto;
  padding: 42px 30px 45px;
  box-shadow: 0 10px 35px rgba(0, 169, 174, 0.05), 0 2px 10px rgba(0, 0, 0, 0.03);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.form-group-xd {
  margin-bottom: 18px;
}

.form-group-xd label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-control-xd {
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border-radius: var(--radius-btn); /* 8px */
  border: 1px solid rgba(0, 169, 174, 0.55);
  background-color: #EEF6F6;
  font-size: 15px;
  color: var(--navy);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-xd::placeholder {
  color: #8C9393;
  opacity: 1;
  font-weight: 400;
}

.form-control-xd:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 169, 174, 0.18);
}

select.form-control-xd {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300A9AE'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
  color: #545C5C;
  cursor: pointer;
}

select.form-control-xd:focus {
  color: var(--navy);
}

textarea.form-control-xd {
  height: 102px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.45;
}

/* Contact Preference Buttons */
.pref-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.pref-btn-label {
  position: relative;
  margin: 0;
}

.pref-btn-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pref-btn-pill {
  height: 34px;
  padding: 0 18px;
  border-radius: var(--radius-btn); /* 8px */
  border: 1px solid var(--primary);
  background-color: var(--white);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pref-btn-label input:checked + .pref-btn-pill {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 169, 174, 0.25);
}

.pref-btn-label input:focus-visible + .pref-btn-pill {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.privacy-row-xd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 22px;
  font-size: 14px;
  color: #545C5C;
}

.privacy-row-xd input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.privacy-row-xd a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.privacy-row-xd a:hover {
  color: var(--primary-dark);
}

.privacy-row-xd a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn-submit-callback {
  background-color: var(--navy);
  color: var(--white);
  height: 46px;
  min-width: 244px;
  padding: 0 32px;
  border-radius: var(--radius-btn); /* 8px */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-submit-callback:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-submit-callback:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

.callback-form {
  display: block;
}

.form-gdpr-note {
  font-size: 13px;
  color: #8C9393;
  margin-top: 14px;
}

/* ==========================================================================
   PAGE: CONTATTI SPECIFIC STYLES (Figma Node 7:2658)
   ========================================================================== */
.contatti-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF6F6 100%);
  padding: 10px 0 65px;
}

.contatti-hero-deco-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.contatti-hero-section .container-xd {
  position: relative;
  z-index: 2;
}

.contatti-hero-header {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 40px;
}

.contatti-hero-header .home-tag-badge {
  margin-bottom: 12px;
}

.contatti-hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.contatti-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #545C5C;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 650px;
  margin: 0 auto;
}

/* 3 Action Cards Grid (1018px total width: 326px x 3 + 20px x 2) */
.contatti-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1018px;
  margin: 0 auto;
}

.contatti-action-card {
  min-height: 271px;
  border-radius: var(--radius-card); /* 20px */
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contatti-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Card 1: Teal */
.contatti-card-teal {
  background: linear-gradient(136deg, rgba(0, 169, 174, 0.05) 0%, rgba(0, 169, 174, 0.15) 100%);
  border: 1px solid rgba(0, 169, 174, 0.2);
}

/* Card 2: Navy */
.contatti-card-navy {
  background: linear-gradient(136deg, rgba(31, 44, 96, 0.05) 0%, rgba(31, 44, 96, 0.15) 100%);
  border: 1px solid rgba(31, 44, 96, 0.14);
}

/* Card 3: Orange */
.contatti-card-orange {
  background: linear-gradient(136deg, rgba(240, 147, 50, 0.05) 0%, rgba(240, 147, 50, 0.15) 100%);
  border: 1px solid rgba(240, 147, 50, 0.2);
}

.contatti-card-body {
  display: flex;
  flex-direction: column;
}

.contatti-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.contatti-card-desc {
  font-size: 15px;
  font-weight: 400;
  color: #545C5C;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.contatti-card-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark); /* #017A7E */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  padding: 2px 0;
}

.contatti-card-link:hover {
  color: #01595C;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contatti-card-link:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

.contatti-sedi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contatti-sede-card {
  background: var(--white);
  border-radius: var(--radius-card); /* 20px */
  border: 1px solid rgba(0, 169, 174, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 520px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contatti-sede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 169, 174, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 169, 174, 0.5);
}

.contatti-sede-card .home-sede-img {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.contatti-sede-card .home-sede-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contatti-sede-card .home-sede-province {
  text-align: left;
  margin-bottom: 2px;
}

.contatti-sede-card .home-sede-city-title {
  text-align: left;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}

.contatti-sede-card .home-sede-info-line {
  display: block;
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.45;
  font-size: 13.5px;
  color: var(--text-muted);
}

.contatti-sede-card .sede-phone-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contatti-sede-card .sede-phone-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contatti-sede-card .sede-phone-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.contatti-sede-card .sede-info-link {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contatti-sede-card .sede-info-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contatti-sede-card .sede-info-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.contatti-sede-card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sede-card-prenota {
  background-color: var(--navy);
  color: var(--white);
  height: 40px;
  border-radius: var(--radius-btn); /* 8px */
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-sede-card-prenota:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-sede-card-prenota:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

.contatti-sede-link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.contatti-sede-link-btn:hover {
  color: #01595C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contatti-sede-link-btn:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.faq-section {
  background-color: var(--white);
  padding: 70px 0 85px;
}

.faq-accordion-box-xd {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item-xd {
  background: transparent;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.faq-item-xd.active {
  border-bottom-color: rgba(0, 169, 174, 0.4);
  box-shadow: none;
}

.faq-question-btn {
  width: 100%;
  padding: 22px 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: var(--primary);
}

.faq-question-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-question-btn i {
  font-size: 13px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item-xd.active .faq-question-btn i {
  transform: rotate(180deg);
}

.faq-answer-block {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

.faq-item-xd.active .faq-answer-block {
  max-height: 300px;
  padding: 0 0 20px 0;
}

/* ==========================================================================
   PAGE: STORIA / CHI SIAMO SPECIFIC STYLES
   ========================================================================== */
.storia-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF6F6 100%);
  padding: 10px 0 65px;
}

.storia-hero-header {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 36px;
}

.storia-hero-header .home-tag-badge {
  margin-bottom: 12px;
}

.storia-hero-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.storia-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 auto 36px;
}

/* Metrics Banner Card */
.storia-metrics-bar {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 169, 174, 0.22);
  box-shadow: 0 10px 32px rgba(0, 169, 174, 0.07);
  padding: 30px 40px;
  max-width: 980px;
  margin: 0 auto;
}

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

.storia-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.storia-metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(0, 169, 174, 0.2);
}

.storia-metric-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.storia-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.storia-metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   MISSIONE & OBIETTIVI (Based on live https://www.poliambulatoriosanmatteo.it/storia/)
   -------------------------------------------------------------------------- */
.mission-obiettivi-section {
  padding: 85px 0 80px;
  background-color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1040px;
  margin: 45px auto 0;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 169, 174, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 169, 174, 0.1);
}

.mission-card-teal {
  border-top: 5px solid var(--primary);
}

.mission-card-navy {
  border-top: 5px solid var(--navy);
}

.mission-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.mission-card-teal .mission-card-icon-wrap {
  background: rgba(0, 169, 174, 0.1);
  color: var(--primary);
}

.mission-card-navy .mission-card-icon-wrap {
  background: rgba(31, 44, 96, 0.08);
  color: var(--navy);
}

.mission-card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.mission-card-text {
  font-size: 16px;
  line-height: 1.65;
  color: #4A5252;
  margin-bottom: 24px;
}

.mission-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed rgba(0, 169, 174, 0.2);
  padding-top: 20px;
  margin-top: auto;
}

.mission-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.45;
}

.mission-checklist li i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   VALORI FONDANTI SECTION
   -------------------------------------------------------------------------- */
.valori-section {
  background-color: var(--primary-light);
  padding: 85px 0 80px;
}

.valori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 45px;
}

.valori-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid rgba(0, 169, 174, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.valori-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 169, 174, 0.1);
}

.valori-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 169, 174, 0.09);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.valori-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.valori-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   TIMELINE STORICA
   -------------------------------------------------------------------------- */
.timeline-section {
  padding: 90px 0 85px;
  background-color: var(--white);
}

.timeline-flow {
  max-width: 940px;
  margin: 50px auto 0;
  position: relative;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 15px;
  bottom: 25px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 169, 174, 0.2) 100%);
}

.timeline-milestone {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
  position: relative;
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

.timeline-badge-node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-milestone.active .timeline-badge-node {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 169, 174, 0.35);
}

.timeline-content-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 169, 174, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
  flex: 1;
}

.timeline-tag-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   GALLERIA "I NOSTRI SPAZI" (griglia 3x3 + lightbox)
   -------------------------------------------------------------------------- */
.storia-gallery-section {
  background: var(--primary-light);
  padding: 85px 0 85px;
}

.storia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 45px 0 0;
  padding: 0;
  list-style: none;
}

.storia-gallery-item {
  margin: 0;
  min-width: 0;
}

.storia-gallery-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.storia-gallery-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 169, 174, 0.16);
}

.storia-gallery-link:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}

.storia-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.storia-gallery-link:hover .storia-gallery-img,
.storia-gallery-link:focus-visible .storia-gallery-img {
  transform: scale(1.04);
}

/* Didascalia sovrapposta: sfumatura navy piena sotto il testo (contrasto testo bianco > 7:1) */
.storia-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 44px 18px 14px;
  background: linear-gradient(to top, rgba(20, 29, 64, 0.92) 0%, rgba(20, 29, 64, 0.82) 55%, rgba(20, 29, 64, 0) 100%);
  pointer-events: none;
}

.storia-gallery-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.storia-gallery-sede {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.storia-gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 14px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.storia-gallery-link:hover .storia-gallery-zoom,
.storia-gallery-link:focus-visible .storia-gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1023px) {
  .storia-gallery-grid { gap: 14px; }
  .storia-gallery-caption { padding: 36px 14px 12px; }
  .storia-gallery-title { font-size: 15px; }
}

/* Lightbox (dialog nativo) */
.psm-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 18, 40, 0.96);
  color: var(--white);
  overflow: hidden;
}

.psm-lightbox::backdrop {
  background: rgba(12, 18, 40, 0.96);
}

.psm-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.psm-lightbox-figure {
  margin: 0;
  padding: 64px 88px 24px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
}

.psm-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
}

.psm-lightbox-img.is-loading {
  opacity: 0.35;
}

.psm-lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
}

.psm-lightbox-counter {
  font-size: 14px;
  font-weight: 500;
  color: #D5DBEA;
  font-variant-numeric: tabular-nums;
}

.psm-lightbox-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.psm-lightbox-btn:hover {
  background: var(--white);
  transform: scale(1.06);
}

.psm-lightbox-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.psm-lightbox-close { top: 14px; right: 14px; }
.psm-lightbox-prev { left: 20px; top: 50%; margin-top: -24px; }
.psm-lightbox-next { right: 20px; top: 50%; margin-top: -24px; }

body.psm-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .psm-lightbox-figure { padding: 64px 12px 84px; }
  .psm-lightbox-img { max-height: calc(100% - 64px); border-radius: 6px; }
  .psm-lightbox-prev,
  .psm-lightbox-next { top: auto; bottom: 16px; margin-top: 0; }
  .psm-lightbox-prev { left: calc(50% - 60px); }
  .psm-lightbox-next { right: calc(50% - 60px); }
  .psm-lightbox-caption { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .storia-gallery-link,
  .storia-gallery-img,
  .storia-gallery-zoom,
  .psm-lightbox-img,
  .psm-lightbox-btn { transition: none; }
  .storia-gallery-link:hover,
  .storia-gallery-link:hover .storia-gallery-img,
  .storia-gallery-link:focus-visible .storia-gallery-img,
  .psm-lightbox-btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   RETE DELLE SEDI BANNER
   -------------------------------------------------------------------------- */
.storia-sedi-callout-section {
  padding: 80px 0 75px;
  background-color: var(--white);
}

.storia-sedi-box {
  background: linear-gradient(136deg, rgba(0, 169, 174, 0.08) 0%, rgba(31, 44, 96, 0.05) 100%);
  border-radius: 24px;
  border: 1px solid rgba(0, 169, 174, 0.25);
  padding: 50px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.storia-sedi-box-content {
  max-width: 620px;
}

.storia-sedi-box-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.storia-sedi-box-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.storia-sedi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storia-sede-pill {
  background: var(--white);
  border: 1px solid rgba(0, 169, 174, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.storia-sede-pill i {
  color: var(--primary);
  font-size: 12px;
}

.storia-sedi-box-action {
  flex-shrink: 0;
}

.btn-storia-scopri-sedi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-storia-scopri-sedi:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-storia-scopri-sedi:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ==========================================================================
   SHARED: FEATURES BAR (#eef6f6 background, height 191px)
   ========================================================================== */
.features-bar-xd {
  background-color: var(--primary-light);
  padding: 36px 0 42px;
  border-top: 1px solid rgba(0, 169, 174, 0.1);
}

.features-grid-xd {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-item-xd {
  display: flex;
  flex-direction: column;
}

.feature-icon-top {
  display: flex;
  align-items: flex-end;
  height: 48px;
  margin-bottom: 14px;
}

.feature-icon-img {
  display: block;
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.feature-icon-top i {
  font-size: 38px;
  color: var(--primary);
}

.feature-item-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-item-desc {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   SHARED: FOOTER (Figma Node 7:912 - Gradient #017A7E to #00A9AE)
   ========================================================================== */
.site-footer-xd {
  background: linear-gradient(180deg, #017A7E 0%, #00A9AE 100%);
  color: var(--white);
  padding: 52px 0 36px;
  position: relative;
}

.footer-main-row {
  display: flex;
  align-items: stretch;
  gap: 52px;
  margin-bottom: 36px;
}

.footer-white-card {
  flex: 0 0 227px;
  width: 227px;
  min-height: 204px;
  background: var(--white);
  border-radius: 10px;
  padding: 22px 20px 20px;
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo-img {
  width: 178px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

/* Logo caricato da Personalizza > Identità del sito (lo stesso della testata): tutta la larghezza utile della card */
.footer-logo-img--custom {
  width: 187px;
  max-width: 100%;
  height: auto;
  max-height: 72px;
}

.footer-card-desc {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: #545C5C;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0;
}

.footer-columns-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  border-bottom: 1px solid rgba(0, 169, 174, 0.55);
  padding-bottom: 24px;
}

.footer-column-xd {
  padding-left: 36px;
  padding-right: 16px;
  position: relative;
}

.footer-column-xd:first-child {
  padding-left: 0;
}

/* Vertical divider between columns (matching Figma Linea_5 & Linea_6 height 151px) */
.footer-column-xd:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 151px;
  width: 1px;
  background-color: rgba(0, 169, 174, 0.55);
}

.footer-column-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

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

.footer-link-list a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  opacity: 0.95;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
  display: inline-block;
}

.footer-link-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-link-list a:focus-visible,
.footer-legal-links a:focus-visible,
.footer-logo-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-legal-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  opacity: 0.95;
  text-align: right;
}

/* Dati societari & Direttori Sanitari (ACF: Footer & Dati Legali) */
.footer-legal-info {
  display: grid;
  grid-template-columns: 227px minmax(0, 1fr);
  gap: 28px 52px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-legal-title {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.footer-legal-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-legal-label {
  font-weight: 600;
}

.footer-legal-sede {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.footer-legal-label abbr {
  text-decoration: none;
  border: 0;
}

.footer-legal-info a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease;
}

.footer-legal-info a:hover {
  text-decoration-color: var(--white);
}

.footer-legal-info a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-directors-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
  margin: 0;
}

.footer-director-item dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.footer-director-item dd {
  margin: 0;
}

.footer-director-role {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .footer-legal-info { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .footer-legal-info { text-align: center; padding-bottom: 24px; }
  .footer-legal-address { align-items: center; }
  .footer-directors-list { grid-template-columns: 1fr; gap: 12px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .sedi-hero-grid { grid-template-columns: 1fr; }
  .facility-gallery-strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .facility-gallery-item { height: 180px; }
  .clinical-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .clinical-cards-grid-centered-2,
  .clinical-cards-grid-centered-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  .clinical-cards-grid-centered-2 .clinical-spec-card,
  .clinical-cards-grid-centered-1 .clinical-spec-card {
    width: 100%;
  }
  .booking-banner-flex { flex-direction: column; text-align: center; }
  .quick-access-grid,
  .contatti-action-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .home-specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-sceglierci-layout { flex-direction: column; align-items: center; }
  .quattro-sedi-grid,
  .contatti-sedi-grid { grid-template-columns: repeat(2, 1fr); }
  .esperienze-grid { grid-template-columns: 1fr; }
  .features-grid-xd { grid-template-columns: repeat(2, 1fr); }
  .storia-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .mission-grid { grid-template-columns: 1fr; }
  .valori-grid { grid-template-columns: repeat(2, 1fr); }
  .storia-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .storia-sedi-box { flex-direction: column; text-align: center; }
  .storia-sedi-pills { justify-content: center; }
  .footer-main-row { gap: 32px; }
  .footer-column-xd { padding-left: 24px; }
}

@media (max-width: 768px) {
  .header-container > .nav-actions > .btn-portal { display: none; }
  .home-search-box-card { flex-direction: column; }
  .search-field-unit { border-right: none; border-bottom: 1px solid var(--border-light); width: 100%; }
  .btn-home-cerca { width: 100%; justify-content: center; }
  .clinical-cards-grid { grid-template-columns: 1fr; }
  .clinical-cards-grid-centered-2,
  .clinical-cards-grid-centered-1 {
    grid-template-columns: 1fr;
  }
  .sedi-hero-title { font-size: 32px; }
  .sedi-hero-wrapper { padding: 10px 0 35px; }
  .form-row-2col { grid-template-columns: 1fr; }
  .home-specialties-grid { grid-template-columns: 1fr; }
  .perche-right-grid { grid-template-columns: 1fr; }
  .quattro-sedi-grid,
  .contatti-sedi-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .btn-quattro-sedi-main { width: 100%; max-width: 340px; }
  .features-grid-xd { grid-template-columns: 1fr; }
  .contatti-hero-title { font-size: 28px; }
  .contatti-hero-section { padding: 10px 0 45px; }
  .contatti-hero-deco-bg { opacity: 0.35; right: -40px; }
  .contatti-action-card { min-height: auto; padding: 28px 24px 24px; }
  .storia-hero-title { font-size: 28px; }
  .storia-hero-section { padding: 10px 0 45px; }
  .storia-metrics-bar { padding: 24px 20px; }
  .storia-metrics-grid { grid-template-columns: 1fr; gap: 20px; }
  .storia-metric-item:not(:last-child)::after { display: none; }
  .mission-card { padding: 30px 22px; }
  .valori-grid { grid-template-columns: 1fr; }
  .storia-gallery-grid { grid-template-columns: 1fr; }
  .timeline-flow::before { left: 20px; }
  .timeline-badge-node { width: 44px; height: 44px; font-size: 12px; }
  .timeline-milestone { gap: 16px; }
  .timeline-content-card { padding: 18px 20px; }
  .storia-sedi-box { padding: 32px 20px; }
  .storia-sedi-box-title { font-size: 24px; }
  .btn-storia-scopri-sedi { width: 100%; justify-content: center; }
  .footer-main-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
  }
  .footer-white-card {
    width: 100%;
    max-width: 320px;
  }
  .footer-columns-wrap {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 28px;
    border-bottom: 1px solid rgba(0, 169, 174, 0.45);
    padding-bottom: 24px;
  }
  .footer-column-xd {
    padding-left: 0;
    text-align: center;
  }
  .footer-column-xd:not(:first-child)::before {
    display: none;
  }
  .footer-link-list {
    align-items: center;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-copyright {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   SPECIALITA PAGE STYLES (Figma Node 1:3841)
   ========================================================================== */

/* Hero Section */
.specialita-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCE8EC 100%);
  height: 328px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.specialita-hero-section .container-xd {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.specialita-hero-deco-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 328px;
  width: auto;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}

.specialita-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.specialita-hero-section .breadcrumb-bar {
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #545C5C;
}

.specialita-hero-section .breadcrumb-bar a {
  color: #545C5C;
  text-decoration: none;
}

.specialita-hero-section .breadcrumb-bar a:hover {
  text-decoration: underline;
}

.specialita-hero-section .breadcrumb-bar .breadcrumb-sep {
  color: #545C5C;
  font-size: 12px;
}

.specialita-hero-section .breadcrumb-bar .current {
  font-weight: 600;
  color: #545C5C;
}

.specialita-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  color: #1F2C60;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.specialita-hero-subtitle {
  font-family: var(--font-main);
  font-size: 15.5px;
  line-height: 1.5;
  color: #545C5C;
  max-width: 620px;
  margin: 0;
}

/* ==========================================================================
   BARRA FILTRI SPECIALITÀ (Figma Node 1:6319 - Dark Navy Bar 127px)
   ========================================================================== */
.specialita-filters-bar-section {
  background-color: #1F2C60;
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.filters-bar-inner {
  max-width: 1014px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

/* 1. Input Ricerca Testuale */
.filter-input-wrap {
  position: relative;
  width: 100%;
}

.filter-search-input {
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  border: 1px solid #00A9AE;
  border-radius: 8px;
  padding: 0 38px 0 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #1F2C60;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-search-input::placeholder {
  color: #545C5C;
  opacity: 0.56;
}

.filter-search-input:focus {
  border-color: #00A9AE;
  box-shadow: 0 0 0 3px rgba(0, 169, 174, 0.25);
}

.filter-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 4px;
  font-size: 13px;
  color: #94A3B8;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.filter-search-clear:hover {
  color: #1F2C60;
}

.filter-search-clear:focus-visible {
  outline: 2px solid var(--primary-dark, #017A7E);
}

.filter-search-clear.visible {
  display: flex;
}

/* 2 & 3. Select Dropdowns (Area & Sede) */
.filter-select-wrap {
  position: relative;
  width: 100%;
}

.filter-select-control {
  width: 100%;
  height: 46px;
  background: linear-gradient(180deg, #EEF6F6 0%, #C9EBEB 100%);
  border: none;
  border-radius: 8px;
  padding: 0 42px 0 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #017A7E;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.filter-select-control:hover {
  opacity: 0.95;
}

.filter-select-control:focus {
  box-shadow: 0 0 0 3px rgba(1, 122, 126, 0.3);
}

.filter-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 8px;
  pointer-events: none;
}

/* ==========================================================================
   SEZIONE LISTING SPECIALITÀ (Figma Benchmark 1172x4040 - 24 Cards Grid)
   ========================================================================== */
.specialita-listing-section {
  background-color: rgba(238, 246, 246, 0.4);
  padding: 44px 0 80px;
  position: relative;
}

.listing-header-bar {
  max-width: 1014px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.listing-header-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #017A7E;
  margin: 0;
  letter-spacing: -0.01em;
}

.listing-header-badge {
  font-family: var(--font-main);
  font-size: 13px;
  color: #716F6F;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.listing-header-badge i {
  color: var(--color-teal);
  font-size: 13px;
}

.specialita-preview-grid {
  max-width: 1014px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  row-gap: 28px;
}

/* Specialty Preview Card Component (Figma Node 1:6399) */
.specialty-preview-card {
  background: #FFFFFF;
  border-radius: var(--radius-card, 20px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.specialty-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 169, 174, 0.12);
  border-color: var(--color-teal, #00A9AE);
}

.preview-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.preview-card-icon-wrap {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card-icon-wrap img {
  width: 44px;
  height: 39px;
  object-fit: contain;
}

.preview-card-header-texts {
  flex: 1;
  min-width: 0;
}

.preview-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  color: var(--color-navy, #1F2C60);
  margin: 0 0 3px 0;
}

.preview-card-area {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-dark, #017A7E);
  display: block;
}

.preview-card-desc {
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.45;
  color: #545C5C;
  margin: 0 0 16px 0;
}

.preview-card-services-wrap {
  margin-bottom: 18px;
}

.preview-card-services-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #545C5C;
  margin-bottom: 8px;
}

.preview-card-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-card-service-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #545C5C;
  line-height: 1.35;
}

.preview-service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #017A7E;
  flex-shrink: 0;
}

.preview-card-sedi-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-sede-pill {
  background: rgba(113, 111, 111, 0.05);
  border-radius: 13px;
  height: 26px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 12px;
  color: #545C5C;
}

.btn-preview-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  background: var(--color-navy, #1F2C60);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: var(--radius-btn, 8px);
  text-decoration: none;
  border: 1px solid #1F2C60;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-preview-card:hover {
  background: var(--color-teal, #00A9AE);
  border-color: #00A9AE;
  color: #FFFFFF;
}

.btn-preview-card:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}


.specialita-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px dashed #CBD5E1;
}

.specialita-empty-icon {
  font-size: 40px;
  color: #94A3B8;
  margin-bottom: 16px;
}

.specialita-empty-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.specialita-empty-desc {
  font-family: var(--font-main);
  font-size: 15px;
  color: #64748B;
  margin-bottom: 24px;
}

.btn-reset-filters {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--color-navy);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-reset-filters:hover {
  background: var(--color-teal);
}

/* Responsive adjustments for Specialita */
@media (max-width: 1024px) {
  .specialita-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .eccellenze-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialita-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .specialita-filters-bar-section {
    padding: 24px 0;
  }
  .filters-bar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .specialita-hero-section {
    height: auto;
    padding-bottom: 40px;
  }
  .specialita-hero-section .container-xd {
    padding-top: 18px;
  }
  .specialita-hero-section .breadcrumb-bar {
    margin-bottom: 24px;
  }
  .specialita-hero-deco-bg {
    opacity: 0.22;
    right: -80px;
  }
  .specialita-hero-title {
    font-size: 32px;
  }
  .listing-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }
  .listing-header-badge {
    font-size: 12px;
    line-height: 1.4;
  }
  .specialita-preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .specialty-preview-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .eccellenze-grid {
    grid-template-columns: 1fr;
  }
  .specialita-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessible Form Feedback Alerts & Validation (WCAG 2.1 AA) */
.form-feedback-alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-feedback-alert .feedback-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-feedback-alert .feedback-content i {
  font-size: 20px;
  flex-shrink: 0;
}

.form-feedback-success {
  background-color: #E8F7F7;
  color: #016366;
  border: 1px solid #00A9AE;
}

.form-feedback-error {
  background-color: #FDF2F4;
  color: #9C1F37;
  border: 1px solid #D65B74;
}

.form-control-xd.is-invalid {
  border-color: #D65B74 !important;
  background-color: #FFF8F9 !important;
  outline: 2px solid rgba(214, 91, 116, 0.25) !important;
}

/* ==========================================================================
   SCHEDA MEDICO / ÉQUIPE COMPONENT (.medico-card & .medico-compact-item)
   ========================================================================== */
.medico-card {
  background: #FFFFFF;
  border-radius: var(--radius-card, 20px);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.medico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 169, 174, 0.1);
  border-color: rgba(0, 169, 174, 0.35);
}

.medico-card-media {
  position: relative;
  width: 100%;
  height: 260px;
  background: #EEF6F6;
  overflow: hidden;
}

.medico-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.medico-card:hover .medico-card-img {
  transform: scale(1.03);
}

.medico-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #00A9AE;
  font-size: 64px;
}

.medico-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.medico-card-name {
  font-family: var(--font-heading);
  color: var(--navy, #1F2C60);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.medico-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.medico-card-name a:hover {
  color: var(--primary, #00A9AE);
}

.medico-card-role {
  color: #00A9AE;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.medico-card-bio {
  color: var(--text-muted, #545C5C);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.medico-card-sedi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.medico-sede-pill {
  background: #EEF6F6;
  color: #017A7E;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.medico-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-medico-profilo {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
}

.btn-medico-prenota {
  flex: 1;
  background: var(--navy, #1F2C60) !important;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
}

.btn-medico-prenota:hover {
  background: var(--primary, #00A9AE) !important;
}

/* Medico Compact Item (per sidebar ed elenchi associati) */
.medico-compact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #EEF2F6;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.medico-compact-item:hover {
  border-color: #00A9AE;
  background: #F8FCFC;
  transform: translateX(3px);
}

.medico-compact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #EEF6F6;
  flex-shrink: 0;
}

.medico-compact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medico-compact-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #00A9AE;
  font-size: 22px;
}

.medico-compact-info {
  display: flex;
  flex-direction: column;
}

.medico-compact-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy, #1F2C60);
  font-size: 15px;
  line-height: 1.3;
}

.medico-compact-role {
  font-size: 12px;
  color: #00A9AE;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   BARRA FILTRI ÉQUIPE MEDICA (Figma Node 1:10117 - Dark Navy #1F2C60)
   ========================================================================== */
.equipe-filters-bar-section {
  background-color: #1F2C60;
  padding: 38px 0;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   GRIGLIA E CARD ÉQUIPE MEDICA 1:1 SVG FIGMA (Node 1:10117)
   ========================================================================== */
.medici-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.medico-card-item {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 120px;
}

.medico-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 169, 174, 0.12);
  border-color: rgba(0, 169, 174, 0.4);
}

.medico-card-avatar {
  width: 67px;
  height: 67px;
  min-width: 67px;
  border-radius: 50%;
  overflow: hidden;
  background: #EEF6F6;
  border: 2px solid #00A9AE;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.medico-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #017A7E;
  font-size: 28px;
}

.medico-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.medico-card-name {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy, #1F2C60);
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.medico-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.medico-card-name a:hover {
  color: var(--primary, #00A9AE);
}

.medico-card-role {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: #00A9AE;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.medico-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.medico-card-sedi {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.medico-sede-pill {
  background: #EEF6F6;
  color: #017A7E;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  text-transform: capitalize;
  line-height: 1.4;
}

.medico-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy, #1F2C60);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: auto;
  white-space: nowrap;
}

.medico-card-cta:hover {
  background: var(--primary-dark, #017A7E);
  transform: translateX(2px);
  color: #FFFFFF !important;
}

.medici-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px dashed #CBD5E1;
  max-width: 600px;
  margin: 40px auto;
}

.medici-empty-state i {
  font-size: 48px;
  color: #017A7E;
  margin-bottom: 16px;
  display: block;
}

.medici-empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--navy, #1F2C60);
  margin-bottom: 10px;
  font-weight: 700;
}

.medici-empty-desc {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .medici-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .medici-grid {
    grid-template-columns: 1fr;
  }
  .medico-card-item {
    padding: 16px;
    gap: 14px;
  }
}

/* ==========================================================================
   TEMPLATE SINGOLA SPECIALITÀ (single-specialita.php)
   ========================================================================== */
.single-spec-container {
  padding-top: 48px;
  padding-bottom: 72px;
}

.single-spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: start;
}

.single-spec-main {
  min-width: 0;
}

.single-spec-card {
  background: #FFFFFF;
  border-radius: var(--radius-card, 20px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 38px 42px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s ease;
}

.single-spec-h2 {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  color: var(--navy, #1F2C60);
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.single-spec-entry {
  font-size: 16px;
  line-height: 1.8;
  color: #4A5568;
}

.single-spec-entry p {
  margin-top: 0;
  margin-bottom: 16px;
}

.single-spec-entry p:last-child {
  margin-bottom: 0;
}

/* Prestazioni Section */
.single-spec-prestazioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.single-spec-prestazione-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid #E9EFF5;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--navy, #1F2C60);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.single-spec-prestazione-item:hover {
  background: #FFFFFF;
  border-color: #00A9AE;
  box-shadow: 0 4px 12px rgba(0, 169, 174, 0.08);
}

.single-spec-prestazione-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00A9AE;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Tecnologia & Diagnostica Box */
.single-spec-tecnologie-box {
  background: linear-gradient(135deg, #EEF6F6 0%, #E3F2F2 100%);
  border: 1px solid rgba(0, 169, 174, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.single-spec-tecnologie-icon {
  font-size: 26px;
  color: #017A7E;
  flex-shrink: 0;
  margin-top: 2px;
}

.single-spec-tecnologie-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #017A7E;
  margin: 0 0 6px 0;
}

.single-spec-tecnologie-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4A5568;
}

/* Patologie Pills */
.single-spec-patologie-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.spec-patologia-tag {
  display: inline-flex;
  align-items: center;
  background: #EEF6F6;
  color: #017A7E;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid rgba(0, 169, 174, 0.25);
  transition: all 0.2s ease;
}

.spec-patologia-tag:hover {
  background: #00A9AE;
  color: #FFFFFF;
  border-color: #00A9AE;
  transform: translateY(-2px);
}

/* Équipe Section */
.single-spec-equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

/* Sidebar Elements */
.single-spec-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.single-spec-sidebar-card {
  background: #FFFFFF;
  border-radius: var(--radius-card, 20px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 26px 28px;
}

.single-spec-sidebar-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy, #1F2C60);
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-spec-sidebar-title i {
  color: #00A9AE;
  font-size: 17px;
}

/* Sedi List in Sidebar */
.single-spec-sedi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.single-spec-sede-item {
  padding: 14px;
  background: #F8FAFC;
  border: 1px solid #E9EFF5;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.single-spec-sede-item:hover {
  border-color: #00A9AE;
  background: #FFFFFF;
}

.single-spec-sede-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.single-spec-sede-city {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy, #1F2C60);
}

.single-spec-sede-prov {
  font-size: 11px;
  font-weight: 700;
  color: #00A9AE;
  text-transform: uppercase;
  background: #EEF6F6;
  padding: 2px 7px;
  border-radius: 4px;
}

.single-spec-sede-addr {
  font-size: 13px;
  color: #545C5C;
  line-height: 1.4;
  margin-bottom: 6px;
}

.single-spec-sede-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #017A7E;
  text-decoration: none;
}

.single-spec-sede-phone:hover {
  text-decoration: underline;
}

/* Quick CTA Box Sidebar */
.single-spec-quick-cta {
  background: linear-gradient(145deg, #1F2C60 0%, #152044 100%);
  border-radius: var(--radius-card, 20px);
  padding: 28px;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 10px 25px rgba(31, 44, 96, 0.15);
}

.single-spec-quick-cta h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 8px;
}

.single-spec-quick-cta p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
}

.single-spec-quick-cta .btn-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-btn, 8px);
  padding: 11px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.single-spec-quick-cta .btn-cta-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.single-spec-quick-cta .btn-cta-online {
  display: block;
  width: 100%;
  background: #00A9AE;
  color: #FFFFFF;
  border-radius: var(--radius-btn, 8px);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.single-spec-quick-cta .btn-cta-online:hover {
  background: #017A7E;
}

/* Responsive Breakpoints Single Specialità */
@media (max-width: 991px) {
  .single-spec-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .single-spec-sidebar {
    position: static;
  }

  .single-spec-card {
    padding: 28px 24px;
  }
}

@media (max-width: 767px) {
  .single-spec-container {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .single-spec-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .single-spec-h2 {
    font-size: 21px;
  }

  .single-spec-prestazioni-grid {
    grid-template-columns: 1fr;
  }

  .single-spec-equipe-grid {
    grid-template-columns: 1fr;
  }

  .single-spec-tecnologie-box {
    flex-direction: column;
    padding: 20px;
  }
}

/* Accessibility: Reduced motion preferences (WCAG 2.1 AA) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   ACCESSIBILITÀ — CONTRASTO TESTO (WCAG 2.1 AA, 1.4.3) — tutti i breakpoint
   Il teal di brand #00A9AE su bianco ha contrasto 2.9:1 (serve 4.5:1 per
   testo normale). Per i testi piccoli si usa --primary-dark #017A7E (5.3:1).
   I pulsanti grandi con fondo teal restano invariati (decisione di brand).
   ========================================================================== */
.nav-link:hover,
.nav-link.active,
.home-sede-province,
.medico-card-role,
.single-spec-sede-prov,
.privacy-link {
  color: var(--primary-dark);
}

.pref-btn-pill {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.pref-btn-label input:checked + .pref-btn-pill {
  border-color: var(--primary-dark);
  background-color: var(--primary-dark);
}

.form-gdpr-note { color: #5E6666; }                           /* 6.1:1 su bianco */
.form-control-xd::placeholder { color: #5E6666; }             /* 5.5:1 su #EEF6F6 */
.filter-search-input::placeholder { color: #5E6666; opacity: 1; }

.timeline-milestone.active .timeline-badge-node { background: var(--primary-dark); }
