* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cormorant Garamond", serif;
    font-style: normal;
    user-select: none;
}

html,
body {
    /*evito l'effetto di scroll orizzontale */
    overflow-x: hidden;
    background-color: rgba(242, 215, 11, 0.1);
}

.contenitore-globale {
    width: 100%;
}

/***********************************************************************************************/
/********************************** Menù navbar  della pagina **********************************/
/***********************************************************************************************/
.sezione-menu {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    /*fisso la navbar in alto*/
    top: 0;
    left: 0;
    z-index: 99;
    /*metto la navbar sopra agli altri contenuti (mi serve per la box-shadow, che altrimenti non si vede)*/
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /*la proprietà transform viene modifica allo scroll da javascript*/
}

.sezione-menu.hidden {
    transform: translateY(-100%);
}

.sezione-menu .logo {
    width: 70px;
    position: relative;
    left: -2%;
}

.container-menu {
    /*necessario per posizionare la barra animata rispetto al contenitore, perché va posizionata rispetto al primo padre posizionato*/
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
}

.container-menu p {
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s;
}

.container-menu p:hover {
    transform: scale(1.5);
}

.container-menu p.selected {
    transform: scale(1.5);
}

.container-menu p .titolo {
    display: block;
}

.container-menu p .icona {
    display: none;
}

.selezione-lingua {
    width: 100px;
}

.menu-animazione-underline {
    position: absolute;
    bottom: 0;
    height: 4px;
    width: 0;
    background-color: #dcc516;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

/***********************************************************************************************/
/****************************** Contenuto principale della pagina ******************************/
/***********************************************************************************************/

/****************************************** Menù: Home *****************************************/
.sezione-contenuto-pagina .contenuto-home {
    min-height: 300px;
    /* transition: padding-top 0.3s ease-in-out; */
    /* transition: padding-top 1.2s ease-in-out; */
    transition: padding-top 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* background-color: rgba(242, 215, 11, 0.1); */
    /* padding-top: 150px;/ */
    /*questo padding lo imposto dinamicamente con javascript in base a quanto è alta la navbar*/
}

.contenuto-home .container-titolo-pagina {
    width: 100%;
    height: 700px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* background-image:
        linear-gradient(to bottom, rgba(8, 8, 8, 0.4), rgba(32, 31, 31, 0.1)),
        url('/immagini/olive\ con\ mani\ filtro.jpg'); */
    background-image:
        linear-gradient(to bottom,
            rgba(8, 8, 8, 0.4) 0%,
            rgba(32, 31, 31, 0.1) 70%,
            rgba(247, 240, 210, 0.9) 95%,
            /* rgba(242, 215, 11, 0.1) 95%, */
            #fdf7d2 100%
        ),
        url('/immagini/olive\ con\ mani\ filtro.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.contenuto-home h1,
.contenuto-home h2 {
    color: #ffffff;
    font-size: 200px;
    font-weight: 600;
}

.contenuto-home h2 {
    font-size: 50px;
}

.card-testo-foto-home,
.card-testo-foto-storia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 36px auto;
    width: 80%;
    gap: 26px;
}

.card-testo-foto-home p,
.card-testo-foto-storia p {
    font-size: 28px;
    text-align: justify;
    flex: 1;
}

.card-testo-foto-home img,
.card-testo-foto-storia img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid;
}

.card-testo-foto-home:nth-child(even),
.card-testo-foto-storia:nth-child(even) {
    flex-direction: row-reverse; /* Alterna le card pari */
}

/****************************************** Menù: Shop *****************************************/
.contenuto-shop {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-cards-container {
    background-image: url('/immagini/carrellata/due\ cassette\ oriz.jpg');
    background-size: cover;
    display: flex;
    flex-wrap: nowrap;
    /* justify-content: center; */
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.shop-card-container {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /*le card non si rimpiccioliscono*/
    align-items: center;
    margin-bottom: 65px;
    margin-top: 25px;
    width: 250px;
    /* height: 495.4px; */
    height: 450px;
    /*centratura in orizzontale*/
    margin-right: auto;
    /*centratura in orizzontale*/
    margin-left: auto;
    /* border-top-right-radius: 8px;
    border-top-left-radius: 8px; */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    /* background-color: #dcc516; */
    background-color: rgb(247, 247, 247);

    position: relative;
}

.shop-card-container .immagine-card {
    /* width: 100%; */
    /* height: auto; */
    margin-top: 20px;
    padding-bottom: 30px;
    height: 200px;
    width: 100%;
    object-fit: contain;
    /* border-bottom: 1px solid; */
}

.shop-card-container hr {
    border: 1px solid rgba(61, 61, 51, 0.9);
    width: 100%;
}

.shop-card-container .shop-card-descrizione_prodotto {
    font-size: 18px;
    margin: 12px;
}

.shop-card-container .pulsantiera-card {
    margin-top: 0;
    width: 100%;
    font-size: 28px;
    /* border-bottom: 1px solid;
    border-right: 1px solid;
    border-left: 1px solid; */
    /* border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px; */
    display: flex;
    justify-content: space-around;
    align-content: stretch;
    overflow: hidden;

    position: absolute;
    bottom: 0;
}

.shop-card-container .pulsantiera-tasto-meno,
.shop-card-container .pulsantiera-quantita,
.shop-card-container .pulsantiera-tasto-piu {
    text-align: center;
}

.shop-card-container .pulsantiera-tasto-meno {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: rgba(61, 61, 51, 0.9);
    transition: background-color 0.5s;
}

.shop-card-container .pulsantiera-quantita {
    border-right: 1px solid;
    border-left: 1px solid;
    flex: 1;
    font-size: 42px;
    background-color: rgba(61, 61, 51, 0.9);
    color: rgba(254, 251, 230, 1);
}

.shop-card-container .pulsantiera-tasto-piu {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: rgba(61, 61, 51, 0.9);
    transition: background-color 0.3s;
}

.shop-card-container .pulsantiera-tasto-meno img,
.shop-card-container .pulsantiera-tasto-piu img {
    width: 18px;
}

.shop-card-container .pulsantiera-tasto-meno,
.shop-card-container .pulsantiera-tasto-piu {
    cursor: pointer;
}

/* .shop-card-container .pulsantiera-tasto-meno:hover,
.shop-card-container .pulsantiera-tasto-piu:hover {
    background-color: rgba(242, 215, 11, 0.1);
} */

.shop-card-container .pulsantiera-tasto-meno.active,
.shop-card-container .pulsantiera-tasto-piu.active {
    background-color: rgba(242, 215, 11, 0.1);
}

#carrello-pronto {
    background-color: rgb(240, 190, 0);
    color: white;
    cursor: pointer;
    border-radius: 100%;
    font-size: 40px;
    position: fixed;
    z-index: 999;
    bottom: 32px;
    right: 32px;
    width: 80px;
    height: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carrello-pronto:hover {
    background-color: rgb(225, 231, 109);
}

#carrello-pronto img {
    width: 50%;
    height: auto;
}

/****************************************** Menù: Foto *****************************************/
.contenuto-foto {
    display: flex;
}

.container-carrellata-foto .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.container-carrellata-foto .card {
    width: 100%;
    max-width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}

.container-carrellata-foto .card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.container-carrellata-foto .card:hover {
    transform: scale(1.2);
}

/* Impostazioni responsivi per schermi più piccoli */
@media (max-width: 767px) {
    .container-carrellata-foto .col-sm-6 {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .container-carrellata-foto .col-md-4 {
        width: 33.33%;
    }
}

@media (min-width: 992px) {
    .container-carrellata-foto .col-lg-3 {
        width: 25%;
    }
}

/************************************ Menù: Riepilogo ordine ***********************************/
#progress-container {
    width: 100%;
    margin: 50px 0;
}

#progressbar {
    /* Reset della numerazione per gli step */
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    padding: 0;
    list-style-type: none;
}

#progressbar li {
    text-align: center;
    position: relative;
    flex: 1;
    font-size: 16px;
    cursor: pointer;
}

/* ::before: Crea il cerchio numerato per ogni step (prima del contenuto dell'elemento <li> */
#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    display: block;
    background-color: #ddd;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto;
    line-height: 30px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#progressbar li.active:before {
    background-color: #dcc516;
}

#progressbar li.completed:before {
    background-color: #dcc516;
}

/* ::after: Crea una linea orizzontale che collega gli step (dopo il contenuto dell'elemento <li>) */
#progressbar li:after {
    content: '';
    /*creo un elemento vuoto dopo ogni cerchio*/
    position: absolute;
    /*lo posiziono rispetto al li*/
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
    transition: background-color 0.3s ease;
}

#progressbar li:not(:last-child):after {
    background-color: #dcc516;
}

#progressbar li:last-child:after {
    width: 0;
}

#progressbar li.active:after,
#progressbar li.completed:after {
    background-color: #dcc516;
}

.prodotto-ordinato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prodotto-ordinato span {
    font-size: 18px;
    font-weight: 500;
}

.prodotto-ordinato span.quantita {
    color: #4CAF50;
    font-weight: bold;
}

#pulsante-conferma-ordine {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#pulsante-conferma-ordine:hover {
    background-color: #0056b3;
}

/* form {
    display: flex;
    flex-direction: column;
} */

/* label {
    margin: 10px 0 5px;
} */

/* input, select {
    padding: 8px;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
} */
/**************************************** Menù: Contatti ***************************************/
.contenuto-contatti {
    padding: 40px 20px;
    /* background-color: rgba(242, 215, 11, 0.1); */
    text-align: center;
}

.titolo-contatti h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.titolo-contatti p {
    margin-bottom: 40px;
}

.info-contatti {
    margin-bottom: 30px;
}

.info-contatti p {
    font-size: 19px;
    margin: 10px 0;
}

.info-contatti a {
    text-decoration: none;
    color: rgb(0, 0, 0);
}

.info-contatti a:hover {
    text-decoration: underline;
}

.pulsante-email {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 20px;
}

.pulsante-email:hover {
    background-color: #0056b3;
}

.modulo-conferma,
.modulo-pagamento,
.modulo-contatto {
    max-width: 600px;
    margin: 0 auto 30px;
    background-color: white;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.modulo-pagamento label,
.modulo-contatto label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modulo-pagamento select,
.modulo-pagamento input,
.modulo-contatto input,
.modulo-contatto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.modulo-pagamento button,
.modulo-contatto button {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin: 0 auto;
}

.modulo-pagamento button:hover,
.modulo-contatto button:hover {
    background-color: #0056b3;
}

.mappa {
    width: 100%;
    border: 0;
    border-radius: 8px;
}

.mappa iframe {
    height: 300px;
    width: 100%;
    border: 0;
    margin: 00;
    padding: 0;
}

/***********************************************************************************************/
/************************************* Footer della pagina *************************************/
/***********************************************************************************************/
.footer {
    background-color: rgba(61, 61, 51, 0.9);
    color: #fff;
    padding: 40px 20px;
    font-size: 16px;
}

.container-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 150px;
}

.footer-links,
.footer-contacts,
.footer-social {
    flex: 1 1 200px;
    /* Imposta una larghezza minima per le sezioni */
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #dcc516;
    /* Colore d'accento dorato */
}

.footer-contacts p {
    margin: 5px 0;
}

.footer-social .social-icons {
    display: flex;
    gap: 10px;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.footer-social img:hover {
    transform: scale(1.2);
    /* Leggera animazione al passaggio del mouse */
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 10px;
    font-size: 14px;
    color: #aaa;
}

/***********************************************************************************************/
/**************************************** Media queries ****************************************/
/***********************************************************************************************/
@media screen and (max-width: 850px) {

    /* Navbar */
    .sezione-menu .logo {
        width: 50px;
    }

    .container-menu p .titolo {
        display: none;
    }

    .container-menu p .icona {
        display: block;
    }

    .container-menu p .icona img {
        width: 18px;
        height: 18px;
    }

    /* Titolo principale */
    .sezione-menu {
        padding-top: 12px;
        padding-bottom: 6px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .sezione-menu .logo {
        margin-bottom: 12px;
    }

    .contenuto-home h1,
    h2 {
        font-size: 100px;
        font-weight: 500;
        /* position: relative;
        top: 5%; */
    }

    .contenuto-home h2 {
        font-size: 25px;
    }

    /* Home */
    .card-testo-foto-home,
    .card-testo-foto-storia {
        flex-direction: column !important; /* Disposizione verticale */
        text-align: center; /* Centra il testo */
        gap: 16px; /* Spazio tra testo e immagine */
    }

    .card-testo-foto-home img,
    .card-testo-foto-storia img {
        width: 100%; /* Larghezza piena per immagini più leggibili */
        max-width: 300px; /* Limita la dimensione massima */
        height: auto; /* Mantiene proporzioni */
    }

    /* Shop */
    .shop-cards-container {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }

    .shop-card-container {
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .shop-cards-container:first-child {
        margin-top: 22px;
    }

    #carrello-pronto {
        font-size: 36px;
        bottom: 18px;
        right: 18px;
        height: 65px;
        width: 65px;
    }

    /* Carrellata foto */
    .container-carrellata-foto {
        width: 90%;
        margin: 0 auto;
    }

    /* Contatti */
    .titolo-contatti h1 {
        font-size: 40px;
        font-weight: 500;
    }

    .modulo-contatto h2,
    .mappa h2 {
        font-size: 30px;
    }
}