/*
Theme Name:   Next Awards Child Theme
description: A child theme of Next Awards WordPress theme
Author:       Bonomi Williams
Template:     nextawards
Version:      1.0.0
*/

/* -------------------------------------------------------------------------------- */
/* ! Menu */
/* -------------------------------------------------------------------------------- */

.menu li a {
  color: rgb(132, 126, 124) !important;
}
.menu li a:hover {
  color: #000 !important;
}

@media (min-width: 1190px) {
  .menu {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .page-template-menu-trasparent .header__logo-img,
  .page-template-menu-trasparent .header [class^="icon-"] {
    filter: brightness(1) invert(0) !important;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Button */
/* -------------------------------------------------------------------------------- */

.wp-element-button {
  border-radius: 5px;
}

.is-style-outline a {
  background: #fff;
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.is-style-outline a:hover {
  background: #222;
  color: #fff !important;
}

@media (min-width: 991px) {
  .header__quick {
    top: -18px !important;
  }
}

@media (min-width: 1190px) {
  .header__quick {
    top: -5px !important;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Hero */
/* -------------------------------------------------------------------------------- */

.hero_s {
  /* background: no-repeat
    url("http://antoniom219.sg-host.com/wp-content/uploads/2025/11/myscool-sfondo-2.png")
    center center; */
  position: relative;
  min-height: 500px;
  background-size: cover;
  overflow: hidden;
}

/* Tutti i layer */
.hero_s .layer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  pointer-events: none; /* così non catturano click o hover */
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Facoltativo: ordina le profondità */
.layer1 {
  z-index: 1;
}
.layer2 {
  z-index: 2;
}
.layer3 {
  z-index: 3;
}

.heros-content {
  position: relative;
  z-index: 10;
  color: #000;
  text-align: center;
  padding-top: 10vh;
  padding-left: 30px;
  padding-right: 30px;
}

.scroll-down .hero_s .layer {
  opacity: 0;
}

.heros__cta {
  display: flex;
  justify-content: center;
}

.heros__cta div {
  margin: 0 15px;
}

@media (min-width: 1190px) {
  .home .header {
    background-color: transparent;
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .home.scroll-down .header {
    background-color: #fff;
  }

  .hero_s {
    margin-top: -75px;
    padding-top: 75px;
  }
}

@media (max-width: 1190px) {
  .heros-content {
    padding-top: 15vh;
  }
}

@media (max-width: 768px) {
  .heros-content {
    padding-top: 5vh;
  }

  .hero_s {
    height: 5vh;
    min-height: 500px;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Funzioni Homepage */
/* -------------------------------------------------------------------------------- */

.myscool-textimage {
  min-height: 550px !important;
}

figure.wp-block-image.size-full.wp-lightbox-container {
  height: 100%;
}

/* ! Blocco Testo Foto */

.myscool-media {
  padding-bottom: 80px;
}

.myscool-media-text {
  background: #f5f5f5;
  border-radius: 40px;
  padding: 20px;
  height: fit-content;
}

.myscool-media-img {
  padding-bottom: 80px;
  position: relative;
}

.myscool-media-img img {
  position: absolute;
  top: 0;
  border-radius: 40px;
  transform: translateY(80px);
  border: 2px solid #ea5a39;
}

@media (max-width: 768px) {
  .myscool-media-img img {
    position: relative;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Swiper Articoli */
/* -------------------------------------------------------------------------------- */

.swiper-sale__container {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.fixed-slide {
  flex: 0 0 250px; /* larghezza fissa */
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: center;
}

.swiper-sale {
  flex: 1;
  overflow: hidden;
}

.category-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.category-slide__excerpt {
  width: 100%;
}

@media (max-width: 768px) {
  .swiper-sale__container {
    display: block;
  }

  .fixed-slide {
    display: none;
  }

  .swiper-sale {
    margin-top: 25px;
  }
}

.post-slide {
  border-radius: 10px;
  border: 1px solid;
  overflow: hidden;
  height: 400px !important;
}

.post-slide img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.post-slide__content {
  position: absolute;
  width: 90%;
  bottom: 10px;
  left: 5%;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.read-more {
  position: absolute;
  right: 20px;
  bottom: 10px;
  border: 1px solid;
  border-radius: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.read-more:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media (max-width: 768px) {
  .post-slide {
    border-radius: 0;
    border: none;
  }

  .post-slide img {
    left: 50%;
    width: auto;
    border: 1px solid;
    border-radius: 10px;
    transform: translateX(-50%);
  }

  .fixed-slide {
    height: auto !important;
  }
}

/* Frecce di Controllo */

.swiper__intestazione {
  display: flex;
  justify-content: space-between;
}
.swiper__title {
  display: flex;
  align-items: baseline;
  padding: 10;
}
.swiper__title p {
  padding: 0 5px;
}

.controls-container,
.sbn,
.sbp {
  position: relative;
  display: flex;
  justify-content: end;
  padding-bottom: 40px;
}
.sbp,
.sbn {
  top: 20px;
  margin: 0 10px 0px 10px;
}

.sbn:after,
.sbp:after {
  content: none;
}

.sbp .icon-arrow {
  transform: rotate(180deg);
}

.sbn .icon-arrow,
.sbp .icon-arrow {
  border: solid 1px #666;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.swiper-button-prev {
  left: var(--swiper-navigation-sides-offset, -40px) !important;
}

.swiper-button-next {
  right: var(--swiper-navigation-sides-offset, -40px) !important;
}

/* -------------------------------------------------------------------------------- */
/* ! Swiper Immagini */
/* -------------------------------------------------------------------------------- */

.swiper-slide-img img {
  width: 100%;
  height: auto !important;
}

.swiper-slide-img__text {
  width: 90%;
  text-align: center;
  color: #fff;
  font-size: 25px;
  padding: 10px;
  transform: rotate(10deg) translateY(-100%);
  background-color: rgb(246, 97, 97, 0.9);
  text-transform: uppercase;
  border-radius: 10px;
}

.fly-dx {
  position: absolute;
  top: -50px;
  right: -30px;
  max-width: 150px;
  z-index: -1;
}

.fly-sx {
  position: absolute;
  bottom: 0;
  left: -50px;
  max-width: 150px;
  rotate: -20deg;
  z-index: -1;
}

@media (max-width: 1190px) {
  .swiper-slide-img__text {
    margin-top: 10px;
    transform: rotate(0deg) translateY(0);
    width: 100%;
    background-color: rgb(246, 97, 97, 1);
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Pricing */
/* -------------------------------------------------------------------------------- */

.wp-block-buttons > .wp-block-button.wp-block-button__width-100 {
  flex-basis: auto;
  width: auto;
}

/* -------------------------------------------------------------------------------- */
/* ! Categoria Funzionalità */
/* -------------------------------------------------------------------------------- */

.funzionalita-card article {
    border: 1px solid #CCC;
    padding: 10px;
    border-radius: 10px;
    height: 100%;
}

/* -------------------------------------------------------------------------------- */
/* ! Helpers */
/* -------------------------------------------------------------------------------- */

.relative {
  position: relative;
}

.plr-5 {
  padding-left: 5rem !important;
  padding-right: 5rem !important;
}

.z-9 {
  z-index: 999999;
}

.pt-1 {
  padding-top: 10px;
}
.pt-2 {
  padding-top: 20px;
}
.pt-3 {
  padding-top: 30px;
}
.pt-4 {
  padding-top: 40px;
}
.pt-5 {
  padding-top: 50px;
}

.pt10vh {
  padding-top: 10vh;
}

@media (max-width: 1190px) {
  .plr-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (max-width: 768px) {
  .plr-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
