/*
 Theme Name:     DiviChild
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
/* =Theme customization starts here
------------------------------------------------------- */
/*#region breakpoints*/
/* 0, 640px */
/* 640px, 981px */
/* 980px, 1100px */
/* 1100px, 1405px */
/* 1405px */
/*#endregion */
@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(144, 72, 154, 0.8);
  }
  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
  }
  100% {
    -webkit-box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95) rotate(270deg);
    -moz-box-shadow: 0 0 0 0 rgba(144, 72, 154, 0.8);
    box-shadow: 0 0 0 0 rgba(144, 72, 154, 0.8);
  }
  70% {
    transform: scale(1) rotate(270deg);
    -moz-box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
    box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
  }
  100% {
    transform: scale(0.95) rotate(270deg);
    -moz-box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
    box-shadow: 0 0 0 10px rgba(144, 72, 154, 0.2);
  }
}

#top-menu .sub-menu li.highlights a {
  color: #00939f;
  font-weight: bold;
}

@media only screen and (min-width: 61.25em) {
  #top-menu .sub-menu {
    padding: 0;
    width: 60vw;
    left: -35vw;
    display: flex;
    flex-flow: row wrap;
    column-gap: 20px;
  }
}

#top-menu .sub-menu li {
  flex: 1 calc(50% - 20px);
  min-width: 300px;
  align-items: center;
  display: flex;
  min-height: 60px;
  border-bottom: dotted 0.5px;
}

#top-menu .sub-menu li a {
  width: auto;
  text-transform: none;
}

.wpcf7 input,
.wpcf7 textarea {
  padding: 10px;
  width: 100%;
  margin: 10px;
}

.wpcf7 input[type=checkbox],
.wpcf7 textarea[type=checkbox] {
  width: auto;
}

.wpcf7 input[type=submit],
.wpcf7 textarea[type=submit] {
  border: none;
  color: #fff;
  width: auto;
  background: #00939f;
  padding: 10px 20px;
}

.wpcf7 input[type=submit]:hover,
.wpcf7 textarea[type=submit]:hover {
  filter: brightness(1.2);
}

.servizi {
  display: flex;
  flex-flow: row wrap;
  gap: 30px;
}

.servizi .servizio {
  background: #F5F5F5;
  padding: 20px;
  border-radius: 30px;
  flex: 1 calc(100% / 4 - 30px);
  position: relative;
}

@media only screen and (max-width: 80em) {
  .servizi .servizio {
    flex: 1 calc(100% / 2 - 30px);
  }
}

.servizi .servizio:hover {
  background: #fafafa;
}

.servizi .servizio a {
  display: block;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.servizi .servizio img {
  margin: auto;
  display: block;
}

.servizi .servizio h2 {
  text-align: center;
  margin-top: 20px;
}

.staff-contenitore {
  display: flex;
  flex-flow: row wrap;
  gap: 30px;
  justify-content: center;
}

.staff-contenitore .staff-item {
  flex: 1 calc(30% - 30px);
  flex-grow: 0;
  position: relative;
  aspect-ratio: 0.8;
  border-radius: 30px;
  overflow: hidden;
  padding: 30px;
}

@media only screen and (max-width: 61.25em) {
  .staff-contenitore .staff-item {
    flex: 1 calc(50% - 30px);
  }
}

@media only screen and (max-width: 48em) {
  .staff-contenitore .staff-item {
    flex: 1 100%;
  }
}

.staff-contenitore .staff-item a {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.staff-contenitore .staff-item:hover {
  filter: brightness(1.1);
}

.staff-contenitore .staff-item img {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-contenitore .staff-item h2 {
  position: absolute;
  bottom: 30px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  left: 5%;
  width: 90%;
  font-size: 16px;
  text-transform: uppercase;
}

@media only screen and (max-width: 61.25em) {
  .reverse {
    display: flex;
    flex-direction: column-reverse;
  }
  .reverse .et_pb_module.et_pb_text {
    margin-top: 30px;
  }
}

.staff-descrizione .staff-item {
  display: flex;
  flex-flow: row;
  gap: 30px;
  margin-bottom: 70px;
}

@media only screen and (max-width: 61.25em) {
  .staff-descrizione .staff-item {
    flex-flow: column;
  }
  .staff-descrizione .staff-item.reverse {
    flex-flow: column-reverse;
  }
}

.staff-descrizione .staff-item .column-description h2 {
  color: #000;
  font-weight: bold;
  font-size: 20px;
}

.staff-descrizione .staff-item .column-description p {
  font-weight: 300;
}

.staff-descrizione .staff-item .column-description,
.staff-descrizione .staff-item .column-thumbnail {
  flex: 1;
}

.staff-descrizione .staff-item .column-thumbnail {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.staff-descrizione .staff-item .column-thumbnail img {
  border-radius: 30px;
  width: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 61.25em) {
  .et_pb_column_3 {
    background-size: auto 95%;
    background-position: bottom left 125%;
  }
}
