/* ============================================================
   Progetti Builder – Case Study Widget CSS
   Specchio fedele del template originale "Signor Tinteggio"
   ============================================================ */

/* ── Google Fonts lazy ─────────────────────────────────────── */
.cs-wrap .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* ── Variabili ─────────────────────────────────────────────── */
.cs-wrap {
    --cs-orange:  #ff8c00;
    --cs-orange2: #ffb347;
    --cs-teal:    #1a5f7a;
    --cs-teal2:   #159895;
    --cs-text:    #333;
    --cs-muted:   #666;
    --cs-light:   #f8f9fa;
    --cs-white:   #fff;
    --cs-shadow:  0 3px 14px rgba(0,0,0,.08);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--cs-text);
}

/* ── Titolo + Navigator ────────────────────────────────────── */
.cs-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.cs-title-row h1 { font-size: 34px; font-weight: 700; color: #222; line-height: 1.2; flex: 1; }
.cs-accent { color: var(--cs-orange); }

.cs-post-nav { display: flex; align-items: stretch; background: #fff; border-radius: 12px; box-shadow: var(--cs-shadow); overflow: hidden; flex-shrink: 0; }
.cs-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 16px; text-decoration: none; color: #444; transition: all .25s; cursor: pointer; min-width: 90px; }
.cs-nav-btn:hover { background: #fff5e6; color: var(--cs-orange); }
.cs-nav-disabled { opacity: .35; pointer-events: none; }
.cs-nav-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #bbb; line-height: 1; }
.cs-nav-divider { width: 1px; background: #ebebeb; flex-shrink: 0; margin: 8px 0; }

/* ── Intro ─────────────────────────────────────────────────── */
.cs-intro-text { font-size: 15px; color: #666; line-height: 1.55; margin-bottom: 14px; }

/* ── Badges ────────────────────────────────────────────────── */
.cs-badges-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; padding-bottom: 2px; }
.cs-badge-info { display: inline-flex; align-items: center; gap: 5px; background: #fff; padding: 6px 12px; border-radius: 14px; font-size: 12px; color: #555; box-shadow: var(--cs-shadow); white-space: nowrap; flex-shrink: 0; }
.cs-badge-info .material-symbols-outlined { font-size: 14px; color: var(--cs-orange); }
.cs-badges-spacer { flex: 1 1 auto; min-width: 10px; }
.cs-completion-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #4CAF50, #66BB6A); color: #fff; padding: 6px 14px; border-radius: 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; box-shadow: 0 3px 10px rgba(76,175,80,.3); white-space: nowrap; flex-shrink: 0; }
.cs-completion-badge .material-symbols-outlined { font-size: 15px; }

/* ── Hero Layout ───────────────────────────────────────────── */
.cs-hero-layout { display: grid; grid-template-columns: 1fr 270px; gap: 20px; margin-bottom: 30px; align-items: stretch; }
.cs-hero-image { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,.12); min-height: 450px; }
.cs-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-hero-sidebar { display: flex; flex-direction: column; gap: 14px; }

.cs-sidebar-features { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: var(--cs-shadow); flex-shrink: 0; }
.cs-sidebar-features h4 { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.cs-sidebar-features h4 .material-symbols-outlined { font-size: 14px; color: var(--cs-orange); }
.cs-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cs-feat-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #444; font-weight: 500; padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.cs-feat-item:nth-child(odd) { border-right: 1px solid #f0f0f0; padding-right: 8px; }
.cs-feat-item .material-symbols-outlined { font-size: 15px; color: var(--cs-orange); flex-shrink: 0; }

.cs-sidebar-desc { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--cs-shadow); flex: 1; display: flex; flex-direction: column; }
.cs-sidebar-desc h3 { font-size: 13px; font-weight: 700; color: var(--cs-orange); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .3px; }
.cs-sidebar-desc h3 .material-symbols-outlined { font-size: 16px; }
.cs-desc-text { font-size: 13px; color: #555; line-height: 1.75; flex: 1; }
.cs-desc-text strong { color: var(--cs-orange); }

/* ── Titoli sezione ────────────────────────────────────────── */
.cs-section-title { font-size: 22px; font-weight: 700; color: #222; padding-bottom: 10px; border-bottom: 3px solid var(--cs-orange); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.cs-section-title .material-symbols-outlined { font-size: 24px; color: #222; font-weight: 400; }

/* ── Descrizione intervento ────────────────────────────────── */
.cs-project-data { background: #fff; padding: 28px; border-radius: 10px; box-shadow: var(--cs-shadow); margin-bottom: 30px; }
.cs-data-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.cs-description { color: #555; line-height: 1.8; font-size: 15px; }
.cs-desc-p { margin-bottom: 14px; }
.cs-desc-p:last-child { margin-bottom: 0; }
.cs-desc-p strong { color: var(--cs-orange); font-weight: 600; }
.cs-data-right { display: flex; flex-direction: column; gap: 14px; }
.cs-data-card { background: var(--cs-light); padding: 16px; border-radius: 8px; border-left: 4px solid var(--cs-orange); }
.cs-data-card h4 { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; font-weight: 700; }
.cs-data-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #e0e0e0; }
.cs-data-item:last-child { border-bottom: none; }
.cs-data-label { font-size: 13px; color: #666; }
.cs-data-value { font-size: 13px; font-weight: 600; color: #222; }

/* ── Galleria ──────────────────────────────────────────────── */
.cs-gallery-section { margin-bottom: 30px; }
.cs-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cs-gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: 0 3px 12px rgba(0,0,0,.1); transition: all .3s; }
.cs-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(255,140,0,.22); }
.cs-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cs-gallery-item:hover img { transform: scale(1.08); }
.cs-gallery-span2 { grid-column: span 2; grid-row: span 2; }
.cs-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: opacity .3s; }
.cs-gallery-item:hover .cs-gallery-overlay { opacity: 1; }
.cs-gallery-overlay h5 { color: #fff; font-size: 13px; font-weight: 600; }

/* ── Fasi ──────────────────────────────────────────────────── */
.cs-phases-section { margin-bottom: 30px; }
.cs-phases-row { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.cs-phases-row::before { content: ''; position: absolute; top: 44px; left: calc(10%); right: calc(10%); height: 3px; background: linear-gradient(90deg, var(--cs-orange), var(--cs-orange2), var(--cs-orange)); z-index: 0; }
.cs-phase-col { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; padding-bottom: 14px; }
.cs-phase-circle { width: 88px; height: 88px; background: linear-gradient(135deg, var(--cs-orange), var(--cs-orange2)); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; box-shadow: 0 4px 16px rgba(255,140,0,.35); border: 4px solid #fff; outline: 3px solid var(--cs-orange); transition: all .3s; color: #fff; user-select: none; }
.cs-phase-circle:hover, .cs-phase-col.cs-open .cs-phase-circle { transform: scale(1.1); box-shadow: 0 6px 22px rgba(255,140,0,.5); }
.cs-phase-col.cs-open .cs-phase-circle { background: linear-gradient(135deg, var(--cs-teal), var(--cs-teal2)); outline-color: var(--cs-teal); }
.cs-phase-icon { font-size: 20px !important; }
.cs-phase-num { font-size: 18px; font-weight: 900; line-height: 1; }
.cs-phase-label { margin-top: 12px; text-align: center; padding: 0 6px; }
.cs-phase-title { font-size: 12px; font-weight: 700; color: #222; line-height: 1.3; margin-bottom: 3px; }
.cs-phase-sub { font-size: 11px; color: #aaa; }
.cs-phase-scopri { display: inline-flex; align-items: center; gap: 3px; background: none; border: none; cursor: pointer; font-size: 10px; font-weight: 700; color: var(--cs-orange); text-transform: uppercase; letter-spacing: .3px; padding: 0; margin-top: 6px; font-family: inherit; transition: all .2s; }
.cs-phase-scopri .material-symbols-outlined { font-size: 13px !important; transition: transform .3s; }
.cs-phase-col.cs-open .cs-phase-scopri .material-symbols-outlined { transform: rotate(180deg); }

.cs-phases-body { grid-column: 1/-1; display: none; background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.09); overflow: hidden; margin-top: 6px; border-top: 3px solid var(--cs-teal); }
.cs-phases-body.cs-open { display: block; }
.cs-phase-panel { display: none; padding: 22px 28px; }
.cs-phase-panel.cs-active { display: block; }
.cs-phase-panel h4 { font-size: 15px; font-weight: 700; color: var(--cs-teal); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cs-phase-panel h4 .material-symbols-outlined { font-size: 18px !important; color: var(--cs-orange); }
.cs-phase-panel p, .cs-phase-panel div { font-size: 14px; color: #555; line-height: 1.75; }

/* ── Garanzia ──────────────────────────────────────────────── */
.cs-warranty-card { background: linear-gradient(135deg, var(--cs-orange), var(--cs-orange2)); border-radius: 12px; padding: 26px 32px; display: flex; align-items: center; gap: 28px; box-shadow: 0 4px 18px rgba(255,140,0,.3); color: #fff; position: relative; overflow: hidden; margin-bottom: 30px; }
.cs-warranty-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.cs-warranty-icon { width: 66px; height: 66px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-warranty-icon .material-symbols-outlined { font-size: 36px !important; }
.cs-warranty-body { flex: 1; position: relative; z-index: 1; }
.cs-warranty-sup { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .9; margin-bottom: 3px; }
.cs-warranty-value { font-size: 34px; font-weight: 900; line-height: 1; margin-bottom: 3px; }
.cs-warranty-sub { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cs-warranty-text { font-size: 12px; opacity: .9; line-height: 1.5; }

/* ── Prima e Dopo ──────────────────────────────────────────── */
.cs-ba-section { margin-bottom: 30px; }
.cs-ba-wrap { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.cs-ba-card { position: relative; overflow: hidden; }
.cs-ba-card img { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform .5s; }
.cs-ba-card:hover img { transform: scale(1.04); }
.cs-ba-label { position: absolute; top: 18px; left: 18px; padding: 10px 20px; border-radius: 22px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; display: flex; align-items: center; gap: 7px; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.cs-ba-before { background: linear-gradient(135deg, #757575, #9e9e9e); color: #fff; }
.cs-ba-after  { background: linear-gradient(135deg, var(--cs-orange), var(--cs-orange2)); color: #fff; }
.cs-ba-label .material-symbols-outlined { font-size: 18px !important; }

/* ── Lavorazioni ───────────────────────────────────────────── */
.cs-lav-section { margin-bottom: 30px; }
.cs-lav-card { background: #fff; border-radius: 10px; padding: 24px 28px; box-shadow: var(--cs-shadow); }
.cs-lav-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cs-lav-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--cs-orange), var(--cs-orange2)); color: #fff; padding: 14px 20px; border-radius: 14px; min-height: 80px; min-width: 110px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; box-shadow: 0 4px 12px rgba(255,140,0,.28); transition: all .3s; }
.cs-lav-badge:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(255,140,0,.4); }
.cs-lav-badge .material-symbols-outlined { font-size: 26px !important; opacity: .95; }

/* ── Risultati ─────────────────────────────────────────────── */
.cs-results-section { background: #fff; padding: 26px 28px; border-radius: 12px; margin-bottom: 30px; box-shadow: var(--cs-shadow); border: 2px solid transparent; background-image: linear-gradient(white,white), linear-gradient(135deg, var(--cs-orange) 0%, var(--cs-orange2) 50%, var(--cs-orange) 100%); background-origin: border-box; background-clip: padding-box, border-box; }
.cs-results-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.cs-results-header h2 { font-size: 20px; font-weight: 700; color: #222; text-transform: uppercase; }
.cs-verified-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border-radius: 50%; flex-shrink: 0; }
.cs-verified-dot .material-symbols-outlined { font-size: 13px !important; }
.cs-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cs-result-card { display: flex; align-items: flex-start; gap: 13px; background: #fafafa; padding: 16px; border-radius: 8px; border-top: 2px solid #e0e0e0; transition: all .3s; }
.cs-result-card:hover { background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.06); border-top-color: var(--cs-orange); }
.cs-result-icon { width: 36px; height: 36px; flex-shrink: 0; border: 2px solid #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.cs-result-icon .material-symbols-outlined { font-size: 19px !important; color: #888; }
.cs-result-card:hover .cs-result-icon { border-color: var(--cs-orange); }
.cs-result-card:hover .cs-result-icon .material-symbols-outlined { color: var(--cs-orange); }
.cs-result-title { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 4px; }
.cs-result-text { font-size: 13px; color: #666; line-height: 1.55; }

/* ── Testimonianza ─────────────────────────────────────────── */
.cs-testimonial-section { margin-bottom: 30px; }
.cs-testimonial-card { background: linear-gradient(135deg, var(--cs-orange), var(--cs-orange2)); border-radius: 12px; padding: 34px; box-shadow: 0 6px 22px rgba(255,140,0,.28); position: relative; overflow: hidden; }
.cs-testimonial-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.cs-testimonial-card::after { content: '"'; position: absolute; bottom: 10px; right: 34px; font-size: 130px; color: rgba(255,255,255,.15); font-family: Georgia, serif; line-height: 1; pointer-events: none; }
.cs-testimonial-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 68px 1fr; gap: 22px; align-items: center; }
.cs-testimonial-avatar { width: 68px; height: 68px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: var(--cs-orange); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.cs-testimonial-body { color: #fff; }
.cs-testimonial-text { font-size: 16px; font-style: italic; line-height: 1.7; margin-bottom: 14px; }
.cs-author-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-author-name { font-size: 15px; font-weight: 700; }
.cs-author-location { font-size: 13px; opacity: .95; }
.cs-stars { font-size: 17px; }
.cs-verified-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.25); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.cs-verified-badge .material-symbols-outlined { font-size: 13px !important; }

/* ── CTA ───────────────────────────────────────────────────── */
.cs-cta-section { background: linear-gradient(135deg, var(--cs-teal), var(--cs-teal2)); padding: 40px 30px; border-radius: 12px; text-align: center; color: #fff; box-shadow: 0 8px 25px rgba(26,95,122,.3); margin-bottom: 30px; }
.cs-cta-title { font-size: 28px; margin-bottom: 10px; font-weight: 700; }
.cs-cta-text { font-size: 15px; margin-bottom: 22px; opacity: .95; }
.cs-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 25px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .3s; }
.cs-btn-primary { background: #ffc107; color: var(--cs-teal); }
.cs-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,193,7,.4); }
.cs-btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.cs-btn-secondary:hover { background: #fff; color: var(--cs-teal); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cs-hero-layout { grid-template-columns: 1fr 240px; }
    .cs-data-grid { grid-template-columns: 1fr; }
    .cs-phases-row { grid-template-columns: repeat(3, 1fr); }
    .cs-results-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .cs-title-row h1 { font-size: 24px; }
    .cs-hero-layout { grid-template-columns: 1fr; }
    .cs-ba-wrap { grid-template-columns: 1fr; }
    .cs-ba-card img { height: 290px; }
    .cs-gallery-grid { grid-template-columns: repeat(2,1fr); }
    .cs-gallery-span2 { grid-column: span 2; grid-row: span 1; }
    .cs-phases-row { grid-template-columns: 1fr 1fr; }
    .cs-results-grid { grid-template-columns: 1fr; }
    .cs-warranty-card { flex-direction: column; text-align: center; padding: 22px; }
    .cs-testimonial-inner { grid-template-columns: 1fr; text-align: center; }
    .cs-testimonial-avatar { margin: 0 auto; }
    .cs-author-row { justify-content: center; }
}
@media (max-width: 480px) {
    .cs-phases-row { grid-template-columns: 1fr; }
    .cs-gallery-grid { grid-template-columns: 1fr; }
    .cs-gallery-span2 { grid-column: span 1; }
    .cs-cta-buttons { flex-direction: column; }
    .cs-btn { justify-content: center; }
}
/* ── Extra per widget modulari ──────────────────────────────── */
.cs-wrap{display:block;}
.cs-phases-body{display:none;background:#fff;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,.09);overflow:hidden;margin-top:6px;border-top:3px solid #1a5f7a;grid-column:1/-1;}
.cs-phases-body.cs-open{display:block;}
.cs-phase-panel{display:none;padding:22px 28px;}
.cs-phase-panel.cs-active{display:block;}
.cs-phase-panel h4{font-size:15px;font-weight:700;color:#1a5f7a;margin-bottom:10px;display:flex;align-items:center;gap:8px;}
.cs-phase-panel p,.cs-phase-panel div{font-size:14px;color:#555;line-height:1.75;}
.cs-phase-col.cs-open .cs-phase-circle{background:linear-gradient(135deg,#1a5f7a,#159895)!important;outline-color:#1a5f7a!important;transform:scale(1.1);}
.cs-phase-col.cs-open .cs-phase-scopri{color:#1a5f7a;}
.cs-phase-col.cs-open .cs-phase-scopri .material-symbols-outlined{transform:rotate(180deg);}
.cs-ba-divider{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:3px;height:75%;background:rgba(255,255,255,.9);z-index:5;border-radius:2px;pointer-events:none;}
.cs-verified-dot{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-radius:50%;}
.cs-verified-dot .material-symbols-outlined{font-size:13px;}
.cs-nav-disabled{opacity:.35;pointer-events:none;}

/* ═══════════════════════════════════════════════════════
   BA CAROUSEL v4
   ═══════════════════════════════════════════════════════ */
.cs-ba-slides { position: relative; overflow: hidden; height: 400px; }
.cs-ba-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.cs-ba-slide.active { opacity: 1; }
.cs-ba-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dots */
.cs-ba-dots {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.cs-ba-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: background .3s, transform .3s;
}
.cs-ba-dot.active { background: #fff; transform: scale(1.3); }

/* Contatore */
.cs-ba-counter {
    font-size: 11px; font-weight: 400; margin-left: 8px;
    opacity: .85; background: rgba(0,0,0,.25);
    border-radius: 10px; padding: 1px 7px;
}

/* Responsive */
@media (max-width: 640px) {
    .cs-ba-slides { height: 260px; }
}

/* ═══════════════════════════════════════════════════════
   GALLERY TEASER "GUARDA TUTTA LA GALLERIA"
   ═══════════════════════════════════════════════════════ */
.cs-gallery-more {
    position: relative; overflow: hidden;
    background: #111; border-radius: 8px;
    aspect-ratio: 4/3;
}
.cs-more-thumb {
    position: absolute; width: 70%; height: 80%;
    object-fit: cover; border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    border: 2px solid #fff;
    transition: transform .3s;
}
.cs-more-thumb-0 { top: 8%; left: 4%;  transform: rotate(-6deg); z-index: 3; }
.cs-more-thumb-1 { top: 6%; left: 16%; transform: rotate(1deg);  z-index: 2; }
.cs-more-thumb-2 { top: 4%; left: 28%; transform: rotate(8deg);  z-index: 1; }
.cs-gallery-more:hover .cs-more-thumb-0 { transform: rotate(-8deg) translateY(-4px); }
.cs-gallery-more:hover .cs-more-thumb-1 { transform: rotate(2deg)  translateY(-2px); }
.cs-gallery-more:hover .cs-more-thumb-2 { transform: rotate(10deg) translateY(-6px); }

.cs-more-overlay {
    position: absolute; inset: 0; z-index: 10;
    background: rgba(0,0,0,.55);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; color: #fff; text-align: center;
    transition: background .25s;
    padding: 16px;
}
.cs-gallery-more:hover .cs-more-overlay { background: rgba(255,140,0,.72); }
.cs-more-overlay .material-symbols-outlined { font-size: 36px !important; }
.cs-more-overlay strong { font-size: 15px; font-weight: 700; display: block; }
.cs-more-overlay span   { font-size: 12px; opacity: .9; }

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.cs-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.92);
    display: flex !important; flex-direction: column;
    align-items: center; justify-content: center;
}
.cs-lightbox[style*="display:none"]  { display: none !important; }
.cs-lightbox[style*="display: none"] { display: none !important; }

.cs-lb-img-wrap {
    max-width: 90vw; max-height: 78vh;
    display: flex; align-items: center; justify-content: center;
}
.cs-lb-img {
    max-width: 90vw; max-height: 78vh;
    object-fit: contain; border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    transition: opacity .25s;
}
.cs-lb-caption {
    margin-top: 12px; color: #ddd; font-size: 14px; text-align: center; min-height: 18px;
}
.cs-lb-counter {
    color: #888; font-size: 12px; margin-top: 4px;
}
.cs-lb-close, .cs-lb-prev, .cs-lb-next {
    position: fixed; background: rgba(255,255,255,.12);
    border: none; color: #fff; cursor: pointer;
    border-radius: 50%; width: 44px; height: 44px;
    font-size: 22px; line-height: 44px; text-align: center;
    transition: background .2s;
}
.cs-lb-close:hover, .cs-lb-prev:hover, .cs-lb-next:hover { background: rgba(255,140,0,.7); }
.cs-lb-close { top: 16px; right: 16px; font-size: 18px; }
.cs-lb-prev  { left: 12px;  top: 50%; transform: translateY(-50%); font-size: 28px; }
.cs-lb-next  { right: 12px; top: 50%; transform: translateY(-50%); font-size: 28px; }

/* ═══════════════════════════════════════════════════════
   IMMAGINE IN EVIDENZA — max 500px, cover
   ═══════════════════════════════════════════════════════ */
.cs-hero-image img {
    max-height: 500px !important;
    height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
