
/*CONTAINER PRINCIPALE DEI CONTATTI*/
.contactcontainer {
  margin: 80px auto;
  width: calc(92% - 64px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(360px, 1.6fr);
  grid-template-areas: "buttons photo map";
  gap: 32px;
  align-items: stretch;
  background: #F7F6F4;
  padding: 40px 32px;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18), 0 10px 10px rgba(0,0,0,0.16);
}
/*LINK CONTATTI*/
.linkcontatto{
  width: 110px;
  height: 110px;
  display: block;
}
/*CONTATTO*/
.contatto {
  height: 110px;
  width: 110px;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  border: 1px solid #E6E1D8;
}
.contatto:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px rgba(0,0,0,0.18);
}
/*DIV CHE DETERMINA LE SEZIONI DI CONTATTO*/
.contactList {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 20px;
  align-content: start;
  justify-items: center;
  cursor: pointer;
  align-self: center;
  grid-area: buttons;
}
#second{
  width: 100%;
  grid-area: map;
  display: block;
}
/*CONTETNITORE FOTO CONTATTI*/
.photoContact {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: auto;
  display: block;
  border-radius: 24px;
  background: url(../resources/SfondoContatti.JPG);
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18), 0 10px 10px rgba(0,0,0,0.16);
  align-self: center;
  grid-area: photo;
}
#map{
  width: 100%;
  height: 100%;
  min-height: 440px;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18), 0 10px 10px rgba(0,0,0,0.16);
}
/*FOTO CONTATTI*/
.imgcont {
  width: 48px;
  height: 48px;
  cursor: pointer;
}
/*RESPONSIVE STYLE LITTLE*/
@media only screen and (max-width: 600px) {
  .contactcontainer {
    width: calc(100% - 32px);
    grid-template-columns: 100%;
    grid-template-areas:
      "buttons"
      "map";
    gap: 24px;
    padding: 24px 16px;
    box-sizing: border-box;
  }
  .contactList{
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
  #second{
    width: 100%;
    grid-row: 2;
    align-self: stretch;
  }
  .photoContact{
    display: none;
  }

   #map{
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
    margin: auto;
  } 
}
/*RESPONSIVE STYLE BIG*/
@media only screen and (min-width: 600px) and (max-width: 1024px) {
  .contactcontainer{
    width: calc(94% - 64px);
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.4fr);
    grid-template-areas: "buttons map";
    gap: 28px;
  }
  .photoContact{
    display: none;
  }
  .contactList{
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
#second{
  width: 100%;
  align-self: stretch;
}
  #map{
    width: 100%;
    height: 100%;
    min-height: 440px;
  }
}
