/*
Theme Name: Terre Maugeri
Author: Federico Mandis
Author URI: 
Theme URI: 
Tags: full-site-editing
Text Domain: terremaugeri
Requires at least: 6.1
Requires PHP: 7.4
Tested up to: 6.9
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

*/

@view-transition {
    navigation: auto;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

a{
    color: rgb(83, 83, 83);
    transition: color .3s ease-in-out;
}

.white-space-none{
	white-space: nowrap !important;
}

a:not([class]):hover {
    opacity: 1;
     color: black;
    opacity: 1;
}


html {
    scroll-behavior: smooth;
}

@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: calc(0.4rem + 0.8vw);
    }
}


main {
    min-height: 80vh;
}



header *:not(header nav) {
    white-space: nowrap;
}

.wp-block-armonia-container {
    position: relative;
    margin: 0 auto;
}

.wp-block-cover__inner-container {
    min-width: 100%;
}

.wp-block-column {
    position: relative;
}

button {
    font-family: inherit;
}

.container.has-animation {
    transform: translateY(5rem);
    opacity: 0;
}

.container.has-animation.animate {
    transform: translateY(0rem);
    opacity: 1;
    transition: all .3s ease-in-out;
}

.is-position-sticky {
    position: sticky;
}

html:has(.wp-block-cover.hero-first) header.is-position-sticky {
    position: fixed !important;
    width: 100%;
}

header.is-position-sticky {
    z-index: 99;
}

section {
    margin-bottom: 4rem !important;
    scroll-margin-top: 7rem;
}

.wp-block-columns {
    justify-content: space-between;
}

@media (max-width: 768px) {

    .wp-block-site-logo {
        width: 6.5rem;
        max-width: 6.5rem;
    }

    .is-column-reverse {
        flex-direction: column-reverse;
    }

    header *:not(header nav) {
        white-space: nowrap;
    }
	
	.tabs.wc-tabs li{
	width: 33.33% !important;
		border-left: 0rem solid black !important;
		
}
	.tabs.wc-tabs li a[aria-selected="true"]{
		border-bottom: .15rem solid black !important;
	}
	
	
.vini-marquee h2, .vini-marquee p{
	font-size: 6.8vw !important;
	white-space: nowrap;
}
	.shop-marquee h2, .shop-marquee p{
	font-size: 5.6vw !important;
		white-space: nowrap;
	}
}

/* HEADER */

html:has(.wp-block-cover.hero-first) header.has-contrast-background-color.wp-block-group {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 20%,
            rgba(0, 0, 0, 0.65) 40%,
            rgba(0, 0, 0, 0.5) 65%,
            rgba(0, 0, 0, 0) 100%) !important;
    transition: all .2s ease-in-out;
}

@media (min-width: 801px) {
    html:has(.wp-block-cover.hero-first) header .wp-block-navigation__responsive-container-content a {
        color: var(--wp--preset--color--contrast) !important;
    }
}


html:has(.wp-block-cover.hero-first)  span.wc-block-mini-cart__amount {
    color: var(--wp--preset--color--contrast) !important;
}

html:has(.wp-block-cover.hero-first) header.scrolled .wp-block-navigation__responsive-container-content a,
html:has(.wp-block-cover.hero-first) header.scrolled span.wc-block-mini-cart__amount {
    color: black !important;
}

html:has(.wp-block-cover.hero-first) header.wp-block-group.scrolled {
    background: var(--wp--preset--color--contrast) !important;
    -webkit-box-shadow: 0px 5px 30px 0px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 5px 30px 0px rgba(0, 0, 0, 0.05);
}

html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wc-block-customer-account__link,
html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wc-block-mini-cart__quantity-badge {
    border: .1rem solid var(--wp--preset--color--contrast) !important;
}

 .wc-block-customer-account__link,
 .wc-block-mini-cart__quantity-badge {
    border: .1rem solid black !important;
}

html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wp-block-site-logo img {
    filter: invert(1) !important;
}

html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wp-block-navigation__responsive-container-open svg {
    fill: var(--wp--preset--color--contrast) !important;
}

 .wc-block-customer-account__link::after,
 .wc-block-mini-cart__quantity-badge::after {
    background-color: black !important;
}

html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wc-block-customer-account__link::after,
html:has(.wp-block-cover.hero-first) header:not(.scrolled) .wc-block-mini-cart__quantity-badge::after {
    background-color: var(--wp--preset--color--contrast) !important;
}

header.scrolled .wp-block-site-logo {
    filter: none;
}

/* VIDEO */

.wp-block-video {
    display: flex;
    position: relative;
}

.wp-block-video video {
    height: stretch !important;
    min-height: 100% !important;
    object-fit: cover !important;
}


/* IMAGE */

.animate-products .wp-block-post-title {
    position: relative;
    display: inline-block;
}

.animate-products .wp-block-post-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

.animate-products .wp-block-group:hover .wp-block-post-title::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.animate-products .wp-block-group:hover .wp-block-post-title {
    opacity: .8;
}

.wp-block-post-featured-image img {
    transition: all .2s ease-in-out;
}

.animate-products .wp-block-group:hover .wp-block-post-featured-image img {
    transform: scale(1.1) rotate(6deg);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

figure.grape-absolute {
    position: absolute;
    top: 0;
    right: 0;
    width: 15rem;
}

figure.grape-absolute img {
    min-width: 100%;
}


.double-image figure {
    position: relative;
}

.double-image figure.image-2 {
    z-index: 10;
}

/* SPLIDE */

.splide__arrow {
    width: 3em !important;
    height: 3em !important;
    opacity: .9 !important;
    border: .1rem solid var(--wp--preset--color--contrast) !important;
}


@media (min-width: 801px) {

    .splide__arrow--prev {
        left: -1.5em !important;
    }

    .splide__arrow--next {
        right: -1.5em !important;
    }

}


/* COVER */

.wp-block-cover.hover-card {
    position: relative;
    overflow-y: hidden;
}

.wp-block-cover.hover-card .description {
    transform: translateY(5rem);
    opacity: 0;
    transition: all .3s ease-in-out;
}



.wp-block-cover.hover-card:hover .description {
    transform: translateY(0rem);
    opacity: 1;
}

.wp-block-cover.hover-card .wp-block-cover__background {
    opacity: 0 !important;
    transition: all .3s ease-in-out;
}

.wp-block-cover.hover-card:hover .wp-block-cover__background {
    opacity: .9 !important;
}


/* BUTTONS */

.wp-block-button__link, .single_add_to_cart_button {
    display: flex;
    align-items: center;
}

.single_add_to_cart_button, a.wc-block-components-button, button.wc-block-components-button{
    background-color: black;
}

.wp-block-button__link, .single_add_to_cart_button, .wc-block-mini-cart__footer-actions a, a.wc-block-components-button, button.wc-block-components-button{
    transition: all .2s ease-in-out !important;
}

.is-style-filled .wp-block-button__link:hover,
.is-style-filled-black .wp-block-button__link:hover,
.single_add_to_cart_button:hover,
a.wc-block-components-button:hover,
button.wc-block-components-button:hover{
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--contrast) !important;
}

.is-style-link .wp-block-button__link::after,
.is-style-link.wp-block-read-more::after {
    content: "";
    background-color: var(--wp--preset--color--contrast);
    /* Cambia colore icona */
    -webkit-mask-image: url("./assets/icons/arrow-right.svg");
    mask-image: url("./assets/icons/arrow-right.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    display: inline-block;
    width: .9rem;
    min-width: .9rem;
    height: .9rem;
    min-height: .9rem;
    transition: all .2s ease-in-out;
    margin-left: .8rem;
    margin-bottom: .1rem;
}

.is-style-link .wp-block-button__link:hover:after,
.is-style-link.wp-block-read-more:hover:after {
    margin-left: 1.4rem;
}

/* WOOCOMMERCE */

.wc-block-customer-account__link svg,
.wc-block-mini-cart__quantity-badge svg {
    display: none !important;
}

.wc-block-customer-account__link::after {
    content: "";
    /* Cambia colore icona */
    -webkit-mask-image: url("./assets/icons/user-terre.svg");
    mask-image: url("./assets/icons/user-terre.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;

    display: inline-block;
    width: .9rem;
    min-width: .9rem;
    height: .9rem;
    min-height: .9rem;
    transition: all .2s ease-in-out;
}




.wc-block-cart-item__image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 8rem;
    object-fit: contain !important;
}

.wc-block-customer-account__link,
.wc-block-mini-cart__quantity-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100rem;
}

header.scrolled .wc-block-customer-account__link,
header.scrolled .wc-block-mini-cart__quantity-badge {
    border: .1rem solid black;
}

.wc-block-mini-cart__quantity-badge {
    padding: .5em;
}

.wc-block-mini-cart__quantity-badge::after {
    content: "";
    /* Cambia colore icona */
    -webkit-mask-image: url("./assets/icons/cart-terre.svg");
    mask-image: url("./assets/icons/cart-terre.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;

    display: inline-block;
    width: .9rem;
    min-width: .9rem;
    height: .9rem;
    min-height: .9rem;
    transition: all .2s ease-in-out;
}


/* MAP */

.wp-block-webfactory-map,
.wp-block-webfactory-map iframe {
    height: 100% !important;
    min-height: 100%;
}

@media (max-width: 768px) {

    .wp-block-webfactory-map,
    .wp-block-webfactory-map iframe {
        min-height: 30rem;
        aspect-ratio: 1;
        max-width: 100%;
    }
}

/* WOOCOMMERCE */

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 10;
}

.woocommerce-product-gallery__image, .woocommerce-product-gallery__image a, .woocommerce-product-gallery__image img {
    aspect-ratio: 1;
    object-fit: contain;
}

.tabs.wc-tabs{
    display: flex;
    justify-content: center;
}


.woocommerce-Tabs-panel{
    max-width: 35rem;
    margin: 0 auto !important;
}

.woocommerce-Tabs-panel p, .woocommerce-Tabs-panel h3, .woocommerce-Tabs-panel .el-content{
    text-align: center !important;
}


/* WPCF7 */

.wpcf7-form p {
    margin-top: .5rem;
}

.wpcf7-form br {
    display: none;
}

.line:has(label),
.line:not(:has(label)) p {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 49%);
    justify-content: space-between;
    align-items: end;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7-form span {
    font-family: inherit;
    font-size: inherit;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    padding: .5rem;
    margin-top: .3rem;
    border: .1rem solid rgb(197, 197, 197);
    background-color: white;
    color: black;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: .1rem solid rgba(255, 255, 255, 0.6);
}

.wpcf7-form select option {
    color: black;
}

.wpcf7-form label {
    padding: .4rem 0;
}

.wpcf7-list-item {
    margin-left: 0;
}

.wpcf7-form input::placeholder,
.wpcf7-form select::placeholder,
.wpcf7-form textarea::placeholder {
    color: black;
    opacity: .6;
}

.wpcf7-form p {
    margin-bottom: 0 !important;
}

.wpcf7-form .wpcf7-submit {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--contrast);
    border: none;
    text-align: center;
    padding-top: calc(0.667em + 2px);
    padding-right: calc(1.333em + 2px);
    padding-bottom: calc(0.667em + 2px);
    padding-left: calc(1.333em + 2px);
    font-size: 1.3rem;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    opacity: .8;
    transition: all .2s ease-in-out;
}

.wpcf7-form .wpcf7-submit:hover {
    opacity: 1;
}

.wpcf7-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.wpcf7-form,
.wpcf7-form select,
.wpcf7-form textarea,
.wpcf7-form span:not(.wpcf7-spinner) {

    width: 100%;
    max-width: 100%;
}


.wpcf7-form a {
    color: var(--wp--preset--color--base);
    text-decoration: underline;
    font-size: inherit;
}

.wpcf7-form a:hover {
    opacity: .7;
}

.wpcf7-response-output {
    margin: .5rem 0 !important;
}

