:root {
    --halo-weak: rgba(0, 0, 0, .35);
    --halo-strong: rgba(0, 0, 0, .55);
    --pill-bg: rgba(0, 0, 0, .28);
    --pill-radius: 12px;
}

.cs_text_halo {
    text-shadow: 0 1px 1px var(--halo-strong), 0 2px 8px var(--halo-weak), 0 0 24px var(--halo-weak);
}

.cs_hero_subtitle.cs_pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .75rem;
    background: var(--pill-bg);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: var(--pill-radius);
}

.cs_hero_subtitle_icon_1,
.cs_hero_subtitle_icon_2 {
    inset: auto;
}

@media (max-width:576px) {
    .cs_text_halo {
        text-shadow: 0 1px 1px var(--halo-strong), 0 3px 10px var(--halo-strong), 0 0 28px var(--halo-weak);
    }
}

#privacyModal .modal-content {
    background-color: #fff;
    color: var(--bs-body-color, #212529);
}

#privacyModal .modal-header,
#privacyModal .modal-body,
#privacyModal .modal-footer {
    background-color: inherit;
    color: inherit;
}

#privacyModal .modal-title {
    color: inherit;
}

#privacyModal .modal-body h1,
#privacyModal .modal-body h2,
#privacyModal .modal-body h3,
#privacyModal .modal-body h4,
#privacyModal .modal-body h5,
#privacyModal .modal-body h6 {
    color: inherit;
}

#privacyModal .modal-body a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: underline;
}

#privacyModal .modal-body p {
    margin-bottom: 0.75rem;
}

.ratio-16x9 {
    --bs-aspect-ratio: 35%;
}

.personal-color {
    color: #BE9B71;
}

.cs_btn.cs_style_2_custom {
    border: none;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 25px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    outline: none;
    background-color: transparent;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.cs_btn.cs_style_2_custom:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#qualita .draggable,
#qualita .slick-list,
#qualita .slick-list.draggable,
#qualita .slick-track {
    cursor: auto !important;
}

.cs_card_collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

.cs_card.is-open .cs_card_collapse {
    max-height: 1200px
}

.cs_collapse_toggle {
    margin-top: .25rem
}

.cs_collapse_toggle .arrow {
    display: inline-block;
    margin-left: .4rem;
    transition: transform .25s ease;
    vertical-align: middle
}

.cs_card.is-open .cs_collapse_toggle .arrow {
    transform: rotate(180deg)
}

.cs_collapse_toggle button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.cs_card_collapse .cs_mp_0 li {
    line-height: 1.45
}

:root {
    --brand-primary: #AA8453;
    --brand-primary-light: rgba(170, 132, 83, 0.15);
    --brand-primary-hover: #9a7550;
    --brand-text: #2b2b2b;
    --brand-text-muted: #6c757d;
    --brand-border: rgba(170, 132, 83, 0.25);
    --brand-border-strong: rgba(170, 132, 83, 0.4);
    --brand-bg: #ffffff;
    --brand-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --brand-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --brand-primary-hover-light: #c89f6d;
}

#specModal {
    --bs-modal-border-color: transparent;
    --bs-modal-header-border-color: transparent;
    --bs-modal-footer-border-color: transparent;
}

#specModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
    background: var(--brand-bg);
}

#specModal .modal-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #9a7550 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border: none;
}

#specModal .modal-title {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

#specModal .btn-close {
    filter: invert(1) brightness(200%);
    opacity: 0.8;
    transition: var(--brand-transition);
}

#specModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#specModal .modal-body {
    padding: 1.5rem;
    color: var(--brand-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

#specModal .modal-body .fw-semibold {
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

#specModal .modal-body .small.text-muted {
    color: var(--brand-text-muted) !important;
    font-size: 0.825rem;
}

#specModal .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    transition: var(--brand-transition);
}

#specModal .badge.bg-light {
    background-color: var(--brand-primary-light) !important;
    color: var(--brand-text) !important;
    border: 1px solid var(--brand-border) !important;
}

#specModal .badge.bg-light:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
}

#specModal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--brand-border);
    background: #fafafa;
}

#specModal .btn-outline-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-primary-hover-light);
    --bs-btn-hover-border-color: var(--brand-primary-hover-light);
    --bs-btn-active-bg: var(--brand-primary-hover);
    --bs-btn-active-border-color: var(--brand-primary-hover);
    --bs-btn-focus-shadow-rgb: 170, 132, 83;
    border-width: 2px;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    transition: var(--brand-transition);
}

#specModal .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(170, 132, 83, 0.25);
}

#specModal .spec-section-title {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#specModal .spec-item-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#specModal .spec-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-border-strong);
}

#specModal .spec-item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--brand-primary);
    border-radius: 0 4px 4px 0;
    transition: width 0.3s ease;
}

#specModal .spec-item-card:hover::before {
    width: 6px;
}

#specModal .spec-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#specModal .spec-item-name::before {
    content: '•';
    color: var(--brand-primary);
    font-size: 1.5rem;
}

#specModal .spec-item-params {
    display: block;
}

#specModal .spec-param {
    width: 100%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--brand-primary-light);
    border-radius: 8px;
    transition: var(--brand-transition);
}

#specModal .spec-param:last-child {
    margin-bottom: 0;
}

#specModal .spec-param:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#specModal .spec-param-label {
    margin-bottom: 0;
    font-size: 0.75rem;
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

#specModal .spec-param-value {
    font-weight: 600;
    color: var(--brand-text);
    font-size: 0.9rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#specModal .spec-shared-header {
    background: linear-gradient(to right, var(--brand-primary-light), #fff);
    border-style: dashed;
    border-color: var(--brand-primary);
    opacity: 0.9;
}

#specModal .spec-shared-header .spec-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

#specModal .spec-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#specModal .spec-feature {
    background: var(--brand-primary-light);
    color: var(--brand-text);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--brand-border);
    font-weight: 500;
    transition: all 0.2s ease;
}

#specModal .spec-feature:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

#specModal .spec-item-note {
    font-size: 0.75rem;
    color: var(--brand-primary);
    font-style: italic;
    padding: 0.5rem;
    background: rgba(170, 132, 83, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--brand-primary);
    margin-top: 0.75rem;
}

@media (max-width:575px) {
    #specModal .spec-param {
        padding: 0.6rem 0.75rem;
    }

    #specModal .spec-feature {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs_card.cs_style_1 .cs_card_info {
    padding: 30px 30px 20px;
}

/* Banner video: mostra SEMPRE il video completo, senza ritagliarlo */
.cs_video_banner {
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* wrapper video */
.cs_video_bg {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 0;
    overflow: visible;
}

/* video responsive, senza crop */
.cs_video_element {
    display: block;
    width: 100%;
    height: auto;
    /* mantiene il rapporto del file (es. 16:9) */
    object-fit: contain;
    /* non viene tagliato nulla */
}

/* overlay NOR sopra il video (se vuoi mantenere il mood) */
.cs_video_overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(170, 132, 83, 0.35);
    /* puoi abbassare/alzare l'opacità */
}

/* Se vuoi che in mobile sparisca tutto il contenuto testuale (che ora è vuoto) */
@media (max-width: 767.98px) {
    .cs_video_content {
        padding: 0;
        display: none;
    }
}

/* Stato iniziale (prima che entri in viewport) */
.cs_video_banner.cs_video_init {
    opacity: 0;
    transform: translateY(40px);
}

/* Quando entra in viewport: fade-in + slide-up */
.cs_video_banner.cs_video_inview {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* scroll effect solo su desktop/tablet largo (il JS mette opacity inline) */
@media (min-width: 992px) {
    .cs_video_banner {
        will-change: opacity, transform;
    }
}

/* ========= NOR PRELOADER ========= */

.nor-preloader {
    position: fixed;
    inset: 0;
    /* top,right,bottom,left:0 */
    z-index: 99999;
    pointer-events: auto;
}

/* overlay sfondo */
.nor-preloader__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--web-wash, #f5f5f5);
    /* fallback chiaro */
}

/* dimensioni principali controllate da variabili */
.nor-preloader__spinner {
    --nor-preloader-size: 220px;
    /* DIAMETRO cerchio spinner */
    --nor-preloader-logo-size: 160px;
    /* DIMENSIONE logo al centro */

    position: relative;
    width: var(--nor-preloader-size);
    height: var(--nor-preloader-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* anelli */
.nor-preloader__ring {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left:0 dentro lo spinner */
    border-radius: 50%;
    border-style: solid;
    border-width: 3px;
    box-sizing: border-box;
}

.nor-preloader__ring--static {
    border-color: var(--accent, #aa8453);
    opacity: 0.25;
}

.nor-preloader__ring--animated {
    border-color: transparent;
    border-top-color: var(--accent, #aa8453);
    animation: nor-preloader-spin 1s ease-in-out infinite;
}

/* logo al centro */
.nor-preloader__logo {
    position: relative;
    z-index: 2;
    width: var(--nor-preloader-logo-size);
    height: var(--nor-preloader-logo-size);
    background-image: url("/assets/img/logo-denor-colore.svg");
    /* <-- SOLO QUI */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* animazione */
@keyframes nor-preloader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* opzionale: classe per nasconderlo quando hai finito di caricare */
.nor-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ========= NOR PRELOADER END ========= */

/* ========= CALL TO ACTION ========= */

/* Stato di default: desktop → NON mostrare i bottoni */
.mobile-floating-buttons {
    display: none;
}

/* Desktop: posizione standard dello scroll-to-top */
.scrollToTop2 {
    right: 192px !important;
    bottom: 2px !important;
    left: auto !important;
    transform: none !important;
}

/* Solo MOBILE: mostra i bottoni e centra lo scroll-to-top */
@media (max-width: 768px) {

    .mobile-floating-buttons {
        position: fixed !important;
        bottom: 11px !important;
        right: 9px !important;
        display: flex !important;
        flex-direction: row !important;
        /* affiancati */
        gap: 12px;
        z-index: 9999;
    }

    .mobile-floating-buttons a {
        width: 70px;
        height: 70px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none !important;
        color: #fff !important;
        font-size: 30px;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .mobile-floating-buttons .btn-call {
        background: #007BFF;
    }

    .mobile-floating-buttons .btn-whatsapp {
        background: #25D366;
    }

    /* MOBILE: centro lo scroll-to-top quando ci sono i bottoni fissi */
    .scrollToTop2 {
        position: fixed !important;
        bottom: 1px !important;
        /* sopra i due bottoni WP + Tel */
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
        z-index: 9998;
    }
}

/* ========= CALL TO ACTION end ========= */


/* ========= SCROLL BUTTON MOBILE ========= */

/* default: non visibile (desktop) */
.scrollup-mobile-wrapper {
    display: none;
}

@media (max-width: 767px) {
    .scrollup-mobile-wrapper {
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: center;

        opacity: 0;
        transition: opacity .2s ease;
        pointer-events: none;
        /* finché è nascosto */
    }

    .scrollup-mobile-wrapper:not(.hide) {
        opacity: 1;
        pointer-events: auto;
    }
}

/* stato nascosto (usato dal JS) */
.scrollup-mobile-wrapper.hide {
    opacity: 0;
    pointer-events: none;
}

/* ========= SCROLL BUTTON MOBILE END ========= */

/* ========= CREDITS ========= */
.footer-credits {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    opacity: 0.55;
    text-align: center;
    letter-spacing: 0.3px;
    transition: opacity .25s ease-in-out;
}

.footer-credits:hover {
    opacity: 0.75;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: color .3s ease;
}

/* Sottolineatura elegante on-hover (linea fine e animata) */
.footer-credits a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width .25s ease, left .25s ease;
}

.footer-credits a:hover::after {
    width: 100%;
    left: 0;
}

/* ========= CREDITS END ========= */

/* ========= FOOTER ========= */
/* Opzione 1 */
.cs_info_item {
    transition: all 0.3s ease;
}

.cs_info_item:hover {
    transform: translateX(5px);
}

.cs_info_label {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========= FOOTER END ========= */

.cs_opening_hours {
    margin-top: 8px;
    line-height: 1.5;
}

.cs_opening_hours .cs_label {
    display: block;
    /* prima riga */
    font-weight: 600;
    margin-bottom: 2px;
}

.cs_opening_hours .cs_hours {
    display: block;
    /* seconda riga */
    white-space: nowrap;
    /* NON spezzare mai qui */
    font-weight: 400;
}

.no-bot {
    display: none;
}