/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #222; background: #f9f9f9; }

/* ===== HEADER ===== */
header {
  background: #2d6a2d;
  color: white;
  text-align: center;
  padding: 20px 16px 14px;
}
header h1 { font-size: clamp(1.1rem, 4vw, 2rem); letter-spacing: 1px; }

/* ===== NAVIGAZIONE ===== */
nav {
  background: #1b4d1b;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: bold;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  letter-spacing: 0.5px;
  transition: background 0.2s;
  flex: 1 1 auto;
  text-align: center;
  min-width: 80px;
}
nav a:hover, nav a.active { background: #4caf50; }

/* ===== FOOTER ===== */
footer {
  background: #2d6a2d;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 20px 4%;
  gap: 12px;
  font-size: 0.88rem;
}
footer h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  border-bottom: 1px solid #4caf50;
  padding-bottom: 4px;
}
footer p { line-height: 1.7; }
footer a { color: #a5d6a7; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== TITOLI SEZIONE ===== */
.section-title {
  color: #2d6a2d;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 3px solid #4caf50;
}

/* ===== CONTENITORE PAGINA ===== */
.page-content {
  max-width: 860px;
  margin: 28px auto;
  padding: 0 4%;
}

/* ===== CARD GENERICA ===== */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: clamp(16px, 4vw, 24px);
  border-top: 5px solid #2d6a2d;
}
.card h3 {
  color: #2d6a2d;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card p { line-height: 1.8; font-size: 0.95rem; }
.card a { color: #2d6a2d; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.card a:hover { text-decoration: underline; }

/* ===== BLOCCO TESTO (chi siamo) ===== */
.intro-block, .storia-block {
  background: #fff;
  border-radius: 8px;
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  line-height: 1.75;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.storia-block p { margin-bottom: 14px; }
.storia-block p:last-child { margin-bottom: 0; }

/* ===== FOTO (chi siamo) ===== */
.foto-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.foto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.foto-card img { width: 100%; height: 220px; object-fit: cover; }
.foto-card span {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
  text-align: center;
}

/* ===== HERO (home) ===== */
.hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.hero img { width: 100%; max-height: 500px; object-fit: cover; }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 20px 16px;
}
.hero-overlay h2 { font-size: clamp(0.95rem, 3vw, 1.5rem); margin-bottom: 6px; }
.hero-overlay p  { font-size: clamp(0.8rem, 2.5vw, 1rem); opacity: 0.9; }

/* ===== SERVICE CARDS (home) ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 28px 5%;
  background: #fff;
}
.service-card {
  background: #e8f5e9;
  border-left: 5px solid #2d6a2d;
  padding: 18px 20px;
  border-radius: 6px;
}
.service-card h3 { color: #2d6a2d; margin-bottom: 8px; font-size: 0.95rem; }
.service-card p  { font-size: 0.9rem; line-height: 1.6; }

/* ===== MARCHI ===== */
.marchi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border-radius: 8px;
  padding: clamp(16px, 4vw, 32px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 32px;
}
.brand-list p { margin-bottom: 14px; font-size: 0.95rem; color: #444; line-height: 1.6; }
.brand-list ul { list-style: none; display: grid; gap: 6px; }
.brand-list ul li {
  padding: 9px 14px;
  background: #e8f5e9;
  border-left: 4px solid #2d6a2d;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1b4d1b;
}
.brand-logo img { width: 100%; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }

/* ===== ORARI E CONTATTI ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.orario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
  gap: 12px;
  font-size: 0.92rem;
}
.orario-row:last-child { border-bottom: none; }
.orario-row .giorno { font-weight: 600; color: #333; }
.orario-row .ore { text-align: right; }

.callout {
  background: #e8f5e9;
  border-left: 5px solid #2d6a2d;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: #1b4d1b;
  margin-bottom: 32px;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}
.cta-tel {
  display: block;
  background: #2d6a2d;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.cta-mail {
  display: block;
  background: #4caf50;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 28px;
  word-break: break-all;
}

/* ===== FOOTER - secondo paragrafo ===== */
footer div p + p { margin-top: 6px; }

/* ===== PAGINA CONTATTI - larghezza ridotta ===== */
.page-content-narrow { max-width: 760px; }

/* ===== MAPPA GOOGLE ===== */
.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  margin-bottom: 28px;
}
.map-hint { font-size: 0.85rem; font-weight: normal; color: #555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .marchi-container { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  nav a { padding: 12px 10px; font-size: 0.72rem; }
  .hero { max-height: 240px; }
  .hero img { max-height: 240px; }
  .hero-overlay { padding: 12px; }
  .foto-card img { height: 180px; }
  .cards { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 18px; }
}
