/* =====================================================
 * GUIDE COREA — vetrina, scheda guida, consulenza
 * Palette allineata al resto del sito (primario #d4637a).
 * ===================================================== */

.jc-guide-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

/* ── Intestazione vetrina ───────────────────────────── */
.jc-guide-hero { text-align: center; margin-bottom: 44px; }
.jc-guide-hero-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
    font-weight: 800;
}
.jc-guide-hero-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}
.jc-guide-empty {
    text-align: center;
    padding: 48px 20px;
    color: #888;
    background: #fafafa;
    border-radius: 14px;
}

/* ── Griglia ────────────────────────────────────────── */
.jc-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.jc-guida-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.jc-guida-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}

.jc-guida-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fdf2f5, #fff5f8);
    overflow: hidden;
}
.jc-guida-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-guida-cover-empty {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 13px; font-weight: 700; letter-spacing: .12em;
    color: #d4637a; opacity: .55;
}
.jc-guida-citta {
    position: absolute; left: 12px; bottom: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #b84e64;
}

.jc-guida-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.jc-guida-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.jc-guida-title a { color: inherit; text-decoration: none; }
.jc-guida-title a:hover { color: #d4637a; }
.jc-guida-excerpt { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #666; }

.jc-guida-meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.jc-guida-meta li { font-size: 12.5px; color: #888; position: relative; padding-left: 14px; }
.jc-guida-meta li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 5px; height: 5px; margin-top: -2.5px;
    background: #d4637a; border-radius: 50%;
}
.jc-guida-meta-lg li { font-size: 14px; color: #666; }

.jc-guida-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f2f2f2;
}
.jc-guida-price { font-size: 18px; font-weight: 800; color: #2f2f2f; }
.jc-guida-price del { font-size: 14px; font-weight: 500; opacity: .5; margin-right: 5px; }
.jc-guida-owned { font-size: 13px; font-weight: 700; color: #2ecc71; }
.jc-guida-soon { font-size: 13px; color: #999; }

/* ── Pagina singola guida ───────────────────────────── */
.jc-guida-back { margin: 0 0 22px; font-size: 14px; }
.jc-guida-back a { color: #d4637a; text-decoration: none; font-weight: 600; }
.jc-guida-back a:hover { text-decoration: underline; }

.jc-guida-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.jc-guida-single-cover {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f5, #fff5f8);
    aspect-ratio: 3 / 4;
}
.jc-guida-single-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jc-guida-badge { margin-bottom: 12px; }
.jc-guida-single-title { margin: 0 0 16px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; font-weight: 800; }
.jc-guida-single-desc { font-size: 16px; line-height: 1.7; color: #444; }
.jc-guida-single-desc p { margin-bottom: 14px; }

.jc-guida-highlights { margin-top: 28px; padding: 20px 22px; background: #fdf2f5; border-radius: 14px; }
.jc-guida-highlights h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.jc-guida-highlights ul { margin: 0; padding-left: 20px; }
.jc-guida-highlights li { margin-bottom: 7px; font-size: 15px; line-height: 1.55; color: #555; }

.jc-guida-buy { margin-top: 30px; padding: 24px; border: 1px solid #f0d0d8; border-radius: 16px; background: #fff; }
.jc-guida-price-lg { font-size: 30px; font-weight: 800; color: #2f2f2f; margin-bottom: 16px; }
.jc-guida-price-lg del { font-size: 20px; font-weight: 500; opacity: .45; margin-right: 8px; }
.jc-guida-buy-note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #777; }
.jc-guida-buy-note a { color: #d4637a; }
.jc-guida-owned-note { margin: 0 0 14px; font-weight: 700; color: #2ecc71; }
.jc-guida-soon-note { margin: 0; color: #888; }

@media (max-width: 860px) {
    .jc-guida-single-grid { grid-template-columns: 1fr; gap: 28px; }
    .jc-guida-single-cover { max-width: 340px; }
}
@media (max-width: 600px) {
    .jc-guide-wrapper { padding: 32px 16px 48px; }
    .jc-guide-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ── Pagina di ringraziamento: download immediato ───── */
.jc-guida-thankyou {
    margin: 0 0 26px;
    padding: 24px 26px;
    background: #fdf2f5;
    border: 1px solid #f0d0d8;
    border-radius: 16px;
}
.jc-guida-thankyou h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.jc-guida-thankyou p { margin: 0 0 14px; font-size: 14px; color: #666; }
.jc-guida-thankyou-list { list-style: none; margin: 0; padding: 0; }
.jc-guida-thankyou-list li {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    padding: 12px 0; border-top: 1px solid #f0d0d8;
    font-weight: 600;
}
.jc-guida-thankyou-wait { background: #fff8e6; border-color: #ffd770; }

/* ── Pagina "riscarica la guida" ────────────────────── */
.jc-guida-resend-form {
    max-width: 420px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px;
    padding: 26px; background: #fff;
    border: 1px solid #eee; border-radius: 16px;
}
.jc-guida-resend-form label { font-size: 13px; font-weight: 700; color: #555; }
.jc-guida-resend-form input[type="email"] {
    height: 44px; padding: 0 14px;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    font-size: 15px; font-family: inherit;
}
.jc-guida-resend-form input[type="email"]:focus { border-color: #d4637a; outline: none; }
.jc-guida-resend-msg {
    max-width: 420px; margin: 0 auto 18px;
    padding: 13px 16px; border-radius: 10px;
    font-size: 14px; line-height: 1.5; text-align: center;
}
.jc-guida-msg-ok  { background: #eafaf1; color: #1f7a4d; border: 1px solid #b8e6cd; }
.jc-guida-msg-err { background: #fff5f5; color: #b3372c; border: 1px solid #f3c9c5; }

/* ── Area riservata: sezione guide ──────────────────── */
.jc-dashboard-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* =====================================================
 * CONSULENZE 1:1 — sezione pubblica
 * ===================================================== */
.jc-cons-section {
    margin: 60px 0 0;
    padding: 44px 20px;
    background: linear-gradient(135deg, #fdf2f5, #fff5f8);
    border-radius: 22px;
}
.jc-cons-inner { max-width: 660px; margin: 0 auto; }
.jc-cons-head { text-align: center; margin-bottom: 26px; }
.jc-cons-title { margin: 0 0 10px; font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.jc-cons-sub { margin: 0; font-size: 15px; line-height: 1.6; color: #666; }

.jc-cons-steps {
    list-style: none; margin: 0 0 28px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.jc-cons-steps li {
    flex: 1 1 170px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .8);
    border-radius: 12px;
    font-size: 13.5px; color: #555; text-align: center;
}
.jc-cons-steps strong { color: #d4637a; margin-right: 4px; }

.jc-cons-form {
    padding: 26px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}
.jc-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.jc-cons-label {
    display: flex; flex-direction: column; gap: 5px;
    margin-bottom: 14px;
    font-size: 13px; font-weight: 600; color: #555;
}
.jc-cons-opt { font-weight: 400; color: #999; }
.jc-cons-label input, .jc-cons-label textarea {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid #e6e6e6; border-radius: 10px;
    font-size: 15px; font-family: inherit; font-weight: 400; color: #333;
    background: #fff;
}
.jc-cons-label textarea { resize: vertical; line-height: 1.55; }
.jc-cons-label input:focus, .jc-cons-label textarea:focus { border-color: #d4637a; outline: none; }

.jc-cons-check {
    display: flex; align-items: flex-start; gap: 9px;
    margin-bottom: 12px;
    font-size: 12.5px; line-height: 1.5; color: #666; cursor: pointer;
}
.jc-cons-check input[type="checkbox"] {
    margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0;
    accent-color: #d4637a; cursor: pointer;
}
.jc-cons-check a { color: #d4637a; }

.jc-cons-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jc-cons-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.jc-cons-msg { font-size: 13.5px; color: #777; }
.jc-cons-msg-err { color: #b3372c; }
.jc-cons-ok {
    margin: 0; padding: 22px; text-align: center;
    font-size: 16px; font-weight: 600; color: #1f7a4d;
    background: #eafaf1; border-radius: 12px;
}

@media (max-width: 600px) {
    .jc-cons-section { padding: 32px 16px; border-radius: 16px; }
    .jc-cons-form { padding: 20px; }
}

/* Stessa protezione per le pagine pubbliche delle guide: la larghezza e la
   centratura le decide il componente, non il layout a blocchi del tema. */
.entry-content[data-ast-blocks-layout] > .jc-guide-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
