/* * Hero & Manifesto Section - Luxury Design
 * Palette: Deep Black, Soft White, Silver, Gold Grad
 * Fonts: Playfair Display (Titles), Outfit (Body/UI), Yesteryear (Accent)
 */

:root {
    /* Palette */
    --h-black: #0a0a0a;
    --h-wine: #250101;
    --h-white: #f9f9f9;
    --h-silver: #c0c0c0;
    --h-gold-solid: #c5a059;
    --h-gold-grad: linear-gradient(135deg, #c93, #edbe5e, #ac7c39);

    /* Layout */
    --h-pad-x: 8vw;
    --h-pad-y: clamp(5rem, 12vh, 10rem);
}

/* --- RESET & SEZIONI --- */
.entry-content > .gb-container, 
.hero-custom-section, 
.manifesto-section {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* --- HERO SECTION --- */
.hero-custom-section {
    background-color: var(--h-black);
    padding: var(--h-pad-y) var(--h-pad-x);
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container-text {
    width: 100%;
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-gold-focus {
    font-family: 'Outfit', sans-serif; 
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .4rem;
    color: var(--h-gold-solid);
    margin-bottom: 3rem;
}

/* Titolo H1 - Testo Bianco */
.hero-custom-section h1.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    line-height: 1.05em;
    color: var(--h-white);
    margin: 0;
    max-width: 18ch;
    font-weight: 700;
    position: relative;
}

/* Parte del titolo in Oro (Span) - CORRETTO */
.hero-gold-text {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    line-height: 1.05em;
    font-style: italic;
    font-weight: 400; /* Più leggero per contrasto */
    background: var(--h-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-top: 0.1em;
}

.hero-custom-section p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: var(--h-silver);
    line-height: 1.6em;
    max-width: 55ch;
    margin-top: 2.5em;
    margin-bottom: 4rem;
}

.hero-btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--h-gold-grad) !important;
    color: var(--h-black) !important;
    padding: 1.2em 3.5em !important; 
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 !important;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- MANIFESTO SECTION --- */
.manifesto-section {
    background-color: var(--h-wine);
    padding: clamp(6rem, 15vh, 12rem) var(--h-pad-x);
    width: 100%;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr; 
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.manifesto-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.manifesto-eyebrow {
    font-family: 'Outfit', sans-serif;
    color: var(--h-gold-solid);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.manifesto-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1em;
    color: var(--h-white);
    margin: 0;
    font-weight: 700;
}

.italic-gold {
    display: block;
    font-family: 'Yesteryear', cursive;
    font-size: 4rem;
    font-style: italic;
    font-weight: 400;
    color: var(--h-gold-solid);
    margin-top: -0.2em;
    margin-bottom: 1.5rem;
}

.manifesto-content-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: clamp(10rem, 20vh, 15rem); 
}

.manifesto-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.75em;
    color: var(--h-silver);
    max-width: 60ch;
    font-weight: 400;
    margin-top: 14%;
    letter-spacing: 0.08em;
    margin-bottom: 3.5rem;
}

.manifesto-divider {
    width: 100px;
    height: 1px;
    background: var(--h-gold-grad);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
    }
    .manifesto-content-right {
        padding-top: 2rem;
    }
}

/* --- ANIMAZIONI (FADER EFFECT) --- */

/* Stato Iniziale Fader per tutti gli elementi */
.hero-gold-focus,
.hero-custom-section h1.hero-headline, /* Il blocco H1 bianco */
.hero-gold-text,                     /* Lo span oro */
.hero-custom-section p,
.hero-btn-luxury,
.manifesto-eyebrow,
.manifesto-title,
.italic-gold,
.manifesto-text,
.manifesto-divider {
    opacity: 0;
    transform: translateY(10px); /* Movimento ridotto per fader soffuso */
    transition: opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

/* Stato is-visible attivato dal JS */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   SECTION 3: MATERIALI - LAYOUT, COLORI E PARALLASSE
   ============================================================ */

/* 1. CONTAINER PRINCIPALE (Sfondo e Parallasse) */
.materials-section {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 15vh, 12rem) var(--h-pad-x);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Effetto Parallasse sullo sfondo */
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
}

/* Overlay scuro per migliorare la leggibilità sopra l'immagine di sfondo */
.materials-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(49, 12, 16, 0.85) 100%); /* Sfumatura verso il Bordeaux */
    z-index: 1;
}

/* 2. HEADER DELLA SEZIONE (Titoli) */
.materials-eyebrow {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    color: var(--h-gold-solid);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-align: center;
}

.materials-headline {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1em;
    color: var(--h-white);
    margin: 0 0 5rem 0;
    font-weight: 700;
    text-align: center;
    max-width: 20ch;
}

/* 3. GRID E CARD (Struttura e Galleggiamento) */
.materials-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
}

.material-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 192, 192, 0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animazioni di Parallasse Elementi (Galleggiamento differenziato) */
.material-card:nth-child(1) { animation: float-up 7s ease-in-out infinite; }
.material-card:nth-child(2) { animation: float-down 8s ease-in-out infinite; animation-delay: 1s; }
.material-card:nth-child(3) { animation: float-up 6s ease-in-out infinite; animation-delay: 0.5s; }

@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes float-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* Hover Card */
.material-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* 4. ICONE PNG E FILTRI COLORE (Blindati) */
.material-icon img {
    height: 45px;
    width: auto;
    display: block;
    margin-bottom: 2.5rem;
    object-fit: contain !important;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Colore Argento */
.icon-argento img { filter: invert(100%) brightness(1.8) !important; }
.material-card:hover .icon-argento img { filter: invert(100%) brightness(2.8) !important; transform: scale(1.1); }

/* Colore Ottone */
.icon-ottone img { filter: invert(100%) sepia(80%) saturate(800%) hue-rotate(5deg) brightness(1.2) !important; }
.material-card:hover .icon-ottone img { filter: invert(100%) sepia(80%) saturate(1200%) hue-rotate(5deg) brightness(1.6) !important; transform: scale(1.1); }

/* Colore Corallo */
.icon-corallo img { filter: invert(100%) sepia(100%) saturate(5000%) hue-rotate(310deg) brightness(0.7) contrast(1.4) !important; }
.material-card:hover .icon-corallo img { filter: invert(100%) sepia(100%) saturate(7000%) hue-rotate(320deg) brightness(1) contrast(1.5) !important; transform: scale(1.1); }

/* 5. TIPOGRAFIA INTERNA CARD */
.material-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.5vw, 1.25rem);
    line-height: 1.75rem;
    color: var(--h-white);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
}

.material-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.2vw, 0.875rem);
    line-height: 1.625em;
    color: var(--h-silver);
    font-weight: 400;
    margin: 0;
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 992px) {
    .materials-grid { grid-template-columns: 1fr; }
    .materials-section { background-attachment: scroll !important; } /* Disabilita parallasse su mobile per performance */
    .material-card { animation: none !important; } /* Ferma il galleggiamento su piccoli schermi */
}

/* --- EFFETTO PARALLASSE SEZIONE 3 --- */

/* Background della sezione */
.materials-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed; /* Parallasse standard sul fondo */
    background-position: center;
    background-size: cover;
}

/* Effetto di galleggiamento sulle Card durante lo scroll */
@media (prefers-reduced-motion: no-preference) {
    .material-card {
        /* Creiamo un leggero sfasamento */
        transition: transform 0.2s linear; 
        will-change: transform;
    }

    /* Le card si muovono leggermente a velocità diverse per dare profondità */
    .material-card:nth-child(1) { transform: translateY(calc(var(--scroll-y, 0) * 0.05px)); }
    .material-card:nth-child(2) { transform: translateY(calc(var(--scroll-y, 0) * -0.05px)); }
    .material-card:nth-child(3) { transform: translateY(calc(var(--scroll-y, 0) * 0.08px)); }
}





/* ============================================================
   SECTION 4: PEZZI SCELTI - REWRITE FINALE (hero.css)
   ============================================================ */

p.featured-eyebrow {
    font-family: 'Outfit', sans-serif;
    color: var(--h-gold-solid);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2.5rem 0 2.5rem 8.0rem;
}

.featured-headline {
	position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1em;
    color: var(--h-white);
    margin: 0 0 2.5rem 8rem;
    font-weight: 700;
    text-align: left;
}

.featured-grid {
    display: grid !important;
    grid-template-columns: 3fr 1fr; 
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1900px;
    margin: 0 auto;
    width: 100%;
}

.h-header-right {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	width: fit-content;
	padding-bottom: 2.5rem; 
}

.view-all-link {
	color: #c0c0c0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
	border-bottom: 1px solid #c5a059;
    margin-top: 3em;
    margin-right: 3em
	display: inline-block !important;
    white-space: nowrap !important;
    padding-bottom: 1em !important;
}

.featured-products {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	max-width: 80%;
}

.wc-block-components-product-image img {
    border-radius: 1rem;
    height: auto;
    vertical-align: middle;
    width: 100%;
}













/* 1. Container Principale */
.featured-products-section {
    background-color: #0f0b0a !important;
    /* padding: clamp(6rem, 15vh, 12rem) var(--h-pad-x) !important; */
    display: flex;
    width: 100% !important;
    padding: 5rem 0rem 5rem 0rem;*/
}

.featured-products-section-grid {
	width: 100%;
	
}

.h-header-left {
	background-color: transparent
    flex: 1 !important;
	width: 100%;
	margin: auto;
}



.featured-products-section .featured-products-headline {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0;
}

.editor-styles-wrapper .wc-block-grid__products .wc-block-grid__product .wc-block-components-product-image,.wc-block-components-product-image {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 1rem;
}




