/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ============================================================
   STILE "BUSINESS" — Astra + Astra Child + Header Footer Elementor
   File unico: unisce il vecchio style.css del child e il CSS
   aggiuntivo del Personalizza. Dopo averlo caricato, svuotare
   Aspetto → Personalizza → CSS aggiuntivo.
   ============================================================ */

/* @import deve restare la primissima regola del file: i browser
   ignorano un @import se lo trovano dopo altre regole CSS. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Corinthia:wght@400;700&display=swap');

/* ---------- 1. Font: Inter per testo e titoli ----------
   Il tema applica Montserrat con selettori ampi: li ripetiamo con
   !important per avere certezza di priorità sul cascade. */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button,
.elementor-button,
.woocommerce a.button,
.woocommerce button.button{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
}
h1,h2,h3,h4,h5,h6,
.entry-content :where(h1,h2,h3,h4,h5,h6),
.site-title,
.site-title a,
.elementor-heading-title{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
    font-weight:700 !important;
}

/* ---------- 2. H1: Corinthia ----------
   Deve stare DOPO la sezione 1, altrimenti Inter (!important) vince.
   Corinthia ha un'altezza della x molto bassa: serve una dimensione
   maggiore rispetto a Inter per avere la stessa leggibilità. */
h1,
h1.entry-title,
h1.page-title,
h1.product_title,
h1.elementor-heading-title,
.entry-content h1{
    font-family:'Corinthia', cursive !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
    font-size:clamp(3.5rem, 8vw, 6rem);
    line-height:1.1;
}

/* ---------- 2b. Titolo nella pagina singolo prodotto ----------
   Eccezione alla sezione 2: il titolo prodotto resta in Inter.
   Selettore più specifico di h1.product_title, quindi vince. */
body.single-product .summary h1.product_title.entry-title{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
    font-size:40px !important;
    line-height:1.1;
    color:#0184bc !important;
}

/* ---------- 3. Palette Astra + Elementor ----------
   Astra costruisce quasi tutto (bottoni, titoli, hover, footer,
   badge, focus) attorno alle variabili --ast-global-color-*.
   Elementor (header/footer builder) usa un secondo set che
   rispecchia lo stesso schema: li allineiamo insieme. */
:root{
    --ast-global-color-0:#1c3d5a;  /* blu petrolio: bottoni/CTA */
    --ast-global-color-1:#12293e;  /* blu petrolio scuro: hover/link */
    --ast-global-color-2:#0f1e2c;  /* titoli */
    --ast-global-color-3:#3a3a3a;  /* testo body */
    --ast-global-color-4:#f4f6f8;  /* grigio chiaro: sfondo pagina */
    --ast-global-color-5:#ffffff;  /* bianco */
    --ast-global-color-6:#e5eaee;  /* grigio-blu chiaro */
    --ast-global-color-7:#0b1420;  /* dark bg navy */
    --ast-global-color-8:#23262b;

    --e-global-color-astglobalcolor0:#1c3d5a;
    --e-global-color-astglobalcolor1:#12293e;
    --e-global-color-astglobalcolor2:#0f1e2c;
    --e-global-color-astglobalcolor3:#3a3a3a;
    --e-global-color-astglobalcolor4:#f4f6f8;
    --e-global-color-astglobalcolor5:#ffffff;
    --e-global-color-astglobalcolor6:#e5eaee;
    --e-global-color-astglobalcolor7:#0b1420;
    --e-global-color-astglobalcolor8:#23262b;
}

/* ---------- 4. Bottoni: da pillola a rettangolo smussato ---------- */
.menu-toggle,
button,
.ast-button,
.ast-custom-button,
.button,
input#submit,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-block-button .wp-block-button__link,
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button{
    border-radius:6px !important;
    letter-spacing:.01em;
}

/* ---------- 5. Header ---------- */
.ast-primary-header-bar{
    border-bottom:1px solid #e2e5e8 !important;
}
.custom-logo-link img.custom-logo{
    max-height:56px;
    width:auto;
}

/* Menu principale: più respiro tra le voci */
.main-header-menu .menu-link{
    font-weight:600;
    font-size:14.5px;
    padding-left:14px !important;
    padding-right:14px !important;
}

/* Bottone header ("Take Action" nel builder) */
.ast-header-button-1 .ast-custom-button{
    padding:11px 26px;
}

/* ---------- 6. Breadcrumb ---------- */
.ast-breadcrumbs .trail-items,
.ast-breadcrumbs .trail-item{
    font-size:13px;
    color:var(--ast-global-color-3);
    text-transform:uppercase;
    letter-spacing:.03em;
}

/* ---------- 7. Spaziature pagine WooCommerce ---------- */
/* Spazio sotto header nelle categorie prodotto */
body.tax-product_cat #content{
    padding-top:35px;
}
/* Spazio superiore nelle pagine singolo prodotto */
body.single-product .site-content{
    padding-top:35px;
}

/* Pulsante "Aggiungi al carrello" nascosto nel singolo prodotto */
button.single_add_to_cart_button{
    display:none !important;
}

/* "Prezzo su richiesta" nascosto nella scheda del singolo prodotto */
body.single-product .summary .aip-price-on-request{
    display:none !important;
}

/* ---------- 8. Card prodotto ---------- */
/* Card in colonna (pulsante sempre in fondo) + hover leggero */
.woocommerce ul.products li.product,
.ast-woocommerce-container ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product{
    display:flex;
    flex-direction:column;
    border-radius:8px;
    transition:box-shadow .15s ease, transform .15s ease;
}
.woocommerce ul.products li.product:hover,
.ast-woocommerce-container ul.products li.product:hover{
    box-shadow:0 4px 14px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

/* Immagini tutte uguali, senza deformare */
.woocommerce ul.products li.product img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:contain;
    margin-bottom:12px;
}
.astra-shop-thumbnail-wrap img,
.woocommerce ul.products li.product img{
    border-radius:6px;
}

/* Spazio fisso per il titolo (circa 3 righe): il resto parte alla stessa altezza */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
    min-height:4.5em;
}

/* Pulsante sempre in fondo alla card */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{
    margin-top:auto;
}

/* ---------- 9. Punti elenco: triangolo, colore bottoni ----------
   Solo nei contenuti (descrizioni, articoli, tab prodotto), non nei
   menu (.menu, .sub-menu) né nelle griglie prodotto (ul.products). */
.entry-content ul:not(.menu):not(.sub-menu):not(.products),
.woocommerce-product-details__short-description ul,
.woocommerce-Tabs-panel ul:not(.menu):not(.sub-menu):not(.products){
    list-style:none;
    margin:0 0 18px;
    padding-left:2px;
}
.entry-content ul:not(.menu):not(.sub-menu):not(.products) li,
.woocommerce-product-details__short-description ul li,
.woocommerce-Tabs-panel ul:not(.menu):not(.sub-menu):not(.products) li{
    position:relative;
    padding-left:16px;
    margin-bottom:6px;
    line-height:1.55;
}
.entry-content ul:not(.menu):not(.sub-menu):not(.products) li::before,
.woocommerce-product-details__short-description ul li::before,
.woocommerce-Tabs-panel ul:not(.menu):not(.sub-menu):not(.products) li::before{
    content:"";
    position:absolute;
    left:0;
    top:.5em;
    width:0;
    height:0;
    border-top:4px solid transparent;
    border-bottom:4px solid transparent;
    border-left:6px solid var(--ast-global-color-0);
}

/* ---------- 10. Footer ----------
   Lo sfondo navy (#011627) è già impostato dal tema: qui solo
   leggibilità e spaziatura dei titoli widget. */
.site-footer .widget-title{
    font-size:14.5px;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:14px;
}
.site-footer .menu li{
    margin-bottom:8px;
}
.ast-footer-copyright p{
    font-size:13px;
    opacity:.85;
}

/* ---------- 11. Responsive ---------- */
@media (max-width:921px){
    .custom-logo-link img.custom-logo{
        max-height:44px;
    }
}



/* =========================================================
 * SCHEDA PRODOTTO – layout personalizzato
 * Incollare in fondo a astra-child/style.css
 * ========================================================= */

/* 2) Miniature galleria su una riga scorrevole */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    margin-top:10px;
    padding-bottom:6px;
}
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li{
    float:none !important;
    clear:none !important;
    width:auto !important;
    margin:0 !important;
    flex:0 0 calc((100% - 3 * 8px) / 4); /* 4 visibili; per 5: (100% - 4 * 8px) / 5 */
    scroll-snap-align:start;
}

/* 1) Schede + form preventivo affiancati al 50% */
.agri-product-bottom{
    display:flex;
    gap:32px;
    align-items:flex-start;
    clear:both;
    width:100%;
    margin-top:32px;
}
.agri-product-bottom > div{
    flex:0 0 calc(50% - 16px);
    min-width:0;
}
.agri-col-form{
    scroll-margin-top:120px; /* spazio per l'header fisso: aumentare se il box finisce sotto l'header */
}
/* Un solo box: niente box interno nei prodotti variabili */
.single-product .agri-col-form form.cart .woocommerce-variation-add-to-cart{
    background:none;
    border:0;
    padding:0;
    margin-top:0;
}

//* 3) Bottone "Richiedi preventivo" (salto al form) */
html:has(body.single-product){
    scroll-behavior:smooth;
}
.single-product .summary .agri-quote-jump-wrap{
    margin:16px 0;
}
.single-product .summary .agri-quote-jump{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:11px 22px;
    border-radius:8px;
    background:#0087b9;
    border:1px solid #0087b9;
    color:#ffffff !important;
    font-weight:600;
    font-size:14px;
    text-decoration:none !important;
    transition:background .15s ease, border-color .15s ease;
}
.single-product .summary .agri-quote-jump:hover,
.single-product .summary .agri-quote-jump:focus{
    background:#006f98;
    border-color:#006f98;
    color:#ffffff !important;
}

/* Tablet e mobile (breakpoint Astra) */
@media (max-width:921px){
    .agri-product-bottom{
        flex-direction:column;
    }
    .agri-product-bottom > div{
        flex-basis:100%;
        width:100%;
    }
}