
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    background: #F6F6F6;
}




@media (min-width: 1025px) {
    html, body {
        overflow: hidden !important; 
        height: 100vh;
        
    }

    .container {
        height: calc(100vh - 60px); 
        overflow: hidden;
        

    }

    .main {
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        max-width: 1024px;
        margin: 0 auto !important;
        
    }


}


@media (max-width: 1024px) {
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden;
        height: auto;
    }
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #6d6d6d;
    min-height: 100vh;
}

.navbar-logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-logo svg {
    height: 40px;
    width: auto;
}

.navbar {
    background: #F6F6F6;
    height: 50px;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    border-bottom: 1px solid #d6d6d6;
    z-index: 1000;
    padding-top: 0px;
}

.navbar-content {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-links{
    font-size: 14px;
    margin-left: 40px;
}
.nav-link {
    margin-left: 20px;
    color: #6d6d6d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover { 
    color: #4d4d4d;
    text-decoration: underline;
}


@media (max-width: 1024px) {
    .navbar-links {
        display: none !important;
    }

}


@media (min-width: 1025px) {
    .navbar-links-desktop { display: flex; gap: 30px; align-items: center; margin-left: auto; margin-right: 30px; }
    .mobile-menu-right { display: none; }
}


@media (max-width: 1024px) {
    .navbar-links-desktop { display: none; }

    .navbar-content {
        justify-content: space-between; 
    }

    .mobile-menu-right {
        display: flex;
        align-items: center;
        position: relative;
    }

    .dropdown-toggle {
        background: none;
        border: none;
        font-size: 18px;
        font-weight: 500;
        color: #4d4d4d;
        cursor: pointer;
        padding: 8px 12px;
    }

    .mobile-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: #F6F6F6;
        border: 1px solid #d6d6d6;
        min-width: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 9999;
        
        
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    }
    
    
    .mobile-dropdown.open {
        max-height: 300px;     
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-dropdown a {
        display: block;
        padding: 12px 20px;
        color: #4d4d4d;
        text-decoration: none;
        font-size: 15px;
    }

    .mobile-dropdown a:hover {
        background: #e0e0e0;
    }
}


.container {
    display: flex;
    margin-top: 40px;
    min-height: calc(100vh - 60px);
    transition: all 0.3s ease;
}


.main {
    flex-grow: 1;
    padding: 20px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 50px;
    min-width: 0;
    background: #F6F6F6;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.main-header h1 {
    margin: 0;
    font-size: 1.8rem;
}








@media (max-width: 1024px) {

    .container{
        margin-top: 30px;
    }
    
    #right-sidebar{
        display: none;
    }
    #left-sidebar{
        display: none;
    }

}

@media (min-width: 1025px) {
    .container{
        margin-top: 30px;
    }
}




.main footer {
    background: #d6d6d6;
    color: #4d4d4d;
    padding: 40px 20px 60px 20px;
    margin: 60px -30px -30px -30px;   

    font-family: Arial, Helvetica, sans-serif;
}

.main footer .footer-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}


.main footer font[size="1"],
.main footer .small {
    font-size: 12px;
    line-height: 1.6;
}


.main footer a {
    color: #4d4d4d;
    text-decoration: none;
    transition: opacity 0.2s;
}

.main footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}


.main footer strong {
    font-weight: 700;
}


.main footer .copyright {
    font-size: 12px;
}


@media (max-width: 1024px) {
    .main footer {
        margin: 40px -20px -30px -20px;
        padding: 35px 20px 50px;
    }

}



.full-width {
    grid-column: 1 / -1;
}



@media (max-width: 1024px) {


    .main{
        padding: 15px;
        padding-top: 35px;
    }
    
    
    
    .full-width {
        grid-column: 1 / -1;
    }
}


/* Titolo principale della pagina Terms */
.terms-title {
    font-size: 28px;
    font-weight: 700;

    color: #4d4d4d;
    text-align: left;

}

/* Sottotitolo (es. introduzione o sezione importante) */
.terms-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #4d4d4d;
    text-align: left;

    line-height: 1.5;
    margin-bottom: 0px;
}

/* Paragrafo di testo standard */
.terms-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4d4d4d;
    text-align: justify;
    margin-top: 0px;

}

/* Testo per "Last updated" in fondo */
.terms-last-update {
    font-size: 13px;
    color: #6d6d6d;
    text-align: left;

}

/* Responsività mobile */
@media (max-width: 1024px) {
    .terms-title {
        font-size: 24px;

    }
    .terms-subtitle {
        font-size: 16px;

    }
    .terms-text {
        font-size: 14px;
        line-height: 1.6;
    }
    .terms-last-update {
        font-size: 12px;

    }
}