/* ===== CROCI LIBRO ===== */

.csl-section,
.csl-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.elementor-widget-shortcode .elementor-widget-container:has(.csl-section),
.e-con:has(.csl-section),
.e-con-inner:has(.csl-section) {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.csl-section {
    background: #090909;
    padding: 100px 48px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* sfondo decorativo */
.csl-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(200,16,46,.05) 0%, transparent 55%);
    pointer-events: none;
}

/* ── LAYOUT ── */
.csl-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── LIBRO ── */
.csl-book {
    display: flex;
    justify-content: center;
    align-items: center;
}

.csl-book__frame {
    position: relative;
    display: inline-block;
}

.csl-book__frame img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 3px;
    filter: brightness(.9) contrast(1.05);
    transform: perspective(800px) rotateY(-6deg) scale(1.02);
    transition: transform .6s cubic-bezier(.4,0,.2,1), filter .5s ease;
    box-shadow:
        -8px 8px 32px rgba(0,0,0,.7),
        -2px 2px 8px rgba(0,0,0,.5);
}
.csl-book__frame:hover img {
    transform: perspective(800px) rotateY(0deg) scale(1.04);
    filter: brightness(.95) contrast(1.02);
}

/* ombra sotto */
.csl-book__shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(0,0,0,.5) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

/* ── CONTENUTO ── */
.csl-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.csl-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: .8;
    margin-bottom: 14px;
}

.csl-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 900;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: #fff;
    line-height: .9;
    margin-bottom: 12px;
}

.csl-authors {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.4);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.csl-rule {
    width: 44px;
    height: 2px;
    background: #C8102E;
    margin-bottom: 24px;
    flex-shrink: 0;
}

/* ── TESTO ── */
.csl-text-wrap {
    margin-bottom: 20px;
    position: relative;
}

.csl-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255,255,255,.6);
    letter-spacing: .01em;
}

/* fade in fondo al testo preview */
.csl-text-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, #090909);
    pointer-events: none;
    transition: opacity .3s;
}
.csl-text-wrap.is-open::after {
    opacity: 0;
}

/* ── TOGGLE ── */
.csl-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #C9A84C;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 28px;
    transition: color .2s;
    align-self: flex-start;
}
.csl-toggle:hover { color: #fff; }
.csl-toggle__icon {
    width: 14px;
    height: 14px;
    transition: transform .3s ease;
}
.csl-toggle.is-open .csl-toggle__icon {
    transform: rotate(180deg);
}

/* ── BOTTONE AMAZON ── */
.csl-amazon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 24px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 3px;
    align-self: flex-start;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.csl-amazon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.csl-amazon:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: rgba(201,168,76,.06);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ══════════════════════════════
   ANIMAZIONI INGRESSO
══════════════════════════════ */
[data-csl-anim="book"] {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: .1s;
}
[data-csl-anim="book"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-csl-anim="content"] {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: .25s;
}
[data-csl-anim="content"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
    .csl-section { padding: 72px 24px; }
    .csl-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 540px;
    }
    .csl-book__frame img {
        max-width: 240px;
        transform: perspective(800px) rotateY(-4deg) scale(1.01);
    }
    [data-csl-anim="book"]    { transform: translateY(24px); }
    [data-csl-anim="content"] { transform: translateY(24px); }
    [data-csl-anim="book"].is-visible,
    [data-csl-anim="content"].is-visible { transform: translateY(0); }
    .csl-amazon { align-self: stretch; justify-content: center; }
}

@media (max-width: 480px) {
    .csl-section { padding: 56px 20px; }
    .csl-title { font-size: 36px !important; }
    .csl-book__frame img { max-width: 200px; }
}
/* ===== END CROCI LIBRO ===== */
