/* =========================================================
   JACOPO MESSINA — SITE STYLE
   Clean layout based on the supplied reference image.
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  height: 30px;
  background: #ffffff;
  border-bottom: 1px solid #d5d5d5;
}

.main-nav {
  width: 100%;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-links,
.contact-links {
  display: flex;
  height: 30px;
  align-items: center;
}

.nav-links {
  justify-content: space-around;
}

.contact-links {
  justify-content: flex-end;
}

.nav-links a,
.contact-links a {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid #d0d0d0;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-links a:last-child {
  border-right: 1px solid #d0d0d0;
}

.site-title {
   font-family: Glacial Indifference, Helvetica, sans-serif
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: #3c3b3a;
  color: #ffffff;
}

.hero-inner {
  min-height: 200px;
  max-width: 480px;
  margin: 0 auto;
  padding: 54px 18px 45px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.profile-image {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #dddddd;
  box-shadow: 0 0 0 5px #777777;
}

.hero-copy {
  flex: 1;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
}

.hero-copy p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.35;
}

.button {
  display: inline-block;
  padding: 8px 14px;
  background: #2875cf;
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
}

.button:hover {
  background: #1f63b4;
  text-decoration: none;
}


/* =========================================================
   GENERIC SECTIONS
   ========================================================= */

.section {
  width: min(480px, calc(100% - 64px));
  margin: 0 auto;
}

.section h2 {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
}

.intro-section {
  padding-top: 2px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 22px;
}

.profile-small {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  margin-left: 5px;
}

.intro-grid p,
.intro-text,
.bottom-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.wide-image {
  width: 100%;
  margin: 12px 0 12px;
}

.wide-image img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.intro-text {
  text-align: center;
}


/* =========================================================
   WORK
   ========================================================= */

.work-section {
  padding-top: 28px;
}

.work-section > h2 {
  margin-bottom: 8px;
}

.work-category {
  margin-bottom: 20px;
}

.work-category h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}

.card {
  display: block;
  min-width: 0;
}

.card img {
  width: 100%;
  aspect-ratio: 0.68;
  object-fit: cover;
}

.cards-five {
  grid-template-columns: repeat(5, 1fr);
  padding-right: 0;
}

.more-link {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 5px;
}


/* =========================================================
   TIMELINE / COMMERCIALS AND OTHERS
   ========================================================= */

.timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 20px;
}

.timeline li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 2px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.1;
}

.timeline li::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #286fc2;
  left: -20px;
  top: 3px;
}

.timeline strong {
  font-weight: 700;
}

.timeline span {
  font-weight: 400;
}


/* =========================================================
   BOTTOM SECTION
   ========================================================= */

.bottom-section {
  padding-top: 8px;
  padding-bottom: 35px;
}

.bottom-section h2 {
  margin-bottom: 18px;
}

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.lists ul {
  margin: 0;
  padding-left: 17px;
  font-size: 10px;
  line-height: 1.25;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: min(480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 15px 0 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 20px;
}

.footer-contact {
  display: flex;
  gap: 10px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-item:hover {
  text-decoration: none;
}

.icon {
  font-size: 15px;
  line-height: 1;
}

.footer-item strong,
.footer-item small {
  display: block;
}

.footer-item strong {
  font-size: 7px;
  line-height: 1.1;
}

.footer-item small {
  font-size: 6px;
  line-height: 1.1;
}

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

.footer-nav a {
  font-size: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .main-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .site-title {
    font-size: 18px;
    padding-left: 12px;
  }

  .contact-links {
    justify-content: flex-end;
  }

  .contact-links a {
    padding: 0 8px;
    font-size: 7px;
  }

  .hero-inner {
    padding: 45px 22px 40px;
    gap: 24px;
  }

  .profile-image {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .hero-copy h1 {
    font-size: 16px;
  }

  .hero-copy p {
    font-size: 13px;
  }
}


@media (max-width: 480px) {

  .section,
  .site-footer {
    width: calc(100% - 42px);
  }

  .hero-inner {
    min-height: 190px;
    padding: 38px 20px;
    gap: 20px;
  }

  .profile-image {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .intro-grid {
    grid-template-columns: 85px 1fr;
    gap: 14px;
  }

  .profile-small {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .cards {
    gap: 2px;
  }

  .cards-five {
    grid-template-columns: repeat(5, 1fr);
  }

  .lists {
    gap: 10px;
  }
}


@media (max-width: 360px) {

  .site-title {
    font-size: 16px;
  }

  .contact-links a {
    padding: 0 5px;
    font-size: 6px;
  }

  .hero-inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 12px;
  }

  .profile-image {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .hero-copy p {
    font-size: 11px;
  }
}
