/*
Theme Name: 	Bondolfi
Theme URI: 	http://html5blank.com
Description: 	HTML5 Blank WordPress Theme
Version: 	1.2.6
Author: 	Gabriel Nastase
Author URI: 	http://www.gabrielnastase.com
Tags: 		Blank, HTML5, CSS3

License:	MIT
License URI:	http://opensource.org/licenses/mit-license.php
*/

/* =============================================================================
   HTML5 Reset
   ========================================================================== */

	article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {display:block;}
	audio, canvas, video {display:inline-block;*display:inline;*zoom:1;}
	audio:not([controls]) {display:none;}
	[hidden] {display:none;}

	html {font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
	body {margin:0;font-size:1em;line-height:1;}
	p {margin:0;padding:0;}

	h1,h2,h3,h4,h5,h6 {text-decoration:none;padding:0;margin:0;}

	a {text-decoration:none;color:inherit;}
	a:focus {outline:0;}
	a:hover, a:active {outline:0;}

	abbr[title] {border-bottom:1px dotted;}
	b, strong {font-weight:bold;}
	.clear {clear:both;}
	dfn {font-style:italic;}
	hr {display:block;height:1px;border:0;border-top:1px solid #333;margin:1em 0;padding:0;}
	ins {background:#FF9;color:#000;text-decoration:none;}
	mark {background:#FF0;color:#000;font-style:italic;font-weight:bold;}
	pre, code, kbd, samp {font-family:monospace,serif;font-size:1em;}
	pre {white-space:pre;white-space:pre-wrap;word-wrap:break-word;}
	q {quotes:none;}
	q:before, q:after {content:"";content:none;}
	small {font-size:90%;}
	blockquote {background:#f4f4f4;border-left:4px solid #314371;margin:10px 0;padding:16px 24px;}

	sub, sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
	sup {top:-0.5em;}
	sub {bottom:-0.25em;}

	ul {margin:0;padding:0;list-style:none;}
	ol {margin:15px;}

	dd {margin:0 0 0 40px;}
	nav ul, nav ol {list-style:none;list-style-image:none;margin:0;padding:0;}

	img {border:0;vertical-align:middle;max-width:100%;display:block;}

	svg:not(:root) {overflow:hidden;}

	figure {margin:0;}
	form {margin:0;}
	fieldset {border:0;margin:0;padding:0;}
	label {cursor:pointer;}
	button, input, select, textarea {font-size:100%;margin:0;vertical-align:baseline;}
	button, input {line-height:normal;}
	button, input[type="button"], input[type="reset"], input[type="submit"] {cursor:pointer;-webkit-appearance:none;}
	textarea {overflow:auto;vertical-align:top;resize:vertical;}

	table {border-collapse:collapse;border-spacing:0;}
	td {vertical-align:top;}

	*, *::before, *::after {box-sizing:border-box;}
	.alignnone {margin: 0;}
/* =============================================================================
   Variables
   ========================================================================== */

	:root {
		/* === BONDOLFI palette (da metal-bondolfi.ch) === */
		--color-bg:            #f6f6f6;   /* sfondo chiaro principale */
		--color-bg-dark:       #222222;   /* antracite sezioni scure/nav */
		--color-white:         #ffffff;
		--color-gray:          #888888;   /* grigio medio (bottoni/cemento) */
		--color-gray-dark:     #1b1b1b;   /* quasi nero, titoli su chiaro */
		--color-gray-mid:      #c5c5c5;   /* grigio chiaro (link su scuro) */
		--color-text:          #333333;   /* testo principale */
		--color-steel:         #31436a;   /* blu acciaio — accento brand */
		--color-steel-dark:    #243252;   /* blu acciaio scuro (hover) */
		--color-steel-light:   #4a5f8f;   /* blu acciaio chiaro */
		--font-display:        'Helvetica Neue', Helvetica, Arial, sans-serif;
		--font-heading:        'Helvetica Neue', Helvetica, Arial, sans-serif;
		--font-body:           'Helvetica Neue', Helvetica, Arial, sans-serif;
		--max-width:           1200px;
		--header-height:       60px;
	}

/* =============================================================================
   Base
   ========================================================================== */

	html {
		scroll-behavior: smooth;
	}

	body {
		font-family: var(--font-body);
		font-size: 1.1rem;
		font-weight: 400;
		line-height: 1.6;
		background: #fff;
		color: var(--color-text);
		overflow-x: hidden;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	h2 {
		font-size: 4rem;
		line-height: 1.2;
		margin-bottom: 20px;
		margin-top: 20px;
	}
	.h2-centre, .single-title {
		text-align: center;
		text-transform: uppercase;
		letter-spacing: 15px;
	}
/* =============================================================================
   Layout
   ========================================================================== */

	.container {
		max-width: var(--max-width);
		margin: 0 auto;
	}

	/* Offset for fixed header — outer page shell */
	.page-body {
		padding-top: 0;
	}
	.fullwidth, .fullwidth img{
		width: 100%;
	}
	/* Reusable content wrapper — max-width + vertical breathing room */
	.wrapper {
		max-width: var(--max-width);
		margin: 0 auto!important;
	}
	.wrap-left {
		padding-left: calc( (100% - var(--max-width) ) / 2);
	}
	.wrap-right {
		padding-right: calc( (100% - var(--max-width) ) / 2);
	}
	.content-padding {
		padding-top: 100px;
		padding-bottom: 100px;
	}
	.content-padding-s {
		padding-top: 50px;
		padding: 50px;
	}
	.rounded, .rounded img {
		border-radius: 10px;
	}
	.page-header h1 {
		font-size: 4.4rem;
		text-shadow: 4px 4px 2px rgba(0,0,0,.28);
	}
	.intro .payoff {
		letter-spacing: 10px;
		text-shadow: 3px 3px 2px rgba(0,0,0,.28);
		margin-bottom: 40px
	}
	.bg-metal {
		background-image: url(img/texture.jpg);
		background-size: cover;
}
	.bg-metal-light {
		background-image: url(img/texture-light2.jpg);
		background-size: cover;
		background-attachment: fixed;
	}
	.padding-left {
		padding-left: 2em;
	}
	.no-margin {
		margin: 0;
	}
	.no-margin-top {
		margin-top: 0;
	}
	.kt-blocks-carousel .kadence-blocks-gallery-item__caption strong {
		color: var(--color-steel);
		font-size: 1.2rem;
	}
	.video-blend-screen video {
		mix-blend-mode: screen;
	}
/* =============================================================================
   Navigazione condivisa
   ========================================================================== */

	.nav { display: flex; align-items: center; }
	.nav ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
	.nav ul li { position: relative; }
	.nav .current_page_item a {
		background: var(--color-steel-light) !important;
	}

	.nav-toggle {
		display: none;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 22px;
		height: 32px;
		padding: 0;
		background: none;
		border: 0;
	}
	.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: .3s; }
	.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle.open span:nth-child(2) { opacity: 0; }
	.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.nav-mobile {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 1050;
		align-items: center;
		justify-content: center;
		background: rgba(36, 45, 84, .98);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .3s ease, visibility 0s linear .3s;
	}
	.nav-mobile.open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}
	.nav-mobile-close {
		position: absolute;
		top: 20px;
		right: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 2rem;
		line-height: 1;
	}
	.nav-mobile-close:hover,
	.nav-mobile-close:focus-visible { color: var(--color-gray-mid); }
	.nav-mobile ul { margin: 0; padding: 0; text-align: center; list-style: none; }
	.nav-mobile a {
		display: block;
		padding: 12px 20px;
		color: #fff;
		font-size: 1.8rem;
		font-weight: 400;
		text-transform: uppercase;
	}
	.nav-mobile .current_page_item a { background: var(--color-steel-light) !important; }

/* =============================================================================
   Header
   ========================================================================== */

	.bondolfi-header,
	header.bondolfi-header {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		left: 0;
		width: 100%;
		z-index: 1000;
		background: transparent;
		color: var(--color-white);
	}

	.bondolfi-topbar {
		height: 72px;
		background-color: #bfc2c4;
		background-image: url(img/texture.jpg);
		background-size: cover;
		overflow: visible;
	}

	.bondolfi-topbar-inner,
	.bondolfi-navbar-inner {
		width: 100%;
		height: 100%;
		margin: 0 auto;
		padding: 0 36px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.bondolfi-logo,
	.header .bondolfi-logo {
		display: block;
		width: 245px;
		max-width: none;
		border-radius: 0;
		position: relative;
		z-index: 2;
		transform: translateY(0);
	}

	.bondolfi-logo::after {
		content: 'METALCOSTRUZIONI';
		position: absolute;
		top: 70px;
		right: 17px;
		color: #fff;
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
		font-size: 15px;
		font-weight: 500;
		letter-spacing: .02em;
		white-space: nowrap;
	}

	.bondolfi-logo img,
	.header .bondolfi-logo img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 0;
	}

	.bondolfi-contact {
		display: flex;
		align-items: center;
		gap: 30px;
		color: #fff;
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
		font-size: 1rem;
		font-weight: 500;
		text-shadow: 0 1px 2px rgba(0,0,0,.18);
	}

	.header .bondolfi-email,
	.bondolfi-email {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		color: #fff;
		white-space: nowrap;
	}

	.bondolfi-email i { width: 26px; font-size: 24px; text-align: center; }
	.header .bondolfi-email:hover { color: var(--color-steel); }

	.bondolfi-languages, .bondolfi-languages ul {
		display: flex;
		align-items: center;
		gap: 18px;
		font-size: .9rem;
		font-weight: 500;
	}
	 .bondolfi-languages ul a {
		text-transform: uppercase;
		color: #fff;
	 }
	 .bondolfi-languages ul .current-lang a { color: var(--color-steel); }
	.bondolfi-languages span { color: rgba(255,255,255,.92); }

	.bondolfi-navbar {
		height: 40px;
		background: #31436a;
	}

	.bondolfi-navbar-inner { justify-content: flex-end; }

	.bondolfi-navbar .nav ul {
		gap: 0;
		justify-content: flex-end;
	}

	.bondolfi-navbar .nav ul li a,
	.header .bondolfi-navbar .nav ul li a {
		display: block;
		padding: 10px 24px 9px;
		color: #fff;
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
		font-size: .95rem;
		font-weight: 500;
		line-height: 1;
		letter-spacing: 0;
		text-transform: uppercase;
		background: transparent;
		border-radius: 0;
		transition: all .2s ease;
	}

	.bondolfi-navbar .nav ul li a:hover {
		color: #fff;
		background: rgba(255,255,255,.10);
	}

	.bondolfi-navbar .nav ul li.current-menu-item > a { background: transparent; }

	.bondolfi-navbar .nav ul li.current-menu-item > a::after { display: none; }
	.bondolfi-navbar .nav-toggle { margin-left: auto; }

/* =============================================================================
   Footer
   ========================================================================== */

	.footer { 
		background-image: url(img/texture.jpg);
		background-size: cover;
		padding: 60px 0 40px;
		text-align: center;
		background-attachment: fixed;
	}
	.footer .dpstudio-logo img {
		max-width: 120px;
		margin: 20px auto;
	}

/* =============================================================================
   WordPress Core CSS Styles
   ========================================================================== */

	.aligncenter,div.aligncenter {display:block;margin:5px auto 5px auto;}
	.alignright {float:right;margin:5px 0 20px 20px;}
	.alignleft {float:left;margin:5px 20px 20px 0;}
	a img.alignright {float:right;margin:5px 0 20px 20px;}
	a img.alignnone {margin:5px 20px 20px 0;}
	a img.alignleft {float:left;margin:5px 20px 20px 0;}
	a img.aligncenter {display:block;margin-left:auto;margin-right:auto;}
	.wp-caption {background:#111;border:1px solid #222;max-width:96%;padding:5px 3px 10px;text-align:center;}
	.wp-caption.alignnone {margin:5px 20px 20px 0;}
	.wp-caption.alignleft {margin:5px 20px 20px 0;}
	.wp-caption.alignright {margin:5px 0 20px 20px;}
	.wp-caption img {border:0 none;height:auto;margin:0;max-width:98.5%;padding:0;width:auto;}
	.wp-caption p.wp-caption-text,.gallery-caption {font-size:0.79rem;line-height:17px;margin:0;padding:0 4px 5px;}
	.sticky {}
	.bypostauthor {}

	.wp-block-buttons .wp-block-button__link {
		transition: all 0.3s;
	}
	.wp-block-buttons .wp-block-button__link:hover {
		background: var(--color-steel)!important;
		color: #fff!important;
	}

/* =============================================================================
   Tipografia e contenuti Bondolfi
   ========================================================================== */

	h1, h2, h3, h4, h5, h6 {
		font-family: var(--font-heading);
		font-weight: 400;
		color: var(--color-gray-dark);
		text-transform: uppercase;
	}
	h3 {
		color: var(--color-steel);
	}
	a { color: var(--color-steel); transition: color .2s ease; }
	a:hover { color: var(--color-steel-dark); }
	article, .entry-content, .post-content { color: var(--color-text); }

/* =============================================================================
   Gutenberg — Palette e pulsanti Versione A
   ========================================================================== */

	.wp-block-button .wp-block-button__link {
		min-height: 52px;
		padding: 15px 30px;
		border: 1px solid transparent;
		border-radius: 0;
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
		font-size: 1rem;
		font-weight: 400;
		line-height: 1.2;
		letter-spacing: 0;
		text-transform: uppercase;
		box-shadow: none;
		transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	}

	.wp-block-button:not(.is-style-bondolfi-light):not(.is-style-bondolfi-outline):not(.is-style-outline) .wp-block-button__link,
	.wp-block-button.is-style-bondolfi-primary .wp-block-button__link {
		background: #314371 !important;
		color: #fff !important;
		border-color: #314371 !important;
	}

	.wp-block-button:not(.is-style-bondolfi-light):not(.is-style-bondolfi-outline):not(.is-style-outline) .wp-block-button__link:hover,
	.wp-block-button.is-style-bondolfi-primary .wp-block-button__link:hover {
		background: #242d54 !important;
		color: #fff !important;
		border-color: #242d54 !important;
	}

	.wp-block-button.is-style-bondolfi-light .wp-block-button__link {
		background: #fff !important;
		color: #314371 !important;
		border-color: #fff !important;
	}

	.wp-block-button.is-style-bondolfi-light .wp-block-button__link:hover {
		background: #f4f4f4 !important;
		color: #242d54 !important;
		border-color: #f4f4f4 !important;
	}

	.wp-block-button.is-style-bondolfi-outline .wp-block-button__link,
	.wp-block-button.is-style-outline .wp-block-button__link {
		background: transparent !important;
		color: #314371 !important;
		border: 1px solid #314371 !important;
	}

	.wp-block-button.is-style-bondolfi-outline .wp-block-button__link:hover,
	.wp-block-button.is-style-outline .wp-block-button__link:hover {
		background: #314371 !important;
		color: #fff !important;
	}

/* =============================================================================
   Responsive
   ========================================================================== */
	@media (max-width: 1200px) {
		.wrap-left { padding-left: 20px; }
		.wrap-right { padding-right: 20px; }
	}
	@media (max-width: 900px) {
		.bondolfi-topbar { height: 66px; }
		.bondolfi-topbar-inner,
		.bondolfi-navbar-inner { padding: 0 14px; }
		.bondolfi-logo,
		.header .bondolfi-logo { width: 200px; }
		.bondolfi-email span { display: none; }
		.bondolfi-contact { gap: 18px; }
		.bondolfi-navbar { height: 44px; }
		.header .nav-toggle { display: flex; }
		.nav { display: none; }
		.nav-toggle { display: flex; }
		.container, .wrapper { padding-left: 14px; padding-right: 14px; }
		.padding-left { padding-left: 14px; }
		.wrap-left { padding-left: 14px; }
		.wrap-right { padding-right: 14px; }
		.portfolio-grid { grid-template-columns: 1fr; gap: 30px; }
		.page-header h1 {
			font-size: 3.2rem;
			text-shadow: 3px 3px 2px rgba(0,0,0,.28);
		}
		h2 { font-size: 2.8rem; margin-top: 0;}
		.content-padding { padding-top: 40px; padding-bottom: 40px; }
		.intro .payoff {
			letter-spacing: 6px;
			text-shadow: 2px 2px 2px rgba(0,0,0,.28);
			margin-bottom: 20px;
			margin-top: 20px;
			font-size: 1.4rem!important;
		}
		.has-large-font-size { font-size: 1.4rem!important; }
		.has-background {
			padding: 14px 0;
		}
	}

	@media (max-width: 480px) {
		.bondolfi-topbar { height: 46px; }
		.bondolfi-navbar { height: 32px; }
		.bondolfi-logo,
		.header .bondolfi-logo { width: 164px; }
		.bondolfi-email { display: none; }
		.bondolfi-languages { gap: 12px; font-size: .8rem; }
		.bondolfi-logo::after {
			top: 47px;
    		right: 7px;
			font-size: 11px;
		}
		.page-header h1 {
			font-size: 2.2rem;
			text-shadow: 3px 3px 2px rgba(0,0,0,.28);
			line-height: 1;
		}
		h2 { font-size: 2.2rem; }
		.wp-block-cover {
			min-height: 400px!important;
		}
	}

/* =============================================================================
   Cookie Banner (Pressidium Cookie Consent)
   ========================================================================== */

	.pressidium-cc-theme {
		--cc-border-radius: 0;
		--cc-btn-border-radius: 0;
	}

/* =============================================================================
   Print
   ========================================================================== */

	@media print {
		* {background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important;}
		a,a:visited {text-decoration:underline;}
		a[href]:after {content:" (" attr(href) ")";}
		abbr[title]:after {content:" (" attr(title) ")";}
		.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after {content:"";}
		pre,blockquote {border:1px solid #999;page-break-inside:avoid;}
		thead {display:table-header-group;}
		tr,img {page-break-inside:avoid;}
		img {max-width:100% !important;}
		@page {margin:0.5cm;}
		p,h2,h3 {orphans:3;widows:3;}
		h2,h3 {page-break-after:avoid;}
	}
