/*
Theme Name: Theme
Author: Serveis Creatius
Author URI: https://serveiscreatius.com
Description: Theme emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

html {scroll-behavior:smooth;}

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* ------------ HEADER ------------ */

header.wp-block-template-part {
	position:sticky;
	top:0;
	z-index:999;
	box-shadow: 0 0 7px rgba(0,0,0,0.1);
	border-bottom: 1px solid lightgray;
}

/* ------------ BLOG ------------ */

.blog li.wp-block-post {border:1px solid lightgray;}

/* Adjust padding for transparent headers */
.et_transparent_nav #main-content .container {
    padding-top: 58px !important;
}


/*
Ini Formulari css personalitzat
*/
span#nf-form-title-5 h3 {
    font-weight: 300;
    font-size: 40px;
    line-height: 1.4em;
    text-align: center;
}
.nf-before-form-content {
    font-size: 16px;
    margin-bottom: 25px;
}
.nf-field-element input[type=button] {
    color: #ffffff!important;
    border-color: rgb(10, 3, 3);
    border-radius: 0px;
    letter-spacing: 2px;
    font-size: 14px;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif!important;
    text-transform: uppercase!important;
    background-color: #000000!important;
    padding-top: 16px!important;
    padding-right: 30px!important;
    padding-bottom: 16px!important;
    padding-left: 30px!important;
	box-shadow: 0px 12px 18px -6px rgba(127,141,255,0.4);
}
.nf-field-element {
    text-align: center;
}

.ff_conv_app_8 {background-color:transparent !important;}

/*
Fi Formulari css personalitzat
*/

/*
Footer personalitzat
*/
div#footer-bottom > div{
    text-align: center;
}div#footer-bottom a {
    color: #edf000;
}

.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
    color: #000000;
}

/* ------------ MENU LEGAL ------------ */

#menu-legal {padding:1rem 0; list-style:none;}
#menu-legal li {display:inline; padding-right:1em;}

/* ------------ MANS ------------ */

@keyframes mans {
  from {bottom: -300px;}
  to {bottom: 0px;}
}

#mans {
    display:flex; flex-direction:column;
    position:fixed; bottom:0; right:calc(50% - 180px/2);
		filter: drop-shadow(5px 5px 5px black);
    z-index:99;
    animation:mans .5s linear 5s 1 normal both running;
}

@media (min-width:800px){
#mans {right:10%}
}

#mans span {
    padding:1em;
    position:relative; top:30px;
    font-weight:bold;
    text-align:center;
    color:white;
    background:#E59100;
		transition:all .2s;
}

#mans:hover span, #mans:focus span {background:grey;}

#mans svg {
    width:180px;
    fill:#E59100;
		transition:all .2s;
}

#mans:hover svg, #mans:focus svg {fill:grey;}

body.woocommerce #mans {display:none}

/* ------------ WOOCOMMERCE ------------ */

span.woocommerce-Price-currencySymbol {display:none;}
