/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ***************************** Global ***************************** */

:root {
    --font-18: clamp(1.4rem, 0.297vw + 1.229rem, 1.8rem);
    --font-18-lh: 1.2;
    --font-42: clamp(2.8rem, 1.041vw + 2.201rem, 4.2rem);
    --font-42-lh: 1.2;
    --cubic: cubic-bezier(0.34, 1.36, 0.64, 1);
    --transition: all 0.3s ease-in-out;
}

*,
*::after,
*::before {
    outline: none !important;
}

:where(p) {
    margin: 0 0 1.3em;
}

:where(p:last-of-type) {
    margin-bottom: 0;
}

.wpml-ls-statics-footer,
.otgs-development-site-front-end {
    display: none;
}

html {
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: normal;
}

/* ***************************** Global ***************************** */

/* ***************************** Home ***************************** */
.banner-carousl__carousel .swiper-button {
    transform: none;
}

.content-slider button.splide__arrow svg path,
.content-slider button.splide__arrow svg line,
.pasta_slider button.splide__arrow svg path,
.pasta_slider button.splide__arrow svg line,
.image-content-slider button.splide__arrow svg path,
.image-content-slider button.splide__arrow svg line {
    stroke: currentColor;
}

.banner-carousl__carousel .swiper-button.swiper-button-disabled {
    opacity: 0;
}

.banner-carousl__carousel .image {
    min-height: 400px;
    max-height: 750px;
}

/* ***************************** Home ***************************** */


/* ***************************** Global Form ***************************** */
.global_form input::placeholder {
    opacity: 1;
}

.global_form .form-group:not([aria-labelledby*="nrqthm"])>label:not(.choose-files) {
    display: none;
}

.global_form .form-group label.choose-files {
    border: 1px solid var(--base) !important;
    border-radius: 13px;
    padding: 4px 10px;
    background: white;
}

.global_form .form-group[aria-labelledby*="nrqthm"] textarea::placeholder {
    opacity: 0;
}

.global_form .form-group[aria-labelledby*="nrqthm"] textarea {
    border: 1px solid var(--action) !important;
    min-height: 268px;
    padding: calc(var(--space-m)*.5) !important;
}

.global_form .form-group h3 {
    font-size: var(--text-s);
    font-family: 'cardo' !important;
    line-height: var(--text-s-lh);
    display: flex;
    align-items: flex-end;
    color: #5D3110;
    text-transform: uppercase;
    gap: calc(var(--space-m)*.5);
}

.global_form .form-group ul.options-wrapper li {
    position: relative;
}

.global_form .form-group ul.options-wrapper li input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.global_form .form-group ul.options-wrapper li input:checked+label::after {
    display: block;
}

.global_form .form-group ul.options-wrapper li label {
    position: relative;
    padding-left: 30px;
    font-size: var(--text-xs);
    line-height: var(--text-xs-lh);
}

.global_form .form-group ul.options-wrapper li label::before,
.global_form .form-group ul.options-wrapper li label::after {
    content: '';
    display: block;
    position: absolute;
}

.global_form .form-group ul.options-wrapper li label::before {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 0;
    background: white;
    opacity: 1;
    border: 1px solid var(--action);
}

.global_form .form-group ul.options-wrapper li label::after {
    display: none;
    width: 10px;
    height: 10px;
    left: 4px;
    top: 7px;
    background: var(--base);
}

.global_form .form-group:has(ul.options-wrapper) {
    margin-top: calc(var(--space-m) * -0.6);
}

/* ***************************** Global Form ***************************** */

/* ***************************** Collection Page ***************************** */

.collection-category .collection-category__card:nth-child(even) {
    padding-block: var(--section-space-m);
    background: var(--primary);
    padding-inline: var(--space-l);
}

.shadow_img_packet {
    position: relative;
}

.shadow_img_packet::after {
    position: absolute;
    width: 133%;
    content: '';
    height: 53%;
    background-image: url('/wp-content/uploads/2024/03/ombra_pacco.png');
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.shadow_img_packet img {
    position: relative !important;
    z-index: 1;
}

/* ***************************** Collection Page ***************************** */

/* ***************************** Pasta Category Template ***************************** */

.pasta-types__inner:hover .pasta-types__hover {
    opacity: 1;
    visibility: visible;
}

.recipes-slider__text-basic span {
    font-size: var(--text-xl);
    line-height: var(--text-xl-lh);
    display: inline-block;
}

.pasta_banner h2 span {
    font-size: var(--text-m);
    line-height: var(--text-m-lh);
    display: inline-block;
}

.collection-category__heading h2 .text .sub-title {
    font-size: var(--text-m);
    line-height: var(--text-m-lh);
    display: inline-block;
}

.pasta-collection__heading span {
    font-size: var(--text-l);
    line-height: var(--text-l-lh);
    display: inline-block;
}

/* ***************************** Pasta Category Template ***************************** */

/* ***************************** Header ***************************** */

.nav_toggle {
    width: 38px;
    height: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1111;
}

.nav_toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--base);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

.nav_toggle .inner {
    height: 12px;
    position: relative;
}

.nav_toggle span+span {
    top: calc(100% - 2px);
}

.nav_toggle.active span {
    animation: menuToggled 0.4s var(--cubic) forwards;
}

.nav_toggle.active span+span {
    animation: menuToggledReverse 0.4s var(--cubic) forwards;
}

.nav_toggle.closing span {
    animation: closingToggled 0.4s var(--cubic) forwards;
}

.nav_toggle.closing {
    pointer-events: none;
}

.nav_toggle.closing span+span {
    animation: closingToggledReverse 0.4s var(--cubic) forwards;
}

header.cust_sticky {
    position: sticky !important;
    top: 0;
    z-index: 999;
}

.mobile_menu .bricks-menu-item.open.active ul.sub-menu {
    margin-top: 12px;
    margin-bottom: 3px;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
}

.mobile_menu .bricks-nav-menu .sub-menu>li>a {
    text-wrap: balance;
}

@keyframes menuToggled {
    50% {
        top: 50%;
        transform: rotateZ(0);
    }

    100% {
        top: 50%;
        transform: rotateZ(45deg);
    }
}

@keyframes menuToggledReverse {
    50% {
        top: 50%;
        transform: rotateZ(0);
    }

    100% {
        top: 50%;
        transform: rotateZ(-45deg);
    }
}

@keyframes closingToggled {
    0% {
        top: 50%;
        transform: rotateZ(45deg);
    }

    50% {
        top: 50%;
        transform: rotateZ(0);
    }

    100% {
        top: 0%;
        transform: rotateZ(0);
    }
}

@keyframes closingToggledReverse {
    0% {
        top: 50%;
        transform: rotateZ(-45deg);
    }

    50% {
        top: 50%;
        transform: rotateZ(0);
    }

    100% {
        top: calc(100% - 2px);
        transform: rotateZ(0);
    }
}

/* ***************************** Header ***************************** */
.brxe-block.top_banner_content, .brxe-block.recipes-slider__card {
    max-width: 508px;
}

/******************* privacy policy page ***********************/
.privacy_policy_sec .brxe-text h2 {
    font-family: "Cardo";
    font-size: calc(var(--text-m)*1.3);
    line-height: calc(var(--text-m-lh)*1.3);
    font-weight: bold;
    color: var(--success);
}

.privacy_policy_sec .brxe-text h3 {
    font-family: "Cardo";
    font-size: var(--text-m);
    line-height: var(--text-m-lh);
    text-transform: uppercase;
    font-weight: bold;
    color: var(--success);
}

/******************* privacy policy page ***********************/

/* ***************************** Responsive ***************************** */

html:has(body.menu_triggred),
body.menu_triggred {
    overflow: hidden;
    height: 100svh;
    min-block-size: 100svh !important;
}

.hide_scroll::-webkit-scrollbar {
    display: none;
}

.hide_scroll {
    scrollbar-width: 0;
}

@media (max-width:1200px) {
    .brxe-block.top_banner_content {
        max-width: 460px;
    }

    .brxe-block.recipes-slider__card {
        max-width: 488px;
    }
}

@media (max-width:1024px) {
    .footer_menu .bricks-nav-menu {
        flex-wrap: wrap;
    }

    .brxe-block.top_banner_content, .brxe-block.recipes-slider__card {
        max-width: 408px;
    }
}

@media(max-width:768px) {

    :root {
        --h1-lh: 1.05;
    }

    .banner-carousl__carousel .image {
        min-height: auto;
    }

    .brxe-block.top_banner_content, .brxe-block.recipes-slider__card {
        max-width: 348px;
    }
}

@media(min-width: 768px) {
    .le_collezioni_riscossa_sec .splide__track .splide__list {
        transform: none !important;
    }
}

@media(max-width:575px) {
    .collection__block {
        height: auto !important;
    }

    .global_form .form-group[aria-labelledby*="nrqthm"] textarea {
        min-height: 100px;
    }

    .cover_letter img {
        height: var(--space-m);
    }

    .cover_letter {
        align-items: flex-start !important;
    }

    .collection-category .collection-category__card:nth-child(even) {
        padding: var(--space-l) var(--space-m);
    }
}

/* ***************************** Responsive ***************************** */

.btn_hover:hover,
.global_form button.bricks-button:hover {
    font-weight: 700 !important;
}