/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.12
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
:root {
  --primary: #b50501;
  --primary-lighter: #ff0000;
  --primary-light: #d80000;
  --primary-darker: #890000;
  --primary-dark: #560000;
  --secondary: #6a6a69;
  --secondary-lighter: #969696;
  --secondary-light: #bababa;
  --secondary-darker: #424242;
  --secondary-dark: #1c1c1c;
  --container-default-padding-right: 22px;
  --container-default-padding-left: 22px;
}
* {
  font-family: Montserrat;
}
a:active,
a:hover {
  color: inherit;
}
/** FOOTER BLOG SECTION END **/
.lavida-blog-footer--wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-gap: 6px;
  align-items: stretch;
}
@media (min-width: 992px) {
  .lavida-blog-footer--wrapper {
    flex-direction: row;
  }
}
.bk {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.lavida-blog-footer--item:hover {
  opacity: 90%;
  transition: all 0.3s ease-in-out;
}
.lavida-blog-footer--item {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
}
.lavida-blog-footer--link {
  /*width: 100%;
height: auto;*/
  color: white;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lavida-blog-footer--container {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}
.lavida-blog-footer--container::after {
  z-index: 0;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}
.lavida-blog-footer--title {
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
}
.lavida-blog-footer--excerpt {
  z-index: 1;
  font-size: 16px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
}

.lavida-blog-footer--item.cta {
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  display: flex;
  justify-items: center;
  align-items: center;
  justify-content: center;
}
.lavida-blog-footer--item.cta img {
  margin-top: 12px;
  width: 80px;
  height: auto;
}
/** FOOTER BLOG SECTION END **/

/** ARCHIVE SECTION **/

.lavida-archive.lavida-archive--header {
  max-width: 1140px;
  margin: 0 auto;
}
.lavida-archive--header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-gap: 6px;
  align-items: stretch;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}
@media (min-width: 992px) {
  .lavida-archive--header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lavida-archive--title h1 {
  font-size: 32px;
  font-weight: 700;
  max-width: 1140px;
  margin: 0 0 6px 0;
  color: var(--primary);
}
@media (min-width: 992px) {
  .lavida-archive--title h1 {
    font-size: 42px;
  }
}
.lavida-archive--subtitle {
  font-size: 18px;
  color: var(--secondary-light);
}
.lavida-archive--options {
  font-weight: 600;
  color: var(--secondary-light);
  padding-left: 4px;
}
.lavida-archive--options a {
  color: inherit;
  margin: 0 6px;
}
.lavida-archive--options a.active {
  color: var(--primary);
}

.lavida-archive-v2-grid-container {
  display: grid;
  gap: 6px; /* spacing between items */
  padding-top: 24px;
  overflow: hidden;
}

.lavida-archive-v2-grid-container.grid-view {
  grid-template-columns: 1fr;
}
.lavida-archive-v2-grid-container.list-view {
  grid-template-columns: 1fr;
}

.lavida-archive-v2-grid-container.list-view {
  max-width: 1140px;
  margin: 0 auto;
}

.lavida-archive-v2--link {
  position: absolute;
  inset: 0;
  z-index: 4; /* Must be on top of .overlay */
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.lavida-archive-v2-grid--overlay {
  display: flex;
  align-items: flex-end;
}
.lavida-archive-v2-grid--item {
  width: 100%;
  max-width: 100%;
  position: relative;
}
.lavida-archive-v2-grid--item:hover {
  opacity: 90%;
  transition: all 0.3s ease-in-out;
}
.lavida-archive-v2-grid--item.grid-view .lavida-archive-v2-grid--overlay {
  padding: 16px;
}
.lavida-archive-v2-grid--item.grid-view .lavida-archive-v2-grid--overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.lavida-archive-v2-grid--item .lavida-archive--title {
  font-weight: 700;
  font-size: 24px;
}
.lavida-archive-v2-grid--item.list-view .lavida-archive--title {
  color: var(--secondary);
}
.lavida-archive-v2-grid--item.list-view:hover .lavida-archive--title {
  color: var(--primary);
}
.lavida-archive-v2-grid--item.grid-view .lavida-archive--title {
  color: #fff;
}
.lavida-archive-v2-grid--item.grid-view .lavida-archive--title:hover,
.lavida-archive-v2-grid--item.grid-view .lavida-archive--title:focus,
.lavida-archive-v2-grid--item.grid-view .lavida-archive--title:active {
  color: #fff;
}

.lavida-archive-v2-grid--item.grid-view {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* .lavida-archive-v2-grid--item.grid-view::before {
  content: "";
  display: block;
  padding-bottom: 100%;
} */
:root {
  --screen_width: calc(100vw - 32px);
}

.lavida-archive-v2-grid--item.grid-view {
  aspect-ratio: 1 / 1;
  height: calc(var(--screen_width) - 32px);
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .lavida-archive-v2-grid-container.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
  .lavida-archive-v2-grid--item.grid-view {
    height: calc(calc(var(--screen_width) / 3) - 32px);
  }
}

/** ARCHIVE SECTION END **/

/** MEDICAL ASSICURAZIONI **/

#assicurazioni-convenzionate
  .elementor-portfolio-item__img.elementor-post__thumbnail {
  background-color: white;
}
#assicurazioni-convenzionate
  .elementor-posts-container.elementor-has-item-ratio
  .elementor-post__thumbnail
  img {
  padding: 12px;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
/** MEDICAL ASSICURAZIONI END **/

/** ELEMENTOR SLIDER **/
.swiper-slide-inner {
  max-width: 1140px;
  padding-left: 10px;
  padding-right: 10px;
}
