.main-menu .navbar-nav>li.prodotti-menu {
    border-bottom: solid 5px #fff;
}

/*-----------------------
SIDEBAR
-----------------------*/

.pdfprodotto {
    margin-top: 10px;
}

.back-to-prod a, .pdfprodotto a {
    width: 100%;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: var(--primary-color);
    border: solid 1px var(--primary-color);
    color: #fff;
    transition: .3s ease-in-out;
    display: block;
    text-align: center;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
}

.back-to-prod a:hover, .pdfprodotto a:hover {
    background: #fff;
    color: var(--primary-color);
    transition: .3s ease-in-out;
}

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

    .back-to-prod,
    .pdfprodotto  {
        display: none;
    }

    .prefooter-mobile .boxsidebar {
        width: 48%;
        display: inline-block;
        vertical-align: top;
    }

    .prefooter-mobile .boxsidebar:last-child {
        margin-left: 4%;
        text-align: right;
    }

    .prefooter-mobile .halfpage img {
        max-width: 300px;
    }

}

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

    .prefooter-mobile .boxsidebar {
        width: 100%;
        display: block;
    }

    .prefooter-mobile .boxsidebar:last-child {
        margin-left: 0;
        text-align: center;
    }
}

/*-----------------------
SCHEDA PRODOTTO
-----------------------*/

.scheda-prodotto {
    overflow: hidden;
}

.scheda-prodotto-sumisura .contenitore-img {
    display: inline-block;
    width: 29%;
}

.scheda-prodotto .contenitore-img {
    display: inline-flex;
    width: 35%;
    gap: 20px;
    flex-direction: column;
}

.scheda-prodotto .contenitore-img img {
    display: block;
    max-width: 100%;
    max-height: 350px;
    height: auto;
    margin: 0;
    width: 100%;
    object-fit: contain;
}

#myCarousel img {
    max-height: 100%;
}

/* #myCarousel .carousel-indicators {
    bottom: 100px;
} */
a.right.carousel-control,
.carousel-control.left {
    background-image: none;
    max-height: 40px;
    max-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: calc(50% - 20px);
}


.scheda-prodotto .contenitore-img a {
    /* display: block; */
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

a.right.carousel-control span,
.carousel-control.left span {
    margin: 0;
    font-size: 18px;
}

a.left.carousel-control span {
    margin: -23px 0 0 -16px;
}

a.right.carousel-control span {
    margin: -23px -16px 0 0;
}


.contenitore-img-small {
    height: 150px;
}

.scheda-prodotto .contenitore-img .contenitore-img-small a {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.scheda-prodotto .contenitore-img .contenitore-img-small a img {
    height: 100%;
}

/* .scheda-prodotto .contenitore-img .thumbnail {
    margin-bottom: 10px;
} */

.scheda-prodotto .contenitore-img-small a:first-child {
    margin-right: 8px;
}

.scheda-prodotto-sumisura .dettaglio-prodotto {
    width: 70%;
    display: inline-block;
    float: left;
}

.scheda-prodotto .dettaglio-prodotto {
    width: 62%;
    display: flex;
    flex-direction: column;
    float: right;
    gap: 12px;
}

.scheda-prodotto .dettaglio-prodotto h2.titoloprodotto {
    font-size: 32px;
    line-height: 32px;
    text-transform: initial;
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.scheda-prodotto .dettaglio-prodotto h1.titoloprodotto {
    /* font-size: 27px; */
    text-transform: capitalize;
    /* font-family: 'Inter', sans-serif; */
    margin: 0;
    /* font-weight: 700; */
    color: var(--primary-color);
}


.scheda-prodotto .dettaglio-prodotto p.produttore {
    font-size: 16px;
}

.scheda-prodotto .dettaglio-prodotto p.produttore a {
    font-size: 22px;
    font-weight: 500;
    text-decoration: underline;
}

.scheda-prodotto .dettaglio-prodotto p.spiegabreve {
    font-size: 18px;
}

.voto {
    display: inline-block;
    color: var(--primary-color);
    margin-right: -1px;
}

 .stelle {
    margin-bottom: 10px;
}

.stelle span a.totale-votanti {
    text-decoration: underline;
}

.scheda-prodotto .dettaglio-prodotto p.venditore {
    font-size: 13px;
    margin-bottom: 30px;
}

.scheda-prodotto .dettaglio-prodotto p.venditore a {
    font-size: 16px;
    text-decoration: underline;
    font-weight: 700;
}

.scheda-prodotto .dettaglio-prodotto div.descrizione,
.scheda-prodotto .dettaglio-prodotto .descrizione h1,
.scheda-prodotto .dettaglio-prodotto .descrizione h2,
.scheda-prodotto .dettaglio-prodotto .descrizione h3,
.scheda-prodotto .dettaglio-prodotto .descrizione h4,
.scheda-prodotto .dettaglio-prodotto .descrizione h5,
.scheda-prodotto .dettaglio-prodotto .descrizione h6 {
    font-size: 17px;
}

.scheda-prodotto .dettaglio-prodotto div.descrizione ul {
    padding-left: 40px;
}

.scheda-prodotto .dettaglio-prodotto div.descrizione ul li {
    list-style-type: disc;
}

.dettaglio-prodotto .cerca {
    max-width: max-content;
}
.scheda-prodotto .dettaglio-prodotto .cerca a {
    width: 100%;
    /* font-size: 17px; */
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--background-color);
    transition: .3s ease-in-out;
    display: block;
    text-align: center;
    border-radius: 12px;
    padding: 8px 24px;
}

.scheda-prodotto .dettaglio-prodotto .cerca a:hover {
    background-color: var(--primary-hover-color);
    text-decoration: none;
}

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


    .scheda-prodotto .contenitore-img-small {
        display: none;
    }

    .scheda-prodotto .dettaglio-prodotto {
        width: 100%;
        margin: 0;
        float: none;
    }

    .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left {
        left: 5%;
    }

    .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right {
        right: 2%;
    }

    .scheda-prodotto .contenitore-img {
        width: 100%;
    }


}

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

    .scheda-prodotto {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .scheda-prodotto .contenitore-img {
        width: 100%;
    }

    .scheda-prodotto-sumisura .dettaglio-prodotto {
        width: 100%;
    }
    .fill {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    a.right.carousel-control span {
        margin: -23px 6px 0 0;
    }
    a.left.carousel-control span {
        margin: -23px 0 0 6px;
    }
    .scheda-prodotto .dettaglio-prodotto h2.titoloprodotto {
        font-size: 24px;
        line-height: 24px;
    }
}

/*-----------------------
TABELLA TAGLIE
-----------------------*/

.row.taglie {
    margin: 0px;
}

.panel-default {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: auto;
}

.panel-default>.panel-heading {
    background-color: var(--background-secondary-color);
}

.panel {
    margin: 0;
    box-shadow: none;
}

.row.taglie .tabella-taglie th {
    font-size: 15px;
    text-transform: uppercase;
    max-width: 190px;
    text-align: center;
    background: var(--background-secondary-color);
    padding: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.row.taglie .tabella-taglie .singola-taglia th {
    font-size: 22px;
}

.row.taglie .tabella-taglie tr {
    /*border-bottom: solid 3px #fff;*/
}

.row.taglie .tabella-taglie td {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 10px;
    text-align: center;
}

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

    .row.taglie .tabella-taglie th {
        display: table-caption;
        width: 150px;
    }

}


/*-----------------------
BLOCCHI DETTAGLIO
-----------------------*/

.row.dettagli,
.row.infovenditore,
.row.recensioni {
    margin-bottom: 0px;
}

.row.dettagli h3.titoletto,
.row.infovenditore h3.titoletto,
.row.recensioni h3.titoletto {
    font-size: 48px;
    text-transform: capitalize;
    text-align: center;
}

.row .left {
    padding-left: 0;
}

.row .right {
    padding-right: 0;
}

.row.dettagli ul {
    font-size: 17px;
    padding-left: 40px;
}

.row.dettagli p {
    font-size: 17px;
    padding-left: 40px;
}

.row.infovenditore p,
.row.infovenditore a {
    font-size: 18px;
    color: #000;
}

.row.infovenditore a {
    text-decoration: underline;
}

.row.infovenditore a.gotomaps {
    text-decoration: none;
}

.row.infovenditore a.nounderline {
    text-decoration: none;
}

.row.infovenditore a.gotomaps span,
.row.infovenditore a.gotoortopedia {
    text-decoration: underline;
    text-transform: uppercase;
}

.row.dettagli li {
    list-style-type: disc;
}

/*-----------------------
BLOCCHI TECNICO
-----------------------*/

.row.usatecnico {
    border: solid 2px var(--primary-color);
    text-align: center;
    padding: 11px;
    font-size: 16px;
    margin:0;
}

.row.usaspedizionegratis {
    border: solid 3px #D5D5D5;
    text-align: center;
    text-transform: uppercase;
    padding: 5px 0 0;
    font-size: 16px;
    background: #D5D5D5;
}

.row.usatecnico h3 {
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: inherit;
    font-size: 20px;
}

/*-----------------------
BLOCCHI RECENSIONI
-----------------------*/

.row.recensioni {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: solid 1px #333;
}

.row.recensioni h3.titoletto {
    text-align: center;
}

.row.recensioni p.media-numero {
    font-size: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0;
}

.row.recensioni .voto {
    font-size: 19px;
}

.row.recensioni .left {
    text-align: center;
}

.row.recensioni .left p.numero-recensioni a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: underline;
    color: #000;
}


.row.recensioni .barra-recensioni {
    height: 30px;
}

.row.recensioni .progress {
    background-color: #d5d5d5;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: calc(100% - 80px);
    display: inline-block;
    margin: 0;
}

.row.recensioni .progress-bar {
    -webkit-box-shadow: none;
    box-shadow: none;
    background: #333;
}

.row.recensioni p.numerostelle,
.row.recensioni p.numerovotanti a{
    font-size: 19px;
    font-family: 'Inter', sans-serif;
    color: #333;
    display: inline-block;
    vertical-align: super;

}
.row.recensioni p.numerostelle{
    margin-right: 5px;

}

.row.recensioni p.numerovotanti a{
    text-decoration: underline;
    text-align: right;
    margin-left: 20px;
}

.row.recensioni p.numerovotanti{
    display: inline-block;
}

.row.lista-recensioni .left {
    padding-right: 0;
}

.row.lista-recensioni .singola-recensione {
    padding-bottom: 20px;
    border-bottom: solid 1px #333;
    padding-top: 20px;
}

.row.lista-recensioni .voto {
    font-size: 19px;
}

.row.lista-recensioni .stelle {
    margin-bottom: 3px;
}

.row.lista-recensioni .left p,
.row.lista-recensioni .left p a {
    font-size: 15px;
    margin-bottom: 0;
}

.row.lista-recensioni .left p.verifica {
    margin-top: 20px;
    background: #d5d5d5;
    text-align: center;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px;
}

.row.lista-recensioni .right p {
    font-size: 16px;
}

.row.lista-recensioni .showmore {
    cursor: pointer;
    width: 100%;
    font-size: 20px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 100;
    background: var(--primary-color);
    border: solid 1px var(--primary-color);
    color: #fff;
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s;
    display: block;
    text-align: center;
    border-radius: 8px;
    padding: 5px;
    margin: auto;
    margin-top: 10px;
    max-width: 300px;
}

.row.lista-recensioni .showmore:hover {
    background: #fff;
    color: var(--primary-color);
}



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

    .row.recensioni .voto {
        font-size: 17px;
    }

}

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

    .row .left, .row .right {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .row.dettagli .left, .row.dettagli .right {
        text-align: left;
    }

    .row.recensioni.leftmobile, .numero-recensioni {
        width: 49%;
        display: inline-block;
    }

    .row.recensioni p.media-numero,
    .row.recensioni .leftmobile {
        text-align: right;
        width: 47%;
        display: inline-block;
    }

    .row.recensioni .left p.numero-recensioni {
        text-align: left;
        margin-left: 1%;
        vertical-align: top;
    }

    .row.recensioni .left p.numero-recensioni a {
        font-size: 20px;
        padding-left: 20px;
        padding-top: 37px;
        display: block;
    }

    .row.lista-recensioni p.verifica {
        max-width: 130px;
        display: block;
    }

    .row.lista-recensioni .left {
        margin-bottom: 20px;
        text-align: left;
    }

    .row.lista-recensioni .right p {
        font-size: 16px;
        text-align: left;

    }

    .row.usatecnico h3 {
        font-size: 20px;
    }
}

/* -------------------------------------------------------
   PARTNER QUICK BUY WIDGET
   Mostrato nella pagina prodotto quando si arriva dalla
   lista filtrata per partner (?partner=seourl)
------------------------------------------------------- */

.partner-quick-buy {
    margin-top: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
}

.partner-quick-buy__header {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.partner-quick-buy__header strong {
    font-weight: 700;
}

.partner-quick-buy__change {
    margin-left: auto;
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.partner-quick-buy__change:hover {
    color: #fff;
    opacity: 0.85;
}

.partner-quick-buy .partner-quick-buy__body {
    padding: 16px;
}

.partner-quick-buy .blocco-singolo-negozio {
    border: none;
    padding: 0;
}

/* -------------------------------------------------------
   PARTNER QUICK BUY — INLINE WIDGET (pqb)
   Componente compatto per la scheda prodotto principale
------------------------------------------------------- */

.pqb-widget {
    padding: 0;
}

/* Riga prezzi */
.pqb-prezzi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pqb-prezzo-item {
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
    border: 1px solid #dde3ed;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 130px;
    flex: 1;
}

.pqb-prezzo-item--online {
    background: #eef6ff;
    border-color: #b8d4f5;
}

.pqb-prezzo-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    font-weight: 600;
    margin-bottom: 3px;
}

.pqb-prezzo-valore {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #1a5fa8);
    line-height: 1.2;
}

/* Selettori varianti */
.pqb-selettori {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.pqb-selettori .form-group {
    margin: 0;
}

.pqb-selettori select,
.pqb-select {
    width: 100%;
    height: 42px;
    border: 1.5px solid #cdd5e0;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pqb-selettori select:focus,
.pqb-select:focus {
    outline: none;
    border-color: var(--primary-color, #1a5fa8);
    box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.12);
}

.pqb-selettori select.highlight-select,
.pqb-select.highlight-select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
    animation: pqb-shake 0.4s ease;
}

@keyframes pqb-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

/* Bottoni azioni */
.pqb-azioni {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pqb-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.pqb-btn--primary {
    background: var(--primary-color, #1a5fa8);
    color: #fff;
}

.pqb-btn--primary:hover:not(:disabled) {
    background: var(--primary-hover-color, #154d8a);
    color: #fff;
    text-decoration: none;
}

.pqb-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pqb-btn--secondary {
    background: #fff;
    color: var(--primary-color, #1a5fa8);
    border: 1.5px solid var(--primary-color, #1a5fa8);
}

.pqb-btn--secondary:hover {
    background: #eef3fb;
    color: var(--primary-color, #1a5fa8);
    text-decoration: none;
}

.pqb-btn-wrapper {
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    .pqb-prezzi {
        flex-direction: column;
    }
    .pqb-azioni {
        flex-direction: column;
    }
    .pqb-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------
   Tab prezzi cliccabili (pqb-tabs)
   Sostituiscono le pqb-prezzi statiche nel widget inline
   -------------------------------------------------------- */
.pqb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pqb-tab {
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
    border: 2px solid #dde3ed;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 130px;
    flex: 1;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    outline: none;
}

.pqb-tab:hover {
    border-color: var(--primary-color, #1a5fa8);
    background: #eef3fb;
}

.pqb-tab:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.2);
}

.pqb-tab--online {
    background: #eef6ff;
    border-color: #b8d4f5;
}

.pqb-tab--online:hover {
    border-color: var(--primary-color, #1a5fa8);
    background: #ddeeff;
}

.pqb-tab--active {
    border-color: var(--primary-color, #1a5fa8);
    background: var(--primary-color, #1a5fa8);
    box-shadow: 0 2px 8px rgba(26, 95, 168, 0.18);
}

.pqb-tab--active .pqb-prezzo-label {
    color: rgba(255, 255, 255, 0.85);
}

.pqb-tab--active .pqb-prezzo-valore {
    color: #fff;
}

.pqb-tab--active:hover {
    background: var(--primary-hover-color, #154d8a);
    border-color: var(--primary-hover-color, #154d8a);
}

@media (max-width: 600px) {
    .pqb-tabs {
        flex-direction: column;
    }
}

/* Riga spedizione gratuita nel pannello online del widget inline */
.pqb-spedizione-gratuita {
    width: 100%;
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.pqb-spedizione-gratuita .fa {
    margin-right: 5px;
}

/* Pannello online: colonna per impilare spedizione e bottone */
.pqb-pannello--online-col {
    flex-direction: column;
    align-items: flex-start;
}
