/**
 * Theme Name: Quadern de sotaia
 * Author: lavallweb
 * Author URI: https://lavallweb.com
 * Description: Astra child theme by lavallweb
 * Version: 1.25.10
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: quadern-de-sotaia
 * Template: astra
 */


/* ==========================================================================
   0. OUTLINE MENU POP UP
   ========================================================================== */

.ast-header-break-point .menu-toggle:focus:not(:focus-visible),
.ast-mobile-popup-drawer .menu-toggle-close:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   1. NAVEGACIÓN PRINCIPAL (Animaciones & Estilos)
   ========================================================================== */

/* Transición suave para todos los elementos del menú */
.main-navigation .main-header-menu .menu-item > .menu-link {
  display: inline-block;
  transition: transform 0.25s ease-in-out, color 0.25s ease-in-out;
}

/* Efecto de deslizamiento al hacer Hover y Focus */
.main-navigation .main-header-menu .menu-item > .menu-link:hover,
.main-navigation .main-header-menu .menu-item > .menu-link:focus {
  transform: translateX(4px); /* Desplazamiento horizontal */
}


/* ==========================================================================
   2. SELECTOR DE IDIOMAS (GTranslate Custom Layout)
   ========================================================================== */

/* Ocultar las banderas por defecto */
.gtranslate_wrapper .glink img {
  display: none !important;
}

/* Estilo base y espaciado entre enlaces de idioma */
.gtranslate_wrapper .glink {
  text-decoration: none !important;
  margin: 0 6px; /* Separación horizontal entre idiomas */
  transition: opacity 0.2s ease;
}

/* Etiquetas personalizadas por idioma */
.gtranslate_wrapper .glink[data-gt-lang="ca"]::after {
  content: "VLC";
  font-weight: 400;
  font-size: 16px;
  color: #000;
}

.gtranslate_wrapper .glink[data-gt-lang="es"]::after {
  content: "CAS";
  font-weight: 400;
  font-size: 16px;
  color: #000;
}

.gtranslate_wrapper .glink[data-gt-lang="en"]::after {
  content: "ENG";
  font-weight: 400;
  font-size: 16px;
  color: #000;
}

/* Idioma activo: Negrita sin subrayado */
.gtranslate_wrapper .glink.gt-current-lang::after {
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Estado Hover y Active: Negrita sin subrayado */
.gtranslate_wrapper .glink:hover,
.gtranslate_wrapper .glink:hover::after,
.gtranslate_wrapper .glink:active::after {
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
}


/* ==========================================================================
   3. LÍNEA ANIMADA Y ESTRUCTURA HOME (Desactivado / Para referencia)
   ========================================================================== */

/*
#divIzqHome {
  position: relative;
}

#divIzqHome::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 0;
  width: 1px;
  background-color: #ffffff;
  animation: drawBorder 4s ease-out forwards;
}

@keyframes drawBorder {
  from { 
    height: 0; 
  }
  to { 
    height: 100%; 
  }
}
*/


/* ==========================================================================
   4. BOTÓN CIRCULAR TRAILER (#mira-trailer)
   ========================================================================== */

/* Contenedor principal del widget */
#mira-trailer {
  width: 115px !important;
  height: 115px !important;
  min-width: 115px !important;
  min-height: 115px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  overflow: visible !important;
}

/* Forzar renderizado y centrado en los elementos internos de Elementor */
#mira-trailer .elementor-widget-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Tipografía y reset del encabezado y enlace */
#mira-trailer h5.elementor-heading-title,
#mira-trailer h5.elementor-heading-title a {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;          /* antes 0 8px, duplicado en h5 y a */
  text-align: center !important;
  color: #ffffff !important;
  font-size: 17px !important;     /* antes 12px */
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  line-height: 1 !important;
  white-space: nowrap !important; /* evita el salto TRÀI-LER */
  text-decoration: none !important;
}

/* Efecto hover */
#mira-trailer:hover {
  border-color: #ffffff !important;
  transform: scale(1.05) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Versión móvil del botón trailer */
@media (max-width: 767px) {
  #mira-trailer {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
  }

  #mira-trailer h5.elementor-heading-title,
  #mira-trailer h5.elementor-heading-title a {
    font-size: 12px !important;
    letter-spacing: 0.8px !important;
  }
	
  /* Separar el círculo de la flecha en móvil */
  #mira-trailer {
    margin-bottom: 40px !important;
  }

  #flecha-scroll {
    bottom: 80px !important; /* movil: mes numero = mes amunt */
  }
}

/* ==========================================================================
   5. EFECTOS VISUALES (Cine Antiguo)
   ========================================================================== */

/* Efecto de Grano */
.c-noise {
  animation: grain 6s steps(10) infinite;
  background-image: url("https://quaderndesotaia.com/wp-content/uploads/noise-full.png");
  background-repeat: repeat;
  height: 300%;
  left: -50%;
  opacity: 0.035;
  position: fixed;
  top: -100%;
  width: 300%;
  z-index: 100;
  pointer-events: none;
}

/* Superposición Film Old */
.c-old {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://quaderndesotaia.com/wp-content/uploads/old.webp");
  opacity: 0.05;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  z-index: 150;
  pointer-events: none;
}


/* ==========================================================================
   6. FLECHA DE SCROLL (#flecha-scroll)
   ========================================================================== */

/* Romper la restricción de los contenedores internos de Elementor */
#hero-home,
#hero-home .e-con-inner,
.elementor-element-763b82e {
  position: static !important; /* Desactiva la referencia local para los hijos */
}

#hero-home {
  position: relative !important; /* Reestablece la referencia solo en la sección principal */
}

/* Extraer la flecha para que flote libre en la parte inferior centrada */
#flecha-scroll {
  position: absolute !important;
  bottom: 60px !important; /* escriptori: mes numero = mes amunt */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  opacity: 0; /* Oculta la flecha por defecto */
  animation: fadeInArrow 1s ease-in 7s forwards; /* Tarda 7s en salir y luego hace un fade-in de 1s */
}

/* Animaciones de entrada progresiva */
@keyframes fadeInArrow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Centrado del contenedor del SVG */
#flecha-scroll .elementor-widget-container,
#flecha-scroll .elementor-icon-wrapper,
#flecha-scroll .elementor-icon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ajustes base para el SVG */
#flecha-scroll svg {
  height: auto !important;
  display: block !important;
}

/* Efecto hover */
#flecha-scroll:hover {
  transform: translateX(-50%) translateY(4px) !important;
  transition: transform 0.25s ease !important;
}