/* styles.css — MV GROUP sito responsive */

/* Reset e base */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
html {
 scroll-behavior: smooth;
}
body {
 font-family: 'Roboto', sans-serif;
 line-height: 1.6;
 color: #222;
 background-color: #fff;
}

img {
 max-width: 100%;
 display: block;
}
a {
 color: inherit;
 text-decoration: none;
}

/* Container */
.container {
 width: 90%;
 max-width: 1200px;
 margin: 0 auto;
}

/* Tipografia */
h1, h2, h3, h4 {
 font-weight: 700;
 line-height: 1.2;
 margin-bottom: 0.5em;
}
.lead {
 font-size: 1.25rem;
 margin-bottom: 1em;
}
.muted {
 color: #666;
}

/* Bottoni */
.btn {
 display: inline-block;
 padding: 0.75em 1.25em;
 border-radius: 0.5em;
 font-weight: 500;
 transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary {
 background-color: #aeafae;
 color: #000;
}
.btn-primary:hover {
 background-color: #555;
}
.btn-outline {
 border: 2px solid #555;
 color:#555;
}
.btn-outline:hover {
 background-color: #555;
 color: #000;
}
.btn-ghost {
 border: 2px solid #ccc;
 color: #333;
}
.btn-ghost:hover {
 background-color: #eee;
}

/* Header / Nav */
.site-header {
  background-color: #34755a;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #eee;
  height: 70px; /* altezza header */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* centra verticalmente logo + menu */
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;   /* dimensione controllata */
  width: auto;
  display: block; /* evita spazi indesiderati sotto */
  margin-top: 1%;
}
.main-nav ul {
  list-style: none;
  display: flex;      /* <-- importante per orizzontale */
  flex-direction: row;/* <-- forza disposizione orizzontale */
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline-block;
}
.main-nav a {
  font-weight: 500;
  color: #fff;            /* testo bianco */
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #f5c400;         /* giallo oro al passaggio */
}


/* Hamburger menu */
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
 display: block;
 background: #333;
 height: 3px;
 width: 25px;
 border-radius: 3px;
 position: relative;
}
.hamburger::before,
.hamburger::after {
 content: "";
 position: absolute;
 left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ✅ FIX RESPONSIVE HEADER */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 0;
  }

  .logo img {
    height: 50px;
    margin-bottom: 8px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .main-nav a {
    font-size: 1rem;
  }
}


/* Hero */
.hero {
 position: relative;
 height: 100vh; /* 100% altezza schermo */
 background: url("assets/Copia9.png") no-repeat center center/cover;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: #fff;
}

.hero-overlay {
  background: rgba(6, 74, 20, 0.4); /* overlay scuro */
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
 font-size: 3rem;
 margin-bottom: 1rem;
}

.hero .lead {
 font-size: 1.25rem;
 margin-bottom: 2rem;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

/* Pulsante principale */
.btn-primary {
 background-color: #34755a;
 color: #fff;
 padding: 0.75em 1.5em;
 border-radius: 6px;
 text-decoration: none;
 font-weight: 600;
 transition: background 0.3s ease;
}

.btn-primary:hover {
 background-color: #afaeae;
}

/* Sezioni */
.section {
 padding: 4em 0;
}
.section:nth-child(even) {
 background-color: #fafafa;
}
.logo-item {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-item img {
  width: 120px;
  height: auto;
  cursor: pointer;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Form */
/* Contenitore form */
.section.quote .container {
  display: flex;
  justify-content: center;
}

.form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 600px;   /* larghezza massima */
  margin: 0 auto;
}

/* Campi del form */
.form-row {
  margin-bottom: 1.5rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Effetto focus */
.form-row input:focus,
.form-row textarea:focus {
  border-color: #34755a;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 86, 255, 0.5);
}

/* Bottone */
.form button {
  background: #34755a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form button:hover {
  background: #34755a;
}


/* Portfolio */
.grid {
 display: grid;
 gap: 2em;
}
.grid-3 {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.work-item figcaption {
 margin-top: 0.5em;
 font-size: 0.9rem;
 color: #555;
}
/* Flip card */
.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 300px;
  height: 200px;
  perspective: 1000px;
  margin: 0 auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: #fff;
  color: #333;
  transform: rotateY(180deg);
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
/* 🔹 Fa scendere il bottone in fondo alla card */
.flip-card-back .btn {
  margin-top: auto;
  margin-bottom: 0.5rem; /* opzionale, piccolo distacco dal bordo inferiore */
}
/* --- Responsive Flip Cards --- */

/* Tablet: riduce leggermente le card */
@media (max-width: 992px) {
  .flip-card {
    max-width: 250px;
    height: 170px;
  }
}

/* Mobile: card più piccole e griglia a una colonna */
@media (max-width: 600px) {
  .grid.grid-3 {
    grid-template-columns: 1fr; /* una card per riga */
  }

  .flip-card {
    max-width: 220px;
    height: 150px;
  }

  .flip-card-front img {
    object-fit: cover;
  }

  /* un po' di spazio tra le card */
  .grid.grid-3 > * {
    margin-bottom: 1.5rem;
  }
}

/* Modal */
.modal {
  display: none; /* nascosto di default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}


/* FOOTER di sotto */
.footer {
  background-color:#34755a;
  color: white;
  padding: 30px 10%;
}

/* LAYOUT A 3 COLONNE CON GRIGLIA */
.footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; /* ⬅️ questo è il cambiamento */
  gap: 20px;
}


/* COLONNA SINISTRA: SOCIAL */
/* --- COLONNA SINISTRA: SOCIAL con icone grandi --- */
/* Social come i contatti */
.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px; /* Spazio verticale minimo */
}

.footer-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  height: 38px; /* Altezza fissa per mantenere compattezza */
  overflow: hidden;
  text-decoration: none;
  color: white;
}

.footer-socials a img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: contain;
}



/* Contatti (già esistenti) per riferimento */
.footer-contacts p {
  margin: 3px 0;
  font-size: 14px;
}

/* COLONNA CENTRALE: COPYRIGHT */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-center p {
  margin: 10;
  font-size: 16px;
}
.footer-logo {
  margin-bottom: 20px;
  width: 70px;
  height: 60px;
}


/* COLONNA DESTRA: LOGO E CONTATTI */
.footer-right {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* allinea tutto a destra */
  justify-content: center;
  text-align: right;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

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

.footer-contacts p {
  margin: 0.3rem 0;
}

.footer-contacts a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: #d1d1d1;
  text-decoration: underline;
}


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

  .footer-logo {
    margin: 0 auto 1rem;
  }

  .footer-socials a {
    margin-right: 10px;
  }
}

/* ✅ FIX RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .footer-socials {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .footer-socials a img {
    width: 50px;
    height: 50px;
  }

  .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-center p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .footer-privacy {
    display: block;
    margin-top: 4px;
  }

  .footer-right,
  .footer-info {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 8px;
  }

  .footer-logo img {
    width: 80px;
    height: auto;
  }

  .footer-contacts p {
    font-size: 0.85rem;
  }
}

/* Layout lavori */
.lavoro {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.lavoro-img {
  flex: 1 1 40%;
}

.lavoro-img img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lavoro-text {
  flex: 1 1 55%;
}

.lavoro-text h2 {
  margin-bottom: 1rem;
}

.lavoro-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* SLIDER LOGHI AUTOMATICO per aziende*/
.logo-carousel {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  background-color: transparent;
}

.logo-track {
  display: flex;
  width: calc(250px * 8); /* 8 loghi */
  animation: scroll-logos 25s linear infinite;
}

.logo-item {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.logo-item img {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive per schermi piccoli */
@media (max-width: 600px) {
  .logo-item {
    flex: 0 0 180px;
  }

  .logo-item img {
    width: 100px;
  }
}


.logo-wrapper {
  overflow: hidden;
  width: 600px; /* mostra 3 loghi alla volta (3×200px) */
}

.logo-track {
  display: flex;
  transition: transform 0.5s ease;
}

.logo-item {
  min-width: 100px;
  text-align: center;
}

.logo-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.slider-btn {
  background: #595e69;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
}
.azienda-block {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.azienda-logo {
  flex: 1 1 200px;
  max-width: 200px;
}

.azienda-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.azienda-info {
  flex: 2 1 400px;
}

.azienda-info h2 {
  margin-bottom: 0.5rem;
  color: #222;
}

.azienda-info p {
  font-size: 1.05rem;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #4b4b4b, #2a0897);
  animation: flow 4s linear infinite;
  z-index: 9999;
}

body::before {
  left: 0;
}

body::after {
  right: 0;
}

@keyframes flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

body {
  background:
    linear-gradient(90deg, #d9d9d9 0%, #f2f2f2 10%, #f2f2f2 90%, #d9d9d9 100%);
}


/* --- Sezione CHI SIAMO --- */
#chi-siamo {
  font-family: "Poppins", sans-serif;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

/* Titolo principale */
#chi-siamo h2 {
  font-size: 2.5rem;
  font-weight: 700;
  border-bottom: 4px solid #4CAF50;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 40px;
  position: relative;
}

#chi-siamo h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 4px;
  width: 0%;
  background-color: #4CAF50;
  animation: underlineGrow 1s ease forwards;
}

/* Blocchi aziendali */
#chi-siamo .company-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  animation: fadeUp 1.2s ease forwards;
}

#chi-siamo .company-block:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Logo */
#chi-siamo img {
  width: 180px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

#chi-siamo img:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Testo */
#chi-siamo h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

#chi-siamo h3:hover {
  color: #4CAF50;
}

.azienda-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.azienda-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ✅ Logo sempre a colori e cliccabile interamente */
.azienda-logo a {
  display: inline-block;
}

.azienda-logo img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.azienda-logo img:hover {
  transform: scale(1.1);
}

/* Testo */
.azienda-info h2 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #222;
}

.azienda-info p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .azienda-block {
    flex-direction: column;
    text-align: center;
  }

  .azienda-logo img {
    width: 100px;
  }
}
/* Sposta più in alto il bottone "Torna alla Home" solo su desktop */
@media (min-width: 769px) {
  .section > .container > div {
    margin-top: 0; /* o un valore più piccolo di 2rem */
  }

  /* se vuoi spostare anche il bottone in modo più preciso */
  .section > .container > div > .btn-primary {
    position: relative;
    top: -15px; /* sposta il bottone 15px verso l'alto */
  }
}
@media (min-width: 769px) {
  .btn.btn-primary {
    position: relative;
    top: -15px;
  }
}


/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px; /* metti right: 20px se vuoi spostarlo a destra */
  z-index: 9999;
  background-color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
/* === MENU MOBILE === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #2e6049;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
}

/* === FOOTER SOCIAL ICONS MOBILE === */
.footer-socials img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .footer-socials span {
    display: none;
  }
}
/* === OTTIMIZZAZIONE MOBILE === */
@media (max-width: 768px) {

  /* HEADER */
  .site-header {
    padding: 10px 0;
    text-align: center;
  }

  .site-header .logo img {
    width: 150px;
    height: auto;
    display: block;
    margin: 3;
  }

  /* Menu hamburger centrato */
  .nav-toggle {
    display: block;
    margin: 10px auto;
    background: none;
    border: none;
  }

  .main-nav ul {
    text-align: center;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li {
    margin: 10px 0;
  }

  /* FOOTER */
  .footer {
    text-align: center;
    padding: 20px 10px;
  }

  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
  }

  .footer-socials img {
    width: 28px;
    height: 28px;
  }

  .footer-center {
    margin: 10px auto;
    text-align: center;
  }

  .footer-center p {
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-logo {
    display: block;
    margin: 10px auto;
    width: 100px;
  }

  .footer-right {
    margin-top: 15px;
    text-align: center;
  }

  .footer-contacts p, 
  .footer-contacts a {
    font-size: 14px;
    display: block;
    margin: 4px 0;
  }
}
/* ✅ Sistemazione FOOTER versione mobile con logo sotto */
@media (max-width: 768px) {
  .footer {
    padding: 25px 5%;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* SOCIAL */
  .footer-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
  }

  .footer-socials a img {
    width: 38px;
    height: 38px;
  }

  /* TESTO COPYRIGHT */
  .footer-center {
    order: 1;
  }

  .footer-center p {
    font-size: 0.9rem;
    margin: 5px 0;
    line-height: 1.3;
  }

  .footer-privacy {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  /* LOGO SOTTO AL TESTO */
  .footer-logo {
    order: 2;
    margin-top: 6px;
  }

  .footer-logo img {
    width: 80px;
    height: auto;
  }

  /* CONTATTI */
  .footer-right,
  .footer-info {
    justify-content: center;
    text-align: center;
  }

  .footer-contacts p {
    font-size: 0.85rem;
    margin: 2px 0;
  }
}
/* --- SISTEMAZIONI HEADER + FOOTER MOBILE --- */

/* HEADER su mobile */
@media (max-width: 768px) {
  .site-header {
    background-color: #34755a;
    height: 60px; /* riduce l'altezza */
    border-bottom: none;
  }

  .header-inner {
    padding: 0 10px;
    justify-content: center;
  }

  .logo img {
    height: 45px;
    margin-top: 0;
  }

  .main-nav ul {
    background-color: #34755a;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 5% 30px; /* meno spazio inferiore */
    text-align: center;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* ridotto lo spazio generale */
  }

  /* SOCIAL */
  .footer-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
  }

  .footer-socials a img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
  }

  .footer-socials a img:hover {
    transform: scale(1.1);
  }

  /* COPYRIGHT */
  .footer-center {
    order: 1;
  }

  .footer-center p {
    font-size: 0.9rem;
    margin: 6px 0;
    line-height: 1.4;
  }

  /* LOGO */
  .footer-logo {
    order: 2;
    margin: 10px 0 8px; /* 🔹 meno spazio sopra e sotto */
    display: flex;
    justify-content: center;
  }

  .footer-logo img {
    width: 100px;
    height: auto;
    display: block;
  }

  /* CONTATTI */
  .footer-right {
    order: 3;
    margin-top: 8px; /* 🔹 ravvicinato al logo */
  }

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

  .footer-info h3.footer-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer-contacts p {
    font-size: 0.95rem;
    margin: 4px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .footer-contacts p a {
    color: inherit;
    text-decoration: none;
  }

  .footer-contacts p a:hover {
    text-decoration: underline;
  }

  .footer-contacts p i,
  .footer-contacts p img {
    vertical-align: middle;
  }
}

/* ----- HEADER MOBILE ----- */
@media (max-width: 768px) {
  .site-header {
    background-color: #34755a; /* stesso colore del footer */
    height: auto;
    padding: 10px 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .logo img {
    height: 45px;
    width: auto;
    margin: 0;
  }

  /* Mostra hamburger */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background: #fff;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    position: relative;
    display: block;
    transition: all 0.3s ease;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .hamburger::before { top: -8px; }
  .hamburger::after { top: 8px; }

  /* MENU MOBILE NASCOSTO DI DEFAULT */
  .main-nav {
    display: none;
    width: 100%;
    background-color: #34755a;
    text-align: center;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  /* MENU MOBILE VISIBILE QUANDO ATTIVO */
  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .main-nav a {
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
  }

  .main-nav a:hover {
    color: #f5c400;
  }
}
/* ✅ Adattamento perfetto HERO su mobile */
@media (max-width: 768px) {
  .hero {
    height: auto; /* evita tagli verticali */
    min-height: 100dvh; /* usa viewport dinamico dei nuovi browser */
    background-position: center top; /* centra meglio l’immagine */
    background-size: contain; /* evita zoom */
    padding: 120px 20px; /* spazio interno per testo */
  }

  .hero-overlay {
    background: rgba(6, 74, 20, 0.5); /* leggermente più scuro per leggibilità */
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.4;
  }
}
@media (max-width: 768px) {
  body.home .hero-overlay {
    margin-top: 60px; /* Sposta verso il basso tutto il blocco */
  }
}
/* --- Galleria immagini nei progetti --- */
.lavoro-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lavoro-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.lavoro-gallery img:hover {
  transform: scale(1.03);
}

/* --- Responsive: 2 immagini per riga su mobile --- */
@media (max-width: 600px) {
  .lavoro-gallery {
    grid-template-columns: repeat(2, 1fr); /* 🔹 due colonne */
    gap: 0.6rem;
  }

  .lavoro-gallery img {
    aspect-ratio: 4 / 3;
  }
}
