/* CV (pagina singola) - stile pensato per essere stampabile/exportabile */

:root {
  --cv-navy: #3c4a66;
  --cv-pink: #d4838f;
  --cv-peach: #e3a399;
  --cv-peach-2: #f0b3a2;
  --cv-cream: #f6ead8;
  --cv-text: #2b3240;
  --cv-muted: rgba(43, 50, 64, 0.78);
  --cv-line: rgba(255, 255, 255, 0.18);
}

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

body {
  margin: 0;
  padding: 24px;
  background: #0f1824;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cv-page {
  width: 768px;
  height: 1024px;
  margin: 0 auto;
  background: var(--cv-peach);
  color: var(--cv-text);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.cv-header {
  height: 170px;
  padding: 18px 22px;
  background: var(--cv-navy);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.cv-header-text {
  padding-top: 6px;
  width: calc(100% - 160px);
}

.cv-name {
  font-weight: 700;
  letter-spacing: 10px;
  font-size: 26px;
  color: var(--cv-peach-2);
  text-transform: uppercase;
}

.cv-title {
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--cv-peach-2);
  text-transform: uppercase;
}

.cv-quote {
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(246, 234, 216, 0.95);
  max-width: 420px;
}

.cv-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(245, 211, 192, 0.7);
  /* Crop della foto dentro la tua "CV page 1.jpg" */
  background-image: url('CV page 1.jpg');
  background-repeat: no-repeat;
  background-size: 768px 1024px;
  /* Questi valori potrebbero richiedere un micro-adjust per centrare perfettamente la foto */
  background-position: -585px -40px;
  margin-top: 6px;
}

.cv-top {
  background: var(--cv-peach-2);
  padding: 10px 18px 14px;
  border-bottom: 3px solid rgba(43, 50, 64, 0.25);
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-start;
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 330px;
  min-width: 300px;
}

.cv-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(212, 131, 143, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-pink);
  font-size: 14px;
}

.cv-contact-text {
  font-size: 12px;
  color: rgba(43, 50, 64, 0.9);
}

.cv-about {
  background: rgba(240, 179, 162, 0.95);
  padding: 18px 22px 16px;
}

.cv-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cv-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(212, 131, 143, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-pink);
}

.cv-section-title {
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 14px;
  color: rgba(43, 50, 64, 0.78);
  text-transform: uppercase;
}

.cv-about-text {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(43, 50, 64, 0.86);
  line-height: 1.35;
}

.cv-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  height: calc(1024px - 170px - 120px - 64px); /* approssimazione */
}

.cv-left {
  background: rgba(230, 164, 150, 0.95);
  padding: 18px 18px 12px;
}

.cv-section-head-left .cv-section-title {
  font-size: 13px;
}

.cv-section-icon-badge {
  background: rgba(60, 74, 102, 0.08);
}

.cv-items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 2px;
}

.cv-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid rgba(212, 131, 143, 0.5);
  color: var(--cv-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.cv-item-title {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: rgba(43, 50, 64, 0.9);
  text-transform: uppercase;
}

.cv-item-subtitle {
  margin-top: 3px;
  font-weight: 700;
  font-size: 11.5px;
  color: rgba(60, 74, 102, 0.95);
  text-transform: uppercase;
}

.cv-item-desc {
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(43, 50, 64, 0.8);
  line-height: 1.3;
}

.cv-right {
  background: rgba(230, 164, 150, 0.95);
  padding: 18px 18px 12px;
}

.cv-section-head-right {
  margin-bottom: 10px;
}

.cv-tech {
  margin-top: 6px;
}

.cv-tech-group {
  margin-bottom: 14px;
}

.cv-tech-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(60, 74, 102, 0.95);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cv-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.cv-tech-list span {
  font-weight: 700;
  font-size: 11px;
  color: rgba(43, 50, 64, 0.85);
  letter-spacing: 0.2px;
}

.cv-divider {
  height: 2px;
  background: rgba(60, 74, 102, 0.15);
  margin: 10px 0 16px;
}

.cv-languages {
  padding-right: 6px;
}

.cv-lang-line {
  font-size: 11px;
  color: rgba(43, 50, 64, 0.83);
  line-height: 1.35;
}

.cv-lang-level {
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(60, 74, 102, 0.95);
}

.cv-privacy {
  margin-top: 18px;
  font-size: 9.5px;
  color: rgba(43, 50, 64, 0.7);
  line-height: 1.25;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .cv-page {
    box-shadow: none;
    border-radius: 0;
  }
}

