/* ===================== Reset e base ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  color: #333;
  line-height: 1.6;
  /* Sfondo immagine negozio con overlay bianco */
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
              url('img/background-negozio.webp') no-repeat center top;
  background-size: cover;
}

/* ===================== Utilità riutilizzabili ===================== */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background-color: #fff;
}

/* ===================== Header ===================== */
header {
  text-align: center;
  padding: 30px 15px 10px;
  background-color: #e8f5e9;
  border-bottom: 1px solid #c8e6c9;
}

.logo-container {
  margin-bottom: 10px;
}

.logo {
  max-width: 100px;
  height: auto;
}

h1 {
  color: #2c6c2f; /* contrasto migliorato */
  font-size: 2.2em;
}

header p {
  font-size: 1.1em;
  color: #555;
}

/* ===================== Navigazione ===================== */
nav {
  background-color: #2e7d32;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
  background-color: #1b5e20;
  border-radius: 4px;
}

/* ===================== Foto negozio sopra titolo ===================== */
.hero-photos {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.foto-negozio {
  width: 30%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.foto-negozio:hover {
  transform: scale(1.02);
}

/* ===================== Main ===================== */
main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

section h2 {
  color: #2c6c2f;
  font-size: 1.8em;
}

section h3 {
  color: #388e3c;
  margin-top: 30px;
}

ul {
  padding-left: 20px;
}

/* ===================== Galleria ===================== */
.category-box {
  border: 1.5px solid #2e7d32;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-box h3 {
  text-align: center;
  font-size: 1em;
  margin-bottom: 8px;
  color: #2e7d32;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 6px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.gallery-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.02);
}

/* Frecce */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(46,125,50,0.8);
  color: white;
  border: none;
  font-size: 1em;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.arrow:hover {
  background-color: rgba(27,94,32,0.9);
}

.arrow.left {
  left: 4px;
}

.arrow.right {
  right: 4px;
}

/* ===================== Mappa ===================== */
.mappa {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* ===================== Form contatti ===================== */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

form label {
  font-weight: bold;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  width: 100%;
}

form button {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #1b5e20;
}

/* ===================== Footer ===================== */
footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

/* ===================== Responsive ===================== */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .logo {
    max-width: 80px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photos {
    flex-direction: column;
    align-items: center;
  }

  .foto-negozio {
    width: 70%;
    max-width: 300px;
  }
}
