:root {
    --site-bg: #070707;
    --site-text-color: #F8F5EF;
    --primary-color: #C9A84C;
    --primary-color-hover: #E8C97A;
    --secondary-color: #0d0d0d;
    --secondary-color-hover: #141414;
    --button-background: #C9A84C;
    --button-color: #070707;
    --button-background-hover: #E8C97A;
    --button-color-hover: #070707;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dim: rgba(201,168,76,0.15);
    --gold-glow: rgba(201,168,76,0.08);
    --black: #070707;
    --dark: #0d0d0d;
    --dark2: #141414;
    --dark3: #1c1c1c;
    --dark4: #232323;
    --white: #F8F5EF;
    --muted: #7a7a7a;
    --muted2: rgba(248,245,239,0.58);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.25,0.46,0.45,0.94);

    /* ── alias usati da single.css / blog.css ─────────────────────────
       Mantengono nomi corti ma rimangono allineati al brand BEL. */
    --fd: 'DM Sans', system-ui, sans-serif;          /* font display/sans  */
    --fs: 'Playfair Display', Georgia, serif;        /* font serif italics */
    --dark-2: #141414;
    --dark-3: #1c1c1c;
    --gold-lt: #E8C97A;
    --r:  6px;                                       /* radius small  */
    --rm: 10px;                                      /* radius medium */
    --rl: 16px;                                      /* radius large  */
    --t:  .25s ease;                                 /* transition default */
}


/* ! 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: 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)!important;
}
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%);
    }
}