/*
Theme Name: Nextframe
Theme URI: https://miosito.com
Author: Mario Rossi
Author URI: https://miosito.com
Description: Our fantastic base theme
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextframe
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ! Reset */
body,
html {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style-type: none;
}

img {
  height: auto;
}

a {
  text-decoration: none;
}

hr {
  border: none;
  border-bottom: 1px solid #ddd
}


p {
  line-height: 1.3
}

.spacer {
  height: 70px;
}

/* ! Title System */
.text-0 {
  font-size: 5rem;
  line-height: 1;
}

h1,
.text-1 {
  font-size: 3.4rem;
}

h2,
.text-2 {
  font-size: 2.2rem;
}

h3,
.text-3 {
  font-size: 1.5rem;
}

h4,
p,
.text-4 {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .text-0 {
    font-size: 4rem
  }
}








/* ! Header */
/*----------------------------------------------------------------------------------- */
.header-container {
  position: fixed;
  background: linear-gradient(180deg, rgba(51, 51, 51, 0.9) 0%, rgba(51, 51, 51, 0.6) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
}

.logged-in .header-container {
  top: 30px
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto
}

.header a {
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}

.header__menu {
  margin-bottom: 0;
}

.header__menu li {
  display: inline-block;
}

.header a.header__logo {
  font-weight: bold;
  padding: 0;
}

.header__logo img {
  max-height: 50px;
  margin: 10px;
}

.header__hamburger {
  display: none;
}


@media (max-width: 768px) {
  .header__hamburger {
    display: block;
    width: 40px;
    height: 35px;
    margin-top: 9px;
    margin-right: 4px;
    position: relative;
    z-index: 10000;
    cursor: pointer;
  }

  .header__hamburger span {
    width: 33px;
    height: 2px;
    background: #fff;
    margin-top: 8px;
    display: block;
    transition: all 0.15s cubic-bezier(.215, .61, .355, 1);
  }

  /* ── Mobile Menu Panel ── */
  .header__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(160deg, rgba(28, 28, 28, 0.97) 0%, rgba(40, 22, 5, 0.97) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px 60px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition:
      opacity 0.45s cubic-bezier(.215, .61, .355, 1),
      transform 0.45s cubic-bezier(.215, .61, .355, 1);
    z-index: 9998;
  }

  .header__menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 153, 50, 0.15);
    transform: translateX(-30px);
    opacity: 0;
    transition:
      transform 0.4s cubic-bezier(.215, .61, .355, 1),
      opacity 0.4s ease;
  }

  .header__menu li:first-child {
    border-top: 1px solid rgba(255, 153, 50, 0.15);
  }

  /* staggered entrance for each item */
  .menu-open .header__menu li:nth-child(1) { transition-delay: 0.10s; }
  .menu-open .header__menu li:nth-child(2) { transition-delay: 0.17s; }
  .menu-open .header__menu li:nth-child(3) { transition-delay: 0.24s; }
  .menu-open .header__menu li:nth-child(4) { transition-delay: 0.31s; }
  .menu-open .header__menu li:nth-child(5) { transition-delay: 0.38s; }
  .menu-open .header__menu li:nth-child(6) { transition-delay: 0.45s; }

  .header__menu a {
    display: block;
    padding: 18px 8px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #f0f0f0;
    text-transform: uppercase;
    height: auto;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .header__menu a:hover {
    color: #ff9932;
    padding-left: 16px;
  }

  /* Hamburger → X animation */
  .menu-open .header__hamburger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-open .header__hamburger span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Open state */
  .menu-open .header__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .menu-open .header__menu li {
    transform: translateX(0);
    opacity: 1;
  }

  .menu-open {
    overflow: hidden;
  }
}



/* ! Index */
/*----------------------------------------------------------------------------------- */


/* ! Single */
/*----------------------------------------------------------------------------------- */


/* ! Footer */
/*----------------------------------------------------------------------------------- */

.footer {
  background: #eee;
  color: #333;
  margin-top: -12px;
}

.footer__logo img {
  max-height: 100px;
  margin: 10px;
}

@media (max-width: 768px) {

  .footer,
  .footer .text-right {
    text-align: center;
  }
}

.footer a {
  color: #ff9932;
}




/* ! Grid System */
/*----------------------------------------------------------------------------------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  max-width: 1250px;
  margin: 0 auto
}

.grid--small {
  max-width: 900px
}

.grid--center {
  justify-content: center;
}

.grid--full {
  max-width: 100%
}

.col-20 {
  width: 20%
}

.col-25 {
  width: 25%
}

.col-30 {
  width: 30%
}

.col-33 {
  width: 33.33%
}

.col-40 {
  width: 40%
}

.col-50 {
  width: 50%
}

.col-60 {
  width: 60%
}

.col-70 {
  width: 70%
}

.col-80 {
  width: 80%
}

.col-90 {
  width: 90%
}

.col-100 {
  width: 100%
}

[class*='col-'] {
  padding: 10px;
}

.grid--full [class*='col-'],
.grid .grid [class*='col-'] {
  padding: 0;
}


@media (max-width: 768px) {
  [class*='col-'] {
    width: 100%
  }

  .sma-33 {
    width: 33.33%
  }

  .sma-50 {
    width: 50%
  }

  .sma-25 {
    width: 25%
  }
}


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


.br {
  border: 1px solid red;
}

.img-res {
  width: 100%;
}

.video-res {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-res video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.mt-m4 {
  position: relative;
  margin-top: -4rem;
}


.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mr-1 {
  margin-right: 1rem;
}

.mr-2 {
  margin-right: 2rem;
}

.mr-3 {
  margin-right: 3rem;
}

.mr-4 {
  margin-right: 4rem;
}

.ml-1 {
  margin-left: 1rem;
}

.ml-2 {
  margin-left: 2rem;
}

.ml-3 {
  margin-left: 3rem;
}

.ml-4 {
  margin-left: 4rem;
}

.text-center {
  text-align: center
}

.text-left {
  text-align: left
}

.text-right {
  text-align: right
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 1rem;
}

.p-2 {
  padding: 2rem;
}

.p-3 {
  padding: 3rem;
}

.p-4 {
  padding: 4rem;
}

.pt-0 {
  padding-top: 0;
}

.pt-1 {
  padding-top: 1rem;
}

.pt-2 {
  padding-top: 2rem;
}

.pt-3 {
  padding-top: 3rem;
}

.pt-4 {
  padding-top: 4rem;
}

.pb-0 {
  padding-bottom: 0;
}

.pb-1 {
  padding-bottom: 1rem;
}

.pb-2 {
  padding-bottom: 2rem;
}

.pb-3 {
  padding-bottom: 3rem;
}

.pb-4 {
  padding-bottom: 4rem;
}


.icon-small {
  width: 40px;
  padding: 8px;
}

.icon-white {
  filter: invert(1);
}

.bg-dark {
  background: #000;
}

.text-white {
  color: #fff
}

.text-dark {
  color: #000
}

.v-center {
  display: flex;
  justify-content: center;
  flex-flow: column;
  align-items: flex-start;
}

.font-normal {
  font-weight: 400;
}

.none {
  display: none;
}

@media (max-width: 768px) {
  .sma-none {
    display: none;
  }
}

@media (min-width: 768px) {
  .desktop-none {
    display: none;
  }
}



/* ! Wordpress Styles */
/*----------------------------------------------------------------------------------- */

input,
textarea {
  border: 3px solid #ddd;
  border-radius: 3px;
  padding: 10px;
}


.form-search {
  width: 100%;
  border: 3px solid #ddd;
  border-radius: 100px;
  padding-left: 15px;
}

.form-search input {
  width: calc(100% - 40px);
  border: none;
}

.form-search img {
  width: 25px;
  margin-bottom: -8px;
}


.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.alignwide {
  width: 90vw;
  margin-left: calc(50% - 45vw);
}



/* ! Splide Styles */
/*----------------------------------------------------------------------------------- */
.splide__container {
  box-sizing: border-box;
  position: relative
}

.splide__list {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important
}

.splide.is-initialized:not(.is-active) .splide__list {
  display: block
}

.splide__pagination {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0;
  pointer-events: none
}

.splide__pagination li {
  display: inline-block;
  line-height: 1;
  list-style-type: none;
  margin: 0;
  pointer-events: auto
}

.splide__progress__bar {
  width: 0
}

.splide {
  position: relative;
  visibility: hidden
}

.splide.is-initialized,
.splide.is-rendered {
  visibility: visible
}

.splide__slide {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-sizing: border-box;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  list-style-type: none !important;
  margin: 0;
  position: relative
}

.splide__slide img {
  vertical-align: bottom
}

.splide__spinner {
  animation: splide-loading 1s linear infinite;
  border: 2px solid #999;
  border-left-color: transparent;
  border-radius: 50%;
  bottom: 0;
  contain: strict;
  display: inline-block;
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px
}

.splide__sr {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px
}

.splide__toggle.is-active .splide__toggle__play,
.splide__toggle__pause {
  display: none
}

.splide__toggle.is-active .splide__toggle__pause {
  display: inline
}

.splide__track {
  overflow: hidden;
  position: relative;
  z-index: 0
}

@keyframes splide-loading {
  0% {
    transform: rotate(0)
  }

  to {
    transform: rotate(1turn)
  }
}

.splide__track--draggable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none
}

.splide__track--fade>.splide__list {
  display: block
}

.splide__track--fade>.splide__list>.splide__slide {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  z-index: 0
}

.splide__track--fade>.splide__list>.splide__slide.is-active {
  opacity: 1;
  position: relative;
  z-index: 1
}

.splide--rtl {
  direction: rtl
}

.splide__track--ttb>.splide__list {
  display: block
}

.splide__arrow {
  -ms-flex-align: center;
  align-items: center;
  background: #ccc;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  height: 2em;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: .7;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  z-index: 1
}

.splide__arrow svg {
  fill: #000;
  height: 1.2em;
  width: 1.2em
}

.splide__arrow:hover:not(:disabled) {
  opacity: .9
}

.splide__arrow:disabled {
  opacity: .3
}

.splide__arrow:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide__arrow--prev {
  left: 1em
}

.splide__arrow--prev svg {
  transform: scaleX(-1)
}

.splide__arrow--next {
  right: 1em
}

.splide.is-focus-in .splide__arrow:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide__pagination {
  bottom: .5em;
  left: 0;
  padding: 0 1em;
  position: absolute;
  right: 0;
  z-index: 1
}

.splide__pagination__page {
  background: #ccc;
  border: 0;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 3px;
  opacity: .7;
  padding: 0;
  position: relative;
  transition: transform .2s linear;
  width: 8px
}

.splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.4);
  z-index: 1
}

.splide__pagination__page:hover {
  cursor: pointer;
  opacity: .9
}

.splide__pagination__page:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide.is-focus-in .splide__pagination__page:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide__progress__bar {
  background: #ccc;
  height: 3px
}

.splide__slide {
  -webkit-tap-highlight-color: transparent
}

.splide__slide:focus {
  outline: 0
}

@supports(outline-offset:-3px) {
  .splide__slide:focus-visible {
    outline: 3px solid #0bf;
    outline-offset: -3px
  }
}

@media screen and (-ms-high-contrast:none) {
  .splide__slide:focus-visible {
    border: 3px solid #0bf
  }
}

@supports(outline-offset:-3px) {
  .splide.is-focus-in .splide__slide:focus {
    outline: 3px solid #0bf;
    outline-offset: -3px
  }
}

@media screen and (-ms-high-contrast:none) {
  .splide.is-focus-in .splide__slide:focus {
    border: 3px solid #0bf
  }

  .splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus {
    border-color: #0bf
  }
}

.splide__toggle {
  cursor: pointer
}

.splide__toggle:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide.is-focus-in .splide__toggle:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px
}

.splide__track--nav>.splide__list>.splide__slide {
  border: 3px solid transparent;
  cursor: pointer
}

.splide__track--nav>.splide__list>.splide__slide.is-active {
  border: 3px solid #000
}

.splide__arrows--rtl .splide__arrow--prev {
  left: auto;
  right: 1em
}

.splide__arrows--rtl .splide__arrow--prev svg {
  transform: scaleX(1)
}

.splide__arrows--rtl .splide__arrow--next {
  left: 1em;
  right: auto
}

.splide__arrows--rtl .splide__arrow--next svg {
  transform: scaleX(-1)
}

.splide__arrows--ttb .splide__arrow {
  left: 50%;
  transform: translate(-50%)
}

.splide__arrows--ttb .splide__arrow--prev {
  top: 1em
}

.splide__arrows--ttb .splide__arrow--prev svg {
  transform: rotate(-90deg)
}

.splide__arrows--ttb .splide__arrow--next {
  bottom: 1em;
  top: auto
}

.splide__arrows--ttb .splide__arrow--next svg {
  transform: rotate(90deg)
}

.splide__pagination--ttb {
  bottom: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  left: auto;
  padding: 1em 0;
  right: .5em;
  top: 0
}