/*
 Theme Name:   YOOtheme Child
 Template:     yootheme
 Author:       fullstacklab
 Description:  YOOtheme Child Theme
 Version:      1.0.0
 Text Domain:  yootheme-child
*/

/* Festival Carousel Widget */
.festival-carousel {
  width: 100%;
  overflow: hidden;
}

.festival-carousel-item {
  max-height: 70px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.festival-carousel-item-inner {
  margin-left: auto;
  margin-right: auto;
}

/* uk-container su content per larghezza tema; display:flex forzato per layout a riga */
.festival-carousel-content.uk-container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Default bianco; colore per-elemento via inline style su .festival-carousel-text */
.festival-carousel-text {
  color: #fff;
}
.festival-carousel-text * {
  color: inherit;
}

/* Desktop: altezza fissa 70px, testo e bottone sulla stessa riga */
@media (min-width: 640px) {
  .festival-carousel .festival-carousel-content {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
  }
  .festival-carousel .festival-carousel-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.festival-carousel-text p:last-child {
  margin-bottom: 0;
}

.festival-carousel-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.uk-slideshow-items{
  max-height: 70px;
}

.festival-carousel-btn.uk-button.uk-button-default {
  border-color: transparent;
  opacity: 1;
  transition: opacity 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.festival-carousel-content:hover .festival-carousel-btn,
a.festival-carousel-content:hover .festival-carousel-btn {
  opacity: 0.8;
}

.festival-carousel-item .festival-carousel-btn:hover {
  background-color: var(--festival-btn-hover-bg, #fdc54f) !important;
  opacity: 1 !important;
}

#quote-section > .uk-grid{
  align-items: center;
}

h3.uk-card-title.uk-margin-remove.uk-h5 {
  text-transform: none;
}

.festival_recent_posts .uk-grid > div:nth-child(1) > a.uk-card-default.uk-card-hover:hover{
  border-color: #fdc54f;
}

.festival_recent_posts .uk-grid > div:nth-child(2) > a.uk-card-default.uk-card-hover:hover{
  border-color: #e8302a;
}

.wp-singular.single-post h1.uk-text-primary {
  text-transform: none;
}

.festival_recent_posts .uk-card-media-top {
  background-color: #4e3f92;
}

.festival_recent_posts a .uk-card-media-top img {
  opacity: .5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.festival_recent_posts a:hover .uk-card-media-top img {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 639px) {
  .festival-carousel .festival-carousel-content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
  }

  .festival-carousel .festival-carousel-text {
    font-size: 12px;
  }

  .festival-carousel .festival-carousel-btn {
    display: none;
  }

  .festival-carousel-item {
    max-height: none;
    min-height: auto;
    padding: 24px 20px;
  }
  .uk-section-primary.uk-section.uk-padding-remove-vertical {
    border: none !important;
    margin-top: -1px;
  }
  #quote-section .uk-grid.uk-grid-stack {
    display: flex;
    flex-direction: column-reverse;
  }
  /* .uk-slideshow-items{
    max-height: none;
  } */
}