/* ============================================
   Yaoki Academy — Regole SEO Galdor
   Stile minimal, monocromatico
   ============================================ */

.yaoki-regole-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* Singola regola */
.yaoki-regola {
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 28px;
    background: #fff;
}

/* Header */
.yaoki-regola-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.yaoki-regola-numero {
    font-size: 0.72em;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 0.08em;
    min-width: 28px;
    padding-top: 4px;
}

.yaoki-regola-titoli {
    flex: 1;
}

.yaoki-regola-titolo {
    margin: 0 0 4px;
    font-size: 1em;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.01em;
}

.yaoki-regola-titolo a {
    color: inherit;
    text-decoration: none;
}

.yaoki-regola-titolo a:hover {
    text-decoration: underline;
}

.yaoki-regola-fattore {
    margin: 0;
    font-size: 0.78em;
    color: #999;
    letter-spacing: 0.02em;
}

/* Meta: sezione + status */
.yaoki-regola-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.yaoki-regola-sezione {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: 2px;
}

.yaoki-regola-status {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 2px;
}

.yaoki-status-valido {
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.yaoki-status-obsoleto {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.yaoki-status-parziale {
    color: #f39c12;
    border: 1px solid #f39c12;
}

.yaoki-status-da-verificare {
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

/* Rating */
.yaoki-regola-rating {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.78em;
    color: #888;
}

.yaoki-regola-rating span strong {
    color: #111;
    margin-left: 4px;
}

/* Contenuto */
.yaoki-regola-contenuto {
    font-size: 0.9em;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-bottom: 16px;
}

.yaoki-regola-contenuto p {
    margin: 0 0 12px;
}

.yaoki-regola-contenuto p:last-child {
    margin-bottom: 0;
}

/* Argomenti / tag */
.yaoki-regola-argomenti {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.yaoki-argomento {
    font-size: 0.72em;
    color: #888;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.yaoki-argomento:hover {
    color: #111;
    border-color: #111;
}

/* Mobile */
@media (max-width: 768px) {
    .yaoki-regola {
        padding: 20px;
    }
    .yaoki-regola-rating {
        gap: 12px;
    }
}

/* ============================================
   Navigazione prev/next regole
   ============================================ */
.yaoki-regola-nav {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.yaoki-regola-nav-info {
    font-size: 0.78em;
    color: #999;
    margin-bottom: 12px;
}

.yaoki-regola-nav-info strong {
    color: #333;
}

.yaoki-regola-nav-info a {
    color: #333;
    margin-left: 8px;
    font-weight: 700;
    text-decoration: none;
}

.yaoki-regola-nav-info a:hover {
    text-decoration: underline;
}

.yaoki-regola-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.yaoki-nav-prev,
.yaoki-nav-next {
    font-size: 0.85em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    padding: 6px 14px;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yaoki-nav-prev:hover,
.yaoki-nav-next:hover {
    background: #111;
    color: #fff;
}

/* Classi stile Galdor */
code.galdor-domain {
    background: #fff3e0;
    color: #e65100;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.92em;
}

code.galdor-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
}

mark.galdor-highlight {
    background: #fff9c4;
    color: inherit;
    padding: 0 2px;
}

@media (max-width: 768px) {
    .yaoki-nav-prev,
    .yaoki-nav-next {
        max-width: 100%;
    }
}

/* Card compatte per homepage */
.yaoki-regole-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.yaoki-regole-home-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}
.yaoki-regole-home-card:hover {
    border-color: #f47D39;
}
.yaoki-regole-home-numero {
    font-size: 11px;
    color: #f47D39;
    font-weight: 700;
}
.yaoki-regole-home-titolo {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
}
.yaoki-regole-home-sezione {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ============================================
   Carousel Regole [yaoki_regole_carousel]
   Sfondo scuro, palette monocromatica per sezione
   ============================================ */

.yr-carousel-section {
    width: 100%;
}

.yr-carousel-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.yr-carousel-overflow {
    overflow: hidden;
    width: 100%;
}

.yr-carousel-track {
    display: flex;
    gap: 20px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
}

.yr-carousel-track::-webkit-scrollbar { display: none; }

/* ── Card ─────────────────────────────────── */
.yr-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color .2s;
}

.yr-card:hover {
    border-color: #3a3a3a;
}

/* ── Visual (SVG sezione) ─────────────────── */
.yr-card-visual {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid;
    border-color: inherit;
    background: #f5f5f5e8;
    border-radius: 4px 4px 0 0;
}

.yr-card-visual svg {
    width: 36px;
    height: 36px;
    opacity: 0.85;
}

/* ── Body ─────────────────────────────────── */
.yr-card-body {
    background: #4c4c4ca1;
	padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Top: numero + sezione ────────────────── */
.yr-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.yr-card-numero {
    font-size: 11px;
    font-weight: 700;
    color: #f5f5f5;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.yr-card-sezione {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 2px;
    border: 1px solid;
	color: #71b96f;
}

/* ── Titolo ───────────────────────────────── */
.yr-card-title {
    margin: 0 0 8px;
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.35;
    color: #e0e0e0 !important;
}

.yr-card-title a {
    color: inherit !important;
    text-decoration: none;
}

.yr-card-title a:hover {
    color: #fff !important;
}

/* ── Fattori IT / EN ──────────────────────── */
.yr-card-fattori {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.yr-fattore-it {
    font-size: 0.78em;
    color: #9d9ed7;
    font-weight: 600;
}

.yr-fattore-en {
    font-size: 0.74em;
    color: #9d9ed7;
    font-style: italic;
}

/* ── Rating ───────────────────────────────── */
.yr-card-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.yr-rating-badge {
    font-size: 0.72em;
    color: #f5f5f5;
    border: 1px solid;
    border-radius: 2px;
    padding: 2px 7px;
    letter-spacing: 0.03em;
}

.yr-rating-badge strong {
    color: #71b96f;
    margin-left: 3px;
}

/* ── Excerpt storiella ────────────────────── */
.yr-card-excerpt {
    font-size: 0.82em;
    line-height: 1.65;
    color: #f5f5f5;
    margin: 0 0 10px;
    flex: 1;
}

/* ── Excerpt note tecniche ────────────────── */
.yr-card-note {
    font-size: 0.76em;
    line-height: 1.55;
    color: #c1c0c0;
    margin: 0 0 16px;
    font-style: italic;
    border-left: 2px solid #2a2a2a;
    padding-left: 10px;
}

/* ── Link CTA ─────────────────────────────── */
.yr-card-link {
    display: inline-block;
    font-size: 0.76em;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
    border-radius: 2px;
    padding: 5px 12px;
    letter-spacing: 0.03em;
    transition: background .15s, color .15s;
    align-self: flex-start;
}

.yr-card-link:hover {
    background: rgba(255,255,255,0.06);
}

/* ── Frecce ───────────────────────────────── */
.yr-arrow {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    z-index: 2;
}

.yr-arrow:hover:not(:disabled) {
    border-color: #444;
    background: #222;
}

.yr-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.yr-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #bbb;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yr-arrow-prev { margin-right: 12px; }
.yr-arrow-next { margin-left: 12px; }

/* ── Dots ─────────────────────────────────── */
.yr-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}

.yr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #333;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}

.yr-dot.active {
    background: #888;
    border-color: #888;
}

/* ── Mobile ───────────────────────────────── */
@media (max-width: 768px) {
    .yr-card {
        flex: 0 0 85%;
    }
    .yr-arrow {
        display: none;
    }
}

/* ============================================
   Fix sfondo: forza bianco anche su sezioni Divi scure
   ============================================ */
.yaoki-regole-wrapper,
.yaoki-regola {
    background-color: #fff !important;
    color: #111 !important;
}

.yaoki-regola-titolo,
.yaoki-regola-titolo a {
    color: #111 !important;
}

.yaoki-regola-contenuto,
.yaoki-regola-contenuto p,
.yaoki-regola-contenuto li {
    color: #444 !important;
}

/* ============================================
   Storiella Galdor
   ============================================ */
.galdor-storia {
    font-size: 1.12em;
    line-height: 1.75;
    color: #333;
}

.galdor-storia > p {
    margin-bottom: 14px;
    font-style: italic;
    color: #555;
}

.galdor-dialogo {
    border-left: 3px solid #f47d39;
    padding-left: 16px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.galdor-dialogo p {
    margin: 0;
}

.galdor-dialogo strong {
    color: #111;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

/* ============================================
   Shortcode [yaoki_regola_random]
   ============================================ */
.yaoki-regole-random-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.yaoki-regola-random-card {
    background: #fff !important;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 22px 24px;
    color: #111 !important;
}

.yrr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.yrr-numero {
    font-size: 11px;
    font-weight: 700;
    color: #f47d39;
    letter-spacing: 0.05em;
}

.yrr-sezione {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    border: 1px solid #ddd;
    padding: 1px 7px;
    border-radius: 2px;
}

.yrr-titolo {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 700;
    color: #111 !important;
}

.yrr-titolo a {
    color: inherit;
    text-decoration: none;
}

.yrr-titolo a:hover {
    text-decoration: underline;
}

.yrr-fattore {
    margin: 0 0 12px;
    font-size: 0.8em;
    color: #888;
}

.yrr-rating {
    display: flex;
    gap: 14px;
    font-size: 0.78em;
    color: #888;
    margin-bottom: 14px;
}

.yrr-rating strong {
    color: #111;
    margin-left: 3px;
}

.yrr-link {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    border: 1px solid #111;
    padding: 5px 12px;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
}

.yrr-link:hover {
    background: #111;
    color: #fff;
}

/* Stile generale: vedi style.css nella root del child theme */

/* ============================================
   Ricerca inline [yaoki_ricerca_regole]
   ============================================ */
.yrr-wrap { position: relative; width: 100%; margin-bottom: 28px; }

.yrr-pills {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.yrr-pill {
    background: transparent; border: 2px solid #ddd; border-radius: 20px;
    color: #999; cursor: pointer; font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em; padding: 4px 12px; text-transform: uppercase;
    transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.yrr-pill:hover { border-color: var(--yrr-c, #f47d39); color: var(--yrr-c, #f47d39); }
.yrr-pill--active { background: #111; border-color: #111; color: #fff; }

.yrr-input-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 2px solid #e0e0e0; border-radius: 4px; padding: 0 14px;
    transition: border-color 0.15s;
}
.yrr-input-row:focus-within { border-color: #111; }
.yrr-search-icon { display: flex; align-items: center; flex-shrink: 0; }
.yrr-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #111; font-size: 15px; padding: 12px 0; width: 100%; -webkit-appearance: none;
}
.yrr-input::placeholder { color: #bbb; }
.yrr-input::-webkit-search-cancel-button { display: none; }
.yrr-clear {
    background: none; border: none; color: #bbb; cursor: pointer;
    font-size: 16px; padding: 4px; line-height: 1; flex-shrink: 0; transition: color 0.15s;
}
.yrr-clear:hover { color: #111; }

.yrr-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
    background: #fff; border: 2px solid #e0e0e0; border-radius: 4px;
    max-height: 360px; overflow-y: auto; display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.yrr-status { padding: 16px; text-align: center; color: #999; font-size: 13px; }

.yrr-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    text-decoration: none; color: #111; border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}
.yrr-item:last-child { border-bottom: none; }
.yrr-item:hover { background: #fafafa; }
.yrr-item-num { font-size: 12px; font-weight: 700; flex-shrink: 0; min-width: 26px; }
.yrr-item-body { flex: 1; min-width: 0; }
.yrr-item-title { font-size: 13px; font-weight: 600; display: block; }
.yrr-item-title mark { background: rgba(244,125,57,0.18); color: #e05a10; border-radius: 2px; padding: 0 2px; font-style: normal; }
.yrr-item-fat { font-size: 11px; color: #999; display: block; margin-top: 1px; }
.yrr-item-fat mark { background: rgba(244,125,57,0.18); color: #e05a10; font-style: normal; }
.yrr-item-sez { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.yrr-item-arrow { color: #f47d39; font-size: 13px; flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.yrr-item:hover .yrr-item-arrow { opacity: 1; }

.yrr-view-all {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 14px; border-top: 1px solid #f0f0f0; text-decoration: none;
    color: #f47d39; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; transition: background 0.12s;
}
.yrr-view-all:hover { background: #fafafa; color: #111; }

/* ============================================
   Archivio [yaoki_regole_archivio]
   ============================================ */
.yra-pills {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.yra-pill {
    display: inline-block; text-decoration: none;
    background: transparent; border: 2px solid #e0e0e0; border-radius: 20px;
    color: #999; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    padding: 5px 14px; text-transform: uppercase; transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.yra-pill:hover { border-color: var(--yra-c, #111); color: var(--yra-c, #111); }
.yra-pill--active { background: #111; border-color: #111; color: #fff; }

.yra-risultati {
    font-size: 13px; color: #999; margin-bottom: 18px;
}
.yra-risultati strong { color: #333; }

.yra-nessuna { color: #999; font-size: 0.9em; }

.yra-griglia {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) { .yra-griglia { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yra-griglia { grid-template-columns: 1fr; } }

.yra-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 2px;
    overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.yra-card:hover { border-color: #bbb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.yra-card-visual {
    height: 72px; display: flex; align-items: center; justify-content: center;
    background: #f7f7f7; border-bottom: 1px solid #ececec;
}
.yra-card-visual svg { width: 30px; height: 30px; opacity: 0.75; }

.yra-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.yra-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.yra-card-num { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; }
.yra-card-sez {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 2px 7px; border-radius: 2px; border: 1px solid;
}

.yra-card-title {
    margin: 0 0 6px; font-size: 0.88em; font-weight: 700;
    line-height: 1.35; color: #111 !important;
}
.yra-card-fat { font-size: 0.76em; color: #888; margin: 0 0 10px; }
.yra-card-rating {
    display: flex; gap: 10px; font-size: 0.72em; color: #888; margin-bottom: 10px;
}
.yra-card-rating strong { color: #111; margin-left: 2px; }
.yra-card-excerpt { font-size: 0.78em; color: #555; line-height: 1.6; margin: 0 0 14px; flex: 1; }

.yra-card-cta {
    display: inline-block; font-size: 0.72em; font-weight: 700; color: #333;
    background: #f5f5f5; border: 1px solid #ddd; border-radius: 2px; padding: 5px 11px;
    letter-spacing: 0.03em; transition: background .15s, color .15s, border-color .15s;
    align-self: flex-start; text-decoration: none;
}
.yra-card-cta:hover { background: #111; color: #fff; border-color: #111; }

/* ── Toggle grid/lista ── */
.yra-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.yra-toolbar .yra-risultati { margin-bottom: 0; }

.yra-toggle {
    display: flex; gap: 4px; flex-shrink: 0;
}
.yra-toggle-btn {
    background: transparent; border: 1px solid #e0e0e0; border-radius: 2px;
    color: #bbb; cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; padding: 6px 10px; transition: background .15s, color .15s, border-color .15s;
}
.yra-toggle-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yra-toggle-btn.active,
.yra-toggle-btn:hover { background: #111; border-color: #111; color: #fff; }

/* ── Vista lista ── */
.yra-lista { display: flex; flex-direction: column; gap: 0; }
.yra-lista-row {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: #111;
    padding: 12px 4px; border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}
.yra-lista-row:first-child { border-top: 1px solid #f0f0f0; }
.yra-lista-row:hover { background: #fafafa; }

.yra-lista-num { font-size: 11px; font-weight: 700; min-width: 28px; flex-shrink: 0; }
.yra-lista-sez {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 2px 7px; border-radius: 2px; border: 1px solid; flex-shrink: 0;
    white-space: nowrap;
}
.yra-lista-titolo { font-size: 0.88em; font-weight: 700; flex: 1; min-width: 0; }
.yra-lista-fattore { font-size: 0.76em; color: #888; min-width: 160px; flex-shrink: 0; }
.yra-lista-rating { display: flex; gap: 8px; font-size: 0.72em; color: #888; flex-shrink: 0; }
.yra-lista-rating strong { color: #333; margin-left: 2px; }
.yra-lista-arrow { color: #bbb; font-size: 13px; flex-shrink: 0; transition: color .12s; }
.yra-lista-row:hover .yra-lista-arrow { color: #f47d39; }

@media (max-width: 768px) {
    .yra-lista-fattore, .yra-lista-rating { display: none; }
    .yra-lista-sez { display: none; }
}

/* ── Paginazione ── */
.yra-paginazione {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 32px; flex-wrap: wrap;
}
.yra-page-btn, .yra-page-ellipsis {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; border-radius: 3px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    border: 1px solid #e0e0e0; color: #888; transition: background .15s, color .15s;
    padding: 0 10px;
}
.yra-page-btn:hover { background: #111; color: #fff; border-color: #111; }
.yra-page-btn.active { background: #111; color: #fff; border-color: #111; }
.yra-page-ellipsis { border: none; color: #bbb; }

/* ============================================
   Shortcode singola regola — blocchi per Divi
   ============================================ */
.yr-singola-numero {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.yr-singola-num-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #bbb;
}
.yr-singola-num-value {
    font-size: 2.4em; font-weight: 700; line-height: 1; letter-spacing: -0.02em;
}

.yr-singola-fattori {
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.yr-singola-fat-it { font-size: 1em; font-weight: 600; color: #333; }
.yr-singola-fat-en { font-size: 0.85em; color: #999; font-style: italic; }

.yr-singola-rating { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.yr-singola-badge {
    font-size: 0.75em; color: #888; border: 1px solid;
    border-radius: 2px; padding: 4px 10px; letter-spacing: 0.03em;
}
.yr-singola-badge strong { color: #333; margin-left: 4px; }

.yr-singola-campo {
    font-size: 0.92em; line-height: 1.75; color: #333;
}
.yr-singola-campo p { margin: 0 0 14px; }
.yr-singola-campo p:last-child { margin-bottom: 0; }
.yr-singola-campo ul, .yr-singola-campo ol { margin: 0 0 14px; padding-left: 20px; }
.yr-singola-campo li { margin-bottom: 6px; }
.yr-singola-campo h4 { font-size: 0.95em; font-weight: 700; color: #111; margin: 20px 0 8px; }
.yr-singola-campo table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9em; }
.yr-singola-campo th, .yr-singola-campo td { border: 1px solid #e0e0e0; padding: 8px 12px; text-align: left; }
.yr-singola-campo th { background: #f8f8f8; font-weight: 700; color: #333; }

.yr-singola-note {
    border-left: 3px solid #e0e0e0; padding-left: 18px; color: #555;
}
.yr-singola-algo {
    background: #f9f9f9; border-radius: 4px; padding: 18px 20px; color: #444;
}
.yr-singola-storia .galdor-dialogo { border-color: #121212; }
