/** Foglio di stile della pagina info.html **/

/** Importa i CSS per i menù smartphone, tablet e PC**/
@import "03_primo_menu_PC.css" screen and (min-width: 1024px);
/*PC*/
@import "03_primo_menu_smartphone.css" screen and (min-width: 320px) and (max-width: 1023.99px);
/*smartphone e tablet*/

/**Impostazioni generali della pagina **/
html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-size: medium;
  font-family: "Playfair Display", serif;
  /* font-family: 'EB Garamond', serif; */
  background-color: rgb(255, 255, 255);
}

/** Immagine sotto al menù, comprensiva di barrette separatrici **/
.header hr {
  width: 5rem;
  border-top: 1px solid rgb(20, 20, 59);
}

.immagine-principale {
  margin: 0 auto 1.5em auto;
  padding: 0;
  width: 100%;
  height: 20em;
  background-image: url(../immagini/contatti.jpg);
  background-size: cover;
  background-position-x: right;
  background-color: rgb(204, 198, 198);
}

/** Corpo della pagina **/

@media screen and (min-width: 1024px) {
  .pagina hr {
    width: 5rem;
    border-top: 1px solid rgb(20, 20, 59);
  }

  .pagina {
    margin: 0 20vw;
    font-family: 'EB Garamond', serif;
    font-size: 1.2em;
    text-align: justify;
  }

  .pagina h1,
  .pagina h2 {
    color: rgb(20, 20, 59);
    text-align: center;
  }
}

@media screen and (min-width: 320px) and (max-width: 1023.99px) {
  .pagina hr {
    width: 5rem;
    border-top: 1px solid rgb(20, 20, 59);
  }

  .pagina {
    margin: 0 7.5vw;
    font-family: 'EB Garamond', serif;
    font-size: 1.2em;
    text-align: justify;
  }

  .pagina h1 {
    color: rgb(20, 20, 59);
    text-align: center;
  }
}

/** BOX dei professionisti**/

@media screen and (min-width: 1024px) {
  .professionisti {
    margin: auto auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 20em 20em;
    gap: 2em;
  }

  .professionisti div img {
    height: auto;
    width: 20em;
    object-fit: contain;
  }

  .nome {
    text-align: center;
  }

  .linkmail,
  .linkmail:hover,
  .linkmail:active {
    color: rgb(20, 20, 59);
  }

  .biografia {
    color: rgb(20, 20, 59);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85em;
    margin: 0;
  }

  .mg {
    margin: 2em auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 20em;
    gap: 2em;
  }

  .mg div img {
    height: auto;
    width: 20em;
    object-fit: contain;
  }

}



@media screen and (min-width: 798px) and (max-width: 1023.99px) {
  .professionisti {
    margin: auto auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 35vw 35vw;
    gap: 1em;
  }

  .professionisti div img {
    height: auto;
    width: 35vw;
    object-fit: contain;
  }

  .mg {
    margin: 1em auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 35vw;
    gap: 1em;
  }

  .mg div img {
    height: auto;
    width: 35vw;
    object-fit: contain;
  }

  .nome {
    text-align: center;
  }

  .linkmail,
  .linkmail:hover,
  .linkmail:active {
    color: rgb(20, 20, 59);
  }

  .biografia {
    color: rgb(20, 20, 59);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85em;
    margin: 0;
  }
}

@media screen and (min-width: 320px) and (max-width: 797.99px) {
  .professionisti {
    margin: auto auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 70vw;
    gap: 1em;
  }

  .professionisti div img {
    height: auto;
    width: 70vw;
    object-fit: contain;
  }

  .mg {
    margin: 1em auto auto auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 70vw;
    gap: 1em;
  }

  .mg div img {
    height: auto;
    width: 70vw;
    object-fit: contain;
  }

  .nome {
    text-align: center;
  }

  .linkmail,
  .linkmail:hover,
  .linkmail:active {
    color: rgb(20, 20, 59);
  }

  .biografia {
    color: rgb(20, 20, 59);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85em;
    margin: 0;
  }
}
