
/* Azzera il layout default di WooCommerce */
.altrove-prodotto .woocommerce-breadcrumb,
.altrove-prodotto .woocommerce-notices-wrapper { display: none !important; }

/* ---- HERO ---- */
.ap-hero {
    position: relative;
    width: calc(100vw - 17px);
    margin-left: calc(-50vw + 50% + 8.5px);
    position: relative;
    height: 92vh;
    min-height: 500px;
    overflow: hidden;
    background: #1A1A1A;
    display: flex;
    align-items: flex-end;
}

.ap-hero__img-wrap {
    position: absolute;
    inset: 0;
}

.ap-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    display: block;
}

.ap-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

.ap-hero__contenuto {
    position: relative;
    z-index: 2;
    padding: 60px 80px;
    width: 100%;
    max-width: 900px;
	color: #ffffff !important;
}

.ap-eyebrow {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b5c4af;
    margin-bottom: 16px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ap-hero__titolo {
    font-family: 'Lora', serif !important;
    font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
    font-weight: 400 !important;
    color: #EDE8E1 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
	text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.ap-hero__sottotitolo {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem !important;
	text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    color: rgba(237,232,225,0.55);
    margin: 0;
    line-height: 1.5;
}

.ap-hero__category,
.ap-box__category {
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.15em;
    border-bottom: 1px solid currentColor;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ap-hero__category:hover,
.ap-box__category:hover {
    opacity: 1;
}

.ap-breadcrumb {
    padding: 14px 48px;
    background: #F7F4EF;
    border-bottom: 1px solid #E8E3DC;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8C7355;
}

.ap-breadcrumb a {
    color: #8C7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ap-breadcrumb a:hover {
    color: #2A2A2A;
}

.ap-breadcrumb__sep {
    margin: 0 8px;
    color: #C4B9A8;
}

.ap-breadcrumb span:last-child {
    color: #2A2A2A;
}

/* ---- CORPO ---- */
.ap-corpo {
    background: #F7F4EF;
    padding: 80px 0 120px;
}

.ap-corpo__grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

/* ---- SEPARATORE ---- */
.ap-sep {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.ap-sep__linea {
    display: block;
    width: 60px;
    height: 1px;
    background: #C4B9A8;
}

.ap-sep__punto {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8B9D83;
    flex-shrink: 0;
}

/* ---- STORIA ---- */
.ap-storia {
    margin-bottom: 64px;
}

.ap-storia__label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8B9D83;
    margin-bottom: 28px;
}

.ap-storia__testo,
.ap-storia__testo p,
.ap-storia__testo * {
    font-family: 'Lora', serif !important;
    font-size: 17px !important;
    line-height: 1.9 !important;
    color: #6E6A64 !important;
}

.ap-storia__testo p {
    margin-bottom: 0.8em !important;
}

.ap-galleria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    background: #C4B9A8;
    border: 1px solid #C4B9A8;
    margin-bottom: 64px;
}

.ap-galleria__item {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #F7F4EF;
}

.ap-galleria__item a {
    display: block;
    cursor: zoom-in;
}

.ap-galleria__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ap-galleria__item:hover .ap-galleria__img {
    transform: scale(1.03);
}

/* ---- SCHEDA TECNICA ---- */
.ap-scheda {
    border-top: 1px solid #C4B9A8;
    padding-top: 40px;
}

.ap-scheda__griglia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #C4B9A8;
    border: 1px solid #C4B9A8;
}

.ap-scheda__voce {
    background: #F7F4EF;
    padding: 20px 24px;
}

.ap-scheda__label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C4B9A8;
    margin-bottom: 6px;
}

.ap-scheda__valore {
    display: block;
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}

/* ---- BOX ACQUISTO ---- */
.ap-destra {
    position: sticky;
    top: 40px;
}

.ap-box {
    background: #1A1A1A;
    padding: 48px 40px;
}

.ap-box__edizione {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #b5c4af;
    margin-bottom: 10px;
}

.ap-box__tiratura {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #8C7355;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ap-box__sep {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 24px 0;
}

/* Prezzo */
.ap-box__prezzo .price,
.ap-box__prezzo .amount {
    font-family: 'Lora', serif !important;
    font-size: 44px !important;
    font-weight: 600 !important;
    color: #EDE8E1 !important;
    line-height: 1 !important;
}

/* Form add to cart */
.ap-box .cart {
    margin: 0 !important;
    padding: 0 !important;
}

.ap-box .quantity {
    display: none !important;
}

.ap-box .single_add_to_cart_button {
    background: #8B9D83 !important;
    color: #1A1A1A !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 16px 32px !important;
    width: 100% !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.ap-box .single_add_to_cart_button:hover {
    background: #b5c4af !important;
}

/* Varianti select (per Limited Edition) */
.ap-box .variations {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.ap-box .variations td,
.ap-box .variations th {
    padding: 0;
    border: none;
    display: block;
    width: 100%;
}

.ap-box .variations label {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(237,232,225,0.45);
    display: block;
    margin-bottom: 8px;
    margin-top: 16px;
}

.ap-box .variations select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #EDE8E1;
    font-family: 'Lora', serif;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 0;
    appearance: none;
    cursor: pointer;
}

/* Prezzo variante */
.ap-box .woocommerce-variation-price .price,
.ap-box .woocommerce-variation-price .amount {
    font-family: 'Lora', serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    color: #EDE8E1 !important;
}

/* Reset variazioni WC */
.ap-box .reset_variations { display: none !important; }

.ap-box__spedizione {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: rgba(237,232,225,0.3);
    letter-spacing: 0.05em;
    margin-top: 14px;
}

/* ---- CERTIFICATO ---- */
.ap-box__certificato { margin-top: 4px; }

.ap-box__cert-label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b5c4af;
    margin-bottom: 10px;
}

.ap-box__cert-testo {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(237,232,225,0.4);
    margin: 0;
}

/* ---- BESPOKE ---- */
.ap-box__bespoke { margin-top: 20px; }

.ap-box__bespoke-link {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #b5c4af;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(181,196,175,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.ap-box__bespoke-link:hover {
    border-color: #b5c4af;
    color: #b5c4af;
}

.ap-box .button.single_add_to_cart_button {
    background: #8B9D83 !important;
    color: #1A1A1A !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-variation-add-to-cart .wc-ppcp-product-button-container,
.woocommerce div.product form.cart .wc-ppcp-product-button-container {
    display: none !important;
}

.wc-ppcp-product-button-container,
.ppcp-button-apm,
[id*="ppc-button"],
[class*="ppcp"] {
    display: none !important;
}

.altrove-prodotto .ap-box input.button,
.altrove-prodotto .ap-box button.button,
.altrove-prodotto .ap-box a.button,
.altrove-prodotto .ap-box .single_add_to_cart_button,
.altrove-prodotto .ap-box .button {
    background: #8B9D83 !important;
    background-color: #8B9D83 !important;
    color: #1A1A1A !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 16px 32px !important;
    width: 100% !important;
    box-shadow: none !important;
}

.ap-box__materiali {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-top: 1px solid rgba(196,185,168,0.15);
}

.ap-box__materiali-link {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #C4B9A8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ap-box__materiali-link:hover {
    color: #EDE8E1;
}

.ap-box__materiali-sub {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(196,185,168,0.5);
}

/* --- MOBILE OTTIMIZZAZIONI --- */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  body { font-size: 16px; }
  
  .ap-hero { height: 65vh; }
    .ap-hero__contenuto { padding: 40px 24px; }

    .ap-corpo__grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .ap-sinistra { padding: 48px 24px 0; }
    .ap-destra { position: static; padding: 0 24px 48px; }
    .ap-scheda__griglia { grid-template-columns: 1fr; }

}
