/*
Theme Name: Ecomus Child
Author: INFINITHINK
Template: ecomus
Text Domain: ecomus
*/

/* Logo Vibra Maison nell'header */
.header-logo img{max-height:56px !important;width:auto !important}
.header-logo{display:flex;align-items:center}
@media (max-width:1024px){.header-logo img{max-height:46px !important}}
@media (max-width:767px){.header-logo img{max-height:38px !important}}

/* Palette azioni di marca: sovrascrive le CSS variabili del tema */
html body{
	--em-color__primary:#4E5D44;
	--em-color__base:#4E5D44;
	--em-color__dark:#3B3128;
	--em-link-color-hover:#4E5D44;
	--em-button-bg-color:#4E5D44;
	--em-button-bg-color-hover:#3B3128;
	--em-button-color:#FAF6EF;
	--em-button-color-hover:#FAF6EF;
}

/* CTA principali in salvia-scuro */
.button.alt,
button.alt,
.single_add_to_cart_button,
.header-search__button,
.wc-block-components-button,
.checkout-button,
.wp-element-button,
.wc-forward.button,
.added_to_cart,
.ecomus-newsletter__button,
.woocommerce-button.button{
	background-color:#4E5D44 !important;
	border-color:#4E5D44 !important;
	color:#FAF6EF !important;
}
.button.alt:hover,
button.alt:hover,
.single_add_to_cart_button:hover,
.header-search__button:hover,
.wc-block-components-button:hover,
.checkout-button:hover,
.wp-element-button:hover,
.woocommerce-button.button:hover{
	background-color:#3B3128 !important;
	border-color:#3B3128 !important;
	color:#FAF6EF !important;
}

/* Tipografia di marca: Playfair Display per i titoli */
body h1, body h2, body h3, body h4, body h5,
.elementor-heading-title,
.ecomus-heading__title,
h1.product_title, .product_title,
.entry-title, .page-header__title,
ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title a,
.woocommerce-loop-product__title,
.wd-entities-title,
.section-title,
.widget-title{
	font-family:"Playfair Display",Georgia,"Times New Roman",serif !important;
}

/* ===== Distribuzione omogenea palette Vibra ===== */
body{background-color:#FAF6EF;color:#3B3128}

/* Link di contenuto in salvia-scuro */
.entry-content a,.woocommerce-tabs a,.vibra-footer a,.post-content a,article p a{color:#4E5D44}
.entry-content a:hover,.vibra-footer a:hover{color:#3B3128}

/* Tutti i CTA pieni in salvia-scuro */
.add_to_cart_button,.product_type_simple,
.em-button--primary,.ecomus-button--primary,
button.button,input[type=submit],.yith-wcqv-button{
	background-color:#4E5D44 !important;border-color:#4E5D44 !important;color:#FAF6EF !important;
}
.add_to_cart_button:hover,.product_type_simple:hover,input[type=submit]:hover{
	background-color:#3B3128 !important;border-color:#3B3128 !important;color:#FAF6EF !important;
}

/* Badge "in offerta" in oro, "nuovo" in salvia */
.onsale,span.onsale{background-color:#8A6A25 !important;color:#FAF6EF !important;border:0}
.woocommerce-badge.new,span.new.woocommerce-badge,.wd-product-label.new,.product-label-new{background-color:#4E5D44 !important;color:#FAF6EF !important}
.woocommerce-badge.featured,.featured.woocommerce-badge{background-color:#8A6A25 !important;color:#FAF6EF !important}

/* Focus dei campi in salvia */
input:focus,textarea:focus,select:focus{border-color:#4E5D44 !important}

/* Prezzi: sconto in salvia, originale attenuato */
.price ins .amount{color:#4E5D44}
.price del .amount{color:#8A7C6B}

/* Corregge il corallo demo (#FD8484) -> palette Vibra */
html body{--em-color__secondary:#4E5D44}
.header-counter{background-color:#8A6A25 !important;color:#fff !important}
.ecomus-image-box-grid__content{background-color:#4E5D44 !important}
.ecomus-flash-sale-carousel__title,.ecomus-svg-icon--flash,.ecomus-flash-sale-carousel__title *{color:#4E5D44 !important}

/* Modal centrale (form Richiesta su misura), apertura via checkbox (no JS) */
.vibra-modal-toggle{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.vibra-modal{position:fixed;inset:0;background:rgba(59,49,40,.55);display:none;align-items:flex-start;justify-content:center;z-index:100000;padding:5vh 16px;overflow:auto}
.vibra-modal-toggle:checked ~ .vibra-modal,
.vibra-modal-toggle:checked + .vibra-modal{display:flex}
label.vibra-pillar__cta{cursor:pointer}
.vibra-modal__backdrop{position:absolute;inset:0;cursor:pointer;display:block}
.vibra-modal__box{background:#FAF6EF;max-width:540px;width:100%;border-radius:18px;padding:36px 34px;position:relative;z-index:2;box-shadow:0 24px 60px rgba(59,49,40,.28)}
.vibra-modal__box h2{font-family:"Playfair Display",Georgia,serif;color:#3B3128;margin:0 0 6px}
.vibra-modal__box>p{color:#6B5A48;margin:0 0 18px}
.vibra-modal__close{position:absolute;top:12px;right:16px;width:34px;height:34px;line-height:32px;text-align:center;border-radius:50%;font-size:1.4rem;color:#6B5A48;text-decoration:none;background:#EFE6D8}
.vibra-modal__close:hover{background:#e0d4c2;color:#3B3128}
.vibra-modal input[type=text],.vibra-modal input[type=email],.vibra-modal input[type=tel],.vibra-modal input[type=number],.vibra-modal textarea,.vibra-modal select{width:100%;padding:11px 13px;border:1px solid #d9cdb9;border-radius:8px;background:#fff;margin-top:4px}
.vibra-modal .wpcf7 p{margin:0 0 12px}
@media (max-width:600px){.vibra-modal__box{padding:28px 20px}}

/* Blocco extra scheda prodotto (consegna, reso, pagamento) */
.vibra-prod-extra{border:1px solid #e7ddd0;border-radius:12px;overflow:hidden;margin-top:18px;background:#fff}
.vibra-prod-extra__box{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #efe6d8}
.vibra-prod-extra__box svg{width:26px;height:26px;flex:none;margin-top:2px}
.vibra-prod-extra__box strong{display:block;color:#3B3128;font-size:.95rem;margin-bottom:2px}
.vibra-prod-extra__box span{color:#6B5A48;font-size:.85rem;line-height:1.5}
.vibra-prod-extra__safe{display:flex;gap:10px;align-items:center;padding:12px 16px;color:#3B3128;font-weight:600;font-size:.9rem}
.vibra-prod-extra__safe svg{width:22px;height:22px;flex:none}
.vibra-prod-extra__pay{padding:0 16px 14px}
.vibra-prod-extra__pay img{max-height:24px;width:auto}

/* Barra mobile fissa stile app */
.vibra-mbar{display:none}
@media (max-width:767px){
	.vibra-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#fff;border-top:1px solid #e7ddd0;box-shadow:0 -4px 18px rgba(59,49,40,.09);padding:6px 0 calc(6px + env(safe-area-inset-bottom))}
	.vibra-mbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;color:#4E5D44;text-decoration:none;font-size:.64rem;padding:3px 0;position:relative}
	.vibra-mbar svg{width:23px;height:23px}
	.vibra-mbar a span{color:#6B5A48;line-height:1}
	.vibra-mbar__cart em{position:absolute;top:-2px;right:calc(50% - 20px);background:#8A6A25;color:#fff;font-style:normal;font-size:.6rem;min-width:15px;height:15px;line-height:15px;text-align:center;border-radius:9px;padding:0 3px}
	body{padding-bottom:62px}
	.site-footer,.vibra-footer{margin-bottom:0}
}

/* Titoli widget/filtri ridimensionati (evita titoli enormi nel drawer filtri) */
.widget-title,.widget .widgettitle,.catalog-filters .widget-title,
.off-canvas-sidebar .widget-title,.products-filter__title,.widget_block h2,.widget_block h3{
	font-size:1.1rem !important;line-height:1.35 !important;margin-bottom:14px !important;
}

/* Pagina portante "Richiesta su misura" */
.vibra-pillar{max-width:920px;margin:0 auto;padding:0 4px}
.vibra-pillar__hero{text-align:center;padding:52px 24px 44px;background:#EFE6D8;border-radius:18px;margin:0 0 40px}
.vibra-pillar__eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:.76rem;color:#8A6A25;margin:0 0 12px}
.vibra-pillar__hero h1{font-family:"Playfair Display",Georgia,serif;color:#3B3128;font-size:2.5rem;line-height:1.15;margin:0 0 16px}
.vibra-pillar__sub{color:#6B5A48;font-size:1.16rem;line-height:1.6;max-width:640px;margin:0 auto 24px}
.vibra-pillar__cta{display:inline-block;background:#4E5D44 !important;color:#FAF6EF !important;padding:13px 30px;border-radius:30px;text-decoration:none;font-size:1rem}
.vibra-pillar__cta:hover{background:#3B3128 !important;color:#FAF6EF !important}
.vibra-pillar__intro p{font-size:1.12rem;line-height:1.75;color:#3B3128}
.vibra-pillar__sec{margin:38px 0}
.vibra-pillar__sec h2{font-family:"Playfair Display",Georgia,serif;color:#3B3128;font-size:1.72rem;margin:0 0 14px}
.vibra-pillar__sec h3{font-family:"Playfair Display",Georgia,serif;color:#4E5D44;font-size:1.22rem;margin:24px 0 8px}
.vibra-pillar__sec p,.vibra-pillar__sec li{line-height:1.75;color:#4a4038}
.vibra-pillar__sec a{color:#4E5D44;font-weight:600}
.vibra-pillar__form{margin:50px 0 0;padding:38px;background:#FAF6EF;border:1px solid #e7ddd0;border-radius:18px}
.vibra-pillar__form h2{font-family:"Playfair Display",Georgia,serif;color:#3B3128;margin-top:0}
@media (max-width:600px){.vibra-pillar__hero{padding:38px 18px}.vibra-pillar__hero h1{font-size:1.95rem}.vibra-pillar__form{padding:24px}}

/* Footer Vibra Maison */
.vibra-footer{background:#FAF6EF;color:#3B3128;border-top:1px solid #EFE6D8;padding:44px 0 0}
.vibra-footer__news{max-width:1280px;margin:0 auto 36px;padding:0 24px 32px;display:flex;flex-wrap:wrap;gap:28px;align-items:center;justify-content:space-between;border-bottom:1px solid #EFE6D8}
.vibra-footer__news-text h4{font-family:"Playfair Display",Georgia,serif;color:#3B3128;font-size:1.35rem;margin:0 0 6px}
.vibra-footer__news-text p{color:#6B5A48;margin:0;max-width:430px}
.vibra-footer__news-form{flex:1;min-width:280px;max-width:470px}
.vibra-footer__news-form .wpcf7 p{margin:0 0 8px}
.vibra-footer__news-form label{font-size:.84rem;color:#6B5A48;display:block}
.vibra-footer__news-form input[type=email],.vibra-footer__news-form input[type=text]{width:100%;padding:10px 12px;border:1px solid #d9cdb9;border-radius:8px;background:#fff;margin-top:4px}
@media (max-width:767px){.vibra-footer__news{padding:0 18px 24px}}
.vibra-footer__inner{max-width:1280px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:40px}
.vibra-footer__logo{max-height:50px;width:auto;margin-bottom:16px;display:block}
.vibra-footer__tag{color:#6B5A48;font-size:.92rem;line-height:1.65;max-width:330px;margin:0 0 18px}
.vibra-footer__meta{color:#6B5A48;font-size:.9rem;line-height:1.6;margin:0 0 6px}
.vibra-footer__meta a{color:#4E5D44;text-decoration:none}
.vibra-footer__col h4{font-family:"Playfair Display",Georgia,serif;font-size:1.05rem;color:#3B3128;margin:0 0 16px;font-weight:600}
.vibra-footer__col ul{list-style:none;margin:0;padding:0}
.vibra-footer__col li{margin:0 0 11px}
.vibra-footer__col a{color:#6B5A48;text-decoration:none;font-size:.92rem;transition:color .2s ease}
.vibra-footer__col a:hover{color:#4E5D44}
.vibra-footer__bottom{max-width:1280px;margin:44px auto 0;padding:22px 24px;border-top:1px solid #EFE6D8;text-align:center;color:#8A7C6B;font-size:.82rem}
@media (max-width:900px){.vibra-footer__inner{grid-template-columns:1fr 1fr;gap:32px}}
@media (max-width:560px){.vibra-footer__inner{grid-template-columns:1fr;gap:28px}}
