@font-face {
    font-family: "Montserrat";
    src: url("/assets/fonts/Montserrat-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/assets/fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
  --royal-navy: #082845;
  --royal-navy-dark: #061e35;
  --navy-deep: #04182b;

  --monaco-blue: #9fb8dc;
  --monaco-blue-light: #dce9f7;
  --logo: #A2C5D8;

  --summer-burgundy: #64313e;
  --cake-batter: #eeeae1;

  --white: #ffffff;
  --off-white: #f8f7f4;
  --text: #082845;
  --muted: #4d5d6c;

  --bg: #0b1f3a;
  --bg-soft: #0f2a4a;
  --accent: #67b7ff;
  
  --border: rgba(8, 40, 69, 0.12);
  --shadow: 0 20px 50px rgba(8,40,69,0.10);

  --radius: 18px;
  --max: 1180px;
  --topbar-h: 40px;
  --header-h: 140px;

  --font-body: "Montserrat", system-ui, sans-serif;
  --font-heading: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --font: var(--font-body);
}

* {
  box-sizing: border-box;
}

main {
  margin-top: 0;
  padding-top: 0;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--off-white);

  overflow-x: clip;
}

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

p {
  font-weight: 400;
  letter-spacing: -0.1px;
}

html, body {
  overflow-x: hidden;
}

img, svg, iframe {
  max-width: 100%;
}

.slider {
  width: 100%;
  margin: 0;
}

.about-slider {
  padding: 0;
  margin: 0;
  width: 100%;
}

.slider {
  width: 100vw;        /* FULL LARGHEZZA SCHERMO */
  height: clamp(260px, 60vw, 600px);
  margin-left: calc(50% - 50vw); /* centra “full bleed” */
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

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

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

a[href^="tel"],
a[href^="mailto"],
a[href^="https://wa.me"] {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}

/* TOP BAR */
/* TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  height: 40px;

  background: #f8f7f4;

  color: var(--text);

  font-size: 0.85rem;

  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.topbar-left {
  display: flex;
  gap: 10px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wrap {
  width: min(100%, 1400px);

  margin: 0 auto;

  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);

  box-sizing: border-box;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 62px;
  height: 62px;

  border-radius: 50%;

  background: #25D366;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(0,0,0,.22);

  z-index: 9999;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);

  box-shadow:
    0 16px 40px rgba(0,0,0,.28);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 700px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}


/* HEADER */

header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: 100%;
  height: var(--header-h);

  z-index: 999;

  background: transparent;
  border: none;
  backdrop-filter: none;
}

header .nav {
  height: 100%;

  width: 100%;
  max-width: 100%;

  margin: 0 auto;

  background: rgba(250,248,244,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8,40,69,0.05);

  border-radius: 0;

  border: none;

  box-shadow: none;
}

/* Dopo lo scroll: resta identico */
header.scrolled {
  top: var(--topbar-h);
}

header.scrolled .nav {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: rgba(11,31,58,0.92);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;

  padding-top: 15px;
  padding-bottom: 15px;
}

nav {
  margin-left: auto;
}

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

.brand img {
  width: 75px; 
  height: 75px; 
  display: block; 
  object-fit: contain;
  margin-right: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 40px; 
  font-weight: 400; 
  letter-spacing: 0;
  color: var(--text);
}

.brand-text span {
  font-size: 15px; 
  font-weight: 300; 
  letter-spacing: 0;
  color: var(--text);
  text-transform: uppercase;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
}

nav a {
  position: relative;
    color: var(--text);
    transition:
        color .25s ease,
        transform .25s ease;
  font-weight: 550;
  font-size: 1rem;
  letter-spacing: 0.1px;
}

nav a:hover {
  color: var(--accent);
    transform: translateY(-1px);
}

.nav-shell {
  width: 100%;
  display: flex;
  justify-content: center;

  transition: all .35s ease;
}

header.scrolled .nav-shell {
  width: 100%;
}

header.scrolled .nav {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.actions {
  display: flex;
  gap: 10px;
  padding-left: 24px;
  margin-left: 24px;
}

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.actions .btn.primary{
    background: var(--accent);

    color: var(--royal-navy);

    font-weight: 550;

    font-size: 0.95rem;

    letter-spacing: 0.1px;

    padding: 14px 24px;

    border-radius: 999px;

    box-shadow:
      0 8px 24px rgba(103,183,255,.22);

    transition:
      transform .25s ease,
      box-shadow .25s ease,
      background .25s ease;
}

.actions .btn.primary:hover{
    transform: translateY(-2px);

    box-shadow:
      0 14px 30px rgba(103,183,255,.32);
}

.burger {
  display: none;

  width: 42px;
  height: 42px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(255,255,255,0.05);

  color: white;

  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;

  padding: 10px 0 20px;

  background: rgba(11,31,58,0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;

  padding: 14px 0;

  color: rgba(255,255,255,0.82);

  border-bottom: 1px solid rgba(255,255,255,0.08);

  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-dropdown-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* TRANSIZIONI SOFT */
.hero-text,
.about-content,
.service-box,
.feature-card,
.info-item,
.review-card,
.exam-card,
.team-card,
.referto-card {
  animation: softFadeUp 0.75s ease both;
}

.service-box:nth-child(2),
.feature-card:nth-child(2),
.exam-card:nth-child(2) {
  animation-delay: 0.08s;
}

.service-box:nth-child(3),
.feature-card:nth-child(3),
.exam-card:nth-child(3) {
  animation-delay: 0.16s;
}

.service-box:nth-child(4),
.feature-card:nth-child(4),
.exam-card:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes softFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover più morbidi */
.service-box,
.feature-card,
.exam-card,
.team-card,
.review-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* OFFSET PAGINE INTERNE */

.page-offset {
  padding-top: 60px;
}

/* HERO */

.hero {
  min-height: 70vh; /* oppure 60vh */
  padding: 10px 0 30px;
  background:
    linear-gradient(
      90deg,
      rgba(220,233,247,0.55) 0%,
      rgba(235,242,250,0.50) 15%,
      rgba(248,247,244,0.72) 32%,
      rgba(248,247,244,0.35) 48%,
      rgba(248,247,244,0.08) 62%,
      rgba(248,247,244,0) 72%
    ),
    url("assets/laboratorio.png");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
  position: relative;
}

.hero::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(8,40,69,0.10);
}

.hero-content {
  padding-top: calc(var(--topbar-h) + var(--header-h));
  padding-bottom: 35px;

  position: relative;
  z-index: 1;

  min-height: 400px;

  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 1500px;
  padding-top: 80px;
  padding-bottom: 0;
  background: none;
  backdrop-filter: none;
}

.hero h1 {
  font-size: clamp(50px, 6.8vw, 84px);
  line-height: 1.1;

  letter-spacing: -0.6;

  font-weight: 400;

  max-width: 22ch;
  margin: 0 0 36px;

  color: var(--bg);
}

.hero p {
  max-width: 700px;
  margin: 0;

  color: var(--bg-soft);

  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 16px 30px;

  border-radius: 999px;

  font-size: 16px;
  font-weight: 600;

  transition: all .25s ease;
}

.hero-btn {
  margin: 0;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.hero-btn-primary {
  background: var(--bg-soft);
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-btn-secondary {
  background: rgba(248, 247, 244, 0.55);
  color: var(--bg-soft);
  border: 1px solid rgba(8, 40, 69, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.pill-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
}

/* BANNER AVVISI */

.notice-banner {
  width: 100%;
  margin: 0;
  padding: 0;

  background:
    linear-gradient(
      90deg,
      #5e2f3b 0%,
      #6b3341 40%,
      #6f3443 100%
    );

  overflow: hidden;
}

.notice-inner {
  display: flex;
  align-items: center;
  min-height: 110px;
  width: 100%;
}

/* lato sinistro */

.notice-side {
  width: 320px;
  min-width: 320px;
  height: auto;

  align-self: stretch;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--logo);

  clip-path: polygon(
    0 0,
    78% 0,
    100% 50%,
    78% 100%,
    0 100%
  );
}

.notice-bell {
  width: 54px;
  height: auto;
}

/* testo */

.notice-content {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centra verticalmente */

  padding: 18px 42px;
  max-width: none;
}

.notice-content h3 {
  margin: 0 0 10px;

  font-family: var(--font-body);   /* Montserrat */
  font-size: clamp(28px, 2vw, 34px);
  font-weight: 600;
  line-height: 1;

  color: #fff;
}

.notice-content p {
  margin: 0;

  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.45;
  font-weight: 400;

  color: rgba(255,255,255,.96);
}

.notice-hidden {
  display: none !important;
}

/* FEATURES — STILE MINIMAL PREMIUM */

.features-section {
  background: var(--logo);
  padding: 40px 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;

  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  min-height: 170px;
  padding: 20px 38px 24px;

  background: var(--monaco-blue-light);

  border: 1px solid rgba(8,40,69,0.04);
  border-radius: 10px;

  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  position: relative;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.icon-wrap {
  margin-bottom: 20px;
}

.icon {
  width: 34px;
  height: 34px;

  background: transparent !important;
  color: var(--royal-navy);

  border: none;
  border-radius: 0;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  font-size: 26px;
  line-height: 1;
}

.icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 14px;

  color: #050505;

  font-size: clamp(24px, 1.8vw, 30px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -1.2px;

  text-align: left;
}

.feature-card p {
  margin: 0;

  text-align: left;

  max-width: 32ch;

  color: rgba(8,40,69,0.58);

  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.4px;
}

.feature-card-notice {
  background:var(--cake-batter);
  border-color:rgba(159,184,220,0.35);
}

.feature-card-notice .icon {
  color: var(--summer-burgundy);
}

.feature-card-notice h3 {
  color: var(--summer-burgundy);
}

.feature-card-notice p {
  color: var(--royal-navy);
}

/* nasconde le vecchie varianti colore */
.icon-navy,
.icon-muted,
.icon-burgundy,
.icon-light,
.icon-cake {
  background: transparent !important;
  color: var(--royal-navy);
}

/* INFO SECTION */
.info-section {
  width: 100%;
  padding: 54px 0 58px;
  background: var(--cake-batter);
  border-top: 1px solid rgba(8,40,69,0.06);
  border-bottom: 1px solid rgba(8,40,69,0.06);
}

.info-section h2 {
  position: relative;
  display: table;
  margin: 0 auto 58px;
  text-align: center;

  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 400;

  color: var(--royal-navy);
}

.info-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);

  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--summer-burgundy);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;

  max-width: 1280px;
  margin: 0 auto;
}

.info-mini-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 10px;
}

/* CARD INFO */
.info-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: flex-start;
  gap: 18px;

  padding: 0 28px;
  position: relative;
  text-align: left;
}

/* icona a sinistra */
.info-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;

  background: transparent;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: none;
}

.info-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* contenuto a destra */
.info-item h3 {
  margin: 2px 0 16px;
  color: var(--summer-burgundy);
  font-size: clamp(22px, 1.65vw, 29px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.info-item p {
  margin: 7px 0;
  color: var(--royal-navy);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.38;
  font-weight: 400;
}

/* separatore desktop */
.info-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  height: auto;
  width: 1px;
  background: rgba(8,40,69,0.17);
}

.info-item a {
  color: #2478c8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-section h2,
.reviews-section h2,
.team-title,
.diagnostic-title {

  position: relative;

  display: table;

  margin: 0 auto 30px;

  text-align: center;

  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -2px;
  font-weight: 400;

  color: var(--royal-navy);
}

.map-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--summer-burgundy);
}

/*MAPPA*/

.map-section {
  background: #ffffff;
  padding: 28px 0 34px;
}

.map-wrapper.map-static {
  position: relative;

  width: min(100%, 1100px);
  height: 420px;

  margin: 0 auto;

  border-radius: 28px;
  overflow: hidden;

  border: 1px solid rgba(8,40,69,0.08);

  box-shadow:
    0 18px 45px rgba(8,40,69,0.14);

  background: #ffffff;
}

.map-wrapper.map-static a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.map-wrapper.map-static img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  transition: transform .35s ease;
}

.map-wrapper.map-static:hover img {
  transform: scale(1.03);
}

/* overlay soft */
.map-wrapper.map-static::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(8,40,69,0.18),
      rgba(8,40,69,0.02)
    );

  pointer-events: none;
}

.map-button {
  position: absolute;

  left: 30px;
  bottom: 30px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 24px;

  border-radius: 999px;

  background: rgba(255,255,255,0.95);

  color: var(--royal-navy);

  font-size: 1rem;
  font-weight: 400;

  box-shadow:
    0 12px 30px rgba(8,40,69,0.15);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.map-button span {
  font-size: 1.1rem;
}

.map-wrapper.map-static:hover .map-button {
  transform: translateY(-2px);

  background: #ffffff;

  box-shadow:
    0 16px 35px rgba(8,40,69,0.20);
}

/* RECENSIONI */

.reviews-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);

  padding: 40px 0 40px;

  background: var(--monaco-blue-light);
}

.reviews-wrap{
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.reviews-section h2::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -12px;

  transform: translateX(-50%);

  width: 42px;
  height: 3px;

  border-radius: 99px;

  background: var(--summer-burgundy);
}

.reviews-rating {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px;
}

.stars {
  font-size: 2rem;
  color: #f5b301;

  margin-bottom: 10px;

  letter-spacing: 4px;
}

.reviews-rating p {
  color: var(--muted);
  line-height: 1.7;
}

.reviews-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 22px;

  max-width: 1100px;

  margin: 0 auto 35px;

  padding: 0 12px;
}

.review-card {
  background: rgba(255,255,255,0.95);

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 26px;

  box-shadow: var(--shadow);

  text-align: center;
}

.reviews-btn {
  display: table;

  margin: 0 auto;

  padding: 14px 28px;

  border-radius: 999px;

  background: var(--accent);

  color: #031225;

  font-weight: 740;

  text-decoration: none;

  transition: 0.25s ease;
}

.reviews-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(103,183,255,0.35);
}

.review-stars {
  color: #f5b301;
  font-size: 1.2rem;
  letter-spacing: 2px;

  width: 70%;
  margin: 0 auto 8px;

  padding-bottom: 10px;

  border-bottom: 1px solid rgba(8,40,69,0.18);
}

.review-card p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.7;

  color: #26384b;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-card span {
  margin-top: 16px;
  color: var(--summer-burgundy);
  font-size: 0.9rem;
  font-weight: 600;
}

.google-rating {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 12px;
}

.google-score {
  font-size: 2rem;
  font-weight: 600;

  color: var(--royal-navy);
}

.google-stars {
  font-size: 1.4rem;
  color: #f5b301;

  letter-spacing: 2px;
}

.google-source {
  font-size: 1rem;
  color: var(--muted);

  font-weight: 600;
}

/* CHI SIAMO (RESTYLE INDEX-COMPATIBLE)*/

.about-page {
  background: #f5f7fa;
}

/* HERO CHI SIAMO - CARD CON FOTO A DESTRA */

.about-hero {
  padding:
    calc(var(--topbar-h) + var(--header-h) + 8px)
    0
    0;

  background: #f8f7f4;
  text-align: left;
}

.about-hero-card {
  height: 260px;
  min-height: 0;

  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;

  border-radius: 30px;
  overflow: hidden;

  background:#082845;
}

.about-hero-text {
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-hero h1 {
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 400;

  color: #ffffff;
  letter-spacing: 0;
}

.about-hero h1::after {
  content: "";
  display: block;

  width: 58px;
  height: 3px;

  margin-top: 16px;
  margin-bottom: 16px;

  border-radius: 999px;
  background: var(--accent);
}

.about-hero p {
  max-width:560px;
  line-height:1.7;
  margin: 0;

  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}

.about-hero-image {
  position: relative;
  height: 260px;
  min-height: 0;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background: linear-gradient(
        90deg,
        #082845 0%,
        rgba(8,40,69,.90) 15%,
        rgba(8,40,69,.65) 35%,
        rgba(8,40,69,.30) 60%,
        transparent 100%
    );

    pointer-events:none;
}

.about-history {
  width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-top: 60px;

  background: var(--monaco-blue-light);

  padding: 40px 0;

  border-top: 1px solid rgba(8,40,69,0.08);
  border-bottom: 1px solid rgba(8,40,69,0.08);
}

.history-strip {
  position: relative;

  width: 100%;

  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;

  padding: 0 clamp(20px, 6vw, 100px);
}

/* linea centrale */
.history-strip::before {
  content: "";
  position: absolute;
  top: 16px;

  left: calc(50% - 50vw);
  right: calc(50% - 50vw);

  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(8,40,69,0.12),
    rgba(8,40,69,0.25),
    rgba(8,40,69,0.12)
  );
}

.history-item {
  position: relative;
  text-align: center;
  max-width: 220px;
  z-index: 2;
}

.history-dot {
  width: 14px;
  height: 14px;

  margin: 10px auto 24px;

  border-radius: 50%;

  background: var(--summer-burgundy);

  box-shadow:
    0 0 0 6px #ffffff,
    0 0 0 7px rgba(8,40,69,0.08);
}

.history-item span {
  display: block;

  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;

  color: var(--royal-navy);

  line-height: 1;
}

.history-item p {
  margin-top: 12px;

  color: var(--muted);

  line-height: 1.5;
  font-size: 0.95rem;
}

.team-section {
  background: #f8f7f4;
}

.team-title::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -12px;

  transform: translateX(-50%);

  width: 42px;
  height: 3px;

  border-radius: 99px;

  background: var(--summer-burgundy);
}

.team-intro {
  max-width: 760px;

  margin: 30px auto 55px;

  text-align: center;

  color: var(--muted);

  line-height: 1.8;

  font-size: 1.05rem;
}

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

.team-card{
    background:var(--monaco-blue-light);
    border:none;
    border-radius:20px;

    overflow:hidden;
    text-align:center;

    box-shadow:0 8px 22px rgba(8,40,69,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.team-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(8,40,69,.12);
}

.team-card img{
    width:100%;
    aspect-ratio:1 / 1.08;
    object-fit:cover;
}

.team-card h3{
    margin:16px 16px 6px;
    font-size:.92rem;
    line-height:1.25;
    font-weight:500;
    color:var(--royal-navy);
}

.team-card span{
    display:block;
    margin:0 16px 18px;

    font-size:.87rem;
    font-weight:550;
    color:var(--summer-burgundy);
}

.about-content-obblighi {
  width: 100vw;
  margin-left: calc(50% - 50vw);

  background: var(--cake-batter);
  border-top: 1px solid rgba(8,40,69,0.06);
  border-bottom: 1px solid rgba(8,40,69,0.06);

  padding: 60px 0;
  margin-top: 40px;
}

.obblighi-link {
  color: #2478c8;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* LAYOUT GENERALE */

/* Blocchi Storia / Struttura / Obblighi */

.about-page .about-content {
  padding: 70px 0 0;
  background: #f8f7f4;
}

.about-page .about-content + .about-content {
  padding-top: 34px;
}

.about-page .about-paragraphs {
  margin-top: 0;
  transform: none;
  gap: 14px;
}

/* Equipe */
.about-page .team-section {
  padding: 72px 0 76px;
  background: #f8f7f4;
}

/* Slider */
.about-page .about-slider {
  padding: 34px 0 0;
  background: #f8f7f4;
}

.about-content,
.about-slider {
  background: #f8f7f4;
}

/* TESTI */
.about-paragraphs {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.about-subtitle {
  font-size: 1.8rem;
  margin: 0 0 4px;

  color: var(--royal-navy);

  font-weight: 500;
  letter-spacing: -0.3px;
}

.about-text {
  margin: 0 0 8px;

  color: var(--royal-navy);

  line-height: 1.9;
  font-size: 1.05rem;
}

/* SLIDER SECTION */

.slider {
  position: relative;
  width: 100%;
  height: clamp(260px, 60vw, 600px);

  margin: 0;

  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
}

/* effetto glow soft come index */
.slider::before {
  content: "";
  position: absolute;
  inset: -40px;

  background: radial-gradient(
    circle at center,
    rgba(132,41,50,0.14),
    transparent 70%
  );

  filter: blur(35px);
  z-index: -1;
}

/* immagini */
.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(1.02);

  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* overlay */
.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 69, 0.25); /* filtro uniforme */
  pointer-events: none;
}

/* NAV BUTTONS */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 52px;

  border-radius: 50%;
  border: none;

  cursor: pointer;
  font-size: 28px;

  color: white;

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.25s ease;
}

.nav-btn:hover {
  background: var(--summer-burgundy);
  color: #ffffff;
}

.prev { left: 20px; }
.next { right: 20px; }

/* DEFIBRILLATORE */
.defibrillator-section {
  padding: 34px 0 38px;
  text-align: center;

  background:
    linear-gradient(
      180deg,
      #f8f7f4,
      #ffffff
    );
}

.defibrillator-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.defibrillator-box img {
  width: 70px;
  opacity: 0.9;
  transition: transform 0.25s ease;
}

.defibrillator-box img:hover {
  transform: scale(1.05);
}

.defibrillator-box p {
  font-size: 1.05rem;
  color: var(--royal-navy);
  font-weight: 600;
}

/* DROPDOWN MENU */

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;

  font-weight: 550;
  font-size: 1rem;
  letter-spacing: 0.1px;

  cursor: pointer;

  position: relative;
    color: var(--text);
    transition:
        color .25s ease,
        transform .25s ease;
}

.dropdown-arrow {
  width: 8px;
  height: 8px;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform: rotate(45deg);
  margin-top: -4px;

  opacity: 0.75;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(225deg);
  opacity: 1;
}

.dropbtn:hover {
  color: var(--accent);
    transform: translateY(-1px);
}

.dropdown-content {
  position: absolute;

  top: 100%;
  margin-top: 10px;

  left: 50%;
  transform: translateX(-50%);

  min-width: 220px;
  width: 220px;

  background: rgba(248,247,244,0.98);
  border: 1px solid rgba(8,40,69,0.08);
  border-radius: 16px;

  padding: 8px;

  box-shadow: 0 18px 40px rgba(0,0,0,0.35);

  z-index: 1000;

  /* NUOVO */
  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  transform:
    translateX(-50%)
    translateY(-6px);
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.dropdown-content a {
  display: block;
  padding: 12px 14px;

  border-radius: 12px;

  color:var(--royal-navy) ;

  font-weight: 550;
  font-size: 1rem;
  letter-spacing: 0.1px;

  text-decoration: none;
  white-space: nowrap;

  text-align: center; /* testo centrato */

  transition: background 0.2s ease,
              color 0.2s ease;
}

.dropdown-content a:hover {
  background: var(--monaco-blue-light);
  color: var(--royal-navy);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* REFERTO ONLINE PAGE */

.referto-page {
  min-height: 70vh;
}

.referto-hero {
  min-height: calc(100vh - var(--topbar-h));
  padding:
    calc(var(--topbar-h) + var(--header-h) + 40px)
    clamp(18px, 4vw, 60px)
    60px;

  background-image: url("assets/referto.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.referto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 40, 69, 0.55),
      rgba(248, 247, 244, 0.10)
    ),
    rgba(8, 40, 69, 0.18);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.referto-layout {
  position: relative;
  z-index: 1;

  width: min(100%, 1180px);

  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: stretch;
}

.referto-card {
  border-radius: 28px;
  padding: clamp(32px, 4vw, 58px);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 26px 70px rgba(4, 24, 43, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);

  animation: softFadeUp 0.75s ease both;
}

.referto-login-card {
  background:
    linear-gradient(
      145deg,
      rgba(8, 40, 69, 0.82),
      rgba(4, 24, 43, 0.72)
    );

  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
}

.referto-info-card {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.78),
      rgba(248,247,244,0.58)
    );

  border: 1px solid rgba(255,255,255,0.55);
  color: var(--royal-navy);

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;
}

.referto-card h1,
.referto-info-card h2 {
  margin: 0 0 28px;

  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.referto-card h1 {
  color: #ffffff;
  font-size: clamp(38px, 4vw, 54px);
}

.referto-info-card h2 {
  color: var(--royal-navy);
  font-size: clamp(36px, 4vw, 52px);
}

.referto-text {
  max-width: 60ch;
  margin: 0 0 36px;

  color: rgba(255,255,255,0.88);

  font-size: 15.5px;
  line-height: 1.8;
}

.referto-info-card p {
  margin: 0 0 36px;
  padding-bottom: 36px;

  color: rgba(8, 40, 69, 0.78);

  font-size: 17px;
  line-height: 1.75;

  border-bottom: 1px solid rgba(8,40,69,0.14);
}

.referto-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.referto-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referto-row label {
  width: auto;

  color: rgba(255,255,255,0.92);

  font-size: 14px;
  font-weight: 500;
}

.referto-row input {
  width: 100%;

  padding: 17px 20px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.24);

  background: rgba(255,255,255,0.08);
  color: #ffffff;

  font-family: var(--font-body);
  font-size: 15px;

  outline: none;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.referto-row input::placeholder {
  color: rgba(255,255,255,0.52);
}

.referto-row input:focus {
  border-color: rgba(103,183,255,0.72);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(103,183,255,0.16);
}

.referto-btn {
  width: fit-content;
  min-width: 230px;

  margin-top: 10px;
  padding: 17px 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  border: none;
  border-radius: 999px;

  background: var(--accent);
  color: #031225;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  text-decoration: none;

  box-shadow:
    0 12px 30px rgba(103,183,255,0.28);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.referto-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 40px rgba(103,183,255,0.40);
}

.referto-btn-outline {
  background: rgba(255,255,255,0.30);
  color: var(--royal-navy);

  border: 1px solid rgba(103,183,255,0.9);
}

.referto-btn-outline:hover {
  background: rgba(255,255,255,0.55);
}

/*low bar*/
.low-bar {
  width: 100%;

  padding: 12px 0;

  background: #f8f7f4;

  border-top: 1px solid rgba(8,40,69,0.10);

  color: var(--text);
}

.footer-line {
  text-align: center;

  color: var(--muted);

  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-line a {
  color: var(--text);
  text-decoration: none;
}

.footer-line a:hover {
  text-decoration: underline;
}

.footer-line span {
  margin: 0 8px;
  color: rgba(8,40,69,0.35);
}

/* ELENCO ESAMI */

/* HERO */

.exam-hero {
  padding:
    calc(var(--topbar-h) + var(--header-h) + 8px)
    0
    0;

  background: #f8f7f4;
  text-align: left;
}

.exam-hero-card {
  height: 260px;
  min-height: 0;

  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;

  border-radius: 30px;
  overflow: hidden;

  background:#082845;
}

.exam-hero-text {
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exam-hero h1 {
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 400;

  color: #ffffff;
  letter-spacing: 0;
}

.exam-hero h1::after {
  content: "";
  display: block;

  width: 58px;
  height: 3px;

  margin-top: 16px;
  margin-bottom: 16px;

  border-radius: 999px;
  background: var(--accent);
}

.exam-hero p {
  max-width:560px;
  line-height:1.7;
  margin: 0;

  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}

.exam-hero-image {
  position: relative;
  height: 260px;
  min-height: 0;
}

.exam-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exam-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background: linear-gradient(
        90deg,
        #082845 0%,
        rgba(8,40,69,.90) 15%,
        rgba(8,40,69,.65) 35%,
        rgba(8,40,69,.30) 60%,
        transparent 100%
    );

    pointer-events:none;
}

/* SEARCH BAR */
.exam-search-wrap {
  width: min(100%, 760px);
  height: 58px;

  margin: 0 auto 42px;

  display: flex;
  align-items: center;

  border: 1px solid rgba(8,40,69,0.12);
  border-radius: 999px;

  background: #ffffff;

  box-shadow: 0 14px 34px rgba(8,40,69,0.08);

  overflow: hidden;
}

.exam-search {
  flex: 1;
  height: 100%;

  border: 0;
  outline: none;

  padding: 0 24px;

  background: transparent;

  color: var(--royal-navy);
  font-family: var(--font-body);
  font-size: 15px;
}

.exam-search-area {
    width: 100%;
    margin-top: 0;
    margin-bottom: 50px;
    position: relative;
}

.exam-search-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;

    width: 100%;
    max-width: none;
    margin: 0 auto;

    align-items: center;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.exam-search-box {
  height: 58px;
  width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;

  border: 2px solid rgba(103,183,255,0.75);
  border-radius: 999px;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(103,183,255,0.12),
    0 14px 34px rgba(8,40,69,0.08);

  overflow: hidden;
}

.exam-search {
  height: 100%;
  width: 100%;

  padding: 0 24px 0 60px;

  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;

  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23082845' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 24px center;

  color: var(--royal-navy);
  font-family: var(--font-body);
  font-size: 16px;
}

.exam-search::placeholder {
  color: rgba(8,40,69,0.45);
}

.exam-counter-inline {
  padding: 0 28px;
  margin-right: 6px;

  border-left: 1px solid rgba(8,40,69,0.12);

  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;

  white-space: nowrap;
}

.exam-sector-filter {
  height: 58px;
  width: 100%;

  padding: 0 52px 0 64px;

  border: 1px solid rgba(8,40,69,0.14);
  border-radius: 999px;

  background-color: #ffffff;
  color: var(--royal-navy);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 24 24' fill='none' stroke='%23082845' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18l-7 8v6l-4 2v-8L3 4z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23082845' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat;
  background-position: 30px center, calc(100% - 28px) center;

  box-shadow: 0 14px 34px rgba(8,40,69,0.08);
}

.exam-search-box:focus-within {
  border-color: rgba(103,183,255,0.95);
  box-shadow:
    0 0 0 4px rgba(103,183,255,0.16),
    0 18px 42px rgba(8,40,69,0.12);
}

.exam-sector-filter:focus {
  border-color: rgba(8,40,69,0.18);
}

.exam-suggestions {
  display: none;
}

/* SECTION */
.exam-section {
  padding: 60px 0 0;
  background: linear-gradient(180deg, var(--off-white), #ffffff);
}

.exam-section .wrap {
  width: min(100%, 1400px);
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* BANNER PERCORSI DIAGNOSTICI */
.diagnostic-banner {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 50px;
  margin-bottom: 0;

  padding: 36px clamp(18px, 4vw, 56px);

  background:var(--cake-batter);

  color: #ffffff;
  text-decoration: none;

  border-top: 1px solid rgba(255,255,255,0.14);

  position: relative;
  overflow: hidden;
}

.diagnostic-banner::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);

  background-size: 34px 34px;
  opacity: 0.22;
  pointer-events: none;
}

.diagnostic-banner-inner {
  position: relative;
  z-index: 1;

  width: min(100%, 1400px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.diagnostic-banner-text {
  max-width: 1200px;
}

.diagnostic-banner-text strong {
  display: block;
  margin-bottom: 10px;

  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  line-height: 1;
  font-weight: 550;
  color: var(--summer-burgundy);
}

.diagnostic-banner-text span {
  display: block;

  max-width: 78ch;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.diagnostic-banner-button {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 15px 24px;
  border-radius: 999px;

  background: rgba(255,255,255,0.94);
  color: var(--royal-navy);

  font-weight: 700;
  font-size: 0.95rem;

  box-shadow: 0 14px 34px rgba(0,0,0,0.16);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.diagnostic-banner:hover .diagnostic-banner-button {
  transform: translateX(4px);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.diagnostic-banner-button span {
  font-size: 1.2rem;
  line-height: 1;
}

/* TABLE CONTAINER (now card style) */
.exam-table {
  --exam-header-height: 56px;
  --exam-row-height: 64px;

  width: 100%;
  max-width: none;
  margin: 0 auto;

  border-radius: 22px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);

  overflow-x: auto;
  overflow-y: hidden;
}

.exam-table-body {
  min-width: 900px;
  max-height: calc(var(--exam-row-height) * 6);
  overflow-x: hidden;
  overflow-y: auto;
}

.exam-message {
  min-width: 900px;
  padding: 18px 20px;
  color: #26384b;
  border-bottom: 1px solid rgba(8,40,69,0.08);
}

.exam-message.error {
  color: #8a1f1f;
}

.exam-scroll-indicator {
  display: none;
}

/* ROWS */
.exam-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1.5fr;

  padding: 16px 20px;
  gap: 20px;

  border-bottom: 1px solid rgba(8,40,69,0.08);

  transition: all 0.2s ease;

  min-width: 900px;
  min-height: var(--exam-row-height);
  align-items: center;
}

.exam-row:last-child {
  border-bottom: none;
}

/* HEADER ROW */
.exam-row.header {
  background: var(--monaco-blue-light);
  font-weight: 600;

  position: relative;
  z-index: 2;
  min-height: var(--exam-header-height);
}

.exam-row.header div {
  color: var(--royal-navy);
}

/* TEXT */
.exam-row div {
  color: #26384b;
  font-size: 0.98rem;
}

/* HOVER EFFECT */
.exam-row:not(.header):hover {
  background: rgba(103,183,255,0.06);
}

/* BANNER SERVIZI AZIENDE */

.aziende-hero {
  padding:
    calc(var(--topbar-h) + var(--header-h) + 8px)
    0
    0;

  background: #f8f7f4;
  text-align: left;
}

.aziende-hero-card {
  height: 260px;
  min-height: 0;

  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  align-items: stretch;

  border-radius: 30px;

  background:#082845;
}

.aziende-hero-text{
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 60%;      
    padding: 0;
}

.aziende-hero h1 {
  margin: 0;
  width: auto;
    max-width: none;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 400;

  color: #ffffff;
  letter-spacing: 0;
}

.aziende-hero h1::after {
  content: "";
  display: block;

  width: 58px;
  height: 3px;

  margin-top: 16px;
  margin-bottom: 16px;

  border-radius: 999px;
  background: var(--accent);
}

.aziende-hero p {
  max-width:560px;
  line-height:1.7;
  margin: 0;

  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}

.aziende-hero-image {
  grid-column: 2;
  position: relative;
  z-index: 1;
  
  height: 260px;
  min-height: 0;
}

.aziende-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aziende-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background: linear-gradient(
        90deg,
        #082845 0%,
        rgba(8,40,69,.90) 15%,
        rgba(8,40,69,.65) 35%,
        rgba(8,40,69,.30) 60%,
        transparent 100%
    );

    pointer-events:none;
}

.aziende-hero + .about-page .about-paragraphs {
  padding-bottom: 70px;
}

/* GRID SERVIZI */

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 22px;

  margin-top: 30px;
  margin-bottom: 20px;
}

/* BOX */

.service-box:hover {
  transform: translateY(-4px);

  background: #efe7db;

  border-color: rgba(103,183,255,0.25);

  box-shadow:
    0 18px 40px rgba(8,40,69,0.12);
}

.service-box h3 {
  margin-top: 0;
  margin-bottom: 12px;

  color: var(--summer-burgundy);

  font-size: 1.2rem;
}

.service-box p {
  margin: 0;

  color: var(--bg-soft);

  line-height: 1.7;
}

/* SERVICE BOX (card principali) */
.service-box {
  position: relative;
  overflow: hidden;

  background: var(--cake-batter);

  border: 1px solid rgba(100,49,62,0.10);

  border-radius: 22px;

  padding: 24px;

  box-shadow: 0 12px 28px rgba(8,40,69,0.08);

  transition: all 0.25s ease;
}

.service-box::before {
  display: none;
}

/* hover */
.service-box:hover {
  transform: translateY(-4px);

  border-color: rgba(103,183,255,0.35);

  box-shadow:
    0 18px 45px rgba(8,40,69,0.18);
}

/* ABOUT GRID (se usata) */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* testo sinistro */
.about-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* titoli */
.about-grid h2 {
  margin-bottom: 10px;
  color: var(--royal-navy);
}

/* paragrafi */
.about-grid p {
  margin: 0;
  color: #26384b;
  line-height: 1.8;
}

/* SERVIZI PAZIENTE */

.patient-hero {
  padding:
    calc(var(--topbar-h) + var(--header-h) + 8px)
    0
    0;

  background: #f8f7f4;
  text-align: left;
}

.patient-hero-card {
  height: 260px;
  min-height: 0;

  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  align-items: stretch;

  border-radius: 30px;

  background:#082845;
}

.patient-hero-text{
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 60%;      
    padding: 0;
}

.patient-hero h1 {
  margin: 0;
  width: auto;
    max-width: none;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 400;

  color: #ffffff;
  letter-spacing: 0;
}

.patient-hero h1::after {
  content: "";
  display: block;

  width: 58px;
  height: 3px;

  margin-top: 16px;
  margin-bottom: 16px;

  border-radius: 999px;
  background: var(--accent);
}

.patient-hero p {
  max-width:560px;
  line-height:1.7;
  margin: 0;

  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}

.patient-hero-image {
  grid-column: 2;
  position: relative;
  z-index: 1;
  
  height: 260px;
  min-height: 0;
}

.patient-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patient-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background: linear-gradient(
        90deg,
        #082845 0%,
        rgba(8,40,69,.90) 15%,
        rgba(8,40,69,.65) 35%,
        rgba(8,40,69,.30) 60%,
        transparent 100%
    );

    pointer-events:none;
}

.patient-layout {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);

  min-height: 300px;

  display: flex;
  align-items: center;

  background: #f8f7f4;
  overflow: hidden;
}

.paziente-hero + .about-content {
  padding-top: 0;
}

.patient-columns {
  position: relative;
  z-index: 2;

  width: 55%;
  padding: 80px clamp(30px, 6vw, 90px);

  display: flex;
  flex-direction: column;
  gap: 30px;
}

.patient-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* titolo colonna */
.patient-column .about-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--royal-navy);
  margin: 0 0 4px;
}

.patient-column .about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--royal-navy);
}

/* PERCORSI DIAGNOSTICI */

.diagnostic-pathways {
  padding: 60px 0 20px;
  background: linear-gradient(180deg, #f8f7f4, #ffffff);
}

.diagnostic-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 35px;
  font-size: 1.05rem;
}

/* LAYOUT PRINCIPALE */
.diagnostic-layout {
  display: flex;
  align-items: stretch;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

/* SIDEBAR VERTICALE */
.diagnostic-sidebar {
  width: 240px;
  position: sticky;
  top: 120px; /* sotto header */
  align-self: flex-start;
  height: fit-content;
  display: flex;
  flex-shrink:0;
}

.diagnostic-sidebar ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.diagnostic-sidebar li {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--royal-navy);
  border-bottom: 1px solid rgba(8,40,69,0.08);
  transition: 0.2s ease;
}

.diagnostic-sidebar li:hover {
  background: rgba(103,183,255,0.12);
}

.diagnostic-sidebar li.active {
  background: var(--monaco-blue);
  color: var(--royal-navy);
}

/* CONTENUTO DESTRA */
.diagnostic-content{
    flex:1;
    display: flex;
    width:100%;
    min-width:0;
}

.card-slider {
  --exam-card-width: 260px;
  --card-track-width: 816px;

  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

/* SEZIONI */
.diagnostic-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.diagnostic-section.active {
  display: block;
}

/* GRID CARD */
.card-grid {
  display: flex;
  align-items: flex-start;
  flex: 0 0 var(--card-track-width);
  width: var(--card-track-width);
  max-width: 100%;
  gap: 18px;

  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;

  padding: 10px 0 20px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-scroll-btn {
  align-self: center;
  flex: 0 0 28px;

  display: grid;
  place-items: center;

  width: 28px;
  min-height: 44px;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--royal-navy);
  box-shadow: none;

  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.card-scroll-btn span {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-2px);
}

.card-scroll-btn:focus-visible {
  outline: 3px solid rgba(98,169,247,0.35);
  outline-offset: 3px;
}

.card-scroll-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* nasconde scrollbar */
.card-grid::-webkit-scrollbar {
  display: none;
}

.card-grid {
  scrollbar-width: none;
}

/* CARD ESAMI */
.exam-card {
  background: var(--cake-batter);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: none;
  border: 1px solid rgba(8,40,69,0.08);
  transition: transform 0.2s ease;

  display: flex;
  flex-direction: column;
  gap: 10px;
  height: var(--diagnostic-sidebar-height, auto);
  min-height: var(--diagnostic-sidebar-height, auto);

  flex: 0 0 var(--exam-card-width);
  scroll-snap-align: start;
  scroll-snap-stop: always;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  background: rgba(103,183,255,0.06);
}

.exam-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--royal-navy);
  font-weight: 600;
}

/* lista esami */
.exam-card ul {
  margin: 0;
  padding-left: 18px;
  color: #26384b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.exam-card-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.exam-card.is-expanded {
  height: auto;
  min-height: var(--diagnostic-sidebar-height, auto);
}

.exam-card.is-expanded .exam-card-list {
  flex: 0 0 auto;
  overflow: visible;
}

.exam-card-more {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.exam-card-more[hidden] {
  display: none;
}

.exam-card-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.exam-card-more:focus-visible {
  outline: 3px solid rgba(103,183,255,0.35);
  outline-offset: 4px;
}

/* SEARCH BAR PERCORSI DIAGNOSTICI */

.diagnostic-search{
  width: 100%;
  max-width: 1000px;

  margin: 20px auto 0;

  padding: 12px 16px;

  border-radius: 999px;
}

.diagnostic-search input{
  width: 100%;
  height: 58px;

  padding: 0 22px;

  border: 1px solid rgba(11,107,119,.15);
  border-radius: 999px;

  background: #fff;

  font-size: 15px;
  font-family: inherit;
  color: #2b2b2b;

  box-shadow: 0 4px 18px rgba(0,0,0,.04);

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.diagnostic-search input::placeholder{
  color: #8b98a5;
}

.diagnostic-search input:focus{
  outline: none;

  border-color: #0b6b77;

  box-shadow:
    0 0 0 4px rgba(11,107,119,.10),
    0 6px 24px rgba(0,0,0,.06);
}

/* ANIMAZIONE */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {

  .notice-banner {
    display: block;
    padding: 20px 0;
  }

  .notice-inner {
    align-items: center;
    gap: 12px;
    padding-inline: calc(clamp(14px, 4vw, 40px) + 4px);
  }

  .notice-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-top: 0;
  }
  

  .notice-icon::before {
    border-left-width: 12px;
    border-right-width: 12px;
    border-bottom-width: 22px;
  }

  .notice-icon::after {
    font-size: 0.95rem;
  }

  .notice-content,
  .notice-text {
    max-width: none;
    min-width: 0;
  }

  .notice-content h3,
  .notice-text h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1;
  }

  .notice-content p,
  .notice-text p {
    font-size: 14px;
    line-height: 1.35;
  }

}

@media (min-width: 701px) and (max-width: 1100px) {
  .notice-inner {
    width: min(100%, 620px);
    padding-inline: 0;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-card {
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .features-section {
    padding: 70px 0 50px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1fr;

    width: auto;
    margin: 0;
    padding: 0;

    overflow: visible;
  }

  .feature-card {
    min-height: auto;
    padding: 38px 30px 34px;

    transform: none !important;
  }

  .feature-card h3 {
    font-size: 26px;
  }

  .feature-card p {
    font-size: 16px;
  }
}

@media (max-width: 900px) {

  .map-wrapper.map-static {
    height: 320px;
  }

  .map-button {
    left: 20px;
    bottom: 20px;

    padding: 12px 20px;

    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {

  .map-wrapper.map-static {
    height: 260px;
    border-radius: 22px;
  }

  .map-button {
    left: 16px;
    bottom: 16px;

    width: calc(100% - 32px);

    justify-content: center;
  }
}

@media (max-width: 900px) {
  .location-card {
    grid-template-columns: 1fr;
  }

  .location-info {
    padding: 34px 26px;
  }

  .location-map {
    min-height: 260px;
  }

  .location-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .diagnostic-banner {
    margin-top: 28px;
    padding: 34px 18px;
  }

  .diagnostic-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .diagnostic-banner-text strong {
    font-size: 2.15rem;
  }

  .diagnostic-banner-text span {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .diagnostic-banner-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .patient-layout {
    flex-direction: column;
    min-height: auto;
  }

  .patient-columns {
    width: 100%;
    padding: 40px 20px;
  }

  .patient-image {
    position: relative;
    width: 100%;
    height: 320px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .diagnostic-layout {
    flex-direction: column;
  }

  .diagnostic-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }

  .diagnostic-sidebar ul {
    display: flex;
    overflow-x: auto;
  }

  .diagnostic-sidebar li {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid rgba(8,40,69,0.08);
  }

  .card-slider,
  .diagnostic-content {
    width: 100%;
  }

  .card-slider {
    --card-track-width: 538px;
  }

  .card-grid {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .card-scroll-btn {
    flex-basis: 28px;
    width: 28px;
    min-height: 40px;
  }

  .exam-card {
    height: auto;
    min-height: auto;
  }

  .exam-card-list,
  .exam-card.is-expanded .exam-card-list {
    flex: 0 0 auto;
    overflow: visible;
  }

  .exam-card-more {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .card-slider {
    --card-track-width: 538px;
  }
}

@media (max-width: 700px) {
  .card-slider {
    --card-track-width: var(--exam-card-width);
  }
}

@media (max-width: 380px) {
  .card-slider {
    --exam-card-width: calc(100vw - 120px);
    --card-track-width: var(--exam-card-width);
  }
}

/* RESPONSIVE */

/*topbar*/
@media (max-width: 700px) {

  .topbar {
    height: auto;
  }

  .topbar-inner {
    flex-direction: column;

    align-items: center;

    gap: 6px;

    text-align: center;
  }

  .topbar-left {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    flex-wrap: nowrap;

    width: 100%;

    font-size: 0.72rem;

    line-height: 1.2;
  }

  .topbar-left span {
    white-space: nowrap;
  }

  .topbar-divider {
    opacity: 0.45;
  }

  .topbar-right {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 0.72rem;
  }

  .topbar-right img {
    height: 14px;
  }
}

/*header*/
@media (max-width: 900px) {

  header {
    height: auto; /* importante: lascia respirare il contenuto */
    padding: 6px 0; /* 👈 stesso spazio sopra e sotto */
  }

  header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 0;
    padding-bottom: 0;
  }

  .nav {
    align-items: center;
  }

  .brand,
  .burger {
    display: flex;
    align-items: center;
  }
}

/*hero*/
@media (max-width: 900px) {

  /* 1. HERO deve stare sotto l'header (non separata con padding enorme) */
  .hero {
    margin-top: 0 !important;

    /* evita distacco visivo */
    padding-top: calc(var(--topbar-h) + var(--header-h) + 40px);

    /* fondamentale: lo sfondo deve “salire” sotto header */
    background-attachment: scroll;
    background-position: center right;
  }

  /* 2. ELIMINA il padding-top eccessivo che rompe layout */
  .hero-content {
    padding-top: 0 !important;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-text {
    padding-top: 0 !important;
  }

}

/*brand img*/
@media (max-width: 900px) {

  .brand img {
    height: 64px;
  }

  .brand-text strong {
    font-size: 1.3rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }
}

/*icon*/
@media (max-width: 700px) {
  .icon-wrap {
    top: -28px;
  }

  .icon {
    width: 64px;
    height: 64px;
  }
}

/*page offset*/
@media (max-width: 700px) {

  .page-offset {
    padding-top: 185px;
  }

}

@media (max-width: 700px) {
  .feature-card {
    padding-top: 60px;
  }

  .icon-wrap {
    top: -38px;
  }
}

@media (max-width: 900px) {
  .hero-image img {
    max-width: 100%;
  }
}

/*review cards*/
@media (max-width: 900px) {

  .reviews-preview {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

}

@media (max-width: 700px) {

  .reviews-rating {
    max-width: min(88vw, 360px);
    margin-bottom: 30px;
  }

  .reviews-rating p {
    max-width: 33ch;
    margin: 0 auto;
    font-size: clamp(0.96rem, 3.8vw, 1.06rem);
    line-height: 1.48;
    letter-spacing: 0;
  }

  .reviews-rating p br {
    display: none;
  }

  .map-button {
    gap: 8px;
  }

  .map-button span {
    position: relative;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0;
    line-height: 1;
  }

  .map-button span::before {
    content: "\2197\FE0E";
    font-size: 1.1rem;
    font-weight: 700;
  }

}

/*feature cards*/
@media (max-width: 820px) {

  .hero {
    min-height: auto;

    background-position: 62% center;
  }

  .hero-content {
    min-height: auto;

    padding: 40px 0 20px;
  }

  .hero-text {
    padding-top: 0;
    padding-bottom: 10px;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .features-section {
    padding-top: 0;
    padding-bottom: 0;

    overflow: hidden;
  }

  .features-grid {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    overflow-y: visible;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    /* FULL WIDTH */
    width: 100vw;

    margin-left: calc(50% - 50vw);

    padding:
      40px
      16px
      24px;

    align-items: stretch;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 280px;
    padding-top: 80px;

    scroll-snap-align: center;

    height: 270px; /* stessa altezza per tutte */

    margin-top: 0;

    overflow: visible;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    position: relative;
  }

  .feature-card h3 {
    margin-top: 20px; /* spinge il titolo più giù */
  }

  /* blocca qualsiasi movimento su hover/touch */
  .feature-card {
    transform: none !important;
    transition: none !important;
  }

  .feature-card:hover {
    transform: none !important;
    box-shadow: var(--shadow); /* mantiene ma senza “salto” */
  }

  /* blocca anche icona che si ingrandisce */
  .feature-card:hover .icon {
    transform: none !important;
  }

  .icon-wrap {
    top: -38px;
  }

  /* ELIMINA GLI SPAZI FINTI */
  .features-grid::before,
  .features-grid::after {
    display: none;
  }
}

@media (max-width: 520px) {

  .wrap {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding-inline: clamp(14px, 4vw, 40px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .feature-card {
    padding: 24px;
  }

  .info-section h2,
  .map-section h2 {
    font-size: 28px;
  }

  .map-wrapper {
    height: 240px;
  }
}

/*info*/
@media (max-width: 700px) {

  .info-section {
    padding: 38px 0 44px;
  }

  .info-section h2 {
    margin-bottom: 38px;
    font-size: clamp(30px, 10vw, 40px);
    letter-spacing: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-item {
    display: flex;
    align-items: flex-start;
    position: relative;

    padding: 20px 4px;

    gap: 12px;

    min-height: 0;
    box-sizing: border-box;
  }

  .info-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 0;
  }

  .info-icon img {
    width: 48px;
    height: 48px;
  }

  .info-item > div:last-child {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;

    padding-top: 0;
  }

  .info-item:not(:last-child)::after {
    display: none;
  }

  .info-item:not(:last-child)::before {
    content: "";
    position: absolute;

    left: 24px;
    right: 24px;
    bottom: 0;

    height: 1px;

    background: rgba(8,40,69,0.12);
  }

  .info-item h3,
  .info-item p {
    margin: 0;
  }

  .info-item h3 {
    font-size: 21px;
  }

  .info-item p {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .info-section {
    padding-inline: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .info-item {
    padding: 24px 0;
  }

  .info-item:not(:last-child)::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
  }
}

/*slide*/
@media (max-width: 768px) {

  .about-slider {
    width: 100vw;
    max-width: 100vw;

    margin: 0;

    padding: 0;

    overflow: hidden;
  }

  .slider {
    width: 100%;
    height: 420px;

    border-radius: 0;
  }

  .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/*referto*/
@media (max-width: 900px) {

  .referto-hero {

    padding:
      calc(var(--topbar-h) + var(--header-h) + 70px)
      0
      50px;
  }

  .referto-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .referto-row label {
    width: auto;
  }

  .referto-btn {
    width: 100%;
  }

}

/*exam table*/
@media (max-width: 900px) {

  .exam-table {
    border-radius: 16px;
  }

  .col-name,
  .col-desc {
    padding: 14px 14px;
    font-size: 0.95rem;
  }

  /* HEADER VISIBILE */
  .exam-row.header {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    position: relative;
    top: auto;
    z-index: 10;
    background: var(--monaco-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .exam-row.header div {
    font-size: 0.9rem;
    text-align: left;
  }

  /* RIGHE: SEMPRE 3 COLONNE */
  .exam-row {
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
  }

  /* niente stacking */
  .exam-row div {
    font-size: 0.9rem;
  }

  /* elimina comportamento "card label" (se lo avevi attivo) */
  .exam-row div::before {
    content: none;
  }
}

/*servizi paziente*/
@media (max-width: 900px) {

  .patient-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .analytic-grid {
    grid-template-columns: 1fr;
  }

  .analytic-row {
    grid-template-columns: 1fr;
  }

  .analytic-header {
    display: none;
  }
}

/*servizi aziende*/
@media (max-width: 900px) {

  .aziende-banner {

    padding:
      calc(var(--topbar-h) + var(--header-h) + 70px)
      0
      40px;
  }

  .servizi-aziende .about-subtitle:first-of-type {
    margin-top: 0;
  }

  .aziende-banner + main {
    padding-top: 30px !important;
  }

  .about-content {
    padding-top: 20px;
  }

  .paziente-hero + .about-content {
    padding-top: 0;
  }

}

@media (max-width: 900px) {

  .analytic-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .analytic-header {
    display: none;
  }

  .analytic-row {
    padding: 20px;
  }

  .analytic-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .contact-grid-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 900px) {

  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  nav ul,
  .actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    justify-content: space-between;
    min-height: 82px;
  }
}

@media (max-width: 900px) {

  nav ul,
  .actions .btn {
    display: none;
  }

  .burger {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 12px;

    background: rgba(255,255,255,0.08);

    color: white;

    font-size: 24px;

    cursor: pointer;
  }

  .mobile-menu {
    position: absolute;   /* 🔥 NON fixed */
    top: 100%;
    left: 0;
    width: 100%;

    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 998;

    display: none;

    padding-left: 18px;
    padding-right: 18px;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: block;

    font-size: 40px;
    font-weight: 600;

    padding: 18px 0;

    color: rgba(255,255,255,0.85);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    padding-left: 22px;
    padding-right: 10px;
  }

  .mobile-dropdown-title {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .mobile-submenu {
    padding-left: 34px;
  }

  .mobile-submenu a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
  }
}

@media (max-width: 900px) {

  .feature-card,
  .service-box,
  .analytic-item {
    min-height: auto;
  }
}

@media (max-width: 600px) {

  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .slider {
    height: 300px;
  }

  .map-wrapper {
    height: 220px;
  }

  .feature-card,
  .service-box,
  .analytic-item,
  .referto-card {
    padding: 20px;
  }

  .info-section h2,
  .map-section h2,
  .analytic-title {
    font-size: 2rem;
  }
}

/* Header e hero nello stile responsive indicato */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  nav,
  .actions {
    display: none;
  }

  header {
    height: auto;
    padding: 6px 0;
  }

  header .nav {
    width: calc(100% - 32px);
    height: auto;
    min-height: 82px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header.scrolled .nav {
    width: 100%;
  }

  .nav {
    justify-content: space-between;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 10px 18px 20px;
    z-index: 998;
  }

  .mobile-menu.open {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 96px;
  }

  .brand {
    min-width: 0;
  }

  .brand img,
  .logo img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong,
  .logo-name {
    font-size: 29px;
    line-height: 1;
    letter-spacing: 0;
  }

  .brand-text span {
    max-width: none;
    white-space: nowrap;
    font-size: 0.62rem;
    line-height: 1.1;
    letter-spacing: 0.4px;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--topbar-h) + var(--header-h) + 24px);
    
    background: 
      linear-gradient(
        90deg,
        rgba(220,233,247,0.72) 0%,
        rgba(230,240,250,0.62) 22%,
        rgba(248,247,244,0.46) 45%,
        rgba(248,247,244,0.22) 68%,
        rgba(248,247,244,0.04) 88%,
        rgba(248,247,244,0) 100%
      ),
      url("assets/laboratorio.png");

    background-size: cover;
    background-position: 72% center;
    background-repeat: no-repeat;
  }

  .hero-content {
    min-height: calc(100svh - var(--topbar-h) - 96px);
    padding-top: 30px !important;
    padding-bottom: 30px;
    align-items: center;
  }

  .hero-text {
    max-width: 100%;
    padding-top: 0 !important;
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 13ch;
    margin-bottom: 28px;
    font-size: 56px;
    line-height: 0.96;
    letter-spacing: 0;
  }
}

@media (max-width: 640px) {
  .brand-text strong {
    font-size: 1.6rem;
    line-height: 1;
  }

  .brand-text span {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 700px) {

  .hero-text {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    width: 100%;
    max-width: 16ch;
  }

}

/* Mobile layout fixes */
@media (max-width: 992px) {
  :root {
    --header-h: 92px;
  }

  header {
    top: var(--topbar-h);
    height: var(--header-h);
    padding: 0;
    background: rgba(250,248,244,.95);
  }

  header .nav {
    width: 100%;
    max-width: 100%;
    height: var(--header-h);
    min-height: var(--header-h);
    padding: 8px 14px;
    margin: 0;
    border-radius: 0;
  }

  header.scrolled .nav {
    width: 100%;
    max-width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .burger {
    flex: 0 0 42px;
    color: var(--royal-navy);
    background: rgba(8,40,69,0.08);
    border: 1px solid rgba(8,40,69,0.12);
  }

  header.scrolled .burger {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
  }

  .mobile-menu {
    max-height: calc(100svh - var(--topbar-h) - var(--header-h));
    overflow-y: auto;
  }

  .mobile-menu a {
    padding: 12px 18px;
    font-size: clamp(0.95rem, 3.8vw, 1.08rem);
    line-height: 1.22;
    font-weight: 500;
  }

  .mobile-submenu a {
    padding: 9px 18px;
    font-size: 0.9rem;
  }

  .mobile-dropdown-title {
    display: block;
    padding: 12px 18px 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.98rem;
  }
}

@media (max-width: 700px) {
  :root {
    --topbar-h: 58px;
  }

  .topbar {
    height: var(--topbar-h);
    overflow: hidden;
  }

  .topbar-inner {
    justify-content: center;
    gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .topbar-left {
    width: 100%;
    min-width: 0;
    gap: 5px;
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
    line-height: 1.15;
  }

  .topbar-left span {
    min-width: 0;
    white-space: nowrap;
  }

  .mail-top {
    min-width: 0;
  }

  .topbar-right {
    max-width: 100%;
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
    line-height: 1.15;
  }

  .topbar-right span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .paziente-hero {
    padding:
      calc(var(--topbar-h) + var(--header-h) + 26px)
      0
      0;
  }

  .paziente-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .paziente-hero p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .patient-columns {
    padding: 38px 18px 42px;
    gap: 28px;
  }

  .patient-layout {
    background-image:
      linear-gradient(
        180deg,
        rgba(248,247,244,0.92) 0%,
        rgba(248,247,244,0.82) 46%,
        rgba(248,247,244,0.90) 100%
      ),
      url("assets/pazienti.jpg");
    background-size: cover;
    background-position: center bottom;
  }

  .patient-column {
    gap: 14px;
  }

  .patient-column .about-subtitle {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .patient-column .about-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .patient-image {
    display: none;
  }

  .diagnostic-pathways {
    padding: 44px 0 18px;
  }

  .diagnostic-title {
    margin-bottom: 18px;
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .diagnostic-subtitle {
    padding: 0 16px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .diagnostic-search {
    max-width: none;
    margin: 10px 0 24px;
    padding: 0 16px;
  }

  .diagnostic-search input {
    height: 50px;
    padding: 0 18px 0 52px;
    border: 1px solid rgba(8, 40, 69, 0.16);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%23082845' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    box-shadow: 0 8px 22px rgba(8,40,69,0.08);
    color: var(--royal-navy);
    font-size: 16px;
  }

  .diagnostic-layout {
    gap: 22px;
    padding: 0 0 6px;
  }

  .diagnostic-sidebar {
    padding-left: 16px;
  }

  .diagnostic-sidebar ul {
    gap: 8px;
    padding: 0 16px 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .diagnostic-sidebar ul::-webkit-scrollbar {
    display: none;
  }

  .diagnostic-sidebar li {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(8,40,69,0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(8,40,69,0.05);
    color: var(--royal-navy);
    font-size: 0.88rem;
    line-height: 1;
    scroll-snap-align: start;
  }

  .diagnostic-sidebar li.active {
    border-color: rgba(103,183,255,0.35);
    background: #5f9ee7;
    color: #ffffff;
  }

  .card-slider {
    --exam-card-width: auto;
    --card-track-width: auto;
    display: block;
    width: 100%;
  }

  .card-scroll-btn {
    display: none;
  }

  .card-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    gap: 14px;
    overflow: visible;
    padding: 0 16px 18px;
    scroll-snap-type: none;
  }

  .exam-card {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: auto;
    padding: 24px 18px 22px;
    border: 1px solid rgba(8,40,69,0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, #fffdf8 0%, #f4efe4 100%);
    box-shadow: 0 8px 24px rgba(8,40,69,0.08);
    scroll-snap-align: none;
  }

  .exam-card h3 {
    max-width: none;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.28rem;
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--royal-navy);
  }

  .exam-card ul {
    padding-left: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .exam-card-list,
  .exam-card.is-expanded .exam-card-list {
    flex: 0 0 auto;
    overflow: visible;
  }

  .exam-card-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    color: #2876d7;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
  }

  .exam-card-more[hidden] {
    display: none;
  }

  .footer-line {
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .footer-line span {
    display: none;
  }

  .footer-line a {
    display: inline-block;
    margin: 0 4px;
  }

  .features-section {
    padding: 0;
  }

  .features-grid {
    align-items: stretch;
    overflow-y: hidden;
    padding: 32px 14px 24px;
  }

  .feature-card {
    flex-basis: min(82vw, 320px);
    height: auto;
    min-height: 0;
    padding: 30px 22px 24px;
    overflow: hidden;
  }

  .feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .feature-card p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.42;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 88px;
  }

  .brand img,
  .logo img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .brand-text strong,
  .logo-name {
    font-size: 2.2rem;
    line-height: 0.95;
  }

  .brand-text span {
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.5px;
  }

  .burger {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  :root {
    --topbar-h: 62px;
  }
  .brand img,
  .logo img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand-text strong,
  .logo-name {
    font-size: 1.35rem;
  }

  .card-slider {
    --exam-card-width: calc(100vw - 86px);
  }

  .diagnostic-layout {
    padding-inline: 10px;
  }
}

@media (max-width: 820px) {
  .feature-card {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .feature-card h3,
  .feature-card p {
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
}

/* Mobile home refinements */
@media (max-width: 992px) {
  header .nav {
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 54px);
  }

  .burger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid rgba(8,40,69,0.18);
    background: #ffffff;
    color: var(--royal-navy);
    box-shadow: 0 10px 26px rgba(8,40,69,0.13);
    font-size: 0;
    z-index: 1001;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
    transition:
      top 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .burger::before {
    top: 14px;
    box-shadow: 0 6px 0 currentColor;
  }

  .burger::after {
    top: 26px;
  }

  .burger.open::before {
    top: 20px;
    box-shadow: 0 0 0 transparent;
    transform: translateX(-50%) rotate(45deg);
  }

  .burger.open::after {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .burger:focus-visible {
    outline: 3px solid rgba(103,183,255,0.35);
    outline-offset: 3px;
  }

  header.scrolled .burger {
    color: var(--royal-navy);
    background: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.28);
  }

  .mobile-menu {
    background: rgba(248,247,244,0.60);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(8,40,69,0.12);
    box-shadow: 0 20px 42px rgba(8,40,69,0.12);
  }

  .mobile-menu a {
    color: var(--royal-navy);
    border-bottom-color: rgba(8,40,69,0.10);
  }

  .mobile-submenu a {
    color: var(--muted);
  }

  .mobile-dropdown-title {
    color: var(--muted);
  }
}

@media (max-width: 700px) {
  :root {
    --topbar-h: 38px;
  }

  .topbar {
    height: var(--topbar-h);
  }

  .topbar-inner {
    gap: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .topbar-left {
    gap: 5px;
    font-size: clamp(0.58rem, 2.4vw, 0.66rem);
    line-height: 1.12;
  }

  .topbar-right {
    font-size: clamp(0.58rem, 2.4vw, 0.66rem);
    line-height: 1.12;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 22px;
    font-size: clamp(3rem, 11vw, 3.9rem);
    line-height: 1.2;
  }

  .hero h3 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.1;
  }

  .hero p {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .hero-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 8px;
    font-size: clamp(0.78rem, 3.3vw, 0.9rem);
    line-height: 1.1;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  :root {
    --topbar-h: 48px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.35rem);
  }

  .hero-btn {
    font-size: 0.74rem;
    padding-inline: 6px;
  }
}

/* ELENCO ESAMI - CARD MOBILE COME SCREEN */
@media (max-width: 700px) {
  .exam-section {
    padding: 28px 0 28px;
  }

  .exam-hero .wrap {
    position: relative;
    z-index: 1;
  }

  .exam-search {
    display: block;
    width: min(100%, calc(100vw - 32px));
    max-width: 520px;
    height: 48px;
    margin: 18px auto 0;
    padding: 0 16px;
    font-size: 16px;
    line-height: 48px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
    appearance: none;
    -webkit-appearance: none;
  }

  .exam-search-wrap {
  width: calc(100% - 32px);
  height: 52px;
  margin: 0 auto 28px;
  border-radius: 24px;
  }

  .exam-search-btn {
  width: 96px;
  }

  .exam-section .wrap {
    padding-inline: 0;
  }

  .exam-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .exam-row.header {
    display: none !important;
  }

  .exam-table-body {
    min-width: 0;
    max-height: none;
    overflow: visible;
  }

  .exam-row:not(.header) {
    display: block;
    min-width: 0;
    min-height: 0;

    padding: 0;
    margin-bottom: 28px;

    border: 0;
    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;
    box-shadow: 0 4px 18px rgba(8, 40, 69, 0.16);
  }

  .exam-row:not(.header) div {
    display: block;
    padding: 14px 18px;

    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--royal-navy);
    font-weight: 500;
  }

  .exam-row:not(.header) div::before {
    display: block;
    margin: -14px -18px 12px;
    padding: 12px 18px;

    background: var(--monaco-blue-light);

    color: var(--royal-navy);
    font-weight: 700;
    font-size: 0.95rem;
  }

  .exam-row:not(.header) .col-pres::before {
    content: "Prestazione";
  }

  .exam-row:not(.header) .col-met::before {
    content: "Metodologia";
  }

  .exam-row:not(.header) .col-set::before {
    content: "Settore";
  }

  .exam-row:not(.header) .col-set {
    min-height: 0;
    height: auto;
    padding-top: 6px;
    padding-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .exam-row:not(.header) .col-set::before {
    margin-top: -6px;
    margin-bottom: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .exam-row:not(.header) .col-met {
    border-top: 1px solid rgba(8,40,69,0.08);
  }

  .exam-row:not(.header) .col-met::after {
    display: none !important;
  }

  .exam-message {
    min-width: 0;
    border-radius: 12px;
    background: #ffffff;
  }
}

@media (max-width: 700px) {
  .exam-table {
    width: 100%;
    overflow: visible;
  }

  .exam-table-body {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;

    min-width: 0;
    max-height: none;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;

    padding: 0 12px 4px;
  }

  .exam-row:not(.header) {
    align-self: center;
    flex: 0 0 100%;
    width: 100%;
    height: auto;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    margin-bottom: 0;
  }

  .exam-table-body::-webkit-scrollbar {
    display: none;
  }

  .exam-table-body {
    scrollbar-width: none;
  }

  .exam-scroll-indicator:not([hidden]) {
    display: block;
    height: 12px;
    margin: 8px 18px 14px;
    border: 1px solid rgba(8,40,69,0.08);
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(159,184,220,0.22), rgba(238,234,225,0.70)),
      rgba(255,255,255,0.88);
    box-shadow:
      inset 0 1px 3px rgba(8,40,69,0.12),
      0 8px 18px rgba(8,40,69,0.08);
    cursor: grab;
    overflow: hidden;
    touch-action: none;
  }

  .exam-scroll-indicator:not([hidden]):focus-visible {
    outline: 3px solid rgba(103,183,255,0.35);
    outline-offset: 4px;
  }

  .exam-scroll-indicator.is-dragging {
    cursor: grabbing;
  }

  .exam-scroll-indicator-thumb {
    display: block;
    width: 42px;
    min-width: 42px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--monaco-blue), var(--summer-burgundy));
    box-shadow: 0 2px 6px rgba(8,40,69,0.20);
    transition: width 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }

  .exam-scroll-indicator.is-dragging .exam-scroll-indicator-thumb {
    box-shadow: 0 3px 10px rgba(8,40,69,0.28);
  }

  .diagnostic-banner {
    width: calc(100% - 24px);
    margin-top: 16px;
    margin-inline: 12px;
  }
}

@media (max-width: 700px) {

  .exam-table-body {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: hidden;
  }

}

@media (max-width: 820px) {
  .services-grid {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    width: 100vw;
    margin-left: calc(50% - 50vw);
    
    margin-top: 0;
    padding: 0 16px 28px;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-box {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: center;

    min-height: 180px;

    transform: none !important;
  }

  .service-box:hover {
    transform: none !important;
  }
}

@media (max-width: 820px) {

  .service-box,
  .service-box:hover,
  .service-box:active,
  .service-box:focus {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(100,49,62,0.10) !important;
    background: var(--cake-batter) !important;
  }

}

@media (max-width: 640px) {
  header .nav {
    gap: 10px;
    padding-inline: 12px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 54px);
    gap: 8px;
    overflow: visible;
  }

  .brand img,
  .logo img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    margin-right: 0;
  }

  .brand-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1;
    overflow: visible;
  }

  .brand-text strong,
  .logo-name {
    display: block;
    white-space: nowrap;
    font-size: clamp(1.9rem, 8vw, 2.1rem);
    line-height: 0.95;
    letter-spacing: 0;
  }

  .brand-text span {
    display: block;
    white-space: nowrap;
    font-size: clamp(0.72rem, 3.1vw, 0.86rem);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .burger {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .brand img,
  .logo img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-text strong,
  .logo-name {
    font-size: 1.72rem;
  }

  .brand-text span {
    font-size: 0.69rem;
  }
}

@media (max-width: 900px) {

  .referto-hero {
    min-height: auto;

    padding:
      calc(var(--topbar-h) + var(--header-h) + 34px)
      16px
      42px;

    align-items: flex-start;
  }

  .referto-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .referto-card {
    border-radius: 22px;
    padding: 28px 22px;
  }

  .referto-card h1,
  .referto-info-card h2 {
    margin-bottom: 18px;
    font-size: clamp(31px, 9vw, 40px);
  }

  .referto-text {
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.65;
  }

  .referto-row input {
    padding: 15px 16px;
    font-size: 16px;
  }

  .referto-btn,
  .referto-btn-outline {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .referto-info-card {
    min-height: auto;
  }

  .referto-info-card p {
    margin-bottom: 24px;
    padding-bottom: 24px;

    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 700px) {
  .about-content-obblighi {
    overflow: hidden;
  }

  .about-content-obblighi .about-text {
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .obblighi-link {
    display: inline-block;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .convenzioni-title {
    margin-top: 36px;
  }
}

@media (max-width: 700px) {

  .exam-table-body {
    align-items: flex-start;
    height: auto !important;
    padding-bottom: 8px;
  }

  .exam-row:not(.header) {
    height: auto;
  }

  .exam-row:not(.header) div {
    display: block;
    position: relative;
    overflow: visible;
  }

  .exam-cell-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .exam-row:not(.header) div.is-expanded .exam-cell-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .exam-cell-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 26px;

    margin-top: 8px;
    padding: 0 12px;

    border: 1px solid rgba(8,40,69,0.12);
    border-radius: 999px;

    background: var(--monaco-blue-light);
    color: var(--royal-navy);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 4px 10px rgba(8,40,69,0.08);
  }

  .exam-cell-more[hidden] {
    display: none !important;
  }

  .exam-cell-more span {
    transform: translateY(-1px);
  }

  .exam-cell-more:active {
    transform: scale(0.96);
  }

  /* BARRA DI SCORRIMENTO */

  .exam-scroll-indicator:not([hidden]) {
    display: block;

    height: 8px;
    margin: 8px 18px 6px;

    border-radius: 999px;
  }

  /* SCRITTA SOTTO LA BARRA */

  .exam-scroll-hint:not([hidden]) {
    display: block;

    margin: 0 18px 16px;

    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;

    color: var(--royal-navy);
    opacity: 0.8;

    pointer-events: none;
    user-select: none;
  }

  .exam-scroll-hint::before,
  .exam-scroll-hint::after {
    color: var(--accent);
    font-size: 1rem;
  }

  .exam-scroll-hint::before {
    content: "← ";
  }

  .exam-scroll-hint::after {
    content: " →";
  }

}

/* BANNER AVVISI - RESPONSIVE */

@media (min-width: 769px) and (max-width: 1100px) {

  .notice-inner {
    min-height: 110px;
    align-items: stretch;
  }

  .notice-side {
    width: 240px;
    min-width: 240px;
    height: auto;
    align-self: stretch;
  }

  .notice-bell {
    width: 48px;
  }

  .notice-content {
    padding: 18px 32px;
  }

  .notice-content h3 {
    font-size: clamp(22px, 2vw, 29px);
  }

  .notice-content p {
    font-size: 15px;
    line-height: 1.38;
  }
}

@media (max-width: 768px) {

  .notice-banner {
    padding: 0;
  }

  .notice-inner {
    width: 100%;
    min-height: 112px;

    display: flex;
    align-items: stretch;

    gap: 0;
    padding-inline: 0;
  }

  .notice-side {
    width: 118px;
    min-width: 118px;

    height: auto;
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;

    clip-path: polygon(
      0 0,
      78% 0,
      100% 50%,
      78% 100%,
      0 100%
    );
  }

  .notice-bell {
    width: 36px;
  }

  .notice-content {
    flex: 1;
    min-width: 0;

    padding: 14px 18px;
  }

  .notice-content h3 {
    margin: 0 0 5px;

    font-size: 28px;
    line-height: 1;
  }

  .notice-content p {
    margin: 0;

    max-width: 34ch;

    font-size: 13px;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {

  .notice-inner {
    min-height: 118px;
  }

  .notice-side {
    width: 96px;
    min-width: 96px;
  }

  .notice-bell {
    width: 32px;
  }

  .notice-content {
    padding: 13px 14px;
  }

  .notice-content h3 {
    font-size: 25px;
  }

  .notice-content p {
    font-size: 12.5px;
    line-height: 1.28;
  }
}

/* ===========================
   HERO CHI SIAMO - MOBILE
=========================== */

@media (max-width:768px){

  .about-hero{
    padding:
      calc(var(--topbar-h) + var(--header-h))
      0
      8px;
  }

  .about-hero-card{
    position:relative;
    display:block;

    height:300px;

    overflow:hidden;

    border-radius:24px;

    background:#082845;
  }

  .about-hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }

  .about-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .about-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background:
      linear-gradient(
        to top,
        rgba(8,40,69,.92) 0%,
        rgba(8,40,69,.72) 35%,
        rgba(8,40,69,.18) 70%,
        transparent 100%
      );
  }

  .about-hero-text{

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    z-index:2;

    padding:28px 24px;
  }

  .about-hero h1{

    margin:0;

    font-size:clamp(2.8rem,12vw,4rem);

    line-height:.95;

    color:#fff;
  }

  .about-hero h1::after{

    width:52px;

    margin:14px 0 18px;

    background:var(--accent);
  }

  .about-hero p{

    margin:0;

    max-width:100%;

    color:rgba(255,255,255,.92);

    font-size:1rem;

    line-height:1.6;
  }
}

/* ===========================
   HERO ELENCO ESAMI- MOBILE
=========================== */

@media (max-width:768px){

  .exam-hero{
    padding:
      calc(var(--topbar-h) + var(--header-h))
      0
      8px;
  }

  .exam-hero-card{
    position:relative;
    display:block;

    height:300px;

    overflow:hidden;

    border-radius:24px;

    background:#082845;
  }

  .exam-hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }

  .exam-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .exam-hero-image::after{
    content:"";
    position:absolute;
    inset:0;

    background:
      linear-gradient(
        to top,
        rgba(8,40,69,.92) 0%,
        rgba(8,40,69,.72) 35%,
        rgba(8,40,69,.18) 70%,
        transparent 100%
      );
  }

  .exam-hero-text{

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    z-index:2;

    padding:28px 24px;
  }

  .exam-hero h1{

    margin:0;

    font-size:clamp(2.8rem,12vw,4rem);

    line-height:.95;

    color:#fff;
  }

  .exam-hero h1::after{

    width:52px;

    margin:14px 0 18px;

    background:var(--accent);
  }

  .exam-hero p{

    margin:0;

    max-width:100%;

    color:rgba(255,255,255,.92);

    font-size:1rem;

    line-height:1.6;
  }
}

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

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

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
  .exam-search-area {
    width: calc(100% - 32px);
    margin-bottom: 28px;
  }

  .exam-search-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exam-search-box {
    height: auto;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .exam-search {
    height: 54px;
    padding-left: 54px;
    background-position: 20px center;
  }

  .exam-counter-inline {
    width: 100%;
    margin: 0;
    padding: 12px 20px;

    border-left: 0;
    border-top: 1px solid rgba(8,40,69,0.10);

    font-size: 0.88rem;
  }

  .exam-sector-filter {
    height: 54px;
    font-size: 15px;
  }
}