/* =========================================================
   Dr Fabrizio Cecaro — site stylesheet
   Modern, minimal medical aesthetic: white/blue palette
   ========================================================= */

:root {
  --navy: #0f2c4c;
  --blue: #1d5fa8;
  --blue-light: #eaf2fb;
  --blue-accent: #4a90d9;
  --ink: #1c2b3a;
  --ink-soft: #52667a;
  --paper: #ffffff;
  --paper-alt: #f6f9fc;
  --border: #e2eaf2;
  --shadow: 0 10px 30px rgba(15, 44, 76, 0.08);
  --radius: 14px;
  --max-width: 1080px;
  --font: "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper-alt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */

header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 600;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.site-nav a:hover {
  background: var(--blue-light);
  color: var(--navy);
}

nav.site-nav a.active {
  background: var(--navy);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-photo {
  flex: 0 0 auto;
}

.hero-photo img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  background: #d9e5f2;
}

.hero-text {
  flex: 1 1 340px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: 1.85rem;
  line-height: 1.28;
  margin: 0 0 10px;
}

.hero-credentials {
  font-size: 1.02rem;
  font-weight: 600;
  color: #cfe0f5;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e7f0fb;
  max-width: 46ch;
  margin: 0;
}

.hero-subtitle.no-wrap-lines {
  max-width: none;
}

.hero-subtitle .nowrap-line {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-subtitle .nowrap-line {
    white-space: normal;
  }
}

/* ---------- Layout ---------- */

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 780px) {
  .page-wrap { grid-template-columns: 1fr; }
}

.content-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.content-card h2 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue-light);
}

.content-card p {
  margin: 0 0 16px;
  color: var(--ink);
}

.content-card p:last-child { margin-bottom: 0; }

.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.badge-row img { border-radius: 6px; }

.badge-row span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.side-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--blue-accent);
  margin: 0 0 14px;
  font-weight: 700;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-buttons a:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.fact-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.fact-list li:last-child { border-bottom: none; }

.fact-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

/* ---------- Timeline (education / appointments) ---------- */

.timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-left: 2px solid var(--blue-light);
}

.timeline:last-child { margin-bottom: 0; }

.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.timeline .t-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.timeline .t-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.timeline .t-place {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Simple list (fellowships, memberships) ---------- */

.simple-list {
  margin: 0 0 8px;
  padding-left: 20px;
}

.simple-list li {
  margin-bottom: 10px;
  color: var(--ink);
}

.simple-list li:last-child { margin-bottom: 0; }

/* ---------- Publications ---------- */

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pub-item:first-child { padding-top: 0; }
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }

.pub-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.pub-authors {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.pub-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-accent);
}

/* ---------- Stat box ---------- */

.stat-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-row div { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.side-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: left;
  margin: 14px 0 0;
}

.btn-outline {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* ---------- Placeholder notice ---------- */

.placeholder-notice {
  background: #fff7e6;
  border: 1px solid #f0d798;
  color: #7a5a00;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: #cfe0f5;
  text-align: center;
  padding: 26px 24px;
  font-size: 0.88rem;
}

footer.site-footer a { color: #fff; text-decoration: underline; }

/* ---------- Cookie consent banner ---------- */

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy);
  color: #e7f0fb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

#cookie-consent-banner p {
  margin: 0;
  max-width: 640px;
}

#cookie-consent-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent-buttons button {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
}

#cookie-consent-accept {
  background: var(--blue-accent);
  color: #042c53;
}

#cookie-consent-accept:hover {
  background: #fff;
}

#cookie-consent-decline {
  background: transparent;
  color: #cfe0f5;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#cookie-consent-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}