.gallery-grid {
	display: flex;
	flex-direction: column;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

.gallery-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 60px 40px;
	min-height: 400px;
}

.gallery-row:nth-child(odd) {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.gallery-row:nth-child(even) {
	background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.gallery-row:nth-child(even) .gallery-image {
	order: 2;
}

.gallery-row:nth-child(even) .gallery-content {
	order: 1;
	width: 100%
}


.gallery-row:nth-child(even) .gallery-content .category {
	display: inline-block;
	background: linear-gradient(135deg, #6b6f81 0%, #dbd9dd 100%);
	color: white;
	padding: 6px 16px;
	border-radius: 25px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	font-size: 12px;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 500;
	border: 1px solid #dee2e6;
}

.gallery-row:nth-child(odd) .gallery-content .category {
	display: inline-block;
	background: linear-gradient(135deg, #6b6f81 0%, #dbd9dd 100%);
	color: white;
	padding: 6px 16px;
	border-radius: 25px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	font-size: 12px;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 500;
	border: 1px solid #dee2e6;
}

.gallery-image {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.1);
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	height: 350px;
}

.gallery-image:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.gallery-image:hover img {
	transform: scale(1.03);
}

.gallery-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}


.gallery-content h3 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 16px;
	color: #2c3e50;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.gallery-content p {
	font-size: 16px;
	line-height: 1.7;
	color: #5a6c7d;
	margin-bottom: 24px;
	font-weight: 400;
}

.gallery-content .btn-explore {
	display: inline-block;
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	align-self: flex-start;
	position: relative;
	padding-bottom: 2px;
}

.gallery-content .btn-explore::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: #667eea;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.gallery-content .btn-explore:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.gallery-content .btn-explore:hover {
	color: #764ba2;
}

/* Section header */
.gallery-header {
	text-align: center;
	margin-bottom: 30px;
	padding: 0 10px;
}

.gallery-header h2 {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #2c3e50;
	letter-spacing: -1px;
}

.gallery-header p {
	font-size: 18px;
	line-height: 1.6;
	color: #7f8c8d;
	max-width: 600px;
	margin: 0 auto;
}

.home {
	margin-bottom: 0px;
}



/* Header layout con logo e icone sulla stessa riga */
.logo-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 20px;
}

.logo-container	ul.icons {
	cursor: default;
	list-style: none;
	padding-left: 0;
	margin: -1em 0 2em -1em;
}

.logo-container ul.icons li {
	display: inline-block;
	padding: 1em 0 0 1em;
}



.gallery-section-header {
	position: relative;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-header .nome_art {
	max-width: 80%;
	width: 80%;
	margin: 0 auto;
	display: block;
}
/* Decorative elements */
.gallery-section {
	position: relative;
	padding: 80px 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.gallery-section::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.95);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.lightbox-main-content {
	position: relative;
	flex: 1;
	max-height: 90vh;
}

/* Colonna laterale con miniature */
.lightbox-thumbnails {
	display: none;
	flex-direction: column;
	gap: 10px;
	width: 80px;
	max-height: 80vh;
	overflow-y: auto;
	padding: 10px 0;
}

.lightbox-thumbnails::-webkit-scrollbar {
	width: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.thumbnail {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.thumbnail:hover {
	opacity: 0.8;
	transform: scale(1.05);
}

.thumbnail.active {
	opacity: 1;
	border-color: #c0a50c;
	transform: scale(1.1);
}

/* Responsive: mostra miniature solo su desktop */
@media (min-width: 1024px) {
	.lightbox-thumbnails {
		display: flex;
	}
	
	.lightbox-content {
		max-width: 95%;
	}
}

.lightbox img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.3s ease;
	transform-origin: center;
	position: relative;
	z-index: 1000;
}

.lightbox img.zoomed {
	cursor: zoom-out;
	transform: scale(2);
	max-width: none;
	max-height: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(2);
	z-index: 1002;
	overflow: visible;
	
}

.lightbox.zoomed-mode {
	overflow: scroll;
	cursor: grab;
	background: rgba(0, 0, 0, 0.95);
	#lightbox-image {
		max-width: 130%;
		max-height: none;
		z-index: 1005;
	}
}

.lightbox.zoomed-mode .lightbox-content {
	background: transparent;
}

.lightbox.zoomed-mode .lightbox-main-content {
	background: transparent;
}

.lightbox.zoomed-mode .lightbox-details {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.zoomed-mode .lightbox-info {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.zoomed-mode .lightbox-nav {
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.lightbox.zoomed-mode .lightbox-nav:hover {
	opacity: 0.8;
}

.lightbox.zoomed-mode .lightbox-thumbnails {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.zoomed-mode.grabbing {
	cursor: grabbing;
}

.lightbox-nav {
	position: absolute;
	top: 0;
	height: 100%;
	width: 80px;
	background-color: transparent;
	cursor: pointer;
	font-size: 24px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	outline: none;
	border: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.lightbox-nav:hover {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
	color: rgba(255, 255, 255, 0.8);
}

.lightbox-nav:active {
	background: transparent;
	color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
	left: 0px;
}

.lightbox-next {
	right: 0px;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	left: 20px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 25%;
	transition: all 0.3s ease;
	z-index: 1002;
	outline: none;
	border: none;
}

.lightbox-close:hover {
	color: white;
	background: rgba(0, 0, 0, 0.5);
}

/* Classe specifica per pulsanti di navigazione senza bordi */
.btn-nav-no-border {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
	color: rgba(255, 255, 255, 0.3);
	border: none;
	outline: none;
	transition: all 0.3s ease;
}

.btn-nav-no-border:hover {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
	color: rgba(255, 255, 255, 0.8);
}

.lightbox-info {
	color: white;
	margin-top: 10px;
	font-size: 16px;
	display: flex;
    justify-content: center;
}

/* Fascia informativa sotto l'immagine del lightbox */
.lightbox-details {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
	color: white;
	padding: 50px 20px 20px;
/*	transform: translateY(70%);*/
	transition: transform 0.3s ease;
	z-index: 1000;
}

.lightbox-content:hover .lightbox-details {
	/*	transform: translateY(0); */
}

.lightbox-details h3 {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #c0a50c;
	display: flex;
    justify-content: center;
}

.lightbox-details .dimensions {
	font-size: 14px;
	color: #ccc;
	margin-bottom: 12px;
	font-weight: 500;
	display: flex;
    justify-content: center;
}

.lightbox-details .description {
	font-size: 16px;
	line-height: 1.5;
	color: #fff;
	max-width: 600px;
	margin: 0 auto;
	display: flex;
    justify-content: center;
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.gallery-section {
		padding: 40px 0;
	}
	
	.gallery-header {
		margin-bottom: 40px;
	}
	
	.gallery-header h2 {
		font-size: 32px;
	}
	
	.gallery-header p {
		font-size: 16px;
	}
	
	.gallery-row {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 40px 20px;
		min-height: auto;
		display: flex;
		flex-direction: column;
	}
	
	.gallery-row .gallery-content {
		order: 1;
		width: 100%
	}
	
	.gallery-row .gallery-image {
		order: 2;
	}
	
	.gallery-image {
		height: 250px;
		width: 100%;
	}
	
	.gallery-content {
		padding: 0;
		text-align: center;
	}
	
	.gallery-content h3 {
		font-size: 28px;
		margin-bottom: 12px;
	}
	
	.gallery-content p {
		font-size: 15px;
		margin-bottom: 20px;
	}
	
	.gallery-content .btn-explore {
		align-self: center;
	}

	.logo-container	ul.icons {
		cursor: default;
		list-style: none;
		padding-left: 0;
		margin: -1em 0 2em -1em;
	}

	.logo-container ul.icons li {
		display: inline-block;
		padding: 1em 0 0 1em;
		font-size: 10px;
	}

	.logo-container .title {
		font-size: small;
	}
}

/* Contact Form Styles */
.contact-section {
	padding: 4rem 0;
}

.contact-header {
	text-align: center;
	margin-bottom: 3rem;
}

.contact-header h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #ffffff;
}

.contact-header p {
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.8);
}

.contact-content {
	display: flex;
	gap: 4rem;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-form-container {
	flex: 1;
}

.contact-form {
	background: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: #ffffff;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 5px;
	color: #ffffff;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #4facfe;
	background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
	width: 100%;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	border-radius: 5px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 5px;
	text-align: center;
	display: none;
}

.form-message.success {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
	border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
	background: rgba(244, 67, 54, 0.2);
	color: #f44336;
	border: 1px solid rgba(244, 67, 54, 0.3);
}

.contact-info {
	flex: 0 0 300px;
}

.contact-info-item {
	background: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 2rem;
}

.contact-info-item h3 {
	color: #ffffff;
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.contact-info-item p {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-detail {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-detail .icon {
	color: #4facfe;
	font-size: 1.2rem;
	width: 20px;
	text-align: center;
}

.contact-detail a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-detail a:hover {
	color: #4facfe;
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
	.contact-content {
		flex-direction: column;
		gap: 2rem;
	}
	
	.contact-info {
		flex: 1;
	}
	
	.contact-header h2 {
		font-size: 2rem;
	}
	
	.contact-form {
		padding: 1.5rem;
	}
}

.contact-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
	padding: 60px 40px;
	min-height: 400px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Contact Form Wrapper - Margini laterali per definire i confini */
.contact-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 2rem 3rem;
	background: rgba(126, 110, 110, 0.05);
	border-radius: 15px;
	border: 1px solid rgba(143, 108, 108, 0.1);
	backdrop-filter: blur(10px);
}



.contact-form-wrapper .fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.contact-form-wrapper .field {
	flex: 0 0 100%;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
	width: 100%;
	padding: 1rem;

	background: rgba(168, 124, 124, 0.1);
	border: 1px solid rgba(165, 140, 140, 0.2);
	border-radius: 8px;
	color: #5a5a5a;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
	outline: none;
	border-color: #4facfe;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
	color: rgba(92, 91, 91, 0.6);
}

.contact-form-wrapper textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form-wrapper .actions {
	text-align: center;
}

.contact-form-wrapper .actions .primary {
	background: linear-gradiet(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	padding: 0.6rem 2.5rem;
	border-radius: 20px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	height: 38px;
	line-height: 25px;
}

.contact-form-wrapper .actions .primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
	background: linear-gradient(135deg, #c0a50c 0%, #9e8809 100%);
}

/* Responsive per il wrapper */
@media (max-width: 768px) {
	.contact-form-wrapper {
		padding: 1.5rem 2rem;
		margin: 0 1rem;
	}
	
	.contact-form-wrapper .field.half {
		flex: 0 0 100%;
	}
	
	.contact-form-wrapper .actions .primary {
		padding: 0.8rem 2rem;
		font-size: 1rem;
	}
}

/* Stili per miniature in tecno_gallery.html */
.thumbnails-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	padding: 20px;
}

.thumbnail-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
}

.thumbnail-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.thumbnail-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
	border-color: #4facfe;
}

.thumbnail-item:hover img {
	transform: scale(1.05);
}

/* Responsive per miniature */
@media (max-width: 768px) {
	.thumbnails-grid {
		grid-template-columns: repeat(3, minmax(150px, 1fr));
		gap: 15px;
		padding: 15px;
	}
	
	.thumbnail-item img {
		height: 150px;
		width: 100%;
		object-fit: cover;
		display: block;
		transition: transform 0.3s ease;
	}
}

@media (max-width: 480px) {
	.thumbnails-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 10px;
	}
	
	.thumbnail-item img {
		height: 120px;
	}
}
