/* --- 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: 768px) {
    .titolo {
        font-size: 45px !important;
        margin-top: 70px !important;
    }

    .descrizione {
        font-size: 20px !important;
    }

    .descrizionePagina {
        color: white;
        margin-bottom: 50px !important;
        font-size: 20px !important;
        margin-top: 30px !important;
    }

    .medio {
        font-size: 18px !important;
        margin-left: 30px !important;
        margin-right: 30px !important;
    }

    .procione-scelto {
        height: 710px !important;
        margin-top: 50px !important;
        margin-bottom: 700px !important;
    }

    .img-procione {
        width: 85% !important;
    }

    .scheda {
        font-size: 25px;
        font-weight: 700;
        margin-bottom: 10px;
        margin-top: 30px;
    }

    .descrizioneProcione {
        font-size: 20px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .dettagliScheda {
        margin-bottom: 9px !important;
        font-size: 19px !important;
        margin-left: 23px !important;
        margin-right: 23px !important;
    }

    #nomeOutsider {
        font-size: 25px !important;
        margin-top: 110px !important;
    }

    #immagineOutsider {
        width: 50%;
        min-width: 280px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 20px;
        display: block;
        transition: opacity 1s;
    }

}

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

.descrizionePagina {
    color: white;
    margin-bottom: 50px;
    font-size: 25px;
    margin-top: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;

}

.domanda {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background-color: rgba(20, 20, 20, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.intestazione {
    margin-bottom: 15px;
}

.prenome {
    font-size: 40px;
    font-weight: 100;
}

.nome {
    font-size: 40px;
}

.procione-scelto {
    height: auto;
    min-height: 500px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.img-procione {
    width: 80%;
    min-width: 280px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    display: block;
    transition: opacity 1s;
}

.scheda {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 30px;
}

.descrizioneProcione {
    font-size: 25px;
    margin-top: 15px;
}

.dettagliScheda {
    margin-bottom: 9px !important;
    font-size: 20px;
}

#nomeOutsider {
    font-size: 30px;
    margin-top: 60px;
}

#immagineOutsider {
    width: 50%;
    min-width: 280px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    display: block;
    transition: opacity 1s;
}

.inviaDomande {
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 150px;
    display: block;
    font-size: 30px;
}

.inviaDomande {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    background-color: rgba(20, 20, 20, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.inviaDomande:hover {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    background-color: rgba(247, 247, 247, 0.829) !important;
}



#quiz-container {
    min-height: 1200px;
    /* Imposta un'altezza minima indicativa per il blocco del quiz */
}


.blur {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background-color: rgb(113 113 113 / 28%) !important;
    color: #ffffff;
    border-color: rgb(176 176 176 / 53%) !important;
}

.okPopup {
    -webkit-backdrop-filter: blur(5px);
    margin-top: 0px !important;
    backdrop-filter: blur(5px);
    background-color: rgb(0 0 0 / 45%) !important;
    color: white;
    border-color: rgb(155 155 155 / 83%);
    margin-right: 10px;
}

.popup {
    display: none;
    position: absolute;
    background-color: #7a7a7a79;
    border: 1px solid #65656563;
    padding: 10px;
    z-index: 9;
    border-radius: 20px;
    font-size: 20px;
    max-width: 260px;
    text-align: center;
}