/* Correzioni di impaginazione di www.cuttalo.com (Claude, 21 nov 2026, dagli screen completi a 1440/1024/768/390).
   Solo CSS, caricato per ultimo da mu-plugins/cuttalo-impaginazione.php. Per tornare indietro: togliere i due file. */

/* ── 1. Banner cookie ───────────────────────────────────────────────────────────────────────────────────────── */
/* il pannello delle preferenze chiuso aveva altezza 0 ma 16-20 px di imbottitura: spuntava «Cookie Necessari» */
#gcc-banner .gcc-banner-body:not(.gcc-expanded) { padding-top: 0 !important; padding-bottom: 0 !important; border: 0 !important; }
/* «Rifiuta tutti» con lo stesso peso di «Personalizza» (prima era grigio e minuscolo) */
#gcc-banner .gcc-banner-actions .gcc-btn-text { border: 2px solid var(--gcc-primary-color, #111) !important; color: var(--gcc-primary-color, #111) !important; background: #fff !important; font-weight: 600 !important; }
/* fra 769 e 1180 px il testo non si tronca con «…»: va a capo */
@media (min-width: 769px) and (max-width: 1180px) {
	#gcc-banner .gcc-banner-content { white-space: normal !important; }
	#gcc-banner .gcc-banner-description { line-height: 1.35 !important; }
}
/* tablet e telefono: testo a tutta larghezza, tre pulsanti uguali sotto, alti 44 px */
@media (max-width: 768px) {
	#gcc-banner .gcc-banner-header { flex-direction: column !important; align-items: stretch !important; flex-wrap: wrap !important; padding: 12px 16px !important; gap: 10px !important; }
	#gcc-banner .gcc-banner-content { white-space: normal !important; width: 100% !important; overflow: visible !important; }
	#gcc-banner .gcc-banner-title { font-size: 14px !important; }
	#gcc-banner .gcc-banner-description { font-size: 13px !important; line-height: 1.4 !important; }
	#gcc-banner .gcc-banner-actions { width: 100% !important; gap: 8px !important; }
	#gcc-banner .gcc-banner-actions .gcc-btn { flex: 1 1 0 !important; min-height: 44px !important; font-size: 13px !important; padding: 8px 6px !important; }
}

/* ── 2. Testata: «Accedi o Registrati» turchese su grigio era quasi invisibile ──────────────────────────────── */
#openLoginPopup { color: #fff !important; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }

/* ── 3. Piè di pagina: testi a 8-10 px ───────────────────────────────────────────────────────────────────────── */
.themify_builder_content-2168 .module-text p { font-size: 13px !important; line-height: 1.45 !important; }
.module-text.tb_tnat265 p, .module-text.tb_chfp53 p { font-size: 12.5px !important; line-height: 1.6 !important; }
.module-text.tb_tnat265 a, .module-text.tb_chfp53 a { font-size: inherit !important; white-space: nowrap; }

/* ── 4. Avvisi WooCommerce (carrello vuoto): uscivano dal bordo a 390 px ─────────────────────────────────────── */
.woocommerce-info, .woocommerce-message, .woocommerce-error { box-sizing: border-box !important; max-width: 100%; }

/* ── 5. Stelline dei prodotti correlati: in alcune pagine il font «star» non c'era e si leggeva «sssss» ───────── */
@font-face { font-family: star; src: url("/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff2") format("woff2"), url("/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"); font-weight: 400; font-style: normal; font-display: block; }

/* ── 6. Schede prodotto: margini laterali uguali a tutte le larghezze ───────────────────────────────────────────
   A 1024 il contenuto toccava i bordi (o usciva di 10-20 px a destra), al telefono il margine era di 10 px. */
@media (min-width: 769px) and (max-width: 1479px) {
	body.single-product #layout.pagewidth { width: auto !important; max-width: none !important; margin-left: 20px !important; margin-right: 20px !important; }
}
@media (max-width: 768px) {
	body.single-product #layout.pagewidth { width: auto !important; margin-left: 16px !important; margin-right: 16px !important; }
}
/* il riquadro della scheda era largo il 100 % più l'imbottitura */
body.cog-scheda #content div.product div.summary, body.cog-scheda div.product div.summary,
body.cnc-scheda #content div.product div.summary, body.cnc-scheda div.product div.summary { box-sizing: border-box !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: auto !important; margin-right: auto !important; }
body.cnc-scheda div.product > .related, body.cnc-scheda .cnc-descrizione { box-sizing: border-box; padding-left: 0; padding-right: 0; }
/* configuratore del taglio laser: largo 100 % + 20 px di imbottitura */
#laser-cutting-a { box-sizing: border-box !important; max-width: 100%; }

/* ── 7. Configuratori «oggetti» (trofei, segnaposto, portachiavi) ───────────────────────────────────────────── */
/* il tema dava ai campi un margine di 15 px a destra e 9 sotto: il campo della quantità sporgeva fra − e + */
.cog-app :is(input, select, textarea) { margin: 0 !important; }
.cog-app .ls-quantity input { border-radius: 0 !important; box-shadow: none !important; }
/* testo minuscolo (9,6 px) nei passi, nelle schede e sotto i modelli */
.cog-app small, .cog-app .cf-solo-tocco, .cog-app .cf-solo-mouse { font-size: 12px !important; line-height: 1.35 !important; }
/* le stelline isolate in fondo alla colonna sinistra: le recensioni sono già nel blocco sotto */
body.cog-scheda div.product div.summary > .woocommerce-product-rating { display: none !important; }
/* foto sotto l'anteprima su una sola riga che scorre: niente foto orfane, colonna sinistra più bassa */
.cog-app .cog-galleria-mini { display: flex !important; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.cog-app .cog-galleria-mini > button { flex: 0 0 92px; width: 92px !important; height: 92px !important; scroll-snap-align: start; }

/* ── 8. Numeri civici ───────────────────────────────────────────────────────────────────────────────────────── */
.cnc small { font-size: 12px !important; line-height: 1.35 !important; }
@media (max-width: 600px) {
	.cnc-guida-tabella { table-layout: fixed; width: 100%; }
	.cnc-guida-tabella th, .cnc-guida-tabella td { overflow-wrap: anywhere; hyphens: auto; font-size: 13.5px !important; padding: 7px 5px !important; vertical-align: top; }
}

/* ── 9. Stencil da testo al telefono: la griglia si allargava a 477 px e il configuratore era tagliato ────────── */
@media (max-width: 768px) {
	.csd-wrapper { grid-template-columns: minmax(0, 1fr) !important; }
	.csd-wrapper > * { min-width: 0 !important; max-width: 100% !important; }
	.csd-dimensions-controls { flex-wrap: wrap !important; row-gap: 10px; }
	.csd-dimensions-info { overflow: hidden; }
}

/* ── 10. Home: schede prodotto troppo strette a desktop (testo in 150 px, titoli fuori dal riquadro) ─────────── */
@media (min-width: 1025px) {
	body.home .module_subrow.col_align_middle:has(> .sub_column > .module-image):has(> .sub_column > .module-text h3) { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "col1" "col2" !important; }
	body.home .module_subrow.col_align_middle:has(> .sub_column > .module-image):has(> .sub_column > .module-text h3) > .sub_column { width: auto !important; }
	body.home .module_subrow.col_align_middle:has(> .sub_column > .module-image):has(> .sub_column > .module-text h3) .module-text { margin: -28px 14px 0 !important; position: relative; z-index: 1; }
}
body.home .module-text h3 { overflow-wrap: break-word; }
/* materiali e competenze: etichette accavallate a 768 e 390 */
@media (max-width: 900px) {
	body.home .module_subrow:has(> .sub_column .module-image .image-title) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; row-gap: 18px; grid-template-areas: none !important; }
	body.home .module_subrow:has(> .sub_column .module-feature-title) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 18px; grid-template-areas: none !important; }
	body.home .module_subrow:has(> .sub_column .module-image .image-title) > .sub_column, body.home .module_subrow:has(> .sub_column .module-feature-title) > .sub_column { grid-area: auto !important; width: auto !important; }
	body.home .module-image .image-title, body.home .module-feature-title { font-size: 14px !important; line-height: 1.25 !important; }
}
@media (max-width: 600px) {
	body.home .module_subrow:has(> .sub_column .module-image .image-title) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	body.home .module_subrow:has(> .sub_column .module-feature-title) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ── 11. Pagina inglese: il titolo grande a 768 px andava sopra il sottotitolo ───────────────────────────────── */
@media (max-width: 900px) {
	.module-text.tb_xa5z360 { height: auto !important; }
	.module-text.tb_xa5z360 h1 { font-size: 34px !important; line-height: 1.12 !important; }
}

/* ── 12. Contatti: numeri di telefono e IBAN spezzati a 768 px ───────────────────────────────────────────────── */
a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 601px) and (max-width: 900px) {
	.module_row.tb_na29983 > .row_inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 12px; }
}
