/* PER LA GESTIONE DEI COOKIES */
    @font-face {
        font-family: 'Poppins';
        src: url('https://www.seflasystem.it/librerie/cookies/fonts/Poppins-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
    }

    @font-face {
        font-family: 'Poppins';
        src: url('https://www.seflasystem.it/librerie/cookies/fonts/Poppins-Medium.ttf') format('truetype');
        font-weight: 500;
        font-style: normal;
    }

    @font-face {
        font-family: 'Poppins';
        src: url('https://www.seflasystem.it/librerie/cookies/fonts/Poppins-SemiBold.ttf') format('truetype');
        font-weight: 600;
        font-style: normal;
    }

    @font-face {
        font-family: 'Poppins';
        src: url('https://www.seflasystem.it/librerie/cookies/fonts/Poppins-Bold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
    }

    * {
        padding: 0;
        margin: 0;
    }

    #cookie-banner {
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 13px !important;
        color: #888 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }

    #cookie-banner label {
        margin-bottom: unset;
        font-weight: unset;
    }

    #cookie-banner button {
        border-radius: 3px;
        line-height: 1;
        outline: none;
        box-shadow: none;
        text-decoration: none;
        font-weight: 400;
        font-size: 14px;
        cursor: pointer;
        text-transform: none;
        overflow: visible;
        font: inherit;
        margin: 0;
        touch-action: manipulation;
        border-color: transparent;
        background-color: #F0F0F0;
        color: #000;
        display:block;
        text-align: center;
        padding: 0;
        word-wrap:normal;
        -webkit-font-smoothing:antialiased;
        appearance: none;
        -webkit-appearance: none;
    }

    #cookie-banner li {
        list-style: none;
    }

    #cookie-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 10;
        display: none; /* nascosto di default */
        pointer-events: none; /* impedisce l'interazione se non attivo */
    }

    /* Quando attivo: visibile, sfocato e scuro */
    #cookie-overlay.active {
        display: block;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .cookie-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    #cookie-banner {
        position: fixed;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px;
        max-width: 600px;
        width: 90%;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        z-index: 9999;
        border-radius: 8px;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Visibile solo quando ha la classe active */
    #cookie-banner.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 9999;
    }

    .cookie-banner-content {
        position: relative;
    }

    .cookie-tabs-header {
        display: flex;
        gap: 5px;
        margin-bottom: 20px;
    }

    .cookie-button-container {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    .cookie-tab {
        flex: 1;
        height: 28px;
        background-color: #F0F0F0;
        color: #000;
        border: none;
        cursor: pointer;
        transition: background-color .15s ease-in-out, color .15s ease-in-out
    }

    .cookie-tab.active, .cookie-tab:hover{
        background-color: #007197 !important;
        color: #FFF !important;
    }

    .cookie-tab:focus {
        outline: 0px;
    }

    .cookie-tab-content {
        max-height: 50vh;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        height: 0;
        overflow: hidden;
    }

    .cookie-tab-content a, .cookie-tab-content a:visited{
        color: #007197;
    }

    .cookie-tab-content.active {
        opacity: 1;
        visibility: visible;
        height: auto;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .cookie-p {
        scroll-behavior: smooth;
        color: #000;
    }

    .cookie-p p {
        color: #000;
    }

    #cookie-banner p{
        color: #000;
        line-height: 20px;
    }

    .cookie-sottotitoli {
        font-size: 17px;
    }

    .cookie-btn {
        background-color: #e6e6e6;
        color: #000;
        flex: 1;
        height: 38px;
        font-weight: 400;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        border: 1px solid transparent;
        padding: .375rem .75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: .25rem;
        transition: all .15s ease-in-out;
    }

    .cookie-btn:hover {
        color: #fff !important;
        background-color: #007197 !important;
    }

    .cookie-btn:focus {
        outline: 0px;
    }

    .cookie-btn-accept {
        color: #fff !important;
        background-color: #4CAF50 !important;
    }

    .cookie-btn-accept:hover {
        color: #fff !important;
        background-color: #78ca7a !important;
    }

    .cookie-btn-refuse:hover {
        color: #fff !important;
        background-color: #EE4B2B !important;
    }

    .cookie-switch-label {
        width: 100%;
    }

    .cookie-switch-label span {
        float: right;
    }

    .cookie-subtitle, .cookie-subtitle a {
       color: #007197;
    }

    .youtube_placeholder {
        background-color: black;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .youtube_placeholder button{
        font-size: 12px;
        color: #000
    }

    .youtube_placeholder button::after {
        content: "Consenti Cookie per visualizzare";
        text-align: center;
    }

    .cookie-tab-content label {
        font-size: 13px;
    }

    .cookie-switch-label span {
        font-size: 11px;
    }

    #cookie-date {
        font-size: 10px;
        color: #888;
    }

    /* SWITCH */
        .cookie-switch-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        /* Switch style */
        .cookie-switch {
            position: relative;
            display: inline-block;
            width: 42px;
            height: 24px;
        }

        .cookie-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        /* Slider base */
        .cookie-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 42px;
            background-color: #ccc;
            transition: .3s;
            border-radius: 34px;
        }

        .cookie-slider::before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }

        /* Checked state */
        .cookie-switch input:checked + .cookie-slider {
            background-color: #4CAF50 !important;
        }

        .cookie-switch input:checked + .cookie-slider::before {
            transform: translateX(18px);
        }

        /* Rounded slider (extra style) */
        .cookie-slider.round {
            border-radius: 34px;
        }

        .cookie-slider.round::before {
            border-radius: 50%;
        }
    /**/
/**/