/*
Theme Name: Cal Fregues
Author: uzero
Author URI: https://uzero.io/
Description: Theme developed for Cal Fregues
Version: 0.3.1
*/
:root {
  touch-action: pan-x pan-y;
  height: 100%;
}

*:focus {
  outline: none;
}
body{
  overflow-x: hidden;
}
/* html {
  scroll-behavior: smooth;
} */
#content {
  overflow-x: hidden;
}

p {
  z-index: 1;
  position: relative;
}

a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

}
:root :where(a:where(:not(.wp-element-button))){
text-decoration: none;
}
#content {
  margin-top: -1px;
}
#header-menu-wrapper{
  z-index: 400;
}
.custom-list,
.graella-mestre-item-info ul,
.single-post .entry-content ul {
  padding-left: .8rem !important;
}

.custom-list a,
.graella-mestre-item-info ul li a,
.single-post .entry-content ul li a {
  text-decoration: underline !important;
}

.custom-list li,
.graella-mestre-item-info ul li,
.single-post .entry-content ul li {
  list-style: none !important;
  position: relative;
}

.custom-list li:after,
.graella-mestre-item-info ul li:after,
.single-post .entry-content ul li:after {
  font-family: "Material Symbols Outlined";
  content: "\e061";
  font-size: .6rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(4px);
  display: inline-block;
  position: absolute;
  left: -14px;
  font-variation-settings: 'FILL'1;
  top: 4px;
}
.has-alternative-title-h-3-font-size{
  line-height: 1!important;
}
footer ul {
  padding-left: 0 !important;
}

ul li {
  list-style-position: outside !important;
  line-height: 1.2;
  padding: .2rem 0;
}
.sticker_wrapper{
position: inherit!important;
}
.otgs-development-site-front-end {
  display: none;
}
.top-area.nav-down  {
  top: 32px;
}

.nav-down {
  top: 0px;
}
.admin-bar .nav-down {
  top: 63px;
}
.nav-up {
  top: -78px;
}
@media only screen and (max-width: 959px) {
  .nav-up {
    top: -62px;
  }
}
header {
  transition: top 0.25s ease-in-out;
}

#primary-menu .menu-item-has-children>a:after {
  font-family: "Material Symbols Outlined";
  content: "\e5cf";
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(4px);
  display: inline-block;
}

/* .header-wrapper:before {
  content: "";
  height: 2px;
  width: 100%;
  opacity: 0;
  position: absolute;
  bottom: 0;
  transition: opacity 0.15s ease-in-out;
} */

.open .header-wrapper:before {
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
}

.header-wrapper,
.open .header-wrapper {
  transition: border 0.15s ease-in-out;
}

body.open {
  overflow: hidden;
  /*position: fixed;
  height: 100%;
  left: 0;
  right: 0;
  touch-action: none;
  -ms-touch-action: none; */
}

.alignfull {
  margin: 0 calc(50% - 50vw) !important;
}

body .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: auto !important;
}

article> :not(.entry-content),
.entry-content>* {
  margin-left: auto;
  margin-right: auto;
  max-width: 1600px;
}

.hamburger .line,
.hamburger2 .line {
  width: 30px;
  height: 2px;
  display: block;
  margin: 9px auto;
  transition: all 0.25s ease-in-out;
}

#hamburger-2 .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#hamburger-2 .line:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

.hamburger:hover {
  cursor: pointer;
}

body.open #hamburger-1 .line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

body.open #hamburger-1 .line:nth-child(2) {
  opacity: 0;
  transform: translatex(5px);
}

body.open #hamburger-1 .line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.marquee {
  animation: marquee 20s infinite linear;
}

.marquee2 {
  animation: marquee2 20s infinite linear;
}

.footer-social {
  margin-left: -4px;
}

.sub-menu:after {
  content: '';
  width: 100vw;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.footer-columns {
  padding: 0;
}

footer .copyright p a {
  text-decoration: underline !important;
  padding-left: 0 !important;
}

footer .copyright p a:hover {
  padding-left: 0 !important;
}

.footer-mw p,
.footer-mw ul {
  max-width: 185px !important;
}

footer .wp-block-column p a {
  text-decoration: none;
}

footer .menu li {
  display: block !important;
  padding-right: 0 !important;
}

footer .menu li a,
footer .wp-block-column p a {
  transition: all 300ms linear;
  color: #FFF;
}

footer .menu li a:hover,
footer .wp-block-column p a:hover {
  text-decoration: underline;
}

#blog-sidebar .widget_categories a {
  transition: all 300ms linear;
}

#blog-sidebar .widget_categories a:hover {
  padding-left: 5px;
  text-decoration: underline;
}

.footer-line {
  width: 100%;
  max-width: 100% !important;
}

.btn-arrow a {
  display: inline-block;
  position: relative;
  text-decoration: none!important;
}

.btn-arrow a:after {
  position: absolute;
  bottom: -3px;
  transform: rotate(-45deg);
  font-family: "Material Symbols Outlined";
  content: "\e5c8";
  font-weight: 400;
}

.fade {
  transition: opacity 0.7s ease-in;
}

.instagram-video .slide-link:after {
  font-family: "Material Symbols Outlined";
  content: "\e037";
  position: absolute;
  font-size: 5rem;
  text-align: center;
  color: #FFF;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-weight: 100;
}

.instagram-video:after {
  content: "";
  width: 70px;
  height: 70px;
  border: 2px solid #FFF;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.fadeOut {
  opacity: 0;
}

.fadeIn {
  opacity: 1;
}

.menu-especialitats ul {
  line-height: 1;
  gap: 0;
}

.menu-especialitats ul li {
  margin-bottom: 5px;
}

.menu-especialitats ul li a:hover {
  text-decoration: underline;
}

.menu-especialitats ul li:before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
}

.menu-especialitats ul li:first-child:before {
  display: none;
}

.gform-theme--foundation .gform_fields {
  grid-row-gap: 15px !important;
}

.contact-map .wpmapblockrender {
  max-width: 100%;
  z-index: 0;
}

.slick-dots {
  bottom: 25px;
}

.slick-dots li {
  margin: 0 4px;
}

.slick-dots li button:before {
  font-size: 12px;
}

.slick-dots li,
.slick-dots li button,
.slick-dots li button:before {
  width: 12px;
  height: 12px;
}

.slick-dots li button:before {
  content: '';
  line-height: 8px;
  border-radius: 50%;
}

#slide-frase .slide-item {
  opacity: 0;
}

#slide-frase .slide-item:first-child {
  opacity: 1;
}

.home-arrow {
  animation: bounce 2s infinite;
}

.arrow_wrapper {
  bottom: 0 !important;
}

.c-accordion__title:after {
  font-family: "Material Symbols Outlined";
  content: "\e313";
  font-size: 2.5rem;
  width: 30px;
  font-weight: 200;
}

.is-open>.c-accordion__title:after {
  content: "\e316";
}
.slide-logos .wp-block-image.aligncenter{
  width: 100%;
}
.slide-logos .slide-content{
  max-width: 450px;
  margin-right: auto!important;
  margin-left: auto!important;
}
.slide-logos .wp-block-image.aligncenter img{
  margin: 0 auto;
}
.wp-block-eedee-block-gutenslider .slide-content {
  overflow: hidden;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin: 0 auto!important;
  padding: 0 !important;
  display: flex!important;
}
.slide-logos .swiper {
  height: auto!important;
}
.wp-block-eedee-block-gutenslider .swiper-slide p {
  padding-bottom: 1rem !important;
}
.arrows-md-none .eedee-gutenslider-nav{
  display: none;
}
.swiper-pagination-bullet {
  opacity: 1 !important;
  background-color: transparent !important;
  height: 10px !important;
  width: 10px !important;
  border-width: 2px;
}

.stars-wrapper .star-item {
  width: 20px;
}
.half-size .wp-block-column{
  flex-basis: 70%!important;
}
.graella-mestre-item .graella-mestre-item-info ul {
  padding-left: 1.1rem !important;
  margin-top: .3rem;
}

.graella-mestre-item .img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease-in-out;
}

.graella-mestre-item .graella-mestre-img .img-bg:before {
  content: '';
  background-image: url(./img/mestres-over.png);
  background-position: 50%;
  width: 100px;
  height: 100px;
  background-size: 100px;
  background-repeat: no-repeat;
  transition: all 0.25s ease-in-out;
  transform: rotate(-90deg);
}

.graella-mestre-item:hover,
.graella-mestre-item-info .hamburger2 {
  cursor: pointer;
}

.graella-mestre-item:hover .graella-mestre-img .img-bg,
.graella-mestre-item.info-open .graella-mestre-img .img-bg {
  opacity: 1;
  background-color: rgb(255, 255, 255, .6);
}

.graella-mestre-item:hover .graella-mestre-img .img-bg:before,
.graella-mestre-item.info-open .graella-mestre-img .img-bg:before {
  transform: rotate(0deg);
}

.graella-mestre-item .graella-mestre-item-info {
  transition: opacity 0.45s ease-in-out;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  height: 0;
  width: 0;
}

.graella-mestre-item.info-open .graella-mestre-item-info {
  transition: opacity 0.45s ease-in-out;
  opacity: 1;
  visibility: visible;
  height: 100%;
  width: 35rem;
}

.graella-mestre-item-info {
  overflow-y: visible;
}

.xarxes-socials figure {
  margin: 0 10px 0 0 !important;
}

.xarxes-socials figure:hover {
  transform: scale(1.2);
  transition: transform 0.25s ease-in-out;
}

.wp-block-button .wp-block-button__link.is-style-outline,
.wp-block-button.is-style-outline>.wp-block-button__link,
.wp-element-button, .wp-block-button__link {
  border: 1px solid;
  padding: .4rem .7rem;
  ;
}

.leaflet-marker-icon {
  cursor: grab !important;
}

.ginput_container select {
  line-height: 2.2 !important;
}

.eedee-gutenslider-prev svg,
.eedee-gutenslider-next svg {
  display: none;
}

.eedee-gutenslider-prev:after,
.eedee-gutenslider-next:after {
  font-family: "Material Symbols Outlined";
  font-size: 2.3rem;
  font-weight: 200;
  display: block;
  line-height: 1;
}

.eedee-gutenslider-prev:after {
  content: "\e5cb";
}

.eedee-gutenslider-next:after {
  content: "\e5cc";
}

.eedee-gutenslider-prev {
  left: auto !important;
  right: 50px !important;
  top: auto !important;
  bottom: -30px !important;
}

.eedee-gutenslider-next {
  left: auto !important;
  right: 0px !important;
  top: auto !important;
  bottom: -30px !important;
}

.gfield_consent_label a {
  text-decoration: underline;
}

.sticker {
  opacity: 0;
}

.sticker.visible {
  opacity: 1;
  transition: opacity 0.20s ease-in-out;
}

.rotate {
  animation: rotation 8s infinite linear;
}

.popupimg {
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
}

.popupimg.visible {
  opacity: 1;
  transition: opacity 0.45s ease-in-out;
}

body.page-id-1179,
body.page-id-2542{
  position: relative;
  cursor: none;
}

body.page-id-1179 a,
body.page-id-2542 a{
  cursor: pointer;
}

#canvas[resize] {
  /* width: 100vw; */
  width: 100%;
  /* height: 100vh; */
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-color: transparent;
  position: absolute;
  top: 0;
  opacity: 1;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-tap-highlight-color:
    rgba(0, 0, 0, 0);
  z-index: 9999;
  font-family: 'CooperStd';
  font-weight: 900;
}

.cursor {
  cursor: none;
  width: 70px;
  height: auto;
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  display: none;
  z-index: 10000;
}

.cursor:after {
  content: '';
  background-image: url(./img/fregues-cursor80.png);
  width: 80px;
  height: 80px;
  display: block;
  background-size: 80px;
}

.cursor img {
  width: 100%;
  height: auto;
}

.fit-top img {
  object-position: 50% 15%;
}
.sitges-badge:before {
  content: '';
  background-image: url(./img/heart-vector.png);
  width: 360px;
  height: 200px;
  background-size: 360px;
  background-repeat: no-repeat;
  position: absolute;
  z-index: -10;
  left: 27%;
  top: -40px;
}
#CybotCookiebotDialog {
  border-radius: 0 !important;
  font-family: 'Roobert' !important;
  top: 100% !important;
  transform: translate(-50%, -100%) !important;
  left: calc(50% + -1px) !important;
  width: 100% !important;
  max-width: 100% !important;
}

#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogContentWrapper {
  max-width: 100% !important;
}

#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogBodyButton,
#CybotCookiebotDialogFooter .CybotCookiebotDialogBodyButton {
  border-radius: 0 !important;
  padding: .6rem .7rem !important;
  width: 100% !important;
  text-transform: uppercase !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-width: 1px !important;
  line-height: 1 !important;
}

#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetails a {
  color: #FFF !important;
}

#CybotCookiebotDialogHeader,
#CybotCookiebotDialog .CybotCookiebotFader,
#CybotCookiebotDialogPoweredByText,
#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogBodyButton .CybotCookiebotDialogArrow,
#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogBodyBottomWrapper {
  display: none !important;
}

#CybotCookiebotDialog #CybotCookiebotDialogBody .CybotCookiebotScrollContainer {
  min-height: auto !important;
}

.CybotCookiebotDialogBodyLevelButtonSliderWrapperDisabled .CybotCookiebotDialogBodyLevelButtonSlider:before {
  background-color: #fff !important;
}

#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive,
#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive:hover {
  background-color: #FFF !important;
  color: #0049ff !important;
  border-color: #ffffff !important;
}

#CybotCookiebotDialogTabContent .CybotCookiebotDialogDetailBulkConsentCount {
  background-color: #fff !important;
  color: #0049ff !important;
}

#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

#CybotCookiebotDialog .CookieCard .CybotCookiebotDialogDetailBodyContentCookieContainerButton:hover,
#CybotCookiebotDialog .CookieCard .CybotCookiebotDialogDetailBodyContentIABv2Tab:hover,
#CybotCookiebotDialogDetailBodyContentCookieContainerTypes .CybotCookiebotDialogDetailBodyContentCookieProvider:not(.CybotCookiebotDialogDetailBodyContentCookieInfoCount):hover {
  color: #fff !important;
}

#CybotCookiebotDialog form input[type="checkbox"][disabled]:checked+.CybotCookiebotDialogBodyLevelButtonSlider {
  background-color: #cccccc !important;
}

#CybotCookiebotDialog input:checked+.CybotCookiebotDialogBodyLevelButtonSlider {
  background-color: #00bf43 !important;
}

#CybotCookiebotDialog .CybotExternalLinkArrow {
  filter: invert(1);
}

.blog .post-wrap .post-title,
.single .related-post-wrap .post-title,
.archive .archive-post-wrap .post-title,
.search .archive-post-wrap .post-title {
  max-width: 500px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

.blog .post-wrap .post-excerpt,
.single .related-post-wrap .post-excerpt,
.single .archive .archive-post-wrap,
.search .archive .archive-post-wrap {
  max-width: 500px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

#blog-sidebar .widget_categories .widget-title {
  font-weight: 500;
  margin-bottom: 1rem;
}

#blog-sidebar .widget {
  margin-bottom: 1.5rem;
}

#blog-sidebar .widget_search .is-search-input,
#blog-sidebar .widget_search .is-search-icon {
  border: none !important;
}

.page-numbers {
  padding: 4px 12px;
}
.btn-primary a,
.btn-green a,
.btn-yellow a,
.btn-purple a,
.btn-grey a,
.btn-pink a,
.btn-strong-purple a,
.btn-brown a,
.btn-light-green a,
.btn-red a,
.btn-primary-bg a,
.btn-green-bg a,
.btn-yellow-bg a,
.btn-purple-bg a,
.btn-grey-bg a,
.btn-pink-bg a,
.btn-strong-purple-bg a,
.btn-brown-bg a,
.btn-light-green-bg a,
.btn-red-bg a{
  transition: all 0.25s ease-in-out;
}
.star-item {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}
.slide-item img{
  max-width: 620px;
  height: auto;
}
.single-post .post-img{
  margin-left: 0!important;
  margin-right: 0!important;
}
.semibold-total .ginput_container_total input{
font-weight: 600!important;
}
.gform_fields .ginput_container .gfield_select{
  user-select: none!important;
}
.full-width-gravity{
  grid-column: span 12!important;
}
@keyframes rotation {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(359deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes marquee2 {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0%);
  }
}

@media only screen and (max-width: 1250px) {
.half-size .wp-block-column{
  flex-basis: 100%!important;
}
}


@media only screen and (max-width: 959px) {
  .popupimg {
    max-width: 250px !important;
  }

  #canvas {
    display: none;
  }

  .cursor:after {
    background-image: none;
  }

  #header-menu-wrapper {
    visibility: hidden;
    opacity: 0;
    transition: all 0.15s ease-in-out;
  }

  body.open #header-menu-wrapper {
    visibility: visible;
    opacity: 1;
    transition: all 0.15s ease-in-out;
  }

  /* header {
    transition: top 0.2s ease-in-out;
    position: fixed!important;
  }
  .nav-up {
    top: -2px;
  } */
  .sub-menu::after {
    display: none;
  }

  .col-mobile-full {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: -2rem !important;
  }

  .img-mobile-full {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .graella-mestre-item.info-open .graella-mestre-item-info {
    width: 100vw;
  }

  #primary-menu .menu-item-has-children>a:after {
    font-size: 1.7rem !important;
    transform: translateY(7px) !important;
    font-weight: 400 !important;
  }

  .mobile-hidde-br br {
    display: none;
  }

  .first-block .wp-block-columns {
    gap: 1.5rem;
  }

  body.page-id-1179,
  body.page-id-2542 {
    cursor: default;
  }
  .home header{
    position: fixed;
  }
  #content {
    margin-top: -13px;
  }
  .home #content {
    margin-top: 0px;
  }
  #primary-menu .menu-item-has-children.open-menu > a::after {
  content: "\e5ce";
  }
  #menu-principal .sub-menu li:hover a{
    text-decoration: underline!important;
  }
  .slide-item img{
    max-width: 310px;
  }
  .admin-bar .nav-down {
    top: 0px;
  }

}

@media only screen and (min-width: 960px) {
  #primary-menu .menu-item-has-children .sub-menu {
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease-in-out;
  }

  header.nav-up #primary-menu .menu-item-has-children .sub-menu {
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease-in-out;
  }

  #primary-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    transition: all 0.25s ease-in-out;
    visibility: visible;
  }

  #primary-menu .sub-menu {
    position: absolute;
    width: calc(100% - 4rem);
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }

  #primary-menu .menu-item-has-children:hover>a:after {
    content: "\e5ce";
  }
}
