/* G3Ferrari homepage. The original Delizia film leads the product story. */
.g3-home-shell {
    width: min(100% - var(--g3-gutter) * 2, var(--g3-max));
    margin-inline: auto;
}
.g3-home-hero {
    --g3-cinema: #211b19;
    --g3-cinema-text: #fff9f3;
    --g3-cinema-muted: #e0d1c5;
    --g3-cinema-focus: #ff9aa1;
    background: var(--g3-cinema);
    color: var(--g3-cinema-text);
}
.g3-home-hero :focus-visible { outline-color: var(--g3-cinema-focus); }
.g3-home-hero__layout {
    display: grid;
    grid-template-columns: minmax(278px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(2.25rem, 5vw, 5.75rem);
    min-height: min(36rem, calc(100svh - 7rem));
    padding-block: clamp(2.5rem, 5vw, 4.75rem);
}
.g3-home-hero__copy { min-width: 0; }
.g3-home-hero__title {
    max-width: 16ch;
    margin: 0 0 1rem;
    color: var(--g3-cinema-text);
    font-size: clamp(2rem, 3.65vw, 3.45rem);
    font-weight: 625;
    letter-spacing: -.038em;
    line-height: 1.13;
    text-wrap: balance;
}
.g3-home-hero__description {
    max-width: 42ch;
    margin: 0 0 1.75rem;
    color: var(--g3-cinema-muted);
    font-size: clamp(.95rem, 1.3vw, 1.075rem);
    line-height: 1.72;
}
.g3-home-hero__action, .g3-home-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--g3-radius);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    touch-action: manipulation;
}
.g3-home-hero__action, .g3-home-link:hover { background: var(--g3-action); color: var(--g3-on-action); text-decoration: none; }
.g3-home-hero__action:hover { background: var(--g3-action-hover); color: var(--g3-on-action); text-decoration: none; }
.g3-home-link { border-color: var(--g3-control-line); color: inherit; margin-top: 1rem; }
.g3-home-link:hover { border-color: var(--g3-action); }

.g3-home-film { min-width: 0; margin: 0; }
.g3-home-film__player { position: relative; aspect-ratio: 16 / 9; background: var(--g3-cinema); }
.g3-home-film video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--g3-radius);
}
.g3-home-film__play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: clamp(3.35rem, 5vw, 4.65rem);
    aspect-ratio: 1;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid var(--g3-cinema-text);
    border-radius: 50%;
    background: var(--g3-cinema);
    color: var(--g3-cinema-text);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    cursor: pointer;
    touch-action: manipulation;
}
.g3-home-film__play[hidden] { display: none; }
.g3-home-film__play:hover { background: var(--g3-action); }
.g3-home-film__caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block-start: .85rem;
    color: var(--g3-cinema-muted);
    font-size: .8125rem;
    font-weight: 600;
}
.g3-home-film__caption span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

.g3-home-collections, .g3-home-delizia, .g3-home-offers { padding-block: var(--g3-section-gap); }
.g3-home-collections h2, .g3-home-delizia h2, .g3-home-offers h2 {
    margin: 0 0 .85rem;
    color: var(--g3-ink);
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -.032em;
    line-height: 1.18;
    text-wrap: balance;
}
.g3-home-collections p, .g3-home-delizia p, .g3-home-offers p {
    max-width: 53ch;
    margin: 0;
    color: var(--g3-muted);
    line-height: 1.7;
}
.g3-home-collections__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: end;
    gap: .85rem 3rem;
    margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}
.g3-home-collections__heading h2 { margin: 0; max-width: 18ch; }
.g3-home-collections__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.g3-home-collection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    align-items: center;
    min-height: clamp(15rem, 26vw, 21rem);
    border-radius: var(--g3-radius);
    overflow: clip;
    background: #fff;
}
.g3-home-collection--kitchen { --g3-collection-surface: #ede6d9; --g3-collection-ink: #34291e; }
.g3-home-collection--care { --g3-collection-surface: #f0dfda; --g3-collection-ink: #482d2b; }
.g3-home-collection__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: clamp(1.15rem, 3vw, 2.75rem);
    background: var(--g3-collection-surface);
    color: var(--g3-collection-ink);
}
.g3-home-collection h3 {
    margin-bottom: .75rem;
    color: inherit;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.14;
}
.g3-home-collection p { color: inherit; font-size: .9rem; }
.g3-home-collection img, .g3-home-delizia__photo img { display: block; width: 100%; height: auto; }
.g3-home-collection img { padding: .5rem; }
.g3-home-collection .g3-home-link:focus-visible { outline-color: var(--g3-action); }
.g3-home-delizia { background: var(--g3-surface); }
.g3-home-delizia__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(1.5rem, 6vw, 6rem);
}
.g3-home-delizia__photo { margin: 0; border-radius: var(--g3-radius); background: #fff; }
.g3-home-delizia__photo img { max-width: 30rem; margin-inline: auto; }
.g3-home-delizia__copy h2 { max-width: 16ch; }
.g3-home-delizia__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem 1rem;
    margin: 1.6rem 0 .5rem;
    padding-block: 1rem;
    border-top: 1px solid var(--g3-line);
}
.g3-home-delizia__specs dt { color: var(--g3-muted); font-weight: 530; font-size: .75rem; }
.g3-home-delizia__specs dd {
    margin: .22rem 0 0;
    color: var(--g3-ink);
    font-size: clamp(1.03rem, 2vw, 1.6rem);
    font-weight: 710;
    font-variant-numeric: tabular-nums;
}
.g3-home-offers { padding-block-start: 0; }
.g3-home-offers__layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 3.75rem);
    border-radius: var(--g3-radius);
    background: var(--g3-wash);
}
.g3-home-offers h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
.g3-home-offers__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.g3-home-offers__links .g3-home-link { margin: 0; background: var(--g3-surface); }
.g3-home-offers__links .g3-home-link:hover { background: var(--g3-action); }

.g3-home-product-block { padding-block: clamp(2.4rem, 6vw, 5.25rem); }
.g3-home-product-block + .g3-home-product-block { padding-top: 0; }
.g3-home-product-block .g3-product-section__header { border-color: var(--g3-line); margin-bottom: clamp(1rem, 2.4vw, 1.75rem); }
.g3-home-product-block .g3-product-section__title { color: var(--g3-ink); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 650; letter-spacing: -.032em; }
.g3-home-product-block .g3-carousel-controls { gap: .35rem; padding: 0; border: 0; background: none; }
.g3-home-product-block .g3-carousel-control {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--g3-line);
    border-radius: var(--g3-radius);
    background: var(--g3-surface);
    box-shadow: none;
    color: var(--g3-ink);
}
.g3-home-product-block .g3-carousel-control:hover:not(:disabled):not(.swiper-button-disabled) { border-color: var(--g3-red); background: var(--g3-wash); color: var(--g3-red); }
.g3-home-product-block:has(.swiper:not(.swiper-initialized)) .g3-carousel-controls { visibility: hidden; }
.g3-home-product-block .swiper:not(.swiper-initialized) .swiper-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }

@media (max-width: 61.99rem) {
    .g3-home-hero__layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 1.5rem; }
    .g3-home-collection { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .g3-home-collection img { width: min(78%, 230px); margin-inline: auto; }
}
@media (max-width: 47.99rem) {
    .g3-home-hero__layout, .g3-home-collections__heading, .g3-home-delizia__layout { grid-template-columns: minmax(0, 1fr); }
    .g3-home-hero__layout { min-height: 0; padding-block: 2rem 1.6rem; }
    .g3-home-hero__title { margin-bottom: .75rem; font-size: clamp(1.9rem, 6.7vw, 2.6rem); }
    .g3-home-hero__description { margin-bottom: 1.2rem; }
    .g3-home-delizia__photo { max-width: 26rem; width: 100%; justify-self: center; }
}
@media (max-width: 32rem) {
    .g3-home-collections__grid { grid-template-columns: minmax(0, 1fr); }
    .g3-home-collection { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
    .g3-home-collection img { width: 100%; }
    .g3-home-delizia__specs { column-gap: .4rem; }
}
