﻿/* =========================
   HOME BANNER GRANDI
========================= */
.home-hero {
    position: relative;
    overflow: hidden;
}

.home-hero__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .home-hero__slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .home-hero__slide a {
        display: block;
        width: 100%;
        height: 100%;
    }

.home-hero__picture,
.home-hero__img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero__img {
    object-fit: cover;
    object-position: center;
}

/* Overlay eventuale */
.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Contenuto eventuale sopra al banner */
.home-hero__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
    max-width: 100%;
}

.home-hero__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.15;
}

.home-hero__subtitle {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
}

/* Frecce */
.home-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

    .home-hero__nav:hover {
        background: rgba(0, 0, 0, 0.5);
    }

.home-hero__nav--prev {
    left: 12px;
}

.home-hero__nav--next {
    right: 12px;
}

/* Dots */
.home-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
}

.home-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .home-hero__dot.is-active {
        background: #fff;
        transform: scale(1.15);
    }

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-hero__slider {
        aspect-ratio: 2 / 1;
    }

    .home-hero__content {
        left: 32px;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        max-width: 420px;
    }

    .home-hero__title {
        margin-bottom: 12px;
        font-size: 2.1rem;
    }

    .home-hero__subtitle {
        margin-bottom: 18px;
        font-size: 1.05rem;
    }

    .home-hero__cta {
        min-height: 46px;
        padding: 0 18px;
        font-size: 1rem;
    }

    .home-hero__nav {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .home-hero__nav--prev {
        left: 16px;
    }

    .home-hero__nav--next {
        right: 16px;
    }

    .home-hero__dots {
        bottom: 16px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
    .home-hero__slider {
        aspect-ratio: 2 / 1;
        max-height: 720px;
    }

    .home-hero__content {
        left: 64px;
        max-width: 500px;
    }

    .home-hero__title {
        font-size: 2.8rem;
        margin-bottom: 16px;
    }

    .home-hero__subtitle {
        font-size: 1.125rem;
        margin-bottom: 24px;
    }

    .home-hero__cta {
        min-height: 48px;
        padding: 0 22px;
    }

    .home-hero__nav {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .home-hero__nav--prev {
        left: 20px;
    }

    .home-hero__nav--next {
        right: 20px;
    }

    .home-hero__dots {
        bottom: 20px;
    }
}
/* =========================
   HOME SMALL BANNERS
========================= */
.home-small-banners {
    margin-top: 32px;
    padding-left: 16px;
    padding-right: 16px;
}

.home-small-banners__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.home-small-banners__item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-small-banners__picture {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #f6f6f6;
}

.home-small-banners__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.25s ease;
}

.home-small-banners__title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.home-small-banners__item.is-hidden {
    display: none;
}

.home-small-banners__actions {
    margin-top: 24px;
    text-align: center;
}

.home-small-banners__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .home-small-banners__toggle:hover {
        background: #f8f8f8;
        border-color: #cfcfcf;
    }

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-small-banners {
        margin-top: 40px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-small-banners__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 16px;
    }

    .home-small-banners__title {
        margin-top: 12px;
        font-size: 15px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
    .home-small-banners {
        margin-top: 40px;
        padding-left: 0;
        padding-right: 0;
    }

    .home-small-banners__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .home-small-banners__item:hover .home-small-banners__img {
        transform: scale(1.03);
    }
}
/* =========================
   HOME PRODUCTS SECTION
========================= */
.home-products-section {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid #ddd;
    padding-left: 16px;
    padding-right: 16px;
}

.home-section-head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.home-section-title {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.home-section-subtitle {
    margin: 8px 0 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.home-products-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.home-products-tab {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

    .home-products-tab:hover {
        border-color: #bbb;
    }

    .home-products-tab.is-active {
        background: #111;
        color: #fff;
        border-color: #111;
    }

.home-products-content {
    position: relative;
}

.home-products-panel {
    display: none;
}

    .home-products-panel.is-active {
        display: block;
    }

.home-products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.home-products-error {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fafafa;
    color: #444;
}

.home-products-section .modellist {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-products-section {
        margin-top: 48px;
        padding-top: 30px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-section-head {
        margin-bottom: 22px;
    }

    .home-section-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .home-section-subtitle {
        font-size: 0.98rem;
    }

    .home-products-tabs {
        gap: 10px;
        margin-bottom: 24px;
    }

    .home-products-tab {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
    .home-products-section {
        margin-top: 26px;
        padding-top: 26px;
        padding-left: 0;
        padding-right: 0;
    }

    .home-section-head {
        align-items: end;
        gap: 20px;
        margin-bottom: 22px;
    }

    .home-section-title {
        font-size: 2.3rem;
        letter-spacing: 6px;
    }

    .home-products-panel > .modellist {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* =========================
   HOME SELECTED PRODUCTS
========================= */
.home-selected-products {
    margin-top: 50px;
}

.home-selected-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* card base */
.home-selected-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-selected-card--featured {
    background: #f7f2f5;
}

.home-selected-card--small {
    background: #f2f7f7;
}

.home-selected-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

    .home-selected-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        mix-blend-mode: multiply;
        transition: transform 0.45s ease, opacity 0.28s ease;
    }

    .home-selected-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.06);
        pointer-events: none;
        transition: background 0.28s ease;
    }

.home-selected-card--featured .home-selected-card__media {
    aspect-ratio: 16 / 10;
}

.home-selected-card--small .home-selected-card__media {
    aspect-ratio: 1 / 1;
}

.home-selected-card__content {
    padding-top: 14px;
}

.home-selected-card__brand {
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #777;
}

.home-selected-card__title a,
.home-selected-card__small-title a {
    color: inherit;
    text-decoration: none;
}

.home-selected-card__small-title {
    text-align: center;
}

    .home-selected-card__small-title a {
        font-size: 1.05rem;
        line-height: 1.35;
    }

.home-selected-card__price {
    margin-top: 10px;
    margin-bottom: 14px;
}

.home-selected-card__small-price {
    margin-top: 6px;
}

.home-selected-card__top-info {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: none;
    pointer-events: none;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-selected-products {
        margin-top: 60px;
    }

    .home-selected-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .home-selected-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

        .home-selected-card--featured .home-selected-card__media {
            aspect-ratio: 16 / 10;
        }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1101px) {
    .home-selected-products {
        margin-top: 70px;
    }

    .home-selected-products__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .home-selected-card--featured {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }

        .home-selected-card--featured .home-selected-card__media {
            aspect-ratio: 1 / 1;
        }

    .home-selected-card__top-info {
        opacity: 0;
        transform: translateY(-8px);
        transition: all 0.25s ease;
        top: 10px;
    }

    .home-selected-card--featured:hover,
    .home-selected-card--small:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,0.08);
    }

        .home-selected-card--featured:hover .home-selected-card__media img,
        .home-selected-card--small:hover .home-selected-card__media img {
            transform: scale(1.04);
        }

        .home-selected-card--featured:hover .home-selected-card__top-info,
        .home-selected-card--small:hover .home-selected-card__top-info {
            opacity: 1;
            transform: translateY(0);
        }
}
/* =========================
   HOME BRANDS
========================= */
.home-brands-section {
    margin-top: 56px;
    padding-left: 16px;
    padding-right: 16px;
}

.home-section-head--center {
    justify-content: center;
    text-align: center;
}

.home-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.home-brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ececec;
    overflow: hidden;
}

.home-brand-card__inner {
    min-height: 92px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.home-brand-card__logo {
    display: block;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.home-brand-card__name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: #222;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-brands-section {
        margin-top: 64px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .home-brand-card__inner {
        min-height: 100px;
        padding: 16px;
    }

    .home-brand-card__logo {
        max-height: 44px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
    .home-brands-section {
        margin-top: 72px;
        padding-left: 0;
        padding-right: 0;
    }

    .home-brands-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-brand-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

        .home-brand-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
            border-color: #e2e2e2;
        }

    .home-brand-card__inner {
        min-height: 108px;
        padding: 18px;
    }

    .home-brand-card__logo {
        max-height: 46px;
    }

    .home-brand-card:hover .home-brand-card__logo {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.02);
    }
}
/* =========================
   HOME CATEGORIES
========================= */
.home-categories-section {
    margin-top: 56px;
    padding-left: 16px;
    padding-right: 16px;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
}

.home-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
}

.home-category-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f7f7f7;
}

    .home-category-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

.home-category-card__content {
    padding: 18px 18px 20px;
}

.home-category-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}

.home-category-card__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.92rem;
    color: #666;
    transition: color 0.2s ease;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-categories-section {
        margin-top: 64px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1101px) {
    .home-categories-section {
        margin-top: 72px;
        padding-left: 0;
        padding-right: 0;
    }

    .home-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-category-card {
        transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    }

        .home-category-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
            border-color: #e4e4e4;
        }

    .home-category-card__media {
        aspect-ratio: 4 / 5;
    }

    .home-category-card:hover .home-category-card__media img {
        transform: scale(1.04);
    }

    .home-category-card:hover .home-category-card__link {
        color: #111;
    }
}
/* =========================
   HOME TRUST
========================= */
.home-trust-section {
    margin-top: 56px;
    padding: 26px 16px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.home-trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.home-trust-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #222;
}

.home-trust-item__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.home-trust-item__text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #666;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-trust-section {
        margin-top: 64px;
        padding: 30px 24px;
    }

    .home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1101px) {
    .home-trust-section {
        margin-top: 72px;
        padding: 34px 0;
    }

    .home-trust-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* =========================
   HOME SHIPPING STRIP
========================= */
.home-shipping-strip {
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
}

.home-shipping-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 16px;
}

.home-shipping-strip__label {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
}

.home-shipping-strip__messages {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 22px;
}

.home-shipping-strip__message {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #555;
    pointer-events: none;
}

    .home-shipping-strip__message.is-active {
        opacity: 1;
        transform: translateY(0);
        position: relative;
    }

    .home-shipping-strip__message strong {
        font-weight: 600;
        color: #111;
    }

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
    .home-shipping-strip {
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-shipping-strip__inner {
        padding: 16px 20px;
    }

    .home-shipping-strip__messages {
        max-width: 640px;
    }

    .home-shipping-strip__message {
        font-size: 0.96rem;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
    .home-shipping-strip {
        padding-left: 0;
        padding-right: 0;
    }

    .home-shipping-strip__inner {
        padding: 16px 24px;
    }

    .home-shipping-strip__messages {
        max-width: 720px;
    }

    .home-shipping-strip__message {
        font-size: 1.2rem;
    }
}
