:root {
    --off-green: #5f9f24;
    --off-green-dark: #416f19;
    --off-orange: #fca311;
    --off-ink: #20251f;
    --off-muted: #667064;
    --off-border: #dfe6dc;
    --off-surface: #f7faf5;
}

body { color: var(--off-ink); background: #fff; }
a { color: var(--off-green-dark); }
a:hover { color: #29470f; }

.offerte-shell { max-width: 1140px; margin: 0 auto; padding: 0 12px; }
.offerte-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Intestazione con ricerca */
.offerte-hero {
    margin: 24px 0 30px;
    padding: clamp(22px, 4vw, 42px);
    background: linear-gradient(135deg, #f5faef 0%, #fff8eb 100%);
    border: 1px solid var(--off-border);
    border-radius: 22px;
}
.offerte-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--off-green-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.offerte-hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.offerte-hero p { max-width: 760px; margin: 0 0 22px; color: var(--off-muted); font-size: 1.04rem; }

.offerte-form { display: flex; gap: 10px; max-width: 820px; }
.offerte-input {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #bdc9b8;
    border-radius: 12px;
    background: #fff;
    color: var(--off-ink);
    font-size: 1rem;
}
.offerte-input:focus { outline: 3px solid rgba(95, 159, 36, .2); border-color: var(--off-green); }
.offerte-button {
    padding: 14px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--off-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.offerte-button:hover { background: var(--off-green-dark); }

/* Elenco */
.offerte-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--off-border);
}
.offerte-results-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.offerte-results-head p { margin: 0; color: var(--off-muted); }

.offerte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.offerte-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--off-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.offerte-card:hover { transform: translateY(-2px); border-color: #b9c8b3; box-shadow: 0 10px 22px rgba(34, 54, 27, .09); }
.offerte-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 11px;
    background: var(--off-surface);
}
.offerte-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.offerte-card-noimage { color: var(--off-muted); font-size: .85rem; }
.offerte-card h3 {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.offerte-card h3 a { color: var(--off-ink); text-decoration: none; }
.offerte-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.offerte-card h3 a:hover { color: var(--off-green-dark); text-decoration: underline; }
.offerte-card-news {
    position: relative;
    z-index: 1;
    margin: -2px 0 12px;
    font-size: .84rem;
    line-height: 1.4;
}
.offerte-card-news span { display: block; color: var(--off-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.offerte-card-news a { font-weight: 700; }
.offerte-product-news {
    margin: 22px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--off-border);
    border-left: 4px solid var(--off-green);
    border-radius: 12px;
    background: var(--off-surface);
    line-height: 1.5;
}
.offerte-product-news span { display: block; margin-bottom: 2px; color: var(--off-muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.offerte-product-news a { font-weight: 800; }
.offerte-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.offerte-price { color: var(--off-ink); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.offerte-price small { display: block; margin-top: 3px; color: var(--off-muted); font-size: .74rem; font-weight: 400; }
.offerte-price-missing { color: var(--off-muted); font-size: .9rem; font-weight: 700; }
.offerte-card-cta { color: var(--off-green-dark); font-size: .88rem; font-weight: 800; white-space: nowrap; }

.offerte-empty { padding: 30px; border: 1px dashed #b8c5b3; border-radius: 16px; background: var(--off-surface); text-align: center; }
.offerte-empty h2 { margin-top: 0; font-size: 1.4rem; }

.offerte-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 30px 0 10px; }
.offerte-page {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--off-border);
    border-radius: 10px;
    background: #fff;
    color: var(--off-ink);
    font-weight: 700;
    text-decoration: none;
}
.offerte-page:hover, .offerte-page.is-current { border-color: var(--off-green); background: var(--off-green); color: #fff; }

.offerte-disclosure {
    margin: 34px 0 10px;
    padding: 16px 20px;
    border-left: 4px solid var(--off-orange);
    background: #fafafa;
    color: #555;
    font-size: .92rem;
    line-height: 1.6;
}
.offerte-disclosure strong { color: var(--off-ink); }

/* Scheda prodotto */
.offerte-breadcrumb { margin: 20px 0 14px; color: var(--off-muted); font-size: .88rem; }
.offerte-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.offerte-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b8c5b3; }
.offerte-breadcrumb a { text-decoration: none; }
.offerte-breadcrumb a:hover { text-decoration: underline; }

.offerte-product {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--off-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(40, 70, 30, .06);
}
.offerte-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    background: var(--off-surface);
}
.offerte-product-image img { max-width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.offerte-product h1 { margin: 0 0 14px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.25; }
.offerte-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin: 0 0 6px;
}
.offerte-product-price strong { font-size: 2rem; font-weight: 800; }
.offerte-product-price span { color: var(--off-muted); }
.offerte-product-date { margin: 0 0 20px; color: var(--off-muted); font-size: .85rem; }
.offerte-buy {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--off-orange);
    color: #2b1d00;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(252, 163, 17, .28);
}
.offerte-buy:hover { background: #f19400; color: #2b1d00; }
.offerte-features { margin: 24px 0 0; padding-left: 20px; color: #384532; line-height: 1.65; }
.offerte-features li + li { margin-top: 6px; }

.offerte-section-title { margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--off-border); font-size: 1.4rem; font-weight: 800; }

.offerte-card a:focus-visible,
.offerte-product-news a:focus-visible,
.offerte-page:focus-visible,
.offerte-buy:focus-visible,
.offerte-button:focus-visible { outline: 3px solid #c08516; outline-offset: 3px; }

@media (max-width: 760px) {
    .offerte-form { flex-direction: column; }
    .offerte-button { width: 100%; }
    .offerte-results-head { align-items: flex-start; flex-direction: column; }
    .offerte-product { grid-template-columns: 1fr; gap: 20px; }
    .offerte-product-image { min-height: 240px; }
    .offerte-buy { display: block; text-align: center; }
}
@media (max-width: 520px) {
    .offerte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .offerte-card { padding: 10px; }
    .offerte-card-image { height: 140px; }
    .offerte-card h3 { font-size: .9rem; }
    .offerte-price { font-size: 1.1rem; }
    .offerte-card-cta { display: none; }
    .offerte-card-news { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    .offerte-card { transition: none; }
    .offerte-card:hover { transform: none; }
}

/* Box link affiliati "Sostieni MrPaloma" (stesso layout di editor-text) */
.affiliate-support { --muted: var(--off-muted); margin: 12px 0 32px; padding: 28px; font-size: 14px; line-height: 1.6; color: var(--off-ink); background: linear-gradient(135deg, #fff 0%, #f0f4e9 100%); border: 1px solid #dce3d3; border-radius: 18px; box-shadow: 0 12px 32px rgba(35,49,41,.055); }
:where(.affiliate-support) :is(h2, h3, p) { margin: 0; line-height: inherit; }
.affiliate-support .card-kicker { display: block; font-size: .7rem; letter-spacing: 1.35px; color: #89927e; font-weight: 600; margin-bottom: 2px; }
.affiliate-heading { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 40px; margin-bottom: 20px; }
.affiliate-heading h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.5px; font-weight: 700; margin-top: 7px; }
.affiliate-heading > p { color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 530px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.affiliate-card { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 17px; background: rgba(255,255,255,.88); border: 1px solid #e0e6d9; border-radius: 12px; }
.affiliate-icon { display: grid; place-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.affiliate-amazon .affiliate-icon { background: #26332b; color: #f4df79; }
.affiliate-nordvpn .affiliate-icon { background: #477fda; }
.affiliate-starlink .affiliate-icon { background: #50615a; }
.affiliate-card h3 { font-size: 14px; font-weight: 700; margin: 1px 0 3px; }
.affiliate-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.affiliate-card a { color: var(--off-green-dark); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.affiliate-card a:hover { color: #29470f; }
.affiliate-disclosure { margin-top: 14px; color: #89927e; font-size: 12px; }
@media (max-width: 900px) { .affiliate-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .affiliate-support { padding: 21px 17px; margin-top: 4px; } .affiliate-heading { grid-template-columns: 1fr; gap: 8px; } .affiliate-heading h2 { font-size: 23px; } }

/* Banner AdSense in fondo all'elenco */
.offerte-ads { margin: 0 0 32px; min-height: 1px; }

/* Annuncio in-article tra le schede: occupa l'intera riga della griglia */
.offerte-ad-slot { grid-column: 1 / -1; min-width: 0; padding: 4px 0; }

/* Box Rapid Build Lab AI e strumenti online (stesso stile di website/news.asp) */
.news2-timelapse-feature { position: relative; overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0 0 22px; padding: 24px; border: 1px solid #e02a72; border-radius: 18px; background: linear-gradient(135deg, #111317 0%, #2b1020 58%, #b40051 100%); color: #fff; box-shadow: 0 14px 38px rgba(25,35,53,.1); }
.news2-timelapse-feature::after { content: ""; position: absolute; right: -85px; bottom: -115px; width: 260px; height: 260px; border-radius: 50%; background: rgba(61,220,40,.14); pointer-events: none; }
.news2-timelapse-feature > * { position: relative; z-index: 1; min-width: 0; }
.news2-timelapse-logo { display: block; width: 145px; max-width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.news2-timelapse-label { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.news2-timelapse-feature h2 { margin: 0 0 9px; color: #fff; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.12; }
.news2-timelapse-feature p { margin: 0 0 17px; color: #f3e9ee; font-size: .96rem; line-height: 1.55; }
.news2-timelapse-button { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid #fca311; border-radius: 9px; background: #111317; color: #fca311 !important; font-weight: 800; text-decoration: none; }
.news2-timelapse-button:visited, .news2-timelapse-button:hover, .news2-timelapse-button:focus { color: #fca311 !important; }
.news2-timelapse-project-link { display: inline-block; margin-left: 12px; color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news2-tools { display: grid; gap: 16px; margin: 0 0 32px; }
.news2-tool { position: relative; display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 20px; border: 1px solid #dbe4cd; border-radius: 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.news2-tool:hover, .news2-tool:focus-within { border-color: #5f9f24; box-shadow: 0 8px 22px rgba(28, 38, 20, .08); }
.news2-tool-logo { flex: none; width: 64px; height: 64px; padding: 6px; border-radius: 14px; background: #eef4e4; object-fit: contain; }
.news2-tool h2 { margin: 0; color: #1c2614; font: 700 1.2rem/1.15 Georgia, "Times New Roman", serif; }
.news2-tool a { color: inherit; text-decoration: none; }
.news2-tool a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.news2-tool a:focus-visible::after { outline: 3px solid #3b6612; outline-offset: 2px; }
.news2-tool p { margin: 4px 0 0; color: #3d4a32; font-size: .96rem; }
.news2-tool .news2-tool-note { color: #56634a; font-size: .88rem; }
@media (min-width: 768px) { .news2-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .news2-tool { flex-direction: column; } }
@media (max-width: 991.98px) { .news2-timelapse-feature { grid-template-columns: 125px minmax(0, 1fr); } }
@media (max-width: 575.98px) { .news2-timelapse-feature { grid-template-columns: 1fr; padding: 21px 18px; text-align: center; } .news2-timelapse-logo { width: 135px; } .news2-timelapse-project-link { display: block; margin: 13px 0 0; } }
