/* Taormina WEB UI — modern cards, image motion, mobile layout */

.tw-ui,
.tw-ui .site {
  overflow-x: clip;
  max-width: 100%;
}

.tw-ui img,
.tw-ui video,
.tw-ui iframe {
  max-width: 100%;
}

.tw-ui .read-bg-img,
.tw-ui .data-bg-hover {
  overflow: hidden;
  border-radius: 14px;
  background-color: #d7dee8;
}

.tw-ui .spotlight-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(12, 32, 64, .08);
  transition: box-shadow .35s ease, transform .35s ease;
}

.tw-ui .spotlight-post figure {
  margin: 0;
}

.tw-ui .spotlight-post .read-bg-img,
.tw-ui .spotlight-post .data-bg-hover {
  border-radius: 0;
}

.tw-ui .spotlight-post figcaption {
  padding: 12px 14px 16px;
}

.tw-ui .data-bg-categorised,
.tw-ui .data-bg-featured,
.tw-ui .af-main-banner-featured-posts .data-bg-featured {
  overflow: hidden;
}

.tw-ui .main-slider .data-bg-slide {
  border-radius: 16px;
  overflow: hidden;
}

.tw-ui .read-bg-img img,
.tw-ui .data-bg-hover img,
.tw-ui .post-thumbnail img,
.tw-ui .single .wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.tw-ui .post-thumbnail,
.tw-ui .single .post-thumbnail {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(12, 32, 64, .1);
}

.tw-ui .figure-categories {
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .tw-ui .spotlight-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(12, 32, 64, .14);
  }

  .tw-ui .spotlight-post:hover .read-bg-img img,
  .tw-ui .slick-item:hover .read-bg-img img,
  .tw-ui .data-bg-hover:hover img,
  .tw-ui .post-thumbnail:hover img {
    transform: scale(1.07);
  }
}

@keyframes tw-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tw-ui .spotlight-post.tw-in,
  .tw-ui .slick-item.tw-in,
  .tw-ui .tw-meteo-cta.tw-in {
    animation: tw-enter .55s cubic-bezier(.22, 1, .36, 1) both;
  }

  .tw-ui .tw-home-cats .col-sm-4:nth-child(3n+2) .spotlight-post.tw-in,
  .tw-ui .covernews_double_col_categorised_posts .col-sm-4:nth-child(3n+2) .spotlight-post.tw-in {
    animation-delay: .05s;
  }

  .tw-ui .tw-home-cats .col-sm-4:nth-child(3n+3) .spotlight-post.tw-in,
  .tw-ui .covernews_double_col_categorised_posts .col-sm-4:nth-child(3n+3) .spotlight-post.tw-in {
    animation-delay: .1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-ui .read-bg-img img,
  .tw-ui .data-bg-hover img,
  .tw-ui .post-thumbnail img {
    transition: none;
  }

  .tw-ui .spotlight-post,
  .tw-ui .spotlight-post:hover {
    transform: none;
  }
}

.tw-ui .exclusive-posts,
.tw-ui .banner-exclusive-posts-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.tw-ui .aft-readmore {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.tw-ui .toggle-menu a,
.tw-ui .search-icon {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-ui .wp-block-search__button {
  min-height: 44px;
  padding: 8px 14px;
}

.tw-ui .covernews-categories {
  border-radius: 4px;
}

.tw-ui .tw-meteo-cta {
  overflow: hidden;
}

@media (max-width: 991px) {
  .tw-ui #primary,
  .tw-ui #secondary {
    width: 100%;
    float: none;
    padding-left: 0;
    padding-right: 0;
  }

  .tw-ui #secondary {
    margin-top: 12px;
  }

  .tw-ui .section-block-upper.row {
    display: block;
  }
}

@media (max-width: 767px) {
  .tw-ui .container {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
  }

  .tw-ui .widget {
    padding: 14px !important;
    margin-bottom: 16px;
  }

  .tw-ui .tw-home-cats .widget,
  .tw-ui .covernews_double_col_categorised_posts {
    padding: 0 0 8px !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .tw-ui .main-story-wrapper,
  .tw-ui .af-main-banner-editors-picks,
  .tw-ui .trending-story,
  .tw-ui .col-sm-6,
  .tw-ui .col-sm-3 {
    width: 100% !important;
    float: none !important;
    max-width: 100%;
  }

  .tw-ui .tw-home-cats .col-sm-4,
  .tw-ui .covernews_double_col_categorised_posts .col-sm-4,
  .tw-ui .af-main-banner-featured-posts .col-sm-15,
  .tw-ui .latest-posts-grid.col-sm-15,
  .tw-ui .col-sm-15 {
    width: 100% !important;
    float: none !important;
    flex: 0 0 100%;
    max-width: 100%;
    clear: both;
    margin-bottom: 14px;
    padding-left: 0;
    padding-right: 0;
  }

  .tw-ui .data-bg-categorised,
  .tw-ui .data-bg-featured,
  .tw-ui .af-main-banner-featured-posts .data-bg-featured,
  .tw-ui .af-main-banner-editors-picks .data-bg-featured,
  .tw-ui .trending-story.categorized-story .data-bg-featured {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .tw-ui .main-slider .data-bg-slide {
    height: auto !important;
    min-height: 210px;
    aspect-ratio: 16 / 9;
  }

  .tw-ui .slider-figcaption .article-title,
  .tw-ui .slide-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .tw-ui .article-title,
  .tw-ui .article-title-1 {
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
  }

  .tw-ui .af-mobile-site-title-wrap .custom-logo {
    max-height: 42px;
    width: auto;
  }

  .tw-ui .masthead-banner .custom-logo {
    max-width: min(280px, 86vw);
    height: auto;
  }

  .tw-ui .full-item-discription p {
    font-size: 15px;
    line-height: 1.5;
  }

  .tw-ui .tw-meteo-cta {
    margin: 0 0 18px;
    padding: 16px 14px 14px;
  }

  .tw-ui .tw-meteo-cta__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .tw-ui .tw-meteo-cta h2 {
    font-size: 30px;
  }

  .tw-ui .tw-meteo-cta__now {
    font-size: 40px;
  }

  .tw-ui .tw-meteo-cta__day {
    min-height: 0;
    padding: 12px;
  }

  .tw-ui .tw-meteo-cta__day svg {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .tw-ui .main-navigation ul li a {
    padding: 12px 16px !important;
    font-size: 16px;
  }

  .tw-ui .row {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .tw-ui .tw-home-cats .row,
  .tw-ui .covernews_double_col_categorised_posts .widget-wrapper > .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
  }

  .tw-ui .tw-home-cats .col-sm-4,
  .tw-ui .covernews_double_col_categorised_posts .col-sm-4 {
    width: 50% !important;
    float: left !important;
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
  }

  .tw-ui .col-sm-15 {
    width: 50% !important;
    float: left !important;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 599px) {
  .tw-ui .spotlight-post figcaption {
    padding: 12px 4px 8px;
  }

  body.tw-ui {
    font-size: 16px;
  }
}
