/* --- LOBSTER --- */
@font-face {
    font-family: 'Lobster';
    src: url('/Font/Lobster-Regular.woff2') format('woff2'),
         url('/Font/Lobster-Regular.woff') format('woff');
    font-display: swap;
}

/* --- SF PRO (APPLE) --- */
@font-face {
    font-family: 'Apple';
    src: url('/Font/SFProDisplay-Medium.woff2') format('woff2'),
         url('/Font/SFProDisplay-Medium.woff') format('woff');
    font-display: swap;
}

/* --- STILI --- */
body {
    font-family: 'Apple', sans-serif;
}

.titolo, .btnfont, .faq-titolo {
    font-family: 'Lobster', cursive;
}

.titolo{
    font-size: 55px;
    margin-top: 80px;
    margin-left: 30px;
    margin-right: 30px;
    color: white;
}

.descrizione{
    font-size: 20px;
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    color: white;
}

@media screen and (max-width: 800px){
    .titolo{
        font-size: 45px !important;
        margin-top: 70px !important;
    }
    .sottotitolo {
        font-size: 25px !important;
    }
    .descrizione{
        font-size: 20px !important;
    }
    .medio{
        font-size: 18px !important;
        margin-left: 30px !important;
        margin-right: 30px !important;
    }
    .contatti{
        margin-top: 100px !important;
    }
}

.navbar-nav {
    --bs-nav-link-hover-color: white;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

/* Nascondiamo il div sfondo ai browser non WebKit */
.sfondo {
    display: none;
}

/* Applichiamo lo sfondo al body per i browser standard (Vecchio Fallback) */
body {
    background: url(/Procioni/wallpaper.webp) no-repeat center center fixed;
    background-size: cover;
}
/* Se siamo su mobile, usiamo l'immagine leggera nel fallback */
@media (max-width: 767px) {
    body { background-image: url(/Procioni/wallpaper_mobile2.webp); }
}

body:not(*:root > .sfondo) {
    background-position: center top -1px !important;
    padding-top: 1px !important;
    margin-top: -1px !important;
}


/* --- Differenziazione per WebKit (Safari, iOS) --- */
@supports (-webkit-backdrop-filter: blur(1px)) {
    body {
        background-color: #000;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        background: url(/Procioni/wallpaper.webp) no-repeat center center;
        background-size: cover;
        transform: translateZ(0);
    }

    /* SE SIAMO SU MOBILE (Safari) -> Cambia immagine */
    @media (max-width: 767px) {
        body::before { background-image: url(/Procioni/wallpaper_mobile2.webp); }
    }
}

/* --- Differenziazione per Browser Moderni No-WebKit (Chrome, Firefox, Edge, ecc) --- */
@supports not (-webkit-backdrop-filter: blur(1px)) {
    body {
        background: none !important;
        margin: 0;
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        background: url(/Procioni/wallpaper.webp) no-repeat center center;
        background-size: cover;
        transform: scale(1.01);
    }

    /* SE SIAMO SU MOBILE (Chrome/Firefox ecc) -> Cambia immagine */
    @media (max-width: 767px) {
        body::after { background-image: url(/Procioni/wallpaper_mobile2.webp); }
    }
}

/* --- Navbar (Funziona per tutti) --- */
.navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.nav-link{
    color: rgb(183, 183, 183);
}

.navbar-toggler{
    border: var(--bs-border-width) solid rgba(255, 255, 255, 0.258) !important;
}

.active{
    color: white !important;
}

.sottotitolo {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    font-size: 29px;
}

.grosso{
    margin-left: 130px;
    margin-right: 130px;
    margin-top: 40px;
    font-size: 35px;
    color: white;
}

.medio{
    margin-left: 80px;
    margin-right: 80px;
    margin-top: 25px;
    font-size: 22px;
    color: white;
}

.contatti{
    font-size: 20px;
    margin-top: 110px;
    color: white;
    text-align: center;
}

span{
    font-weight: 800;
