/*
 * Site pages restyled like the product pages (2026-10-15): home (Elementor 1113),
 * La nostra storia (2872), contact (2814), shop + product categories (WooCommerce/Astra).
 * Loaded only there (functions.php, body class .asm-site-page). Same tokens as product.css.
 * Content is unchanged - layout, type, colours, buttons and spacing only.
 */
body.asm-site-page{--asm-bg:#F8F8FD;--asm-white:#FFFFFF;--asm-title:#34597A;--asm-text:#4E6A86;--asm-nav:#49749C;--asm-muted:#5F7386;--asm-line:#DCE2EA;--asm-dark-btn:#27445E;background:var(--asm-bg)}

/* Floating side-cart bubble: the header cart icon replaces it, as on the product pages
   (it covered text on phones). The side panel itself still opens from the header icon. */
body.asm-site-page .xoo-wsc-basket{display:none!important}

/* ---------- Text and headings (Elementor pages) ---------- */
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-widget-text-editor,
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-widget-text-editor p{text-align:left!important;line-height:1.7;font-weight:300;font-size:16px;letter-spacing:0;word-spacing:normal}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-widget-text-editor p{margin:0 0 1em}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-widget-heading .elementor-heading-title{font-size:clamp(26px,2.6vw,34px);font-weight:400;line-height:1.2;color:var(--asm-title);letter-spacing:0}
/* page H1s: product-title scale */
.elementor-2872 .elementor-element-75134de .elementor-heading-title,
.elementor-2814 .elementor-element-292ee05 .elementor-heading-title{font-size:clamp(26px,2.4vw,34px)!important;line-height:1.2!important}

/* ---------- Buttons = product-page buttons ---------- */
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-button,
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-cta__button{display:inline-flex!important;align-items:center;justify-content:center;min-height:52px;padding:0 28px!important;border-radius:0!important;background:var(--asm-title)!important;border:1.5px solid var(--asm-title)!important;color:#fff!important;font-family:Montserrat,sans-serif;font-size:13px!important;font-weight:600!important;letter-spacing:.12em!important;text-transform:uppercase!important;line-height:1.2;transition:background .2s,color .2s,border-color .2s}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-button:hover,
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-cta__button:hover{background:var(--asm-dark-btn)!important;border-color:var(--asm-dark-btn)!important;color:#fff!important}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-button:focus-visible,
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-cta__button:focus-visible{outline:2px solid var(--asm-title);outline-offset:3px}

/* ---------- Forms (newsletter on home, contact form) ---------- */
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-form .elementor-field-textual{min-height:52px;border:1px solid var(--asm-line)!important;border-radius:4px!important;background:var(--asm-white)!important;color:var(--asm-title)!important;font-size:15px!important;padding:12px 14px!important}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-form textarea.elementor-field-textual{min-height:140px}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-form .elementor-field-textual::placeholder{color:var(--asm-muted);opacity:1}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-form .elementor-field-textual:focus{outline:none;border-color:var(--asm-title)!important;box-shadow:0 0 0 3px rgba(52,89,122,.15)}
:is(.elementor-1113,.elementor-2872,.elementor-2814) .elementor-form .elementor-button{width:100%}

/* ---------- Home (1113) ---------- */
/* hero: title is the page H1 */
.elementor-1113 .elementor-element-0b38863 .elementor-cta__title{font-size:clamp(28px,3vw,40px)!important;font-weight:400!important;line-height:1.2;color:#fff!important}
/* sections: product-page rhythm (64px phone / 96px laptop) */
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-0edbe3b),
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-6b0aaf6),
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd){padding-top:96px!important;padding-bottom:96px!important}
/* text over the photo stays white, button outlined white */
.elementor-1113 .elementor-element-6b0aaf6 .elementor-heading-title{color:#fff!important}
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-6b0aaf6) .elementor-widget-text-editor{max-width:760px;margin-left:auto;margin-right:auto}
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-6b0aaf6) .elementor-button{background:transparent!important;border-color:#fff!important;color:#fff!important}
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-6b0aaf6) .elementor-button:hover{background:#fff!important;color:var(--asm-title)!important}
/* newsletter: white card like the product-page contact block */
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd),
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd) .e-con{background:var(--asm-white)!important}
.elementor-1113 .elementor-element-6c527a9 .elementor-heading-title{font-size:clamp(22px,2vw,26px)}
.elementor-1113 .elementor-element-8b5d6bd .elementor-button{width:auto}
/* newsletter subtitle stays centred under its centred title */
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd) .elementor-widget-text-editor,
.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd) .elementor-widget-text-editor p{text-align:center!important}

/* ---------- La nostra storia (2872) — CSS only until the photo template is built ---------- */
.elementor-2872 .elementor-widget-text-editor{max-width:680px}
.elementor-2872 :is(.e-con.e-parent,.elementor-top-section){padding-top:64px!important;padding-bottom:64px!important}
.elementor-2872 img{height:auto;border-radius:4px}

/* ---------- Contact (2814) ---------- */
.elementor-2814 :is(.e-con.e-parent,.elementor-top-section){padding-top:64px!important;padding-bottom:64px!important}

/* ---------- Shop + product categories ---------- */
body.asm-site-page.woocommerce .ast-woocommerce-container{max-width:1200px;margin:0 auto;padding:0 24px;box-sizing:border-box}
body.asm-site-page .woocommerce-products-header{display:block!important;padding:56px 0 8px;margin:0}
body.asm-site-page .woocommerce-products-header__title{display:block!important;font-size:clamp(26px,2.6vw,34px);font-weight:400;line-height:1.2;color:var(--asm-title);margin:0 0 12px}
body.asm-site-page .term-description p{max-width:680px;margin:0 0 8px;font-size:16px;font-weight:300;line-height:1.7;color:var(--asm-text);text-align:left}
body.asm-site-page .ast-shop-toolbar-container{margin:16px 0 28px}
body.asm-site-page .woocommerce-result-count{margin:0;font-size:13px;color:var(--asm-muted)}
body.asm-site-page ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:40px 16px!important;margin:0 0 64px!important}
body.asm-site-page ul.products::before,body.asm-site-page ul.products::after{display:none!important}
body.asm-site-page ul.products li.product{width:auto!important;margin:0!important;padding:0!important;float:none!important;text-align:left!important;display:flex;flex-direction:column}
body.asm-site-page ul.products li.product img{aspect-ratio:1/1;object-fit:cover;border-radius:4px;margin:0 0 14px!important;background:var(--asm-white)}
body.asm-site-page ul.products li.product .astra-shop-summary-wrap{display:flex;flex-direction:column;flex:1;padding:0!important;text-align:left!important}
body.asm-site-page ul.products li.product .astra-shop-thumbnail-wrap{margin:0}
body.asm-site-page ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;font-weight:400!important;line-height:1.35;color:var(--asm-title)!important;padding:0!important;margin:0 0 6px!important}
body.asm-site-page ul.products li.product .price{display:block;font-size:14px!important;font-weight:400;color:var(--asm-muted)!important;margin:0 0 14px!important}
body.asm-site-page ul.products li.product .button{display:inline-flex!important;align-items:center;justify-content:center;width:100%;min-height:46px;margin:auto 0 0!important;padding:0 12px!important;border-radius:0!important;background:var(--asm-white)!important;border:1.5px solid var(--asm-title)!important;color:var(--asm-title)!important;font-size:11px!important;font-weight:600!important;letter-spacing:.1em!important;text-transform:uppercase!important;line-height:1.2;text-align:center}
body.asm-site-page ul.products li.product .button:hover{background:var(--asm-title)!important;color:#fff!important}
body.asm-site-page ul.products li.product .added_to_cart{display:none!important}
body.asm-site-page .woocommerce-pagination{margin:0 0 64px;text-align:center}

@media (min-width:768px){
	body.asm-site-page ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:56px 32px!important;margin-bottom:96px!important}
	body.asm-site-page ul.products li.product .astra-shop-summary-wrap{display:flex;flex-direction:column;flex:1;padding:0!important;text-align:left!important}
body.asm-site-page ul.products li.product .astra-shop-thumbnail-wrap{margin:0}
body.asm-site-page ul.products li.product .woocommerce-loop-product__title{font-size:18px!important}
	body.asm-site-page ul.products li.product .button{width:auto;align-self:flex-start;padding:0 24px!important;font-size:12px!important}
	body.asm-site-page .woocommerce-products-header{padding-top:72px}
}
@media (max-width:767px){
	.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-0edbe3b),
	.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-6b0aaf6),
	.elementor-1113 :is(.e-con.e-parent,.elementor-top-section):has(.elementor-element-8b5d6bd){padding-top:64px!important;padding-bottom:64px!important}
	body.asm-site-page .ast-woocommerce-container{padding:0 16px}
}
