:root{
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #e7eaf0;
  --brand: #0b5ed7;
  --brand2:#0a58ca;
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--text);
  background:#fff;
  line-height:1.45;
}

html, body{
  overflow-x:hidden;
}

img{
  max-width:100%;
  height:auto;
}

a{color:inherit}
.container{max-width:1140px;margin:0 auto;padding:0 18px}

.header{
  position:sticky; top:0; z-index:20;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.brand img{
  height:60px;
  filter: contrast(1.08) saturate(1.05);
  width:auto;
  display:block;
}

.menu{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:14px;
}

.menu a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
}
.menu a:hover{background:var(--bg); color:var(--text)}

.lang{
  display:flex; gap:8px; align-items:center;
  border-left:1px solid var(--line);
  padding-left:12px;
  margin-left:6px;
}
.lang a{
  font-size:13px;
  text-decoration:none;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
}
.lang a.active{
  border-color:var(--brand);
  color:var(--brand);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:650;
  border:1px solid var(--line);
  background:#fff;
  white-space:nowrap;
}
.btn-primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn-primary:hover{background:var(--brand2); border-color:var(--brand2)}
.btn-ghost{
  background:#fff;
}

.hero{
  background:var(--bg);
  padding:58px 0;
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:26px;
  align-items:center;
}
.h1{
  font-size:42px;
  line-height:1.05;
  margin:0 0 14px 0;
  letter-spacing:-0.6px;
}
.lead{
  font-size:18px;
  color:var(--muted);
  margin:0 0 18px 0;
}
.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 0 0}

.badges{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:16px;
}
.badge{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px 12px;
  font-size:14px;
  color:var(--muted);
}

.hero-media{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  height:570px;   /* ← regola questa */
  max-width:420px; /* ← riduce la larghezza */
  margin-left:auto;
  overflow:hidden;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-media-wide{
  height: 320px;              /* più basso e largo = look professionale */
  max-width: 620px;           /* più “hero” */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.hero-media-wide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%; /* sposta il fuoco un po’ su (punta) */
  display: block;
}

.hero-proof{
  display:flex;
  align-items:center;
  gap:16px;
  margin:18px 0 26px;
}

.since-badge{
  height:95px;
  width:auto;
  display:block;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:12px 22px;
}

.hero-proof-text{
  font-size:13px;
  color:var(--muted);
  font-weight:650;
  letter-spacing:0.2px;
}

.section{padding:44px 0}
.section h2{margin:0 0 14px 0; font-size:22px}
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.section-contact{
  background:#f9fbfd;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#fff;
  text-decoration:none;
  min-height:120px;
}
.card:hover{background:var(--bg)}
.card .title{font-weight:750; margin-bottom:6px}
.card .desc{color:var(--muted); font-size:14px}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.box{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#fff;
}
.list{margin:0; padding-left:18px; color:var(--muted)}
.small{font-size:13px; color:var(--muted)}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-grid > div:last-child {
  text-align: right;
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

.footer .small strong { font-weight: 800; }
.footer .small { line-height: 1.45; }

.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}

.footer-contacts{
  text-align:right;
}

.footer-brand{
  font-weight:800;
}

.footer-tagline{
  font-size:13px;
  opacity:.85;
  margin-top:2px;
}

.footer-legal{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  justify-content:center;      /* riga elegante e centrata */
  flex-wrap:wrap;              /* se non entra, va a capo bene */
  gap:16px 22px;               /* spaziatura uniforme */
  font-size:12px;
  opacity:.75;
  line-height:1.4;
}

.footer-legal span{
  white-space:nowrap;          /* evita spezzature brutte */
}

@media (max-width:768px){
  .footer-legal{
    justify-content:flex-start;
    gap:8px 14px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid > div:last-child {
    text-align: center;
  }
}
@media (max-width: 520px){
  .grid{grid-template-columns:1fr}
}

.contact-map{
  background:#f4f7fa;
  padding:60px 0;
  margin-top:40px;
}

.map-box{
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

/* --- Contatti: blocco Reparti più equilibrato --- */
.contact-departments{
  margin-top:18px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafcff;
}

.contact-departments h3{
  margin:0 0 12px 0;
  font-size:16px;
}

.dept-list{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}

.dept{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
}

.dept-name{
  font-weight:700;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.dept-mail{
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}

.dept-mail:hover{ text-decoration:underline; }

.contact-meta{
  padding-top:10px;
  border-top:1px solid var(--line);
}

.contact-meta p{
  margin:8px 0 0 0;
}

/* Mobile: evita overflow */
@media (max-width:768px){
  .dept{
    flex-direction:column;
    align-items:flex-start;
  }
  .dept-name, .dept-mail{ white-space:normal; }
}

/* Privacy allineata alla colonna sinistra */
.privacy-left{
  width:50%;
}

@media (max-width:768px){
  .privacy-left{
    width:100%;
  }
}

.cert-block{
  margin-top:28px;
}

.cert-logos-row{
  display:flex;
  justify-content:center;   /* <-- CENTRA */
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}

.since-logo{
  height:60px;
}

.cert-logo{
  height:70px;
}

.cert-text{
  margin-top:14px;
}

.cert-it{
  font-size:15px;
  font-weight:600;
  color:#1f2a37;
  margin:4px 0;
}

.cert-en{
  font-size:13px;
  color:#6b7280;
  margin:0;
}

/* HERO AZIENDA PRODUZIONE */

.hero-azienda{
  position: relative;
  height: 520px;
  background: url('../assets/img/saldatura-hero.jpg') center/cover no-repeat;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;   /* SPINGE ALTO E BASSO */
  padding:60px 0;
}

.hero-azienda .hero-content{
  display:flex;
  flex-direction:column;
  height:100%;
  justify-content:space-between;
}

.hero-azienda h1{
  font-size:42px;
  margin:0;
}

.hero-azienda .bottom-cta{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
}

.hero-content{
  position: relative;
  color:#fff;
  max-width:700px;
}

.hero-azienda h1{
  font-size:42px;
  margin-bottom:12px;
}

.hero-azienda{
  border-radius:24px;      /* arrotondatura */
  overflow:hidden;         /* fondamentale */
  position:relative;
}

.hero-azienda{
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

/* =========================
   PAGINA PRODOTTI
========================= */

.products-hero{
  padding:60px 0 30px;
}

.products-hero h1{
  font-size:42px;
  margin-bottom:10px;
}

.products-hero .lead{
  font-size:18px;
  opacity:0.85;
  max-width:720px;
}

.products-index{
  padding:30px 0 80px;
}

.section-title{
  font-size:22px;
  margin:30px 0 15px;
}

/* ----- GRID CATEGORIE ----- */

.products-grid{
   margin-top:8px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

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

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

.p-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  transition:all 0.15s ease;
}

.p-card:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.p-thumb{
  background:#ffffff;
  padding:26px 20px;
  height:300px;              /* spazio uguale per tutte le immagini */
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
}

.p-thumb img{
  max-height:240px;          /* limita solo l'immagine */
  width:auto;
  object-fit:contain;
  display:block;
}

.p-body{
  padding:16px;
}

.p-title{
  font-weight:800;
  font-size:16px;
  margin-bottom:6px;
}

.p-desc{
  font-size:14px;
  opacity:0.85;
  line-height:1.4;
}

.p-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.15);
  opacity:0.9;
}

/* ----- SCELTA RAPIDA ----- */

.quick-picks{
  margin-top:60px;
}

.pill-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

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

.pill{
  background:#ffffff;
  border-radius:18px;
  padding:20px;
  border:1px solid rgba(0,0,0,0.08);
}

.pill-title{
  font-weight:800;
  margin-bottom:8px;
}

.pill-desc{
  opacity:0.85;
  font-size:14px;
}

/* ----- ELETTRICI IN EVIDENZA ----- */

.featured-electric{
  margin-top:70px;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:30px;
  align-items:center;
  border-radius:22px;
  border:1px solid rgba(0,0,0,0.08);
  overflow:hidden;
  background:#ffffff;
}

@media(max-width:1024px){
  .featured-electric{
    grid-template-columns:1fr;
  }
}

.fe-left{
  padding:30px;
}

.fe-left h2{
  font-size:24px;
  margin-bottom:12px;
}

.fe-left p{
  opacity:0.85;
  line-height:1.5;
  margin-bottom:12px;
}

.fe-list{
  margin:15px 0 20px 18px;
  opacity:0.9;
}

.fe-right{
  background:#f3f3f3;
}

.fe-right img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:260px;
  display:block;
}

/* ===== Nebulizzatori sezione prodotti ===== */

.nebula-wrapper{
display:grid;
grid-template-columns: repeat(3, 1fr);
gap:40px;
align-items:center;
justify-items:center;
margin-top:40px;
}

.nebula-wrapper img{
max-width:280px;
width:100%;
height:auto;
}

/* ===== HERO PRODOTTI ===== */

.products-hero {
  background: #f9fbfd;
  border-bottom: 1px solid var(--line);
  padding: 80px 0 70px 0;
}

.products-index-gray {
  background:#f9fbfd;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding: 70px 0;
}

.products-hero {
  background:#f9fbfd;
  border-bottom:1px solid var(--line);
  padding:80px 0 70px 0;
}

.products-bottom {
  background:transparent;
  border-top:none;
  border-bottom:none;
  padding:30px 0;
}

.cert-card{
border:1px solid #e5e5e5;
border-radius:12px;
background:#fff;
box-shadow:0 6px 18px rgba(0,0,0,0.05);
overflow:hidden;
transition:all 0.25s ease;
}

.cert-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 40px rgba(0,0,0,0.12);
}
.cert-card:hover{
transform:translateY(-6px) scale(1.01);
}

/* =========================
   MOBILE / TABLET
========================= */
@media (max-width: 768px) {

  .container{
    padding: 0 16px;
  }

  /* HEADER */
  .header{
    position: relative;
  }

  .nav{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 0;
  }

  .brand{
    justify-content: center;
  }

  .brand img{
    height: 54px;
  }

  .menu{
    width: 100%;
    justify-content: center;
    gap: 10px 12px;
    font-size: 16px;
  }

  .menu a{
    padding: 8px 10px;
  }

  .lang{
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .btn{
    min-height: 44px;
  }

  /* HERO HOME */
  .hero{
    padding: 42px 0;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .h1{
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.4px;
  }

  .lead{
    font-size: 17px;
  }

  .cta-row{
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn{
    width: 100%;
  }

  .badges{
    grid-template-columns: 1fr;
  }

  .hero-media{
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 320px;
    margin-left: 0;
  }

  .hero-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-proof{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .since-badge{
    height: 82px;
  }

  /* GRIGLIE GENERALI */
  .grid{
    grid-template-columns: 1fr;
  }

  .split{
    grid-template-columns: 1fr;
  }

  /* PAGINA PRODOTTI */
  .products-hero{
    padding: 44px 0 30px;
  }

  .products-hero h1{
    font-size: 34px;
    line-height: 1.08;
  }

  .products-hero .lead{
    font-size: 17px;
  }

  .products-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .p-thumb{
    height: 240px;
    padding: 18px;
  }

  .p-thumb img{
    max-height: 190px;
  }

  .pill-grid{
    grid-template-columns: 1fr;
  }

  .featured-electric{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fe-left{
    padding: 22px;
  }

  .nebula-wrapper{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nebula-wrapper img{
    max-width: 220px;
  }

  /* HERO AZIENDA */
  .hero-azienda{
    height: auto;
    min-height: 420px;
    padding: 34px 0;
    border-radius: 0;
  }

  .hero-azienda h1{
    font-size: 34px;
    line-height: 1.08;
  }

  /* CONTATTI */
  .contact-map{
    padding: 40px 0;
  }

  .dept{
    flex-direction: column;
    align-items: flex-start;
  }

  .dept-name,
  .dept-mail{
    white-space: normal;
  }

  /* FOOTER */
  .footer-grid{
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-contacts{
    text-align: center;
  }

  .footer-grid > div:last-child{
    text-align: center;
  }

  .footer-legal{
    justify-content: center;
    gap: 8px 14px;
  }
}

.restore-box{
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  background:#f9fbfd;
  margin-bottom:28px;
  display:grid;
  grid-template-columns:220px 1fr;
  gap:20px;
  align-items:center;
}

.restore-image{
  position:relative;
}

.restore-image img{
  width:100%;
  border-radius:10px;
  display:block;
}

.restore-badge{
  position:absolute;
  top:8px;
  right:8px;
  background:#000;
  color:#fff;
  font-size:11px;
  padding:5px 10px;
  border-radius:20px;
  font-weight:700;
  letter-spacing:.3px;
  text-align:right;
}

.restore-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
  font-size:13px;
}

@media (max-width:768px){
  .restore-box{
    grid-template-columns:1fr;
    padding:16px;
  }

  .restore-image{
    max-width:320px;
    width:100%;
  }

  .restore-content{
    min-width:0;
  }

  .restore-tags{
    gap:8px;
  }

  .restore-box .btn{
    width:100%;
  }
}

@media (max-width: 480px) {

  .h1,
  .products-hero h1,
  .hero-azienda h1{
    font-size: 29px;
  }

  .lead,
  .products-hero .lead{
    font-size: 16px;
  }

  .brand img{
    height: 48px;
  }

  .menu{
    font-size: 15px;
    gap: 8px 10px;
  }

  .hero-media{
    min-height: 260px;
  }

  .p-thumb{
    height: 210px;
  }

  .p-thumb img{
    max-height: 170px;
  }
 
 @media (max-width: 980px) {
  .use-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .use-grid {
    grid-template-columns: 1fr !important;
  }
}
 
}