/* ===== RESET ===== */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: #222;
	overflow-x: hidden;
}

h1,
h2,
h3,
p {
	margin: 0;
}

img {
	max-width: 100%;
	display: block;
}

section {
	width: 100%;
}

/* ===== CONTAINER ===== */
.container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
}

/* ===== SCROLL ===== */
html {
	scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
header {
	position: fixed;
	width: 100%;
	top: 0;
	background: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	backdrop-filter: blur(10px);
	z-index: 100;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	height: 75px;
}

nav a {
	margin-left: 25px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: 0.3s;
}

nav a:hover {
	color: #ff6600;
}

nav a.active {
	color: #ff6600;
	font-weight: bold;
}

.cta {
	background: #ff6600;
	color: white;
	padding: 10px 15px;
	border-radius: 5px;
}

/* ===== HERO ===== */
.hero {
	height: 100vh;
	position: relative;
	overflow: hidden;
}

/* SLIDES */
.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.5s ease, transform 8s ease;

}
@media (max-width: 768px) {

	/* prima immagine */
	.hero .slide:nth-child(1) {
		background-position: 30% center;
	}

	/* seconda immagine */
	.hero .slide:nth-child(2) {
		background-position: center;
	}

	/* terza immagine */
	.hero .slide:nth-child(3) {
		background-position: 30% center;
	}
}
.slide.active {
	opacity: 1;
	transform: scale(1.1);
}

/* OVERLAY */
.overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

/* HERO TEXT */
.hero-content {
	position: relative;
	color: white;
	max-width: 600px;
	margin-left: 10%;
	top: 50%;
	transform: translateY(-50%);
}

.hero h1 {
	font-size: 56px;
	line-height: 1.1;
	margin-bottom: 20px;
	letter-spacing: -1px;

	text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero p {
	font-size: 18px;
	margin-bottom: 30px;
}

/* BUTTONS */
.btn {
	padding: 12px 22px;
	border: 1px solid rgba(255,255,255,0.6);
	color: white;
	text-decoration: none;
	margin-right: 10px;
	border-radius: 6px;
	margin-top: 10px;

	backdrop-filter: blur(4px); /* 🔥 effetto premium */
	transition: all 0.3s ease;
}

.btn:hover {
	background: rgba(255,255,255,0.1);
	border-color: white;
}
.btn.primary {
	background: #ff6600;
	font-weight: 600;

	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	transition: all 0.3s ease;
}

.btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}
/* ===== SEZIONI ===== */
.section {
	padding: 100px 0;
}

.dark {
	background: #f4f3ef;
	color: white;
}

/* ===== CHI SIAMO ===== */
.about {
	padding: 100px 0;
	background: #f4f3ef;
}

.about h2 {
	text-align: left;
	margin-bottom: 60px;
	font-size: 36px;
}

.about-grid {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.about-card {
	flex: 1 1 calc(25% - 30px);
	background: white;
	padding: 30px;
	text-align: center;
	border-radius: 12px;
	transition: 0.3s;
}

.about-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon {
	width: 70px;
	height: 70px;
	margin: auto;
	margin-bottom: 20px;
	border-radius: 50%;
	background: #1f4f7a;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 28px;
}

.icon {
	background: #1f4f7a;
	transition: 0.3s;
}

.icon svg {
	stroke: white;
}

.about-card:hover .icon {
	transform: scale(1.08);
	background: #ff6600;
	/* arancio brand */
}

.about-card h3 {
	margin-bottom: 10px;
}

.about-card p {
	font-size: 14px;
	color: #555;
}

/* ===== SETTORI ===== */
.settori {
	padding: 100px 0;
	background: #0b2a4a;
	color: white;
}

.settori .section-title {
	color: white;
}

.settori-grid {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.settore-card {
	position: relative;
	flex: 1 1 calc(33.33% - 20px);
	overflow: hidden;
	border-radius: 12px;
	text-decoration: none;
	color: white;
}

.settore-card img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: 0.5s;
	filter: brightness(0.85);
}

.settore-card:hover img {
	transform: scale(1.08);
}

.settore-overlay {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

/* ===== FIGURE PROFESSIONALI===== */
#figure-professionali {
	background: #f4f3ef;
}

#figure-professionali .slider {
	margin-bottom: 60px;
	/* 🔥 spazio sopra il titolo */
}

.figure-professionali-grid {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.figure-professionali {
	position: relative;
	flex: 1 1 calc(33.33% - 20px);
	overflow: hidden;
	border-radius: 12px;
}

.figure-professionali img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: 0.4s;
}

.figure-professionali:hover img {
	transform: scale(1.05);
}

.figure-professionali-overlay {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	padding: 12px;
	text-align: center;
	font-size: 14px;
	opacity: 0;
	transition: 0.3s;
}

.figure-professionali:hover .figure-professionali-overlay {
	opacity: 1;
}

/* ===== CTA ===== */
.cta-section {
	background: #0b2a4a;
	color: white;
	text-align: center;
	padding: 80px 20px;
}

.cta-section h2 {
	margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
	background: #111;
	color: white;
	text-align: center;
	padding: 30px;
}

/* ===== RESPONSIVE ===== */
/* ===== SPAZIO FIGURE PROFESSIONALI===== */
#figure-professionali h2 {
	margin-bottom: 60px;
}

/* ===== ANIMAZIONI ===== */
.fade-in {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* HERO SETTORE */
.settore-hero {
	height: 400px;
	position: relative;
	overflow: hidden;
}

.bg-industria {
	width: 100%;
	height: 100%;
	background-image: url('images/industria.jpg');
	background-size: cover;
	background-position: center;
	animation: zoomBg 20s infinite alternate;
}

.bg-carpenteria {
	width: 100%;
	height: 100%;
	background-image: url('images/saldatura.jpg');
	background-size: cover;
	background-position: center;
	animation: zoomBg 12s infinite alternate;
}

.bg-motoristico {
	width: 100%;
	height: 100%;
	background-image: url('images/motore.jpg');
	/* cambia se vuoi */
	background-size: cover;
	background-position: center;
	animation: zoomBg 12s infinite alternate;
}

/* animazione leggera */
@keyframes zoomBg {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.08);
	}
}

/* CONTENUTO */
.settore-content {
	padding: 80px 0;
	max-width: 900px;
}

/* TITOLI IMPORTANTI */
.settore-content h2 {
	font-size: 42px;
	margin-bottom: 25px;
	position: relative;
}

/* LINEA SOTTO TITOLO */
.settore-content h2::after {
	content: "";
	width: 80px;
	height: 4px;
	background: #ff6600;
	display: block;
	margin-top: 10px;
}

/* TESTO */
.settore-content p {
	margin-bottom: 20px;
	line-height: 1.7;
	font-size: 16px;
}

/* TESTO GENERICO SEZIONI */
.text-block {
	max-width: 900px;
	margin: 15px auto 60px;
	line-height: 1.7;
	font-size: 16px;
	color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.nav {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	
/* ===== MENU MOBILE MIGLIORATO ===== */
nav {
	position: absolute;
	top: 80px;
	left: 0;
	width: 100%;

	background: white;

	display: none;
	flex-direction: column;
	align-items: flex-start;

	padding: 10px 0;

	max-height: 70vh; /* 🔥 NON fullscreen */
	overflow-y: auto;

	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

nav.active {
	display: flex;
}

/* LINK */
nav a {
	width: 100%;
	padding: 16px 25px;

	margin: 0;

	font-size: 16px;
	font-weight: 500;

	color: #2b2b2b;

	border-bottom: 1px solid #f1f1f1;

	transition: all 0.25s ease;
}

/* HOVER */
nav a:hover {
	background: #f8f7f4;
	padding-left: 30px;
}

/* DROPDOWN */
.dropdown {
	width: 100%;
}

.dropdown-toggle {
	display: block;
	width: 100%;
	padding: 16px 25px;

	font-size: 16px;       /* 🔥 stesso font */
	font-weight: 500;
	color: #2b2b2b;

	border-bottom: 1px solid #f1f1f1;

	transition: all 0.25s ease;
}

.dropdown-toggle:hover {
	background: #f8f7f4;
	padding-left: 30px;
}
.dropdown-menu {
	position: static;
	display: none;
	width: 100%;

	background: #fafafa;
}

.dropdown.open .dropdown-menu {
	display: flex;
	flex-direction: column;
}

.dropdown-menu a {
	padding: 14px 45px;

	font-size: 16px; /* 🔥 uguale alle altre */
	font-weight: 500;

	color: #2b2b2b; /* 🔥 stesso colore menu */

	border-bottom: 1px solid #f1f1f1;

	transition: all 0.25s ease;
}

.dropdown-menu a:hover {
	background: #f8f7f4;
	color: #ff6600;

	padding-left: 50px; /* micro animazione coerente */
}
/* CTA (FIX NON FULL WIDTH) */
.cta {
	margin: 15px 25px;
	padding: 10px 18px;
	width: auto;
	align-self: flex-start;
}
	/* HERO FIX */
	.hero {
		height: auto;
		padding: 120px 0 60px;
	}

	.hero-content {
		margin: 0 20px;
		text-align: center;
	}
.hero-content {
	opacity: 0;
	transform: translateY(30px);
	animation: heroFade 1s ease forwards;
	animation-delay: 0.4s;
}

@keyframes heroFade {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
	.hero h1 {
		font-size: 26px;
	}

	.hero p {
		font-size: 14px;
	}

	.about-card,
	.settore-card,
	.figure-professionali{
		flex: 1 1 100%;
	}
}

/* ===== SLIDER FIGURE PROFESSIONALI ===== */

.slider {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* TRACK */
.slider-track {
	display: flex;
	gap: 20px;
	transition: transform 0.5s ease;
}

/* SLIDE */
.slide-item {
	flex: 0 0 350px;
	height: 240px;
position: relative;
}

/* IMMAGINE */
.slide-item img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 🔥 uniforme */
        
}
/* TESTO (pulito, NO gradienti) */
.slide-text {
	position: absolute;
	bottom: 10px;
	left: 10px;

	background: rgba(0, 0, 0, 0.5); /* leggero */
	color: white;

	padding: 6px 10px;
	border-radius: 6px;

	font-size: 13px;
	font-weight: 500;
}
/* ===== TABLET (OK) ===== */
@media (max-width: 1024px) {
	.slide-item {
		flex: 0 0 calc(50% - 10px);
	}
}

/* ===== MOBILE (FIX VERO) ===== */
@media (max-width: 768px) {
	.slide-item {
		flex: 0 0 100%;
	}
 
}


/* FRECCE */
.slider button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 12px 16px;
	cursor: pointer;
	z-index: 10;
	transition: 0.3s;
}

.slider button:hover {
	background: #ff6600;
	transform: translateY(-50%) scale(1.1);
}

.prev {
	left: 15px;
}

.next {
	right: 15px;
}

/* ===== TITOLI SEZIONI ===== */
.section-title {
	font-size: 42px;
	margin-bottom: 25px;
	font-weight: 700;
	color: #2b2b2b;
	max-width: 900px;
	/* 🔥 stessa larghezza del testo */
	margin-left: auto;
	/* 🔥 centrato */
	margin-right: auto;
}

.section-title::after {
	content: "";
	width: 80px;
	height: 4px;
	background: #ff6600;
	display: block;
	margin-top: 10px;
}

.menu-toggle {
	display: none;
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		font-size: 28px;
		cursor: pointer;
	}

	.hero {
		height: 100vh;
		padding: 0;
	}

	.hero-content {
		position: absolute;
		bottom: 40px;
		left: 20px;
		transform: none;
		width: calc(100% - 40px);
		text-align: left;
	}

	.hero h1 {
		font-size: 26px;
		line-height: 1.2;
		margin-bottom: 15px;
	}

	.hero p {
		font-size: 14px;
		margin-bottom: 25px;
	}

	.buttons {
		display: flex;
		gap: 10px;
		flex-wrap: wrap;
	}
}

.hero-content {
	position: absolute;
	bottom: 40px;
	left: 20px;
	transform: none;
	width: calc(100% - 40px);
	text-align: left;
}

.hero h1 {
	font-size: 26px;
	line-height: 1.2;
	margin-bottom: 15px;
}

.hero p {
	font-size: 14px;
	margin-bottom: 25px;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ===== FIX DEFINITIVO NAVBAR + DROPDOWN ===== */
/* DESKTOP ONLY */
@media (min-width: 769px) {
	header nav {
		display: flex;
		align-items: center;
		gap: 25px;
	}
}

/* reset margini vecchi */
header nav a {
	margin: 0;
}

/* dropdown container */
.dropdown {
	position: relative;
}

/* link settori */
.dropdown-toggle {
	text-decoration: none;
	color: #333;
	font-size: 14px;
	cursor: pointer;
}

/* menu nascosto */
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	min-width: 240px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	display: none;
	flex-direction: column;
	z-index: 999;
}

/* menu visibile */
.dropdown.open .dropdown-menu {
	display: flex;
}

/* link menu */
.dropdown-menu a {
	padding: 12px 15px;
	white-space: nowrap;
}

/* freccia */
.dropdown-toggle::after {
	content: " ▼";
	font-size: 10px;
}

/* ===== DESKTOP DROPDOWN ===== */
@media (min-width: 769px) {
	.dropdown:hover .dropdown-menu {
		display: flex;
	}
}

/* ===== SERVICES FIX ===== */
#servizi .about-card {
	text-align: left;
}

#servizi .about-card h3 {
	margin-bottom: 10px;
	color: #1f4f7a;
}

#servizi .about-card:hover h3 {
	color: #ff6600;
}

/* ===== SERVIZI PREMIUM ===== */
.services-premium {
	padding: 120px 0;
	background: #f4f3ef;
}

/* GRID */
.services-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

/* CARD */
.service-card {
	position: relative;
	flex: 1 1 calc(33.33% - 30px);
	padding: 35px;
	background: white;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	transition: all 0.3s ease;
}

/* HOVER */
.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
	border-color: #ff6600;
}

/* NUMERO */
.service-number {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 42px;
	font-weight: bold;
	color: rgba(31, 79, 122, 0.08);
}

/* TITOLI */
.service-card h3 {
	font-size: 20px;
	margin-bottom: 12px;
	color: #1f4f7a;
}

/* TESTO */
.service-card p {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

/* HOVER TITOLI */
.service-card:hover h3 {
	color: #ff6600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.service-card {
		flex: 1 1 100%;
	}
}

@media (max-width: 768px) {

	/* SEZIONE */
	.services-premium {
		padding: 80px 0;
	}

	/* GRID */
	.services-grid {
		flex-direction: column;
		gap: 20px;
	}

	/* CARD */
	.service-card {
		flex: 1 1 100%;
		padding: 25px;
	}

	/* NUMERO → DIVENTA INLINE */
	.service-number {
		position: static;
		display: block;
		font-size: 13px;
		font-weight: 600;
		color: #999;
		margin-bottom: 5px;
	}

	/* TITOLI */
	.service-card h3 {
		font-size: 18px;
	}

	/* TESTO */
	.service-card p {
		font-size: 14px;
	}
}
/* ===== CONTACT ===== */
.contact-section {
  padding: 100px 0;
  background: #f4f3ef;
}

.contact-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

/* INFO */
.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 25px;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #444;
}

/* FORM */
.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* INPUT */
.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6600;
  outline: none;
}

/* TEXTAREA */
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* CHECKBOX */
.checkbox {
  font-size: 13px;
  color: #555;
}

.checkbox input {
  margin-right: 8px;
}

/* BUTTON */
.contact-form button {
  background: #ff6600;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #e65c00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}
#contatti {
	scroll-margin-top: 100px;
}
}