:root{
    --site-bg: #fff;
    --site-text-color: #000;
    --primary-color: #000;
    --primary-color-hover: #fffff;
    --secondary-color: #333;
    --secondary-color-hover: #111;
    --button-background: #000;
    --button-color: #fff;
    --button-background-hover: #333;
    --button-color-hover: #fff;

    /* ── Pulsante del sito ───────────────────────────────────────────────
       Due neri in sfumatura su uno sfondo largo il doppio del bottone:
       a riposo si vede la metà grafite → nero, in hover lo sfondo scorre
       e la luce passa dall'altro lato (transizione su background-position,
       perché i gradienti non si animano). Testo bianco maiuscolo spaziato.
       Uso: background: var(--btn-gradient); background-size: var(--btn-gradient-size);
            hover → background-position: var(--btn-gradient-pos-hover). */
    --btn-gradient: linear-gradient(120deg, #3a3a3a 0%, #0d0d0d 50%, #3a3a3a 100%);
    --btn-gradient-size: 200% 100%;
    --btn-gradient-pos-hover: 100% 0;
    --btn-color: #fff;
    --btn-radius: 999px;
    --btn-font-size: 13px;
    --btn-font-weight: 500;
    --btn-letter-spacing: .14em;
    --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -14px rgba(0, 0, 0, .7);
    --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -14px rgba(0, 0, 0, .8);
    --btn-transition: background-position .5s ease, box-shadow .3s ease, transform .3s ease;
}

/* Pulsanti di WordPress e WooCommerce senza uno stile dedicato nel tema
   (carrello e checkout a blocchi, pagina ordine, bottoni Gutenberg…).
   Solo l'aspetto: misure e layout restano quelli dei rispettivi stili.
   I pulsanti con uno stile proprio usano le stesse variabili --btn-*. */
body .wc-block-components-button:not(.is-link),
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit,
body .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
    border: 0;
    border-radius: var(--btn-radius);
    background: var(--btn-gradient);
    background-size: var(--btn-gradient-size);
    color: var(--btn-color);
    font-weight: var(--btn-font-weight);
    letter-spacing: var(--btn-letter-spacing);
    text-transform: uppercase;
    box-shadow: var(--btn-shadow);
    transition: var(--btn-transition);
}
body .wc-block-components-button:not(.is-link):hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce #respond input#submit:hover,
body .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
    background: var(--btn-gradient);
    background-size: var(--btn-gradient-size);
    background-position: var(--btn-gradient-pos-hover);
    color: var(--btn-color);
    box-shadow: var(--btn-shadow-hover);
}
/* general.css colora gli span con --site-text-color: dentro i bottoni il testo resta bianco. */
body .wc-block-components-button:not(.is-link) span,
body .woocommerce a.button span,
body .woocommerce button.button span { color: inherit; }



/* ! Reset */
body, html{ font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; box-sizing: border-box;margin: 0;padding: 0;}
*,*:before,*:after{ box-sizing: border-box; }
h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0;padding: 0;}
ol,ul{padding-left: 20px;}
img{height: auto;max-width: 100%;}
a{text-decoration: underline;}
hr{border:none; border-bottom: 1px solid #000}
strong {font-weight: bold}
html body {overflow-x:hidden;}
button{
    cursor: pointer;
}

body{
    background: var(--site-bg);
}

.section-spacer{
    /* Altezza = header reale (impostata da header-spacer.js in --header-height);
       83px è solo il ripiego finché il JS non misura l'header. */
    height: var(--header-height, 83px);
    background: transparent;
}


/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* --- typography --- */
h1,h2,h3,h4,h5,h6,a{
    color: var(--site-text-color);
}
p,span{
    color: var(--site-text-color);
}
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;

    @media (max-width: 768px) {
        font-size: 2.75rem;
    }
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;

    @media (max-width: 768px) {
        font-size: 2.25rem;
    }
}

h3 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;

    @media (max-width: 768px) {
        font-size: 1.75rem;
    }
}

h4 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 1rem;

    @media (max-width: 768px) {
        font-size: 1.5rem;
    }
}

h5 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;

    @media (max-width: 768px) {
        font-size: 1.2rem;
    }
}

h6 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.site-logo{
    max-width: 300px;
}


/*----- stile ricerca ajax -----*/
.ajax-search {
    position: relative;
    max-width: 700px;
    width: 100%;
    @media (max-width: 768px) {
        display: none;
    }

    #ajax-search-input {
        width: 100%;
        font-size: 16px;
        outline: none;
        color: #A39C9C;
        transition: border-color .25s ease, box-shadow .25s ease;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid #373737;
        border-radius: 15px;
        padding: 10px 30px 10px 20px;
        &::placeholder {
            color: #A39C9C;
        }
        &:focus {
            border-bottom-color: var(--primary-color);
        }
    }

    .search-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        width: 20px;
        height: 20px;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--primary-color);
        opacity: .7;

        /* lente */
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E") no-repeat center;
        background: currentColor;
    }

    &.loading {
        .search-icon {
            opacity: 1;
            background: none;
            border: 2px solid
            color-mix(in srgb, #fff 30%, transparent);
            border-top-color: var(--secondary-color);
            border-radius: 50%;
            animation: spin .8s linear infinite;
            mask: none;
        }
    }

    #ajax-search-results {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--site-bg);
        border-radius: 14px;
        overflow: hidden;
        display: none;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);

        a {
            display: block;
            padding: 14px 16px;
            font-size: 15px;
            color: var(--site-text-color);
            text-decoration: none;
            transition: background .2s ease, color .2s ease;
            &:hover {
                color: #fff;
            }
        }

        .search-status {
            padding: 12px 16px;
            font-size: 14px;
            color: color-mix(in srgb, var(--site-text-color) 55%, transparent);
        }
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg) translateY(-50%);
    }
}