/* --- Base Styles & Variables --- */
:root {
	--primary-blue: #004265; /* Fresh blue */
	--secondary-blue: #3385AD; /* Lighter blue */
	--accent-yellow: #FFEB3B; /* Bright yellow */
	--light-bg: #FAFAFA;
	--light-text: #333;
	--dark-text: #fff;
	--border-color-light: #e0e0e0;
	--shadow-light: 0 4px 12px rgba(0, 0, 0, 0.33);
	--strong-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.75);
	--shadow-dark: 0 4px 12px rgba(255, 255, 255, 0.1);
	
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Nunito', sans-serif;
	
	--bg-color: var(--light-bg);
	--text-color: var(--light-text);
	--card-bg: var(--light-bg);
	--border-color: var(--border-color-light);
	--shadow: var(--shadow-light);
	--header-bg: rgba(255, 255, 255, 0.95);
	--icon-color: var(--light-text);
	
	--lc-row-gap: 48px;   /* spazio verticale */
	--lc-logo-h: 128px;    /* altezza massima logo */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-secondary);
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem; /* Add padding for smaller screens */
}

a {
	text-decoration: none;
	color: var(--primary-blue);
	transition: color 0.3s ease;
}

a:hover {
	color: var(--secondary-blue);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--text-color); /* Ensure headings follow theme */
	margin-left: 8px;
	margin-right: 8px;
}

h2 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2rem;
}

section {
	padding: 4rem 0;
}

strong{
	font-size: 110%;
}

.Anchor{
        position: relative;
        top: -196px;
}

/* --- Header & Navbar --- */
.header {
	background-color: var(--header-bg);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(5px); /* Optional: Frosted glass effect */
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.logo {
	font-family: var(--font-primary);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary-blue);
}

.logo img{
	vertical-align: middle;
	display: inline;
	width: 10%;
	margin-right: 8px;
}

#logo-component{
	transition: none;
}

#logo-component:hover{
	color: var(--primary-blue);
}

.ai-bar {
	display: flex;
	align-items: center;
	position: relative;
	border: 1px solid var(--border-color);
	border-radius: 25px;
	background-color: var(--card-bg);
	padding: 0.5rem 0.75rem 0.5rem 1.25rem;
	flex-grow: 0.6;
	max-width: 480px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.ai-bar:focus-within {
	border-color: var(--primary-blue);
	box-shadow: 0 0 0 1px var(--border-color-light);
	background-color: var(--bg-color);
}

.ai-bar input {
	border: none;
	outline: none;
	background: transparent;
	flex-grow: 1;
	font-size: 0.95rem;
	font-family: var(--font-secondary);
	color: var(--text-color);
	padding: 0.1rem 2.8rem 0.1rem 0;
	width: 100%;
}

.ai-bar input::placeholder {
	color: var(--text-color);
	opacity: 0.55;
	font-style: normal;
}

.ai-bar button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--primary-blue);
	color: white;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.ai-bar button:hover {
	background-color: var(--secondary-blue);
	transform: translateY(-50%) scale(1.05);
}

.ai-bar button:active {
	background-color: var(--primary-blue);
	transform: translateY(-50%) scale(0.95);
}

.ai-bar button i {
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 768px) {
	.ai-bar {
		/* Add specific mobile adjustments if needed */
	}
}


.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 1.5rem;
}

.nav-links a {
	color: var(--text-color);
	font-weight: 600;
	font-family: var(--font-primary);
	font-size: 0.95rem;
	white-space: nowrap;
}
.nav-links a:hover {
	color: var(--primary-blue);
}

.nav-icons {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.menu-toggle {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--icon-color);
}

/* --- Buttons --- */
.btn {
	padding: 0.8rem 1.8rem;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block; /* Ensures proper padding and margin */
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background-color: var(--primary-blue);
	color: var(--light-bg);
	max-width: 320px;
	text-align: center;
}
.btn-primary:hover {
	background-color: var(--secondary-blue);
	color: white;
	
}

.btn-secondary {
	background-color: var(--accent-yellow);
	color: #333;
}
.btn-secondary:hover {
	background-color: #FFD700; /* Darker yellow */
	color: #111;
}

/* --- Hero Section --- */
.hero-section {
	background:
		/* Top layer: Overlay Gradient */
		/* Adjust RGBA values for color and opacity (0.4 = 40% opaque black) */
		linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),

		/* Bottom layer: Background Image */    
		/* Replace 'images/hero-background.jpg' with the actual path to your image */
		/* Ensure the path is relative to your CSS file location */
		url('pictures/common-banner.jpeg') no-repeat center center/cover;
	color: var(--light-bg);
	text-align: center;
	padding: 6rem 0;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-top: 32px solid black;
}

.hero-content h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	color: var(--light-bg);
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Hero Section --- */

.hero-section-alt {
	/* Overlay + immagine di sfondo */
	background:
		linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
		url('pictures/common-banner.jpeg') no-repeat center center / cover;
	color: var(--light-bg);
	padding: 6rem 0;
	min-height: 400px;
	display: flex;
	align-items: center;
}

/* Layout a due colonne */
.hero-content-alt {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	text-align: left;
}

.hero-left-alt h1 {
	font-size: 3rem;
	margin: 0;
	color: var(--light-bg);
}

/* Colonna destra: testo + bottone */
.hero-right-alt {
	display: flex;
	flex-direction: column;
	align-items: center; 
	gap: 1rem;
}

.hero-right-alt p {
	font-size: 1.2rem;
	margin: 16px;
}

/* --- Category Section --- */
.category-section {
	padding: 4rem 0; /* Ensure consistent padding */
}

.category-section h2 {
	text-align: center;
	margin-bottom: 3rem; /* Increased space below heading */
	font-size: 2.2rem; /* Slightly larger heading */
}

.category-grid {
	margin-left: 8px;
	margin-right: 8px;
	display: grid;
	/* Adjust minmax for desired minimum size and flexibility */
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem; /* Increased gap for better separation */
	justify-items: center; /* Center items if grid row isn't full */
}

.category-card {
	 background: linear-gradient(
		145deg,
		#ffffff 0%,     /* bianco puro */
		#fcfcfc 25%,    /* leggerissimo riflesso perlaceo */
		#f8f8f8 60%,    /* tono appena più caldo */
		#ffffff 100%    /* chiusura su bianco lucido */
	);
	border-radius: 12px; /* Slightly more rounded corners */
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.35s ease;
	overflow: hidden; /* Important to contain image scaling */
	border: 1px solid var(--primary-blue); /* Add a subtle border */
	width: 100%; /* Ensure card tries to fill its grid cell */
}

/* Style the new anchor tag wrapping the content */
.category-card .category-link {
	display: flex;
	flex-direction: column;
	align-items: center; /* Center content horizontally */
	justify-content: top; /* Center content vertically */
	padding: 1.5rem 1rem; /* Adjust padding inside the link */
	text-decoration: none; /* Remove default link underline */
	color: inherit; /* Use parent text color */
	height: 100%; /* Make link fill the card */
	transition: background-color 0.2s ease;
}

.category-link{
	position: relative;
}

.category-card:hover {
	transform: translateY(-8px); /* Slightly more lift on hover */
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.category-card img {
	height: 70px; /* Increased image size */
	object-fit: cover;
	margin-bottom: 1rem; /* Space between image and text */
	transition: transform 0.35s ease; /* Smooth transition for zoom */
	vertical-align: middle;
}

.category-card:hover img {
	transform: scale(1.1); /* Zoom image slightly on card hover */
}

.category-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-blue);
	margin-bottom: 0;
	text-align: center;
	height: 48px;
	display: inline-block;
	align-items: center;
}

.category-card h4 {
	font-size: 1.0rem;
	font-weight: 400;
	color: var(--text-color);
	margin-top: 8px;
	margin-bottom: 32px;
	text-align: center;
	display: flex;
}

.category-card h5 {
	position: absolute;
	bottom: 0;           /* Lo piazza in fondo */
	right: 0;             /* Opzionale, per allinearlo a sinistra */
	margin: 4px;           /* Rimuove margini extra */
	margin-right: 16px;
	font-size: 200%;
	color: var(--primary-blue);
}

/* Responsive adjustments for category grid if needed */
@media (max-width: 480px) {
	.category-grid {
		gap: 1rem; /* Reduced gap */
	}

	.category-card h3 {
		font-size: 0.95rem;
	}
	
	.category-card h5 {
		font-size: 0.95rem;
	}
	
	.category-section h2 {
		font-size: 1.8rem;
		margin-bottom: 2rem;
	}
	.category-card .category-link {
		padding: 1rem 0.5rem;
	}
}


/* --- Promotional Section --- */
.promotional-section {
	background: radial-gradient(140% 140% at 10% 10%,
		var(--primary-blue) 0%,
		var(--secondary-blue) 70%,
		var(--primary-blue) 100%);
	padding: 56px 0;
	color: var(--light-bg);
	text-align: center;
}

.promo-content h2 {
	color: inherit; /* Inherit color from parent */
}
.promo-content p {
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

/* --- Info Grid --- */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Keep this */
	gap: 1.5rem;
	justify-items: center; /* Add this line */
}

/* Find your existing .info-card rule */
.info-card {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	padding: 1rem; /* Adjust padding top/bottom if needed */
	text-align: center;
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
	max-width: 300px;
	cursor: pointer; /* ADD THIS - Indicates the whole card is clickable */
	display: flex;
	flex-direction: column;
	/* Optional: Set a min-height for visual consistency */
	/* min-height: 300px; */
}

.info-card:hover {
	transform: translateY(-6px); /* Keep existing hover */
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.info-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.info-card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem; /* Space between title and price */
	color: var(--text-color);
	flex-grow: 1; /* Allow title to take space if using flex */
}

.info-card .details {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--primary-blue);
	margin-bottom: 0; /* No space needed below price */
}

.no-infos {
	grid-column: 1 / -1; /* Make message span all grid columns */
	text-align: center;
	padding: 3rem 1rem;
	font-size: 1.1rem;
	color: var(--text-color);
	opacity: 0.8;
}

/* --- Contact Form --- */
.contact-form {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 24px;
	box-shadow: var(--shadow);
}

.contact-form p {
	margin: 0 0 0.5rem 0;
}

/* Griglia per Nome / Email */
.contact-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 768px) {
	.contact-form .form-row {
		grid-template-columns: 1fr;
	}
}

/* Field */
.contact-form .field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.contact-form label {
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
	padding: 0.9rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 14px;
	font-family: var(--font-secondary);
	font-size: 0.95rem;
	color: var(--text-color);
	background-color: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	opacity: 0.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: color-mix(in oklab, var(--secondary-blue) 60%, var(--primary-blue));
	box-shadow: 0 0 0 3px rgba(51, 133, 173, 0.15);
}

.contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

/* Pulsante invio */
.contact-form .form-submit {
	width: 100%;
	border-radius: 14px;
	height: 56px;
	font-weight: 700;
	font-family: var(--font-primary);
	font-size: 1rem;
	background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-form .form-submit:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.contact-form .form-submit:active {
	transform: translateY(0);
}

/* Nota informativa */
.contact-form .form-note {
	margin-top: 10px;
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Stato messaggio accessibile */
#form-status {
	font-size: 0.95rem;
	margin-top: 0.5rem;
}

/* --- Scroll-to-Top Button --- */
.scroll-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--primary-blue);
	color: var(--light-bg);
	border-radius: 50%;
	border: none;
	width: 45px;
	height: 45px;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 999;
	box-shadow: var(--shadow);
}

.scroll-top-btn.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top-btn:hover {
	background-color: var(--secondary-blue);
	transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 1280px) {
	.ai-bar {
		max-width: 280px; /* Smaller search bar */
	}
	 .info-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}


@media (max-width: 1024px) {
	.container {
		padding: 1rem;
	}

	.navbar {
		position: relative; /* Needed for absolute positioning of nav-links */
	}

	.ai-bar {
		order: 3; /* Move search bar below links */
		width: calc(100% - 2rem); /* Full width minus padding */
		margin: 0.5rem auto 0; /* Center it below */
		max-width: none;
		position: absolute; /* Position it relative to navbar */
		top: 70px; /* Below the main navbar content */
		left: 1rem;
		right: 1rem;
		z-index: 999; /* Below header but above content */
		 background-color: var(--header-bg); /* Match header bg */
	}

	.header {
		 padding-bottom: 60px; /* Add space for the search bar below */
		 height: auto; /* Allow header to grow */
	}

	.nav-links {
		display: none; /* Hide links by default */
		flex-direction: column;
		position: absolute;
		top: 70px; /* Position below navbar */
		left: 0;
		width: 100%;
		background-color: var(--header-bg); /* Use header background */
		border-top: 1px solid var(--border-color);
		box-shadow: var(--shadow);
		padding: 3rem 0 1rem 0;
	}

	.nav-links.active {
		display: flex; /* Show when active */
	}

	.nav-links li {
		margin: 0;
		text-align: center;
	}
	.nav-links a {
		display: block;
		padding: 0.8rem 1rem;
		width: 100%;
	}
	
	.nav-links a:hover {
		background-color: var(--border-color); /* Subtle hover effect */
	}
	
	.menu-toggle {
		display: block; /* Show hamburger menu */
		order: 2; /* Position between logo/icons and search */
	}
	
	.nav-icons {
		order: 1; /* Move icons next to logo */
	}
	 
	.hero-content h1 {
		font-size: 2.5rem;
	}
	
	.hero-content p {
		font-size: 1rem;
	}
	
	.info-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	
	.info-card {
		padding: 1rem;
	}

	h2 {
		font-size: 1.8rem;
	}
}

@media (max-width: 480px) {
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-section {
		padding: 4rem 0;
	}
	
	.info-grid {
		grid-template-columns: 1fr; /* Single column */
	}
	
	.logo {
		font-size: 1.5rem;
	}
	.nav-icons {
		gap: 0.8rem; /* Reduce gap */
	}
	.menu-toggle {
		font-size: 1.3rem;
	}
}

@media (max-width: 768px) {
	.hero-content-alt {
		grid-template-columns: 1fr;
		text-align: center;
		align-items: center; 
	}
	
	.hero-left-alt h1 {
		font-size: 2rem;
	}
	.hero-section-alt {
		padding: 4rem 0;
	}
}

/* Style the active nav link (Optional) */
.nav-links a.active {
	color: var(--primary-blue);
	font-weight: 700; /* Make it bolder */
	text-decoration: underline;
	/* Add other styles like underline if desired */
}

/* --- Modal Styles --- */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1001; /* Above header */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden; /* Prevent background scroll */
	background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
	/* Use flex to center the modal content */
	justify-content: center;
	align-items: center;
}

/* Add 'open' class via JS to show modal */
.modal.open {
	display: flex;
}

.modal-content {
	background-color: var(--bg-color);
	color: var(--text-color);
	padding: 1.5rem 2rem 2rem 2rem; /* More padding bottom */
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
	position: relative;
	max-width: 700px; /* Wider modal */
	width: 90%;
	max-height: 85vh; /* Limit height */
	display: flex;
	flex-direction: column; /* Stack title, items, summary */
	transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content h2 {
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 1.8rem;
	color: var(--text-color);
}

.close-modal-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 2rem; /* Larger close icon */
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	color: var(--text-color);
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.close-modal-btn:hover {
	opacity: 1;
}

/* testimonial */
.testimonial{
	font-family: var(--font-primary, system-ui);
	display:grid;
	grid-template-columns: 1.3fr 320px;
	gap:14px;
	align-items:center;
	background: radial-gradient(120% 140% at 10% 10%,
				var(--primary-blue) 0%,
				var(--secondary-blue) 60%,
				var(--primary-blue) 100%);
	color: var(--dark-text);
	border-radius:18px;
	padding: 32px 32px;
	box-shadow: var(--shadow);
	position:relative;
	overflow:hidden;
	margin-left: 48px;
	margin-right: 16px;
	transition: box-shadow 0.3s ease
}

.testimonial:hover{
	box-shadow: var(--strong-shadow-light);
}

/* virgolette decorative */
.testimonial::before{
	content:"“";
	position:absolute;
	left:26px; top:14px;
	font-size:32pt; line-height:1;
	color: var(--accent-yellow);
	opacity:.95;
	font-weight:700;
}

/* corpo testo */
.t-body p{
	margin:8px 0 22px;
	font-family: var(--font-secondary, inherit);
	font-size: 15pt;
	line-height:1.6;
	color: var(--dark-text);
	max-width:60ch;
	text-shadow: none;
}

.t-meta{
	display:flex; align-items:center; gap:12px;
	color: var(--dark-text);
	font-weight:600;
}
.t-meta .dot{opacity:.45}
.t-title{opacity:.9; font-weight:500}

/* brand */
.t-brand{
	margin-top:14px;
	font-size:18px;
	letter-spacing:.35em;
	color: var(--accent-yellow);
	font-weight:800;
}

/* avatar con anello */
.t-avatar{
	justify-self:end;
	position:relative;
	width:220px;
	aspect-ratio:1/1;
	border-radius:50%;
	padding:10px;
	background: var(--card-bg);
}
.t-avatar img{
	width:100%; height:100%;
	object-fit:cover;
	border-radius:50%;
	display:block;
	border:10px solid var(--secondary-blue);
}

/* responsive */
@media (max-width: 860px){
	.testimonial{
		grid-template-columns:1fr;
		padding: 12px;
		padding-top: 32px;
	}
	
	.t-avatar{
		justify-self:start;
		width:200px; height:200px;
		margin-top:8px;
		margin: auto;
	}
}

/* wrapper + pulsanti */
.testimonials-wrap{
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0px;
	padding: 0px;
}

.ts-nav{
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	border: 1px solid var(--primary-blue);
	background: white;
	color: var(--primary-blue);
	box-shadow: var(--shadow);
	font-size: 22px;
	line-height: 1;
	margin: 4px;
	cursor: pointer;
}

.ts-nav:hover{ border: 2px solid;}

.ts-nav:disabled{ opacity:.4; cursor: default; }

/* scroller */
.testimonials-scroll{
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(90vw, 720px); /* larghezza di ogni card nello scroller */
	gap: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 8px;

	padding: 8px;
	padding-bottom: 16px;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 860px){
	.ts-nav{
		inline-size: 32px;
		block-size: 32px;
	}
}

/* ogni card si aggancia alla griglia */
.testimonials-scroll .testimonial{
	scroll-snap-align: start;
	min-height: 280px;
}

/* nascondi scrollbar dove opportuno */
.testimonials-scroll{
	scrollbar-width: none;      /* Firefox */
}
.testimonials-scroll::-webkit-scrollbar{ display: none; } /* WebKit */

/* responsive: su schermi larghi mostra card più grandi */
@media (min-width: 1200px){
	.testimonials-scroll{
		grid-auto-columns: 820px;
	}
}

.proof-section{
	background: radial-gradient(140% 140% at 10% 10%,
			var(--primary-blue) 0%,
			var(--secondary-blue) 70%,
			var(--primary-blue) 100%);
	color: var(--dark-text);
	padding: 56px 0;
}
.proof-container{
	width: min(1100px, 92vw);
	margin-inline: auto;
}
.proof-section h2{
	font-family: var(--font-primary, system-ui);
	font-weight: 700;
	letter-spacing: .2px;
	margin: 0 0 20px;
	font-size: clamp(22px, 2.6vw, 30px);
	color: var(--dark-text);
}
.proof-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 32px;
	margin: 0; padding: 0;
	list-style: none;
}

.proof-card{
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: start;
	gap: 12px;
	background: var(--card-bg);
	color: var(--light-text);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 18px 18px;
	box-shadow: var(--shadow);
}
.proof-icon{
	color: var(--primary-blue);
	border-radius: 10px;
	display: grid; place-items: center;
	width: 48px; height: 48px;
}
.proof-text h3{
	margin: 8px 0px 16px 0px;
	font-family: var(--font-primary, system-ui);
	font-size: 20px; font-weight: 700;
	color: var(--light-text);
}
.proof-text p{
	margin-bottom: 16px;
	font-family: var(--font-secondary, system-ui);
	font-size: 18px; line-height: 1.5;
	opacity: .9;
}

/* Responsive */
@media (max-width: 900px){
	.proof-grid{ grid-template-columns: 1fr; }
}

.logo-customer{
	background: var(--bg-color);
	color: var(--text-color);
	padding: 32px 0;
}

.lc-container{
	width: 100%;
	margin: auto;
	overflow: hidden;
	white-space: nowrap;
}
.lc-container a{
	display: inline-block;
	margin-right: var(--lc-row-gap);
	margin-left: var(--lc-row-gap);
}

.lc-container img{
	height: var(--lc-logo-h);
	width: auto;
	filter: grayscale(100%) sepia(1) hue-rotate(185deg);
}

.ln-chat{
	color: var(--light-text);
	padding: 40px 0;
}
.ln-chat__container{
	width: min(1100px, 92vw);
	margin-inline: auto;
}
.ln-chat__head{
	display:flex; align-items:flex-end; justify-content:space-between;
	margin: 0 0 12px;
}
.ln-chat__title{
	margin:0; font-family: var(--font-primary, system-ui);
	font-weight:700; font-size: clamp(20px, 2.6vw, 28px);
}
.ln-chat__subtitle{
	margin:6px 0 0;
	font-family: var(--font-secondary, system-ui);
}

/* Pannello */
.ln-chat__panel{
	background: white;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
	display: grid;
	grid-template-rows: 1fr auto auto; /* messaggi / form / footer */
}

/* Messaggi */
.ln-chat__messages{
	list-style: none; margin: 0; padding: 14px;
	display: flex; flex-direction: column; gap: 10px;
	height: min(48vh, 380px);
	overflow: auto; -webkit-overflow-scrolling: touch;
}

.ln-chat__messages a{
	text-decoration: underline;
}

.msg{ display:flex; flex-direction: column; gap: 6px; max-width: 85%; }
.msg--user{ align-self: flex-end; text-align: left; }
.msg__bubble{
	padding: 10px 12px; border-radius: 14px;
	border: 1px solid var(--border-color);
	box-shadow: 0 1px 0 rgba(0,0,0,.03) inset;
	line-height: 1.45; font-family: var(--font-secondary, system-ui);
}
.msg--bot .msg__bubble{ background: #f7f9fc; color: var(--text-color); }
.msg--user .msg__bubble{
	background: color-mix(in oklab, var(--secondary-blue) 16%, #fff);
	color: var(--text-color);
}
html.dark .msg--bot .msg__bubble{ background:#222; }
.msg__time{ font-size: 11px; color: #7b8190; }

/* Form */
.ln-chat__form{
	display: grid; grid-template-columns: 1fr auto; gap: 8px;
	padding: 12px; border-top: 1px solid var(--border-color);
}
.ln-chat__form input{
	resize: none; min-height: 44px; max-height: 120px;
	padding: 10px 12px; border: 1px solid var(--border-color);
	border-radius: 12px; font: 500 14px/1.35 var(--font-secondary, system-ui);
	color: var(--text-color); background: var(--card-bg);
}
.ln-chat__send{
	background: var(--primary-blue); color: #fff; border: none;
	border-radius: 12px; padding: 0 14px; font: 700 14px/1 var(--font-primary, system-ui);
}
.ln-chat__send:disabled{ opacity:.6; }

/* Footer */
.ln-chat__foot{
	margin: 0; padding: 0 12px 12px;
	font: 12px/1.4 var(--font-secondary, system-ui);
	color: #6b7280;
}

/* Accessibilità */
.sr-only{
	position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
	overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Responsive */
@media (max-width: 860px){
	.ln-chat{ padding: 28px 0; }
	.ln-chat__messages{ max-height: min(52vh, 360px); }
}

.ln-footer{
	background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
	color: var(--dark-text);
	border-top-color: rgba(255,255,255,.35);
	padding: 32px 0 18px;
}
.ln-footer__container{
	width: min(1100px, 92vw);
	margin-inline: auto;
}
.ln-footer__grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.ln-footer__grid section{
	padding: 1rem 0;
}

.ln-foot__block{ min-width: 0; }
.ln-foot__title{
	margin: 0 0 10px;
	font: 700 16px/1 var(--font-primary, system-ui);
	color: #fff;
}
.ln-foot__addr{ font-style: normal; }
.ln-foot__label{
	display:inline-block;
	width: 80px;
	color: color-mix(in oklab, #fff 80%, var(--dark-bg));
	font-weight: 600;
}
.ln-foot__list{
	list-style: none; margin: 8px 0 0; padding: 0;
	display: grid; gap: 6px;
}

.ln-foot__list a{
	color: var(--dark-text);
	text-decoration: none;
	border-bottom: 1px dashed rgba(255,255,255,.25);
	width: fit-content;
}

.ln-foot__list a:hover{
	color: #fff;
	border-bottom-color: #fff;
}

/* Bottom row */
.ln-footer__bottom{
	margin-top: 22px;
	padding-top: 12px;
	border-top-color: rgba(255,255,255,.25);
	color: rgba(255,255,255,.9);
	font: 12px/1.6 var(--font-secondary, system-ui);
}

/* Contenitore del menu */
.scroll-menu {
  width: 100%;
  background-color: #0a0a0a; /* sfondo scuro moderno */
  overflow-x: auto;         /* abilita lo scroll orizzontale */
  white-space: nowrap;      /* evita che gli item vadano a capo */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Lista orizzontale */
.scroll-menu ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Ogni elemento della lista */
.scroll-menu li {
  flex: 0 0 auto; /* non comprimere, mantieni larghezza minima */
}

/* Link del menu */
.scroll-menu a {
	display: inline-block;
	padding: 1rem 1.5rem;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s ease, color 0.3s ease;
	font-size: 1rem;
	border-bottom: 3px solid transparent;
}

/* Effetto hover */
.scroll-menu a:hover {
	background-color: #007bff;
	color: #fff;
}

/* Link attivo */
.scroll-menu a.active {
	border-bottom: 3px solid var(--accent-yellow);
	color: var(--accent-yellow);
}

.scroll-menu a.active:hover {
	background-color: #222200;
}

/* Mobile: scrollbar più sottile e gradevole */
.scroll-menu::-webkit-scrollbar {
	height: 6px;
}

.scroll-menu::-webkit-scrollbar-thumb {
	background-color: #AAA;
	border-radius: 3px;
}

.scroll-menu::-webkit-scrollbar-track {
	background-color: transparent;
}

/* TwoColumnSection - estensione leggera basata sulle tue variabili */
.two-col-section{
	background: var(--bg-color);
	padding: 3rem 0;
}

.two-col{
	display: grid;
	grid-template-columns: 0.95fr 1fr;
	gap: 4rem;
	align-items: center;
}

.two-col-section.two-col-section--reverse .two-col{
	direction: rtl;           /* trucco per invertire l’ordine visuale */
}
.two-col-section.two-col-section--reverse .two-col > *{
	direction: ltr;           /* riportiamo il testo a sinistra */
}

.two-col__content h2{
	font-family: var(--font-primary);
	color: var(--light-text);
	margin: 0 0 .5rem 0;
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.two-col__lead{
	color: var(--light-text);
	opacity: .9;
	font-size: 1.05rem;
	margin: 0 0 1rem 0;
}

.two-col__list{
	list-style: none;
	margin: 0 0 1.2rem 0;
	padding: 0;
}
.two-col__list li{
	position: relative;
	padding-left: 28px;
	margin: .55rem 0;
	color: var(--light-text);
}

.two-col__list li::before{
	content: "";
	position: absolute; left: 0; top: .45rem;
	width: 8px; height: 8px; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--secondary-blue), var(--primary-blue));
	box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.two-col__ctas{ display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center;}

.two-col__media{
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: clamp(12px, 2vw, 18px);
}

.two-col__img{ width: 100%; height: auto; display: block; border-radius: 10px; }

@media (max-width: 960px){
	.two-col{ grid-template-columns: 1fr;}
	.two-col-section .two-col-section--reverse .two-col{
		direction: ltr;
	}
	
	.two-col-section {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
}

.benefits-section {
	background-color: var(--light-bg);
	padding: 4rem 0;
	text-align: center;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.benefit-card {
	background: var(--card-bg);
	padding: 1.8rem 1.4rem;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.3s ease;
	text-align: left; /* così titolo e testo si allineano meglio */
}

.benefit-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--strong-shadow-light);
}

/* Header icona + titolo */
.benefit-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.8rem;
	margin-bottom: 0.8rem;
}

/* Icona */
.benefit-icon {
	width: 48px;
	height: auto;
	flex-shrink: 0; /* evita che si riduca se il titolo è lungo */
}

/* Titolo */
.benefit-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary-blue);
	margin: 0;
	line-height: 1.3;
}

/* Testo */
.benefit-card p {
	margin-top: 2rem;
	font-size: 1.0rem;
	color: var(--text-color);
}

.spec-card h4 {
	font-size: 1.05rem;
	color: var(--primary-blue);
	margin-bottom: 0.4rem;
}

.spec-card p {
	font-size: 0.95rem;
	color: var(--text-color);
	opacity: 0.9;
}

.faq-wrap{max-width:900px;margin-right: 8px; margin-left: 8px; display:grid;gap:12px}
.faq{
	background: var(--card-bg);
	border:1px solid var(--border-color);
	border-radius:10px;
	padding:.8rem 1rem;
	box-shadow: var(--shadow);
}
.faq summary{
	cursor:pointer;
	font-family: var(--font-primary);
	font-weight:700;
	color: var(--primary-blue);
	list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq p{margin:.6rem 0 0}

.dc-cta{
	display:flex;align-items:center;justify-content:space-between;
	gap:16px;padding:14px 16px;border:1px solid var(--border-color);
	border-radius:12px;background:linear-gradient(180deg,#fff 0%,#f7f9fb 100%);
	box-shadow: var(--shadow);
}
@media (max-width:768px){ .dc-cta{flex-direction:column;align-items:flex-start} }

/* Contact Section */
.contact-section h1 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2.2rem;
	color: var(--primary-blue);
}

.contact-section .container{
	text-align: center;
	max-width: 1024px;
}

.contact-section img {
	width: 96px;
	margin-top: 2rem;
}

.contact-section p {
	margin-bottom: 1.5rem;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.contact-item {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.2rem;
	box-shadow: var(--shadow);
	text-align: center;
}

.contact-item h3 {
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: var(--primary-blue);
}

.contact-item p {
	margin: 0;
	font-size: 0.95rem;
	word-break: break-word;
}

.contact-item a {
	color: var(--primary-blue);
	font-weight: 600;
}

.contact-item a:hover {
	color: var(--secondary-blue);
}
