body {
    background-color: white;
}

* {
    font-family: 'Nunito', sans-serif;
    max-height: calc(100vh - 15px) !important;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.x-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background-color: #FFA000;
    color: #333;
    height: 78px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 8px 15px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
    box-sizing: border-box;
    max-width: 100vw;
    margin-top: 8px;
    border-radius: 15px;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
}
.x-navbar-logo {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.8rem;
    gap: 1rem;
}
.x-navbar-logo img {
    height: 50px;
    width: auto;
}

.custom-link {
    text-decoration: none;
    color: inherit;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
}
.x-navbar-menu {
    display: flex;
    gap: 2rem;
}
.x-navbar-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.x-navbar-menu a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.user-menu {
    position: fixed;
    top: 0;
    right: -310px;
    height: 100vh;
    width: 300px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    box-shadow:
        -4px 0 6px -1px rgba(0, 0, 0, 0.1),
        -2px 0 4px -1px rgba(0, 0, 0, 0.06),
        -8px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 0 0 0 15px;
}

.user-menu.active {
    right: 0;
}

.user-menu-header {
    height: 78px;
    padding: 0 2rem;
    background-color: #FFA000;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 8px 15px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    padding: 0 1rem;
    border-radius: 0 15px 15px 0;
}

.close-menu {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.user-menu-content {
    padding: 0;
}

.user-menu-content a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

.user-menu-content a i {
    width: 20px;
    text-align: center;
}

.user-menu-content a:hover {
    background-color: #f5f5f5;
    padding-left: 2.5rem;
}

.overlay {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 310px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
}

.overlay.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .x-navbar-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #FFA000;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    .x-navbar-menu.active {
        display: flex;
    }
}

/* Stile per il pulsante utente uguale alle voci del menu */
.user-profile {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.user-profile:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.fa-inverse:hover{
    color: #333;
}

/* Rotazione icona */
.user-profile i {
    transition: transform 0.3s ease;
}

.user-profile.active i {
    transform: rotate(360deg);
}

/* Stile per centrare il contenuto */
.x-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding-top: 60px;
}

/* Modifica del wrapper della pagina */
.page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.user-email {
    font-size: 0.9rem;
    color: #333;
    opacity: 0.8;
}

.hero-section {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
    padding-top: 100px;
}

.hero-image {
    flex: 0.4;
    width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-content {
    flex: 0.6;
    padding: 2rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #FFA000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #FFB74D;
}

.btn-secondary {
    background-color: #fff;
    color: #333;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem;
        gap: 2rem;
        padding-top: 80px;
    }

    .hero-image {
        width: 80%;
        padding-top: 1rem;
    }

    .hero-content {
        width: 80%;
        padding: 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Stile per il pulsante login invertito */
.user-profile-inverse {
    color: #fff;
    background-color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    white-space: nowrap;
    border: 2px solid #fff;
}

.user-profile-inverse:hover {
    color: #FFA000;
    background-color: #fff;
    transform: translateY(-2px);
}

.user-profile-inverse i {
    transition: transform 0.3s ease;
}

.x-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    background-color: #FFA000;
    color: #333;
    height: calc(100vh - 8px);
    box-shadow:
        4px 0 6px -1px rgba(0, 0, 0, 0.1),
        2px 0 4px -1px rgba(0, 0, 0, 0.06),
        8px 0 15px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 8px;
    left: 0;
    width: 250px;
    z-index: 1000;
    margin-left: 15px;
    border-radius: 15px;
    transition: width 0.3s ease;
    background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
}

.x-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* margin-top: 1rem; */
}

.x-sidebar-menu-item {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: justify-content 0.3s ease;
}

.x-sidebar-menu-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.x-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: inherit;
    font-weight: bold;
    font-size: 1.8rem;
    border-bottom: 2px solid #333;
    transition: border-color 0.3s ease;
}

.x-sidebar-logo:hover {
    border-color: transparent;
}

.x-sidebar-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.x-sidebar-logo:hover img {
    transform: rotate(360deg) scale(1.1);
}

.toggle-menu {
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    transition: transform 0.3s ease;
}

.toggle-menu:hover {
    color: #fff;
}

.x-sidebar-menu-item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.x-sidebar.collapsed {
    width: 80px;
}

.x-sidebar.collapsed .app-name {
    display: none;
}

.x-sidebar.collapsed .x-sidebar-menu-item {
    justify-content: center;
}

.x-sidebar.collapsed .x-sidebar-menu-item {
    justify-content: center;
}

.x-sidebar.collapsed .x-sidebar-menu-item i {
    font-size: 2rem;
    transform: scale(1.2);
}

.x-sidebar.collapsed .x-sidebar-menu-item span {
    display: none;
}

@media (max-width: 768px) {
    .x-sidebar {
        width: 80px;
    }

    .x-sidebar .app-name {
        display: none;
    }

    .x-sidebar .x-sidebar-menu-item {
        justify-content: center;
    }

    .x-sidebar .x-sidebar-menu-item i {
        font-size: 2rem;
        transform: scale(1.2);
    }

    .x-sidebar .x-sidebar-menu-item span {
        display: none;
    }

    .x-sidebar-logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .x-sidebar-menu {
        margin: 1rem auto 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .toggle-menu {
        display: none;
    }
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.menu-label {
    margin-left: 1rem;
}

/* style user_dashboard */
.sidebar {
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: flex-start; */
    /* align-items: flex-start; */
    /* padding: 1rem; */
    background-color: #FFA000;
    color: #333;
    height: calc(100vh -30px);
    box-shadow:
        4px 0 6px -1px rgba(0, 0, 0, 0.1),
        2px 0 4px -1px rgba(0, 0, 0, 0.06),
        8px 0 15px rgba(0, 0, 0, 0.2);
    /* position: fixed; */
    /* top: 8px; */
    /* left: 0; */
    /* width: 250px; */
    /* z-index: 1000; */
    /* margin-left: 15px; */
    border-radius: 15px 15px 0 0;
    /* transition: width 0.3s ease; */
    background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
}

/* @media (min-width: 992px) {
    .wrapper {
        margin-top: 15px;
        margin-left: 15px;
    }
} */

/* .wrapper {
    margin: 15px 0 0 15px;
} */

#main-menu .menu .menu-icon {
    color: #333;
    font-size: var(--font-size-xxl);
}

#main-menu .menu .menu-item {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: justify-content 0.3s ease;
}

.main-header #header-logo .logo-custom {
    font-weight: bold;
    font-size: 1.8rem;
}

.main-header #header-logo img, .main-header #header-logo svg {
    height: 50px;
}

.responsive-header #responsive-header-logo {
    height: 50px;
}

@media (max-width: 992px) {
    .logo {
        height: 50px;
    }
}

.app-name-custom {
    font-size: 1.8rem;
    font-weight: bold;
}

.responsive-header {
    background-color: #FFA000;
    background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

@media (min-width: 992px) {
    .content-top .navbar-custom-menu {
        display: block;
        background-color: #FFA000;
        background-image: linear-gradient(to bottom, #FFB74D, #FFA000);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 8px 15px rgba(0, 0, 0, 0.2);
        border-radius: 15px;
        padding: 10px 15px;
    }
}

.user-menu-wrapper .user-details .user-name {
    margin-left: 6px;
    color: #333;
}

.user-menu-wrapper span.user-avatar .user-avatar-icon-foreground {
    color: #333;
}

@media (max-width: 992px) {
    #main-menu .menu .menu-item-contents {
        margin-left: 20px;
    }

    #main-menu .menu {
        margin-top: 20px;
    }
}

/* bloccato, non fa funzionare il menu utente */
/* .content-top {
    z-index: -1;
} */

#navigation-toggler {
    color: #333;
    filter: opacity(100%);
    font-size: 1.5rem;
    padding-left: 10px;
}

.test-page {
    padding: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
}

.test-form {
    margin-bottom: 20px;
}

.form-select {
    display: block;
    margin: 10px 0;
    padding: 8px;
    width: 100%;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.submitted-data-title {
    font-size: 20px;
    margin-top: 20px;
}

.generated-scenario-title {
    font-size: 20px;
    margin-top: 20px;
}

.scenario-list {
    list-style-type: none;
    padding: 0;
}

.generated-image {
    width: 50%;
    height: auto;
}

.form-row {
    display: flex;
    flex-wrap: nowrap; /* Assicura che i campi non vadano a capo */
    gap: 10px; /* Spaziatura tra i campi */
}

.form-select {
    flex: 1; /* Permette ai select di occupare spazio uguale */
    min-width: 200px; /* Imposta una larghezza minima per i select */
}

.features-section, .services-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-top: 100px;
}

.features-section h1, .services-section h1, .pricing-section h1, .testimonials-section h1 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.features-section h1 i, .services-section h1 i, .pricing-section h1 i, .testimonials-section h1 i {
    color: #FFA000;
    font-size: 2rem;
}

.feature-icon, .service-icon {
    font-size: 2.5rem;
    color: #FFA000;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon, .service-item:hover .service-icon {
    transform: scale(1.1);
}

.work-in-progress {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 600px;
}

.work-in-progress i {
    font-size: 4rem;
    color: #FFA000;
    margin-bottom: 1.5rem;
    animation: rotate 2s infinite linear;
}

.work-in-progress h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.work-in-progress p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .work-in-progress {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }

    .work-in-progress i {
        font-size: 3rem;
    }

    .work-in-progress h2 {
        font-size: 1.8rem;
    }

    .work-in-progress p {
        font-size: 1.1rem;
    }

    .feature-icon, .service-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .work-in-progress {
        padding: 2rem 1rem;
    }

    .work-in-progress i {
        font-size: 2.5rem;
    }

    .work-in-progress h2 {
        font-size: 1.5rem;
    }

    .work-in-progress p {
        font-size: 1rem;
    }

    .feature-icon, .service-icon {
        font-size: 1.8rem;
    }
}

.features-section h1::after, .services-section h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #FFA000;
    margin: 1rem auto;
    border-radius: 2px;
}

.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.feature-item, .service-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-item::before, .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FFA000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before, .service-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover, .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3, .service-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-item p, .service-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .features-section, .services-section {
        padding: 1rem;
        margin-top: 1rem;
        padding-top: 80px;
    }

    .features-section h1, .services-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .features-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .feature-item, .service-item {
        padding: 1.5rem;
    }

    .feature-item h3, .service-item h3 {
        font-size: 1.3rem;
    }

    .feature-item p, .service-item p {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1rem;
        margin-top: 1rem;
        padding-top: 80px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-section, .services-section {
        padding: 1rem;
        margin-top: 1rem;
        padding-top: 70px;
    }

    .features-section h1, .services-section h1 {
        font-size: 1.8rem;
    }

    .feature-item, .service-item {
        padding: 1.2rem;
    }

    .feature-item h3, .service-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p, .service-item p {
        font-size: 0.95rem;
    }
}
