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

:root {
  --navy: #28385d;
  --navy-light: #334672;
  --red: #bd2c33;
  --red-light: #d4464d;
  --cream: #f5f0e6;
  --cream-dark: #ede5d4;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(40, 56, 93, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(189,44,51,0.15);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }

.header-left { display: flex; align-items: center; gap: 0; }

.logo-mark, .logo-full {
  width: auto;
  transition: opacity 0.35s ease;
}
.logo-mark { height: 56px; }
.logo-full { height: 44px; display: none; }
header.scrolled .logo-mark { display: none; }
header.scrolled .logo-full { display: block; }

.header-name {
  font-family: 'EB Garamond', serif;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-left: 20px;
  margin-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: opacity 0.3s ease, max-width 0.35s ease, padding 0.35s ease, margin 0.35s ease, border-color 0.35s ease;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
}
.header-name span:first-child {
  font-style: italic;
  color: var(--red-light);
  letter-spacing: 0.18em;
}
header.scrolled .header-name {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  margin-left: 0;
  border-left-color: transparent;
}

nav { display: flex; align-items: center; gap: 36px; }

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

nav a.active { color: var(--white); }

nav a .num {
  font-size: 8px;
  color: var(--red);
  margin-bottom: 1px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  letter-spacing: 0.1em;
}

nav a:hover { color: var(--white); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a.active::after, nav a:hover::after { transform: scaleX(1); }

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 80px;
  background:
    linear-gradient(to right, rgba(40,56,93,0.92) 0%, rgba(40,56,93,0.78) 55%, rgba(40,56,93,0.55) 100%),
    url('../images/header/professionista.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(189,44,51,0.08) 100%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 48px 80px;
  position: relative;
  z-index: 2;
}

.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }

.breadcrumb a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 10px; }

.breadcrumb-current {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.page-hero-num {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  max-width: 760px;
}

.page-hero-subtitle {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 36px;
}

.page-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 32px 32px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-stat:last-child { border-right: none; padding-left: 32px; }
.hero-stat:not(:first-child) { padding-left: 32px; }

.hs-number {
  font-family: 'EB Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.hs-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* ── BIO ── */
.bio {
  padding: 100px 0;
  background: var(--white);
}

.bio-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.bio-image {
  position: sticky;
  top: 120px;
  background: var(--navy-light);
  height: 520px;
  overflow: hidden;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.bio-red-bar {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: 0.6;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(40,56,93,0.45);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: rgba(40,56,93,0.3);
}

.section-label.light { color: rgba(255,255,255,0.4); }
.section-label.light::before { background: rgba(255,255,255,0.25); }

.bio-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}

.bio-role {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 36px;
}

.bio-lead {
  font-family: 'EB Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 32px;
  border-left: 3px solid var(--red);
  padding-left: 28px;
}

.bio-body {
  font-size: 13.5px;
  color: #3a3a3a;
  line-height: 2.05;
  font-weight: 300;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

/* ── INCARICHI ── */
.incarichi {
  background: var(--cream);
  padding: 96px 0;
}

.incarichi-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.incarichi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.incarichi-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 36px;
}

.incarichi-body {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 2.1;
  font-weight: 300;
  margin-bottom: 20px;
}

.incarichi-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(40,56,93,0.1);
}

.incarico-item {
  background: var(--cream);
  padding: 28px 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.25s;
}

.incarico-item:hover { background: var(--navy); }
.incarico-item:hover .ic-year { color: var(--white); }
.incarico-item:hover .ic-title { color: var(--white); }
.incarico-item:hover .ic-text { color: rgba(255,255,255,0.6); }

.ic-year {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--red);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 70px;
  padding-top: 2px;
  transition: color 0.25s;
}

.ic-content { flex: 1; }

.ic-title {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  transition: color 0.25s;
}

.ic-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
  transition: color 0.25s;
}

/* ── FORMAZIONE / TIMELINE ── */
.formazione {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.formazione-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.formazione-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}

.formazione-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}

.formazione-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  font-weight: 300;
}

.formazione-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.formazione-step {
  background: var(--navy);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.formazione-step:hover { background: var(--navy-light); }

.fs-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.formazione-step:hover .fs-bar { transform: scaleX(1); }

.fs-num {
  font-family: 'EB Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 20px;
}

.fs-title {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.fs-text {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  font-weight: 300;
}

/* ── PUBBLICAZIONI ── */
.pubblicazioni {
  padding: 100px 0;
  background: var(--white);
}

.pubblicazioni-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.pubblicazioni-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 56px;
}

.pubb-list { border-top: 1px solid rgba(40,56,93,0.12); }

.pubb-row {
  display: grid;
  grid-template-columns: 100px 1fr 240px;
  gap: 32px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(40,56,93,0.12);
  align-items: baseline;
  transition: background 0.2s;
}

.pubb-row:hover { background: rgba(40,56,93,0.04); }

.pubb-year {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--red);
  letter-spacing: 0.05em;
}

.pubb-title {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

.pubb-source {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: right;
}

.pubb-row-hidden { display: none; }
.pubb-list.show-all .pubb-row-hidden {
  display: grid;
  animation: pubb-fade-in 0.4s ease both;
}
@keyframes pubb-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pubb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pubb-toggle:hover {
  background: var(--navy);
  color: var(--white);
}
.pubb-toggle .pt-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}
.pubb-toggle[aria-expanded="true"] .pt-arrow {
  transform: rotate(180deg);
}

/* ── STRIP CONTATTI ── */
.contact-strip {
  background: var(--red);
  padding: 24px 0;
}

.contact-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-text {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
}

.cs-actions { display: flex; align-items: center; gap: 32px; }

.cs-phone {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.cs-phone:hover { opacity: 0.8; }

.cs-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cs-btn:hover { opacity: 0.85; }


#footer > .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(189,44,51,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 36px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

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

.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}

.footer-col-title {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-nav a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }
.footer-nav-legal {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-legal a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav-legal a:hover { color: var(--red); }



.contact-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.contact-item-value a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-value a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer-red-accent { display: flex; align-items: center; gap: 10px; }

.footer-red-line { width: 40px; height: 1px; background: var(--red); opacity: 0.35; }
.footer-red-dot { width: 4px; height: 4px; background: var(--red); opacity: 0.4; }

/* ── POWERED BY ── */
.powered {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 14px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.powered a {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s;
}

.powered a:hover { color: var(--red); }
