/**
Theme Name: Tórculos Ribes
Author: Marta Torre
Author URI: https://martatorre.dev/
Description: Child theme custom by Marta Torre.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: torculos-ribes
Template: twentytwentyfour
*/

html,body{
	overflow-x:hidden;
}

/*
 * Language top header
 * */
.tor-header-language-switcher{
	display: flex;
    justify-content: flex-end;
    align-items: center;
	padding:10px 0;
}
.tor-header-language-switcher > .wpml-ls-statics-shortcode_action{
	margin-left:auto; 
	max-height:1.7em;
	font-family: var(--wp--preset--font-family--jost);
    font-size: clamp(14px, 0.875rem +((1vw - 3.2px)* 0.625), 20px);
}

.tor-header-language-switcher > .wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown p{
	margin:0; 
}

.tor-header-language-switcher > .wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown{
		max-width:80px;
}

.tor-header-language-switcher > .wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown br,
.wpml-ls-legacy-dropdown .wpml-ls-flag{
	display:none;
}

.tor-header-language-switcher .wpml-ls-legacy-dropdown .wpml-ls-sub-menu{
	border-top-color:transparent;
	
}

.tor-header-language-switcher .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle,
.tor-header-language-switcher .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a{
	background-color: #111111;
    color: #ebebeb;
    border: none;
}

.tor-header-language-switcher .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:hover,
.tor-header-language-switcher .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover{
	background-color: #f1f1f1;
	color:#7f9f87;
}


.tor-header-language-switcher .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    border: .25em solid transparent;
    border-top: .5em solid;
    right: 22px;
    top: calc(50% - .180em);
}

.tor-header-language-switcher .wpml-ls-legacy-dropdown .wpml-ls-item .wpml-ls-first-item{
	padding-top:5px;
}

/**
 * 
 * Navbar
 * 
 * */

.tor-header-col .wp-block-column.tor-header-col-1{
	width:50%;
	flex-basis:50%;
}

.tor-header-col .wp-block-column.tor-header-col-1 .custom-logo
{
	margin-left:-20px;
}

.tor-header-col .wp-block-column.tor-header-col-2{
	flex:1 0;
}

@media (min-width: 600px) {
    .tor-header-col .wp-block-column.tor-header-col-2 .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
		
    }
	.tor-header-col .wp-block-column.tor-header-col-2 .tor-navigation-header{
		justify-content:flex-end;
	}

    .tor-header-col .wp-block-column.tor-header-col-2 .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        
        display: none;
        
    }

}

@media (min-width:992px){
	.tor-header-col .wp-block-column.tor-header-col-1{
		width:20%;
		flex-basis:20%;
		flex-grow:0;
	}
	.tor-header-col .wp-block-column.tor-header-col-1 .custom-logo
	{
		margin-left:-10px;
	}
	
	.tor-header-col .wp-block-column.tor-header-col-2 ul.tor-navigation-header{
		text-align: left;
		justify-content: flex-start;
		
	}
}

@media (min-width:1100px) {
	.tor-header-col .wp-block-column.tor-header-col-2 .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }
	
	.tor-header-col .wp-block-column.tor-header-col-2 .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block;
    }
}

@media (min-width:1100px) and (max-width:1236.99px){
	.tor-header-col .wp-block-column.tor-header-col-2 ul.tor-navigation-header{
		margin-left: -30px;
		font-size: 14px;
	}
}



@media (min-width:1200px){
	.tor-header-col .wp-block-column.tor-header-col-2 ul.tor-navigation-header{
		font-size: 15px;
	}
}

@media (min-width:1300px){
	.tor-header-col .wp-block-column.tor-header-col-2 ul.tor-navigation-header{
		font-size: 16px;
		justify-content:flex-end;
	}
}
		
/**
* 
* Catalogo
*
**/

@media(min-width:600px){
	.tor-catalogo-shop .is-layout-grid > :is(*, div) {
    display: flex;
    flex-direction: column;
    margin: 0;
    justify-content: space-between !important;
  	min-height: 320px;

	}
	
	.tor-catalogo-shop .is-layout-grid > :is(*, div) h3{
		flex:1; 
	}
}

@media (min-width:992px){
	.tor-catalogo-shop .is-layout-grid > :is(*, div) .wp-block-woocommerce-product-price{
		flex:1; 
	}
	
	
	.tor-catalogo-shop .is-layout-grid > :is(*, div) {
    min-height: 400px;
	}
}

/*
 * News letter
 * 
 * */

@media(max-width:1100px){
	.wpcf7-spinner{
		display:none;
	}
}

@media (max-width:781.99px){
	.logo-footer-newsletter{
	text-align: center;
}
	
	
	.newsletter-form{
		margin-left:0;
	}
	#field_1_3{
		width:100%;
	}
}

@media (max-width:370px){
	.newsletter-form{
		max-width:330px !important;
	}
}


#input_1_3,
#input_1_6{
	width:100%;
	border: none;
	border-radius: 8px;
	padding: 10px;
	font-size: 14px;
	font-weight: bold;
	color:black;
	border:2px solid #e4e0e1;
}

#input_1_3:focus,
#input_1_6:focus,
#gform_submit_button_1:focus{
	box-shadow:none;
	border:2px solid #4F6C56;
}
#input_1_3::placeholder,
#input_1_6::placeholder{
  color: #757575;
  font-weight:400;
  opacity: 1; /* Firefox */
}

#gform_submit_button_1 {
  	color:white;
	background: #4F6C56;
	border: none;
	border-radius: 8px;
	padding: 10px;
	font-size: 14px;
	font-weight: bold;
	width: 300px;
	cursor:pointer;
	
}

.#gform_submit_button_1:hover,
.#gform_submit_button_1:focus{
	opacity:.8;
}
#gform_fields_1 {
	display: flex;
    align-items: center;
    justify-content: center;
	flex-direction:column;
	row-gap: 1rem;
	max-width: 930px;
	padding: 1rem 1rem 1rem 0;
}

#gform_1_validation_container{
	background-color:white;
}

/*
 * Contactar Form
 * *
 * /
 */

#gform_2 .gform-field-label,
#gform_4 .gform-field-label,
#gform_3 .gform-field-label{
	font-weight:700 ;
	font-size:16px;
}


#gform_2 input,
#gform_2 textarea,
#gform_4 input,
#gform_4 textarea,
#gform_4 select,
#gform_3 input,
#gform_3 textarea{
	border-radius:3px;
	border-color: #b5bdbc;
	box-shadow:none;
	font-size:16px;
	
}

#gform_4 select,
#gform_3 select{
	font-size:16px;
}

#gform_4 select option:checked,
#gform_3 select option:checked{
	color:white;
	background-color:#819e88;
}

#gform_2 input:focus,
#gform_2 textarea:focus,
#gform_4 input:focus,
#gform_4 textarea:focus,
#gform_3 select,
#gform_3 input:focus,
#gform_3 textarea:focus{
	border:2px solid #819e88;
	transition:none;
}

#gform_3 #gform_submit_button_3{
	background-color:#819e88;
}

#gform_3 input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before,
#gform_1 input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before{
	color: #4F6C56;	
}

#gform_3 #gform_submit_button_3:hover{
	background-color:#4F6C56;
}



#gform_2 input::placeholder,
#gform_2 textarea::placeholder,
#gform_4 input::placeholder,
#gform_4 textarea::placeholder,
#gform_4 select,
#gform_3 select,
#gform_3 input::placeholder,
#gform_3 textarea::placeholder{
  color: #b5bdbc;
  opacity: 1; /* Firefox */
  font-size:16px;
}

@media (max-width:991.99px){
	#wpforms-3386-field_1-container,
	#wpforms-form-3386 .wpforms-submit-container{
		margin-bottom:1rem;
	}
}

@media (min-width:768px){
	
	#gform_fields_1 {
		flex-direction:row;
		margin: auto;
		justify-content: left;
		align-items: center;
		display: grid;
		grid-template-columns: minmax(10rem, 1fr) auto;
	}
	#gform_fields_1 .form-newsletter-name{
		grid-row: 1;
		grid-column: 1 / 2;
	}
	#gform_fields_1 .form-newsletter-email {
		grid-row: 2;
		grid-column: 1 / 2;
	}
	
	#gform_fields_1 #input_1_3 {
		width: 100%;
	}
	
	#gform_fields_1 .form-newsletter-checkbox-privacy-policy {
		
		grid-column: 1 / 3;
		justify-self: left;
	}
	
	#gform_fields_1 .form-newsletter-info-data-protection {
		color:black;
		grid-column: 1 / 3;
		justify-self: left;
		font-size:.7rem;
	}
	
	#gform_fields_1 .gfield.gfield--type-submit {
		grid-row: 1;
		grid-column: 2 / 3;
		justify-self: end;
	}
	

}

.columns-5.products-block-post-template.wp-block-post-template.is-layout-grid.wp-container-core-post-template-is-layout-1.wp-block-post-template-is-layout-grid .wc-block-components-product-price{
	height:23px;
	
}


/*
 * Sobre nosotros 
 * */

.page-id-48 .entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained{
	margin-top:0;
}


/*
 * Newsletter
 *  */

.gfield_required.gfield_required_text{
	color:#4F6C56 !important;
}

#gform_1{
	max-width:450px;
	margin:auto;
	text-align:center;
}

#field_1_5{
	color:#222;
}

#field_1_5{
	font-size:.85rem;
	text-align:justify;
}

#field_1_4 label{
	text-wrap:balance;
}

#field_1_4 label a{
	color:#222;
}

#gform_1 .gform-footer.gform_footer.top_label{
	margin-top:0!important;
	justify-content:center;
}
 
.newsletter-columns{
	/*margin-left:0 !important;*/
	padding-top:3rem !important;
	padding-bottom:3rem !important;
}

.footer-newlestter-col-image .wp-block-image img{
	border-radius:.33rem;
	max-width: 450px;
	
}

@media (min-width:768px){
	#gform_1{
		max-width:550px;
		margin:auto 0;
		text-align:center;
	}
	.footer-newlestter-col-image .wp-block-image img{
		border-radius:0;
		border-top-right-radius:.5rem;
		border-bottom-right-radius:.5rem;
		max-width:100%;
		max-height:470px;
	}

	.h-footer-newsletter{
		text-align:left;
	}
	
	#gform_1{
		text-align:left;
	}
	
	#gform_1 .gform-footer.gform_footer.top_label{
		justify-content:left;
	}
}

@media (min-width:1024px){
	#gform_1{
		max-width:750px;
	}
	
	
	
}
.page-artistas-imagenes{
	text-align:center;
}

.page-artistas-imagenes img{
	
	max-width:150px;
	height:auto;
}

@media (min-width:1024px){
	.page-artistas-imagenes figure{
		width:25%;
	}
}




