﻿/*PAGINA INIZIO*/

.divPaginaIniziale {
    height: var(--dynamic-height);
    width: var(--display-width);
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.divPagina2 {
    display: none;
    height: var(--dynamic-height);
    width: var(--display-width);
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    z-index: -1;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.divTitolo {
    color: rgb(49, 117, 138);
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.divLeft,
.divRight {
    width: 42vh;
    padding-right: 4.5vh;
    padding-left: 4.5vh;
    text-align: left;
}

.divLeft {
    text-align: right;
}

.divRight {
    border-left: 2px solid black;
}

.divRight p {
    margin-top: 0px;
}

.divLeft p {
    margin-top: 0px;
}

.divRight button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
}

.divRight button:hover {
    background-color: var(--secondary-color);
}

.divRight button,
.divLeft button {
    width: 15vh;
    height: 3vh;
    box-shadow: 2px 2px 5px black;
    font-weight: bold;
    font-family:var(--primary-font) !important;
}

.divLeft button {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.divLeft button:hover {
    background-color: var(--third-color);
}


/*PAGINA STANZA*/

.divPaginaStanza {
    height: var(--dynamic-height);
    width: var(--display-width);
    position: relative;
    left: var(--width-menu);
    z-index: 10;
}

#divBtnPassoSucc {
    display: none;
    position: relative;
    width: 120vw;
    z-index: 10;
}

.BtnPassoSucc span::after {
    content: '»'; /* Freccia semplice */ /* oppure: '→', '⟶', '⭢', '»' */
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.BtnPassoSucc2 {
    position: absolute;
    top: 10vh;
    right: 3vh;
    width: 15vh;
    height: 3vh;
    background-color: var(--primary-color);
    color: white;
}

.BtnAggCarrello {
    position: absolute;
    top: 15vh;
    right: 3vh;
    width: 15vh;
    height: 3vh;
    background-color: var(--primary-color);
    color: white;
}


/*PAGINA CATALOGO*/

#container-prezzo {
    display: none;
    z-index:10;
}

.divCarrello {
    position: fixed;
    bottom: 1vh;
    right: 2vw;
    width: 13vw;
    height: 5vh;
    background-color: rgb(87, 88, 90);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.divCarrello img {
    height: 3.5vh;
}

.divPrezzo {
    display: flex;
    width: 100%;
    height: 2vh;
    margin-top: 8px;
}

.divPrezzo-num {
    width: 70%;
    text-align: center;
}

#prezzoTotale {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    margin: 0;
}


.divPrezzo-simbolo {
    width: 30%;
    text-align: center;
    font-size: 1.2em;
    color: white;
    margin-right: 2px;
}

.divPrezzo-simbolo p {
    margin: 0;
}

.prezzo-testo {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.div-iva-testo {
    width: 100%;
}

.div-iva-testo p {
    color: white;
    font-size: 0.8em;
    margin: 0;
    padding-left: 1vw;
}

.carrello-finestra {
    position: absolute;
    bottom: 7vh;
    right: 2vw;
    width: 13vw;
    height: 30vh;
    background-color: var(--third-color);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    overflow-y: auto;
}

    .carrello-finestra p {
        font-size: 1.2em;
        font-weight: bold;
        color: #707070;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

#tendina-carrello {
    display: none;
}


/*FUNZIONI*/

#container-funzioni {
    display: none;
    z-index: 10;
}

#container-funzioni {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    width: 30vw;
    border: 2px solid var(--secondary-color);
    position: absolute;
    bottom: 1vh;
    left: calc(50% + var(--width-menu));
    transform: translateX(-50%);
    background-color: var(--third-color);
    color: var(--primary-color);
}

.opzione {
    width: 6vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    cursor: pointer;
}

.opzione p {
    margin: 0;
}

.opzione img {
    width: 3vw;
}


/*PROFILO*/

#profile-card {
    display: none;
    background: var(--third-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    position: fixed;
    top: 8vh;
    right: 2vh;
    z-index: 1000;
}

.profile-img {
    width: 80px;
    height: 80px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #666;
    margin: 0 auto 10px;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
}

.profile-email {
    color: #777;
    font-size: 14px;
}

.profile-bio {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

#btn-modifica-profilo {
    margin-top: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.opzioni-pagine {
    width: 270px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    border: 0;
    background-color: var(--third-color);
}
    .opzioni-pagine:hover {
        background-color: var(--primary-color);
        color: var(--text-color);
    }
    /*BANNER*/
    .banner {
        height: var(--height-banner);
        background-color: var(--banner-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.5vw;
    }

.banner img {
    width: 1.2vw;
}

.imgQuality {
    display: flex;
    gap: 10px;
}

.imgQuality img {
    width: 2.5vw;
}


/*---------------------------ICONE INTERMEDIE-------------------------------------*/

.center-icons {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    gap: 2px;
}

.opzione-bunner {
    width: 2vw;
    display: flex;
    justify-content: center;
    height: var(--height-banner);
    cursor: pointer;
    align-items:center;
}

.opzione-bunner:hover,
#imgAccount:hover {
    background-color: var(--menu-color);
}


/*----------------------------------------------------------------*/

#imgAccount {
    display: flex;
    padding: 0.5vw;
    cursor:pointer;
}

#imgAccount img {
    width: 1.6vw;
}


/*GESTIONE CARRELLO*/

#contenuto-carrello {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

#contenuto-carrello {
    text-align: center;
}

.carrello-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    width: 100%;
    margin-bottom: 0.5vh;
    position: relative;
    transition: all 0.3s ease;
}

.foto {
    width: 50px;
    height: 50px;
    background-color: #ddd;
    border-radius: 5px;
}

.info {
    flex: 1;
    padding: 0 10px;
    font-size: 10px;
    color: #333;
    text-align: left;
    width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info p {
    margin: 0;
}

.prezzo {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    width:35%;
}

.prezzoTotale {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

/*.opzione-prodotto {
    width: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opzione-prodotto p {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: bolder;
    padding-left: 5px;
    line-height: 5px;
}*/

/*Popup clessidra*/
/* Overlay che copre tutta la finestra */
/* Overlay che copre tutta la finestra */
.pnlPopup {
    display: none; /* nascosto di default */
    position: fixed; /* rimane fisso anche se scrolli */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* sopra tutto */
}

    /* Div che scurisce lo sfondo */
    .pnlPopup .div_cover {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.4); /* overlay semitrasparente */
    }

    /* Div centrale con clessidra / immagine di attesa */
    .pnlPopup .div_img_wait {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Animazione della clessidra */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}










@media (max-width: 1024px) {
    /*PAGINA INIZIALE*/
    .content {
        flex-direction: column;
    }
    .divRight {
        border-left: 0;
        border-top: 2px solid black;
        padding-top: 1vh;
        margin-top: 2vh;
    }
    .divLeft,
    .divRight {
        text-align: center;
        font-size: 1.5vh;
    }
    .divRight button {
        width: 18vh;
        height: 3vh;
    }
    .divLeft button {
        width: 18vh;
        height: 3vh;
    }
    .divTitolo {
        font-size: 2vw;
    }
    .divCarrello {
        width: 25vw;
    }
    .carrello-finestra {
        width: 25vw;
    }
    .opzione-bunner {
        width: 4vw;
    }
    .banner img {
        width: 2.5vw;
    }
    .Titolo-startpage {
        text-align:center;
        color: var(--primary-color);
        font-weight:bold;
        font-size:25px;
        background-color:blue;
    }


}