.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f5f0e6;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: block;
}

.logo-link img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.menu {
  font-size: 1.75rem;   /* circa 26px */
  cursor: pointer;
  line-height: 1;
  
  font-weight: 500;
  letter-spacing: 1px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #003153;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
  z-index: 999;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin: 20px 0;
}

.mobile-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Reset minimo */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base typography */
html {
  font-size: 16px;
}

body {
  font-family: 'Roboto'; /* , sans-serif; */
  color: #003153;
  background-color: #ffffff;
  line-height: 1.6;
}

main {
  padding-top: 80px;
}

/* Container centrale */
.container {
  width: 100%;
  padding: 0 40px;
}

/* Sezioni */
section {
  padding: 80px 0;
}

/* Desktop 
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}*/

/* Fonts */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Tipografico */
h1 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 2.0rem; /* 32px */
  font-weight: 500;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

p {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/*.p-lg {
  font-size: 1.1rem;
}*/

small {
  font-size: 0.85rem;
}

/* Styling Hero */
#hero {
  padding-top: 140px;
  padding-bottom: 140px;
}

#hero h1 {
  margin-bottom: 32px;
  max-width: 580px;
}

#hero h3 {
  font-weight: 400;
  margin-bottom: 32px;
}

#hero p {
  font-size: 1.25rem; /* 20px -> 1.25rem */
  font-weight: 400;
  margin-top: 64px;
  margin-bottom: 16px;
  max-width: 260px;
}

/* conversione in rem avendo impostato html{font-size: 16px;} 
   36px : 16px = 2.25rem; 20px : 16px = 1.25rem */

/* Hero su blu */
#hero {
  background-color: #003153;
  color: #ffffff;
  padding-top: 140px;
  padding-bottom: 140px;
}
#hero .container {
  padding-left: 48px;
  padding-right: 48px;
}

#positioning {
  background-color: #ffffff;
  color: #003153;
}

#positioning h2 {
  margin-bottom: 32px;
  max-width: 520px;
}

#positioning p {
  max-width: 560px;
}

#projects h2 {
  margin-bottom: 24px;
}

#projects p {
  max-width: 600px;
}

#projects {
  background-color: #f5f0e6;
}

#profile h2 {
  max-width: 260px;
  /* margin-bottom: 20px; */
}

.project {
  margin-top: 60px;
}

.project-image img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.project-content {
  margin-top: 32px;
  width: 74%;
  margin: 32px auto 0 auto;
}

.project-content h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  margin-bottom: 8px;
}

.project-content p {
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
/*  max-width: 560px; */
}

.project-section--beige {
  background-color: #f5f0e6;
}

.project-section--white {
  background-color: #ffffff;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-photo {
  text-align: center;
  margin-bottom: 8px;
}

.profile-photo img {
  width: 70%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.profile-name {
  text-align: left;
  font-size: 1.6rem;
  font-weight: 500;
  margin-left: 64px;
  margin-bottom: 0;
}

.profile-role {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.profile-name {
  width: 84%;
  margin: 0 auto 0 auto;
  transform: translateX(10px);
  font-size: 1.6rem;
  font-weight: 500;
  text-align: left;
}

.profile-role {
  width: 84%;
  margin: 0px auto 40px auto;
  transform: translateX(10px);
  font-size: 1.1rem;
  text-align: left;
}

.certification-badge {
  margin-top: 50px;
  text-align: center;
}

.certification-badge img {
  width: 190px;
  height: auto;
}

.contact-info {
  margin-top: 40px;
}

.contact-info a {
  text-decoration: none;
  color: #003153;
  font-weight: 500;
}

.contact-info a:hover {
  opacity: 0.7;
}

.contact-downloads {
  margin-top: 32px;
}

.btn-download {
  display: block;
  width: 74%;
  margin: 16px auto;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  border: 1px solid #003153;
  color: #003153;
  font-weight: 500;
  line-height: 1.4;
}

.btn-download:hover {
  background-color: #003153;
  color: #ffffff;
}

.site-footer {
  background-color: #003153;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  opacity: 0.7;
}

.footer-credits,
.footer-privacy,
.footer-copyright {
  display: block;
  margin-top: 20px;
}

.desktop-nav {
  display: none;
}



/* =========================
   DESKTOP LAYOUT
   ========================= */

@media (min-width: 1024px) {
 #hero h1 {
   margin-bottom: 32px;
   max-width: 460px;
}

 #hero p {
   font-size: 1.25rem; /* 20px -> 1.25rem */
   font-weight: 400;
   margin-top: 64px;
   margin-bottom: 16px;
   max-width: 460px;
}

 #positioning h2 {
   margin-bottom: 32px;
   max-width: 360px;
}

 #projects .project {
    margin-top: 60px;
}

 #approach h2 {
    max-width: 360px;
}

  /* Container più leggibile su desktop */

  .container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }


  /* Layout dei progetti */

  .project {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
  }


  /* Dimensione UI */

  .project-image img {
    width: 340px;
    height: auto;
    display: block;
  }


  /* Testo progetto */

  .project-content {
    margin: 0;
    width: auto;
    max-width: 520px;
  }


  /* Inversione layout */

  .project.reverse {
    direction: rtl;
  }

  .project.reverse .project-image,
  .project.reverse .project-content {
    direction: ltr;
  }

/* =========== PROFESSIONAL PROFILE =========== */

  /*.profile-name,
  .profile-role {
	max-width: 900px;
    margin-left: min(610px, 45vw);
    transform: none;
  }*/
  
 /*.profile-header {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}*/

.profile-header {
  display: grid;
  grid-template-columns: 480px 420px; /* 1fr; */
  gap: 0px;
  align-items: center;
}

 .profile-photo img {
  max-width: 340px;
  height: auto;
  display: block;
}

 .profile-name {
  margin-top: 16px;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0;
  justify-self: start;
}

 .profile-role {
  margin-top: 4px;
  font-size: 1.2rem;
  opacity: 1;
  margin: 0;
  justify-self: start;
}

/* === END === PROFESSIONAL PROFILE === END === */

  .btn-download {
    width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }


/* MENU DESKTOP */
  .menu {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .desktop-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .desktop-nav a {
    text-decoration: none;
    color: #003153;
    font-weight: 500;
	font-size: 0.95rem;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .desktop-nav a:hover {
	  color: #78bebe;
    opacity: 0.7;
}

}