
:root {
  --brand: #7d1524;
  --brand-dark: #540d17;
  --bg: #f2eae415;
  --text: #1b1b1b;
  --muted: #6b7280;
  --surface: #ffffff;
  --accent: #f2eae4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #eee; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 40px; width: auto; border-radius: .5rem; }
.brand-name { font-weight: 800; letter-spacing: .5px; color: var(--brand); font-size: 1.1rem; }

.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { font-weight: 600; padding: .5rem .75rem; border-radius: .75rem; }
.nav-links a.active, .nav-links a:hover { background: var(--accent); }

.burger { display: none; background: none; border: none; font-size: 1.5rem; }

.hero { background: linear-gradient(180deg, var(--accent), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; padding: 3rem 0; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
.hero p { color: var(--muted); font-size: 1.1rem; }
.cta { display: inline-block; margin-top: 1rem; background: var(--brand); color: #fff; padding: .8rem 1rem; border-radius: .9rem; font-weight: 700; }
.cta:hover { background: var(--brand-dark); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.card { border: 1px solid #eee; border-radius: 1rem; padding: 1rem; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.card h3 { margin-top: 0; }
.badge { display: inline-block; font-size: .75rem; padding: .25rem .5rem; border-radius: .5rem; background: var(--accent); color: var(--brand-dark); font-weight: 700; }


.cards2 {
  display: flex;
  gap: 20px; /* spazio fra le card */
}

.card2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card2 img {
  width: 100%;
  height: auto;
  margin-top: auto; /* spinge l’immagine in basso */
  border-radius: 12px; /* opzionale: angoli arrotondati */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* opzionale: ombra */
}


/* --- Responsive Mobile --- */
@media (max-width: 768px) {
  .cards2 {
    flex-direction: column;   /* stack verticale */
  }

  .card2 {
    width: 100%;             /* occupa tutta la larghezza */
  }

  .card2 img {
    margin-top: 15px;        /* un po’ di spazio dal testo */
  }
}



.section { padding: 2.5rem 0; }
.section h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.section p.lead { color: var(--muted); max-width: 70ch; text-align: justify;}

.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.client { border: 1px dashed #ddd; border-radius: .9rem; padding: 1.25rem; text-align: center; color: var(--muted); font-weight: 700; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
form input, form textarea { width: 100%; padding: .9rem; border-radius: .8rem; border: 1px solid #ddd; background: #fff; }
form button { background: var(--brand); color: #fff; border: none; padding: .9rem 1.1rem; border-radius: .9rem; font-weight: 700; }
form button:hover { background: var(--brand-dark); }

footer { border-top: 1px solid #eee; padding: 1.5rem 0; margin-top: 2rem; background: #fafafa; color: var(--muted); }
footer a { color: var(--muted); }

.hero-image { width: 100%; aspect-ratio: 16/10; background: radial-gradient(circle at 20% 30%, rgba(125,21,36,.12), transparent 40%), radial-gradient(circle at 80% 20%, rgba(125,21,36,.12), transparent 35%), radial-gradient(circle at 60% 80%, rgba(125,21,36,.12), transparent 30%), #fff; border-radius: 1rem; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; }
.hero-image span { color: var(--brand); font-weight: 700; opacity: .65; }


/* Galleria immagini affiancate */
.gallery {
  display: flex;            /* le immagini vanno una accanto all'altra */
  gap: 15px;                /* spazio tra le immagini */
  justify-content: center;  /* centratura orizzontale */
  flex-wrap: wrap;          /* su schermi piccoli le immagini vanno a capo */
  margin: 20px 0;
}

.gallery img {
  width: 30%;               /* ogni immagine occupa circa 1/3 della larghezza */
  max-width: 300px;         /* non più di 300px ciascuna */
  height: auto;             /* mantiene le proporzioni */
  border-radius: 8px;       /* angoli arrotondati */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  object-fit: cover;        /* mantiene il contenuto proporzionato */
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; right: 1rem; top: 64px; background: #fff; border: 1px solid #eee; border-radius: .75rem; padding: .5rem; flex-direction: column; width: min(260px, 90vw); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
}

.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: 20px auto; /* centrato e con un po' di spazio sopra e sotto */
}

.mySlides {
  display: none;
}



.mySlides img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dots {
  text-align: right;
  margin-top: 10px;
}
.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-flex;
  transition: background-color 0.3s;
}
.active {
  background-color: #717171;
}
