:root{
    --site-bg: #ffffff;
    --site-text-color: #000;
    --primary-color: #00ffaa;
    --primary-color-hover: #01a872;
    --secondary-color: #048ea0;
    --secondary-color-hover: #024f59;
    --green-gradient: linear-gradient(90deg, rgba(1, 98, 66, 0.94) 0%, rgba(0, 255, 170, 0.94) 51.92%, rgba(3, 124, 84, 0.94) 98.56%);
    --button-background: #000000;
    --button-color: #fff;
    --button-background-hover: #fff;
    --button-color-hover: #000;

}

/* ! 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{
    height: 80px;
    background: transparent;
}

/* --- 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 footer -----*/
.footer-menu{
    ul.menu-footer{
        display: flex;
        align-items: center;
        gap: 20px;
        list-style-type: none;
        a{
            text-decoration: none;
        }
    }
}


/*----- stile ricerca ajax -----*/
.ajax-search {
    position: relative;
    max-width: 420px;
    margin: 0 40px;

    #ajax-search-input {
        width: 100%;
        padding: 5px 36px 5px 0;
        border: none;
        border-bottom: 2px solid
        color-mix(in srgb, var(--site-text-color) 40%, transparent);
        font-size: 16px;
        outline: none;
        background: transparent;
        color: var(--site-text-color);
        transition: border-color .25s ease, box-shadow .25s ease;
        cursor: pointer;
        &::placeholder {
            color: color-mix(in srgb, var(--site-text-color) 40%, transparent);
        }

        &:focus {
            border-bottom-color: var(--secondary-color);
        }
    }

    .search-icon {
        position: absolute;
        right: 4px;
        top: 50%;
        width: 20px;
        height: 20px;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--site-text-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, var(--secondary-color) 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 {
                background: color-mix(
                        in srgb,
                        var(--secondary-color) 12%,
                        transparent
                );
                color: var(--secondary-color-hover);
            }
        }

        .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%);
    }
}


.wp-block-button__link {
    background: var(--button-background);
    color: var(--button-color);
    border: none;
    padding: 8px 28px;
    width: fit-content;
    border-radius: 30px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s linear;
    margin: 20px 0;
    &:hover{
        background: var(--button-background-hover);
        color: var(--button-color-hover);
        span,icon{
            background: var(--button-background-hover);
            color: var(--button-color-hover);
        }
    }
    a{
        text-decoration: none;
    }
}