/* Cuscino Calmante - Felici Insieme
   Replica del funnel MrFluffyFriend. Palette e misure prese dal CSS originale
   (vedi meccaniche.md e mrfluffyfriend-pagina-testo.md). */

:root {
    --blu-scuro: #172950;
    --blu: #2c9ddf;
    --blu-chiaro: #d4efff;
    --blu-bg: #eef7fd;
    --arancio: #e2661d;
    --grigio-testo: #666;
    --bordo: #c8c8c8;
    --cart-notice-bg: #fff4e5;
    --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1e1f24;
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--blu); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.wrap--narrow { max-width: 760px; }

/* ── Barra annuncio + header ─────────────────────────────── */
.announce {
    background: #fff;
    color: #1e1f24;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 7px 12px;
    border-bottom: 1px solid #ededed;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #ededed;
    position: relative;
}
.site-header img { width: 200px; max-width: 55vw; height: auto; }
.header-cart {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--blu-scuro); text-decoration: none; font-weight: 700; font-size: 14px;
}
.header-cart__badge {
    background: var(--arancio); color: #fff; border-radius: 999px;
    min-width: 18px; height: 18px; line-height: 18px; text-align: center;
    font-size: 11px; padding: 0 5px;
}

/* ── Advertorial ─────────────────────────────────────────── */
.article-title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--blu-scuro);
    text-align: center;
    margin: 28px 0 22px;
}
.article-intro { margin-bottom: 34px; }
.article-intro strong { font-weight: 800; }

.content-wrapper { display: flex; align-items: center; margin-bottom: 60px; gap: 0; }
.content-wrapper .image-container { flex: .8; padding-right: 20px; position: relative; aspect-ratio: 1 / 1; }
.content-wrapper .image-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.content-wrapper .text-container { flex: 1.2; text-align: left; }
.content-wrapper h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; color: var(--blu-scuro); }
.content-wrapper p { margin: 0 0 14px; }
.content-wrapper p:last-child { margin-bottom: 0; }
.content-wrapper p.bold { font-weight: 700; }

@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
    .content-wrapper .image-container { width: 100%; padding-right: 0; padding-bottom: 15px; aspect-ratio: auto; }
    .content-wrapper .text-container { width: 100%; }
    .content-wrapper h3 { margin-bottom: 8px; font-size: 22px; }
    .article-title { font-size: 28px; }
}

/* Box CTA dell'advertorial */
.banner-wrapper { position: relative; margin-bottom: 60px; padding-top: 30px; }
.sale-banner {
    background: var(--blu-scuro); color: #fff; padding: 8px 20px;
    font-size: 20px; font-weight: 700; text-align: center; border-radius: 8px;
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
    white-space: nowrap; box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
@media (max-width: 768px) { .sale-banner { font-size: 15px; padding: 8px 15px; } }

.cta-wrapper {
    display: flex; border: 1px solid var(--bordo); border-radius: 8px;
    overflow: hidden; position: relative; background: #fff;
}
.cta-wrapper .cta-image { flex: 1; aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.cta-wrapper .cta-content {
    flex: 1; padding: 20px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
}
.cta-title { font-size: 35px; line-height: 1.1; margin: 0 0 10px; font-weight: 700; letter-spacing: normal; }
.cta-title span { color: var(--blu); }
.cta-text { font-size: 18px; margin: 0 0 20px; color: var(--grigio-testo); }
.cta-button {
    background: var(--blu); color: #fff; height: 80px; text-decoration: none;
    border-radius: 5px; font-size: 23px; font-weight: 700;
    display: flex; justify-content: center; align-items: center;
    width: 100%; margin-bottom: 2px; text-align: center;
    white-space: nowrap;
}
.cta-footer { font-size: 15px; color: var(--blu-scuro); font-weight: 700; margin: 6px 0 0; }
.additional-info {
    background: var(--blu-chiaro); padding: 10px; display: flex;
    justify-content: space-between; align-items: center; margin-top: 5px;
    border-radius: 8px; width: 100%;
}
.additional-info .column { flex: 1; padding: 0 10px; text-align: center; font-size: 15px; color: var(--blu-scuro); }
.additional-info .divider { border-left: 1px solid #707070; height: 40px; margin: 0 10px; }

@media (max-width: 768px) {
    .cta-wrapper { flex-direction: column; }
    /* In colonna `flex:1` azzera la flex-basis sull'altezza e schiaccia il div
       (che e' vuoto): serve una basis fissa, non solo height. */
    .cta-wrapper .cta-image { width: 100%; flex: 0 0 200px; height: 200px; aspect-ratio: auto; }
    .cta-title { font-size: 27px; }
    .cta-button { font-size: clamp(16px, 5vw, 23px); height: 66px; }
}

/* ── PDP: galleria ───────────────────────────────────────── */
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 18px; }
@media (min-width: 900px) {
    .pdp-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
}

.gallery { position: relative; }
.gallery__main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: #f4f4f4; }
.gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 999px; border: 1px solid #e0e0e0;
    background: rgba(255,255,255,.9); color: #1e1f24; font-size: 18px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gallery__nav--prev { left: 8px; }
.gallery__nav--next { right: 8px; }
.gallery__counter { text-align: center; font-size: 13px; color: var(--grigio-testo); margin: 8px 0 6px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.thumb img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.thumb.is-active { border-color: var(--blu); }

/* ── PDP: blocco acquisto ────────────────────────────────── */
.stars { color: #f6a623; letter-spacing: 1px; font-size: 15px; }
.review-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grigio-testo); }

.product-title { font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--blu-scuro); margin: 8px 0 10px; }

.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-compare { text-decoration: line-through; color: #1e1f24; font-weight: 700; font-size: 20px; }
.price-now { color: var(--blu); font-weight: 800; font-size: 22px; }
.badge-sale { background: #1e1f24; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; }
.price-saving { color: var(--arancio); font-size: 15px; margin: 4px 0 18px; font-weight: 600; }

.opt-label { font-size: 14px; font-weight: 700; margin: 0 0 8px; text-transform: none; }
.opt-label span { font-weight: 800; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.swatches { display: flex; gap: 10px; margin: 0 0 18px; }
.swatch { padding: 0; width: 48px; height: 48px; border-radius: 999px; border: 2px solid #ddd; background: none; cursor: pointer; overflow: hidden; }
.swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.swatch.is-active { border-color: var(--blu); box-shadow: 0 0 0 2px rgba(44,157,223,.25); }

.sizes { display: flex; gap: 10px; margin: 0 0 18px; }
.size-pill {
    min-width: 56px; height: 40px; border-radius: 6px; border: 1px solid #cfcfcf;
    background: #fff; font-size: 15px; font-weight: 700; color: #1e1f24; cursor: pointer;
}
.size-pill.is-active { background: var(--blu); border-color: var(--blu); color: #fff; }

.qty-label { font-size: 14px; margin: 0 0 6px; color: #1e1f24; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.qty-box button { width: 40px; height: 42px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: #1e1f24; }
.qty-box span { min-width: 44px; text-align: center; font-weight: 700; }

.btn-atc {
    width: 100%; border: 0; border-radius: 6px; background: var(--arancio); color: #fff;
    font-size: clamp(15px, 4.4vw, 19px); font-weight: 800; letter-spacing: .02em;
    height: 56px; cursor: pointer; white-space: nowrap; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-atc[aria-disabled="true"] { opacity: .75; }

.usp { list-style: none; margin: 16px 0 0; padding: 0; }
.usp li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; margin-bottom: 7px; }
.usp .tick { color: #2fae60; font-weight: 900; flex: 0 0 auto; }
.usp b { color: var(--blu); font-weight: 800; }

/* Accordion */
.acc { border-top: 1px solid #e6e6e6; margin-top: 20px; }
.acc__btn {
    width: 100%; background: none; border: 0; padding: 16px 0; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--blu-scuro); text-align: left;
}
.acc__btn::after { content: "⌄"; font-size: 20px; line-height: 1; }
.acc__btn[aria-expanded="true"]::after { content: "⌃"; }
.acc__panel { padding-bottom: 16px; font-size: 15px; }
.acc__panel p { margin: 0 0 12px; }

/* ── PDP: blocchi contenuto ──────────────────────────────── */
.section { padding: 40px 0; }
.section--blue { background: var(--blu-bg); }

.benefits-title { text-align: center; font-size: 26px; font-weight: 800; color: var(--blu-scuro); margin: 0 0 6px; }
.benefits-sub { text-align: center; font-style: italic; font-size: 20px; color: var(--blu-scuro); margin: 0 0 28px; }

.benefit { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.benefit__icon { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 8px; background: #dceefb; padding: 10px; }
.benefit__icon img { width: 100%; height: 100%; object-fit: contain; }
.benefit h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: #1e1f24; }
.benefit p { margin: 0; font-size: 15px; }
@media (min-width: 900px) { .benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; } }

.copy-block { text-align: center; max-width: 660px; margin: 0 auto; }
.copy-block p { margin: 0 0 18px; }
.full-img { width: 100%; border-radius: 10px; margin: 0 0 26px; }

.featured-in { text-align: center; padding: 28px 0; }
.featured-in h2 { font-size: 13px; letter-spacing: .18em; font-weight: 800; color: #1e1f24; margin: 0 0 14px; }
.featured-in .desktop-only { display: none; }
@media (min-width: 750px) {
    .featured-in .mobile-only { display: none; }
    .featured-in .desktop-only { display: block; }
}

/* Garanzia */
.guarantee { text-align: center; }
.guarantee img { width: 170px; margin: 0 auto 14px; }
.guarantee h2 { font-size: 26px; font-weight: 800; color: var(--blu-scuro); margin: 0 0 16px; }
.guarantee h2 em { font-style: italic; }
.guarantee h2 span { color: var(--blu); }
.guarantee p { max-width: 560px; margin: 0 auto 14px; }
.guarantee b { color: var(--blu); }

/* Recensioni */
.reviews-title { text-align: center; font-size: 24px; font-weight: 800; color: var(--blu-scuro); margin: 0 0 22px; }
.reviews-track { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.review-card {
    flex: 0 0 84%; max-width: 320px; scroll-snap-align: start;
    background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 16px;
}
@media (min-width: 900px) { .review-card { flex: 0 0 32%; } }
.review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.review-card__name { font-weight: 800; font-size: 15px; }
.review-card p { font-size: 14px; margin: 0 0 10px; }
.review-card__verified { font-size: 13px; color: #2fae60; font-weight: 700; }

/* FAQ */
.faq-title { text-align: center; font-size: 24px; font-weight: 800; color: var(--blu-scuro); margin: 0 0 20px; }
.faq-item { background: var(--blu-chiaro); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-item__btn {
    width: 100%; background: none; border: 0; padding: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 16px; font-weight: 800; color: var(--blu-scuro); text-align: left;
}
.faq-item__btn::after { content: "+"; color: var(--arancio); font-size: 24px; line-height: 1; font-weight: 700; }
.faq-item__btn[aria-expanded="true"]::after { content: "–"; }
.faq-item__panel { padding: 0 16px 16px; font-size: 15px; }

/* Avviso scorte */
.stock-notice { text-align: center; font-size: 14px; color: #1e1f24; max-width: 520px; margin: 0 auto; padding: 26px 0 40px; }
.stock-notice b { display: block; margin-bottom: 4px; }

/* Sticky add to cart */
.sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid #e2e2e2; padding: 8px 12px 10px;
    box-shadow: 0 -3px 12px rgba(0,0,0,.08);
    transform: translateY(110%); transition: transform .18s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__row { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.sticky-bar select { flex: 1 1 auto; min-width: 0; height: 38px; border: 1px solid #cfcfcf; border-radius: 6px; padding: 0 8px; font-size: 13px; background: #fff; }
.sticky-bar .qty-box { margin: 0; }
.sticky-bar .qty-box button { width: 34px; height: 36px; }
.sticky-bar .qty-box span { min-width: 34px; }
.sticky-bar .btn-atc { height: 48px; }
@media (min-width: 900px) { .sticky-bar { max-width: 520px; left: auto; right: 18px; bottom: 18px; border-radius: 10px; border: 1px solid #e2e2e2; } }

/* ── Carrello ────────────────────────────────────────────── */
.cart-title { text-align: center; font-size: 30px; font-weight: 800; color: var(--blu-scuro); margin: 26px 0 6px; }
.cart-continue { display: block; text-align: center; margin-bottom: 18px; }

.cart-notice {
    background: var(--cart-notice-bg); color: #000; border-radius: 6px;
    padding: 12px 14px; margin: 10px 0; text-align: center;
}
.cart-notice p { margin: 0; }
.cart-notice__primary { font-weight: 800; font-size: 15px; }
.cart-notice__secondary { font-size: 15px; margin-top: 3px !important; }
.cart-notice__timer { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-notice__timer.is-urgent { color: #c62828; }

.cart-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; color: var(--grigio-testo); border-bottom: 1px solid #e6e6e6; padding: 16px 0 8px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.cart-line__img img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.cart-line__title { font-weight: 700; margin: 0 0 4px; font-size: 15px; }
.cart-line__opt { margin: 0; font-size: 14px; color: var(--grigio-testo); }
.cart-line__remove { background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; font-size: 14px; color: #1e1f24; }
.cart-line__qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-line__qty-label { font-size: 13px; color: var(--grigio-testo); margin-right: 4px; }
.cart-line__qty button { width: 30px; height: 30px; border: 1px solid #cfcfcf; background: #fff; border-radius: 4px; cursor: pointer; }
.cart-line__qty-n { min-width: 22px; text-align: center; font-weight: 700; }
.cart-line__price { font-weight: 700; white-space: nowrap; }

.cart-summary { text-align: center; padding: 22px 0 40px; }
.cart-subtotal { font-size: 18px; margin: 0 0 6px; }
.cart-subtotal span { font-weight: 800; }
.cart-freeship { font-size: 14px; color: #1e1f24; margin: 0 0 16px; }
.btn-checkout {
    width: 100%; max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
    height: 54px; border: 0; border-radius: 6px; background: #4a9ad4; color: #fff;
    font-size: clamp(15px, 4.4vw, 18px); font-weight: 800; letter-spacing: .06em;
    cursor: pointer; white-space: nowrap;
}
.btn-checkout[aria-disabled="true"] { opacity: .75; }
.cart-empty { text-align: center; padding: 40px 0 60px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #f7f7f7; padding: 34px 0; text-align: center; font-size: 14px; margin-top: 20px; }
.site-footer img { width: 210px; margin: 0 auto 14px; }
.site-footer p { margin: 0 0 8px; }
.footer-legal-links a { display: inline-block; margin: 0 8px 6px; color: #1e1f24; }
.site-footer .legal { color: var(--grigio-testo); font-size: 12px; margin-top: 14px; }
