

.page-view-taxonomy-term #block-filorent01-page-title {
    display: none;
}


/* ***** */

.view-taxonomy-term {}

/* Hero Layout for Taxonomy Term Page */

/* Break out of the container for the header */
.view-taxonomy-term .view-header {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 2rem;
  padding: 0;
}

/* Hero Image Styling */
.view-taxonomy-term .view-header .field--name-field-term-cover-image {
  position: relative;
  width: 100%;
  height: 70dvh; /* Hero height */
  overflow: hidden;

}

.view-taxonomy-term .view-header .field--name-field-term-cover-image img, 
.view-taxonomy-term .view-header .field--name-field-term-cover-image picture, 
.view-taxonomy-term .view-header .field--name-field-term-cover-image figure {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;

}

/* Page Title Styling (Overlay) */
.view-taxonomy-term .view-title {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  color: var(--white);
  text-shadow: 0 2px 6px var(--c-black-transparent-1);
  background-color: var(--blue-base);
  padding: var(--margin-m) var(--margin-l);
  z-index: 22;
  margin: 0;
  text-align: center;
  width: fit-content;
  font-size: var(--fc-h1plus);
  font-weight: bold;
}

.view-taxonomy-term .view-header {
    margin-bottom: var(--margin-l);

    .content {
        position: relative;
        
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: var(--margin-m);
    }
}

.view-taxonomy-term .view-header .field--name-description {

    position: relative;
    max-width: clamp(300px, 90%, 700px);
    margin: 0 auto;
    padding: var(--margin-l) var(--margin-m);
    background-color: var(--white);
    

     h2 {
        font-size: var(--fc-h1);
        font-weight: var(--fw-bold);
        color: var(--blue-dark-1);
        font-family: var(--ff-display1);
    }

     p  {
        font-size: var(--fc-p);
        font-weight: var(--fw-normal);
        color: var(--black);
        margin-bottom: var(--margin-l);
    }

     p strong {
        color: var(--blue-dark-1);
        padding: 0 var(--margin-xs);
    }

    a.button {
        display: inline-block;
    }

    img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: var(--br-s);
        margin-bottom: var(--margin-m);
    }

    ul {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: var(--margin-m);
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0 0 var(--margin-l) var(--margin-m);
    }
}
/* **** */




.view-taxonomy-term ul  {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 50vw, 360px), 1fr));
    gap: var(--margin-m);

    margin-left: 0;
    margin-bottom: var(--margin-xxl);
}

.view-taxonomy-term ul li {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--margin-xs);
    
    border: 0 solid var(--grey1);
    border-radius: var(--br-s);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 0 2px 0 var(--grey1);

    position: relative;

     .views-field-title {
        font-size:  var(--fc-h2);
        font-weight: var(--fw-bold);
        font-family: var(--ff-sans2);
        line-height: 1;
        position: relative;
    }
    
     .views-field-title a {
        color: var(--black);
        text-decoration: none;
        border-bottom: 0;
    }
}






.view-taxonomy-term ul li .views-field-field-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
    height: auto;   
}

.view-taxonomy-term ul li .views-field-field-image .field-content {
    width: 100%;
    height: 100%;    
    position: relative;
}

.view-taxonomy-term ul li .views-field-field-image .field-content img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;  
    width: 100%;
    height: 100%;    
    position: relative;
}



.view-taxonomy-term ul li  .views-field-body {
    color: var(--dark3);
    font-size: var(--fc-small);
    padding: 0 var(--margin-m) var(--margin-m) 0;
}

.view-taxonomy-term ul li  .views-field-created {
    font-size: var(--fc-p);
    color: var(--white);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    padding: var(--margin-m) var(--margin-m) 0 var(--margin-m);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
}

.view-taxonomy-term  .views-field-uid {
    color: var(--black);
    font-size: var(--fc-small);
    padding: 0 0 0 0;
}

.view-taxonomy-term  .views-field-uid a {
    color: var(--green);
    font-weight: var(--fw-bold);
    text-decoration: none;
    border-bottom: 0;
}


/* grid appearance for Promotions (Offerte) view */

.view-taxonomy-term.taxonomy-term-1 { 
    
  ul > li {
        display: block;
        position: relative;
        box-shadow: none;
        border: 1px solid var(--grey-dark-1);
        border-radius: var(--br-s);
        aspect-ratio: 3 / 4;

        .views-field-field-image {
          aspect-ratio: 3 / 4;
          position: relative;

          &::after  {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, var(--blue-base) 60%, var(--blue-dark-2) 100%);
            z-index: 5;
            opacity: 0.8;
          }

          img, 
          picture, 
          figure {
            width: 100%;
            height: 100%;
            aspect-ratio: 3 / 4;
            object-fit: cover;
            object-position: center;  
          }
        }

        .views-field-fieldset {
            position: absolute;
            bottom: var(--margin-m);
            left: 50%;
            bottom: 10%;
            transform: translate(-50% , 10%);
            z-index: 10;
            color: var(--white);
            width: 90%;

            
        }
    }
}

.path-frontpage .block.taxonomy-term-1 {

    margin-top: var(--margin-l);

& > h2 {
    text-align: center;
    font-size: var(--fc-h2);
    font-weight: var(--fw-bold);
    color: var(--blue-base);
    margin-bottom: var(--margin-l);

    }
}

.view-taxonomy-term.taxonomy-term-1 ul > li  {
  
  .views-field-title {
    font-size: var(--fc-h1);
    font-weight: var(--fw-bold);
    font-family: var(--ff-display1);
    text-shadow: 0 2px 6px var(--c-black-transparent-1);
    margin-bottom: var(--margin-xs);

    a {
        color: var(--white);
        border-bottom: 0;
        text-decoration: none;
    }
  }

  .views-field-body {
    font-size: var(--fc-p2);
    font-weight: var(--fw-normal);
    text-shadow: 0 2px 6px var(--c-black-transparent-1);
  }

  .views-field-view-node {
    margin-top: var(--margin-m);
    font-size: var(--fc-small);
    line-height: 1;

    a {
        background-color: var(--c-white-transparent-1);
        color: var(--blue-dark-1);
        font-weight: var(--fw-bold);
        text-decoration: none;
        border-bottom: 0;
        padding: var(--margin-xs) var(--margin-m);
        border-radius: var(--br-m);

        &::after {
            content: " →";
            margin-left: var(--margin-xs);
        }
    }


  }

}
