/* ============================================================
   SpazioCOBE — Product Mini-Landing Page CSS
   Colori COBE: Verde #6EC4A0 | Nero #1A1A1A | Accento #E03060
   ============================================================ */

/* === RESET WOOCOMMERCE DEFAULTS === */
.cobe-product-landing .woocommerce-breadcrumb,
.cobe-product-landing .woocommerce-tabs,
.cobe-product-landing .woocommerce-product-gallery,
.cobe-product-landing .product_meta { display: none !important; }

/* === LAYOUT === */
.cobe-product-landing { margin: 0; padding: 0; }
.cobe-pl__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cobe-pl__container--narrow { max-width: 800px; }
.cobe-pl__section { padding: 56px 0; }
.cobe-pl__section--alt { background: #F7FAF8; }
.cobe-pl__section--dark { background: #1A1A1A; color: #fff; }
.cobe-pl__section--dark .cobe-pl__price { color: #6EC4A0 !important; }
.cobe-pl__section-title {
    font-size: 1.6em; font-weight: 700; color: #1A1A1A;
    margin: 0 0 28px; text-align: center;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.cobe-pl__section--dark .cobe-pl__section-title,
.cobe-pl__section--dark h2 { color: #fff; }

/* === HERO (contenuto, non full-screen) === */
.cobe-pl__hero {
    background: #F7FAF8;
    padding: 48px 0 56px;
    border-bottom: 1px solid #E0E0E0;
}
.cobe-pl__hero-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 320px 1fr; gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .cobe-pl__hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cobe-pl__hero-cover { max-width: 260px; margin: 0 auto; }
    .cobe-pl__actions { justify-content: center; }
}
.cobe-pl__hero-cover {
    position: relative;
}
.cobe-pl__cover-img {
    width: 100%; height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.cobe-pl__badge {
    position: absolute; top: 12px; left: 12px;
    padding: 5px 14px; border-radius: 6px;
    font-size: 0.78em; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; z-index: 2;
}
.cobe-pl__badge--esaurito { background: #E03060; color: #fff; }
.cobe-pl__badge--offerta { background: #6EC4A0; color: #fff; }

.cobe-pl__cats {
    font-size: 0.85em; color: #6EC4A0; font-weight: 600;
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.cobe-pl__cats a { color: #6EC4A0; text-decoration: none; }
.cobe-pl__cats a:hover { text-decoration: underline; }
.cobe-pl__title {
    font-size: 2.6em; margin: 0 0 6px; color: #1A1A1A;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.1;
}
.cobe-pl__anno { font-size: 0.9em; color: #999; }
.cobe-pl__tagline {
    margin: 16px 0 0; font-size: 1.05em; color: #555;
    line-height: 1.65;
}
.cobe-pl__tagline p { margin: 0; }
.cobe-pl__price {
    font-size: 1.8em; font-weight: 700; color: #6EC4A0;
    margin: 20px 0 4px;
}
.cobe-pl__price del { color: #bbb; font-size: 0.75em; }
.cobe-pl__price ins { text-decoration: none; }

/* Pulsanti acquisto */
.cobe-pl__actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 16px; align-items: center;
}
.cobe-pl__btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.95em;
    transition: all 0.2s; cursor: pointer; border: none;
    line-height: 1.4; text-align: center;
}
.cobe-pl__btn--primary { background: #6EC4A0; color: #fff; }
.cobe-pl__btn--primary:hover { background: #4FA882; color: #fff; }
.cobe-pl__btn--large { padding: 15px 36px; font-size: 1.1em; }
.cobe-pl__btn--alt {
    background: #fff; color: #1A1A1A;
    border: 1px solid #E0E0E0;
}
.cobe-pl__btn--alt:hover { background: #F0F0F0; color: #1A1A1A; }
.cobe-pl__btn--outline-light {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.cobe-pl__btn--outline-light:hover {
    border-color: #6EC4A0; color: #6EC4A0;
}

/* WooCommerce cart form dentro hero */
.cobe-pl__actions .cart {
    display: flex; gap: 10px; align-items: center;
}
.cobe-pl__actions .cart .quantity { width: 70px; }
.cobe-pl__actions .cart .quantity input {
    width: 100%; padding: 10px; border: 1px solid #E0E0E0;
    border-radius: 8px; text-align: center; font-size: 1em;
}
.cobe-pl__actions .cart .single_add_to_cart_button {
    background: #6EC4A0 !important; color: #fff !important;
    padding: 12px 28px !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 0.95em !important;
    border: none !important; cursor: pointer;
    transition: background 0.2s !important;
}
.cobe-pl__actions .cart .single_add_to_cart_button:hover {
    background: #4FA882 !important;
}

/* === CARD DETTAGLI === */
.cobe-pl__details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.cobe-pl__detail-card {
    background: #fff; border: 1px solid #E0E0E0;
    border-radius: 10px; padding: 20px 16px;
    text-align: center; transition: transform 0.2s;
}
.cobe-pl__detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.cobe-pl__detail-icon {
    display: block; font-size: 1.8em; margin-bottom: 8px;
}
.cobe-pl__detail-label {
    display: block; font-size: 0.75em; color: #999;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px; font-weight: 600;
}
.cobe-pl__detail-value {
    display: block; font-size: 1em; color: #1A1A1A;
    font-weight: 600;
}
.cobe-pl__detail-value a { color: #6EC4A0; text-decoration: none; }
.cobe-pl__detail-value a:hover { text-decoration: underline; }

/* === NARRATIVA === */
.cobe-pl__section--narrative { background: #fff; }
.cobe-pl__narrative {
    font-size: 1.05em; line-height: 1.8; color: #444;
}
.cobe-pl__narrative p { margin-bottom: 1.2em; }
.cobe-pl__narrative h2, .cobe-pl__narrative h3 {
    color: #1A1A1A; margin-top: 1.5em;
}
.cobe-pl__narrative img {
    border-radius: 8px; margin: 1.5em 0;
    max-width: 100%; height: auto;
}
.cobe-pl__narrative blockquote {
    border-left: 4px solid #6EC4A0;
    padding: 12px 20px; margin: 1.5em 0;
    background: #F7FAF8; font-style: italic; color: #555;
}

/* === GALLERY PROTETTA (no click, no download, no right-click) === */
.cobe-pl__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.cobe-pl__gallery-item {
    display: block; overflow: hidden;
    border-radius: 8px; aspect-ratio: 4/3;
    background: #eee; position: relative;
}
.cobe-pl__gallery-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    -webkit-user-select: none; user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
/* Scudo trasparente sopra l'immagine: impedisce right-click, drag, long-press */
.cobe-pl__img-shield {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2; cursor: default;
    -webkit-touch-callout: none;
}
/* Disabilita selezione su tutto il contenitore gallery */
.cobe-pl__protected {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}

/* === VIDEO YOUTUBE === */
.cobe-pl__video {
    position: relative; padding-bottom: 56.25%; /* 16:9 */
    height: 0; overflow: hidden;
    border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.cobe-pl__video iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: none;
    border-radius: 10px;
}

/* === TORNA ALLO SHOP === */
.cobe-pl__back {
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
    background: #fff;
}
.cobe-pl__back-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: #6EC4A0; text-decoration: none;
    font-size: 0.9em; font-weight: 500;
    transition: color 0.2s;
}
.cobe-pl__back-link:hover { color: #4FA882; }
.cobe-pl__back-bottom {
    margin-top: 28px;
}
.cobe-pl__back-bottom a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.9em; transition: color 0.2s;
}
.cobe-pl__back-bottom a:hover { color: #6EC4A0; }

/* === CREDITI === */
.cobe-pl__crediti {
    font-size: 0.95em; color: #666; line-height: 1.7;
    text-align: center;
}

/* === RECENSIONI === */
.cobe-pl__reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.cobe-pl__review-card {
    background: #fff; border: 1px solid #E0E0E0;
    border-radius: 10px; padding: 24px 20px;
    text-align: center;
}
.cobe-pl__review-link {
    color: #6EC4A0; text-decoration: none;
    font-weight: 600; font-size: 1.05em;
}
.cobe-pl__review-link:hover { text-decoration: underline; }
.cobe-pl__review-name {
    font-weight: 600; color: #1A1A1A; font-size: 1.05em;
}

/* === ECOSISTEMA LINKS (in dark section) === */
.cobe-pl__eco-links {
    margin-top: 24px; display: flex; gap: 24px;
    justify-content: center; flex-wrap: wrap;
}
.cobe-pl__eco-links a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 0.88em; transition: color 0.2s;
}
.cobe-pl__eco-links a:hover { color: #6EC4A0; }

/* === PRODOTTI CORRELATI === */
.cobe-pl__section .related.products h2 {
    font-size: 1.6em; text-align: center;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #1A1A1A; margin-bottom: 24px;
}
.cobe-pl__section .related.products .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.cobe-pl__section .related.products .product {
    border: 1px solid #E0E0E0; border-radius: 10px;
    overflow: hidden; transition: transform 0.2s;
}
.cobe-pl__section .related.products .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.cobe-pl__section .related.products .product img {
    width: 100%; height: auto; display: block;
}
.cobe-pl__section .related.products .product .woocommerce-loop-product__title {
    padding: 12px 14px 0; font-size: 1em; color: #1A1A1A;
}
.cobe-pl__section .related.products .product .price {
    padding: 4px 14px 14px; font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .cobe-pl__title { font-size: 1.9em; }
    .cobe-pl__price { font-size: 1.4em; }
    .cobe-pl__details-grid { grid-template-columns: repeat(2, 1fr); }
    .cobe-pl__gallery { grid-template-columns: 1fr; }
    .cobe-pl__reviews { grid-template-columns: 1fr; }
}
