/* ============================================================
   Farantube — template recensioni bookmaker
   Design tokens del tema: vedi :root nel child theme
   ============================================================ */

.ft-recensione { --ft-radius: 12px; }
.ft-recensione .site-main { max-width: 980px; margin-left: auto; margin-right: auto; }

.ft-recensione .ft-section { margin: 44px 0; }
.ft-recensione h2 {
    font-family: var(--font-display, inherit);
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: .3px;
    color: var(--text, #EDF3EF);
    border-left: 4px solid var(--green, #1FAA55);
    padding-left: 14px;
    margin-bottom: 18px;
}

/* ------------------------------------------------------ hero */
.ft-hero {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-elevated, #121E19), var(--bg, #0B1210));
    border: 1px solid var(--border, #24352D);
    border-radius: var(--ft-radius);
    padding: 28px;
    margin-bottom: 18px;
}
.ft-hero-media img.ft-hero-img {
    width: 100%; height: auto; border-radius: var(--ft-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.ft-kicker {
    color: var(--green, #1FAA55);
    font-weight: 700; text-transform: uppercase;
    font-size: 13px; letter-spacing: 1.4px; margin: 0 0 6px;
}
.ft-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05; margin: 0 0 12px; color: var(--white, #fff);
}

.ft-rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-stars { display: inline-flex; gap: 2px; }
.ft-star::before { content: "\2605"; font-size: 22px; line-height: 1; color: #3a4a41; font-style: normal; }
.ft-star.is-full::before { color: var(--gold, #F7931A); }
.ft-star.is-half::before {
    background: linear-gradient(90deg, var(--gold, #F7931A) 50%, #3a4a41 50%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ft-stars-num { font-weight: 800; font-size: 20px; color: var(--white, #fff); }
.ft-stars-num small { color: var(--text-muted, #93A8A0); font-size: 13px; }
.ft-ugc-count { color: var(--text-muted, #93A8A0); font-size: 14px; }

.ft-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ft-badge {
    border: 1px solid var(--border-strong, #33493D);
    color: var(--text, #EDF3EF);
    border-radius: 999px; padding: 4px 12px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
}
.ft-badge-adm { background: var(--green-deep, #0E6B39); border-color: var(--green, #1FAA55); }
.ft-badge-noadm { background: #5a3a10; border-color: var(--gold-deep, #C97615); color: #ffd9a3; }
.ft-badge-soft { color: var(--text-muted, #93A8A0); font-weight: 600; }

.ft-quickfacts { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 18px; }
.ft-quickfacts dt {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted, #93A8A0); margin-bottom: 2px;
}
.ft-quickfacts dd { margin: 0; font-weight: 700; color: var(--white, #fff); font-size: 15.5px; }

.ft-hero-cta .ft-cta-note, .ft-mid-cta .ft-cta-note, .ft-cta-note {
    color: var(--text-muted, #93A8A0); font-size: 12px; margin-top: 8px;
}
.ft-mid-cta { text-align: center; margin: 40px 0; }

.ft-disclaimer-top {
    font-size: 13px; color: var(--text-muted, #93A8A0);
    border: 1px dashed var(--border, #24352D); border-radius: 8px;
    padding: 10px 14px; margin: 0 0 26px;
}
.ft-disclaimer-top a { color: var(--green, #1FAA55); }

.ft-featured { margin: 0 0 10px; }
.ft-featured-img { width: 100%; height: auto; border-radius: var(--ft-radius); }

/* --------------------------------------------------- tabelle */
.ft-table-wrap { overflow-x: auto; border-radius: var(--ft-radius); border: 1px solid var(--border, #24352D); }
.ft-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.ft-table th, .ft-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border, #24352D); }
.ft-table tr:last-child th, .ft-table tr:last-child td { border-bottom: 0; }
.ft-table th {
    width: 34%; color: var(--green, #1FAA55); font-weight: 700;
    background: var(--bg-elevated, #121E19); white-space: nowrap;
}
.ft-table td { color: var(--text, #EDF3EF); background: transparent; }

/* tabelle dentro il contenuto migrato */
.ft-content table { width: 100%; border-collapse: collapse; border: 1px solid var(--border, #24352D); border-radius: var(--ft-radius); }
.ft-content table td, .ft-content table th { padding: 11px 14px; border-bottom: 1px solid var(--border, #24352D); }

/* ------------------------------------------ screenshot inline */
.ft-shot { margin: 26px 0; }
.ft-shot img {
    width: 100%; height: auto; border-radius: var(--ft-radius);
    border: 1px solid var(--border-strong, #33493D);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.ft-shot figcaption {
    color: var(--text-muted, #93A8A0); font-size: 13px; margin-top: 8px; text-align: center;
}
.ft-shot-storico figcaption::after { content: " (screenshot storico)"; opacity: .8; }

/* --------------------------------------- consiglio esperto */
.ft-expert {
    display: grid; grid-template-columns: 56px 1fr; gap: 14px;
    background: var(--bg-elevated, #121E19);
    border: 1px solid var(--border, #24352D);
    border-left: 4px solid var(--green, #1FAA55);
    border-radius: var(--ft-radius);
    padding: 20px; margin: 30px 0;
}
.ft-expert-photo {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--green, #1FAA55); grid-row: span 3;
}
.ft-expert-head { margin: 0; line-height: 1.35; }
.ft-expert-name { font-weight: 800; color: var(--white, #fff); }
.ft-expert-role { display: block; font-size: 12.5px; color: var(--text-muted, #93A8A0); }
.ft-expert blockquote {
    margin: 10px 0 0; padding: 0; border: 0; font-style: italic;
    color: var(--text, #EDF3EF); font-size: 15.5px;
}
.ft-expert blockquote p { margin: 0 0 10px; }
.ft-expert-tip {
    margin: 6px 0 0; font-size: 14.5px; color: var(--text, #EDF3EF);
    background: var(--bg-elevated-2, #182A22); border-radius: 8px; padding: 10px 12px;
}
.ft-expert-tip strong { color: var(--green, #1FAA55); }

/* ---------------------------------------- video placeholder */
.ft-video-placeholder {
    position: relative; aspect-ratio: 16 / 9;
    border-radius: var(--ft-radius); overflow: hidden;
    background: var(--bg-elevated, #121E19) center / cover no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    border: 1px solid var(--border-strong, #33493D);
}
.ft-video-placeholder::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(6, 12, 9, .68);
}
.ft-play {
    position: relative; width: 84px; height: 84px; border-radius: 50%;
    background: var(--green, #1FAA55); opacity: .9;
}
.ft-play::before {
    content: ""; position: absolute; left: 55%; top: 50%;
    transform: translate(-50%, -50%);
    border-left: 26px solid var(--white, #fff);
    border-top: 16px solid transparent; border-bottom: 16px solid transparent;
}
.ft-video-label { position: relative; color: var(--white, #fff); font-weight: 700; letter-spacing: .4px; }
.ft-video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--ft-radius); }

/* --------------------------------------- pro/contro, per chi */
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ft-col {
    background: var(--bg-elevated, #121E19);
    border: 1px solid var(--border, #24352D);
    border-radius: var(--ft-radius); padding: 22px;
}
.ft-col h3 { margin-top: 0; font-size: 20px; }
.ft-col-pro { border-top: 3px solid var(--green, #1FAA55); }
.ft-col-contro { border-top: 3px solid var(--gold-deep, #C97615); }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border, #24352D); }
.ft-col li:last-child { border-bottom: 0; }
.ft-col li strong { display: block; color: var(--white, #fff); margin-bottom: 2px; }
.ft-col li span { color: var(--text-muted, #93A8A0); font-size: 14.5px; }
.ft-col-pro li::before {
    content: "\2713"; position: absolute; left: 0; top: 12px;
    color: var(--green, #1FAA55); font-weight: 900;
}
.ft-col-contro li::before {
    content: "\2715"; position: absolute; left: 0; top: 12px;
    color: var(--gold-deep, #C97615); font-weight: 900;
}

/* ------------------------------------------------ comparative */
.ft-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ft-card {
    display: flex; flex-direction: column;
    background: var(--bg-elevated, #121E19);
    border: 1px solid var(--border, #24352D);
    border-radius: var(--ft-radius); overflow: hidden;
    text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
.ft-card:hover { transform: translateY(-3px); border-color: var(--green, #1FAA55); }
.ft-card-media {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated-2, #182A22);
    padding: 18px; min-height: 86px;
}
.ft-card-logo { max-height: 46px; width: auto; max-width: 88%; }
.ft-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ft-card-title { font-weight: 800; color: var(--white, #fff); font-size: 16.5px; }
.ft-card .ft-star::before { font-size: 15px; }
.ft-card .ft-stars-num { font-size: 14px; }
.ft-card-bonus { color: var(--text-muted, #93A8A0); font-size: 13px; }
.ft-card-cta { color: var(--green, #1FAA55); font-weight: 700; font-size: 13.5px; margin-top: 4px; }

/* ------------------------------------------- recensioni utenti */
.ft-ugc-aggregate { color: var(--text-muted, #93A8A0); }
.ft-ugc-aggregate strong { color: var(--gold, #F7931A); font-size: 18px; }
.ft-ugc-note { font-size: 13px; color: var(--text-muted, #93A8A0); }
.ft-rating-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.ft-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.ft-rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.ft-rating-input label {
    font-size: 30px; color: #3a4a41; cursor: pointer; transition: color .1s ease; margin: 0;
}
.ft-rating-input label:hover,
.ft-rating-input label:hover ~ label,
.ft-rating-input input:checked ~ label { color: var(--gold, #F7931A); }
.ft-stars-user { margin-right: 8px; }
.ft-stars-user .ft-star::before { font-size: 15px; }

/* ----------------------------------------------------- mobile */
@media (max-width: 760px) {
    .ft-hero { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
    .ft-hero-media { max-width: 260px; margin: 0 auto; }
    .ft-cols { grid-template-columns: 1fr; }
    .ft-quickfacts { gap: 16px; }
    .ft-recensione .ft-section { margin: 32px 0; }
}
