:root {
  --verdi-color: #e30045;
}

* {
  margin: 0;
}

p {
  margin-bottom: 20px;
}

body {
  font-family: "DejaVu Sans", helvetica, arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: relative;
  background-color: var(--verdi-color);
  /* Changed background color */
  color: #fff;
  /* Changed text color */
  padding: 30px 20px;
  /* Adjusted padding */
  text-align: center;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.1);
  /* Added inner shadow at the bottom */
  display: flex;
  /* Add flexbox layout */
  flex-direction: column;
  /* Stack elements vertically */
  justify-content: center;
  /* Center content vertically */
}

header h1 {
  margin: 0;
  /* Remove default margin */
  font-size: 35px;
  /* Adjusted font size */
  font-weight: bold;
}

header .subtitle {
  font-size: 20px;
  /* Adjusted font size for subtitle */
  font-weight: lighter;
  /* Removed bold */
}

header a {
  color: #fff;
  text-decoration: none;
}

header,
header .subtitle,
header .header-content {
  transition: 0.5s;
}

header:has(.subtitle_hidden) {
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

header .subtitle_hidden {
  margin-bottom: -25px;
}

.section-primary {
  background-color: #f2f2f2;
  padding: 80px 20px;
  /* Adjusted padding */
  margin-bottom: 30px;
  /* Adjusted margin */
  text-align: left;
  /* Align text left */
  padding-bottom: 80px;
  transition: padding 0.5s;
}

.section-primary:nth-child(2) {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.section-primary:nth-child(4) {
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
}

.section-primary h2 {
  margin-bottom: 20px;
  /* Adjusted margin */
  font-size: 32px;
  /* Increased font size */
  color: #333;
  /* Changed text color */
}

.section-primary h3,
h4,
h5 {
  margin-bottom: 20px;
  color: #333;
}

.section-primary p {
  font-size: 18px;
  /* Increased font size */
  color: #666;
  /* Changed text color */
  line-height: 1.6;
  /* Increased line height for better readability */
}

.section-primary .contact {
  text-align: center;
  padding-top: 20px;
}

.section-primary .contact h2 {
  margin: 10px 0 5px;
  font-size: 24px;
}

.section-primary .contact .fa {
  font-size: 60px;
  color: var(--verdi-color);
}

.section-primary .contact a {
  font-size: 18px;
  color: #666;
  text-decoration: none;
}

.section-primary .contact a:hover, footer a:hover {
  text-decoration: underline;
}

.section-secondary {
  background-color: #ffffff;
  padding-top: 50px;
  padding-bottom: 30px;
  /* Added padding to the section-secondary section */
}

section:last-of-type {
  padding-bottom: 110px;
  margin-bottom: -60px;
}

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

  /* Center content by default */
  padding-left: 40px;
  padding-right: 40px;
}

.section-secondary .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  
}

.team-member {
  margin: 0 0 30px;
  text-align: center;
  flex: 1 0 calc(25% - 20px);
  /* Adjusted flex value */
  max-width: calc(25% - 20px);
  /* Adjusted max-width */
  transition: 0.25s;
}

.team-member hr, .section-primary hr {
  margin: 20px auto;
  border: none;
  height: 1px;
  width: 50%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    var(--verdi-color),
    rgba(255, 255, 255, 0)
  );
}

.section-primary hr {
  width: 100%;
}

.team-member img {
  width: 200px;
  /* Increased image size */
  height: 200px;
  /* Increased image size */
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 20px;
  /* Added border radius */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  /* Added box shadow for elegant effect */
  border: 5px solid transparent;
  /* Added transparent border */
  background-clip: padding-box;
  /* Ensures the background doesn't extend beyond the border */
  background-image: linear-gradient(45deg, var(--verdi-color), #ff6347);
  /* Added gradient border */
}

.team-member h2 {
  margin: 10px 0 5px;
  /* Adjusted margin */
  font-size: 24px;
  /* Increased font size */
  color: #333;
  /* Changed text color */
}

.team-member h3 {
  margin: 5px 0;
  /* Adjusted margin */
  font-size: 18px;
  /* Increased font size */
  color: #666;
  /* Changed font family */
}

.team-member p {
  margin: 5px 0 10px;
  /* Adjusted margin */
  font-size: 16px;
  /* Increased font size */
  color: #777;
  /* Changed text color */
  line-height: 1.6;
}

footer {
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.3);
}

footer a {
  font-size: 18px;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
}

@media screen and (min-width: 600px) {
  .team-member {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media screen and (max-width: 1400px) {
  .team-member {
    flex: 1 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
  .section-primary {
    padding: 50px 20px;
  }
}

@media screen and (max-width: 900px) {
  .team-member {
    flex: 1 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
  .section-primary {
    transition: padding 0s;
  }
}

@media screen and (max-width: 600px) {
  * {
    margin: 0;
    transition: 0s;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-secondary .container {
    justify-content: center;
  }

  header {
    position: fixed;
    left: 0;
    right: 0;
  }

  header h1 {
    font-size: 28px;
  }

  section:first-of-type {
    padding-top: 150px;
  }

  .section-primary {
    padding-top: 30px;
    padding-bottom: 10px;
  }
  
  p {
    margin-bottom: 10px;
  }

  .section-primary h2 {
    font-size: 25px;
  }

  .section-primary hr {
    margin-bottom: 10px;
  }

  .team-member {
    flex: 1 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .team-member img {
    width: 300px;
    height: 300px;
  }
}