/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}


/* Main Nav */
.main-nav {
  background-color: #555;
  color: #fff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 50px;
  height: 30px;
  justify-content: space-between;
}

.bar {
  height: 4px;
  width: 100%;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Project Section */
.project-section {
  background-color: #d4dae4;
  /* padding: 3rem 1rem 1rem 1rem;*/
}

.project-section-white {
  background-color: #fff;
  padding: 1rem 1rem 1rem 1rem;
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.project-image {
  flex: 1 1 300px;
  height: 300px;
  background-color: #a8b0bd;
}

.project-text {
  flex: 1 1 300px;
}

.project-text h5 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-text h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-text p {
  margin-bottom: 10px;
}

.project-text button {
  padding: 10px 20px;
  border: 1px solid #777;
  background-color: #fff;
  cursor: pointer;
}

/* sezione home*/
.background-layer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 60vh;
  position: relative;
}

.image-box {
  background-color: #a4b3c6;
  width: 35%;
  height: auto;
  margin: 3rem 3rem 3rem 10%;
  z-index: 2;
  border-radius: 1rem;
}

.image-box-dettaglio {
  background-color: #a4b3c6;
  width: 35%;
  height: auto;
  margin: 3rem 3rem 3rem 0;
  z-index: 2;
  border-radius: 1rem;
}

.image-box-2 {
  background-color: #a4b3c6;
  width: 30%;
  height: 60%;
  margin: 0 3rem 3rem 3%;
  z-index: 2;
  border-radius: 1rem;
}

.image-box-2 img {
  width: -webkit-fill-available;
  border-radius: 1rem;
}

.content-box-2 {
  position: absolute;
  background-color: white;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  padding: 4% 3% 4% 3%;
  /*display: flex;*/
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;
  border: 1px solid #d4dae4;
  border-radius: 1rem;
}

.label {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 2rem;
}

.title a {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #444;
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-color: #0099ff;
  text-underline-offset: 6px;
  line-height: 1.3rem;
}

.title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #444;
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-color: #0099ff;
  line-height: 1.3rem;
}


.description {
  font-size: 1rem;
  line-height: 1.2rem;
  color: #444;
  margin: 2rem 0;
  line-height: 1.6;
}

.button {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  align-self: flex-start;
  font-size: .9rem;
  text-transform: uppercase;
  padding: 10px 25px;
  background-color: #6c819d;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #5a6d88;
}

button,
.button .label-1 {
  font-size: 1.3rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-decoration: none;
}

button,
.button .label-2 {
  font-size: .8rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-transform: capitalize;
}

.button:hover {
  background-color: #5a6d88;
}

.button-blu {
  align-self: flex-start;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  padding: 14px 28px;
  background-color: #788AA8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-blu:hover {
  background-color: #5a6d88;
}

.content-box {
  position: absolute;
  background-color: white;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  padding: 5rem 3% 5rem 12%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 1em;
}

@media (max-width: 600px) {
  .content-box-2 {
    display: inline-block;
    background-color: white;
    transform: translateY(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #d4dae4;
    border-radius: 1rem;
    position: relative;
    right: auto;
    top: auto;
    width: 90%;
    margin: 0 5%;
  }

  .image-box-2 {
    background-color: #a4b3c6;
    display: contents;
    margin: 0 0 0 1rem;
    z-index: 2;
    border-radius: 0;
  }

  .image-box-2 img {
    width: -webkit-fill-available;
    border-radius: 0;
  }

  .content-box-3 {
    position: relative !important;
    background-color: white;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    top: -2rem !important;
    width: 90% !important;
    padding: 0;
    margin: 0 5%;
    /*display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;*/
    border: 0;
    border-radius: 1rem;
  }

  .image-box-3 {
    background-color: #a4b3c6;
    display: contents;
    margin: 0 0 0 1rem;
    z-index: 2;
  }

  .image-box-3 img {
    width: -webkit-fill-available;
    border-radius: 1rem;
  }

  button,
  .button .label-1 {
    font-size: 1.3rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }

  button,
  .button .label-2 {
    font-size: .8rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-transform: capitalize;
  }

  .background-layer {
    display: inline-block;
    width: 100%;
    padding: 0;
  }

  .project-section-white {
    background-color: #fff;
    padding: 1rem 0;
  }

  .content-box {
    position: relative;
    background-color: white;
    right: 0px;
    top: 5rem;
    /*transform: translateY(-50%);*/
    width: 90%;
    margin: 0 5%;
    padding: 1rem;
    display: block;
    /* flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;*/
    border-radius: .5rem;
  }

  .image-box {
    width: 90%;
    object-fit: cover;
    margin: 2rem 5%;
  }

  .description {
    font-size: 1rem;
    line-height: 1.2rem;
    color: #444;
    margin: 1rem 0;
  }


}

/* Press Section */
.press-section {
  padding: .5rem 1.3rem;
  text-align: center;
}

.press-section h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-transform: uppercase;
}

.press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /*gap: 20px;*/
}

.press-card {
  flex: 1 1 250px;
  border-left: 1px solid #2c3e50;
  padding: 0 2rem;
  text-align: left;
}

.press-card:first-child {
  border-left: none;
}

.press-image {
  height: auto;
  width: 100%;
  background-color: #a8b0bd;
  margin-bottom: 2rem;
  border-radius: .5rem;
}

.press-card a {
  text-decoration: none;
}

.press-card a h4 {
  text-decoration: none;
  color: #1e1e1e;
  font-size: 1.2rem;
  line-height: 1.4rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  margin-bottom: 1rem;
}

.press-card a:hover h4 {
  text-decoration: none;
  color: #2f435e;
}

.press-card p {
  font-size: 14px;
}

.see-all {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  margin-top: 3rem;
  padding: .5rem 2rem;
  border: 1px solid #788AA8;
  color: #788AA8;
  background-color: #fff;
  cursor: pointer;
  border-radius: 0.5rem;
  text-transform: uppercase;
}

.see-all:hover {
  background-color: #788AA8;
  border: 1px solid #788AA8;
  color: #fff;
}


/* Large Text Section */
.large-text-section {
  background-color: #d4dae4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
}

.large-text-left {
  flex: 1 1 300px;
  text-align: right;
}

.large-text-left h2 {
  font-size: 24px;
  font-weight: bold;
  border-right: 1px solid #2c3e50;
  padding-right: 20px;
}

.large-text-right {
  flex: 2 1 400px;
  text-align: left;
}


/* Responsive Styles */
@media (max-width: 600px) {
  .see-all {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: .5rem 2rem;
    border: 1px solid #788AA8;
    color: #788AA8;
    background-color: #fff;
    cursor: pointer;
    border-radius: 0.5rem;
    text-transform: uppercase;
  }

  .large-text-left {
    flex: 1 1 100px;
    text-align: right;
  }

  .large-text-left h2 {
    font-size: 1.3rem;
    font-weight: bold;
    border-right: 1px solid #2c3e50;
    padding-right: 1rem;
  }

  .large-text-right {
    flex: 2 1 100px;
    text-align: left;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #555;
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .top-menu {
    display: none;
  }

  .large-text-left h2 {
    border-right: none;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    text-align: center;
  }

  .large-text-section {
    flex-direction: column;
  }

  .press-card {
    flex: 1 1 250px;
    border-bottom: 1px solid #2c3e50;
    border-left: none;
    padding: 1rem 0;
  }

  .press-card:last-child {
    border-bottom: none;
  }

  document-container {
    display: grid;
  }
}

.document-container {
  display: grid;
}

/* Pagina generale */
.briciola {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: .8rem;
  font-weight: 300;
}

.briciola a {
  text-decoration: none;
  color: #484646;
  margin-right: 10px;
}

.title-section {
  text-align: center;
  padding: 30px 20px 20px;
}

.title-section h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.title-section p {
  margin-top: 2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #e9edf4;
  padding: 15px 10px;
}

.nav-bar a {
  text-decoration: none;
  color: #35475a;
  font-size: .9rem;
  font-weight: 200;
  text-align: center;
  line-height: 1.2rem;
  transition: background-color 0.3s;
  border-right: 1px solid #000;
  padding: 0 1em;
}

.nav-bar a:last-child {
  border-right: none;
}

.nav-bar a:hover {
  font-weight: 400;
  color: #000;
}

.nav-bar a.active {
  font-weight: 600;
}

@media (max-width: 600px) {
  .briciola {
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: .8rem;
    font-weight: 300;
  }

  .title a {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    text-decoration: none;

    text-underline-offset: 6px;
    line-height: 1.3rem;
  }

  .title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    text-decoration: none;

    line-height: 1.3rem;
  }

  .title-section {
    text-align: center;
    padding: 0;
    margin: 0 0 1rem 0;
  }

  .title-section h1 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }

  .title-section p {
    margin: 1rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 200;
    font-size: .85rem;
    line-height: 1.2rem;
    max-width: 600px;
  }

  .nav-bar {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-bar a {
    width: 100%;
    border-bottom: 0;
    padding: .3rem 0;
    font-size: .85rem;
    border-bottom: 1px solid #9f9f9f;
    border-right: 0;
  }
}

/**/

.container-page {
  max-width: 80%;
  margin: 2rem auto;
}

.container-page-staff {
  max-width: 100%;
  padding: 4rem auto;
  margin: 2rem auto;
  justify-content: center;
  background-color: #F1F3F6;
}

.container-page-lista {
  max-width: 100%;
  padding: 4rem 10%;
  margin: 2rem auto;
  background-color: #F1F3F6;
}

.container-page-testo {
  max-width: 100%;
  padding: 4rem 10%;
  margin: 2rem auto;
  background-color: #F1F3F6;
}

.container-page-testo p {
  color: #3F4F69;
  text-align: justify;
}

h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #444;
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-color: #0099ff;
  line-height: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 1rem;
}

hr {
  border: none;
  height: 5px;
  background-color: #f2f2f2;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.button-download {
  display: inline-block;
  align-items: center;
  padding: .5rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  color: #3F4F69;
  border: 1px solid #3F4F69;
  border-radius: .5rem;
  transition: background-color 0.3s;
}

.button-download:hover {
  border: 1px solid #AAB6C9;
  color: #000;
}

.button-download svg {
  margin-left: 8px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .container-page-staff {
    max-width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    background-color: #F1F3F6;
  }

  .container-page {
    max-width: 100%;
    display: block;
    margin: .5rem auto;
    padding: 1rem;
    background-color: #F1F3F6;

  }

  .container-page-lista {
    max-width: 100%;
    padding: 1.3rem 2rem;
    margin: 1rem auto;
    background-color: #F1F3F6;
  }

  .container-page p {
    font-size: .85rem;
  }

  h1 {
    font-size: 24px;
  }

  .button-download {
    font-size: 13px;
    padding: 10px 16px;
  }

  h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.4rem;
    line-height: 1.4rem;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    text-decoration: none;
    text-decoration-color: #0099ff;
    margin-bottom: 1rem;
    margin-top: 1.4rem;
  }

  h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0;
  }
}

/* Elenco documenti */

h3.subtitolo-blocco {
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-bottom: 2rem;
  display: inline-block;
}

h3.subtitolo-blocco-2 {
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
}

.search-button {
  float: right;
  background-color: #AAB6C9;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.document-link {
  display: inline-block;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #cfd8e2;
  padding: 20px 0;
}

.document-link-item {
  display: inline-block;
  width: 80%;
  flex: 3 1 500px;
  font-weight: bold;
  font-size: 15px;
  color: #2c3e50;
}

/*.document-container {
  display:inline-grid;
  width: 100%;
  }*/

.document {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cfd8e2;
  padding: 20px 0;
}

.document-row {
  display: flex;
  width: 100%;
}

.document-date {
  flex: 1 1 150px;
  display: inline-block;
  color: #6c7a89;
  font-size: 14px;
}

.document-text {
  flex: 3 1 500px;
  font-weight: bold;
  font-size: 15px;
  color: #2c3e50;
}

.document-button {

  flex: 1 1 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3F4F69;
  color: #3c5370;
  border-radius: .5rem;
  padding: .5rem 1rem;
  margin-left: 1rem;
  background-color: white;
  font-size: .8rem;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  height: max-content;
}

.document-button {
  background-color: #AAB6C9;
  color: #fff;
}

.download-button {
  flex: 1 1 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3F4F69;
  color: #3c5370;
  border-radius: .5rem;
  padding: .5rem 1rem;
  margin-left: 1rem;
  background-color: white;
  font-size: .8rem;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  height: max-content;
}

.download-button:hover {
  background-color: #AAB6C9;
  color: #fff;
}

/*
    .document-date {
      flex: 1 1 150px;
      color: #6c7a89;
      font-size: 14px;
    }

    .document-text {
      flex: 3 1 500px;
      font-weight: bold;
      font-size: 15px;
      color: #2c3e50;
    }

    .download-button {
      flex: 1 1 200px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #3F4F69;
      color: #3c5370;
      border-radius: .5rem;
      padding: .5rem 1rem;
      margin-left:1rem;
      background-color: white;
      font-size: .85rem;
      font-weight: 300;
      cursor: pointer;
      text-decoration: none;
    }
    .download-button:hover {
      border: 1px solid #3F4F69;
      color: #fff;
      border-radius: .5rem;
      padding: .5rem 1rem;
      margin-left:1rem;
      background-color: #3F4F69;
    }
*/

.download-button svg {
  margin-left: 6px;
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination button {
  padding: 10px 14px;
  margin: 0 4px;
  border: 1px solid #AAB6C9;
  background-color: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: #6884a3;
}

.pagination .active {
  background-color: #AAB6C9;
  color: white;
}

.pagination a {
  text-decoration: none;
  margin: 0 10px;
  font-size: .85rem;
  color: #6c7a89;
}

.pagination a:hover {
  margin: 0 10px;
  font-size: .8rem;
  color: #6c7a89;
}

@media (max-width: 600px) {
  .document {
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cfd8e2;
    padding: .5rem 0;
  }

  .document-row {
    display: block;
    width: 100%;
  }

  .search-button {
    float: right;
    width: 5rem;
    margin-top: 0;
  }

  .document-date,
  .document-text {
    width: 100%;
    margin-bottom: 10px;
  }

  /*
  .document-date,
  ..download-button{
    width: 100%;
    margin-bottom: 10px;
  }*/


  .pagination button {
    margin: 4px 2px;
  }

  .download-button {
    align-items: center;
    display: block;
    justify-content: center;
    border: 1px solid #3F4F69;
    color: #3c5370;
    border-radius: .5rem;
    padding: .5rem;
    background-color: white;
    font-size: .75rem;
    font-weight: 300;
    cursor: pointer;
    text-decoration: none;
    height: max-content;
    margin-bottom: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
  }

  .download-button:last-child {
    margin-bottom: 0;
  }

  .document-container {
    display: block;
    width: 100%;
  }
}

/* Ricerca avanzata */
.divider {
  height: 40px;
  background-color: #e3e8f0;
}

.filter-box {
  max-width: 90%;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 15px;
  display: flex;
  flex-wrap: nowrap !important;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-section label {
  font-weight: bold;
  font-size: 0.75rem;
}

.filter-label {
  display: flex;
  font-family: Georgia, 'Times New Roman', Times, serif;
  flex-direction: column;
  gap: 1.5rem;
}

.input-with {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with input {
  padding: 0.5rem;
  border: 1px solid #7a91b3;
  border-radius: 6px;
  font-size: 0.9rem;
  flex: 1;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with-icon input {
  padding: 0.5rem;
  border: 1px solid #7a91b3;
  border-radius: 6px;
  font-size: 0.9rem;
  flex: 1;
}

.calendar-icon {
  color: #7a91b3;
  text-decoration: none;
  font-size: 1.2rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.filter-btn {
  background-color: #7a91b3;
  color: white;
}

.reset-btn {
  background-color: white;
  border: 1px solid #7a91b3;
  color: #7a91b3;
}

@media (max-width: 600px) {
  .filter-box {
    /* flex-direction: row; */
    flex-wrap: wrap;
    /* justify-content: space-between; */
    /* align-items: flex-end; */
    padding: 1rem;
    gap: .5rem;
  }

  .button-group {
    width: 100%;
    justify-content: flex-end;
  }

  .filter-section label {
    font-weight: 600;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {

  .filter-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }

  .filter-section {
    width: 30%;
  }

  .button-group {
    width: 100%;
    justify-content: flex-end;
  }
}

/* STILE CARD STAFF */


.staff-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px 60px;
  gap: 20px;
}

.card {
  padding: 20px;
  width: 300px;
  box-sizing: border-box;
}

.card-inner {
  padding: 1rem 0;
  width: 290px;
  height: 12rem;
  display: block;
  box-sizing: border-box;
  border-right: 1px solid #aaa;
}

.card .card-inner:last-child {
  border-right: red;
}

.photo {
  width: 100%;
  height: 150px;
  background-color: #c4cad4;
  margin-bottom: 20px;
  background-image: url("images/icona-staff.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

}

.photo img {
  width: 100%;
  height: 150px;
  background-color: #c4cad4;
  margin-bottom: 20px;
  background-image: url("images/icona-staff.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

}

.role {
  font-family: 'Georgia', serif;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
}

.name {
  font-family: 'Georgia', serif;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.tel {
  font-size: 14px;
  margin-bottom: 15px;
}

.email {
  /*display: inline-block;*/
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 6px;
  font-size: 13px;
  background-color: #f9f9f9;
  text-decoration: none;
  color: #000;
}

@media (max-width: 600px) {
  .staff-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid #aaa;
    width: 90%;
  }

  .card:last-child {
    border-bottom: none;
  }
}

.content-box-3 {
  position: absolute;
  background-color: white;
  right: 10%;
  top: 56%;
  transform: translateY(-50%);
  width: 45%;
  padding: 3% 3% 3% 3%;
  /*display: flex;*/
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;
  border: 1px solid #d4dae4;
  border-radius: 1rem;
}

.image-box-3 {
  background-color: #a4b3c6;
  width: 50%;
  height: 50%;
  margin: 0 3rem 3rem 3%;
  z-index: 2;
  border-radius: 1rem;
}

.image-box-3 img {
  width: -webkit-fill-available;
  border-radius: .5rem;
}

/* Mappa Section */
.mappa-section {
  background-color: #d4dae4;
}

.section {
  flex: 1 1 200px;
  margin: 5px;
}

.title {
  font-weight: bold;
  font-size: 1.2em;
}

.subtitle {
  text-transform: uppercase;
  font-size: 0.9em;
  color: #333;
}

.contact p {
  margin: 2px 0;
}

/* STILE CONTATTI UFFICI */
.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.info-block {
  flex: 1 1 200px;
  min-width: 200px;
}

.info-block h3 {
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 6px;
}

.info-block p {
  margin: 0;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .info-container {
    flex-direction: column;
    gap: 0;
  }

  .info-block {
    display: contents;
  }

  .info-block h3 {
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 6px;
  }

  .info-block p {
    margin: 0 0 1rem 0;
    font-size: .85rem;
    line-height: 1.2rem;
  }

  ul li {
    margin: 0rem;
    font-size: .85rem;
    line-height: 1.2rem;
  }

}


/* CONTATTI */

.container-contatti {
  margin: 0 auto;
  background: white;
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid #ccc;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}


input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #6884a3;
  border-radius: 6px;
  resize: vertical;
}

textarea {
  min-height: 100px;
  grid-column: span 2;
}

.checkbox-group {
  padding: 1rem 0;
}

.button-wrapper {
  text-align: center;
  margin-top: 20px;
}



@media (max-width: 600px) {
  textarea {
    grid-column: span 1;
  }

  .label {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: .7rem;
    font-weight: 500;
    color: #444;
    margin-bottom: .5rem;
    margin-top: 1rem;
  }

  input[type="text"],
  textarea {
    width: 80%;
    display: block;
    padding: .5rem;
    border: 1px solid #6884a3;
    border-radius: 6px;
    resize: vertical;
  }

  .container-contatti {
    margin: 0 auto;
    background: white;
    border-radius: .5rem;
    padding: .5rem;
    border: 1px solid #ccc;
  }

  .form-grid {
    display: block;

    gap: 20px;
    margin-bottom: 20px;
  }

  .form-grid div label {
    font-size: .85rem;
  }

  label {
    font-size: .85rem;
  }
}

/* FAQ */
.faq-container {
  margin: 0 auto;
  background: white;
  border-radius: 6px;
  padding: 0;
}

.faq-header {
  background-color: #f0f1f3;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item {
  border-bottom: 1px solid #d3d3d3;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 20px;
  background-color: #f4f6f8;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  border: 1px solid #6884a3;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 14px;
  color: #6884a3;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .faq-icon {
    align-self: flex-end;
  }
}

/* LINK */
.link-wrapper {
  padding: 20px 0;
  border-bottom: 1px solid #c7d0db;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.link-title {
  font-weight: bold;
  color: #2f435e;
  font-size: 14px;
}

.link-button {
  padding: 6px 14px;
  border: 1px solid #2f435e;
  background-color: transparent;
  color: #2f435e;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.link-button:hover {
  background-color: #e3e8ef;
}

.link-button svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .link-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .link-button {
    align-self: flex-end;
  }

  .pagination {
    display: inline-block !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
  }
}

.images-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.image-item img {
  width: 300px;
  height: auto;
  display: block;
}



/*css per liste */
.pagination {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button.active {
  background-color: #AAB6C9;
  color: #fff;
  font-weight: bold;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.nextBtn {
  color: #6c7a89;
  border: none;
  background: none;
}

.pagination button.nextBtn.active {
  font-weight: bold;
}

.pagination button.nextBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.prevBtn {
  color: #6c7a89;
  border: none;
  background: none;
}

.pagination button.prevBtn.active {
  font-weight: bold;
}

.pagination button.prevBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sticky {
  position: sticky;
  top: 139px;
  /* altezza header */
  z-index: 1000;
}

:root {
  /* fallback di sicurezza */
  --scroll-offset: 220px;
  --desktop-header: 139px;
  --mobile-header: 146px;
  /* come richiesto */
}

/* Applica l’offset a TUTTI gli scroll verso anchor */
html {
  scroll-padding-top: var(--scroll-offset);
}


@media (max-width: 600px) {
  .sticky {
    position: sticky;
    top: 125px;
    z-index: 100;
    background-color: #e9edf4;
    height: auto;
    background-color: #e9edf4;
    padding: 0;
  }
}


/* aggiungi spazio sopra ai blocchi */
.container-page-staff {
  scroll-margin-top: calc(139px + 68px);
  /* header + sticky */
}

/* aggiungi spazio sopra ai blocchi */
.container-page-lista {
  scroll-margin-top: calc(139px + 68px);
  /* header + sticky */
}

/* aggiungi spazio sopra ai blocchi */
.container-page-testo {
  scroll-margin-top: calc(139px + 68px);
  /* header + sticky */
}

/* aggiungi spazio sopra ai blocchi */
.container-page-testo p {
  scroll-margin-top: calc(139px + 68px);
  /* header + sticky */
}