/*
 * ============================================================
 *  step-3.css  —  Scelta tessuto + Panel Tessuto
 * ============================================================
 */

/* Dimensione card tessuto — aspect ratio 4:3 per foto landscape */
.ctp-card--tessuto .ctp-card__media {
    aspect-ratio: 4 / 3;
}

/* prezzo nelle card griglia sinistra */
.ctp-card--tessuto .ctp-card__price {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.ctp-step--tessuto{
    .ctp-eyebrow,.ctp-title, .ctp-subtitle{
        color: #fff;
    }
    .ctp-split__panel{
        height: 85vh;
        top: 80px;
    }
}


/* ════════════════════════════════════════════════════════════
   PANEL TESSUTO
   Layout: griglia 2 col in cima (img | info), poi sezioni full-width
   ════════════════════════════════════════════════════════════ */

.ctp-panel-tessuto {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    animation: ctpDetailIn 0.32s ease forwards;
    padding: 15px;
}
@keyframes ctpDetailIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── TOP: griglia immagine sx + info dx ── */
.ctp-pt__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 260px;
}

/* colonna immagine */
.ctp-pt__img-col {
    position: relative;
    overflow: hidden;
    background: #e8e0d4;
    border-radius: 15px;
    max-height: 500px;
    height: 100%;
}
.ctp-pt__hero {
    position: relative;
    height: 100%;
    min-height: 240px;
}
.ctp-pt__hero img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.ctp-pt__img-col:hover .ctp-pt__hero img { transform: scale(1.04); }

/* badge colore sovrapposto sull'immagine */
.ctp-pt__color-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: rgba(255,255,255,0.93);
    padding: 8px 12px;
    font-family: var(--font-ui); font-size: 12px; font-weight: 600;
    color: var(--dark-brown);
    opacity: 0; transition: opacity 0.25s;
    pointer-events: none;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.10);
    border-top: 1px solid rgba(0,0,0,0.07);
}
.ctp-pt__color-badge.is-visible { opacity: 1; }
.ctp-pt__color-dot {
    width: 105px; height: 105px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15); flex-shrink: 0;
}

/* colonna informazioni */
.ctp-pt__info-col {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    justify-content: center;
}

.ctp-pt__title {
    font-family: var(--font-serif);
    font-size: 15px; font-weight: 700;
    color: var(--dark-brown);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}
.ctp-pt__desc {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 300;
    line-height: 1.6;
    color: var(--ctp-text-light);
    margin: 0;
}

/* blocco "prezzo calcolato in base alle misure" */
.ctp-pt__price-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ctp-pt__price-note {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 500;
    color: var(--dark-brown);
    line-height: 1.4;
    margin: 0;
}
.ctp-pt__dims {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ctp-pt__dim-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.ctp-pt__dim-label {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ctp-text-light);
    flex-shrink: 0;
}
.ctp-pt__dim-val {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 600;
    color: var(--dark-brown);
}

/* prezzo grande */
.ctp-pt__price-wrap { }
.ctp-pt__price {
    font-family: var(--font-serif);
    font-size: 24px; font-weight: 700;
    color: var(--dark-brown);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* swatches colore */
.ctp-pt__colori-wrap { display: flex; flex-direction: column; gap: 6px; }
.ctp-pt__colori-title {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 500;
    color: var(--dark-brown);
    margin: 0;
}

/* bottoni azione */
.ctp-pt__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}
.ctp-pt__actions .ctp-btn--primary {
    background: var(--ctp-brown-deeper);
    color: #fff;
    border-radius: 0;
    padding: 11px 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em;
    flex: 1; min-width: 140px;
}
.ctp-pt__actions .ctp-btn--outline-brown {
    border-radius: 0;
    padding: 11px 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em;
    flex: 1; min-width: 140px;
    border: 1.5px solid var(--dark-brown);
    color: var(--dark-brown);
    justify-content: center;
}
.ctp-pt__actions .ctp-btn--outline-brown:hover {
    background: rgba(61,40,0,0.05);
}

/* ── IDEALE PER — sezione full-width ── */
.ctp-pt__ideal {
    padding: 12px 16px;
}
.ctp-pt__section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ctp-pt__section-line {
    display: block;
    width: 28px; height: 1.5px;
    background: var(--ctp-brown);
    flex-shrink: 0;
}
.ctp-pt__section-label {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ctp-brown);
}
.ctp-pt__ideal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e8e0d4;
}
.ctp-pt__ideal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e8e0d4;
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 400;
    color: var(--ctp-text-light);
    background: #fff;
    margin: -0.5px;
}
.ctp-pt__check {
    color: var(--ctp-brown);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
}

/* ── COME FUNZIONA ── */
.ctp-pt__howto {
    border-top: 1px solid #e8e0d4;
    padding: 12px 16px 18px;
    background: #faf8f4;
}
.ctp-pt__section-header--gold {
    margin-bottom: 14px;
}
.ctp-pt__section-label--gold {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ctp-brown);
}
.ctp-pt__howto-steps { display: flex; flex-direction: column; gap: 12px; }
.ctp-pt__howto-step {
    display: flex; gap: 14px; align-items: flex-start;
}
.ctp-pt__howto-num {
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--ctp-brown-deeper);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.ctp-pt__howto-step p {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 300;
    line-height: 1.55; color: var(--ctp-text-light); margin: 0;
}
.ctp-pt__howto-step p strong { font-weight: 600; color: var(--dark-brown); }

/* responsive */
@media (max-width: 700px) {
    .ctp-pt__top { grid-template-columns: 1fr; }
    .ctp-pt__hero { min-height: 240px; }
    .ctp-pt__info-col { padding: 20px 18px; }
}
