:root{
    --site-bg: #0F1520;
    --site-text-color: #93959A;
    --primary-color: #E8A020;
    --primary-color-hover: #ffbc39;
    --secondary-color: #392F20;
    --secondary-color-hover: #2c2315;
    --button-background: #E8A020;
    --button-color: #000;
    --button-background-hover: #ffbc39;
    --button-color-hover: #000;
    --gold:       #E8A400;
    --gold-lt:    #F5C842;
    --gold-dim:   rgba(232,164,0,.12);
    --dark:       #0B0D12;
    --dark-2:     #111318;
    --dark-3:     #181B24;
    --dark-4:     #20242F;
    --off-white:  #F3F0E9;
    --cream:      #EAE5D8;
    --body:       #3E404C;
    --muted:      #6E7080;
    --lb:         rgba(13,15,20,.09);
    --db:         rgba(255,255,255,.07);
    --fd: 'Barlow Condensed', sans-serif;
    --fs: 'Lora', serif;
    --fb: 'DM Sans', sans-serif;
    --r:  4px;
    --rm: 8px;
    --rl: 16px;
    --t:  .25s cubic-bezier(.4,0,.2,1);
    --py: 100px;
    --cw: 1320px;
    --gutter: 24px;
    @media (max-width: 768px) {
        --py: 50px;
    }
}



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

.label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
    &::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--gold); flex-shrink: 0; }
}
.h-jumbo { font-family: var(--fd); font-weight: 900; font-size: clamp(60px,8.5vw,104px); line-height: .88; text-transform: uppercase; letter-spacing: -.01em; }
.h-xl    { font-family: var(--fd); font-weight: 900; font-size: clamp(46px,6vw,76px);  line-height: .90; text-transform: uppercase; }
.h-lg    { font-family: var(--fd); font-weight: 900; font-size: clamp(34px,4vw,52px);  line-height: .94; text-transform: uppercase; }
.h-md    { font-family: var(--fd); font-weight: 900; font-size: clamp(26px,3vw,38px);  line-height: 1.0; text-transform: uppercase; }
.italic  { font-family: var(--fs); font-style: italic; font-weight: 400; text-transform: none; }
.gold    { color: var(--gold); }
.white   { color: #fff; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--fd); font-size: 13px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 13px 22px; border-radius: var(--r);
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--t); white-space: nowrap;
    @media (max-width: 768px) {
        padding: 16px 15px;
        font-size: 11px;
        width: 100%;
        text-align: center;
        justify-content: center;
        white-space: normal;
    }
}
.btn-lg   { 
    padding: 16px 28px; font-size: 14px; 
    @media (max-width: 768px) {
        padding: 16px 15px;
        font-size: 11px;
        width: 100%;
        text-align: center;
        justify-content: center;
        white-space: normal;
    }
}
.btn-full { width: 100%; justify-content: center; }
.btn-gold        { background: var(--gold);   color: var(--dark); border-color: var(--gold);   &:hover { background: var(--gold-lt); border-color: var(--gold-lt); } }
.btn-dark        { background: var(--dark);   color: #fff;        border-color: var(--dark);   &:hover { background: var(--dark-2); } }
.btn-ghost-dark  { background: transparent;   color: #fff;        border-color: rgba(255,255,255,.22); &:hover { border-color: var(--gold); color: var(--gold); } }
.btn-ghost-light { background: transparent;   color: var(--dark); border-color: var(--lb);     &:hover { border-color: var(--gold); color: var(--gold); } }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r); }
.t-dark  { background: var(--dark); color: rgba(255,255,255,.6); }
.t-white { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.t-gold  { background: var(--gold-dim); border: 1px solid rgba(232,164,0,.25); color: var(--gold); }
.t-cream { background: var(--cream); border: 1px solid var(--lb); color: var(--body); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; font-family: var(--fd); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r); }
.b-gold    { background: var(--gold); color: var(--dark); }
.b-outline { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.4); }
.b-cream   { background: var(--cream); border: 1px solid var(--lb); color: var(--muted); }

/* ── 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: #fff;
}
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%);
    }
}


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


/*------- modale video ---------*/
.video-wrapper {
    max-width: 100%;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.modal-content {
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.85;
}

/* Loader */
.video-loader {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.video-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Fade video */
#youtubeVideo {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#youtubeVideo.loaded {
    opacity: 1;
}