/* css/common.css - Stili Comuni e Globali per BresciaPC Child Theme v1.0 */

/*--------------------------------------------------------------
# 0. Root Variables & Global Settings
--------------------------------------------------------------*/
:root {
	/* === Palette Colori === */
	--bspc-blue-primary: #0071e3; /* Blu Apple primario */
	--bspc-blue-hover: #0077ed;   /* Blu Apple hover */
	--bspc-green-primary: #34c759; /* Verde Apple */
	--bspc-green-hover: #2fa94e;   /* Verde Apple hover */
	--bspc-red-error: #e02020;     /* Rosso per errori/rimozioni */
	--bspc-text-primary: #1d1d1f;   /* Nero/Grigio scuro testo */
	--bspc-text-secondary: #515154; /* Grigio medio testo */
	--bspc-text-light: #6e6e73;     /* Grigio chiaro testo (footer) */
	--bspc-text-placeholder: #aaa;  /* Grigio placeholder input */
	--bspc-bg-light: #f5f5f7;      /* Grigio chiaro sfondo (footer, sezioni) */
	--bspc-bg-white: #ffffff;      /* Bianco */
	--bspc-border-light: #e0e0e0;  /* Bordo chiaro */
	--bspc-border-medium: #d2d2d7; /* Bordo medio */
	--bspc-border-dark: #ccc;      /* Bordo scuro */

	/* === Layout & Spacing === */
	--bspc-content-width: 1120px;
	--bspc-content-width-wider: 1200px;
	--bspc-grid-gap: clamp(15px, 3vw, 20px);
	--bspc-mobile-padding: 15px;
	--bspc-desktop-padding: 20px;

	/* === Bordi & Ombre === */
	--bspc-radius-small: 8px;
	--bspc-radius-medium: 14px;
	--bspc-radius-large: 18px;
	--bspc-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.04);
	--bspc-shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.07);
	--bspc-shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);

	/* === Font === */
	--bspc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* === Header Variables (Per padding-top globale e accessibili da altri CSS) === */
	--header-height-desktop: 65px;
	--header-height-mobile: 60px;
    /* Altre variabili specifiche dell'header possono rimanere in header.css */
}

/* Applica il font di base al body */
body {
	font-family: var(--bspc-font-family);
	color: var(--bspc-text-primary);
    background-color: var(--bspc-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0; /* Reset margine body */
}

html {
	scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# 1. RESET BASE E UTILITY
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal;
	white-space: nowrap;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	outline: none;
}

body.no-scroll {
	overflow: hidden !important;
}

a.skip-link {
    /* Usa .screen-reader-text per nascondere di default */
}

/*--------------------------------------------------------------
# STILE GENERICO PER SEZIONI (.bpc-section)
--------------------------------------------------------------*/
.bpc-section {
    max-width: var(--bspc-content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bspc-desktop-padding);
    padding-right: var(--bspc-desktop-padding);
    box-sizing: border-box;
    clear: both;
}
.bpc-section.bpc-section-styled { /* Per sezioni con sfondo/bordi custom */
    margin-top: clamp(30px, 5vh, 50px);
    margin-bottom: clamp(30px, 5vh, 50px);
    /* background, border, radius, shadow verranno applicati specificamente */
}
.bpc-section.bpc-section-wider {
     max-width: var(--bspc-content-width-wider);
}
@media (max-width: 1160px) {
    .bpc-section {
        padding-left: var(--bspc-mobile-padding);
        padding-right: var(--bspc-mobile-padding);
    }
}

/*--------------------------------------------------------------
# STILI PER TESTO SEO DINAMICO (product-seo-text-block / dynamic-category-seo-text)
--------------------------------------------------------------*/
.product-seo-text-block,
.dynamic-category-seo-text {
    /* .bpc-section gestisce padding e margini laterali */
    margin-top: clamp(40px, 6vh, 60px); /* Sovrascrive .bpc-section-styled se necessario */
    margin-bottom: clamp(40px, 6vh, 60px);
    padding-top: clamp(25px, 4vw, 35px);
    padding-bottom: clamp(25px, 4vw, 35px);
    background-color: var(--bspc-bg-light);
    border: 1px solid var(--bspc-border-light);
    border-radius: var(--bspc-radius-large);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--bspc-text-secondary);
    box-shadow: var(--bspc-shadow-light);
}
.product-seo-text-block h3,
.dynamic-category-seo-text h2 {
    color: var(--bspc-text-primary);
    font-size: clamp(1.4rem, 4vw, 1.7rem);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.3;
    text-align: left;
}
.product-seo-text-block h4 {
    font-size: 1.15rem; font-weight: 600; margin-top: 1.8em; margin-bottom: 0.8em; color: var(--bspc-text-primary);
}
.product-seo-text-block p, .dynamic-category-seo-text p { margin-bottom: 1.2em; }
.product-seo-text-block ul, .dynamic-category-seo-text ul { list-style: disc; padding-left: 25px; margin-bottom: 1.2em; margin-left: 5px; }
.product-seo-text-block li, .dynamic-category-seo-text li { margin-bottom: 0.6em; }
.product-seo-text-block strong, .dynamic-category-seo-text strong { font-weight: 600; color: var(--bspc-text-primary); }
.product-seo-text-block a, .dynamic-category-seo-text a { color: var(--bspc-blue-primary); text-decoration: underline; }
.product-seo-text-block a:hover, .dynamic-category-seo-text a:hover { text-decoration: none; }

.dynamic-category-seo-text p.bpc-category-seo-final-paragraph {
    padding: 25px; margin-top: 30px !important; border-top: 1px solid var(--bspc-border-medium);
    background-color: rgba(0,0,0,0.02); border-radius: var(--bspc-radius-medium); text-align: center;
    line-height: 1.7; font-size: 0.95rem; color: var(--bspc-text-secondary);
}
.dynamic-category-seo-text p.bpc-category-seo-final-paragraph strong {
    display: block; margin-bottom: 10px; font-size: 1.1em; color: var(--bspc-text-primary);
}
@media (max-width: 767px) {
    .dynamic-category-seo-text h2 { font-size: clamp(1.3rem, 5vw, 1.5rem); text-align: center; }
    .dynamic-category-seo-text p { font-size: 0.9rem; }
    .dynamic-category-seo-text p.bpc-category-seo-final-paragraph { padding: 20px; font-size: 0.9rem; }
}




/*--------------------------------------------------------------
# STILI PER DESCRIZIONE LUNGA PRODOTTO (product-full-description)
--------------------------------------------------------------*/
.product-full-description.bpc-section {
    margin-top: clamp(30px, 5vh, 50px) !important;
    padding-top: clamp(25px, 4vh, 35px) !important;
    padding-bottom: clamp(25px, 4vh, 35px); /* Aggiunto padding bottom */
	border-top: 1px solid var(--bspc-border-medium) !important;
    margin-bottom: clamp(30px, 5vh, 50px) !important;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bspc-text-secondary);
    max-width: 800px;
}
.product-full-description h2,
.product-full-description h3,
.product-full-description h4 {
    color: var(--bspc-text-primary); margin-top: 1.8em; margin-bottom: 0.8em;
    line-height: 1.4; font-weight: 600;
}
.product-full-description h2 { font-size: 1.6rem; }
.product-full-description h3 { font-size: 1.4rem; }
.product-full-description h4 { font-size: 1.2rem; }
.product-full-description p,
.product-full-description ul,
.product-full-description ol { margin-bottom: 1.2em; }
.product-full-description ul:not([class]),
.product-full-description ol:not([class]) { padding-left: 25px; margin-left: 5px; }
.product-full-description li { margin-bottom: 0.6em; }
.product-full-description strong { font-weight: 600; color: var(--bspc-text-primary); }
.product-full-description a { color: var(--bspc-blue-primary); text-decoration: underline; transition: color 0.2s ease; }
.product-full-description a:hover { color: var(--bspc-blue-hover); text-decoration: none; }
.product-full-description img { max-width: 100%; height: auto; border-radius: var(--bspc-radius-small); margin: 1em 0; }

/*--------------------------------------------------------------
# STILI PER AVVISO RECUPERO DATI (product-data-recovery-notice)
--------------------------------------------------------------*/
.product-data-recovery-notice {
	margin-top: 25px !important;
	padding: 18px 22px !important;
	border: 1px solid var(--bspc-border-medium) !important;
	background-color: #f0f6fc !important;
    border-left: 4px solid var(--bspc-blue-primary) !important;
	border-radius: 0 var(--bspc-radius-small) var(--bspc-radius-small) 0 !important;
	clear: both;
    max-width: 800px;
    margin-left: auto; margin-right: auto; margin-bottom: 25px;
    box-shadow: var(--bspc-shadow-light);
}
.product-data-recovery-notice p { margin: 0 !important; font-size: 0.9em !important; line-height: 1.55 !important; color: var(--bspc-text-secondary) !important; text-align: left; }
.product-data-recovery-notice strong { color: var(--bspc-text-primary) !important; font-weight: 600; }