:root {
     --tan-color: #4c0066;
    --dark-tan-color: #fff;
    --white-color: #ffffff;
    --head-text-color: #4c0066ad;
    --border-color: #e5e5e5;
    --border-color-dark: rgb(186, 181, 181);
    --border-color-black: rgb(0, 0, 0);
}


body {

    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;

}

.modifica_background {
    background: url('https://test.snaplink.it/wp-content/uploads/2025/02/editor_bg.png') repeat center center;
    padding-top: 14px;
    position: relative;
}

#contenitore_card_info {
    position: fixed;
    width: 500px;
    right: 0;
    height: 453px;
    z-index: 999;
    display: none;

}

#btn_chiudi_info_card {
    position: relative;
    color: #fff;
    background-color: #222222;
    border-radius: 50%;
    padding: 15px;
    z-index: 99999;
    top: 5%;
    width: 10px;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 91%;
    cursor: pointer;
}

.card_info_modifica {
    position: relative;
    background: rgb(255 255 255 / 46%);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    right: 0%;
    padding: 1rem;
    box-shadow: 3px 5px 8px 0px #0000003d;
    z-index: 9999;
    display: none;
    width: 90%;
    font-size: small;

}

.finestra_chiusa {
    display: none;
    height: 50%;
    overflow: hidden;
    color: transparent;
    left: 87%;
    z-index: -1;


}



/* .chiudi_etichetta{
    position: absolute;
    top: 5px;
    left: 5px;
} */

.container_etichetta {
    width: 50%;
    margin: 0 auto;
    background-color: #ffffffde;
}


.container-base {
    max-width: 768px;
    margin: auto;
    padding: 1em;
    border: 1px solid var(--border-color);
}

.container {
    border-bottom: 0;
}

.container-centrale {
    border-top: 0;
}

.container-basso {
    max-width: 690px;
    border: 0;
}

.header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
}

.header h1,
.wine-name {
    font-size: 2em;
}

.wine-name {
    text-align: left;
    margin-top: 20px;
}

.articolo_image {
    display: block;
    margin: auto;
    max-width: 150px;
}

.logo_image {
    display: block;
    margin: auto;
    width: 170px;
}

.section {
    margin-top: 20px;
}

.section-header,
.section-header_titolo,
.section-premi-riconoscimenti {
    background-color: var(--tan-color);
    padding: 0.2em;
    font-weight: bold;
    color: var(--dark-tan-color);
}

.section-header_titolo {
    text-align: center;
    margin-top: 50px;
}

.section-header_titolo h1 {
    color: var(--white-color);
}

.colore_smaltimento {
    color: var(--tan-color);
}

.icona-premi {
    float: left;
}

.linea-bordo,
.linea-bordo-basso {
    border: 1px solid var(--border-color-dark);
    margin-top: 20px;
}

.linea-bordo-basso {
    border-color: var(--border-color-black);
    margin-top: 50px;
}

/*

.nutritional-table {
    width: 100%;
    border-collapse: collapse;
}

.nutritional-table th, .nutritional-table td {
    border: 1px solid var(--border-color);
    text-align: left;
    padding: 8px;
}

.nutritional-table th {
    background-color: #f2f2f2;
}

*/


/* 
layer di copertura all'apertura del popup
*/
#coperta {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #0000008a;
    z-index: 990;
}

.nutritional-table {
    width: 100%;
    /* Larghezza piena */
    border-collapse: collapse;
    /* Rimuove gli spazi tra le celle */
}

.nutritional-table th,
.nutritional-table td {
    padding: 10px;
    /* Spaziatura nelle celle */
    text-align: left;
    /* Allineamento testo */
    /*  border-bottom: 1px solid #dddddd; */
    /* Bordi delle celle */
}

td[contenteditable="true"] {
    border-radius: 8px;
    border: 1px solid #dedede;
    position: relative;
}

/* img[data-tooltip="Clicca per modificare l'icona"] {
    border: 1px solid #dedede;
    margin-top: 8px;
} */

p[contenteditable="true"] {
    border-radius: 8px;
    border: 1px solid #dedede;

    width: 90%;
}

.nutritional-table th {
    /*background-color: #e0e0e0; /* Sfondo per le intestazioni */
    color: #333333;
    /* Colore del testo */
    font-weight: normal;
    /* Testo normale, non grassetto */
}

.nutritional-table tr:hover {
    background-color: #f0f0f0;
    /* Sfondo per la riga al passaggio del mouse */
}

.nutritional-table thead {

    color: white;
    /* Colore del testo */
}

.nutritional-table thead th {
    /*font-weight: bold; /* Testo in grassetto */
    color: var(--head-text-color);
}

.senza-bordo {
    border: 0px solid rgb(0, 0, 0);
}

.colore-valori {
    color: #d2b48c;
}



.info-section {
    padding-top: 10px;
    font-size: 0.9em;
    white-space: pre-wrap;
}

.info-section p {
    margin: 0.5em 0;
}

.bold {
    font-weight: bold;
}

.section_mod_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pen_info_cus {
    position: relative;
}

.box_info_cus {
    display: none;
    justify-content: space-between;
    margin-top: 10px;
    position: absolute;
    width: 100px;
    padding: 20px;
    border-radius: 5px;
    background-color: #1e1f26;
    color: white;
    cursor: pointer;
}

.attiva_pop {
    display: flex;
}

#e9431bbc-7046-40f3-995f-266e162209f9,
#dea5bb33-42b5-4f33-a825-6b8325c2664d,
#2bd4fc96-bf7b-49ad-8b2c-e6d5bea7d4ec {
    cursor: pointer;
}

.box_smaltimento,
.box_smaltimentoT,
.box_smaltimentoB,
.box_smaltimentoC {
    display: none;
    width: 600px;
    height: 500px;
    box-shadow: 3px 13px 43px 2px #333333;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    background-color: #fff;

}

.box_attiva {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;
    z-index: 999;
}

.backgroundColor {
    background-color: #1e1f2681;
}

#chiudiBox,
#chiudiBoxB {
    position: absolute;
    right: 30px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    display: none;

}


.img_selezionata {
    width: 15%;
    cursor: pointer;
}

.inviaModifica {
    background-color: var(--tan-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
}

.inviaModifica:hover {
    background-color: #4c0066ad;
}

#tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
}


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

    .container_etichetta {
        width: 100%;
        margin: 0 auto;
        background-color: #ffffffde;
    }

    .card_info_modifica {
        position: relative;
        width: 61%;
        margin: 0 auto;
        left: 15%;
    }

    .card_info_modifica {
        position: relative;
        background: rgba(255, 255, 255, 0.822);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .img_selezionata {
        width: 50%;
    }

    .box_smaltimento,
    .box_smaltimentoT,
    .box_smaltimentoB,
    .box_smaltimentoC {
        /* width: 310px */
        width: 100vw;
        height: 600px;
        box-shadow: 1px 1px 1px 1px #333333;
        left: 0px;
        justify-content: center;
        justify-items: center;

    }

    .box_attiva {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        ;
    }

    #contenitore_card_info{
position: absolute;
right: 38px;
    }
}