/* ==========================================================================
   pages/curriculum.css
   Eccezioni della pagina curriculum.
   Caricato da 1 pagina.
   ========================================================================== */

:root {
  --cv-blue: var(--blu-notte);
  --cv-blue-2: var(--blu-accent);
  --cv-gold: var(--oro);
  --cv-border: rgba(18,42,68,.12);
}

.cv-hero-inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

.cv-kicker {
  font: 700 .82rem/1.4 Inter,Arial,sans-serif;
  margin-bottom: .75rem;
}

.cv-hero h1 {
  margin: 0 0 .8rem;
}

.cv-hero .lead {
  margin: 0 0 1.1rem;
}

.cv-badges {
  display: flex;
  flex-wrap: wrap;
  margin: 1.1rem 0 0;
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .58rem .9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
}

.cv-badge:before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  margin-right: .5rem;
  background: #efe2b6;
}

.cv-wrap {
  margin: 0 auto;
}

.cv-section {
  border: 1px solid var(--cv-border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.cv-section:before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg,var(--cv-blue-2),var(--cv-gold));
}

.cv-section h3 {
  margin: 1rem 0 .4rem;
}

.cv-section p {
  margin: .55rem 0;
}

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

.cv-card strong {
  display: block;
  color: var(--cv-blue);
  margin-bottom: .35rem;
}

.cv-card span {
  font-size: .94rem;
  line-height: 1.62;
  margin: 0;
  color: #556373;
  text-align: left;
}

.cv-list {
  counter-reset: item;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cv-list li {
  counter-increment: item;
  background: #f8fafc;
  border: 1px solid rgba(18,42,68,.08);
  border-radius: var(--r-lg);
  padding: 13px 15px 13px 54px;
  position: relative;
}

.cv-list li:before {
  content: counter(item);
  position: absolute;
  left: 15px;
  top: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,var(--blu-accent),#183b64);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.cv-timeline {
  display: grid;
  gap: 12px;
}

.cv-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 15px 16px;
}

.cv-year {
  font-weight: 800;
  color: var(--blu-accent);
}

.cv-row h3 {
  margin: 0 0 .3rem;
}

.cv-row p {
  margin: 0;
}

.cv-note {
  background: #fbf8f1;
  border: 1px solid rgba(212,180,109,.34);
  border-radius: var(--r-lg);
  padding: 16px;
  line-height: 1.7;
  color: #46566a;
}

.cv-publications {
  display: grid;
  gap: 12px;
}

.cv-pub {
  background: #f8fafc;
  border-left: 4px solid var(--blu-accent);
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
}

.cv-pub strong {
  color: var(--blu-notte);
}

.cv-pub em {
  color: #627186;
  font-style: normal;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 1.2rem;
}

.cv-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--r-lg);
  padding: .78rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
}

.cv-actions .primary {
  background: linear-gradient(180deg,#faf7f0,#ede3d2);
  color: #102235;
  border: 1px solid rgba(212,180,109,.4);
}

.cv-actions .secondary {
  background: linear-gradient(180deg,#102943,var(--blu-notte));
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.cv-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.cv-grid>* {
  flex: 0 1 calc((100% - 28px)/3);
  max-width: calc((100% - 28px)/3);
}

body.page-curriculum {
  background: var(--bg,#f8f6f1);
}

@media (max-width: 720px) {
  .cv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cv-list li {
    padding-left: 48px;
  }
}

@media print {
  header,
  footer,
  .cv-actions {
    display: none;
  }
  body.page-curriculum {
    background: #fff;
  }
  .cv-hero {
    background: #fff;
    color: var(--blu-notte);
    padding: 24px 0;
  }
  .cv-hero h1,
  .cv-hero .lead {
    color: var(--blu-notte);
  }
  .cv-section {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (max-width: 768px) {
  .cv-grid>* {
    flex-basis: calc((100% - 14px)/2);
    max-width: calc((100% - 14px)/2);
  }
}

@media (max-width: 520px) {
  .cv-grid>* {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* R5.31: altezza unica della fascia fra 701 e 1024 px */
@media (min-width: 701px) and (max-width: 1024px) {
  .cv-hero .cv-badges {
    margin-top: .6rem;
  }
}
