/* ═══════════════════════════════════════════════════════════════════════
   DLG Medical & Aesthetic — Foglio di stile
   ───────────────────────────────────────────────────────────────────────
   Per cambiare i colori del brand: modifica SOLO le variabili in :root.
   Per cambiare i font: modifica --serif e --sans in :root,
   e aggiorna il link Google Fonts nell'<head> dell'HTML.
   ═══════════════════════════════════════════════════════════════════════ */


/* ── VARIABILI ──────────────────────────────────────────────────────────
   Cambia qui i valori per personalizzare tutto il sito in un colpo solo.
   ─────────────────────────────────────────────────────────────────────── */
:root {
  /* Colori principali */
  --navy:          oklch(0.265 0.085 242);      /* Navy profondo — colore brand medico */
  --navy-mid:      oklch(0.340 0.090 242);      /* Navy medio — hover/stato attivo */
  --navy-dark:     oklch(0.175 0.060 242);      /* Navy scuro — footer */
  --gold:          oklch(0.718 0.128 82);       /* Oro caldo — accento premium */
  --gold-pale:     oklch(0.935 0.036 82);       /* Oro pallido — sfondi tag estetici */
  --gold-hover:    oklch(0.620 0.128 82);       /* Oro scuro — hover link gold */

  /* Superfici */
  --white:         oklch(1.000 0.000 0);        /* Bianco puro */
  --surface:       oklch(0.972 0.007 241);      /* Bianco con lievissima tinta blu */
  --surface-mid:   oklch(0.956 0.013 241);      /* Superficie leggermente più intensa */

  /* Testo */
  --ink:           oklch(0.112 0.018 242);      /* Quasi-nero con tinta blu */
  --muted:         oklch(0.478 0.022 242);      /* Testo secondario grigio-blu */
  --subtle:        oklch(0.640 0.015 241);      /* Testo terziario molto tenue */
  --on-dark:       oklch(1.000 0.000 0);        /* Bianco per testo su sfondi scuri */

  /* Bordi */
  --border:        oklch(0.882 0.010 241);      /* Bordo standard */
  --border-mid:    oklch(0.820 0.015 241);      /* Bordo più visibile */

  /* Tipografia */
  --serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --nav-h:    72px;
  --max-w:    1200px;
  --px:       clamp(1.25rem, 5vw, 3rem);
  --py:       clamp(5rem, 8vw, 9rem);
  --py-sm:    clamp(2.5rem, 4vw, 4rem);
  --gap:      1rem;

  /* Bordi arrotondati */
  --r:        4px;
  --r-lg:     8px;
  --r-xl:     12px;

  /* z-index scale */
  --z-nav:    100;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

address { font-style: normal; }
ul { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }


/* ── TIPOGRAFIA ─────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

p {
  line-height: 1.7;
  max-width: 65ch;
}


/* ── CONTAINER ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ── ANIMAZIONI REVEAL (scroll) ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.70s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.70s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}


/* ════════════════════════════════════════════════════════════════════════
   NAVIGAZIONE
   ════════════════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  /* Inizialmente trasparente sull'hero scuro */
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

#nav.scrolled {
  background: oklch(1.000 0.000 0 / 0.94);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--on-dark);
  transition: color 0.3s ease;
}

.logo-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  transition: color 0.3s ease;
}

#nav.scrolled .logo-mark { color: var(--navy); }
#nav.scrolled .logo-sub  { color: var(--muted); }

/* Pulsanti nav */
.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  padding: 0.42rem 1.05rem;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Pulsante Medical — solido bianco sull'hero, navy dopo scroll */
.nav-btn--medical {
  background: var(--on-dark);
  color: var(--navy);
  border: 1.5px solid var(--on-dark);
}
.nav-btn--medical:hover {
  background: oklch(0.92 0.000 0);
}

#nav.scrolled .nav-btn--medical {
  background: var(--navy);
  color: var(--on-dark);
  border-color: var(--navy);
}
#nav.scrolled .nav-btn--medical:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

/* Pulsante Aesthetic — bordo bianco sull'hero, bordo normal dopo scroll */
.nav-btn--aesthetic {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid oklch(1 0 0 / 0.45);
}
.nav-btn--aesthetic:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

#nav.scrolled .nav-btn--aesthetic {
  color: var(--ink);
  border-color: var(--border-mid);
}
#nav.scrolled .nav-btn--aesthetic:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}


/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) var(--px) 7rem;
}

/* Griglia geometrica decorativa di sfondo */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Sfumatura verso il basso */
#hero::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
  max-width: none;
}

.hero-title {
  color: var(--on-dark);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-rule {
  width: 56px;
  height: 1.5px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.85;
}

.hero-address {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: oklch(1 0 0 / 0.55);
  margin-bottom: 2.75rem;
  max-width: none;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-block;
  padding: 0.78rem 2.25rem;
  border: 1.5px solid oklch(var(--gold) / 0.8);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.22s ease, color 0.22s ease;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Indicatore scroll — linea animata */
.hero-line {
  position: absolute;
  inset-block-end: 2.25rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-line span {
  display: block;
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse-line 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line { display: none; }
}


/* ════════════════════════════════════════════════════════════════════════
   SEZIONI — stili comuni
   ════════════════════════════════════════════════════════════════════════ */
.section {
  padding-block: var(--py);
}

.section--white   { background: var(--white); }
.section--surface { background: var(--surface); }
.section--dark    { background: var(--navy); }

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head h2 {
  margin-bottom: 0.7rem;
}

.section-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.75;
}

.section-head--light h2 { color: var(--on-dark); }
.section-head--light .section-lead { color: oklch(1 0 0 / 0.60); }

/* Badge di sezione */
.section-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--gold-pale);
  color: oklch(0.38 0.065 82);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r);
  margin-bottom: 1rem;
}

.section-tag--medical {
  background: oklch(0.948 0.018 242);
  color: var(--navy);
}

/* Titolo blocchi interni */
.block-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid oklch(0.85 0.04 82);
}

.block-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Link contatto condiviso */
.contact-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--gold-hover); }


/* ════════════════════════════════════════════════════════════════════════
   LA STRUTTURA — griglia foto
   ════════════════════════════════════════════════════════════════════════ */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  height: clamp(320px, 46vw, 560px);
}

.photo-slot {
  border-radius: var(--r-xl);
  overflow: hidden;
}

.photo-slot--large {
  grid-row: span 2;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-mid);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--subtle);
}

.photo-placeholder svg {
  opacity: 0.5;
}

.photo-placeholder span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Quando aggiungi foto reali: il <img> dentro .photo-slot si adatta automaticamente */
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* Machine card con immagine in cima (Artemis) */
.machine--with-img {
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.machine-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.machine-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
}

/* Machine card Biotec Elite — gallery due ritratti + testo */
.machine--biotec {
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: visible;
}

.biotec-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 320px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.biotec-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.machine--biotec .machine-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}


/* ════════════════════════════════════════════════════════════════════════
   DLG AESTHETIC — servizi
   ════════════════════════════════════════════════════════════════════════ */
.services-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.services-col-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--gold);
}

.services-col--machines .services-col-title {
  border-bottom-color: var(--border);
}

/* Lista servizi base */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-list li {
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--muted);
  padding-inline-start: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-list li::before {
  content: '—';
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-weight: 300;
}

/* Gruppi interni alla lista servizi */
.service-group {
  margin-bottom: 1.1rem;
}

.service-group:last-child { margin-bottom: 0; }

.service-group-name {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.45rem;
  max-width: none;
}

/* Macchinari */
.machine {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.machine:hover {
  border-color: oklch(0.80 0.04 82);
  box-shadow: 0 4px 18px oklch(0 0 0 / 0.05);
}

.machine-marker {
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.machine-body h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.machine-body p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: none;
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════════════════
   DLG AESTHETIC — estetiste
   ════════════════════════════════════════════════════════════════════════ */
.staff-block {
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.staff-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
  border-color: oklch(0.80 0.06 82);
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.06);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid oklch(0.82 0.06 82);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.staff-monogram {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: oklch(0.38 0.065 82);
  letter-spacing: 0.05em;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.staff-details h4 {
  margin-bottom: 0.15rem;
  font-size: 1.1rem;
}

.staff-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  max-width: none;
}


/* ════════════════════════════════════════════════════════════════════════
   DLG MEDICAL — medico principale (featured)
   ════════════════════════════════════════════════════════════════════════ */
.featured-doctor {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 2.5rem 2.75rem;
  background: var(--navy);
  border-radius: var(--r-xl);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.featured-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid oklch(1 0 0 / 0.22);
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Quando si aggiunge la foto: */
.featured-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.featured-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  max-width: none;
}

.featured-info h3 {
  color: var(--on-dark);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.featured-specialty {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: oklch(1 0 0 / 0.60);
  max-width: none;
  margin-bottom: 0.75rem;
}

.featured-contact {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.featured-contact:hover { opacity: 0.78; }


/* ════════════════════════════════════════════════════════════════════════
   DLG MEDICAL — dermatologi
   ════════════════════════════════════════════════════════════════════════ */
.doctors-block {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.doctors-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 6px 22px oklch(0 0 0 / 0.06);
}

.doctor-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.doctor-monogram {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* Quando si aggiunge la foto: */
.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.doctor-info h4 { margin-bottom: 0.12rem; }

.doctor-specialty {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: none;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}


/* ════════════════════════════════════════════════════════════════════════
   DLG MEDICAL — specialisti
   ════════════════════════════════════════════════════════════════════════ */
.specialists-block {
  /* nessun margine bottom specifico — la sezione gestisce il padding */
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.specialist {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.specialist:hover {
  background: var(--surface);
  border-color: var(--border-mid);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.05);
}

.specialist-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface-mid);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.specialist-monogram {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
}

.specialist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.specialist-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.specialist-info .doctor-specialty {
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
}

.specialist-info .contact-link {
  font-size: 0.84rem;
}


/* ════════════════════════════════════════════════════════════════════════
   CONTATTI
   ════════════════════════════════════════════════════════════════════════ */
.section--dark .section-head h2 {
  color: var(--on-dark);
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
}

.contatti-item { }

.contatti-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.contatti-value {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: oklch(1 0 0 / 0.78);
  line-height: 1.7;
}

.contatti-link {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: oklch(1 0 0 / 0.78);
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}

.contatti-link:hover { color: var(--gold); }

.contatti-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: oklch(1 0 0 / 0.38);
  margin-top: -0.1rem;
  margin-bottom: 0.5rem;
}

.contatti-link--ig {
  font-size: 0.82rem;
  font-weight: 400;
  color: oklch(0.80 0.06 82);
}

.contatti-link--ig:hover { color: var(--gold); }

.contatti-item--social { grid-column: span 2; }

@media (max-width: 640px) {
  .contatti-item--social { grid-column: span 1; }
}


/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: oklch(1 0 0 / 0.38);
}

.footer-meta a {
  color: oklch(1 0 0 / 0.45);
  transition: color 0.2s ease;
}

.footer-meta a:hover { color: var(--gold); }


/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — tablet
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 840px) {
  .services-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .featured-doctor {
    padding: 2rem 1.75rem;
    gap: 1.5rem;
  }
}


/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --nav-h: 60px;
  }

  /* Nasconde il sottotitolo del logo su schermi piccoli */
  .logo-sub { display: none; }

  /* Pulsanti nav più compatti */
  .nav-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.75rem;
  }

  /* Griglia foto: due colonne su mobile */
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 0.5rem;
  }

  .photo-slot--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .photo-slot img { aspect-ratio: 4/3; height: auto; }
  .photo-slot--large img { aspect-ratio: 16/9; }

  .photo-placeholder {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .photo-slot--large .photo-placeholder { aspect-ratio: 16/9; }

  /* Doctor featured: layout verticale */
  .featured-doctor {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }

  /* Footer verticale */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .nav-actions { gap: 0.3rem; }
  .nav-btn { font-size: 0.68rem; padding: 0.35rem 0.6rem; }
}
