/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* NEW */
body.archive .woocommerce-products-header .description {
  line-height: 1.3em;
  margin-bottom: 50px;
}

body.archive:not(.post-type-archive-product) .woocommerce-products-header .term-description {
  margin: 50px auto 0;
}

div.featuredCategories {
  display: block;
}

div.featuredCategories .featured,
div.featuredCategories .others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

div.featuredCategories .others {
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
}

div.featuredCategories a {
  position: relative;
  display: flex;
  overflow: hidden;
  align-content: center;
  flex-direction: column;
  justify-content: flex-end;
  -moz-transition: .3s;
  -webkit-transition: .3s;
  transition: .3s;
  text-decoration: none;
  --o-transition: .3s;
}

div.featuredCategories .featured a:before {
  display: inline-block;
  padding-bottom: 100%;
  content: ' ';
  vertical-align: top;
}

div.featuredCategories .featured a h4 {
  position: absolute;
  left: 50%;
  width: 100%;
  transform: translate(-50%);
}

div.featuredCategories .others a,
div.featuredCategories .others a h4 {
  height: 100%;
  color: #000000;
  background-color: #F4F4F4;
}

div.featuredCategories .others a h4 {
  padding: 20px 15px;
}

div.featuredCategories .others a:hover h4 {
  -moz-transition: .3s;
  -webkit-transition: .3s;
  transition: .3s;
  color: #FFFFFF;
  background-color: #005437;
  --o-transition: .3s;
}

div.featuredCategories .others a img {
  display: none;
}

div.featuredCategories a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -o-object-fit: cover;
  -o-object-position: center;
}

div.featuredCategories a h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1em;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  margin: 0;
  padding: 10px 15px;
  -moz-transition: height .3s;
  -webkit-transition: height .3s;
  transition: height .3s;
  text-align: center;
  text-transform: uppercase;
  color: white;
  background-color: rgba(0, 0, 0, .5);
  --o-transition: height .3s;
}

div.featuredCategories a:hover h4 {
  height: 100%;
  -moz-transition: height .3s;
  -webkit-transition: height .3s;
  transition: height .3s;
  --o-transition: height .3s;
}

@media (max-width: 969px) {
  div.featuredCategories .others {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  div.featuredCategories .featured {
    display: flex;
    flex-direction: column;
  }

  div.featuredCategories .others {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
  }
}

/* risolve il problema grafico di allineamento dei campi nel checkout */
form.woocommerce-checkout .form-row.form-row-wide {
  clear: both;
}
