/*
Theme Name: NextAwards Child
Template: nextawards
Author: Andrea Nicola Cirillo
Description: Child theme per NextAwards
Version: 1.0
*/

/* =============================================================================
   COMPONENTI BASE
   ============================================================================= */

/* ICONE */
.icon-user {
    display: inline-block;
    margin: -3px 5px;
    width: 18px;
    height: 18px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Ctitle%3EUser Outline%3C/title%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='32' d='M256 256a112 112 0 1 0-112-112 112.12 112.12 0 0 0 112 112Zm0 32c-62.43 0-224 31.22-224 93.65V464a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-82.35C480 319.22 318.43 288 256 288Z'/%3E%3C/svg%3E");
}

.icon-wa {
    margin-right: 0px;
    width: 20px;
    height: 20px;
}

/* UTILITIES */
.count {
    display: none;
}

.width100 {
    width: 100% !important;
}

.width25 {
    width: calc(25% - var(--wp--style--block-gap, .5em) * .75);
}

/* IMMAGINI */
img {
    border-radius: 5px;
}

/* OMBRE E EFFETTI */
.shadow-light {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.shadow-dark {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.shadow-hover {
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.lift-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* =============================================================================
   LAYOUT E COMPONENTI
   ============================================================================= */

/* PARALLAX */
.parallax-cover .wp-block-cover__image-background {
    object-fit: cover;
    object-position: 50% 0% !important;
    transition: object-position 0.35s ease-out;
}

/* MAPPA */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================================================
   INSTAGRAM E NEWSLETTER
   ============================================================================= */

/* INSTAGRAM */
#sb_instagram {
    padding-bottom: 10px;
    width: auto;
    max-width: 1000%;
    margin-right: calc(25% - 25vw);
    margin-left: calc(25% - 25vw);
}

.sbi_item {
    border-radius: 5px;
}

/* NEWSLETTER */
.mailpoet_form_columns_container {
    container-name: columns;
    container-type: inline-size;
    width: auto;
    max-width: 1000%;
    margin-right: calc(25% - 25vw);
    margin-left: calc(25% - 25vw);
}

.mailpoet_form_image img {
    margin: 0;
    max-width: 100%;
    border-radius: 5px;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer-container {
    background-color: #d3d3d3 !important;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #ccc;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    width: 30%;
    padding: 10px;
    text-align: center;
}

.footer-logo {
    max-width: 250px !important;
    margin-bottom: 10px;
}

.footer-links,
.footer-legale {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-legale li {
    margin-bottom: 5px;
}

.footer-links a,
.footer-legale a {
    text-decoration: none !important;
    color: #5e5e5e !important;
}

.footer-link {
    text-decoration: none !important;
    color: #5e5e5e !important;
    list-style: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: auto;
}

/* =============================================================================
   WOOCOMMERCE
   ============================================================================= */

/* PRODOTTI GENERALI */
.woocommerce ul.products li.product .button {
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1em;
    box-shadow: none;
    border-radius: 5px;
}

.woocommerce ul.products li.product img {
    transition: opacity 0.3s ease-in-out;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: .5em 0;
    margin: 0;
    font-size: 1em;
    color: #5e5e5e !important;
}

/* PRODOTTI SINGOLI */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none;
}

.woocommerce div.product .product_meta {
    font-size: 14px;
    margin-top: 10px;
}

/* PRODOTTI CORRELATI E BLOCKS */
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    display: inline-flex;
    font-size: 1em;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    border-radius: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.wc-block-grid__products .wc-block-grid__product-image img {
    height: auto;
    max-width: 100%;
    width: revert-layer !important;
}

.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
    border-radius: 5px !important;
}

.wc-block-components-product-image img {
    border-radius: 5px !important;
}

/* ETICHETTE SCONTO */
.woocommerce ul.products li.product .onsale {
    margin: 0 !important;
}

.woocommerce span.onsale {
    min-height: auto !important;
    min-width: auto !important;
    line-height: normal !important;
    padding: .202em;
    font-weight: 700;
    position: absolute;
    text-align: center;
    border-radius: 5px !important;
    background-color: #444 !important;
    color: #fff !important;
    font-size: .857em;
    z-index: 9;
    top: 0;
    left: 0;
}

.wc-block-grid .wc-block-grid__product-onsale, .wc-block-grid__product-image .wc-block-grid__product-onsale {
    min-height: auto !important;
    min-width: auto !important;
    line-height: normal !important;
    padding: .202em;
    font-weight: 700;
    position: absolute;
    text-align: center;
    border-radius: 5px !important;
    background-color: #444 !important;
    color: #fff !important;
    font-size: .857em;
    z-index: 9;
    top: 0px !important;
    right: 0px !important;
}

/* ACCOUNT WOOCOMMERCE */
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.woocommerce-MyAccount-navigation li {
    background-color: #f4f4f4;
    border: 1px solid #bbbbbb;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.woocommerce-MyAccount-navigation li:hover {
    background-color: #ececec;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation .is-active {
    background-color: #ececec;
    border-color: #ad907b;
}

.woocommerce-MyAccount-navigation .is-active a {
    color: #b9a394;
}

/* MESSAGGI E INFO */
.woocommerce .woocommerce-info {
    background: #e5e5e5 !important;
}

.woocommerce-info::before {
    color: #b9a394 !important;
}

.woocommerce .woocommerce-info a.button {
    background: #b9a394 !important;
}

/* BOTTONI */
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button {
    margin-top: 20px !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
    border-radius: 5px !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button {
    border-radius: 5px !important;
}

/* PAGINAZIONE */
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #b9a394;
    color: #f4f4f4;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover {
    background: #b9a394 !important;
    color: #f4f4f4 !important;
    border-color: #b9a394 !important;
    transition: all 0.3s ease;
}

/* PAGAMENTI */
.summary #payment-method-message, .wp-block-woocommerce-product-price+#payment-method-message {
    height: 3em !important;
}

.ppcp-messages {
    margin-top: 10px;
    margin-bottom: 10px;
}

.ppcp-messages iframe {
    border-radius: 5px;
}

.gpay-card-info-container {
    border-radius: 5px !important;
}

/* WISHLIST */
.tinv-wishlist tfoot .tinvwl-to-right {
    float: right !important;
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before {
    vertical-align: top !important;
}

/* SHARING */
.sd-sharing {
    margin-top: 1em;
}

/* VARIE */
.iubenda-cs-brand-badge {
    display: none !important;
}

#cmplz-manage-consent {
    display: none !important;
}

/* =============================================================================
   MEDIA QUERIES - DESKTOP LARGE
   ============================================================================= */

@media (min-width: 2300px) {
    .gs_logo_area.gs_logo__loaded {
        opacity: 1 !important;
        -webkit-transition: all .25sease;
        -o-transition: all .25s ease;
        transition: all .25sease;
        -webkit-transition-property: opacity, visibility;
        -o-transition-property: opacity, visibility;
        transition-property: opacity, visibility;
        visibility: visible !important;
        width: auto;
        max-width: 1000%;
        margin-right: calc(50% - 25vw);
        margin-left: calc(50% - 25vw);
    }
}

/* =============================================================================
   MEDIA QUERIES - DESKTOP
   ============================================================================= */

@media (min-width: 1190px) {
    ul.menu {
        padding-left: 90px;
        padding-right: 0px;
    }
    
    .nascondi-desktop {
        display: none !important;
    }
}

@media (min-width: 798px) {
    .checkout.woocommerce-checkout.col2-set, .woocommerce-page .col2-set {
        width: 100% !important;
        float: left;
        display: flex !important;
    }

    .woocommerce-account .addresses .title .edit {
        float: left;
    }

    .woocommerce-Addresses address {
        padding-top: 10px;
    }

    .width25 {
        width: calc(25% - var(--wp--style--block-gap, .5em) * .75);
    }
}

@media (min-width: 769px) {
    .myaccount-dropdown {
        display: none;
    }

    .lift-hover:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3) !important;
    }
	  
	.woocommerce-orders-table__cell-order-actions .pp-track {
		margin-top: 5px !important;
	}
}

/* =============================================================================
   MEDIA QUERIES - TABLET
   ============================================================================= */

@media (max-width: 782px) {
    .inverti-mobile {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .wp-container-core-buttons-is-layout-fc4fd283 > .wp-block-button.has-custom-width.wp-block-button__width-50 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .wp-container-core-buttons-is-layout-fc4fd283 .wp-block-button__link {
        display: block;
        width: 100%;
    }

    .width100 {
        width: 100% !important;
    }

    .parallax-cover {
        min-height: 90vh !important;
    }
}

/* =============================================================================
   MEDIA QUERIES - MOBILE E TABLET
   ============================================================================= */

@media (max-width: 768px) {
    /* LAYOUT MOBILE */
    .nascondi-mobile {
        display: none !important;
    }

    .riduci-mobile60 {
        height: 60px !important;
    }

    .riduci-mobile50 {
        height: 50px !important;
    }

    .riduci-mobile30 {
        height: 30px !important;
    }

    .riduci-mobile20 {
        height: 20px !important;
    }

    .riduci-mobile10 {
        height: 10px !important;
    }

    .riduci-mobile0 {
        height: 0px !important;
    }

    /* FOOTER MOBILE */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }

    /* WOOCOMMERCE MOBILE */
    .woocommerce-MyAccount-navigation ul {
        display: none !important;
    }

    .woocommerce-MyAccount-navigation li a {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .woocommerce-MyAccount-navigation li {
        border-radius: 5px !important;
    }

    .woocommerce select option {
        color: inherit;
        background-color: #ffffff00;
    }

    .myaccount-dropdown {
        width: 100% !important;
        font-size: 16px !important;
        border-radius: 5px !important;
        border: 1px solid #ccc !important;
        margin-bottom: 20px !important;
        background-color: #fff !important;
    }

    .woocommerce-account .addresses .title .edit {
        float: inline-start !important;
    }

    .u-column1.col-1.woocommerce-Address {
        margin-bottom: 20px;
    }

    #menu-item-75 {
        display: none !important;
    }
	 
	.woocommerce-orders-table__cell-order-actions .pp-track {
		margin-left: 5px !important;
	}

    /* CROSS-SELLS CAROSELLO */
    body .wp-block-woocommerce-cart-cross-sells-block > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 0px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    body .wp-block-woocommerce-cart-cross-sells-block > div > .cross-sells-product {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .wp-block-cart-cross-sells-product__product-image img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .wp-block-woocommerce-cart-cross-sells-block .wp-block-heading.has-large-font-size {
        font-size: 20px !important;
        line-height: 1.25;
    }

    .is-mobile.wc-block-components-sidebar-layout {
        margin-bottom: 0px !important;
    }

    .wc-block-cart .wc-block-cart__submit-container--sticky:before {
        box-shadow: 0 -10px 20px 10px rgb(157 154 154 / 70%) !important;
    }
}

@media only screen and (max-width: 767px) {
    .vantaggi-home .wp-block-column {
        padding: 10px !important;
    }

    .vantaggi-home .wp-block-column h3.wp-block-heading {
        font-size: 14px !important;
        padding: 0 10px !important;
    }

    .vantaggi-home .wp-block-column img {
        max-width: 60% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .vantaggi-home .wp-block-column {
        margin-bottom: 15px !important;
        padding: 5px !important;
    }
}

@media (max-width: 640px) {
    #sb_instagram.sbi_width_resp {
        width: auto !important;
    }

    .gs_logo_area.gs_logo__loaded {
        opacity: 1 !important;
        -webkit-transition: all .25sease;
        -o-transition: all .25s ease;
        transition: all .25sease;
        -webkit-transition-property: opacity, visibility;
        -o-transition-property: opacity, visibility;
        transition-property: opacity, visibility;
        visibility: visible !important;
        width: auto;
        max-width: 1000%;
        margin-right: calc(25% - 25vw);
        margin-left: calc(25% - 25vw);
    }

    .product_landing {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

@media (max-width: 500px) {
    #menu-item-75 {
        display: inline-block !important;
    }
}

@media (max-width: 480px) {
    .wc-block-grid.has-4-columns .wc-block-grid__product {
        max-width: 50% !important;
    }

    .wc-block-grid.has-4-columns .wc-block-grid__products {
        display: flex !important;
    }
}

@media (max-width: 400px) {
    .header__quick .menu-item-type-custom {
        display: inline-flex !important;
        height: 36px;
    }

    .header__quick button {
        pointer-events: auto !important;
    }

    .quick-search {
        width: 45px !important;
        position: relative !important;
        background-color: transparent !important;
    }

    .header__quick ul {
        display: inline-flex !important;
        align-items: anchor-center;
    }

    .menu-item-type-woocommerce-cart {
        position: relative;
        width: 30px;
        height: 23px;
    }
}

@media (max-width: 376px) {
    :root :where(.wp-block-button .wp-block-button__link) {
        padding-top: 10px !important;
        padding-right: 20px !important;
        padding-bottom: 10px !important;
        padding-left: 20px !important;
    }
}

@media (max-width: 333px) {
	.woocommerce-orders-table__cell-order-actions .pp-track {
		margin-top: 5px !important;
	}
}

/* =============================================================================
   MEDIA QUERIES - MENU RESPONSIVE
   ============================================================================= */

@media (max-width: 1190px) {
    .quick-search__input {
        display: none;
    }

    .quick-search.show-input .quick-search__input {
        display: inline-block;
        font-size: 16px;
    }

    #menu-item-1068 {
        margin-top: 80px !important;
    }

    #menu-item-1070 {
        border-bottom: 0px !important;
        margin-top: 30px;
    }

    #menu-item-1070 > a {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    #menu-item-1070 > a > span.icon-ig {
        width: 24px !important;
        height: 24px !important;
    }

    .icon-wa {
        margin-right: 10px !important;
        width: 20px;
        height: 20px;
    }
}