/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f5f5f7 0%, #ffffff 100%);
  text-align: center;
  padding: 60px 24px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.9s ease both;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e0e5;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #6e6e73;
  letter-spacing: 0.01em;
}

.location {
  font-size: 0.9rem;
  color: #a1a1a6;
}

/* === CTA BUTTON === */
.cta-btn {
  margin-top: 8px;
  display: inline-block;
  background-color: #1d1d1f;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #3a3a3c;
  transform: translateY(-2px);
}

/* === SECTIONS === */
.section {
  padding: 96px 24px;
}

.section.alt {
  background-color: #f5f5f7;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: #1d1d1f;
}

p {
  color: #3a3a3c;
  margin-bottom: 16px;
}

/* === SKILLS GRID === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.skill-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.skill-card p {
  font-size: 0.875rem;
  color: #6e6e73;
  margin: 0;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e5ea;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d1d1f;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #1d1d1f;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1a6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.company {
  font-size: 0.875rem;
  color: #6e6e73;
  font-style: italic;
  margin-bottom: 10px !important;
}

/* === EDUCATION GRID === */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.edu-card {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.edu-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.edu-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.edu-where {
  font-size: 0.8rem;
  color: #a1a1a6;
  margin-bottom: 10px !important;
  font-style: italic;
}

.edu-card p {
  font-size: 0.875rem;
  color: #6e6e73;
  margin-bottom: 16px;
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.in-corso {
  background-color: #e8f4fd;
  color: #0071e3;
}

.badge.certificato {
  background-color: #e6f9f0;
  color: #1a7f4b;
}

/* === CONTACT === */
.contact-container {
  text-align: center;
}

.contact-container h2 {
  margin-bottom: 16px;
}

.contact-container p {
  margin-bottom: 28px;
  color: #6e6e73;
}

/* === FOOTER === */
footer {
  background-color: #f5f5f7;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8rem;
  color: #a1a1a6;
  border-top: 1px solid #e5e5ea;
}

/* === ANIMATION === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .section {
    padding: 64px 20px;
  }

  .skills-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* === HERO BUTTONS === */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.cta-btn.outline {
  background-color: transparent;
  color: #1d1d1f;
  border: 1.5px solid #1d1d1f;
}

.cta-btn.outline:hover {
  background-color: #1d1d1f;
  color: #ffffff;
}