/*
 * Home Luxury CSS — Gioielleria Michele Marchi
 * Tutti i selettori sono scoped a .page-template-page-home-luxury
 * per evitare effetti collaterali sul resto del sito.
 *
 * Palette:
 *   Verde scuro:   #183e29  (brand ufficiale — usato nel menu)
 *   Oro/Champagne: #a87a25  (brand ufficiale — usato negli hover menu)
 *   Beige caldo:   #e8e2da  (background hover menu — usato nel sito)
 *   Avorio chiaro: #f2efea  (bordi menu — usato nel sito)
 *   Testo scuro:   #222529  (heading color Porto)
 *   Bianco:        #ffffff
 */

/* ===================================================================
   RESET LAYOUT PORTO
   =================================================================== */
.page-template-page-home-luxury #main,
.page-template-page-home-luxury #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.page-template-page-home-luxury .page-top,
.page-template-page-home-luxury #banner-wrapper {
    display: none !important;
}

.page-template-page-home-luxury #hl-page {
    overflow-x: hidden;
    width: 100%;
}

/* ===================================================================
   UTILITÀ GLOBALI
   =================================================================== */
.page-template-page-home-luxury .hl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-template-page-home-luxury .hl-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Source Serif Pro', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-template-page-home-luxury .hl-btn-primary {
    background-color: #a87a25;
    color: #ffffff;
    border-color: #a87a25;
}

.page-template-page-home-luxury .hl-btn-primary:hover {
    background-color: transparent;
    color: #a87a25;
    border-color: #a87a25;
}

.page-template-page-home-luxury .hl-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.page-template-page-home-luxury .hl-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

.page-template-page-home-luxury .hl-btn-dark {
    background-color: #183e29;
    color: #ffffff;
    border-color: #183e29;
}

.page-template-page-home-luxury .hl-btn-dark:hover {
    background-color: transparent;
    color: #183e29;
    border-color: #183e29;
}

.page-template-page-home-luxury .hl-section-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 30px;
    font-weight: 400;
    color: #183e29;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.page-template-page-home-luxury .hl-divider {
    width: 60px;
    height: 2px;
    background-color: #a87a25;
    margin: 0 auto 32px;
}

.page-template-page-home-luxury .hl-divider-left {
    margin-left: 0;
}

.page-template-page-home-luxury .hl-center-btn {
    text-align: center;
    margin-top: 48px;
}

/* ===================================================================
   HERO
   =================================================================== */
.page-template-page-home-luxury .hl-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-template-page-home-luxury .hl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(24, 62, 41, 0.72) 0%,
        rgba(13, 30, 20, 0.82) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.page-template-page-home-luxury .hl-hero-content {
    text-align: center;
    max-width: 780px;
    color: #ffffff;
}

.page-template-page-home-luxury .hl-hero-content h1 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 0 0 24px;
}

.page-template-page-home-luxury .hl-hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-template-page-home-luxury .hl-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ===================================================================
   IDENTITY
   =================================================================== */
.page-template-page-home-luxury .hl-identity {
    background-color: #f2efea;
    padding: 96px 24px;
}

.page-template-page-home-luxury .hl-identity-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-template-page-home-luxury .hl-identity h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    color: #183e29;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.page-template-page-home-luxury .hl-identity p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #555555;
    margin: 0;
}

/* ===================================================================
   CATEGORIES
   =================================================================== */
.page-template-page-home-luxury .hl-categories {
    background-color: #ffffff;
    padding: 0;
}

.page-template-page-home-luxury .hl-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 460px;
}

.page-template-page-home-luxury .hl-cat-card {
    position: relative;
    overflow: hidden;
}

.page-template-page-home-luxury .hl-cat-card > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.page-template-page-home-luxury .hl-cat-card img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.page-template-page-home-luxury .hl-cat-card:hover img {
    transform: scale(1.05);
}

.page-template-page-home-luxury .hl-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(24, 62, 41, 0.85) 0%,
        rgba(24, 62, 41, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    transition: background 0.4s ease;
}

.page-template-page-home-luxury .hl-cat-card:hover .hl-cat-overlay {
    background: linear-gradient(
        to top,
        rgba(24, 62, 41, 0.95) 0%,
        rgba(24, 62, 41, 0.5) 50%,
        rgba(24, 62, 41, 0.1) 100%
    );
}

.page-template-page-home-luxury .hl-cat-content {
    padding: 32px 28px;
    color: #ffffff;
}

.page-template-page-home-luxury .hl-cat-content h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 0.03em;
}

.page-template-page-home-luxury .hl-cat-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 16px;
    display: none;
}

.page-template-page-home-luxury .hl-cat-card:hover .hl-cat-content p {
    display: block;
}

.page-template-page-home-luxury .hl-cat-link {
    display: inline-block;
    font-family: 'Source Serif Pro', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a87a25;
    border-bottom: 1px solid #a87a25;
    padding-bottom: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-template-page-home-luxury .hl-cat-card:hover .hl-cat-link {
    opacity: 1;
}

/* ===================================================================
   PRODUCTS
   =================================================================== */
.page-template-page-home-luxury .hl-products {
    background-color: #ffffff;
    padding: 96px 24px;
}

.page-template-page-home-luxury .hl-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.page-template-page-home-luxury .hl-product-card {
    background: #ffffff;
    border: 1px solid #e8e2da;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-template-page-home-luxury .hl-product-card:hover {
    box-shadow: 0 8px 32px rgba(24, 62, 41, 0.10);
    transform: translateY(-3px);
}

.page-template-page-home-luxury .hl-product-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.page-template-page-home-luxury .hl-product-img {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f9f7f4;
}

.page-template-page-home-luxury .hl-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.page-template-page-home-luxury .hl-product-card:hover .hl-product-img img {
    transform: scale(1.06);
}

.page-template-page-home-luxury .hl-product-info {
    padding: 20px 20px 24px;
    text-align: center;
}

.page-template-page-home-luxury .hl-product-name {
    font-family: 'Source Serif Pro', serif;
    font-size: 15px;
    font-weight: 400;
    color: #183e29;
    margin: 0 0 8px;
    line-height: 1.4;
}

.page-template-page-home-luxury .hl-product-price {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #a87a25;
    font-weight: 600;
}

.page-template-page-home-luxury .hl-product-price .woocommerce-Price-amount {
    color: #a87a25;
}

/* ===================================================================
   CUSTOM JEWELRY (Gioielli su misura)
   =================================================================== */
.page-template-page-home-luxury .hl-misura {
    background-color: #f2efea;
    padding: 0;
}

.page-template-page-home-luxury .hl-misura-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.page-template-page-home-luxury .hl-misura-img {
    overflow: hidden;
}

.page-template-page-home-luxury .hl-misura-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-template-page-home-luxury .hl-misura-text {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-template-page-home-luxury .hl-misura-text h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    color: #183e29;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.page-template-page-home-luxury .hl-misura-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #555555;
    margin: 0 0 36px;
    max-width: 480px;
}

/* ===================================================================
   BOUTIQUE
   =================================================================== */
.page-template-page-home-luxury .hl-boutique {
    background-color: #183e29;
    padding: 0;
}

.page-template-page-home-luxury .hl-boutique-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.page-template-page-home-luxury .hl-boutique-img {
    overflow: hidden;
    order: 2;
}

.page-template-page-home-luxury .hl-boutique-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-template-page-home-luxury .hl-boutique-text {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    color: #ffffff;
}

.page-template-page-home-luxury .hl-boutique-text h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.page-template-page-home-luxury .hl-boutique-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
}

.page-template-page-home-luxury .hl-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.page-template-page-home-luxury .hl-contact-list li {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    line-height: 1.6;
}

.page-template-page-home-luxury .hl-contact-list li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.page-template-page-home-luxury .hl-contact-label {
    font-weight: 600;
    color: #a87a25;
    margin-right: 8px;
}

.page-template-page-home-luxury .hl-contact-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.page-template-page-home-luxury .hl-contact-list a:hover {
    color: #a87a25;
    text-decoration: underline;
}

.page-template-page-home-luxury .hl-boutique-text .hl-btn-primary {
    align-self: flex-start;
}

/* ===================================================================
   RESPONSIVE — TABLET (< 992px)
   =================================================================== */
@media (max-width: 991px) {
    .page-template-page-home-luxury .hl-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-template-page-home-luxury .hl-cat-card img {
        height: 340px;
    }

    .page-template-page-home-luxury .hl-cat-content p {
        display: block;
    }

    .page-template-page-home-luxury .hl-cat-link {
        opacity: 1;
    }

    .page-template-page-home-luxury .hl-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-template-page-home-luxury .hl-misura-inner,
    .page-template-page-home-luxury .hl-boutique-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .page-template-page-home-luxury .hl-misura-img,
    .page-template-page-home-luxury .hl-boutique-img {
        height: 300px;
        order: 0;
    }

    .page-template-page-home-luxury .hl-misura-text,
    .page-template-page-home-luxury .hl-boutique-text {
        padding: 56px 36px;
    }

    .page-template-page-home-luxury .hl-identity {
        padding: 72px 24px;
    }

    .page-template-page-home-luxury .hl-products {
        padding: 72px 24px;
    }
}

/* ===================================================================
   RESPONSIVE — MOBILE (< 576px)
   =================================================================== */
@media (max-width: 575px) {
    .page-template-page-home-luxury .hl-hero {
        min-height: 80vh;
    }

    .page-template-page-home-luxury .hl-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-template-page-home-luxury .hl-btn {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }

    .page-template-page-home-luxury .hl-categories-grid {
        grid-template-columns: 1fr;
    }

    .page-template-page-home-luxury .hl-cat-card img {
        height: 260px;
    }

    .page-template-page-home-luxury .hl-products-grid {
        grid-template-columns: 1fr;
    }

    .page-template-page-home-luxury .hl-misura-text,
    .page-template-page-home-luxury .hl-boutique-text {
        padding: 48px 24px;
    }

    .page-template-page-home-luxury .hl-identity {
        padding: 56px 24px;
    }

    .page-template-page-home-luxury .hl-products {
        padding: 56px 20px;
    }

    .page-template-page-home-luxury .hl-section-title {
        font-size: 24px;
    }

    .page-template-page-home-luxury .hl-boutique-text .hl-btn-primary {
        align-self: stretch;
        text-align: center;
    }
}
