/*
Theme Name: Dott. Salvatore D'Amato — Ortopedico
Theme URI: https://example.com/damato-theme
Author: Tumminellospina srls
Description: Tema vetrina one-page per il Dott. Salvatore D'Amato, ortopedico e traumatologo. Replica fedelmente il design React/Tailwind originale: palette medical deep blue + warm ivory + soft mint + warm gold, font Cormorant Garamond + Inter, gradienti e shadow del design system.
Version: 1.5.1
License: GPL v2 or later
Text Domain: damato
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============ Design Tokens (HSL) — identici a src/index.css ============ */
:root {
  --background: 40 33% 97%;
  --foreground: 202 60% 14%;
  --card: 0 0% 100%;
  --card-foreground: 202 60% 14%;
  --primary: 200 70% 22%;
  --primary-foreground: 40 33% 97%;
  --primary-glow: 196 55% 42%;
  --secondary: 160 35% 88%;
  --secondary-foreground: 200 70% 18%;
  --muted: 200 25% 94%;
  --muted-foreground: 202 20% 38%;
  --accent: 38 55% 58%;
  --accent-foreground: 202 60% 14%;
  --mint: 160 42% 72%;
  --mint-foreground: 200 70% 18%;
  --border: 200 25% 88%;
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(200 70% 22%) 0%, hsl(196 55% 32%) 60%, hsl(160 42% 52%) 100%);
  --gradient-soft: linear-gradient(180deg, hsl(40 33% 97%) 0%, hsl(160 35% 94%) 100%);
  --gradient-accent: linear-gradient(90deg, hsl(38 55% 58%), hsl(38 65% 70%));

  --shadow-elegant: 0 20px 60px -25px hsl(200 70% 22% / 0.25);
  --shadow-soft: 0 8px 30px -12px hsl(200 70% 22% / 0.12);
  --shadow-glow: 0 0 50px hsl(160 42% 72% / 0.4);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, .font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: hsl(var(--primary));
}

/* ============ Layout helpers ============ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.text-balance { text-wrap: balance; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  font-weight: 500;
}

/* ============ Animations ============ */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-fade-up { animation: fade-up 0.9s var(--ease-smooth) both; }
.animate-fade-in { animation: fade-in 1.2s ease-out both; }
.animate-float { animation: float-slow 6s ease-in-out infinite; }

/* ============ Buttons (replica button.tsx variants) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.3s var(--ease-smooth);
  padding: 0 1rem; height: 2.5rem;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-sm { height: 2.25rem; padding: 0 0.75rem; }
.btn-xl { height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; border-radius: calc(var(--radius) - 0.125rem); }

.btn-hero {
  background: var(--gradient-hero);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-elegant);
  transition: all 0.5s var(--ease-smooth);
}
.btn-hero:hover { box-shadow: var(--shadow-glow); transform: scale(1.02); }
.btn-outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-gold {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { background: hsl(var(--accent) / 0.9); }
.btn-outline-light {
  border: 1px solid hsl(var(--primary-foreground) / 0.4);
  color: hsl(var(--primary-foreground));
}
.btn-outline-light:hover { background: hsl(var(--primary-foreground) / 0.1); }

/* ============ Header / Navbar ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s var(--ease-smooth);
  background: transparent;
}
.site-header.scrolled {
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 3rem; width: 3rem; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: 'Cormorant Garamond', serif; font-size: 1.125rem; color: hsl(var(--primary)); font-weight: 500; }
.brand-text .role { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; color: hsl(var(--foreground) / 0.8); position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: hsl(var(--accent)); transition: width 0.3s;
}
.nav-links a:hover { color: hsl(var(--primary)); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; align-items: center; gap: 0.75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--primary)); transition: color 0.2s; }
.nav-phone:hover { color: hsl(var(--accent)); }

.menu-toggle { display: inline-flex; color: hsl(var(--primary)); padding: 0.5rem; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-soft);
}
.mobile-menu.open { display: block; animation: fade-in 0.3s ease-out both; }
.mobile-menu ul {
  list-style: none; margin: 0; padding: 1.25rem 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0;
}
.mobile-menu li { border-bottom: 1px solid hsl(var(--border) / 0.6); }
.mobile-menu li:last-child { border-bottom: 0; padding-top: 1rem; }
.mobile-menu a {
  display: block; padding: 1rem 0;
  color: hsl(var(--foreground));
  font-size: 1.0625rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: hsl(var(--primary)); }
.mobile-menu a.btn {
  display: flex; justify-content: center; width: 100%;
  margin-top: 0.5rem; padding: 0.875rem 1.5rem;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu, .mobile-menu.open { display: none; }
}
@media (min-width: 640px) { .brand-text { display: block; } }
@media (max-width: 639px) { .brand-text { display: none; } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-soft);
  padding: 8rem 0 5rem;
}
@media (min-width: 1024px) { .hero { padding: 10rem 0 7rem; } }

.hero .orb {
  pointer-events: none; position: absolute; border-radius: 9999px;
  filter: blur(48px);
}
.hero .orb-1 { top: -8rem; right: -8rem; width: 480px; height: 480px; background: hsl(var(--mint) / 0.3); }
.hero .orb-2 { bottom: -10rem; left: -8rem; width: 420px; height: 420px; background: hsl(var(--accent) / 0.2); }

.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-pill .dot { height: 6px; width: 6px; border-radius: 9999px; background: hsl(var(--accent)); }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
}
.hero h1 .accent-italic { font-style: italic; color: hsl(var(--primary-glow)); }

.hero p.lead {
  margin-top: 1.5rem; font-size: 1.125rem;
  color: hsl(var(--muted-foreground)); max-width: 36rem; line-height: 1.7;
}
.hero p.lead strong { color: hsl(var(--foreground)); font-weight: 500; }

.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 32rem;
}
.hero-stats svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--accent)); margin-bottom: 0.5rem; }
.hero-stats dt { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: hsl(var(--primary)); }
.hero-stats dd { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

.hero-photo { position: relative; }
.hero-photo .glow {
  position: absolute; inset: -1.5rem; border-radius: 2rem;
  background: var(--gradient-hero); opacity: 0.9; filter: blur(40px);
}
.hero-photo .frame {
  position: relative; border-radius: 2rem; overflow: hidden;
  box-shadow: var(--shadow-elegant);
  outline: 1px solid hsl(var(--primary) / 0.1);
}
.hero-photo .frame img { width: 100%; height: 560px; object-fit: cover; object-position: top; }
@media (min-width: 1024px) { .hero-photo .frame img { height: 680px; } }

.hero-quote {
  position: absolute; bottom: -1.5rem; left: -1.5rem; max-width: 240px;
  background: hsl(var(--card)); border-radius: 1rem; padding: 1.25rem;
  box-shadow: var(--shadow-elegant);
}
@media (max-width: 639px) { .hero-quote { display: none; } }
.hero-quote p:first-child { font-family: 'Cormorant Garamond', serif; color: hsl(var(--primary)); font-size: 1.125rem; line-height: 1.3; }
.hero-quote p:last-child { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============ Section base ============ */
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-soft { background: var(--gradient-soft); }
.section-title {
  margin-top: 1rem; font-size: clamp(2rem, 4vw, 3rem);
}

/* ============ About ============ */
.about-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.about-sticky { position: relative; }
@media (min-width: 1024px) { .about-sticky { position: sticky; top: 7rem; } }
.about-illus {
  margin-top: 2rem; border-radius: 1rem; overflow: hidden;
  background: hsl(var(--secondary) / 0.4); padding: 1.5rem;
}
.about-illus img { width: 100%; height: 16rem; object-fit: contain; }

.about-body p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1.5rem; }
.about-body strong { color: hsl(var(--foreground)); font-weight: 500; }

.about-cards { display: grid; gap: 1.5rem; padding-top: 1rem; }
@media (min-width: 640px) { .about-cards { grid-template-columns: repeat(3, 1fr); } }
.about-card {
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  padding: 1.25rem; transition: border-color 0.3s;
}
.about-card:hover { border-color: hsl(var(--accent)); }
.about-card svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--accent)); margin-bottom: 0.75rem; }
.about-card h3 { font-size: 1.25rem; }
.about-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.timeline {
  margin-top: 2rem; padding-left: 2rem;
  border-left: 2px solid hsl(var(--secondary));
  display: flex; flex-direction: column; gap: 2rem;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -41px; top: 0.25rem;
  height: 1rem; width: 1rem; border-radius: 9999px;
  background: hsl(var(--accent)); box-shadow: 0 0 0 4px hsl(var(--background));
}
.timeline .year { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: hsl(var(--primary)); }
.timeline p:last-child { color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* ============ Specialties ============ */
.specialties-grid {
  margin-top: 4rem; display: grid; gap: 2rem;
}
@media (min-width: 768px) { .specialties-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-card {
  border-radius: 1rem; overflow: hidden; background: hsl(var(--card));
  box-shadow: var(--shadow-soft);
  transition: all 0.5s var(--ease-smooth);
}
.spec-card:hover { box-shadow: var(--shadow-elegant); transform: translateY(-4px); }
.spec-card .img-wrap {
  aspect-ratio: 4/5; background: hsl(var(--secondary) / 0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
}
.spec-card .img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.7s var(--ease-smooth);
}
.spec-card:hover .img-wrap img { transform: scale(1.05); }
.spec-card .body { padding: 1.75rem; }
.spec-card h3 { font-size: 1.875rem; }
.spec-card p { color: hsl(var(--muted-foreground)); margin-top: 0.75rem; line-height: 1.7; }

/* ============ Pathologies ============ */
.path-head { display: grid; gap: 2.5rem; align-items: end; margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .path-head { grid-template-columns: 7fr 5fr; } }
.path-head p { color: hsl(var(--muted-foreground)); }

.path-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: hsl(var(--border)); border-radius: 1rem; overflow: hidden;
}
@media (min-width: 768px) { .path-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .path-grid { grid-template-columns: repeat(4, 1fr); } }
.path-grid li {
  background: hsl(var(--card)); padding: 1.5rem 1.25rem;
  font-size: 0.875rem; color: hsl(var(--foreground) / 0.8);
  display: flex; align-items: flex-start; gap: 0.75rem;
  transition: all 0.3s;
}
.path-grid li:hover { background: hsl(var(--secondary) / 0.6); color: hsl(var(--primary)); }
.path-grid li .bullet {
  margin-top: 6px; height: 6px; width: 6px; border-radius: 9999px;
  background: hsl(var(--accent)); flex-shrink: 0;
}

/* ============ Locations ============ */
.loc-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .loc-grid { grid-template-columns: repeat(3, 1fr); } }
.loc-card {
  display: block; background: hsl(var(--card)); border-radius: 1rem; padding: 2rem;
  box-shadow: var(--shadow-soft); border: 1px solid transparent;
  transition: all 0.5s var(--ease-smooth);
}
.loc-card:hover {
  box-shadow: var(--shadow-elegant); transform: translateY(-4px);
  border-color: hsl(var(--accent) / 0.4);
}
.loc-card svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--accent)); }
.loc-card .city { margin-top: 1.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--muted-foreground)); }
.loc-card h3 { font-size: 1.5rem; margin-top: 0.25rem; }
.loc-card .addr { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.75rem; line-height: 1.7; }
.loc-card .open { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1.5rem; font-size: 0.875rem; color: hsl(var(--primary)); transition: color 0.2s; }
.loc-card .open svg { width: 14px; height: 14px; color: currentColor; }
.loc-card:hover .open { color: hsl(var(--accent)); }

/* ============ Shortcode aliases (cards-3 grid + spec/loc markup) ============ */
.cards-3 { margin-top: 3.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(4, 1fr); } }
.loc-grid.cards-3, .cards-3.cards-locations { grid-template-columns: 1fr; }
@media (min-width: 768px) { .loc-grid.cards-3, .cards-3.cards-locations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .loc-grid.cards-3, .cards-3.cards-locations { grid-template-columns: repeat(2, 1fr); } }
.spec-card .spec-img {
  aspect-ratio: 4/5; background: hsl(var(--secondary) / 0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
}
.spec-card .spec-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.7s var(--ease-smooth);
}
.spec-card:hover .spec-img img { transform: scale(1.05); }
.spec-card .spec-body { padding: 1.75rem; }
.loc-card .map-link {
  display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1.5rem;
  font-size: 0.875rem; color: hsl(var(--primary)); transition: color 0.2s;
  text-decoration: none;
}
.loc-card .map-link svg { width: 14px; height: 14px; color: currentColor; }
.loc-card:hover .map-link { color: hsl(var(--accent)); }

/* Section heading wrapper used by shortcodes */
.section-head { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .section-title { margin-top: 0.75rem; }

/* Pathologies grid alias */
.pathologies-grid {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: hsl(var(--border)); border-radius: 1rem; overflow: hidden;
  list-style: none; padding: 0;
}
@media (min-width: 768px) { .pathologies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pathologies-grid { grid-template-columns: repeat(4, 1fr); } }
.pathologies-grid li {
  background: hsl(var(--card)); padding: 1.5rem 1.25rem;
  font-size: 0.875rem; color: hsl(var(--foreground) / 0.8);
  display: flex; align-items: flex-start; gap: 0.75rem;
  transition: all 0.3s;
}
.pathologies-grid li::before {
  content: ''; margin-top: 6px; height: 6px; width: 6px; border-radius: 9999px;
  background: hsl(var(--accent)); flex-shrink: 0;
}
.pathologies-grid li:hover { background: hsl(var(--secondary) / 0.6); color: hsl(var(--primary)); }

/* ============ Contact ============ */
.contact {
  position: relative; padding: 6rem 0; overflow: hidden;
  background: var(--gradient-hero); color: hsl(var(--primary-foreground));
}
@media (min-width: 1024px) { .contact { padding: 8rem 0; } }
.contact .orbs { position: absolute; inset: 0; opacity: 0.3; pointer-events: none; }
.contact .orbs .o1 { position: absolute; top: -6rem; left: -6rem; width: 24rem; height: 24rem; border-radius: 9999px; background: hsl(var(--mint) / 0.4); filter: blur(48px); }
.contact .orbs .o2 { position: absolute; bottom: -8rem; right: 0; width: 31rem; height: 31rem; border-radius: 9999px; background: hsl(var(--accent) / 0.3); filter: blur(48px); }

.contact-grid { position: relative; display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact .eyebrow { color: hsl(var(--mint)); }
.contact h2 { color: hsl(var(--primary-foreground)); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; margin-top: 1rem; }
.contact h2 .italic { font-style: italic; opacity: 0.9; display: block; }
.contact .lead { color: hsl(var(--primary-foreground) / 0.8); margin-top: 1.5rem; font-size: 1.125rem; max-width: 32rem; }
.contact .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Contact list (phone/mail/instagram) */
.contact-list {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-list li {
  display: flex; align-items: center; gap: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.9); font-size: 1.0625rem;
}
.contact-list li svg { color: hsl(var(--mint)); flex-shrink: 0; }
.contact-list a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: hsl(var(--mint)); }

/* Contact CTA card (right column) */
.contact-cta {
  position: relative;
  background: hsl(var(--primary-foreground) / 0.08);
  border: 1px solid hsl(var(--primary-foreground) / 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elegant);
}
.contact-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}
.contact-cta-actions { display: flex; flex-direction: column; gap: 1rem; }
.contact-cta-actions .btn { width: 100%; justify-content: center; }

/* Outlined button on dark hero background */
.btn-outline-light {
  background: transparent;
  border: 1px solid hsl(var(--primary-foreground) / 0.4);
  color: hsl(var(--primary-foreground));
}
.btn-outline-light:hover {
  background: hsl(var(--primary-foreground) / 0.1);
  border-color: hsl(var(--primary-foreground));
}
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1.25rem;
  border-radius: 1rem; padding: 1.5rem;
  background: hsl(var(--primary-foreground) / 0.05);
  border: 1px solid hsl(var(--primary-foreground) / 0.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.contact-item:hover { background: hsl(var(--primary-foreground) / 0.1); transform: translateX(4px); }
.contact-item .icon-bubble {
  height: 3rem; width: 3rem; border-radius: 9999px;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-item .icon-bubble svg { width: 1.25rem; height: 1.25rem; }
.contact-item .body { flex: 1; }
.contact-item h3 { color: hsl(var(--primary-foreground)); font-size: 1.25rem; }
.contact-item p { font-size: 0.875rem; color: hsl(var(--primary-foreground) / 0.7); margin-top: 0.125rem; }
.contact-item .arrow { font-size: 1.5rem; opacity: 0.5; transition: all 0.3s; }
.contact-item:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ============ Footer ============ */
.site-footer {
  background: hsl(var(--background)); border-top: 1px solid hsl(var(--border));
  padding: 3.5rem 0;
}
.footer-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid img { height: 4rem; width: 4rem; object-fit: contain; }
.footer-grid .name { margin-top: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: hsl(var(--primary)); }
.footer-grid .role { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.footer-col .head { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer-col p + p { margin-top: 0.5rem; }
.footer-col a:hover { color: hsl(var(--accent)); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.75rem; color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ============ Generic page (.php fallback) ============ */
.basic-page { padding: 8rem 0 4rem; }
.basic-page h1 { font-size: 3rem; margin-bottom: 1.5rem; }
.basic-page .entry { font-size: 1.0625rem; line-height: 1.8; color: hsl(var(--muted-foreground)); }

/* === Logo esteso (override) === */
.brand { gap: 0; }
.brand .brand-logo { height: 3.5rem; width: auto; max-width: 280px; object-fit: contain; display: block; }
@media (min-width: 768px) { .brand .brand-logo { height: 4rem; max-width: 340px; } }
.footer-grid .footer-logo { height: 5rem; width: auto; max-width: 320px; object-fit: contain; display: block; }

/* === Footer 4 colonne (v1.2) === */
@media (min-width: 768px) { .footer-grid-4 { grid-template-columns: 1.2fr 1fr 1.2fr 1fr; } }
.footer-col p a { color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .2s; }
.footer-col p a:hover { color: hsl(var(--accent)); }

/* === Aree cliniche (sotto le specialties) === */
.areas-block { margin-top: 4rem; }
.areas-block .section-head { margin-bottom: 2rem; }
.section-title-sm { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2rem); color: hsl(var(--primary)); margin: .75rem 0 0; line-height: 1.15; }

/* === Booking form === */
.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.booking-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 500; color: hsl(var(--primary-foreground)); letter-spacing: .02em; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: .65rem .85rem;
  border-radius: .5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / .25);
}
.booking-form textarea { resize: vertical; min-height: 96px; }
.booking-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .booking-row { grid-template-columns: 1fr 1fr; } }
.booking-form .btn { margin-top: .25rem; width: 100%; justify-content: center; }
.booking-form .booking-consent { flex-direction: row; align-items: flex-start; gap: .65rem; font-size: .75rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.booking-form .booking-consent input { width: 1rem; height: 1rem; margin: .12rem 0 0; padding: 0; flex: 0 0 auto; accent-color: hsl(var(--accent)); }
.booking-form .booking-consent a { color: hsl(var(--mint)); text-decoration: underline; text-underline-offset: 2px; }
.booking-form .booking-consent a:hover { color: hsl(var(--primary-foreground)); }
.booking-alert { padding: .75rem 1rem; border-radius: .5rem; font-size: .9rem; }
.booking-alert--ok  { background: hsl(var(--mint) / .25); color: hsl(var(--primary-foreground)); border: 1px solid hsl(var(--mint) / .4); }
.booking-alert--err { background: hsl(0 70% 50% / .15); color: hsl(var(--primary-foreground)); border: 1px solid hsl(0 70% 50% / .35); }

/* Adatta il box .contact-cta per ospitare il form */
.contact-cta { padding: 1.5rem 1.5rem; }
@media (min-width: 768px) { .contact-cta { padding: 2rem; } }

/* ===== Publications accordion ===== */
.publications {
  margin-top: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  background: hsl(var(--card));
}
.publications > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: hsl(var(--primary));
}
.publications > summary::-webkit-details-marker { display: none; }
.publications .pub-label { display: inline-flex; align-items: center; gap: 0.65rem; }
.publications .pub-label svg { color: hsl(var(--accent)); }
.publications .pub-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}
.publications .pub-chevron { transition: transform 0.2s ease; color: hsl(var(--muted-foreground)); }
.publications[open] .pub-chevron { transform: rotate(180deg); }
.publications-list {
  list-style: decimal;
  padding: 0 1.25rem 1.25rem 2.75rem;
  margin: 0;
  color: hsl(var(--muted-foreground));
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============ Mobile collapsibles for pathologies / aree ============ */
.mobile-collapsible { margin-top: 2rem; display: block; }
.mobile-collapsible > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.95rem; font-weight: 500; color: hsl(var(--primary));
}
.mobile-collapsible > summary::-webkit-details-marker { display: none; }
.mobile-collapsible .chev {
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid hsl(var(--accent));
  border-bottom: 2px solid hsl(var(--accent));
  transform: rotate(45deg); transition: transform 0.25s;
}
.mobile-collapsible[open] .chev { transform: rotate(-135deg); }
.mobile-collapsible .mobile-list {
  list-style: none; padding: 0; margin: 0.75rem 0 0;
}
.mobile-collapsible .mobile-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0; font-size: 0.9rem; color: hsl(var(--foreground) / 0.85);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
.mobile-collapsible .mobile-list li:last-child { border-bottom: 0; }
.mobile-collapsible .mobile-list .dot {
  margin-top: 0.5rem; width: 0.4rem; height: 0.4rem; border-radius: 999px;
  background: hsl(var(--accent)); flex-shrink: 0;
}
@media (min-width: 768px) {
  .mobile-collapsible { display: none; }
}
.desktop-only-grid { display: none; }
@media (min-width: 768px) {
  .desktop-only-grid { display: grid; }
}
.mobile-area-groups { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.mobile-area-groups .area-group {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  overflow: hidden;
  box-shadow: 0 1px 2px hsl(var(--primary) / 0.04);
}
.mobile-area-groups .area-group-head {
  padding: 0.9rem 1.25rem;
  background: hsl(var(--secondary) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}
.mobile-area-groups .area-group-head h4 {
  margin: 0; font-family: var(--font-display, serif);
  font-size: 1.15rem; color: hsl(var(--primary));
}
.mobile-area-groups .mobile-list { list-style: none; padding: 0; margin: 0; }
.mobile-area-groups .mobile-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 1.25rem; font-size: 0.9rem;
  color: hsl(var(--foreground) / 0.8);
  border-bottom: 1px solid hsl(var(--border));
}
.mobile-area-groups .mobile-list li:last-child { border-bottom: 0; }
.mobile-area-groups .mobile-list .dot {
  margin-top: 0.5rem; width: 0.4rem; height: 0.4rem; border-radius: 999px;
  background: hsl(var(--accent)); flex-shrink: 0;
}
@media (min-width: 768px) {
  .mobile-area-groups { display: none; }
}
