/* scheda.css — Stili per la scheda prodotto SSR (utente anonimo) */

/* Sidebar box (prezzo / acquisti) */
.scheda-sidebar-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
}

.scheda-sidebar-box + .scheda-sidebar-box {
    margin-top: 33px;
}

.scheda-sidebar-label {
    font-size: 15px;
    font-weight: bold;
    color: #888;
}

.scheda-sidebar-prezzo-valore {
    font-size: 37px;
    font-weight: bold;
    color: #004F87;
}

.scheda-sidebar-prezzo-unita {
    font-size: 15px;
    font-weight: bold;
    color: #004F87;
}

.scheda-sidebar-prezzo-dashed {
    margin-top: 6px;
    border-top: 2px dashed #ccc;
}

.scheda-sidebar-acquisti-valore {
    font-size: 37px;
    font-weight: bold;
    color: #004F87;
}

/* Breadcrumb links */
.link-breadcrumbs,
.link-breadcrumbs:visited,
.link-breadcrumbs:hover,
.link-breadcrumbs:active,
.link-breadcrumbs:focus {
    color: #000 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

/* Info tooltip (click-triggered) */
.scheda-info-wrap {
    position: relative;
    display: inline-block;
    text-align: left;
}

.scheda-info-btn {
    cursor: pointer;    
    font-size: 21px;
    user-select: none;
    text-transform:none;
}

.scheda-info-tooltip,
.scheda-data-consegna-info-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: initial;
    font-weight: initial;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    text-transform: none;
}

.scheda-info-tooltip::after,
.scheda-data-consegna-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.scheda-info-tooltip::before,
.scheda-data-consegna-info-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #ccc;
}

.scheda-info-tooltip.active,
.scheda-data-consegna-info-tooltip.active{
    display: block;
}

/* Thumbnail strip */
.scheda-thumbstrip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 5px;
}
.scheda-thumbstrip {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scheda-thumbstrip::-webkit-scrollbar {
    display: none;
}
.scheda-gallery-thumb {
    display: inline-block;
    flex: 0 0 auto;
    cursor: pointer;
    border-width: 2px 2px 2px 0px;
    border-style: solid;
    border-color: lightgray;
}
.scheda-gallery-thumb img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.scheda-gallery-thumb.active {
    border: 2px solid #00AEEF;
}
/* Rimuove il bordo destro dell'elemento immediatamente prima dell'elemento attivo */
.scheda-gallery-thumb:has(+ .scheda-gallery-thumb.active) {
    border-right-width: 0 !important;
}
/* Rimuove il bordo sinistro dell'elemento immediatamente dopo l'elemento attivo */
.scheda-gallery-thumb.active + .scheda-gallery-thumb {
    border-left-width: 0 !important;
}
.scheda-thumbstrip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 80px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    background: none;
    border: none;
    text-decoration: none;
}
.scheda-thumbstrip-arrow:hover {
    text-decoration: none !important;
}

/* Prev/Next arrows on main image */
.scheda-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
}
.scheda-nav-arrow:hover {
    text-decoration: none !important;
}
.scheda-nav-prev { left: 0; }
.scheda-nav-next { right: 0; }

/* Slider articoli alternativi */
.scheda-altslider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.scheda-altslider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scheda-altslider::-webkit-scrollbar {
    display: none;
}
.scheda-altslider-item {
    flex: 0 0 auto;
    width: 140px;
    display: inline-block;
}
.scheda-altslider-item img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: contain;
}
.scheda-altslider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 140px;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    background: none;
    border: none;
    text-decoration: none;
}
.scheda-altslider-arrow:hover {
    text-decoration: none !important;
}

/* Zoom overlay */
#schedaZoomOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#schedaZoomOverlay.visible {
    display: flex;
}
#schedaZoomOverlay img,
#schedaZoomOverlay video {
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

/* DesCata truncation (max-height set by JS) */
.scheda-descata-truncated {
    max-height: 255.75px;
    overflow: hidden;
    visibility: hidden;
}

.scheda-descata-truncated.scheda-descata-ready {
    visibility: visible;
}

.btnPrimary {
    font-size: 16.5px !important;
    font-weight: bold !important;
    background-color: #004F87 !important;
    border: none !important;
    height: 45px !important;
    width: 240px !important;
    padding: 10px !important;
}

    .btnPrimary:hover,
    .btnSecondary:hover {
        text-decoration: none !important;
    }

.btnSecondary {
    font-size: 15px !important;
    font-weight: bold !important;
    background-color: #EEEEEE !important;
    color: #000000 !important;
    border: none !important;
    height: 45px !important;
    padding: 10px !important;
}

.btnSecondarySmall {
    font-size: 13px !important;
    font-weight: bold !important;
    background-color: #EEEEEE !important;
    color: #000000 !important;
    border: none !important;
    height: 35px !important;
    padding: 10px !important;
}

a.fastLinkInfo,
a.fastLinkInfo:visited {
    color: #028bff;
    cursor: pointer;
}

/* Login popup (SSR) */
.scheda-login-modal-dialog {
    width: 95%;
    max-width: 1120px;
}

@media (max-width: 991px) {
    .scheda-login-modal-dialog {
        width: calc(100% - 20px);
        max-width: none;
    }
}

.scheda-login-modal .modal-body {
    padding: 20px 15px;
}

.scheda-login-panel {
    border: 1px solid lightgray;
    padding: 30px;
    min-height: 350px;
    position: relative;
}

.scheda-login-panel-title {
    font-weight: bold;
    text-transform: uppercase;
}

/*.scheda-login-panel-subtitle {
    display: inline-block;
}*/

.scheda-login-panel-icon {
    position: absolute;
    top: 20px;
    right: 35px;
}

.scheda-login-label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.scheda-login-input {
    width: 100%;
    outline: none;
    border-radius: 5px;
}

.scheda-login-actions {
    margin-top: 25px;
    position: absolute;
    bottom: 30px;
    right: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.button-form-login {
    height: 40px;
    width: 180px;
    border-radius: 5px !important;
    border: none !important;
    color: #fff !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    text-transform: uppercase !important;
}

.button-form-login,
.button-form-login:hover,
.button-form-login:focus,
.button-form-login:active {
    background-color: #004f87 !important;
}

.button-form-login[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.scheda-login-bullet-list {
    list-style: disc;
    margin-top: 40px;
    line-height: 1.7;
}

.scheda-login-bullet-list li {
    list-style: disc !important;
}

.scheda-login-spinner-wrap {
    line-height: 0;
}

.scheda-login-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #d9d9d9;
    border-top-color: #004f87;
    border-radius: 50%;
    display: inline-block;
    animation: scheda-login-spin 0.8s linear infinite;
}

@keyframes scheda-login-spin {
    to {
        transform: rotate(360deg);
    }
}

.scheda-login-iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    margin: 10px 50px 10px 10px;
    border-bottom: 1px solid;
}

.modal-body {
    padding: 0px;
}

.modal-header .close-custom {
    background-color: #004f87 !important;
    border: none;
    font-size: 30px;
    font-weight: normal;
    line-height: 1;
    color: white;
    text-shadow: none;
    opacity: 1;
    padding: 4px 10px;
}

/* Specifiche prodotto (SSR anonimo) */
.scheda-specifiche-section {
    margin-top: 72px !important;
}

.scheda-specifiche-title {
    margin: 0 0 16px 0;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.2;
}

.scheda-specifiche-container {
    border: 1px solid #cfcfcf;
    padding: 10px 16px;
    position: relative;
}

.scheda-specifiche-container::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    border-left: 1px solid #cfcfcf;
}

.scheda-spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.scheda-spec-cell {
    padding: 0 6px;
}

.scheda-spec-divider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    margin: 14px 0;
}

.scheda-spec-divider::before,
.scheda-spec-divider::after {
    content: "";
    border-top: 1px solid #cfcfcf;
}

.scheda-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.scheda-spec-table td {
    /*vertical-align: top;*/
    padding: 4px 6px;
    line-height: 1.35;
}

.scheda-spec-table td:first-child {
    width: 36%;
    font-weight: bold;
}

.scheda-spec-table-links a {
    text-decoration: underline;
}

.scheda-spec-pers-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.scheda-spec-pers-row > span:last-child {
    white-space: nowrap;
}

.scheda-spec-piano-taglie-wrap {
    text-align: center;
}

.scheda-spec-piano-taglie-wrap img {
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 991px) {
    .scheda-spec-row {
        grid-template-columns: 1fr;
    }

    .scheda-spec-cell {
        padding: 0;
    }

    .scheda-specifiche-container::before {
        display: none;
    }

    .scheda-spec-divider {
        display: block;
        column-gap: 0;
    }

    .scheda-spec-divider::before {
        display: block;
    }

    .scheda-spec-divider::after {
        display: none;
    }

    .scheda-spec-table td:first-child {
        width: 42%;
    }

    .scheda-spec-pers-row {
        flex-direction: column;
        gap: 0;
    }

    .scheda-spec-pers-row > span:last-child {
        white-space: normal;
    }
}


/* Modale "Disponibilità" */
.scheda-dispo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.scheda-dispo-color-col {
    width: 1%;
}

.scheda-dispo-data-col {
    width: auto;
}

.scheda-dispo-table th,
.scheda-dispo-table td {
    border: 1px solid #DDD;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

.scheda-dispo-table thead th {
    background-color: #FFFFFF;
    color: #000;
    font-weight: 700;
}

.scheda-dispo-table tbody tr td {
    background-color: #FFFFFF;
}

.scheda-dispo-table td.scheda-dispo-color {
    text-align: left;
    white-space: nowrap;
}

.scheda-dispo-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #CCC;
    border: 1px solid #999;
    vertical-align: middle;
    margin-right: 6px;
}

.scheda-dispo-color-img {
    display: inline-block;
    width: 18px;
    height: 18px;
    object-fit: cover;
    border: 1px solid #999;
    vertical-align: middle;
    margin-right: 6px;
}

.scheda-dispo-disclaimer {
    margin-top: 14px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}
