/* =========================================================================
   Di Deluxe - design tokens
   ========================================================================= */
:root {
    --color-black: #0b0b0a;
    --color-dark: #121110;
    --color-warm-gray: #a49d90;
    --color-warm-gray-dark: #8f887c;
    --color-cream: #f6f4f0;
    --color-white: #ffffff;
    --color-hairline: rgba(255, 255, 255, 0.14);
    --color-hairline-dark: rgba(0, 0, 0, 0.12);
    --font-heading: "Helvetica Neue", Arial, sans-serif;
    --font-body: "Helvetica Neue", Arial, sans-serif;
    --container-max: 1360px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
}

.page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 0.85em 2.4em;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--outline-dark {
    color: var(--color-black);
}

.btn--outline-dark:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn--outline-light {
    color: var(--color-white);
}

.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* =========================================================================
   Placeholder image (Components/Shared/PlaceholderImage.razor)
   ========================================================================= */
.ph-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: var(--color-warm-gray);
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.ph-image__icon {
    width: 15%;
    min-width: 34px;
    max-width: 72px;
    height: auto;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-black);
    color: #fff;
}

.site-header__bar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.3rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transition: right 0.25s ease;
}

.main-nav a:hover::after {
    right: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    height: min(78vh, 720px);
    min-height: 420px;
}

.hero__image {
    position: absolute;
    inset: 0;
    background-image: url("/image/home_banenr.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 0 1.5rem;
    color: var(--color-white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.hero__badge {
    height: clamp(28px, 5vw, 48px);
    width: auto;
    max-width: 70vw;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.hero__overlay h1 {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.hero__overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* =========================================================================
   "The feeling of exclusivity"
   ========================================================================= */
.exclusivity {
    background: var(--color-black);
    color: var(--color-white);
    padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.exclusivity__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.exclusivity h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.25rem;
}

.exclusivity p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.logo-row__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-row__item img {
/*    height: clamp(26px, 3.4vw, 40px);*/
    width: auto;
    max-width: 226px;
    object-fit: contain;
}

/* =========================================================================
   Repeating gray CTA band (Components/Shared/PlaceholderCta.razor)
   ========================================================================= */
.cta-band {
    background: var(--color-warm-gray);
    color: var(--color-white);
}

.cta-band--photo {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.cta-band__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.5));
}

.cta-band--photo .cta-band__inner {
    position: relative;
    z-index: 1;
}

.cta-band__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7rem) var(--gutter);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.cta-band__inner h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.cta-band__inner p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}

.cta-band__inner .btn {
    margin-top: 0.5rem;
}

/* =========================================================================
   "Creating Luxury Living"
   ========================================================================= */
.luxury-living {
    background: var(--color-black);
    color: var(--color-white);
    padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.luxury-living__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.luxury-living h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.25rem;
}

.luxury-living > .luxury-living__inner > p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.brand-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    text-align: left;
}

/* Each group pairs one tall portrait card with a two-up stack of landscape
   cards. The top group puts the portrait card on the left (Mariolli beside
   Legnori/Manigli); the bottom group mirrors it, portrait card on the right
   (Lummios/Marblessa beside Baualu) - so the columns swap sides top to
   bottom, which a single uniform grid can't express on its own. */
.brand-gallery__group {
    display: grid;
    gap: 0.4rem;
    align-items: stretch;
}

.brand-gallery__group--top {
    grid-template-columns: 358fr 886fr;
}

.brand-gallery__group--bottom {
    grid-template-columns: 886fr 358fr;
}

.brand-gallery__stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.brand-gallery__card {
    position: relative;
    display: block;
    overflow: hidden;
    /* 886:352 - the landscape aspect ratio of the cards inside a stack. */
    aspect-ratio: 886 / 352;
}

.brand-gallery__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.brand-gallery__card--tall {
    /* No fixed ratio - stretches (align-items: stretch) to match the height
       of its sibling stack, whatever that resolves to. */
    aspect-ratio: auto;
}

.brand-gallery__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.brand-gallery__card:hover .brand-gallery__image {
    transform: scale(1.04);
}

.brand-gallery__label {
    position: absolute;
    left: 1.5rem;
    bottom: 1.35rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.brand-gallery__label strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
}

.brand-gallery__label small {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.see-all {
    display: inline-block;
    margin-top: clamp(2rem, 5vw, 3rem);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.2rem;
}

/* =========================================================================
   "Work With Us"
   ========================================================================= */
.work-with-us {
    background: var(--color-black);
    color: var(--color-white);
    padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.work-with-us__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.work-with-us h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.work-with-us p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.work-with-us .btn {
    margin-top: 0.75rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
}

.site-footer .brand-mark--light {
    justify-content: center;
}

.site-footer__top {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
    border-bottom: 1px solid var(--color-hairline);
}

.brand-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
}

.brand-links a:hover {
    color: var(--color-white);
}

.site-footer__middle {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem var(--gutter);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--color-hairline);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.site-footer__bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom nav {
    display: flex;
    gap: 1.25rem;
}

.site-footer__bottom nav a:hover {
    color: var(--color-white);
}

.brand-mark__logo {
    height: clamp(1.75rem, 3vw, 2.25rem);
    width: auto;
    object-fit: contain;
}

/* =========================================================================
   Utility / framework hooks
   ========================================================================= */
.text-danger {
    color: #8a1f1f;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
        padding: 1.5rem var(--gutter) 2rem;
        background: var(--color-black);
        color: #fff;
        border-top: 1px solid var(--color-hairline);
        border-bottom: 1px solid var(--color-hairline);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .main-nav--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .brand-gallery__group--top,
    .brand-gallery__group--bottom {
        grid-template-columns: 1fr;
    }

    .brand-gallery__card--tall {
        aspect-ratio: 358 / 742 !important;
    }
}

@media (max-width: 900px) {
    .cta-band--photo {
        min-height: 640px;
    }
}

@media (max-width: 640px) {
    .cta-band--photo {
        min-height: 480px;
    }

    .site-footer__top,
    .site-footer__middle {
        text-align: center;
    }

    .site-footer__middle {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-social {
        justify-content: center;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__bottom nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-row {
        gap: 1.5rem 2rem;
    }

    .cta-band__inner,
    .exclusivity,
    .luxury-living,
    .work-with-us {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
