/* css/index.css */

/* Reset e tipografia */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.4;
}

/* HEADER */
.site-header {
  background: #000;
  padding: 1rem 0;
  text-align: center;
}
.logo {
  width: 120px;
  height: auto;
}

/* NAV */
.nav-bar {
  background: #f0f0f0;
  text-align: center;
  padding: 0.5rem 0;
}
.nav-bar a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0.5rem;
}
.nav-bar span {
  color: #000;
  margin: 0 0.5rem;
}

/* HERO */
.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: #fafafa;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero p {
  margin-bottom: 1rem;
  color: #444;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.3s ease;
}
.btn-primary {
  background: #ff6600;
}
.btn-primary:hover {
  background: #e65c00;
}
.btn-secondary {
  background: #333;
}
.btn-secondary:hover {
  background: #111;
}

/* SEZIONE DUE CAMMINI */
.split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 1rem;
}
.split-box {
  flex: 1;
  min-width: 280px;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.split-box h2 {
  margin-bottom: 0.5rem;
}
.split-box p {
  margin-bottom: 1rem;
}
.split-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* GALLERIA */
.gallery {
  padding: 2rem 1rem;
  text-align: center;
}
.gallery h2 {
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.gallery-item {
  background: #f0f0f0;
  padding: 0.5rem;
  border-radius: 8px;
}
.gallery-item img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.gallery-item p {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #333;
}

/* PROCESSO */
.process {
  padding: 2rem 1rem;
  background: #fafafa;
  text-align: center;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
}

/* TESTIMONIANZE 
.testimonials {
  padding: 2rem 1rem;
  text-align: center;
}
.testimonial {
  margin-bottom: 1rem;
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
}
*/
/* ABOUT */
.about {
  padding: 2rem 1rem;
  text-align: center;
  background: #fafafa;
}

/* CONTATTO VELOCE */
.quick-contact {
  padding: 2rem 1rem;
  text-align: center;
}
.social-links {
  margin-top: 1rem;
}
.social-links a {
  text-decoration: none;
  color: #ff6600;
  margin: 0 0.5rem;
  font-weight: bold;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #000;
  color: #fff;
}
.footer a {
  color: #ff6600;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
  }
  .steps {
    flex-direction: column;
  }
}
/* Imágenes dentro de los bloques split-section */
.split-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}
/* ===== SEZIONE I NOSTRI LAVORI - MARQUEE ===== */
.our-works {
  padding: 2rem 1rem;
  text-align: center;
}

.our-works h2 {
  margin-bottom: 1rem;
}

/* Contenedor del marquee */
.marquee {
  --gap: 20px;
  --size: 180px;       /* ancho/alto de cada miniatura */
  --duration: 30s;     /* velocidad del scroll (menos = más rápido) */

  display: flex;
  overflow: hidden;
  gap: var(--gap);
  align-items: center;
}

/* Cada pista es su propio carril que se anima */
.marquee__track {
  flex: 0 0 auto;               /* no encoger, no crecer */
  display: flex;
  align-items: center;
  gap: var(--gap);
  animation: marquee var(--duration) linear infinite;
  will-change: transform;
}

/* Desfase para que la 2ª pista entre cuando la 1ª se va */
.marquee__track:nth-child(2) {
  animation-delay: calc(var(--duration) / -2);
}

/* Ítems e imágenes */
.marquee__track li {
  list-style: none;
  flex: 0 0 auto;
}

.marquee__track img {
  width: var(--size);
  height: var(--size);
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.25s ease;
}
.marquee__track img:hover {
  transform: scale(1.05);
}

/* Animación: desplaza cada pista un ancho completo de sí misma */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Opcional: para mover hacia la DERECHA, invierte la animación */
.marquee.marquee--right .marquee__track {
  animation-direction: reverse;
}

/* Responsive */
@media (max-width: 600px) {
  .marquee {
    --gap: 12px;
    --size: 120px;
    --duration: 25s;
  }
}

