@import url('lustile.css');
:root {
    --primary-black: #181818;
    --primary-white: #f4ede9;
    --primary-color: #323030;
    --secondary-color: #434343;
    --gray-light: #f5f5f5;
    --gray-dark: #2f2f2f;
    --gray-medium: #4c4c4c;
    --red: #bd3200;
    --summary-bg: var(--primary-white);
    --summary-border: var(--primary-black);
    --summary-accent: var(--accent-soft);
    --accent-warm: #ffae00;
    --resume: #ff7524;
    --accent-warm-rgb: rgba(255, 174, 0, 0.181);
    --accent-soft: #00e1ff;
    --accent-muted: #5c5c5c;
    --accent-success: #6aff00;
    --accent-success-rgb: 106, 255, 0;
    --accent-soft-rgb: 0, 225, 255;
    --bg: #f5f5f5;
    --dark: #1a1a1a;
    --wire: #1a1a1a;
    --text-dark: #000000;
    --text-light: #fff5cb;
    --accent-warm-trans: #2a2a2878;
    --accent-cold-trans: rgba(255, 255, 255, 0.471);
    --inner-shadow-light: inset 0 100px 7px rgba(255, 255, 255, 0.146);
    --inner-shadow-dark: inset 0 4px 15px rgba(255, 255, 255, 0.15);
    --inner-gradient-light: linear-gradient(to bottom, #00e1ff5e, transparent 50%);
    --inner-gradient: linear-gradient(to left, #00e1ff5e 10%, #8400ff5e 100%, transparent 100%, transparent 100%);

    --font-fallback: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";
    --font-main: 'Moderat-Regular', var(--font-fallback);
    --font-sec: 'Oswald-light';

    --text-base-size: 0.75rem;
    --text-scale-ratio: 1.25;

    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
    --z-index-max: 9999;

    --text-xxs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio));
    --text-xs: calc(var(--text-base-size) / var(--text-scale-ratio));
    --text-sm: calc(var(--text-base-size));
    --text-md: calc(var(--text-sm) * var(--text-scale-ratio));
    --text-lg: calc(var(--text-md) * var(--text-scale-ratio));
    --text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
    --text-xxl: calc(var(--text-xl) * var(--text-scale-ratio));
    --text-xxxl: calc(var(--text-xxl) * var(--text-scale-ratio));

    --title-giant: 2.8rem;
    --title-md: 2.2rem;
    --title-sm: 1.8rem;

    --internal-spacing: var(--space-xl);
    --space-unit: 0.75rem;
    --space-xxs: calc(0.25 * var(--space-unit));
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    --space-xxl: calc(5.25 * var(--space-unit));

    --header-height-mobile: 200vh;
    --transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.logo-container {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    filter: brightness(0) invert(0);
}

.products-hero {
    padding: var(--space-xl) var(--space-sm);
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.products-hero h1 {
    font-size: var(--title-sm);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 300;
    color: var(--text-dark);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.products-catalog {
    padding: var(--space-xl) var(--space-sm);
    background: var(--primary-white);
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.prod-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.prod-card[data-product] {
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-soft);
}

.prod-img-cont {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.prod-img-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-image-main {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.prod-card:hover .product-image-main {
    opacity: 0;
}

.prod-card:hover .product-image-secondary {
    opacity: 1;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none !important;
    opacity: 0 !important;
    transition: all 0.4s ease;
    z-index: 3;
    mix-blend-mode: normal !important;
}

.prod-card:hover .product-overlay {
    opacity: 1;
}

.prod-card button.view-product {
    margin: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--text-dark);
    border: none;
    font-family: var(--font-main);
    font-size: var(--text-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    z-index: 4;
    position: relative;
    overflow: hidden;
}

.prod-card button.view-product:hover {
    background: var(--accent-muted);
    color: var(--primary-white);
    box-shadow: 0 5px 15px rgba(0, 225, 255, 0.4);
}

.prod-card button.view-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: none !important;
    transition: left 0.5s ease;
}

.prod-card button.view-product:hover::before {
    left: 100%;
}


.salon-picker {
    padding: var(--space-xl) var(--space-sm);
    text-align: center;
}

.salon-picker-title {
    font-size: var(--title-sm);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    font-weight: 300;
    color: var(--text-dark);
}

.salon-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.salon-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    background: var(--primary-white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.salon-choice:hover,
.salon-choice:focus-visible {
    transform: translateY(-6px);
    border-color: var(--accent-soft);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    outline: none;
}

.salon-choice-logo {
    height: 90px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
}

.salon-choice-name {
    font-size: var(--text-sm);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.products-catalog[hidden] {
    display: none;
}

.catalog-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    max-width: 1400px;
    margin: 0 auto var(--space-lg);
}

.catalog-salon {
    margin: 0;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.catalog-change {
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    border: 1px solid var(--text-dark);
    border-radius: 999px;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: var(--text-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-change:hover,
.catalog-change:focus-visible {
    background: var(--text-dark);
    color: var(--primary-white);
    outline: none;
}

@media screen and (min-width: 576px) {
    .salon-choices {
        grid-template-columns: repeat(2, 1fr);
    }

    .salon-choice-logo {
        height: 120px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .salon-choice:hover {
        transform: none;
    }
}

.prodModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-index-max);
    padding: var(--space-md);
    justify-content: center;
    align-items: center;
    background: rgba(22, 20, 19, 0.55);
    backdrop-filter: blur(10px) saturate(115%);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    opacity: 0;
    transition: opacity 0.25s ease;
    overscroll-behavior: contain;
}

.prodModal.show {
    display: flex;
    opacity: 1;
}

.prodContent {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 2 * var(--space-md));
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 32px 64px -24px rgba(0, 0, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.prodModal.show .prodContent {
    transform: none;
}

.prodMedia {
    position: relative;
    background: linear-gradient(180deg, #f8f5f2 0%, #efe9e3 100%);
}

.prodImages {
    --prod-pad: var(--space-lg);
    --prod-dissolvenza: 0.7s;
    position: relative;
    height: 250px;
    padding: var(--prod-pad);
}

.prodMainImg,
.prodImgStrato {
    position: absolute;
    inset: var(--prod-pad);
    width: calc(100% - 2 * var(--prod-pad));
    height: calc(100% - 2 * var(--prod-pad));
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--prod-dissolvenza) linear;
    pointer-events: none;
}

.prodMainImg.is-visibile,
.prodImgStrato.is-visibile {
    opacity: 1;
}

.prodDots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateX(-50%);
}

.prodDot {
    width: 6px;
    height: 6px;
    padding: 0;
    background: rgba(22, 22, 22, 0.2);
    border: none;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.prodDot.active {
    width: 20px;
    background: #161616;
}

.prodInfo {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    overflow-y: auto;
}

.prodCategoria {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 0;
    color: #8a837c;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.prodCategoria::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #161616;
}

#prodTitolo {
    margin: 0;
    color: #161616;
    font-family: var(--font-main);
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.prodDesc {
    margin: 0;
    color: #4d4945;
    font-size: 0.92rem;
    line-height: 1.75;
}

@media screen and (min-width: 768px) {
    .prodModal {
        padding: var(--space-xl);
    }

    .prodContent {
        flex-direction: row;
        max-width: 880px;
        max-height: min(620px, calc(100dvh - 2 * var(--space-xl)));
        border-radius: 28px;
    }

    .prodMedia {
        flex: 0 0 46%;
    }

    .prodImages {
        --prod-pad: var(--space-xl);
        height: 100%;
        min-height: 440px;
        padding: var(--prod-pad);
    }

    .prodInfo {
        flex: 1 1 auto;
        justify-content: center;
        padding: var(--space-xl);
        gap: var(--space-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .prodContent,
    .prodDot,
    .prodMainImg,
    .prodImgStrato {
        transition: none !important;
    }

    .prodContent {
        transform: none;
    }
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}


@media screen and (min-width: 576px) {
    .hero-logo {
        max-width: 300px;
    }

    .products-hero {
        padding: var(--space-xl) var(--space-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .prod-img-cont {
        height: 220px;
    }

    .prod-card button.view-product {
        font-size: var(--text-sm);
        padding: var(--space-xs) var(--space-lg);
    }

    #prodTitolo {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media screen and (min-width: 768px) {
    .hero-logo {
        max-width: 350px;
    }

    .products-hero {
        min-height: 35vh;
        padding: var(--space-xxl) var(--space-md);
    }

    .products-hero h1 {
        font-size: var(--title-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .prod-img-cont {
        height: 250px;
    }

    .prod-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    }
}

@media screen and (min-width: 992px) {
    .hero-logo {
        max-width: 400px;
    }

    .products-hero {
        min-height: 40vh;
    }

    .products-hero h1 {
        font-size: calc(var(--title-giant) * 2);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .prod-img-cont {
        height: 250px;
    }

    .prod-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    #prodTitolo {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }
}

@media screen and (min-width: 1200px) {
    .hero-logo {
        max-width: 450px;
    }

    .products-hero {
        min-height: 40vh;
    }

    .products-hero h1 {
        font-size: calc(var(--title-giant) * 2);
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }

    .prod-img-cont {
        height: 250px;
    }
}

@media screen and (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
    }
}

@media screen and (max-width: 280px) {
    .hero-logo {
        max-width: 180px;
    }

    .products-hero {
        padding: var(--space-lg) var(--space-xs);
        min-height: 25vh;
    }

    .products-hero h1 {
        font-size: calc(var(--title-sm) * 0.8);
    }

    .products-grid {
        gap: var(--space-md);
    }

    .prod-img-cont {
        height: 150px;
    }

    .prod-card button.view-product {
        font-size: 0.65rem;
        padding: var(--space-xxs) var(--space-sm);
    }

    #prodTitolo {
        font-size: 1.1rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .prod-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .prod-card:active {
        transform: scale(0.98);
    }

    .prod-card:hover .product-image-main {
        opacity: 1;
    }

    .prod-card:hover .product-image-secondary {
        opacity: 0;
    }
}

@media (max-height: 600px) and (orientation: landscape) {

    .products-hero {
        min-height: 60vh;
    }

    .prod-img-cont {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .prod-card:hover {
        transform: none !important;
    }

    @keyframes prodModalAppear {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes cardAppear {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media print {
    .prod-card button,
    .prodModal,
    .footer-prod {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        overflow: visible !important;
    }

    .products-grid {
        display: block !important;
    }

    .prod-card {
        break-inside: avoid;
        margin-bottom: 20mm;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .products-hero {
        background: white !important;
        color: black !important;
    }

    .products-hero h1 {
        color: black !important;
        text-shadow: none !important;
    }

    .products-hero p {
        color: #666 !important;
    }
}

@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .prodContent {
        margin-left: env(safe-area-inset-left);
        margin-right: env(safe-area-inset-right);
        margin-top: env(safe-area-inset-top);
        margin-bottom: env(safe-area-inset-bottom);
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    .prod-card {
        border-width: 0.5px;
    }
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.error {
    border-color: var(--red) !important;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success {
    border-color: var(--accent-success) !important;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}