@import 'partials/typography.css';
@import 'partials/palette.css';


/* GENERAL RULES  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol ,menu {
  list-style-type: none;
}

a {
  color: currentColor !important;
  text-decoration: none !important;
}

img {
  display: block;
}

/* handle elementor class of picker color   */
.pickr > button {
  padding: initial;
}
/* ---------------------------------------  */

button {
  padding: 12px 24px;
  background-color: var(--primary-500);
  width: fit-content;
  white-space: nowrap;
  border: none;
}

a:hover {
  opacity: .8;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  button {
    padding: 8px 16px;
  }
}

/* ---------------------- */


/* "CARD WITH BUTTON" RULES  */

.card-with-button {
  width: 100%;
  aspect-ratio: 1;
  max-height: 460px;
  position: relative;
  /* background property defined inline in php file */
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%), url('https://picsum.photos/id/237/1800/500'); */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.card-with-button > .card-wrapper-title-button {
  position: absolute;
  bottom: 36px;
  /* dynamic space from the left of the card  */
  left: 7%;
}

.card-with-button > .card-wrapper-title-button > .card-title {
  margin-bottom: 28px;
  color: #fff;
}

/* tablet  */
@media screen and (max-width: 1280px) {
  .card-with-button  {
    padding: 20px 48px;
  }
}

/* mobile  */
@media screen and (max-width: 768px) {
  .card-with-button  {
    padding: 20px 30px;
  }
}

/* ---------------------- */


/* "CARD DESCRIPTION" RULES  */

.card-description > .card-title {
  margin-bottom: 12px;
}

.card-description > .card-text {
  color: var(--text);
}

.card-description > .card-text > ul {
  padding: 8px;
  list-style-position: inside;
  list-style-type: disc;
}

/* ---------------------- */


/* "CARD WITH CATEGORY" RULES  */

.card-with-category {
  max-width: 100%;
}

.card-with-category figure {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.card-with-category figure {
  height: 255px;
  /* background-image: url('https://picsum.photos/200/300'); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.card-with-category figure > .category-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  border-radius: 8px;
  background-color: var(--text);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
}

.card-with-category > .card-title {
  margin-bottom: 16px;
}

.card-with-category > .card-desc {
  color: var(--text);
}

/* ---------------------- */


/* SLIDER BOOTSTRAP  */
/* COMMIT COMMIT COMMIT COMMIT< */

.carousel-dark {
  /* ..undo bootstrap style rules */
  border: none !important;
}

.carousel-dark .slide-text-part,
.carousel-dark .slide-image-part {
  width: 50%;
}

.carousel-dark .slide-text-part {
  padding: 120px 80px;
  overflow: visible;
}

.carousel-dark .slide-image-part {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-dark .slide-text-part .slide-title {
  margin-bottom: 1rem;
  max-height: 120px;
  overflow: hidden;
}

.carousel-dark .slide-text-part .slide-description {
  margin-bottom: 5rem;
  min-height: 100px;
  font-size: 20px;
}

.carousel-dark .slide-text-part .slide-description span{
  /* Text elipsis rules */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Left and right controls  */
.carousel-dark .carousel-controls button {
  width: 5% !important;
}

.carousel-dark .carousel-controls button:not(:hover):not(:active):not(.has-background) {
  /* ..undo bootstrap style rules...  */
  background-color: transparent;
}


/* ------------- */

/* Indicators  */

.carousel-dark .carousel-indicators {
  /* ..undo bootstrap style rules...  */
  justify-content: flex-start;
  margin-left: initial;
  margin-right: initial;
  
  /* ...and replace them with my custom css to put indicators in line with .slide-text-part  */
  margin-left: 80px; /* N.B. this value (80px) need to be the same of the lateral padding of .slide-text-part div */
  margin-bottom: 30px;
}

.carousel-dark .carousel-indicators button {
  /* ..undo bootstrap style rules...  */
  margin-left: 0;

  /* ...and replace them with my custom css   */
  border-radius: 50%;
  width: 8px;
  height: 8px;
  padding: 0;
  margin-right: 10px;
}

.carousel-dark .carousel-indicators .active {
  background-color: var(--primary-500) !important;
}
/* ------------- */

/* tablet  */
@media screen and (max-width: 1280px) {

  .carousel-dark .slide-text-part {
    padding: 40px 80px;
    overflow: visible;
  }

  .carousel-dark .slide-text-part .slide-title {
    font-size: 36px;
  }

  .carousel-dark .slide-text-part .slide-description {
    margin-bottom: 2rem;
  }

  .carousel-dark .carousel-indicators {
    margin-bottom: 8px;
  }
}

/* mobile  */
@media screen and (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .slide-text-part,
  .slide-image-part {
    width: 100% !important;
  }

  .slide-image-part{
    max-height: 400px;
  }

  .slide-text-part {
    height: auto !important;
    padding: 20px 40px !important;
  }

  .carousel-dark .slide-text-part .slide-title {
    font-size: 26px;
  }

  .carousel-dark .slide-text-part .slide-description {
    font-size: 16px;
    margin-bottom: 2rem;
  }

  .carousel-dark .slide-text-part .slide-button {
    font-size: 14px;
  }

  .carousel-indicators,
  .carousel-controls {
    display: none !important;
  }
}

/* ------------- */



/* "BLOCK ACCORDION" RULES  */
.block-accordion {
  border-bottom: 1px solid var(--grey);
}

.block-accordion .accordion {
  background-color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  transition: 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.block-accordion .accordion:hover {
  background-color: var(--grey);
}

.block-accordion .accordion-icon {
  background-color: var(--grey);
}

.block-accordion .panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  margin-bottom: 8px;
}

/* ------------- */


/* "BLOCK POSTS" RULES  */
.-block-posts{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* monkey method to fix a bug  */
.-block-posts > a {
  display: none;
}

.-unipd-block-post-pagination-container{
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.-unipd-block-post-pagination-container span,
.-unipd-block-post-pagination-container a
{
  padding: 8px;
  border: 1px solid var(--grey);
}

/* the span element is the active element  */
.-unipd-block-post-pagination-container span
{
  background-color: var(--primary-500);
  color: #fff;
}

/* ------------- */



