/* CSS Document */
body {
	padding-top: 55px;
}
#page-header {
	padding-top: 120px;
    background: linear-gradient(135deg, #35b8b0 0%,#1c799d 100%);
}
#header-text {
	color: #fff;
}
#header-img > img {
    box-shadow: 0 2px 10px 1px rgba(0,0,0,.2);
}
section {
	padding: 40px 0;
	position: relative;
}
h3.section-title {
	margin-bottom: 30px;
	font-weight: 400;
}
#features i {
	    background: #f9f9f9;
        width: 124px;
    border-radius: 50%;
    height: 124px;
    line-height: 124px;
    border-radius: 50%;
}
#features h5 {
	color: #1b99b9;
	font-weight: 400;
	margin-top: 15px;
	margin-bottom: 15px;
}
#screenshots {
	padding-top: 50px;
}
#screenshots h2 {
	font-weight: 400;
}
#screenshots .row {
	margin-bottom: 80px;
}
#screenshots img {
    box-shadow: 0 2px 10px 1px rgba(0,0,0,.2);
}
#page-footer {
    padding: 15px 0 10px;
    font-size: 12px;
}

/* Stile per il pulsante Scroll to Top */
.btn-scroll-top {
position: fixed !important;
    bottom: 110px !important; /* Alzato a 110px sopra il footer e bloccato */
    right: 25px !important;
    z-index: 9999 !important; /* Lo tiene sopra qualsiasi elemento grafico */
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    background-color: var(--bs-primary) !important;
    border: none !important;
}
.btn-scroll-top.show {
    opacity: 0.65 !important;
    visibility: visible !important;
}

/* Effetto al passaggio del mouse su Desktop */
.btn-scroll-top:hover {
    transform: translateY(-3px);
    opacity: 1 !important;
}

/* Classe che lo renderà visibile via JavaScript (Sempre semitrasparente al 65%) */
.btn-scroll-top.show {
    opacity: 0.65;
    visibility: visible;
}
/* ==========================================================================
   STILI PERSONALIZZATI PER IL LAYOUT GENERALE
   ========================================================================== */

/* 1. Blocca il footer sul fondo dello schermo e assicura i colori corretti */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* 2. Stile per il pulsante semitrasparente Scroll to Top */
.btn-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1040; /* Rimane sopra i contenuti ma sotto il menu mobile */
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Parte completamente invisibile */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    background-color: var(--bs-primary) !important;
    border: none !important;
}

/* Effetto al passaggio del mouse su Desktop */
.btn-scroll-top:hover {
    transform: translateY(-3px);
    opacity: 1 !important; /* Diventa solido al passaggio del mouse */
}

/* Classe attivata via JavaScript (Sempre semitrasparente al 65% durante lo scroll) */
.btn-scroll-top.show {
    opacity: 0.65;
    visibility: visible;
}

/* ==========================================================================
   OTTIMIZZAZIONI SPECIFICHE PER SMARTPHONE (MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
    /* Forza il menu mobile ad occupare solo il 75% della larghezza dello schermo */
    .offcanvas.offcanvas-end {
        width: 75% !important;
    }
    
    /* Allinea perfettamente i testi dei link sul lato sinistro dell'offcanvas */
    .navbar-custom .navbar-nav .nav-link {
        padding-left: 15px !important;
        text-align: left !important;
    }
}

/* Sincronizza i colori del banner GDPR con il tema chiaro/scuro del sito */
#cc--main {
    --cc-bg: var(--bs-body-bg);
    --cc-text: var(--bs-body-color);
    --cc-btn-primary-bg: var(--bs-primary);
    --cc-btn-primary-text: #fff;
}

/* ==========================================================================
   RITOCCHI VISIVI PER IL BANNER GDPR (PIÙ EVIDENTE E CURATO)
   ========================================================================== */

/* Applica un'ombra profonda e un bordo solido al banner in modalità Chiara */
#cc--main .cm {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important; /* Forza il bianco puro per contrasto */
    border-radius: 12px !important; /* Angoli più morbidi e moderni */
}

/* Regola il contrasto e l'ombra del banner in modalità Scura (Dark Mode) */
[data-bs-theme="dark"] #cc--main .cm {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    background-color: #1e2229 !important; /* Grigio scuro compatto */
}

/* Rende i pulsanti di accettazione più evidenti e distanziati */
#cc--main .cm__title {
    color: var(--bs-body-color) !important;
    font-size: 1.2rem !important;
}

#cc--main .cm__desc {
    color: var(--bs-body-color) !important;
    opacity: 0.85 !important;
}