/*!
Theme Name: larson child
Theme URI: https://bslthemes.site/larson/
Author: DAMC - Massimo D'Andrea (su base Larson / beshleyua)
Author URI: https://www.damc.it
Description: Larson Child Theme personalizzato per NewClimber S.r.l. - Architettura Portfolio Gutenberg & Schede Tecniche Realizzazioni.
Version: 1.4.5
License: General Public License
License URI: http://www.gnu.org/licenses/gpl.html
Template: larson
Text Domain: larson-child
Tags: full-width-template, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, theme-options
*/

/* ==========================================================================
   1. Sezione "Le nostre realizzazioni" (.latest-projects):
      Porta il filtro categorie a capo sotto il titolo evitando l'overflow orizzontale
   ========================================================================== */
@media (min-width: 768px) {
	.latest-projects__header {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		row-gap: 22px !important;
	}

	.latest-projects__heading {
		margin-right: auto !important;
		margin-bottom: 0 !important;
	}

	.latest-projects__filter {
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		flex-shrink: 1 !important;
		margin-left: 0 !important;
		margin-bottom: 0 !important;
		order: 3;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 10px 28px !important;
	}

	.latest-projects__filter .filter__item {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
}

.article__filter.filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
}

.article__filter.filter .filter__item {
	margin-right: 0 !important;
}

/* ==========================================================================
   2. Allineamento Blocco 04 ("Hai uno spazio? Iniziamo da lì.") con .container Larson
      Allinea testo e pulsante allo stesso margine sinistro del titolo (a destra del "04.")
   ========================================================================== */
.webpage__about-heading.about-block {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.webpage__about-heading .about-block__header {
	margin-bottom: 24px !important;
}

.elementor-widget-larson-heading ~ .elementor-widget-text-editor > .elementor-widget-container,
.elementor-widget-larson-heading ~ .elementor-widget-button > .elementor-widget-container {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
	position: relative;
	z-index: 2;
}

@media (min-width: 576px) {
	.elementor-widget-larson-heading ~ .elementor-widget-text-editor > .elementor-widget-container,
	.elementor-widget-larson-heading ~ .elementor-widget-button > .elementor-widget-container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.elementor-widget-larson-heading ~ .elementor-widget-text-editor > .elementor-widget-container,
	.elementor-widget-larson-heading ~ .elementor-widget-button > .elementor-widget-container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.elementor-widget-larson-heading ~ .elementor-widget-text-editor > .elementor-widget-container,
	.elementor-widget-larson-heading ~ .elementor-widget-button > .elementor-widget-container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.elementor-widget-larson-heading ~ .elementor-widget-text-editor > .elementor-widget-container,
	.elementor-widget-larson-heading ~ .elementor-widget-button > .elementor-widget-container {
		max-width: 1140px;
	}
}

.elementor-widget-larson-heading ~ .elementor-widget-text-editor p {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.65;
	margin-bottom: 28px;
}

.elementor-element-3401b35b {
	padding-bottom: 100px;
}

/* ==========================================================================
   3. Pagine Legali (Privacy & Cookie Policy / Termini e Condizioni)
   ========================================================================== */
.nc-legal-document {
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
	line-height: 1.75;
}

.nc-legal-document .nc-legal-lead {
	font-size: 17px;
	line-height: 1.75;
	color: #ffffff;
	background: rgba(255, 180, 0, 0.08);
	border-left: 4px solid #ffb400;
	padding: 18px 22px;
	margin-bottom: 32px;
	border-radius: 0 6px 6px 0;
}

.nc-legal-document h2 {
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	margin-top: 40px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nc-legal-document h3 {
	color: #ffb400;
	font-size: 18px;
	font-weight: 600;
	margin-top: 26px;
	margin-bottom: 12px;
}

.nc-legal-document p,
.nc-legal-document ul,
.nc-legal-document ol {
	margin-bottom: 18px;
}

.nc-legal-document ul,
.nc-legal-document ol {
	padding-left: 24px;
}

.nc-legal-document li {
	margin-bottom: 10px;
}

.nc-legal-document a {
	color: #ffb400;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nc-legal-document a:hover {
	color: #ffd05b;
}

.nc-legal-box {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 20px 24px;
	border-radius: 6px;
	margin: 18px 0 24px;
}

.nc-legal-box p {
	margin: 0;
}

.nc-legal-table-wrap {
	overflow-x: auto;
	margin: 16px 0 24px;
}

.nc-legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.nc-legal-table th,
.nc-legal-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nc-legal-table th {
	background: rgba(255, 180, 0, 0.12);
	color: #ffb400;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.nc-legal-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #ffb400;
	border: 1px solid #ffb400;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nc-legal-btn:hover {
	background: #ffb400;
	color: #141414;
}

.nc-legal-updated {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   4. Cookie Banner Nativo GDPR (Linee Guida Garante Privacy + Consent Mode v2)
   ========================================================================== */
.nc-cookie-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	max-width: 980px;
	margin: 0 auto;
	background: rgba(22, 22, 22, 0.98);
	color: #f3f4f6;
	border: 1px solid rgba(255, 180, 0, 0.45);
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(10px);
	font-family: inherit;
}

.nc-cookie-banner__inner {
	position: relative;
	padding: 24px 28px;
}

.nc-cookie-banner__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 4px;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nc-cookie-banner__close:hover {
	border-color: #ffb400;
	color: #ffb400;
	background: rgba(255, 180, 0, 0.1);
}

.nc-cookie-banner__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	padding-right: 42px;
}

.nc-cookie-banner__badge {
	display: inline-block;
	background: rgba(255, 180, 0, 0.15);
	color: #ffb400;
	border: 1px solid rgba(255, 180, 0, 0.4);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 9px;
	border-radius: 3px;
}

.nc-cookie-banner__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.nc-cookie-banner__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.nc-cookie-banner__text a {
	color: #ffb400;
	text-decoration: underline;
}

.nc-cookie-banner__prefs {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.nc-cookie-pref-item {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-cookie-pref-item:last-of-type {
	border-bottom: none;
}

.nc-cookie-pref-item__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
}

.nc-cookie-pref-item__label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: #ffb400;
}

.nc-cookie-tag-always {
	font-style: normal;
	font-size: 12px;
	color: #ffb400;
	margin-left: 4px;
}

.nc-cookie-pref-item__desc {
	margin: 5px 0 0 27px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}

.nc-cookie-banner__prefs-actions {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.nc-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Pari dignita visiva dei pulsanti come prescritto dal Garante Privacy */
.nc-cookie-btn--equal {
	flex: 1 1 150px;
	max-width: 210px;
	min-height: 42px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px;
	border: 1px solid #ffb400;
	background: rgba(255, 180, 0, 0.12);
	color: #ffffff;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
}

.nc-cookie-btn--equal:hover {
	background: #ffb400;
	color: #141414;
}

.nc-cookie-btn--accent {
	background: #ffb400;
	color: #141414;
}

.nc-cookie-btn--accent:hover {
	background: #ffc42e;
	color: #141414;
}

.nc-cookie-floating-trigger {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	background: rgba(22, 22, 22, 0.9);
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 180, 0, 0.4);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nc-cookie-floating-trigger:hover {
	color: #141414;
	background: #ffb400;
	border-color: #ffb400;
}

@media (max-width: 767px) {
	.nc-cookie-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.nc-cookie-banner__inner {
		padding: 18px 16px;
	}
	.nc-cookie-btn--equal {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

