/*--- panel menu ---*/
/*--- 
variabili pannello menu 
	colore sfondo pannello
	--bg-panel-menu:#fff;

	colore bordo a sinistra sub menu
	--border-left-sub-menu:#ddd;

	colore bordo in basso ai links
	--border-bottom-items:#ddd;

	colore link
	--link:#111;

	colore link hover
	--link-over:#777;

---*/
:root {
	--bg-panel-menu:#fff;
	--border-left-sub-menu:#ddd;
	--border-bottom-items:#ddd;
	--link:#111;
	--link-over:#777;
}

.panel-menu-001-panel-menu {
	position:fixed;
	top:0;
	bottom:0;
	width:100%;
	max-width: 420px;
	height:100%;
	z-index:9999999999999999999999999;
	margin:0;
	padding:0 0 0 0;
	background-color:var(--bg-panel-menu);
	overflow:hidden;
	display: none;
}

.panel-menu-001-panel-menu.panel-left {
	left:-100%;
	right:auto;
}

.panel-menu-001-panel-menu.panel-right {
	right:-100%;
	left:auto;
}

.panel-menu-001-panel-menu .header {
	position: relative;
	margin: 0;
	padding: 0;
	width:100%;
	height:90px;
}

.panel-menu-001-panel-menu .header a.close {
	position: absolute;
	top: 21px;
	right: 10px;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 0 0 0;
	z-index: 888;
}

.panel-menu-001-panel-menu .header .title {
	position: relative;
	margin: 0;
	padding: 0;
	width: 240px;
	display: flex;
	align-items: center;
}

.panel-menu-001-panel-menu .header .title a img {
	width: auto;
	height: 90px;
}

.panel-menu-001-panel-menu .container {
	position: relative;
	margin: 0 0 0 0;
	padding: 20px 0 10px 0;
	width: 100%;
	height:calc(100% - 130px);
	overflow-y:auto;
	-webkit-overflow-scrolling: touch;
}

.panel-menu-001-panel-menu .panel-shadow {
	position: absolute;
	top: 90px;
	left: 0;
	bottom: auto;
	right: auto;
	width: 100%;
	height: 50px;
	z-index: 1;
/*
	background-repeat:repeat-x;
	background-position:left top;
	background-size:50px 50px;
	background-image: url(/assets/img/menu/panel-menu-shadow.png);
*/
	background: linear-gradient(to top,rgba(255,255,255,0.2) 0%,rgba(255,255,255,1)100%);
}

.panel-menu-001-panel-menu .content {
	position: relative;
	margin:0;
	padding:0 0 0 0;
	font-family: 'Lato', sans-serif;
}

.panel-menu-001-panel-menu .content .section {
	position:relative;
	margin:0;
	padding:0 0 0 0;
	display: table;
	width: 100%;
	clear: both;
	border-bottom: 1px solid var(--border-bottom-items);
}

.panel-menu-001-panel-menu .content .section.no-border:last-child,
.panel-menu-001-panel-menu .content .section.no-border {
	border-bottom: none;
}

.panel-menu-001-panel-menu .section .title {
	position: relative;
	margin: 0 0 0 0;
	padding: 0;
	font-size: 25px;
	font-weight: 300;
	color: var(--link);
	text-align: left;
	width: 100%;
	height: 51px;
	border-left: 10px solid transparent;
	display: flex;
	align-items: center;
}

.panel-menu-001-panel-menu .section .title.active {
	border-left: 10px solid var(--border-left-sub-menu);
	background-color: #f8f8f8;
}

.panel-menu-001-panel-menu .section.submenu .title.active {
	border-bottom: 1px solid var(--border-bottom-items);
}

.panel-menu-001-panel-menu .content ul li.active,
.panel-menu-001-panel-menu .content ul li.active a.active {
	background-color: #f8f8f8;
}

.panel-menu-001-panel-menu .section .title a {
	display: inline;
	align-items: center;
	float: left;
	width: calc(100% - 22px);
	padding: 0 0 0 25px;
	line-height: 20px;
}

.panel-menu-001-panel-menu .section .title a.with-icon {
/*
	display: flex;
*/
	display: inline;
	line-height: 25px;
}

.panel-menu-001-panel-menu .section .submenu a.with-icon {
	display: flex !important;
	align-items:center;
}

.panel-menu-001-panel-menu .with-icon img {
	float:left;
	margin-right:15px;
	width: 25px;
	height: 25px;
}

.panel-menu-001-panel-menu .section li .title {
	padding: 0 0 0 0;
}

.panel-menu-001-panel-menu .section img.submenu-open {
	position: relative;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	float: right;
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
}

.panel-menu-001-panel-menu .page-link {

}

.panel-menu-001-panel-menu .page-link.with-icon {
	font-size:20px;
}

.panel-menu-001-panel-menu .page-link.with-icon img {
	float:left;
	margin-right:15px;
	width: 25px;
	height: 25px;
}

.panel-menu-001-panel-menu .content ul {
	position: relative;
	margin:0;
	padding:0 0 0 0px;
	width:100%;
	clear: both;
	display: none;
	border-left: 10px solid var(--border-left-sub-menu);
}

.panel-menu-001-panel-menu .content ul li ul {
	position: relative;
	margin:0;
	padding:0 0 10px 0;
	width:100%;
	clear: both;
	display: none;
}

.panel-menu-001-panel-menu .content ul li {
	position: relative;
	list-style-type: disc;
	list-style-position: inside;
	width: 100%;
	margin: 0 0 0 0;
	padding: 0 0 0 40px;
	clear: both;
	border-bottom: 1px solid var(--border-bottom-items);
	line-height: 50px;
}

.panel-menu-001-panel-menu .content ul li:last-child {
	border-bottom:none;
}

.panel-menu-001-panel-menu .content ul li a {
	position: relative;
	margin: 0 0 0 0;
	padding: 0 60px 0 0px;
	display: inline-block;
	width: 90%;
	font-size: 20px;
	font-weight: 300;
	color: var(--link);
	text-align: left;
	-webkit-transition: all 0.5s ease-out;
	-moz-transition: all 0.5s ease-out;
	-ms-transition: all 0.5s ease-out;
	-o-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}

.panel-menu-001-panel-menu .content ul li a span {
	font-weight: 700;
	margin-left: 6px;
}

.panel-menu-001-panel-menu .section .title a:hover,
.panel-menu-001-panel-menu a.single:hover,
.panel-menu-001-panel-menu .content ul li a:hover {
	color: var(--link-over);
}

.panel-menu-001-panel-menu .content ul li a.evidence {
	font-weight: 400;
}

.panel-menu-001-panel-menu .content ul li a.submenu-open {
	border:none;
}

.panel-menu-001-panel-menu .content .single-image {
	position: relative;
	margin: 25px 10px 10px 10px;
	padding: 0 0 0 0;
	clear: both;
	display: flex;
	justify-content: center;
}

.panel-menu-001-panel-menu .content .single-image a {
}

.panel-menu-001-panel-menu .content .single-image a img.round {
	border-radius: 10px;
}

.panel-menu-001-panel-menu .footer {
	position: absolute;
	bottom:0;
	top: auto;
	left: 0;
	right: auto;
	margin: 0;
	padding: 0;
	width:100%;
	max-width: 420px;
	height:50px;
	clear: both;
	border-top: 1px solid var(--border-bottom-items);
	background-color: #fff;
}

.panel-menu-001-panel-menu .footer a {
	position:relative;
	margin:0;
	padding:0;
	width:100%;
	height:50px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size:14px;
	font-weight: 400;
	color: var(--link);
	text-transform: uppercase;
	font-family: Gotham Medium;
}

.panel-menu-001-panel-menu .footer a:hover {
	color: var(--link);
}

.panel-menu-001-panel-menu .footer a span {
	font-family: Gotham Black;
	padding-left: 5px;
}

.panel-menu-001-panel-menu .for-shop {
	position:absolute;
	right:60px;
	top:21px;
	width:80px;
}

@media only screen and (max-width: 590px) {

	.panel-menu-001-panel-menu .header-menu .title {
		padding: 0 0 0 0;
	}

}

@media only screen and (max-width: 480px) {

	.panel-menu-001-panel-menu .section .title {
		line-height: 20px;
	}

	.panel-menu-001-panel-menu .section .title a.page-link {
/*
		line-height: 46px;
*/		
	}

	.panel-menu-001-panel-menu .page-link {
		line-height: 46px;
	}

	.panel-menu-001-panel-menu-content ul li a {
		padding: 0 60px 0 28px;
		background-position: 18px center;
	}

	.panel-menu-001-panel-menu-content ul li ul li a {
		padding: 0 40px 0 40px;
		background-position: 30px center;
	}

	.panel-menu-001-panel-menu ul li a.page-link {
/*
		display: contents;
*/
	}

	.panel-menu-001-panel-menu a.single {
		padding: 0 0 0 30px;
	}

}

@media only screen and (max-width: 320px) {

	.panel-menu-001-panel-menu .section .title {
		font-size: 20px;
	}

	.panel-menu-001-panel-menu .content ul li a {
		padding: 0 20px 0 0px;
		font-size: 18px;
	}

	.panel-menu-001-panel-menu .for-shop {
		top:15px;
	}

	.panel-menu-001-panel-menu .header a.close {
		top: 15px;
	}

}

/*--- ! ---*/

	/* Override: sostituisce Lato con Inter ovunque sia referenziato nel sito.
	   Redefinisce @font-face 'Lato' puntando ai file di Inter (variable font via @fontsource CDN).
	   override.css è caricato dopo il link Google Fonts, quindi vince sul cascade. */
	@font-face {
		font-family: 'Lato';
		font-style: normal;
		font-weight: 100 900;
		font-display: swap;
		src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@latest/files/inter-latin-wght-normal.woff2') format('woff2');
	}
	@font-face {
		font-family: 'Lato';
		font-style: italic;
		font-weight: 100 900;
		font-display: swap;
		src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@latest/files/inter-latin-wght-italic.woff2') format('woff2');
	}
	@font-face {
		font-family: 'Inter';
		font-style: normal;
		font-weight: 100 900;
		font-display: swap;
		src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@latest/files/inter-latin-wght-normal.woff2') format('woff2');
	}
	@font-face {
		font-family: 'Inter';
		font-style: italic;
		font-weight: 100 900;
		font-display: swap;
		src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@latest/files/inter-latin-wght-italic.woff2') format('woff2');
	}

	:root {
		--colore-0: transparent;
		--colore-1: #05668d;
		--colore-2: #427aa1;
		--colore-3: #ebf2fa;
		--colore-4: #679436;
		--colore-5: #a5be00;
		
		--colore-h: #1f1f1f;
		--colore-p: #393939;
		
		--nuovo-font: 'nuovofont', sans-serif;
	}
	
	.colore-0 { color: var(--colore-0) }
	.colore-1 { color: var(--colore-1) }
	.colore-2 { color: var(--colore-2) }
	.colore-3 { color: var(--colore-3) }
	.colore-4 { color: var(--colore-4) }
	.colore-5 { color: var(--colore-5) }
	
	.bg-colore-0 { background-color: var(--colore-0) }
	.bg-colore-1 { background-color: var(--colore-1) }
	.bg-colore-2 { background-color: var(--colore-2) }
	.bg-colore-3 { background-color: var(--colore-3) }
	.bg-colore-4 { background-color: var(--colore-4) }
	.bg-colore-5 { background-color: var(--colore-5) }

	.blueimp-gallery > .prev, 
	.blueimp-gallery > .next {
    	width: auto;
    	height: auto;
    	background: transparent;
    	border: none;
    	opacity: 0.9;
    	box-shadow: inset 0 0 25px 0 rgba(0,0,0,0.5);
	}
	.blueimp-gallery > .close {
		width: 50px;
    	height: 50px;
    	border-radius: 50%;
    	overflow: hidden;
    	margin: 0;
    	opacity: 0.9;
    	padding: 0;
	}
	
	/*--- personalizzazoione pulsante intro ---*/
	.intro-001-intro-block a {
    	position: relative;
    	display: inline-block;
    	padding: 8px 50px 10px 50px;
    	text-align: center;
    	border-style: solid;
    	border-width: 2px;
    	border-color: rgba(255,255,255,0.40);
    	color: #fff;
    	font-family: 'Lato', sans-serif;
    	font-size: 20px;
    	letter-spacing: -1px;
    	background-color: transparent;
    	border-radius: 100px;
	}
	
	.intro-001-intro-block a:hover {
    	background-color: #fff;
    	color: #333;
	}
	
	.intro-001-intro-block a.eventi {
    	position: relative;
    	display: inline-block;
    	padding: 8px 50px 10px 50px;
    	text-align: center;
    	border-style: solid;
    	border-width: 2px;
    	border-color: rgba(255,255,255,0.40);
    	color: #753b3e;
    	font-family: 'Lato', sans-serif;
    	font-size: 20px;
    	letter-spacing: -1px;
    	background-color: rgba(255,255,255,1);
    	border-radius: 100px;
	}
	
	.intro-001-intro-block a.eventi:hover {
    	background-color: transparent;
    	color: #fff;
	}

/* text align */

@media only screen and (max-width: 480px) {
    .text-left-smartphone {
		text-align: left;
    }
    .text-center-smartphone {
		text-align: center;
    }
    .text-right-smartphone {
		text-align: right;
    }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    .text-left-tablet {
		text-align: left;
    }
    .text-center-tablet {
		text-align: center;
    }
    .text-right-tablet {
		text-align: right;
    }
}

@media only screen and (max-width: 768px) {
    .text-left-mobile {
		text-align: left;
    }
    .text-center-mobile {
		text-align: center;
    }
    .text-right-mobile {
		text-align: right;
    }
}

@media only screen and (min-width: 769px) {
    .text-left-desktop {
		text-align: left;
    }
    .text-center-desktop {
		text-align: center;
    }
    .text-right-desktop {
		text-align: right;
    }
}

/*--- personalizzabile tramite override end ---*/

@media only screen and (min-width: 769px) { /* Desktop */
    .classe {
        padding: 0px 0px 0px 0px;
    }
}

@media only screen and (min-width: 481px) and (max-width: 768px) { /* Tablet */
    .classe {
        padding: 0px 0px 0px 0px;
    }
}

@media only screen and (max-width: 768px) { /* Smartphone + Tablet */
    .classe {
        padding: 0px 0px 0px 0px;
    }
}

@media only screen and (max-width: 480px) { /* Smartphone */
    .classe {
        padding: 0px 0px 0px 0px;
    }
}
ul li, ol li {
    padding: inherit;
    margin: inherit;
    display: inherit;
    position: inherit;
    color: inherit;
    font-family: 'Inter';
}
/*--- typography ---*/

	h1.nuovofont, 
	h2.nuovofont, 
	h3.nuovofont, 
	h4.nuovofont, 
	h5.nuovofont, 
	h6.nuovofont,
	.titolo-h1,
	.titolo-h2,
	.titolo-h3,
	.titolo-h4,
	.titolo-h5,
	.titolo-h6,
	.titolo-xl,
	.titolo-xxl,
	.titolo-xxxl { 
		font-family: var(--nuovo-font);
		color: var(--colore-h);
	}

	h1.nuovofont,
	.titolo-h1 {
		font-size: calc(45px + (75 - 45) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(45px + (75 - 45) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 900;
		letter-spacing: -3px;
		margin: 20px 0 30px 0;
	}
	
	h2.nuovofont,
	.titolo-h2 {
		font-size: calc(40px + (65 - 40) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(40px + (65 - 40) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 800;
		letter-spacing: -2px;
		margin: 20px 0 25px 0;
	}
	
	h3.nuovofont,
	.titolo-h3 {
		font-size: calc(35px + (55 - 35) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(35px + (55 - 35) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 500;
		letter-spacing: -1px;
		margin: 20px 0 20px 0;
	}
	
	h4.nuovofont,
	.titolo-h4 {
		font-size: calc(30px + (45 - 30) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(30px + (45 - 30) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 300;
		letter-spacing: -1px;
		margin: 20px 0 10px 0;
	}
	
	h5.nuovofont,
	.titolo-h5 {
		font-size: calc(25px + (35 - 25) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(25px + (35 - 25) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 500;
		letter-spacing: -1px;
		margin: 20px 0 10px 0;
	}
	
	h6.nuovofont,
	.titolo-h6 {
		font-size: calc(20px + (25 - 20) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(20px + (25 - 20) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 500;
		letter-spacing: -1px;
		margin: 20px 0 10px 0;
	}
	
	.titolo-xl {
		font-size: calc(50px + (80 - 50) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(50px + (80 - 50) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 900;
		letter-spacing: -3px;
		margin: 20px 0 30px 0;
	}

	.titolo-xxl {
		font-size: calc(60px + (100 - 60) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(60px + (100 - 60) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 900;
		letter-spacing: -3px;
		margin: 20px 0 30px 0;
	}

	.titolo-xxxl {
		font-size: calc(75px + (120 - 75) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(75px + (120 - 75) * ((100vw - 320px) / (3000 - 320)));
		font-weight: 900;
		letter-spacing: -3px;
		margin: 20px 0 30px 0;
	}


	p {
		color: var(--colore-p);
        font-family: var(--font-sans);
	}
	/*
	p {
		font-family: 'Poppins', sans-serif;
		font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(23px + (25 - 23) * ((100vw - 320px) / (3000 - 320)));
	}

	ul li, ol li {
		font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (3000 - 320)));
		line-height: calc(23px + (25 - 23) * ((100vw - 320px) / (3000 - 320)));
	}
	*/


@media screen and (min-width: 3001px) {
	
	h1.nuovofont,
	.titolo-h1 {
		font-size: 75px;
		line-height: 75px;
	}
	
	h2.nuovofont,
	.titolo-h2 {
		font-size: 65px;
		line-height: 65px;
	}
	
	h3.nuovofont,
	.titolo-h3 {
		font-size: 55px;
		line-height: 55px;
	}
	
	h4.nuovofont,
	.titolo-h4 {
		font-size: 45px;
		line-height: 45px;
	}
	
	h5.nuovofont,
	.titolo-h5 {
		font-size: 35px;
		line-height: 35px;
	}
	
	h6.nuovofont,
	.titolo-h6 {
		font-size: 25px;
		line-height: 25px;
	}
	
	.titolo-xl {
		font-size: 80px;
		line-height: 80px;
	}
	
	.titolo-xxl {
		font-size: 100px;
		line-height: 100px;
	}
	
	.titolo-xxxl {
		font-size: 120px;
		line-height: 120px;
	}
	
	/*
	p {
		font-size: 18px;
		line-height: 25px;
	}
	
	ul li, ol li {
		font-size: 18px;
		line-height: 25px;
	}
	*/
}

@media screen and (max-width: 319px) {

	h1.nuovofont,
	.titolo-h1 {
		font-size: 45px;
		line-height: 45px;
	}
	
	h2.nuovofont,
	.titolo-h2 {
		font-size: 40px;
		line-height: 40px;
	}
	
	h3.nuovofont,
	.titolo-h3 {
		font-size: 35px;
		line-height: 35px;
	}
	
	h4.nuovofont {
		font-size: 30px;
		line-height: 35px;
	}
	
	h5.nuovofont,
	.titolo-h5 {
		font-size: 25px;
		line-height: 30px;
	}
	
	h6.nuovofont,
	.titolo-h6 {
		font-size: 20px;
		line-height: 25px;
	}
	
	.titolo-xl {
		font-size: 50px;
		line-height: 50px;
	}
	
	.titolo-xxl {
		font-size: 60px;
		line-height: 60px;
	}
	
	.titolo-xxxl {
		font-size: 75px;
		line-height: 75px;
	}
	
	/*
	p {
		font-size: 16px;
		line-height: 23px;
	}

	ul li, ol li {
		font-size: 16px;
		line-height: 23px;
	}
	*/
}

/* ============================================
   IN-CONTRO 2.0 - CSS INTEGRATO
   Design System + Components + Layout + Animations
   ============================================ */

/**
 * IN-CONTRO 2.0 Design System
 *
 * Un sistema di design elegante e accessibile ispirato ai trend 2026:
 * - Resonant Stark Design (calmo, elegante, intenzionale)
 * - Organic shapes e soft gradients
 * - Functional animations
 * - WCAG 2.2 AA compliant
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* === COLOR PALETTE === */

  /* Primary - Deep Forest Green (fiducia, crescita, natura) */
  --color-primary-50: #f0fdf4;
  --color-primary-100: #dcfce7;
  --color-primary-200: #bbf7d0;
  --color-primary-300: #86efac;
  --color-primary-400: #4ade80;
  --color-primary-500: #22c55e;
  --color-primary-600: #16a34a;
  --color-primary-700: #15803d;
  --color-primary-800: #166534;
  --color-primary-900: #14532d;
  --color-primary-950: #052e16;

  /* Brand Green - Main */
  --color-brand: #1B4332;
  --color-brand-light: #2D6A4F;
  --color-brand-dark: #081C15;

  /* Secondary - Warm Amber (calore, inclusione, accoglienza) */
  --color-secondary-50: #fffbeb;
  --color-secondary-100: #fef3c7;
  --color-secondary-200: #fde68a;
  --color-secondary-300: #fcd34d;
  --color-secondary-400: #fbbf24;
  --color-secondary-500: #f59e0b;
  --color-secondary-600: #d97706;
  --color-secondary-700: #b45309;
  --color-secondary-800: #92400e;
  --color-secondary-900: #78350f;

  /* Warm Accent */
  --color-warm: #D4A574;
  --color-warm-light: #E8C9A8;
  --color-warm-dark: #B8956A;

  /* Accent - Soft Coral (energia, azione, CTA) */
  --color-accent: #E07A5F;
  --color-accent-light: #F4A582;
  --color-accent-dark: #C45E44;

  /* Neutrals - Refined grays */
  --color-white: #FFFFFF;
  --color-gray-50: #FAFAF9;
  --color-gray-100: #F5F5F4;
  --color-gray-200: #E7E5E4;
  --color-gray-300: #D6D3D1;
  --color-gray-400: #A8A29E;
  --color-gray-500: #78716C;
  --color-gray-600: #57534E;
  --color-gray-700: #44403C;
  --color-gray-800: #292524;
  --color-gray-900: #1C1917;
  --color-black: #0C0A09;

  /* Semantic Colors */
  --color-success: #059669;
  --color-warning: #D97706;
  --color-error: #DC2626;
  --color-info: #0284C7;

  /* Background Colors */
  --bg-primary: var(--color-white);
  --bg-secondary: var(--color-gray-50);
  --bg-tertiary: var(--color-gray-100);
  --bg-inverse: var(--color-brand);
  --bg-warm: #FDF8F3;

  /* Text Colors */
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-600);
  --text-tertiary: var(--color-gray-500);
  --text-inverse: var(--color-white);
  --text-brand: var(--color-brand);

  /* Border Colors */
  --border-light: var(--color-gray-200);
  --border-medium: var(--color-gray-300);
  --border-dark: var(--color-gray-400);

  /* === TYPOGRAPHY === */

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', var(--font-sans);

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 4.5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* === SPACING === */

  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --section-gap: clamp(3rem, 6vw, 6rem);

  /* Container */
  --container-max: 1280px;
  --container-narrow: 768px;
  --container-wide: 1440px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* === BORDERS & RADIUS === */

  --radius-none: 0;
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;

  /* === SHADOWS === */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Colored Shadows */
  --shadow-brand: 0 10px 30px -10px rgba(27, 67, 50, 0.3);
  --shadow-warm: 0 10px 30px -10px rgba(212, 165, 116, 0.3);
  --shadow-accent: 0 10px 30px -10px rgba(224, 122, 95, 0.3);

  /* === TRANSITIONS === */

  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);

  --transition-base: var(--duration-200) var(--ease-in-out);
  --transition-fast: var(--duration-150) var(--ease-in-out);
  --transition-slow: var(--duration-300) var(--ease-in-out);

  /* === Z-INDEX === */

  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
  --z-max: 9999;

  /* === FOCUS === */

  --focus-ring-width: 3px;
  --focus-ring-color: rgba(27, 67, 50, 0.5);
  --focus-ring-offset: 2px;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--color-gray-900);
    --bg-secondary: var(--color-gray-800);
    --bg-tertiary: var(--color-gray-700);
    --bg-warm: #1C1917;

    --text-primary: var(--color-gray-100);
    --text-secondary: var(--color-gray-400);
    --text-tertiary: var(--color-gray-500);

    --border-light: var(--color-gray-700);
    --border-medium: var(--color-gray-600);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  }
}

/* Manual dark mode class */
[data-theme="dark"] {
  --bg-primary: var(--color-gray-900);
  --bg-secondary: var(--color-gray-800);
  --bg-tertiary: var(--color-gray-700);
  --bg-warm: #1C1917;

  --text-primary: var(--color-gray-100);
  --text-secondary: var(--color-gray-400);
  --text-tertiary: var(--color-gray-500);

  --border-light: var(--color-gray-700);
  --border-medium: var(--color-gray-600);
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ripristina margin/padding per il widget accessibilità (a11y_widget) */
.a11y_widget *,
.a11y_widget *::before,
.a11y_widget *::after {
  margin: revert;
  padding: revert;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

p {
  margin-bottom: var(--space-4);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-light);
}

a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--font-semibold);
}

small {
  font-size: var(--text-sm);
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

li:last-child {
  margin-bottom: 0;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

/* ============================================
   FORMS
   ============================================ */

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

input, select, textarea {
  background-color: var(--bg-primary);
  border: var(--border-width) solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

/* ============================================
   TABLES
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border-light);
}

th {
  font-weight: var(--font-semibold);
  background-color: var(--bg-secondary);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background-color: var(--color-brand);
  color: var(--color-white);
}

/* ============================================
   SCROLLBAR (Webkit)
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-max);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-brand);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: var(--focus-ring-width) solid var(--color-white);
  outline-offset: var(--focus-ring-offset);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section */
.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section--sm {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  position: sticky;
  top: 78px;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.8) !important;
}
.section--sm .btn--sm {
  background-color: #FFFFFF;
}

.section--lg {
  padding-top: calc(var(--section-padding) * 1.5);
  padding-bottom: calc(var(--section-padding) * 1.5);
}

/* Backgrounds */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-brand { background-color: var(--color-brand); }
.bg-warm { background-color: var(--bg-warm); }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-brand { color: var(--color-brand); }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Aspect Ratio */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Rounded */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Transition */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/**
 * IN-CONTRO 2.0 Components
 *
 * Componenti riutilizzabili con design elegante e accessibile
 */

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: var(--border-width-2) solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn--primary {
  background-color: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}

.btn--primary:hover {
  background-color: var(--color-brand-light);
  border-color: var(--color-brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: var(--color-white);

}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary Button */
.btn--secondary {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--secondary:hover {
  background-color: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Accent Button */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* Ghost Button */
.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary)!important;
}

/* White Button (for dark backgrounds) */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* Button with Icon */
.btn__icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.btn--icon-only {
  padding: var(--space-3);
}

.btn--icon-only.btn--sm {
  padding: var(--space-2);
}

.btn--icon-only.btn--lg {
  padding: var(--space-4);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card--elevated:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card--bordered {
  border: var(--border-width) solid var(--border-light);
}

.card--bordered:hover {
  border-color: var(--color-brand);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__content {
  padding: var(--space-6);
}

.card__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-brand);
  margin-bottom: var(--space-2);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.card__description {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--border-light);
}

/* Feature Card */
.feature-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background-color: var(--bg-primary);
  border-radius: var(--radius-2xl);
  border: var(--border-width) solid var(--border-light);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-50));
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  color: var(--color-brand);
}

.feature-card__icon svg {
  width: 32px;
  height: 32px;
}

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.feature-card__description {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
}

.badge--primary {
  background-color: var(--color-primary-100);
  color: var(--color-brand);
}

.badge--secondary {
  background-color: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

.badge--accent {
  background-color: rgba(224, 122, 95, 0.1);
  color: var(--color-accent);
}

.badge--success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}

.badge--outline {
  background-color: transparent;
  border: var(--border-width) solid currentColor;
}

/* ============================================
   STATS
   ============================================ */

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: #84bc26;
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.section-header__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-brand);
}

.section-header--center .section-header__eyebrow::before {
  display: none;
}

.section-header__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.section-header__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header--center .section-header__description {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   VALUE CARDS
   ============================================ */

.value-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: var(--border-width) solid var(--border-light);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  border-radius: var(--radius-lg);
  color: var(--color-white);
  flex-shrink: 0;
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__content {
  flex-grow: 1;
}

.value-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.value-card__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-brand), var(--color-primary-300));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-8) - 1px);
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--color-brand);
  border: 4px solid var(--bg-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  box-shadow: var(--shadow-md);
}

.timeline__year {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.timeline__content {
  color: var(--text-secondary);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-primary-100);
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
  position: relative;
  padding: var(--space-8);
  background-color: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--color-primary-100);
  line-height: 1;
}

.testimonial__content {
  position: relative;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial__name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ============================================
   ALERTS / MESSAGES
   ============================================ */

.alert {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  margin: 0 0 var(--space-6) 0;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  opacity: 1;
  max-height: 500px;
  overflow: hidden;
  transition: opacity 400ms ease, transform 400ms ease, margin 400ms ease, padding 400ms ease, max-height 400ms ease, border-width 400ms ease;
}

.alert.alert--hiding {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.alert__icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  flex-shrink: 0;
}

.alert__content {
  flex-grow: 1;
  min-width: 0;
}

.alert__title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.alert__message {
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.45;
}

.alert--success {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
  color: var(--color-success);
}

.alert--error {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--color-error);
}

.alert--warning {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--color-warning);
}

.alert--info {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--color-info);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--radius-full);
  animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--space-8) 0;
}

.divider--vertical {
  width: 1px;
  height: auto;
  margin: 0 var(--space-4);
}

/* ============================================
   ICON WRAPPER
   ============================================ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--md {
  width: 24px;
  height: 24px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.icon--xl {
  width: 48px;
  height: 48px;
}

/**
 * IN-CONTRO 2.0 Layout
 *
 * Header, Footer, Navigation, Grid System, Hero
 */

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid transparent;
  transition: all var(--transition-base);
}

/* Header quando menu mobile aperto */
body:has(.nav--open) .header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 80px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.header__logo-icon svg {
  width: 28px;
  height: 28px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-brand);
  line-height: var(--leading-tight);
}

.header__logo-tagline {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item {
  margin: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.nav__link:hover {
  color: var(--color-brand);
  background-color: var(--color-primary-50);
}

.nav__link--active {
  color: var(--color-brand);
  background-color: var(--color-primary-50);
}

.nav__link:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* Header CTA */
.header__cta {
  margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.header__toggle:hover {
  background-color: var(--bg-secondary);
}

.header__toggle:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
}

.header__toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .header__toggle {
    display: flex;
    z-index: 9999;
    position: relative;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 100%);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--duration-500) var(--ease-smooth),
                opacity var(--duration-300) var(--ease-smooth),
                visibility var(--duration-300);
    overflow-y: auto;
    z-index: var(--z-overlay);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    transition: all var(--transition-fast);
  }

  .nav__link:hover,
  .nav__link:focus {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.02);
  }

  .header__cta {
    margin: var(--space-4) 0 0;
    width: 100%;
    max-width: 300px;
  }

  .header__cta .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    border: none;
    transition: all var(--transition-fast);
  }

  .header__cta .btn:hover,
  .header__cta .btn:focus {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.02);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  padding-top: var(--section-padding);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  text-decoration: none;
}

.footer__logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-300));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-dark);
}

.footer__logo-icon svg {
  width: 28px;
  height: 28px;
}

.footer__logo-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.footer__description {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-primary-500);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Columns */
.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__link:focus-visible {
  outline: var(--focus-ring-width) solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Footer Contact */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer__contact-item:last-child {
  margin-bottom: 0;
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--color-white);
}

/* Footer Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-white);
}

/* Footer Responsive */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero--full {
  min-height: 100vh;
}

.hero--small {
  min-height: auto;
  padding-top: calc(80px + var(--space-12));
  padding-bottom: var(--space-12);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.hero__background-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--color-primary-50) 0%,
    var(--bg-warm) 50%,
    var(--color-primary-100) 100%
  );
}

/* Decorative Blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-primary-200), var(--color-primary-100));
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--color-secondary-200), var(--color-secondary-100));
  bottom: -100px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__blob {
    animation: none;
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__inner--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--color-brand);
}

.hero__inner--center .hero__eyebrow::before {
  display: none;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.hero__title-highlight {
  color: var(--color-brand);
  position: relative;
}

.hero__title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: linear-gradient(90deg, var(--color-primary-300), var(--color-secondary-300));
  border-radius: var(--radius-full);
  z-index: -1;
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 520px;
  line-height: var(--leading-relaxed);
}

.hero__inner--center .hero__description {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__inner--center .hero__actions {
  justify-content: center;
}

/* Hero Image */
.hero__visual {
  position: relative;
  z-index: var(--z-raised);
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(27, 67, 50, 0.3));
  z-index: 1;
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Hero Stats */
.hero__stats {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.hero__stat {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-brand);
  line-height: var(--leading-none);
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-1);
}

/* Hero Responsive */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: calc(80px + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero__content {
    text-align: center;
  }

  .hero__eyebrow::before {
    display: none;
  }

  .hero__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__stat {
    padding: var(--space-3) var(--space-4);
  }
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
  padding-top: 80px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  overflow: hidden;
}

.cta__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta__circle--1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.cta__circle--2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */

.main {
  flex-grow: 1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/**
 * IN-CONTRO 2.0 Animations
 *
 * Animazioni sottili e funzionali con rispetto per prefers-reduced-motion
 */

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Base state for animated elements */
.animate-fade-up,
.animate-fade-down,
.animate-fade-left,
.animate-fade-right,
.animate-scale,
.animate-blur {
  opacity: 0;
  transition:
    opacity var(--duration-700) var(--ease-smooth),
    transform var(--duration-700) var(--ease-smooth),
    filter var(--duration-700) var(--ease-smooth);
}

.animate-fade-up {
  transform: translateY(30px);
}

.animate-fade-down {
  transform: translateY(-30px);
}

.animate-fade-left {
  transform: translateX(30px);
}

.animate-fade-right {
  transform: translateX(-30px);
}

.animate-scale {
  transform: scale(0.95);
}

.animate-blur {
  filter: blur(8px);
  transform: translateY(20px);
}

/* Animated state */
.animate-fade-up.is-visible,
.animate-fade-down.is-visible,
.animate-fade-left.is-visible,
.animate-fade-right.is-visible,
.animate-scale.is-visible,
.animate-blur.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* Animation Delays */
.animate-delay-100 { transition-delay: 100ms; }
.animate-delay-200 { transition-delay: 200ms; }
.animate-delay-300 { transition-delay: 300ms; }
.animate-delay-400 { transition-delay: 400ms; }
.animate-delay-500 { transition-delay: 500ms; }
.animate-delay-600 { transition-delay: 600ms; }

/* Staggered children animations */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-500) var(--ease-smooth),
    transform var(--duration-500) var(--ease-smooth);
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }
.animate-stagger.is-visible > *:nth-child(7) { transition-delay: 600ms; }
.animate-stagger.is-visible > *:nth-child(8) { transition-delay: 700ms; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HOVER ANIMATIONS
   ============================================ */

/* Lift effect */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Scale effect */
.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Glow effect */
.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(27, 67, 50, 0.15);
}

/* Image zoom */
.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform var(--duration-500) var(--ease-smooth);
}

.hover-zoom:hover img {
  transform: scale(1.05);
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Button press effect */
.btn:active {
  transform: scale(0.98);
}

/* Link underline animation */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width var(--transition-base);
}

.link-underline:hover::after {
  width: 100%;
}

/* Icon rotation */
.icon-rotate {
  transition: transform var(--transition-base);
}

.icon-rotate:hover {
  transform: rotate(15deg);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-200) 0%,
    var(--color-gray-100) 50%,
    var(--color-gray-200) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pulse */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Bounce */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-5%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* Fade page in on load */
.page-wrapper {
  animation: page-fade-in var(--duration-500) var(--ease-smooth);
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   FORM ANIMATIONS
   ============================================ */

/* Input focus animation */
.form-input,
.form-select,
.form-textarea {
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

/* Form success/error shake */
.form-shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Alert slide in */
.alert {
  animation: slide-in-top var(--duration-300) var(--ease-smooth);
}

@keyframes slide-in-top {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MENU ANIMATIONS
   ============================================ */

/* Hamburger to X animation */
.header__toggle-icon line {
  transition: all var(--transition-base);
  transform-origin: center;
}

.header__toggle[aria-expanded="true"] {
  background: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon {
  color: white;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon line:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-primary-400));
  transform-origin: left;
  transform: scaleX(0);
  z-index: var(--z-max);
  transition: transform 0.1s linear;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-fade-up,
  .animate-fade-down,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale,
  .animate-blur,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hover-lift:hover,
  .hover-scale:hover,
  .hover-zoom:hover img {
    transform: none;
  }

  .hero__blob {
    animation: none;
  }

  .page-wrapper {
    animation: none;
  }

  .skeleton {
    animation: none;
  }

  .animate-pulse,
  .animate-bounce {
    animation: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  * {
    animation: none !important;
    transition: none !important;
  }

  .animate-fade-up,
  .animate-fade-down,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale,
  .animate-blur {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ============================================
   LEGAL PAGES — privacy, cookie policy, termini
   Iubenda embed ha bisogno di più larghezza del container--narrow di default.
   ============================================ */

.page-privacy .container--narrow,
.page-cookie-policy .container--narrow,
.page-termini-e-condizioni .container--narrow {
    max-width: min(1000px, 100%);
}

.page-privacy .iubenda-embed,
.page-privacy .iub-body-embed,
.page-cookie-policy .iubenda-embed,
.page-cookie-policy .iub-body-embed,
.page-termini-e-condizioni .iubenda-embed,
.page-termini-e-condizioni .iub-body-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* Contenuto renderizzato dallo script iubenda dentro l'embed */
.page-privacy .iub_container,
.page-privacy .iub_content,
.page-cookie-policy .iub_container,
.page-cookie-policy .iub_content,
.page-termini-e-condizioni .iub_container,
.page-termini-e-condizioni .iub_content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   THANKS PAGE — card di ringraziamento
   ============================================ */

.thanks-card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px);
    background: var(--surface-primary, #fff);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    border-radius: var(--radius-xl, 20px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.thanks-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 150, 105, 0.12);
    color: var(--color-success, #059669);
    border-radius: 50%;
}

.thanks-card__icon svg {
    width: 36px;
    height: 36px;
}

.thanks-card__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-primary, #1f1f1f);
}

.thanks-card__description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary, #555);
    margin: 0 0 32px 0;
}

.thanks-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.thanks-card__actions .btn svg {
    width: 18px;
    height: 18px;
}

.thanks-card__contact {
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
}

.thanks-card__contact-label {
    font-size: 14px;
    color: var(--text-tertiary, #777);
    margin: 0 0 10px 0;
}

.thanks-card__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-brand, var(--colore-1));
    text-decoration: none;
    font-size: 18px;
}

.thanks-card__contact-link:hover {
    text-decoration: underline;
}

.thanks-card__contact-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .thanks-card__actions .btn {
        width: 100%;
    }
}

/* ============================================
   FOOTER — forza Inter sulle classi che usano Gotham / nuovo-font
   ============================================ */

.footer-001-footer,
.footer-001-footer-menu .title span,
.footer-001-footer-menu ul li a,
.footer-001-footer .copyright,
.footer-001-footer .copyright a,
.footer-001-footer .titolo-footer-social,
.footer-001-footer .paymethode-footer-titolo {
    font-family: 'Inter', sans-serif !important;
}


