/* Stili del modulo Riparazioni usati dentro il blog e la home:
   box promozionale a meta' articolo + blocco testuale "Le ultime riparazioni".
   Le variabili colore (--orange, --gray-*, --dark) sono gia' definite nelle pagine ospiti. */

/* Blocco "Le ultime riparazioni" (solo testo) */
.rip-links { margin: 40px 0; padding: 24px 26px; background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: 14px; }
.rip-links__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; color: var(--dark);
    text-transform: uppercase; letter-spacing: .04em; }
.rip-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.rip-links__item { padding: 12px 14px; background: #fff; border: 1px solid var(--gray-300); border-radius: 10px; }
.rip-links__item a { color: var(--dark); font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; display: block; }
.rip-links__item a:hover { color: var(--orange-dark); }
.rip-links__device { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-500); }
.rip-links__all { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700;
    color: var(--orange-dark); text-decoration: none; }
.rip-links__all:hover { text-decoration: underline; }

/* Box "pubblicita" riparazione dentro l'articolo del blog */
.rip-ad { margin: 38px 0; border: 1px solid var(--gray-300); border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.rip-ad__flag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #eceff1 10px, #eceff1 20px);
    padding: 8px 16px; border-bottom: 1px solid var(--gray-300); }
.rip-ad__flag-tag { background: var(--gray-700); color: #fff; font-size: 10px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.rip-ad__flag-note { font-size: 11px; color: var(--gray-500); letter-spacing: .02em; }
.rip-ad__inner { display: flex; gap: 18px; padding: 18px; }
.rip-ad__thumb { flex-shrink: 0; width: 150px; height: 110px; border-radius: 10px; overflow: hidden; display: block; }
.rip-ad__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rip-ad__body { flex: 1; min-width: 0; }
.rip-ad__kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--orange-dark); margin-bottom: 6px; }
.rip-ad__title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.rip-ad__title a { color: var(--dark); text-decoration: none; }
.rip-ad__title a:hover { color: var(--orange-dark); }
.rip-ad__desc { font-size: 14px; line-height: 1.6; color: var(--gray-600); margin-bottom: 10px; }
.rip-ad__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.rip-ad__meta i { color: var(--orange); margin-right: 4px; }
.rip-ad__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
    color: #fff; background: var(--dark); padding: 9px 18px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.rip-ad__cta:hover { background: var(--orange-dark); }


@media (max-width: 767px) {
    .rip-ad__inner { flex-direction: column; }
    .rip-ad__thumb { width: 100%; height: 170px; }
}

/* Il box vive dentro .post-content del blog, che ha regole aggressive
   (img !important, link arancioni sottolineati): qui le neutralizziamo. */
.post-content .rip-ad { color: var(--gray-700); }
.post-content .rip-ad__thumb img { height: 100% !important; width: 100% !important;
    margin: 0 !important; border-radius: 0 !important; display: block; object-fit: cover; }
.post-content .rip-ad__title { margin: 0 0 8px 0; font-size: 1.15rem; }
.post-content .rip-ad__title a { color: var(--dark); text-decoration: none; }
.post-content .rip-ad__title a:hover { color: var(--orange-dark); }
.post-content .rip-ad__desc { margin: 0 0 10px 0; }
.post-content .rip-ad__cta { color: #fff; text-decoration: none; }
.post-content .rip-ad__cta:hover { color: #fff; }
.post-content .rip-ad__thumb { text-decoration: none; }

/* Blocco testuale link: stesse precauzioni */
.rip-links__item a, .rip-links__all { text-decoration: none; }
.rip-links__item a:hover, .rip-links__all:hover { text-decoration: underline; }

/* Box "Dal nostro laboratorio": non e' una pubblicita' esterna, e' roba nostra,
   ma resta dichiarato come contenuto non correlato alla notizia. */
.rip-ad__flag { background: linear-gradient(90deg, #FFF7ED 0%, #F8FAFC 100%); }
.rip-ad__flag-tag { background: var(--orange-dark); color: #fff; }
.rip-ad__flag-tag i { margin-right: 5px; }
.rip-ad--service { border-color: #E5D5BE; }
.rip-ad--service .rip-ad__kicker { color: var(--gray-700); }
