*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}

body{
    background:#fff;
    color:#1d1d1f;
    font-family:'Inter',sans-serif;
    font-size:17px;
    line-height:1.7;
    overflow-x:hidden;
    padding-top: 66px;
}

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


/*landing style*/
/* ─────────────────────────────────────────────────
   TIPOGRAFIA
───────────────────────────────────────────────── */
.display{
    font-family:'Inter Tight',sans-serif;
    font-weight:800;
    letter-spacing:-0.03em;
    line-height:1;
}
.headline{
    font-family:'Inter Tight',sans-serif;
    font-weight:700;
    letter-spacing:-0.025em;
    line-height:1.05;
}
.label{
    font-family:'Inter',sans-serif;
    font-weight:600;
    font-size:12px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:#6e6e73;
}

/* ─────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────── */
.wrap{max-width:1200px;margin:0 auto;padding:0 40px}
.wrap-narrow{max-width:860px;margin:0 auto;padding:0 40px}
.wrap-wide{max-width:1440px;margin:0 auto;padding:0 40px}

/* ─────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────── */
nav{
    position:fixed;top:0;left:0;right:0;z-index:500;
    height: auto;
    display:flex;align-items:center;
    background:#fff;
    backdrop-filter:saturate(180%) blur(20px);
    -webkit-backdrop-filter:saturate(180%) blur(20px);
    border-bottom:1px solid rgba(0,0,0,0.08);
    transition:background .3s;
    padding: 15px;
}
.nav-logo{
    max-width: 80px; height: auto;
}
nav.dark{
    background:rgba(0,0,0,0.85);
    border-bottom-color:rgba(255,255,255,0.1);
    .nav-logo{
        filter: invert(1)
    }
}
.nav-inner{
    max-width:1200px;margin:0 auto;padding:0 40px;
    width:100%;display:flex;align-items:center;justify-content:space-between;
}
.nav-brand{
    font-family:'Inter Tight',sans-serif;
    font-weight:700;font-size:17px;
    letter-spacing:-0.02em;
    color:#1d1d1f;text-decoration:none;
    transition:color .2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
nav.dark .nav-brand{color:#f5f5f7}
.nav-links{display:flex;gap:24px;list-style:none;margin: 0;}
.nav-links a{
    font-size:13px;font-weight:500;
    color:#6e6e73;text-decoration:none;
    transition:color .2s;
}
nav.dark .nav-links a{color:rgba(245,245,247,0.6)}
.nav-links a:hover,.nav-dark .nav-links a:hover{color:#1d1d1f}
nav.dark .nav-links a:hover{color:#f5f5f7}
.nav-cta{
    display:inline-flex;align-items:center;gap:7px;
    background:#1d1d1f;color:#fff;
    font-size:13px;font-weight:500;
    padding:8px 18px;border-radius:100px;
    text-decoration:none;
    transition:background .2s,opacity .2s;
}
nav.dark .nav-cta{background:#f5f5f7;color:#1d1d1f}
.nav-cta:hover{opacity:.82}