/* ========================================
   HOME.CSS - Homepage B2B
   Hero composto + blocco stagionale
   Mobile-first, scoped su body.home
   ======================================== */

body.home {
    overflow-x: hidden;
    background: #f4f7fb;
}

body.home .home-wrap,
body.home .main-container {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: hidden;
}

body.home .content {
    padding: 0;
    min-width: 0;
}

body.home .home-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

body.home .home-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

body.home .home-section-head {
    margin-bottom: 16px;
}

body.home .home-section-head--compact {
    margin-bottom: 10px;
}

body.home .home-section-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.home .home-section-head h2,
body.home .titolo-promozioni,
body.home .titolo-categorie {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #102a43;
    text-align: left;
}

body.home .home-section-head__row a {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

body.home .home-section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

body.home .home-carousel-nav {
    display: flex;
    gap: 6px;
}

body.home .home-section-sub {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5b6b7c;
}

/* HERO COMPOSTO — testi + foto */
body.home .home-hero {
    background: #f7f5f1;
    padding: 28px 0 24px;
}

body.home .home-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.home .home-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #102a43;
    letter-spacing: -0.02em;
}

body.home .home-hero-lead {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.55;
    color: #5b6b7c;
    max-width: 38em;
}

body.home .home-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.home .home-hero .home-btn--primary {
    background: var(--primary);
    color: #fff;
}

body.home .home-hero .home-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

body.home .home-hero-media {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #e8e4dc;
    min-height: 220px;
}

body.home .home-hero-media img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
}

/* TRUST BAR */
body.home .home-trust {
    background: linear-gradient(160deg, #0057A0 0%, #003e73 100%);
    border-bottom: none;
    padding: 16px 0;
    box-shadow: 0 8px 22px rgba(0, 87, 160, 0.18);
}

body.home .home-trust .home-inner {
    max-width: none;
    padding: 0 16px;
}

body.home .home-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.home .home-trust-grid li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
}

body.home .home-trust-grid i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 15px;
}

body.home .home-trust-grid strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    color: #fff;
}

body.home .home-trust-grid span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

/* CHIPS */
body.home .home-chips-section {
    padding: 22px 0 8px;
}

body.home .catalog-chips-wrap {
    position: relative;
}

body.home .catalog-chips-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(244, 247, 251, 0), #f4f7fb);
}

body.home .catalog-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 14px;
    list-style: none;
    margin: 0;
}

body.home .catalog-chips li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

body.home .catalog-chips::-webkit-scrollbar {
    display: none;
}

body.home .catalog-chips a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7e3f0;
    color: #1d3557;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
}

body.home .catalog-chips a:active {
    background: #e8f1fb;
    border-color: var(--primary);
    color: var(--primary);
}

/* BLOCCO STAGIONALE — foto + testi admin */
body.home .home-seasonal {
    padding: 18px 0 36px;
}

body.home .home-seasonal-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}

body.home .home-seasonal-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

body.home .home-seasonal-media {
    width: 100%;
    background: #e8e4dc;
    min-height: 200px;
}

body.home .home-seasonal-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

body.home .home-seasonal-copy {
    padding: 22px 18px 24px;
    background: #fff;
    background: color-mix(in srgb, var(--seasonal-accent, #0057A0) 9%, #fff);
}

body.home .home-seasonal-copy .home-kicker {
    color: var(--seasonal-accent, var(--primary));
}

body.home .home-seasonal-copy h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #102a43;
    letter-spacing: -0.02em;
}

body.home .home-seasonal-lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #5b6b7c;
}

body.home .home-seasonal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.home .home-seasonal .home-btn--primary {
    background: var(--seasonal-accent, var(--primary));
    color: #fff;
}

body.home .home-seasonal-fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

body.home .home-seasonal-fx-item {
    position: absolute;
    top: -80px;
    color: var(--seasonal-accent, #0057A0);
    opacity: 0.4;
    line-height: 1;
    user-select: none;
    filter: drop-shadow(0 1px 1px rgba(16, 42, 67, 0.18));
    animation-fill-mode: both;
    will-change: transform, opacity;
}

body.home .home-seasonal--fx-neve .home-seasonal-fx-item,
body.home .home-seasonal--fx-natale .home-seasonal-fx-item {
    animation-name: seasonal-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

body.home .home-seasonal--fx-teschi .home-seasonal-fx-item {
    animation-name: seasonal-spin-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

body.home .home-seasonal--fx-cuori .home-seasonal-fx-item {
    animation-name: seasonal-sway-fall;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

body.home .home-seasonal--fx-sole .home-seasonal-fx-item {
    top: auto;
    animation-name: seasonal-glow;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

body.home .home-seasonal--fx-sole .home-seasonal-fx-item:nth-child(odd) { bottom: 12%; }
body.home .home-seasonal--fx-sole .home-seasonal-fx-item:nth-child(even) { bottom: 38%; }
body.home .home-seasonal--fx-sole .home-seasonal-fx-item:nth-child(3n) { bottom: 62%; }

@keyframes seasonal-fall {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    8% { opacity: 0.45; }
    88% { opacity: 0.38; }
    100% { transform: translate3d(18px, 620px, 0); opacity: 0; }
}

@keyframes seasonal-spin-fall {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    8% { opacity: 0.48; }
    88% { opacity: 0.4; }
    100% { transform: translate3d(-22px, 620px, 0) rotate(540deg); opacity: 0; }
}

@keyframes seasonal-sway-fall {
    0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
    10% { opacity: 0.46; }
    50% { transform: translate3d(22px, 310px, 0) scale(1.08); opacity: 0.4; }
    100% { transform: translate3d(-12px, 620px, 0) scale(0.95); opacity: 0; }
}

@keyframes seasonal-glow {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.22; }
    50% { transform: translateY(-14px) scale(1.22) rotate(14deg); opacity: 0.48; }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-seasonal-fx-item {
        animation: none !important;
        top: 14%;
        opacity: 0.32;
        transform: none;
        filter: none;
    }

    body.home .home-seasonal-fx-item:nth-child(3n) { top: 36%; }
    body.home .home-seasonal-fx-item:nth-child(3n + 1) { top: 58%; }
    body.home .home-seasonal-fx-item:nth-child(3n + 2) { top: 78%; }

    body.home .home-seasonal--fx-sole .home-seasonal-fx-item {
        top: auto;
    }
}

/* CAROUSEL PRODOTTI */
body.home .promozioni {
    margin: 12px 0 8px;
    padding: 0;
}

body.home .home-carousel-shell {
    position: relative;
}

body.home .home-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d7e3f0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(16, 42, 67, 0.06);
    cursor: pointer;
    padding: 0;
}

body.home .home-carousel-btn:hover,
body.home .home-carousel-btn:active {
    background: #e8f1fb;
    border-color: var(--primary);
}

body.home .promo-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-gutter: auto;
}

body.home .promo-carousel::-webkit-scrollbar {
    display: none;
    height: 0;
}

body.home .carousel-track {
    gap: 12px;
}

body.home .carousel-track .product-card {
    scroll-snap-align: start;
    width: calc(50vw - 22px);
    min-width: 148px;
}

body.home .promozioni .carousel-track .product-card .product-image {
    aspect-ratio: 4 / 3;
}

/* RECENSIONI */
body.home .home-reviews {
    padding-top: 12px;
    padding-bottom: 8px;
}

body.home .reviews-section,
body.home .content .reviews-section {
    margin: 16px 0;
    padding: 0;
}

/* CTA */
body.home .home-cta {
    padding: 12px 0 8px;
}

body.home .home-cta .home-inner {
    background: linear-gradient(160deg, #0057A0 0%, #003e73 100%);
    color: #fff;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 10px 28px rgba(0, 87, 160, 0.22);
}

body.home .home-cta .home-kicker {
    color: rgba(255, 255, 255, 0.75);
}

body.home .home-cta h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
    color: #fff;
}

body.home .home-cta p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

body.home .home-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.home .home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

body.home .home-btn--primary {
    background: #fff;
    color: var(--primary);
}

body.home .home-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

/* STORY EDITORIALE */
body.home .home-story {
    padding: 36px 0;
    background: #f7f5f1;
}

body.home .home-story-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.home .home-story h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #102a43;
    max-width: 14ch;
}

body.home .home-story-copy p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6b7c;
}

body.home .home-story-copy p:last-child {
    margin-bottom: 0;
}

body.home .home-story--accent {
    background: linear-gradient(160deg, #0057A0 0%, #003e73 100%);
}

body.home .home-story--accent h2,
body.home .home-story--accent .home-kicker,
body.home .home-story--accent .home-story-copy p {
    color: #fff;
}

body.home .home-story--accent .home-kicker {
    color: rgba(255, 255, 255, 0.75);
}

body.home .home-story--accent .home-story-copy p {
    color: rgba(255, 255, 255, 0.9);
}

body.home .home-story-actions {
    margin-top: 18px;
}

body.home .home-story--accent .home-btn--primary {
    background: #fff;
    color: var(--primary);
    max-width: 280px;
}

/* COME FUNZIONA — 3 CARD */
body.home .home-steps {
    padding: 28px 0 8px;
}

body.home .home-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.home .home-step {
    border-radius: 18px;
    padding: 24px 22px 26px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.home .home-step-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    opacity: 0.7;
}

body.home .home-step h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    color: inherit;
}

body.home .home-step p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}

body.home .home-step a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.home .home-step--cream {
    background: #e8e4dc;
    color: #102a43;
}

body.home .home-step--cream p {
    color: #5b6b7c;
}

body.home .home-step--cream a {
    color: var(--primary);
}

body.home .home-step--brand {
    background: var(--primary);
    color: #fff;
}

body.home .home-step--brand p,
body.home .home-step--brand a {
    color: rgba(255, 255, 255, 0.92);
}

body.home .home-step--dark {
    background: #003e73;
    color: #fff;
}

body.home .home-step--dark p,
body.home .home-step--dark a {
    color: rgba(255, 255, 255, 0.92);
}

/* FAQ */
body.home .home-faq {
    padding: 28px 0 16px;
}

body.home .home-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.home .home-faq-intro h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.2;
    color: #102a43;
}

body.home .home-faq-intro p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #5b6b7c;
}

body.home .home-faq-list details {
    border-bottom: 1px solid #d7e3f0;
}

body.home .home-faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #102a43;
}

body.home .home-faq-list summary::-webkit-details-marker {
    display: none;
}

body.home .home-faq-list summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d7e3f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: var(--primary);
}

body.home .home-faq-list details[open] summary::after {
    content: "–";
}

body.home .home-faq-list details p {
    margin: 0 0 16px;
    padding-right: 36px;
    font-size: 14px;
    line-height: 1.55;
    color: #5b6b7c;
}

@media (max-width: 768px) {
    body.home .home-faq {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    body.home .main-footer {
        margin-top: 12px;
    }
}

/* TABLET */
@media (min-width: 768px) {
    body.home .home-inner {
        padding: 0 24px;
    }

    body.home .home-section-head h2 {
        font-size: 26px;
    }

    body.home .home-hero {
        padding: 40px 0 28px;
    }

    body.home .home-hero-copy h1 {
        font-size: 40px;
    }

    body.home .home-hero-actions {
        flex-direction: row;
        align-items: center;
    }

    body.home .home-hero-media img {
        height: 320px;
    }

    body.home .home-trust {
        padding: 18px 0;
    }

    body.home .home-trust .home-inner {
        padding: 0 40px;
    }

    body.home .home-trust-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        grid-template-columns: none;
    }

    body.home .home-trust-grid li {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        align-items: center;
        gap: 12px;
        min-height: 48px;
    }

    body.home .home-seasonal-media img {
        height: 300px;
    }

    body.home .home-seasonal-copy {
        padding: 28px 28px 32px;
    }

    body.home .home-seasonal-copy h2 {
        font-size: 32px;
    }

    body.home .home-seasonal-actions {
        flex-direction: row;
        align-items: center;
    }

    body.home .home-seasonal {
        padding-bottom: 44px;
    }

    body.home .carousel-track .product-card {
        width: 220px;
    }

    body.home .home-cta .home-inner {
        padding: 32px 36px;
    }

    body.home .home-cta h2 {
        font-size: 28px;
        max-width: 22em;
    }

    body.home .home-cta-actions {
        flex-direction: row;
        align-items: center;
    }

    body.home .home-btn {
        min-width: 180px;
    }

    body.home .home-story {
        padding: 48px 0;
    }

    body.home .home-story h2 {
        font-size: 38px;
    }

    body.home .home-steps-grid {
        grid-template-columns: 1fr;
    }

    body.home .home-faq-intro h2 {
        font-size: 32px;
    }
}

/* DESKTOP */
@media (min-width: 993px) {
    body.home .home-hero {
        padding: 48px 0 36px;
    }

    body.home .home-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 48px;
        align-items: center;
    }

    body.home .home-hero-copy h1 {
        font-size: 48px;
        max-width: 12ch;
    }

    body.home .home-hero-media {
        min-height: 420px;
    }

    body.home .home-hero-media img {
        height: 460px;
    }

    body.home .home-chips-section,
    body.home .home-seasonal {
        padding-top: 28px;
    }

    body.home .home-seasonal {
        padding-bottom: 52px;
    }

    body.home .home-seasonal-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
    }

    body.home .home-seasonal-media {
        min-height: 420px;
    }

    body.home .home-seasonal-media img {
        height: 100%;
        min-height: 420px;
    }

    body.home .home-seasonal-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 44px;
    }

    body.home .home-seasonal-copy h2 {
        font-size: 36px;
        max-width: 14ch;
    }

    body.home .promozioni {
        margin: 20px 0;
    }

    body.home .home-carousel-btn {
        width: 38px;
        height: 38px;
    }

    body.home .promo-carousel {
        padding: 4px 8px 16px;
    }

    body.home .carousel-track .product-card {
        width: 240px;
    }

    body.home .catalog-chips a:hover {
        background: #e8f1fb;
        border-color: var(--primary);
        color: var(--primary);
    }

    body.home .home-story-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 48px;
        align-items: start;
    }

    body.home .home-story h2 {
        font-size: 48px;
        max-width: 12ch;
    }

    body.home .home-story-copy {
        padding-top: 8px;
    }

    body.home .home-steps {
        padding-top: 36px;
    }

    body.home .home-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: stretch;
    }

    body.home .home-step {
        padding: 32px 28px 36px;
        min-height: 340px;
    }

    body.home .home-step h3 {
        font-size: 24px;
        max-width: 12ch;
    }

    body.home .home-faq {
        padding: 48px 0 40px;
    }

    body.home .home-faq-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 48px;
        align-items: start;
    }

    body.home .home-faq-intro h2 {
        font-size: 40px;
        max-width: 12ch;
    }
}

@media (max-width: 480px) {
    body.home .home-trust-grid strong {
        font-size: 12px;
    }

    body.home .home-trust-grid span {
        font-size: 11px;
    }

    body.home .home-seasonal-copy h2 {
        font-size: 22px;
    }

    body.home .home-cta h2 {
        font-size: 20px;
    }

    body.home .home-hero-copy h1 {
        font-size: 28px;
    }

    body.home .home-carousel .home-section-actions > a {
        display: none;
    }
}
