/*
 Theme Name:   tandem
 Theme URI:    https://tandem.blog
 Description:  Default GeneratePress child theme
 Author:       tandem
 Author URI:   https://tandem.blog
 Template:     generatepress
 Version:      0.1
*/

body {
	overflow-x: hidden;
}


/* El teu div contenidor del logotip */
.mis-logo {
  width: 100%; /* El JavaScript modificarà això dinàmicament amb l'scroll */
  max-width: 172px; /* Opcional: defineix la mida màxima real que vols que tingui a dalt de tot */
  margin: 0 auto; /* Centra el div a la capçalera si és necessari */
  
  /* Optimitza el rendiment de l'animació contínua */
  will-change: width; 
}

/* Forcem que la imatge de dins s'adapti sempre a la mida del div .mis-logo */
.mis-logo img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* idiomes */

.trp-language-switcher.trp-ls-dropdown.trp-shortcode-switcher.trp-shortcode-overlay.trp-open-on-hover {
	margin-top: 3px;
}

.trp-switcher-dropdown-list {
	background: black;
}



/* VIDEO */
/*
.nk-awb-wrap.nk-awb-rendered {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: grayscale(100%);
}
*/

/* graella */
/* icona-tipologia */

.icona-tipologia img {
	height: 1.8rem;
	padding: 0.3rem 0.6rem;
	background: var(--accent);
	border-radius: 0.2rem;
	display: flex;
	align-content: center;
	align-items: center;
}

/* antic */

header {
  z-index: 3;
  padding: 0 20px;
}

.frase h2 {
	font-size: 6vh !important;
}

.detall_titol h2 {
	font-size: 26px !important;
}

.gb-highlight {
	background: yellow;
	padding: 3px 6px;
}


/* animació 
.typed-wrapper {
	color: #00ffd2;
}
*/



/* graella masonry */

#page .has-masonry {
    display: block;
    font-size: 0px;
	gap: 2rem;
}

#page .has-masonry > .gb-loop-item {
    width: unset !important;
    margin-bottom: 3rem !important;
    display: inline-block !important;
}

#page .has-masonry > .mi-element-estatic {
    box-sizing: border-box;
    overflow: hidden;
	width: 100% !important;
}

@media (min-width: 1024px) {
    #page .has-masonry {
        column-count: 3;
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    #page .has-masonry {
        column-count: 2;
    }
}
@media (max-width: 768px) {
    #page .has-masonry {
        column-count: 1;
    }
}


/* contingut postal graella */


.etiquetes span {
    background: var(--contrast);
    padding: 0.2rem 0.8rem;
    margin-bottom: 0.3rem;
    border-radius: 0.2rem;
    font-size: 1rem;
}


.icona_graella img {
	width: 15px;
}


/* contingut detall workshop */



.container-titol h1{
	color: var(--base-3);
}



/* cta */

#cta {
	padding-top: 10rem;
	margin-top: -10rem;
}


/* font size */
.anunci {
	font-size: clamp(2rem, calc(0.273rem + 3.636vw), 5rem);
	line-height: 85%;
}


/* amaga si és buit */



.caixa_detalls:has(.detall_taller:empty) {
	display: none;
}


.posicio-cta {
  grid-column-start: 2 !important;
  grid-column-end: 3 !important;
  grid-row-start: 2 !important;
  grid-row-end: 3 !important;
}


/* calendar */

.icon_date_link svg {
	width: 1.1rem;
	opacity: 0;
}

.icon_date_link:hover svg {
	width: 1.1rem;
	opacity: 1;
}

/* anima */

.anima {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease !important;
}

.anima.is-visible {
  opacity: 1;
  transform: translateY(0);
}



.has-inline-color {
  position: relative;
	padding: 0 3px;
	display: inline-block;
	z-index: 2;
}

.has-inline-color:before {
  background-color: var(--accent-2);
  content: "";
  position: absolute;
  width: calc(100% + 4px);
  height: 60%;
  left: -2px;
  bottom: 0;
  z-index: -1;
  transform: skew(2deg, 1deg) rotate(-2deg) translate(1px, -10px);
}



.cs-title-wrap {
  position: relative;
  font-family: "Safiro", sans-serif;
  font-weight: 600;
  line-height: 1.1;
}

.cs-title-original {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.cs-title-scramble {
  margin: 0;
}

.cs-title-scramble span {
  word-break: break-word;
}

#cs-scramble-cursor {
  display: inline-block;
  height: 0.6em;
  width: auto;
  vertical-align: middle;
}

#cs-scramble-cursor svg {
	width: 1rem;
	height: auto;
}

/* mood */

.wp-block-tandem-mood-board-item {cursor: all-scroll;}
