/**
 * Theme Name: Kilt MMXXV
 * Theme URI:         https://www.joana.cc/
 * Description:       Custom WP theme for kilt.pt
 * Version:           1.0.0
 * Author:            Joana Ray
 * Author URI:        https://www.joana.cc
 * Tags:              
 * Text Domain:       kilt
 * Tested up to:      6.8.1
 * Requires at least: 6.2
 * Requires PHP:      7.4
 * License:           GNU General Public License v2.0 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 *
 * CONTENTS
 ** Imports, root & variables
 ** ATOMS
 *** Typography
 *** A11y
 ** MOLECULES
 ** ORGANISMS
 ** TEMPLATES
 ** PAGES
 ** MEDIA QUERIES
*/

/** Imports, root & variables **/

:root {
  --color-light: hsla(0, 0%, 100%, 1);
  --color-light-op50: hsla(0, 0%, 100%, 0.5);
  --color-dark: hsla(0, 0%, 0%, 1);
  --color-dark-op50: hsla(0, 0%, 0%, 0.5);
  --color-dark-op60: hsla(0, 0%, 0%, 0.6);
  --color-gray: hsla(0, 0%, 60%, 1);
  --color-gray-light: hsla(0, 0%, 90%, 1);
  --font-extended: "GT America Extended", sans-serif;
  --font-main: "GT America", sans-serif;
  --font-icons: "Material Symbols Outlined";
  --header-height: 68px;
  --footer-height: 491px;
  --mu-xs: 0.25rem;
  --mu-s: 0.5rem;
  --mu-r: 1rem;
  --mu-l: 2rem;
  --mu-xl: 4rem;

  font-family: "GT America", sans-serif;
  scroll-behavior: smooth;

  accent-color: var(--color-light);
}

*,
*::before,
*::after {
  position: relative;
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background-color: var(--color-dark);
  color: var(--color-light);
  min-width: 320px;
}
/**
 ** ATOMS
 **/
/* width */
::-webkit-scrollbar {
  width: 0.5rem;
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-gray);
}

/* Track */
::-webkit-scrollbar-track {
  background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: none;
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-dark);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gray-light);
}
/*** Typography elements ***/
h1 {
  display: flex;
  align-items: center;
  gap: var(--mu-xs);
  font-family: var(--font-extended);
  font-size: 1.476em;
  font-weight: 900;
  text-transform: uppercase;
  &::before {
    content: url("assets/images/triangulo-01-w.svg");
  }
}
h2 {
  font-family: var(--font-extended);
  font-size: 1.383em;
  font-weight: bold;
  text-transform: uppercase;
}
h3 {
  font-size: 1.296em;
  font-weight: bold;
  text-transform: uppercase;
}
h4 {
  font-size: 1.215em;
  font-weight: bold;
}
h5 {
  font-size: 1.138em;
  font-weight: bold;
}
h6 {
  font-size: 1.067em;
  font-weight: bold;
}
:where(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}
:where(h1, h2, h3, h4, h5, h6) a:link {
  text-decoration: none;
}
p {
  font-size: 1em;
  &:not(.full-width, .form-row) {
    max-width: 80ch;
  }
}
small,
.small {
  font-size: 0.937em;
}
.x-small {
  font-size: 0.878em;
}
.breadcrumbs,
.subtitle {
  font-family: var(--font-extended);
  font-weight: 200;
  text-transform: uppercase;
}
strong {
  font-weight: 600;
}
hr {
  outline: 0;
  border-width: 1px;
  border-style: solid;
}
a {
  border: 0;
  color: var(--color-light);
}
a.cta,
.wp-block-button.cta .wp-block-button__link {
  border-radius: 0;
  border-style: solid;
  border-width: 1px;
  display: inline-block;
  font-family: var(--font-extended);
  font-size: 1em;
  letter-spacing: 1px;
  padding: var(--mu-s);
  text-decoration: none;
  text-transform: uppercase;
  & .material-symbols-outlined {
    &.rotate {
      rotate: 90deg;
    }
  }
  &:hover,
  &:active {
    background-color: var(--color-light);
    border-color: var(--color-light);
    color: var(--color-dark);
    & .material-symbols-outlined {
      color: var(--color-dark);
    }
  }
}

a.cta.icon,
.wp-block-button.cta.icon .wp-block-button__link,
.wp-block-button__link.add_to_cart_button,
button.icon {
  align-items: center;
  display: flex;
  gap: var(--mu-s);
  justify-content: center;
  padding: var(--mu-s);
}
.wp-block-button__link.wp-element-button {
  border-radius: 0;
}

/* Back to Top link */
#btn-btt {
  background-color: var(--color-dark);
  position: fixed;
  bottom: var(--mu-s);
  right: var(--mu-r);
  transition: all 500ms ease-in-out;
  z-index: 333;
  &:hover {
    background-color: var(--color-light);
  }
  &.hidden {
    transform: translateY(calc(var(--header-height) + var(--mu-s)));
  }
  &.bottom {
    bottom: var(--footer-height);
    transform: translateY(50%);
  }
}
/*** Form elements ***/
form * {
  font-family: var(--font-main);
  border-radius: 0;
}
button,
.wp-block-button__link,
input[type="button"],
input[type="image"],
input[type="reset"],
input[type="submit"] {
  background: none;
  border-width: 1px;
  border-radius: 0;
  border-style: solid;
  border-color: var(--color-light);
  color: var(--color-light);
  cursor: pointer;
  font-family: var(--font-extended);
  letter-spacing: 1px;
  padding: 0.5em;
  &:not(.nav-toggle, #scroll-btn):hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    color: var(--color-dark);
  }
}
fieldset {
  border-width: 1px;
}
input,
select {
  background: inherit;
  border-radius: 0;
  border-style: solid;
  border-width: 1px;
  color: inherit;
  font-size: 1em;
  padding: var(--mu-s);
}
input[type="file"] {
  border-width: 0;
  padding: 0;
}
input[type="image"],
input[type="reset"],
input[type="submit"] {
  text-transform: uppercase;
}
input[type="number"] {
  padding-right: 0;
}

/*** Media ***/
img {
  max-width: 100%;
  height: auto;
}

/*** A11y ***/
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}

/*** Utilities ***/
.p-0 {
  padding: 0;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}
.f-extended {
  font-family: var(--font-extended);
}
.full-width {
  width: 100%;
}
.img-box img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.permalink {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  padding: var(--mu-s);
}
.light-block,
.light-page {
  background-color: var(--color-light);
  accent-color: var(--color-dark);
  & * {
    border-color: var(--color-dark);
    color: var(--color-dark);
  }
  & *:not(.dark-block):has(.menu) a {
    &::before {
      background-color: var(--color-dark);
    }
  }
  button,
  .wp-block-button__link,
  input[type="button"],
  input[type="image"],
  input[type="submit"] {
    background: none;
    border-color: var(--color-dark);
    color: var(--color-dark);
    &:not(.nav-toggle, #scroll-btn):hover {
      background-color: var(--color-dark);
      border-color: var(--color-dark);
      color: var(--color-light);
    }
  }
  a.cta,
  .wp-block-button.cta .wp-block-button__link {
    &:hover,
    &:active {
      background-color: var(--color-dark);
      border-color: var(--color-dark);
      color: var(--color-light);
      & span {
        color: var(--color-light);
      }
    }
  }
}
.light-page h1::before {
  content: url("assets/images/triangulo-01-b.svg");
}
.light-page header .custom-logo,
.light-page #main-header a[href*="https://kiltfilm.pt/"] img
{
  filter: invert(1);
}
.light-page .nav-toggle span {
  background-color: var(--color-dark);
}
.light-page .dark-block,
.dark-block {
  & .menu a::before {
    background-color: var(--color-light);
  }
}
.dark-block {
  background-color: var(--color-dark);
  padding: var(--mu-l) var(--mu-r);
  & * {
    border-color: var(--color-light);
    color: var(--color-light);
  }
  button,
  .wp-block-button__link,
  input[type="button"],
  input[type="image"],
  input[type="submit"],
  .cta {
    border-color: var(--color-light);
    color: var(--color-light);
    &:hover {
      background-color: var(--color-light);
      color: var(--color-dark);
    }
  }
}
.material-symbols-outlined {
  font-variation-settings: "wght" 200, "GRAD" -25;
}
.dark-pattern,
.light-pattern {
  background-position: center top;
  background-repeat: repeat-x;
  background-size: auto 100%;
  height: 5vw;
  width: 100%;
  left: 0;
  padding: 0;
  &.pos-bottom {
    bottom: 0;
    position: absolute;
  }
  &.pos-top {
    top: 0;
    position: absolute;
  }
}
.dark-pattern + .dark-pattern,
.light-pattern + .light-pattern{
	display:none;
}
.dark-pattern {
  background-image: url("assets/images/bg-dark.svg");
}
.light-pattern {
  background-image: url("assets/images/bg-light.svg");
}
.post-cat {
  font-family: var(--font-main);
  font-size: 1.138em;
  font-weight: 100;
}
/**
 ** MOLECULES
 **/
/*** Typography ***/
hgroup {
  :where(h1, h2, h3, h4, h5, h6):first-child {
    margin: 0;
  }
}

figure {
  margin: 0;
  & img {
    display: block;
  }
}

/*** menus ***/
nav {
  ul {
    list-style: none;
  }
}
nav ul,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  & a {
    text-decoration: none;
  }
  & a::before {
    content: "";
    background-color: var(--color-light);
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width 500ms ease-in-out;
    width: 0;
    height: 1px;
  }
  & a:hover::before {
    width: 100%;
  }
}
ul.artistas-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mu-s);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  & figure {
    border-radius: 100%;
    overflow: hidden;
    height: 85px;
    width: 85px;
    & img {
      object-fit: cover;
      object-position: center;
      width: 100%;
      height: 100%;
      transition: scale 500ms ease-in-out;
    }
    & a:hover img {
      scale: 120%;
    }
  }
}
ul.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  & h4 {
    margin: 0;
  }
}
.nav-toggle {
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  z-index: 666;
}
.nav-toggle span {
  background-color: var(--color-light);
  display: block;
  font-size: 0;
  position: absolute;
  width: 100%;
  height: 2px;
  &:first-child,
  &:last-child {
    transition: all 250ms ease-in-out;
  }
}
.nav-toggle span:first-child {
  top: 4px;
  transform-origin: left top;
}
.nav-toggle span:last-child {
  bottom: 2px;
  transform-origin: left bottom;
}
nav.pagination {
  margin-top: var(--mu-r);
  & .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    & a,
    & > span {
      border-style: solid;
      border-width: 1px;
      display: inline-block;
      padding: var(--mu-xs) var(--mu-s);
      text-decoration: none;
    }
    & a:where(.prev, .next) {
      border-width: 0;
    }
    & a:hover:not(.prev, .next) {
      background-color: var(--color-light);
      border-color: var(--color-light);
      color: var(--color-dark);
    }
    & a:hover:where(.prev, .next) span {
      font-variation-settings: "wght" 400;
    }
    & .current {
      border-color: var(--color-gray);
      color: var(--color-gray);
    }
  }
}
table {
  border: 0;
}
.creditos-block .wp-block-group figure {
  width: 100%;
  flex-basis: max-content;
}
.data-box {
  border: 1px solid;
  font-family: var(--font-extended);
  font-size: 1.215em;
  font-weight: 900;
  line-height: 1;
  padding: var(--mu-s);
  text-align: center;
  width: fit-content;
  & small {
    display: block;
    font-size: 1rem;
  }
}
.ft-list {
  display: flex;
  flex-flow: row wrap;
  gap: var(--mu-r) var(--mu-l);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  & li {
    display: flex;
    gap: var(--mu-r);
    width: calc(50% - (2 * var(--mu-r)) / 2);
    & div {
      width: 50%;
    }
    & .ft-nomes {
      display: flex;
      flex-grow: 1;
      flex-direction: column;
      gap: 0.5em;
    }
  }
}
.parcerias {
  border-top-width: 1px;
  border-top-style: solid;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--mu-r);
  justify-content: space-between;
  margin-top: var(--mu-l);
  padding-top: var(--mu-r);
  width: 100%;
  & .sponsors-box p {
    margin-block: 0 var(--mu-s);
  }
  & .artistas .wp-block-group__inner-container,
  .sponsors {
    display: flex;
    gap: var(--mu-r);
    list-style: none;
    margin: 0;
    padding: 0;
    & img {
      height: 100%;
      max-height: 6vh;
      object-fit: contain;
      object-position: center;
      width: 100%;
    }
    & a {
      height: 100%;
      width: 100%;
    }
  }
  & .artistas .wp-block-group__inner-container figure {
    aspect-ratio: 1;
    border-radius: 100%;
    overflow: hidden;
    & img {
      object-fit: cover;
      object-position: center;
      height: 100%;
      width: 100%;
    }
  }
}
#searchform {
  & div {
    align-items: center;
    & label {
      color: var(--color-light-op50);
      font-style: italic;
      left: var(--mu-s);
      position: absolute;
    }
    & input {
      min-height: 41px;
    }
    & label:has(+ input:focus, + input:focus-visible, + input:focus-within) {
      color: hsla(0, 0%, 100%, 0);
    }
  }
}
/**
 ** ORGANISMS
 **/
#main-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: var(--mu-r);
  position: sticky;
  transition: all 500ms ease-in-out;
  top: 0;
  z-index: 666;
  & .custom-logo-link {
    z-index: 666;
  }
  & .custom-logo {
    max-height: 2rem;
    width: auto;
  }
  & nav li {
    display: flex;
    align-items: center;
    &:has(.material-symbols-outlined) {
      & a::before {
        content: none;
      }
      & a:hover span {
        font-variation-settings: "wght" 400;
      }
    }
  }
  & nav a {
    font-weight: 900;
    &[href*="kiltfilm.pt"] {
      background-image: url("assets/images/KILTFILM_BRANCO.png");
      background-repeat: no-repeat;
      background-size: contain;
      font-size: 0;
      height: 16px;
      width: 64px;
      &::before {
        content: none;
      }
    }
  }
  &.bg {
    background-color: var(--color-dark-op50);
  }
}
#main-header.light-header.bg {
  background-color: var(--color-light-op50);
}
#main-header.light-header [href*="kiltfilm.pt"] {
  background-image: url("assets/images/KILTFILM_PRETO.png");
}
#main-header .menu-block {
  display: flex;
  align-items: flex-end;
  & nav ul {
    display: flex;
    gap: var(--mu-r);
  }
}
main {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  scroll-margin-top: var(--header-height);
}
main > * {
  padding: var(--mu-l) var(--mu-r);
}
main > hgroup:first-child {
  padding-bottom: 0;
}
main > hgroup:first-child + :where(section, div) {
  padding-top: var(--mu-r);
}
section > *:first-child {
  margin-top: 0;
}
section header {
  align-items: center;
  padding-inline: 0;
}
footer {
  & section {
    padding: var(--mu-l) var(--mu-r);
  }
  &.dark-block {
    padding: 0;
  }

  & .custom-logo {
    max-height: 2rem;
    width: auto;
  }
  & .widgets-section {
    display: flex;
    gap: var(--mu-l);
    & > div {
      flex-grow: 1;
      display: flex;
      flex-wrap: wrap;
      gap: var(--mu-r);
      justify-content: space-between;
    }
    & .menu li + li {
      margin-top: var(--mu-s);
    }
    & .wp-block-social-links {
      margin-block-start: 0;
      margin-block-end: var(--mu-s);
    }
  }
}
.artistas-section h2,
.client-prods h2,
.datas-section h2,
.eventos-section h2,
.ft-section h2,
.produtos-section h2,
.projetos-section h2 {
  display: flex;
  align-items: center;
  gap: var(--mu-s);
}
.artistas-section h2::before {
  content: url("assets/images/triangulo-h-b.svg");
}
.datas-section h2::before {
  content: url("assets/images/triangulo-h-2-b.svg");
}
.datas-section details + details {
  margin-top: var(--mu-r);
}
.datas-section details div {
  display: flex;
  gap: var(--mu-r);
  overflow: auto;
  padding-block: var(--mu-s);
  & span {
    display: inline-block;
  }
  & span:first-child {
    min-width: 50px;
  }
  & span + span {
    border-left-style: solid;
    border-left-width: 1px;
    padding-left: var(--mu-r);
  }
  & + div {
    border-top-style: solid;
    border-top-width: 1px;
  }
}
.datas-section summary {
  border-bottom-style: solid;
  border-bottom-width: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--mu-s);
  & * {
    margin: 0;
    transition: all 500ms ease-in-out;
  }
}
.datas-section details[open] summary span {
  transform: rotate(180deg);
}

.ft-section h2::before {
  content: url("assets/images/rectangulo-v-w.svg");
}
.info-box,
.wp-block-group.info-box .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: var(--mu-r);
  & > * {
    margin: 0;
  }
}
.wp-block-image + .wp-block-group.info-box {
  margin-top: var(--mu-r);
}
.client-prods h2::before,
.eventos-section h2::before,
.produtos-section h2::before,
.projetos-section h2::before {
  content: url("assets/images/triangulo-01-w.svg");
}
.rodape {
  border-top: 1px solid var(--color-light);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--mu-r);
  padding-block: var(--mu-r);
  & > div {
    display: flex;
    gap: 0.5rem;
  }
  & nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    & li + li {
      margin-top: var(--mu-s);
    }
  }
}
.search-block {
  display: grid;
  gap: var(--mu-l);
}
.search-block article {
  display: flex;
  gap: var(--mu-r);
  & figure img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
}
.searchform > div {
  display: flex;
  & input {
    flex-grow: 1;
  }
}
.top-banner {
  height: 40vh;
  overflow: hidden;
  & img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
  }
}
.owl-stage {
  display: flex;
  justify-content: center;
}
.owl-nav,
.owl-dots {
  display: flex;
  width: 100%;
}
.owl-nav {
  justify-content: space-between;
  margin-top: var(--mu-s);
}
.owl-nav button {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: var(--mu-s);
  z-index: 333;
  &.disabled {
    opacity: 0.6;
  }
}
.owl-dots {
  gap: 1em;
  justify-content: center;
  & .active {
    background-color: var(--color-light);
  }
}
.wp-block-group.carousel {
  overflow-x: hidden;
}
.media-section {
  display: flex;
  flex-direction: column;
  gap: var(--mu-r);
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
  & hgroup {
    display: flex;
    justify-content: space-between;
    align-items: first baseline;
  }
  & h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--mu-s);
    &::before {
      content: url("assets/images/triangulo-h-w.svg");
      rotate: 180deg;
    }
  }
  &.video-section {
    min-height: 100vh;
    & h2::before {
      content: url("assets/images/triangulo-h-2-w.svg");
      rotate: 0deg;
    }
  }
  & .full_pack-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--mu-s);
    font-family: var(--font-extended);
    text-transform: uppercase;
    font-weight: bold;
    & .cta {
      font-weight: initial;
    }
  }
  & iframe {
    aspect-ratio: 16 / 9;
    max-width: 100vw;
  }
}
.dark-pattern + .media-section {
  padding-top: var(--mu-l);
}
.artistas-grid {
  grid-template-columns: repeat(2, calc(50% - 0.25rem));
  gap: var(--mu-s);
}
.artistas-grid figure {
  aspect-ratio: 1;
  background-color: var(--color-dark);
  & img {
    opacity: 0.8;
  }
}
.artistas-grid .info-box {
  bottom: 0;
  left: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--mu-r);
  padding: var(--mu-s);
  position: absolute;
  width: 100%;
  & * {
    color: var(--color-light);
  }
  & h2,
  h3 {
    font-family: var(--font-extended);
    font-size: 1em;
    margin: 0;
  }
  & .icon {
    border: 1px solid var(--color-light);
    background-color: var(--color-light);
    overflow: hidden;
    padding: 0.15rem 0.25rem 0 0.15rem;
    transition: all 500ms ease-in-out;
    width: calc(24px + var(--mu-s));
    & span {
      color: var(--color-dark);
      opacity: 1;
    }
    & .rotate {
      transform: rotate(90deg);
    }
  }
}
.creditos-section {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: var(--mu-r);
}
.contatos-box {
  gap: var(--mu-l);
  margin-bottom: 0;
  & .wp-block-column {
    display: flex;
    flex-direction: column;
    row-gap: var(--mu-l);
  }
}
.contatos-box article {
  border-top: 1px solid var(--color-light);
  padding-top: var(--mu-s);
}
.contatos-box h2 {
  font-size: 1.215em;
  margin-bottom: var(--mu-s);
  width: 100%;
}
.contatos-box article h2 + p {
  margin: 0;
}
.eventos-block.d-grid {
  grid-template-columns: 50% 1fr;
  gap: var(--mu-r);
  & article {
    overflow: hidden;
  }
  & .info-box {
    flex-direction: column;
    gap: var(--mu-r);
    & p {
      /*flex-grow: 1;*/
      margin: 0;
    }
  }
  &:not(.current) .info-box {
    border-width: 1px;
    border-style: solid;
    padding: var(--mu-s);
    & h4 {
      font-size: 1.296em;
      text-transform: uppercase;
      font-weight: bold;
    }
  }
  & h4 {
    margin: 0;
  }
}
.eventos-block table {
  margin-top: var(--mu-l);
  width: 100%;
  & tbody {
    display: grid;
    gap: var(--mu-r);
    & tr {
      display: flex;
      align-items: center;
      flex-direction: row;
      gap: 1px var(--mu-r);
      & td {
        font-size: 1.215em;
        padding: 0;
      }
      & td:has(hr) {
        flex-grow: 1;
      }
      & .data-box {
        min-width: 68px;
      }
    }
    & .esgotado * {
      color: var(--color-gray);
      & hr {
        border-color: var(--color-gray);
      }
      & .cta {
        border: 1px solid var(--color-gray);
        font-family: var(--font-extended);
        letter-spacing: 1px;
        min-width: 160px;
        padding: var(--mu-r);
        text-align: center;
        text-transform: uppercase;
      }
    }
  }
}
.eventos-grid {
  grid-template-columns: repeat(2, calc(50% - var(--mu-s)));
  gap: var(--mu-r);
  & + .cta-box {
    margin-top: var(--mu-l);
    text-align: center;
  }
}
.eventos-grid.past-events {
  grid-template-columns: repeat(3, calc((100% / 3) - ((2 * var(--mu-r)) / 3)));
  & h3 {
    font-size: 1em;
  }
}
.eventos-grid article {
  display: flex;
  flex-direction: column;
  & .info-box {
    flex-grow: 1;
    & .cta {
      z-index: 111;
    }
  }
  & .wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--mu-r);
    height: 100%;
    justify-content: space-between;
    padding-top: var(--mu-s);
  }
  & h3 {
    margin: 0;
  }
  & .details {
    display: flex;
    gap: var(--mu-s);
    align-items: center;
    & div:not(.data-box) {
      font-weight: 100;
      font-size: 1.138em;
    }
  }
}
.eventos-grid figure {
  aspect-ratio: 9/16;
  overflow: hidden;
  & img {
    object-fit: cover;
    height: 100%;
  }
}
.passado {
  filter: saturate(0);
}
.media-block {
  flex-wrap: wrap;
  gap: var(--mu-s);
  & > div {
    width: calc((100% / 3) - var(--mu-s));
    & img {
      width: 100%;
    }
    &:not(.foto-full):hover {
      & img {
        opacity: 0.6;
      }
      & > .dashboard .material-symbols-outlined {
        font-size: 200%;
      }
    }
  }
  & .foto-full {
    max-width: unset;
    width: fit-content;
    & figure img {
      max-height: 80vh;
      width: auto;
    }
    & figcaption {
      color: var(--color-light);
    }
  }
  & .dashboard {
    bottom: 0;
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    & button {
      border: 0;
      padding: 0.25em;
    }
  }
}
.foto-full {
  background: none;
  border: 0;
  left: 0;
  padding: 0;
  position: fixed;
  top: 0;
  & .dashboard {
    padding: var(--mu-r);
  }
}
.foto-full::backdrop {
  background-color: var(--color-dark-op60);
}
.produtos-block.owl-carousel.owl-loaded,
.projetos.owl-carousel.owl-loaded {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.produtos-block.owl-carousel.owl-loaded > div {
  width: 100%;
}
.projetos-block {
  & article {
    & > * {
      width: 100%;
    }
    & .img-box {
      aspect-ratio: 16/9;
      overflow: hidden;
    }
    & .info-box {
      border-width: 1px;
      border-style: solid;
      flex-direction: column;
      gap: var(--mu-r);
      padding: var(--mu-r);
      & * {
        margin: 0;
      }
      & .cta {
        margin-top: var(--mu-r);
        z-index: 111;
      }
      & .parcerias {
        border: 0;
        display: flex;
        align-items: center;
        gap: 1em;
        justify-content: flex-start;
        padding: 0;
        & img {
          max-height: 1.5rem;
        }
      }
    }
  }
  & article + article {
    margin-top: var(--mu-r);
  }
}
.projetos.owl-carousel article,
.projetos.owl-carousel .info-box {
  flex-direction: column;
  gap: var(--mu-r);
  height: 100%;
}
.projetos.owl-carousel article {
  display: flex;
  overflow: hidden;
  & > figure {
    aspect-ratio: 4/3;
    overflow: hidden;
  }
}
.projetos.owl-carousel .info-box {
  width: 100%;
  & * {
    margin: 0;
  }
  & .details {
    display: flex;
    flex-direction: column;
    gap: var(--mu-r);
    height: 100%;
    overflow: hidden;
    & p {
      flex-grow: 1;
    }
    & .cta {
      z-index: 111;
    }
  }
}
.produtos-block:not(.owl-carousel) article {
  width: 100%;
  & .info-box {
    border: 1px solid var(--color-light);
    padding: var(--mu-s);
  }
}
.produtos-block.owl-carousel .owl-item {
  display: flex;
  & article {
    display: flex;
    flex-direction: column;
    & .info-box,
    .price {
      flex-grow: 1;
    }
  }
}
.produtos-block article {
  display: flex;
  flex-direction: column;
  & h3 {
    margin: 0;
    font-size: 1.138em;
  }
  & figure {
    aspect-ratio: 1;
    overflow: hidden;
    & img {
      height: 100%;
      object-fit: cover;
      width: 100%;
    }
  }
  & .info-box {
    flex-direction: column;
    flex-grow: 1;
    gap: var(--mu-s);
    padding-top: var(--mu-s);
    & .prod-tag {
      color: var(--color-gray);
      font-family: var(--font-extended);
      font-size: 0.75em;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    & .cta {
      margin-top: var(--mu-r);
      width: 100%;
      z-index: 111;
    }
  }
  & .img-box {
    aspect-ratio: 1;
    & img {
      object-fit: cover;
      height: 100%;
    }
  }
}
.produtos-block .price {
  flex-grow: 1;
}
.produtos-block.d-grid {
  gap: var(--mu-r);
  grid-template-columns: repeat(2, calc((100% - var(--mu-r)) / 2));
}
.produtos-block + .cta-box {
  margin-top: 1rem;
}
/**
 ** TEMPLATES
 **/
.page-template-page_lateral-title main {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  column-gap: var(--mu-xl);
  & h1 {
    margin: 0;
  }
}
.page-template-page_text-only h1::before {
  content: none;
}
.page-template-page_text-only main {
  margin-inline: auto;
  max-width: 800px;
}
.post-type-archive,
.woocommerce-page.archive,
.woocommerce-account,
.woocommerce-cart {
  & hgroup {
    padding-bottom: 0;
  }
  & h1 {
    font-family: var(--font-extended);
    font-size: 1.383em;
    font-weight: bold;
  }
  & h2 {
    font-size: 1.296em;
  }
}
.woocommerce-page.archive {
  & hgroup {
    display: flex;
    align-items: center;
    column-gap: var(--mu-l);
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 0;
    & h1 {
      flex-grow: 1;
    }
    & .woocommerce-ordering {
      margin: 0;
    }
    & .woocommerce-notices-wrapper {
      width: 100%;
    }
  }
}
.single-product.single-format-video .wrapper {
  width: 100%;
}
.single-product.single-format-video h1::before {
  content: none;
}
.single-product.single-format-video .product {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--mu-r);
  & .iframe-box,
  & .feat-img,
  & iframe {
    aspect-ratio: 16 / 9;
    max-height: calc(100svh - var(--header-height) - var(--mu-xl));
  }
  & .iframe-box {
    width: 100%;
    height: 100%;
    & iframe {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }
  }
  & .feat-img {
    max-height: calc(75svh - var(--header-height) - var(--mu-xl));
    overflow: hidden;
    & img {
      object-fit: cover;
      object-position: center;
      height: 100%;
      width: 100%;
    }
  }
  & .post-cat {
    font-family: var(--font-extended);
    text-transform: uppercase;
  }
  & .info-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--mu-r);
    & .prod-attributes {
      display: flex;
      gap: var(--mu-r);
    }
    & span {
      display: flex;
      align-items: center;
      gap: var(--mu-xs);
    }
    & span[class*="att-pa_"]::before {
      font-family: var(--font-icons);
      font-size: 150%;
      font-weight: 200;
    }
    & .att-pa_resolucao::before {
      content: "\e04b";
    }
    & .att-pa_duracao::before {
      content: "\e8b5";
    }
  }
  & .f-extended {
    margin-top: var(--mu-l);
    text-transform: none;
  }
  & .purchase-box {
    align-items: center;
    justify-content: flex-end;
    gap: var(--mu-r);
    border-top-style: solid;
    border-top-width: 1px;
    padding-top: var(--mu-r);
    & > * {
      margin: 0;
      padding: 0;
    }
    & form {
      width: auto;
    }
  }
}

/**
 ** PAGES
 **/

/* Homepage */
.home #main-header {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 666;
}
.home main {
  padding-inline: 0;
}
.home main > section:not(.light-block) {
  background-color: var(--color-dark);
}
.home main > section {
  display: flex;
  flex-direction: column;
  gap: var(--mu-l);
  justify-content: center;
  min-height: 100vh;
  padding: var(--mu-r);
  padding-top: var(--header-height);
  &:has(> .pos-top) {
    padding-top: calc(var(--header-height) + var(--mu-r));
  }
  &:has(> .pos-bottom) {
    padding-bottom: calc(15vw + 1.6rem);
  }
}
.home .carousel-block {
  padding: 0;
  & .carousel .wp-block-group__inner-container {
    & header {
      bottom: 0;
      padding: var(--mu-l);
      position: absolute;
      width: 100%;
      z-index: 1;
      & .cta .wp-block-button__link {
        background-color: var(--color-light);
        border-color: var(--color-light);
        color: var(--color-dark);
        min-width: 170px;
      }
    }
    & figure {
      height: 100%;
      overflow: hidden;
      & a {
        height: 100%;
        width: 100%;
      }
      & img {
        height: 100%;
        object-fit: cover;
        object-position: top center;
        width: 100%;
      }
    }
  }
  & .owl-nav,
  .owl-dots {
    height: 0;
    position: absolute;
    width: 100%;
  }
  & .owl-nav {
    align-items: center;
    bottom: 50%;
    & button {
      border-style: solid;
      border-width: 1px;
    }
  }
  & .owl-dots {
    align-items: flex-end;
    bottom: var(--mu-s);
    transform: none;
  }
}
.home .eventos-section {
  padding-bottom: calc(5vw + var(--mu-l));
}
/* Artistas */
.post-type-archive-kilt_artistas h1::before {
  content: url("assets/images/triangulo-h-b.svg");
}
/* Artista */
.single-kilt_artistas {
  & #main-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
  }
  & main {
    min-height: calc(100vh - var(--footer-height));
  }
  & h1::before {
    content: none;
  }
  & .intro-section {
    padding: 0;
    & .content {
      padding: var(--mu-r);
    }
    & .top-banner + .content .feat-img img {
      margin-top: -50%;
    }
    & .feat-img {
      height: 150px;
      width: 150px;
      margin-inline: auto;
      margin-bottom: var(--mu-r);
      & img {
        border-radius: 100%;
        object-fit: cover;
        height: 100%;
        width: 100%;
      }
    }
  }
  & .intro-section:first-child {
    padding-top: var(--header-height);
  }
  & h2 {
    display: flex;
    align-items: center;
    gap: var(--mu-s);
  }
  & .eventos-section h2::before {
    content: url("assets/images/triangulo-v-b.svg");
  }
	& .eventos-section.light-block .info-box {
		border-color:var(--color-dark);
	}

}

/* Eventos */
.post-type-archive-kilt_eventos h2 {
  font-family: var(--font-main);
  font-size: 1.296em;
  text-transform: none;
}
.post-type-archive-kilt_eventos h2:first-child {
  margin-top: 0;
  margin-bottom: var(--mu-l);
}

/* Evento */
.single-kilt_eventos #main-header {
  background-color: var(--color-dark-op50);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
}
.single-kilt_eventos main {
  min-height: calc(100vh - var(--footer-height));
}
.single-kilt_eventos main > * {
  padding: 0;
}
.single-kilt_eventos .feat-img {
  max-height: calc(100svh / 3);
  overflow: hidden;
}
.single-kilt_eventos h1::before {
  content: none;
}
.single-kilt_eventos .wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  & section {
    padding: var(--mu-l) var(--mu-r);
    width: 100%;
  }
  & .no-current-events ~ .intro-section {
    order: -1;
  }
  & .media-section {
    overflow: initial;
  }
}
.single-kilt_eventos .intro-section .subtitle {
  font-size: 1.383em;
  margin-block: var(--mu-r) 0;
}
.single-kilt_eventos .feat-img img {
  object-fit: cover;
  height: 100%;
}
.single-kilt_eventos .intro-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  & hgroup {
    flex-direction: column;
  }
}

/* Projeto */
.single-kilt_projetos #main-header {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 666;
}
.single-kilt_projetos main {
  min-height: calc(100vh - var(--footer-height));
}
.single-kilt_projetos h1::before {
  content: none;
}
.single-kilt_projetos .intro-section {
  padding: 0;
  & .top-banner {
    height: 40vh;
    overflow: hidden;
    & img {
      height: 100%;
      object-fit: cover;
      object-position: center;
      width: 100%;
    }
  }
  & .wrapper {
    padding: var(--mu-r);
  }
}

/* Produto */
.single-product h1 {
  align-items: baseline;
}
.atributos-block {
  margin-bottom: var(--mu-l);
  & button,
  & summary {
    font-size: 1em;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  & button:not(.active),
  & details:not[open] summary {
    color: var(--color-gray);
    border-color: var(--color-gray);
  }
  & details :where(summary, div) {
    border-width: 1px;
    border-style: solid;
    padding: var(--mu-s);
  }
  & summary {
    font-family: var(--font-extended);
  }
}
.tabs-toggles-box {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  & li {
    flex-grow: 1;
  }
  & button {
    height: 100%;
    padding: var(--mu-s);
    width: 100%;
  }
  & button:not(.active) {
    color: var(--color-gray);
    border-color: var(--color-gray);
  }
  & .active {
    font-weight: 400;
  }
}

/* Sobre a Kilt */
.sobre-a-kilt #main-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}
.sobre-a-kilt .feat-img {
  background: var(--color-dark);
  height: 100vh;
  overflow: hidden;
  padding: 0;
  position: fixed;
  inset: 0;
  & img {
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    width: 100%;
  }
}
.sobre-a-kilt h1 {
  margin-top: calc(100svh - var(--header-height) - var(--mu-xl));
  margin-bottom: var(--mu-xl);
  transition: all 500ms ease-in-out;
  &::before {
    content: url("assets/images/triangulo-v-w.svg");
  }
  & button {
    border-width: 0;
    font-size: unset;
    font-weight: unset;
    display: flex;
    align-items: center;
    gap: var(--mu-s);
    padding: 0;
    text-transform: unset;
    & span {
      bottom: 0;
      font-size: inherit;
      rotate: 180deg;
      transition: all 250ms ease-in-out;
    }
    &:hover {
      background-color: initial;
      color: var(--color-light);
      & span {
        color: var(--color-light);
        bottom: calc(var(--mu-s) * -1);
      }
    }
  }
}
.sobre-a-kilt h1:has(.scroll) {
  margin-block: var(--mu-l) var(--mu-r);
  & span {
    rotate: 90deg;
  }
  & button:hover span {
    bottom: var(--mu-s);
  }
}
.sobre-a-kilt .wrapper {
  background-color: var(--color-dark);
  padding: var(--mu-r);
  & p:first-child {
    margin-top: 0;
  }
}

#menu-menu-lateral-sobre-a-kilt {
  display: flex;
  flex-direction: column;
  & li {
    &::before {
      content: "";
      background-color: var(--color-light);
      position: absolute;
      top: 0;
      left: 0;
      transition: all 500ms ease-in-out;
      width: 0;
      height: 100%;
    }
    &:hover::before {
      width: 100%;
    }
  }
}

#menu-menu-lateral-sobre-a-kilt a {
  border-top-width: 1px;
  border-top-style: solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.215em;
  padding-block: var(--mu-s) var(--mu-r);
  transition: all 500ms ease-in-out;

  &::after {
    content: "\e5c8";
    font-family: var(--font-icons);
  }
  &[href*="kiltfilm.pt"] {
    border-color: var(--color-light);
    color: hsla(0, 0%, 100%, 0);
    width: 100%;
    height: calc(34px + var(--mu-s) + var(--mu-r) + 1px);
    &::before {
      content: "";
      background: none;
      background-image: url("assets/images/KILTFILM_BRANCO.png");
      background-repeat: no-repeat;
      background-size: contain;
      position: absolute;
      top: var(--mu-s);
      left: 2px;
      width: 100%;
      height: 34px;
    }
    &::after {
      color: var(--color-light);
    }
    &:hover {
      color: hsla(0, 0%, 100%, 0);
      &::before {
        background-image: url("assets/images/KILTFILM_PRETO.png");
      }
      &::after {
        color: var(--color-dark);
      }
    }
  }
}
#menu-menu-lateral-sobre-a-kilt a:hover {
  color: var(--color-dark);
}
.sobre-a-kilt aside .subtitle {
  margin-bottom: 0;
}
.sobre-a-kilt .sobre-widgets {
  & > div {
    border-top-width: 1px;
    border-top-style: solid;
    padding-top: var(--mu-s);
  }
  & .wp-block-columns {
    margin: 0;
  }
  & .wp-block-social-links {
    margin: 0;
  }
}
/* Account */
.woocommerce-account main .woocommerce {
  display: flex;
  flex-direction: row;
  gap: var(--mu-r);
  & h2 {
    font-size: 1.215em;
  }
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background-color: var(--color-dark);
  color: var(--color-light);
}

/* 404 */
.error404 main {
  background-image: url("assets/images/kilt-404.svg");
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: var(--mu-r);
}
.error404 .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  margin-inline: auto;
}

/**
 ** MEDIA QUERIES
 **/
@media screen and (orientation: portrait) {
  .error404 main {
    background-position-y: 0;
    background-size: calc(100vw - 2 * var(--mu-r)) 100%;
  }
  .error404 .wrapper {
    margin-top: 30svh;
  }
}
@media screen and (min-width: 420px) and (max-width: 599px) {
  .contatos-box article > div {
    display: flex;
    align-items: baseline;
    gap: var(--mu-r);
    & h2,
    & p {
      width: 50%;
      margin-bottom: 0;
    }
  }
}
@media screen and (max-width: 599px) {
  .light-pattern,
  .dark-pattern {
    height: 15vw;
  }
  .tabs-toggles-box {
    display: none;
  }
  footer {
    & .widgets-section {
      & > div {
        & article:last-child {
          width: 100%;
          & .wp-block-group__inner-container {
            display: flex;
            align-items: center;
            gap: var(--mu-l);
            justify-content: flex-end;
          }
        }
      }
    }
  }
  .artistas-grid .info-box {
    align-items: flex-end;
    height: 100%;
    & .icon {
      background: none;
      position: absolute;
      top: var(--mu-s);
      right: var(--mu-s);
      & span {
        color: var(--color-light);
      }
    }
  }
  .eventos-block table tr {
    flex-wrap: wrap;
    & td:not(:first-child, .cta-box) {
      flex-grow: 1;
    }
    & td:has(hr) {
      display: none;
    }
    td.cta-box {
      max-width: 250px;
    }
  }
  .media-block > div {
    flex-grow: 1;
  }
	.credits {
		position: absolute;
		bottom: var(--mu-s);
		right: var(--mu-r);
		& img {
			width:1.4rem;
		}
	}
  /**
  ** PAGES
  **/
  .home .carousel-block {
    min-height: unset;
    & .carousel .wp-block-group__inner-container {
      aspect-ratio: 1;
    }
  }
  .home .eventos-section {
    padding-bottom: calc(15vw + var(--mu-l));
  }
  .home hgroup div {
    width: 100%;
  }
  .single-kilt_artistas .eventos-block.d-grid {
    grid-template-columns: 1fr;
    & figure {
      width: 50%;
      max-height: 50svh;
    }
    & table tbody tr {
      & td:last-child {
        margin-top: var(--mu-r);
      }
    }
  }
  .sobre-a-kilt .wrapper {
    margin-inline: -(var(--mu-r));
    margin-bottom: -(var(--mu-l));
  }
}
@media screen and (min-width: 600px) {
  .cta.icon:not(.full-width) {
    width: fit-content;
  }
  .owl-dots {
    position: absolute;
    bottom: 20px;
    transform: translateY(50%);
  }
  .contatos-box h2 {
    font-size: 1.383em;
  }
  .atributos-block summary {
    display: none;
  }
  .media-block > div {
    width: calc((100% - (var(--mu-s) * 3)) / 4);
  }
  .media-block .foto-full {
    & figure {
      max-width: calc(100% - 48px);
    }
    & .dashboard {
      background: var(--color-dark);
      border: 1px solid var(--color-light);
      flex-direction: column;
      position: absolute;
      right: 0;
      top: 0;
      height: fit-content;
      width: auto;
      padding: var(--mu-s);
    }
  }

  .produtos-block:not(.owl-carousel) article {
    & .info-box {
      padding: 1rem;
    }
  }
  body:not(.single-kilt_eventos) .produtos-block.d-grid {
    grid-template-columns: repeat(3, calc((100% - 2 * var(--mu-r)) / 3));
  }

  section > hgroup {
    display: flex;
    justify-content: space-between;
  }

  footer .widgets-section article + article {
    margin-top: 0;
  }
  .widgets-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .rodape {
    flex-direction: row;
	  & .copyright {
		  flex-grow:1;
	  }
  }
  .rodape nav ul {
    display: flex;
    gap: 1em;
    & li + li {
      margin-top: 0;
    }
  }
  .contatos-box .wp-block-column {
    row-gap: 4rem;
  }
  .creditos-section {
    flex-direction: row;
    & hgroup {
      width: 25%;
      & h2 {
        margin: 0;
      }
    }
  }
  .creditos-block {
    width: 75%;
  }
  .eventos-block.current {
    grid-template-columns: 25% 1fr;
    gap: 2rem;
  }

  .eventos-grid.past-events {
    grid-template-columns: repeat(6, calc((100% - ((5 * 2rem) / 6))) / 6);
  }

  .ft-list {
	  font-size:.8em;
    & li {
      gap: var(--mu-r);
    }
  }
  body:not(.single-kilt_eventos) .media-section .full_pack-box {
    position: absolute;
    right: var(--mu-r);
    top: var(--header-height);
  }
  .projetos-block {
    & article {
      display: flex;
      & > *:not(.permalink) {
        width: 50%;
      }
      & .info-box {
        flex-direction: column;
        justify-content: flex-end;
      }
    }
  }
  .projetos-block article:nth-of-type(even) {
    flex-direction: row-reverse;
  }

  .page-template-page_lateral-title main {
    flex-direction: row;
    & > header {
      width: 25%;
    }
  }
  .page-template-page_text-only main {
    margin-inline: auto;
    max-width: 800px;
  }

  /**
  ** PAGES
  **/

  /* Homepage */
  .home main > section {
    padding: var(--header-height) 2rem 4rem 2rem;
    &:has(> .pos-top) {
      padding-top: calc(var(--header-height) + 2rem);
    }
    &:has(> .pos-bottom) {
      padding-bottom: calc(5vw + 1.6rem);
    }
    & hgroup {
      flex-wrap: nowrap;
      gap: 2rem;
    }
  }
  .home {
    & .cta-box {
      margin: 0;
      position: absolute;
      right: 2rem;
      top: calc(var(--header-height) - var(--mu-s));
    }
    & .pos-top ~ .cta-box {
      top: calc(var(--header-height) + 2rem);
      transform: translateY(calc(var(--mu-s) * -1));
    }
  }
  .home .carousel-block {
    position: sticky;
    top: 0;
    & .carousel .wp-block-group__inner-container {
      height: 100vh;
    }
  }

  /* Artista */
  .single-kilt_artistas {
    & .intro-section .content {
      padding: 2rem;
    }
  }

  /* Produto */
  .atributos-block {
    float: right;
    padding-left: 2rem;
    width: 75%;
  }

  /* Sobre a Kilt */
  .sobre-a-kilt .wrapper {
    display: flex;
    column-gap: 3rem;
    padding: 4rem 2rem;
    & > div {
      width: 100%;
    }
    & aside {
      max-width: 360px;
      width: 30%;
    }
  }
  /* Contatos */
  .contatos-box article h2 {
    margin-block: 0 var(--mu-r);
  }
}
@media screen and (min-width: 600px) and (orientation: landscape) {
  .media-section .owl-item {
    display: flex;
    align-items: center;
    & .wp-block-embed__wrapper iframe {
      height: calc(90vh - var(--header-height) - 48px - var(--mu-l));
      width: auto;
    }
  }
  .media-section .owl-item:not(.active.center) .wp-block-embed__wrapper iframe {
    height: calc(70vh - var(--header-height) - 48px - var(--mu-l));
    width: auto;
    opacity: 0.6;
  }

  /**
  ** PAGES
  **/
  .error404 .wrapper {
    padding-top: 20svh;
  }
}
@media screen and (max-width: 768px) {
  .woocommerce-account main .woocommerce {
    flex-direction: column;
  }
  .woocommerce-account div[class*="u-column"] + div[class*="u-column"],
  .woocommerce-account
    div[class*="woocommerce-column--"]
    + div[class*="woocommerce-column--"] {
    margin-top: var(--mu-r);
  }
}
@media screen and (max-width: 781px) {
  footer .widgets-section {
    flex-direction: column;
  }
  .eventos-block.wp-block-columns:not(.is-not-stacked-on-mobile)
    > .wp-block-column {
    flex-basis: calc(50% - 1rem) !important;
  }
}
@media screen and (min-width: 800px) {
  /**
  ** PAGES
  **/
  /** Produto **/
  .woocommerce div.product form.cart::after {
    content: none;
  }
  .variations_form {
    display: flex;
    gap: var(--mu-r);
    align-items: flex-start;
    & .single_variation_wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      & .woocommerce-variation-add-to-cart {
        order: -1;
      }
    }
  }
  /* Projeto */
  .single-kilt_projetos .intro-section {
    min-height: 90vh;
  }
  .single-kilt_projetos .intro-section .wrapper {
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse;
    gap: var(--mu-l);
    margin-inline: auto;
    max-width: calc(58vw + 321px + var(--mu-l));
    padding: var(--mu-r);
    & .content {
      width: 100%;
      max-width: 58vw;
    }
    & .parcerias {
      border-color: inherit;
      border-width: 1px;
      border-style: solid;
      flex-direction: column;
      flex-shrink: 1;
      margin-top: 0;
      max-width: 321px;
      padding: var(--mu-r);
      width: auto;
    }
  }

  /* 404 */
  .error404 .wrapper {
    max-width: 67vw;
  }
}
@media screen and (min-width: 800px) and (orientation: landscape) {
  /* Evento */
  .single-kilt_eventos main {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    overflow: auto;
    & .feat-img {
      aspect-ratio: 9 / 12;
      max-height: none;
      position: sticky;
      top: 0;
    }
    & .wrapper section {
      padding-left: 4rem;
    }
    & .intro-section .subtitle {
      margin-top: var(--mu-s);
    }
    & .datas-section:first-child {
      margin-top: var(--header-height);
    }
  }
  .single-kilt_eventos section.no-current-events ~ .intro-section {
    min-height: 100vh;
  }
  .single-kilt_eventos .intro-section hgroup {
    display: contents;
  }
}
@media screen and (max-width: 1023px) {
  .light-page #header-nav {
    background-color: var(--color-light);
  }
  .nav-toggle.active span {
    left: 4px;
    width: 0;
    &:first-child {
      rotate: 45deg;
      top: 0;
      width: 2.6rem;
    }
    &:last-child {
      rotate: -45deg;
      width: 2.6rem;
    }
  }
  #main-header nav a[href*="kiltfilm.pt"] {
    width: 128px;
    height: 32px;
  }
  #header-nav {
    background: var(--color-dark);
    overflow: auto;
    padding: var(--header-height) var(--mu-r) var(--mu-r);
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    transition: all 500ms ease-in-out;
    width: 100%;
    height: 100%;
    & ul {
      flex-direction: column;
    }
    & a,
    & .material-symbols-outlined {
      font-size: 200%;
    }
  }
  #header-nav.open {
    transform: translateY(0);
  }
  .search-block article > * {
    width: 50%;
    & figure {
      height: 100%;
    }
  }
}
@media screen and (min-width: 1024px) {
  :root {
    --mu-xs: 0.5rem;
    --mu-s: 1rem;
    --mu-r: 2rem;
    --mu-l: 4rem;
    --mu-xl: 6rem;
  }
  a.cta,
  .wp-block-button.cta .wp-block-button__link,
  a.cta.icon,
  .wp-block-button.cta.icon .wp-block-button__link {
    gap: var(--mu-xs);
  }
  input,
  select {
    padding: var(--mu-xs);
  }
  .data-box {
    padding: var(--mu-xs);
  }
  .wp-singular:not(.single-kilt_eventos) .ft-section {
    display: flex;
    align-items: flex-start;
    gap: var(--mu-r);
  }
  .wp-singular:not(.single-kilt_eventos) .ft-list {
    gap: var(--mu-s);
    & li {
      width: calc(25% - (3 * var(--mu-r)) / 4);
      & div {
        width: 35%;
      }
    }
  }

  .info-box,
  .wp-block-group.info-box .wp-block-group__inner-container {
    gap: var(--mu-s);
  }

  .datas-section details + details {
    margin-top: var(--mu-s);
  }
  .datas-section summary {
    padding-bottom: var(--mu-xs);
  }

  footer {
    & section {
      padding: var(--mu-r);
    }
    & .widgets-section {
      & > div {
        gap: var(--mu-s);
      }
    }
  }

  #main-header {
    padding-block: var(--mu-s);
    & .menu-block {
      & button {
        display: none;
      }
      & nav ul {
        gap: var(--mu-s);
      }
    }

    & li:has(a[href*="https://kiltfilm.pt/"])
    {
		border-left-width: 1px;
        border-left-style: solid;
        margin-left: 1rem;
        padding-left: 2rem;
    }
	  & li a:has(img)::before{
		  content:none;
	  }
  }
  .artistas-grid {
    grid-template-columns: repeat(4, calc(25% - ((3 * var(--mu-s)) / 4)));
  }
  .artistas-grid .info-box .icon {
    width: calc(24px + var(--mu-xs));
  }
  .artistas-grid article:not(:hover) .icon {
    background: none;
    padding-inline: 0.25rem;
    width: 0;
    & span {
      opacity: 0;
    }
  }
  .eventos-block table {
    & tbody {
      gap: var(--mu-s);
      & .esgotado .cta {
        padding: var(--mu-s);
      }
    }
  }
  .eventos-block.d-grid {
    &:not(.current) {
      & .info-box {
        border: 1px solid var(--color-light);
        background-color: var(--color-dark);
        height: 0;
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        transform: translateY(101%);
        transition: all 500ms ease-in-out;
        & * {
          color: var(--color-light);
          border-color: var(--color-light);
        }
        & h4 {
          display: flex;
          align-items: center;
          flex-grow: 1;
        }
      }
      & article:hover .info-box {
        height: 100%;
        transform: translateY(0);
      }
    }
  }
  .eventos-grid {
    grid-template-columns: repeat(4, calc(25% - ((3 * var(--mu-r)) / 4)));
  }
  .eventos-grid article:not(:hover) .wrapper {
    transform: translateY(101%);
  }
  .eventos-grid article {
    & .info-box {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow-y: hidden;
    }
    & .details {
      gap: var(--mu-xs);
    }
    & .wrapper {
      background: var(--color-dark);
      border: 1px solid var(--color-light);
      padding: var(--mu-s);
      transition: all 500ms ease-in-out;
    }
  }
  .media-block > div {
    width: calc((100% - (var(--mu-s) * 5)) / 6);
  }

  .media-section {
    & .foto-full .dashboard,
    & .full_pack-box a.cta.icon {
      padding: var(--mu-xs);
    }
  }
  body:not(.single-kilt_eventos) .produtos-block.d-grid {
    grid-template-columns: repeat(4, calc((100% - 3 * var(--mu-r)) / 4));
  }
  .produtos-block article .info-box .cta {
    margin-top: var(--mu-s);
  }
  .projetos.owl-carousel article {
    & .info-box {
      border: 1px solid hsla(0, 0%, 0%, 0);
      background: none;
      height: 0;
      justify-content: flex-end;
      position: absolute;
      bottom: 0;
      left: 0;
      padding: 1rem;
      transition: all 500ms ease-in-out;
    }
  }
  .projetos.owl-carousel article:hover {
    & .info-box {
      background-color: var(--color-dark);
      border-color: var(--color-light);
      height: 100%;
    }
  }
  .projetos-block article .info-box {
    gap: var(--mu-s);
    & .cta {
      margin-top: var(--mu-s);
    }
  }
  .rodape {
    padding-block: var(--mu-s);
  }
  .search-block {
    grid-template-columns: repeat(4, calc((100% - (3 * var(--mu-r))) / 4));
    gap: var(--mu-r);
    & article {
      flex-direction: column;
    }
    & figure {
      aspect-ratio: 1;
      margin-bottom: var(--mu-s);
      & img {
        object-fit: cover;
        height: 100%;
      }
    }
    & .info-box {
      display: flex;
      flex-direction: column;
      gap: var(--mu-s);
    }
  }

  /**
  ** PAGES
  **/
  /* Homepage */
  .home .carousel-block .carousel .wp-block-group__inner-container header {
    padding: calc(var(--mu-s) * 3);
  }
  .home .eventos-grid {
    grid-template-columns: repeat(6, calc((100% - (5 * var(--mu-r))) / 6));
    flex-grow: 1;
    align-content: center;
    & a.cta.icon {
      padding: var(--mu-xs);
    }
  }
  /* Artista */
  .single-kilt_artistas {
    & .intro-section .content {
      max-width: 58vw;
      margin-inline: auto;
    }
    & .feat-img {
      position: absolute;
      left: 0;
      transform: translateX(-100%);
    }
  }
  .single-kilt_projetos .intro-section .wrapper .parcerias {
    padding: var(--mu-s);
  }

  /* Evento */
  .post-type-archive-kilt_eventos h2:first-child {
    margin-bottom: var(--mu-r);
  }
  .single-product.single-format-video .product .info-box {
    margin-bottom: var(--mu-s);
  }
  .single-product.single-format-video #primary.content-area {
    margin-inline: auto;
    max-width: 65vw;
    padding-inline: 0;
  }
  .single-product.single-format-video .wrapper {
    padding-left: calc(54px + var(--mu-s));
  }
  .single-product.single-format-video .wrapper::before {
    content: url("assets/images/triangulo-h-2-w.svg");
    position: absolute;
    top: 0;
    left: 0;
  }
}
@media screen and (min-width: 1280px) {
  /*** Typography elements ***/
  h1 {
    font-size: 2.986em;
  }
  h2 {
    font-size: 2.488em;
  }
  h3 {
    font-size: 2.074em;
  }
  h4 {
    font-size: 1.728em;
  }
  h5 {
    font-size: 1.44em;
  }
  h6 {
    font-size: 1.2em;
  }
  p {
    font-size: 120%;
  }
  small,
  .small {
    font-size: 0.833em;
  }
  .x-small {
    font-size: 0.694em;
  }
  .post-cat {
    font-size: 1.44em;
  }
  .wp-block-image + .wp-block-group.info-box {
    margin-top: var(--mu-s);
  }
  .contatos-box article {
    padding-top: var(--mu-xs);
    & h2 {
      font-size: 1.728em;
      margin-bottom: var(--mu-xs);
    }
  }
  .ft-section h2 {
    align-items: flex-start;
  }
  .data-box,
  .eventos-block.d-grid:not(.current) .info-box h4 {
    font-size: 2.074em;
  }
  .eventos-grid article {
    & .details {
      align-items: center;
      & div:not(.data-box) {
        font-size: 1.44em;
      }
    }
    & h2,
    h3 {
      font-size: 1.296em;
    }
  }
  .eventos-block table tbody tr td {
    font-size: 1.215em;
  }
  .media-section
    > div:not(.foto-full):hover
    > .dashboard
    .material-symbols-outlined {
    font-size: 300%;
  }
  .media-block > div {
    width: calc((100% - (var(--mu-s) * 9)) / 10);
  }

  body:not(.single-kilt_eventos) .produtos-block.d-grid {
    grid-template-columns: repeat(6, calc((100% - 5 * var(--mu-r)) / 6));
  }
  .produtos-block article h3,
  .woocommerce-shop h3.wp-block-post-title {
    font-size: 1.44em;
  }

  .post-type-archive,
  .woocommerce-page.archive,
  .woocommerce-account,
  .woocommerce-cart {
    & h1 {
      font-size: 2.488em;
    }
    & div:not(.artistas-grid) ~ h2 {
      font-size: 2.074em;
    }
  }

  /**
  ** TEMPLATES
  **/
  .single-kilt_eventos .produtos-block.d-grid {
    grid-template-columns: repeat(4, calc((100% - 3rem) / 4));
  }

  /**
  ** PAGES
  **/
  #menu-menu-lateral-sobre-a-kilt a,
  .sobre-a-kilt aside .subtitle {
    font-size: 1.728em;
  }
  .single-kilt_eventos .intro-section .subtitle {
    font-size: 2.488em;
  }
  .single-kilt_eventos .media-section .full_pack-box {
    position: absolute;
    right: var(--mu-r);
    top: var(--header-height);
  }
  .single-kilt_eventos .ft-section {
    display: flex;
    align-items: flex-start;
    gap: var(--mu-r);
  }
  .single-kilt_eventos .ft-list {
    gap: var(--mu-s);
    & li {
      width: calc(25% - (3 * var(--mu-r)) / 4);
      & div {
        width: 35%;
      }
    }
  }
}
