.app-main {
    background-color: white;
}
.app-content * {
    font-size: 16px;
}
.row {
    max-width: 100%;
    margin:0;
}

/**** BUTTON ****/
.btn {
    font-size: 14px;
    font-weight: 700;
}
.btn-transparent {
    background: transparent !important;
}
.btn-xs {
    display: inline-flex;
    height: 25px;
    padding: 0px 7px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/**** BUTTON PRIMARY ****/
.btn-transparent-primary, .btn-transparent-primary * {
    color: var(--bs-text-primary) !important;
}

/**** BUTTON SECONDARY ****/
.btn.btn-light-secondary, .btn.btn-light-secondary i  {
    color: var(--bs-text-secondary)
}
.btn.btn-outline.btn-outline-secondary, .btn.btn-outline.btn-outline-secondary i {
    color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}
.btn.btn-outline.btn-outline-secondary:hover, .btn.btn-outline.btn-outline-secondary:hover i {
    color: var(--bs-secondary-active) !important;
    border-color: var(--bs-secondary-active) !important;
}
.btn-transparent-secondary, .btn-transparent-secondary * {
    color: var(--bs-text-secondary) !important;
}

/**** BUTTON LIGHT ****/
.btn.btn-light, .btn.btn-light i  {
    background-color: #fff;
    color:#000 !important;
}
.btn.btn-light-light, .btn.btn-light i  {
    background-color: #FFFFFF80;
    color:#fff;
}
.btn.btn-outline.btn-outline-light, .btn.btn-outline.btn-outline-light i {
    color: #fff;
    border-color: #fff;
}
.btn.btn-outline.btn-outline-light:hover:not(.btn-active) {
    background-color: #FFFFFF80 !important;
}
.btn-transparent-light, .btn-transparent-light * {
    color: #fff !important;
}

/**** BUTTON DARK ****/
.btn.btn-outline.btn-outline-dark, .btn.btn-outline.btn-outline-dark i {
    color: #000;
    border-color: #000;
}
.btn.btn-outline.btn-outline-dark:hover:not(.btn-active) {
    background-color: #ccc6c680 !important;
}
.btn-transparent-dark, .btn-transparent-dark * {
    color: #000 !important;
}

/**** BUTTON DANGER ****/
.btn-transparent-danger, .btn-transparent-danger * {
    color: var(--bs-danger) !important;
}

/**** BUTTON GRAY ****/
.btn-gray {
    background-color: var(--bs-gray);
    color: var(--bs-gray-inverse);
}
.btn-gray * {
    color: var(--bs-gray-inverse) !important;
    background-color: transparent !important;
}
.btn-gray:hover, .btn-gray:hover i {
    background-color: #7b7878;
    color: var(--bs-gray-inverse);
}
.btn-light-gray{
    background-color: var(--bs-gray-light);
    color: var(--bs-text-gray);
}
.btn-light-gray:hover{
    background-color: var(--bs-gray);
    color: var(--bs-gray-inverse);
}
.btn.btn-light-gray:hover:not(.btn-active) i {
    color: var(--bs-gray-inverse) !important;
}
.btn.btn-outline.btn-outline-gray, .btn.btn-outline.btn-outline-gray i {
    color: var(--bs-gray);
    border-color: var(--bs-gray);
}
.btn.btn-outline.btn-outline-gray:hover:not(.btn-active) {
    background-color: var(--bs-gray-light) !important;
}
.btn-transparent-gray, .btn-transparent-gray * {
    color: var(--bs-gray) !important;
}

/**** ALERT ****/
.alert {
    font-weight: 700;
}

/**** ALERT SUCCESS ****/
.alert.alert-success:before {
    content: "\f058";
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    margin-right: 5px;
}

/**** ALERT SUCCESS ****/
.alert.alert-warning:before {
    content: "\f06a";
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    font-weight: 600;
    margin-right: 5px;
}

/**** ALERT PRIMARY ****/
.alert.alert-primary:before {
    content: "\f06a";
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    font-weight: 600;
    margin-right: 5px;
}

/**** ALERT DANGER ****/
.alert.alert-danger:before {
    content: "\f057";
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    margin-right: 5px;
}

/**** CHIPS ****/
.chips {
    display: inline-flex;
    align-items: center;
    border-radius: 50rem !important;
    font-weight: 600;
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
    margin-right: 1rem;
}

.chips-outline-light {
    background-color: transparent;
    border: 1px solid white;
    color:var(--bs-light);
}
.chips-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--bs-secondary);
    color:var(--bs-secondary);
}
.chips-outline-primary {
    background-color: transparent;
    border: 1px solid var(--bs-primary);
    color:var(--bs-primary);
}

.chips-outline-dark {
    background-color: transparent;
    border: 1px solid var(--bs-dark);
    color:var(--bs-dark);
}

.chips-outline-success {
    background-color: transparent;
    border: 1px solid var(--bs-success);
    color:var(--bs-dark);
}

.chips-primary {
    background-color: var(--bs-primary);
    color: white;
}
.chips-secondary {
    background-color: var(--bs-secondary);
    color: white;
}
.chips-danger {
    background-color: var(--bs-danger);
    color: white;
}
.chips-light {
    background-color: white;
    color: black;
}
.chips-dark {
    background-color: var(--bs-dark);
    color: white;
}
.chips-success {
    background-color: var(--bs-success);
    color: white;
}
.chips-warning {
    background-color: var(--bs-warning);
    color: white;
}


/**** MENU ****/
.menu-item a {
    font-size: 14px;
    font-weight: 600;
}


/**** FOOTER ****/
#kt_app_footer .app-container {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
}
#kt_app_footer .title {
    color: var(--ucue-theme-primary);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    word-wrap: break-word;
}
#kt_app_footer .circle {
    height: 32px;
    width: 32px;
    background-color: transparent;
    border-radius: 19.50px;
    border: 1px #96969647 solid;
    display: flex;
    justify-content: center;
    align-items: center;
}
#kt_app_footer .circle i {
    color: black;
}
.app-footer .row div a {
    color: var(--bs-dark) !important;
}

/**** MAIN ****/
.app-content {
    padding-top:0;
    padding-bottom:0;
}
#kt_app_content_container {
    padding:0 !important;
}
.single-title {
    color: var(--bs-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    word-wrap: break-word;
}
.section {
    padding-left: 2rem;
    padding-right:2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.title {
    color: var(--bs-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    word-wrap: break-word;
    margin-bottom: 2rem;
}
.title.green {
    color: var(--bs-secondary);
}
.section .row {
    margin-left: 2rem;
}
.fs-30px {
    font-size: 30px;
}
.w-80 {
    width: 80%;
}
a {
    color:unset;
}

/**** VARIE ****/
.w-60 {
    width: 60% !important;
}
.w-40 {
    width: 40% !important;
}
.bg-linear-gradient {
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
}
.errorback{
    color: red;
    font-size: 30px;
    font-weight: 900;
    padding:2rem;
    width: 40%;
}
.title.white {
    color: white;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    word-wrap: break-word;
    margin-bottom: 2rem;
}
.white-space-break {
    white-space: break-spaces;
}

/***** TYPEAHEAD *****/
.typeahead{
    border: 1px solid #E1E3EA !important;
    height: 48px !important;
    font-size: 15px !important;
    outline:none !important;
    color: var(--bs-gray-700) !important;
}

.tt-menu, .tt-dataset{
    background-color: white !important;
}

.tt-dataset{
    border: 1px solid #E1E3EA !important;
}

/***** PAGINATION *****/
.pagination {
    justify-content: start;
}
.page-item .page-link {
    background: transparent;
    color: #c1c1c1;
    font-weight: bold;
    border: 1px solid #c1c1c1;
    border-radius: 5px;
    margin-bottom: 0.6rem;
}
.page-item.active .page-link {
    background: transparent;
    color: var(--bs-primary);
    font-weight: bold;
    border: 2px solid var(--bs-primary);
    border-radius: 5px;
}

/***** FORM *****/
.form-label {
    font-weight: bolder !important;
}

/********************** M O B I L E **********************/

@media only screen and (max-width: 600px) {

    /*** MENU ***/
    .app-header-logo {
        display: inline-flex;
        width: 100%;
        justify-content: space-between;
    }

    /**** FOOTER ****/
    #kt_app_footer .app-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    [data-bs-theme=light] {
        --bs-app-header-height: 80px;
    }
}

/********************** T A B L E T **********************/
@media only screen and (min-width: 600px) and (max-width: 1024px) {
    [data-bs-theme=light] {
        --bs-app-header-height: 80px;
    }


    /**** MENU ****/
    .app-header-logo {
        display: inline-flex;
        width: 100%;
        justify-content: space-between;
    }

    /**** FOOTER ****/
    #kt_app_footer .app-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}
/* =============================================================================
 * REGOLE CONSOLIDATE DAI BLADE (2026-06-06)
 * Pattern condivisi identici estratti dal CSS inline delle pagine.
 * ============================================================================= */
.animation-fade-right {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInRight 1.5s ease-in-out 0.3s forwards;
}

.bg-light-1 {
    background-color: #F7F8FB;
}

.card-col-1 {
    padding-right: 50px;
}

.hero-text .hero-body {
    color: white;
    font-size: 16px;
    margin-bottom: 0;
}

.hero-text .hero-body p {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.hero-text .hero-subtitle {
    color: white;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero-text-inner {
    width: 100%;
    max-width: 570px;
    margin-left: auto;
}

.list-comunita {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-legal a {
    color: var(--ucue-theme-primary);
}

.pw-section {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--bs-app-header-height));
}

.section-comunita p, .section-comunita li {
    color: white;
    font-size: 16px;
}

@media (max-width: 991px) {
    .hero-text-inner {
        max-width: 100%;
        margin-left: 0;
    }
    .pw-img {
        min-height: 350px;
        height: 350px;
        margin-left: 0;
        border-radius: 0;
    }
    .pw-img > * {
        display: none;
    }
    .pw-section {
        min-height: unset;
    }
}

@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }


/* =============================================================================
 * HERO PAGINE SERVIZI (consolidato 2026-06-06)
 * Pattern hero testo+immagine delle pagine servizi/*.
 * ============================================================================= */
.hero-text {
    display: flex;
    align-items: flex-end;
    background-color: var(--ucue-theme-primary);
    padding: 80px 70px;
}

.hero-img {
    height: 530px;
}

@media (max-width: 991px) {
    .hero-text {
        padding: 60px 50px;
    }

    .hero-img {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .hero-text {
        padding: 40px 30px;
    }

    .hero-img {
        min-height: 280px;
    }
}

/* =============================================================================
 * STILI LAYOUT (navbar, sidebar mobile, footer, partner, comunicazioni)
 * Spostati dai partial blade (erano <style> renderizzati nel body, 2026-06-06).
 * ============================================================================= */

/* ---- NAVBAR ---- */
/*Scroll leggero per la sezione news*/
    html {
        scroll-behavior: smooth;
    }

    /* Classe custom per cambiare il colore active del bottone */
    .btn-active-color-responsive i{
        transition: color 0.2s ease;
    }

    /* Stato hover e click*/
    .btn-active-color-responsive:hover i,
    .btn-active-color-responsive:active i{
        color: var(--ucue-theme-secondary) !important;
    }


    /* Colore nei link del menu*/
    .menu-link .theme-color {
        color: var(--ucue-theme-primary) !important;
        font-weight: 400;
    }

    .menu-link .theme-color:hover {
        color: var(--ucue-theme-secondary) !important;
    }

    .menu-item .menu-link {
        padding: 0 0.5rem;
    }

    /* Active: indica a página/sessão atual */
    .menu-link .theme-color.active {
        color: var(--ucue-theme-secondary) !important;
    }

    /* Logo */
    .img-logo {
        height: 40px;
    }

    /* Logo comunità da media library: object-fit per proporzioni variabili */
    .img-logo-comunita {
        height: 50px;
        width: auto;
        max-width: 120px;
        object-fit: contain;
        object-position: left center;
    }

    .img-logo-partner {
        height: 70px;
        width: auto;
    }

    .img-divider {
        height: 70px;
        width: auto;
    }

    /* Fix per evitare sovrapposizione hamburger con loghi */
    @media (min-width: 992px) and (max-width: 1199px) {
        .app-header-logo {
            flex: 0 0 auto;
            max-width: 60%;
        }
    }

    /* Tablet - Medio (767px a 992px) */
    @media (max-width: 991px) {
        .img-logo { height: 40px;}
    }

    /**Mobile - Piccolo (FINO A 767px) */
    @media (max-width: 767px) {
        .img-logo { height: 25px;}
        .img-logo-comunita { height: 25px;}
        .img-logo-partner { height: 40px;}
        .img-divider { height: 40px;}

    }

/* ---- SIDEBAR MOBILE ---- */
/* =============================================
     * SIDEBAR MOBILE - CREAENERGIA
     * Classe centrale per personalizzare il drawer
     * ============================================= */
    .sidebar-mobile-crea {
        background-color: var(--ucue-theme-primary) !important;
        padding: 1.5rem 1rem;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Colore testo dei link - bianco su sfondo primario */
    .sidebar-mobile-crea .text-color {
        color: white !important;
        font-size: 20px;
    }

    /* Hover e stato attivo: colore secondario del tema */
    .sidebar-mobile-crea .text-color:hover,
    .sidebar-mobile-crea .text-color.active {
        opacity: 0.6 !important;
    }

    /* .sidebar-mobile-crea .fw-400 — migrato a fw-normal in markup */

    /* Freccia accordion */
    .sidebar-mobile-crea .accordion-arrow {
        font-size: 20px !important;
        cursor: pointer;
        padding: 2px 4px;
    }

    .sidebar-mobile-crea .menu-item.show > .menu-content .accordion-arrow {
        transform: rotate(90deg);
    }

    /* Sub-menu: flui no documento com transição suave */
    .sidebar-mobile-crea .menu-sub-dropdown {
        position: static !important;
        transform: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 0 !important;
        margin-left: 15px !important;
        margin-top: 0 !important;
    }

    .sidebar-mobile-crea .menu-item.show > .menu-sub-dropdown {
        max-height: 300px;
        opacity: 1;
    }

    /* Bottone chiudi (X) */
    .sidebar-close-btn{
        background-color: transparent;
        border: none;

        position: absolute;
        top: 20px;
        right:20px;
        z-index: 1;
    }

    .sidebar-close-btn:hover{
        opacity: 0.6;
    }

    .sidebar-close-btn i{
        font-size: 30px;
    }

/* ---- FOOTER ---- */
#kt_app_footer .hover-color:hover {
        color: var(--bs-primary);
    }
    #kt_app_footer {
        scroll-margin-top: 100px;
        /* altura do header fixo */
    }

    .logo-sm { height: 70px !important; }
    .logo-md { height: 70px !important; }
    .logo-md-1 { height: 45px !important; }
    .logo-lg { height: 35px !important; }

    .title-footer {
        color: var(--ucue-theme-primary) !important;
        font-size: 36px;
        line-height: 1;
        width: 70%;
    }

    .title-small,
    .hover-color:hover {
        color: var(--ucue-theme-secondary) !important;
    }

    /*** RESPONSIVE ***/
    /* Tablet - Medio (767px a 992px) */
    @media (max-width: 991px) {}

    /**Mobile - Piccolo (FINO A 767px) */
    @media (max-width: 767px) {
        .logo-sm { height: 40px !important; }
        .logo-md { height: 47px !important; }
        .logo-md-1 { height: 30px !important; }
        .logo-lg { height: 20px !important; }

        .title-footer { width: 100%;}
        .content-center {
            text-align: center;
        }
    }

/* ---- PARTNER SECTION ---- */
.card-partnership { height: 50px; }

        @media (max-width: 991px) {
            .card-partnership { height: 35px; }
        }

        @media (max-width: 767px) {
            .card-partnership { height: 20px; }
        }

/* ---- COMUNICAZIONI RECENTI ---- */
.card-comunicazioni-recenti .data {
        font-size: 12px;
        font-weight: 400;
        border: 1px solid black;
        padding: 5px 10px;
        border-radius: 16px;
        display: inline-block;
        background: transparent;
    }
