/* work-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/work-sans-v19-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/work-sans-v19-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/work-sans-v19-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/work-sans-v19-latin-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Work Sans", sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  text-align: center;
  padding: 20px;
  padding-top: 80px;
  /* Adatta in base all'altezza dell'header */
}

header {
  background-color: #fff;
  color: white;
  padding: 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  /* Centra il logo */
  align-items: center;
}

header img {
  max-width: 150px;
}

h2 {
  color: #7c7c7c;
}
.content {
  flex-grow: 1;
  max-width: 800px;
}

.image-container img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

footer {
  background-color: #fff;
  color: #858585;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  width: 70%;
  max-width: 500px;
  margin: 0 auto;
}

.footer-box-container {
  display: flex;
  justify-content: space-between;
  max-width: 75rem;
  /* Limita la larghezza complessiva dei box */
  width: 100%;
  flex-wrap: wrap;
  /* Permette ai box di andare a capo se lo spazio è insufficiente */
}

.footer-box {
  flex: 1;
  padding: 10px;
  text-align: left;
  background-color: #fff;
}

.footer-full-width {
  background-color: #fff;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
}

a {
  color: #1d59a2;
  text-decoration: none;
}

a:hover {
  color: #c7d952;
}

ul {
  list-style: none;
  padding: 0;
}

.legale li {
  padding-top: 0.5rem;
}

ul.legale {
  margin-left: 10rem;
}

.intuitus {
  color: #1b4ada;
}

/* effetto immagine */
.image-container img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 0.5s forwards ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* pagine legali */
.box-privacy {
  width: 70%;
  margin: 0 auto;
  color: #666;
  text-align: left;
}

.box-cookies {
  margin: 0 auto;
  color: #666;
  text-align: left;
}
.box-legal h2,
h3,
h4 {
  color: #c7d952;
}

.box-cookies h2,
h3,
h4 {
  color: #c7d952;
}

/* Media query per schermi più piccoli di 768px (tipico per smartphone) */
@media (max-width: 768px) {
  .footer-box-container {
    flex-direction: column;
    /* I box si dispongono in colonna */
    align-items: center;
    /* Centra i box */
  }

  .footer-box {
    width: 100%;
    /* Ogni box occupa tutta la larghezza */
    text-align: left;
  }

  ul.legale {
    margin-left: 0;
  }
}
