:root{
  --bg-page:#efefef;
  --bg-text:#1a1a1a;
  --bg-pill:#f8f8f8;
}

/* RESET WOODMART */
.page-template-page-blog-custom .page-title,
.page-template-page-blog-custom .wd-page-title,
.page-template-page-blog-custom .title-size-default,
.page-template-page-blog-custom .entry-header,
.page-template-page-blog-custom .wd-title-bar,
.page-template-page-blog-custom .wd-page-title-el {
  display:none !important;
}

.page-template-page-blog-custom .main-page-wrapper,
.page-template-page-blog-custom .site-content,
.page-template-page-blog-custom .wd-content-layout,
.page-template-page-blog-custom .content-layout-wrapper,
.page-template-page-blog-custom .main-page-wrapper > .container,
.page-template-page-blog-custom .site-content > .container {
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

html,
body{
  background:var(--bg-page);
}

.bg-blog-custom{
  width:100%;
  background:var(--bg-page);
  color:var(--bg-text);
  overflow:hidden;
}

.bg-blog-shell{
  width:min(100%, 1672px);
  margin:0 auto;
  padding-left:36px;
  padding-right:36px;
}

/* HERO */
.bg-blog-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:#d8c4b8;
}

.bg-blog-hero__media{
  position:absolute;
  inset:0;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  transform:scale(1.01);
}

.bg-blog-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.18) 42%,
    rgba(0,0,0,.03) 100%
  );
}

.bg-blog-hero__inner{
  position:relative;
  z-index:2;
  width:100%;
  padding-bottom:42px;
}

.bg-blog-hero__content{
  max-width:690px;
  color:#fff;
}

.bg-blog-hero__title{
  margin:0 0 18px;
  font-size:clamp(52px,4.6vw,74px);
  line-height:1.02;
  font-weight:400;
  letter-spacing:-0.03em;
  color:#fff;
}

.bg-blog-hero__excerpt{
  max-width:690px;
  font-size:clamp(19px,1.3vw,24px);
  line-height:1.22;
  color:#fff;
}

.bg-blog-hero__excerpt p{
  margin:0;
}

.bg-blog-hero__cta{
  display:inline-block;
  margin-top:28px;
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  font-size:18px;
  line-height:1;
  border-bottom:2px solid rgba(255,255,255,.95);
  padding-bottom:8px;
}

.bg-blog-hero__cta:hover{
  color:#fff;
  opacity:.82;
}

/* HIGHLIGHT */
.bg-blog-highlight{
  padding:88px 0 110px;
}

.bg-blog-highlight__head{
  text-align:center;
  margin-bottom:46px;
}

.bg-blog-highlight__title{
  margin:0 0 28px;
  font-size:clamp(48px,3vw,66px);
  line-height:1;
  font-weight:400;
  color:#111;
  letter-spacing:-0.02em;
}

.bg-blog-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  max-width:1280px;
  margin:0 auto;
}

.bg-blog-filter{
  border:0;
  background:var(--bg-pill);
  color:#111;
  min-height:38px;
  padding:9px 16px;
  border-radius:999px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  text-transform:uppercase;
  transition:all .2s ease;
}

.bg-blog-filter:hover,
.bg-blog-filter.is-active{
  background:#111;
  color:#fff;
}

/* GRID */
.bg-blog-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:28px;
  align-items:start;
}

.bg-blog-grid.is-loading{
  opacity:.55;
}

.bg-card{
  display:block;
}

.bg-card__image-link{
  display:block;
  width:100%;
  aspect-ratio:0.78;
  overflow:hidden;
  background:#ddd;
}

.bg-card__image,
.bg-card__placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.bg-card__image{
  transition:transform .45s ease;
}

.bg-card:hover .bg-card__image{
  transform:scale(1.025);
}

.bg-card__content{
  padding-top:18px;
}

.bg-card__cat{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  background:#f8f8f8;
  color:#111;
  font-size:14px;
  line-height:1;
  text-transform:uppercase;
}

.bg-card__title{
  margin:14px 0 10px;
  font-size:clamp(26px,1.7vw,31px);
  line-height:1.12;
  font-weight:400;
  color:#1b1b1b;
  letter-spacing:-0.02em;
}

.bg-card__title a{
  color:inherit;
  text-decoration:none;
}

.bg-card__title a:hover{
  opacity:.78;
}

.bg-card__meta{
  font-size:16px;
  color:#2d2d2d;
}

.bg-blog-empty{
  grid-column:1/-1;
  text-align:center;
  padding:80px 20px;
  font-size:20px;
}

/* LOAD MORE */
.bg-blog-loadmore-wrap{
  text-align:center;
  padding-top:62px;
}

.bg-blog-counter{
  margin-bottom:12px;
  font-size:16px;
  color:#222;
}

.bg-blog-loadmore{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:360px;
  min-height:60px;
  padding:0 26px;
  border:1px solid #111;
  background:transparent;
  color:#111;
  font-size:18px;
  cursor:pointer;
  transition:all .2s ease;
}

.bg-blog-loadmore:hover{
  background:#111;
  color:#fff;
}

.bg-blog-loadmore:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* DESKTOP MEDIO */
@media (max-width: 1400px){
  .bg-blog-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

/* TABLET */
@media (max-width: 1024px){
  .bg-blog-shell{
    padding-left:24px;
    padding-right:24px;
  }

  .bg-blog-hero{
    min-height:82vh;
  }

  .bg-blog-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:22px;
  }
}

/* MOBILE */
@media (max-width: 767px){
  .bg-blog-shell{
    padding-left:16px;
    padding-right:16px;
  }

  .bg-blog-hero{
    min-height:74vh;
  }

  .bg-blog-hero__inner{
    padding-bottom:32px;
  }

  .bg-blog-hero__title{
    font-size:40px;
    line-height:1.04;
  }

  .bg-blog-hero__excerpt{
    font-size:18px;
    line-height:1.28;
  }

  .bg-blog-highlight{
    padding:56px 0 80px;
  }

  .bg-blog-highlight__head{
    margin-bottom:30px;
  }

  .bg-blog-highlight__title{
    font-size:44px;
    margin-bottom:22px;
  }

  .bg-blog-filters{
    gap:10px;
  }

  .bg-blog-filter{
    min-height:34px;
    padding:8px 12px;
    font-size:12px;
  }

  .bg-blog-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
  }

  .bg-card__content{
    padding-top:14px;
  }

  .bg-card__cat{
    min-height:28px;
    padding:5px 10px;
    font-size:11px;
  }

  .bg-card__title{
    margin:10px 0 8px;
    font-size:24px;
    line-height:1.1;
  }

  .bg-card__meta{
    font-size:14px;
  }

  .bg-blog-loadmore{
    min-width:100%;
    width:100%;
  }
}

/* TELEFONI PICCOLI */
@media (max-width: 580px){
  .bg-blog-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .bg-card__title{
    font-size:20px;
  }

  .bg-card__meta{
    font-size:13px;
  }

  .bg-card__cat{
    font-size:10px;
    padding:5px 8px;
  }
}
.bg-blog-filter:hover, .bg-blog-filter.is-active{
  border-radius:50px;
}
:is(.btn,.button,button,[type=submit],[type=button]){
  border-radius: 50px !important;
}
.bg-blog-hero__media{
  position:absolute;
  inset:0;
  overflow:hidden;
}

.bg-blog-hero__video{
  position:absolute;
  top:50%;
  left:50%;
  min-width:100%;
  min-height:100%;
  width:auto;
  height:auto;
  transform:translate(-50%,-50%);
  object-fit:cover;
}