h1, h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #2a2a2a;
}


body {
  background-color: #f5f2e8;
}

body, p, button {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  position: relative;
  z-index: 10;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 6rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

.navbar a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .navbar ul {
    gap: 1rem; /* spazio minimo tra le voci */
  }

  .navbar a {
    font-size: 0.9rem; /* testo più piccolo */
    white-space: nowrap; /* evita l'andata a capo */
  }
}

/* Scorrimento fluido */
html {
  scroll-behavior: smooth;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background: url('img/sfondo2.jpg  ') center/cover no-repeat;
  color: white;
  text-align: center;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-text {
  position: relative;
  top: 45%;
  transform: translateY(-50%);
}
.hero-text .logo {
  width: 90px;
  margin-bottom: 1rem;
}
.hero .logo {
  width: 500px;     
  max-width: 90%;   
  height: auto;
}
.hero-text p {
  font-size: 1.2rem;
}

/* Sezioni */
main {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 1rem;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-top: 2rem;
}
.subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Azienda */
.azienda {
  text-align: center;
  padding: 6rem 1rem;
}

.azienda h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 1rem;
  color: #2a2a2a;
}

.azienda .subtitle {
  font-style: italic;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 3rem;
}

/* Swiper caroselli */
.swiper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 4 / 3;   /* mantiene proporzione orizzontale */
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* riempie senza deformare */
  object-position: center;
}

.swiper-button-next, .swiper-button-prev {
  color: #fff;
}

/* Footer */
.footer {
  background-color: #2b2b2b;
  color: #f5f2e8;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer a {
  color: #f5f2e8;
  text-decoration: none;
}

.footer-logo {
  width: 200px;
  margin-bottom: 1rem;
}

.footer-info p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.footer-social img {
  width: 48px;
  height: 48px;
  margin: 1rem 0;
  transition: opacity 0.2s ease;
}
.footer-social img:hover {
  opacity: 0.7;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cfcfcf;
}

.read-more.minimal {
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
}
.read-more.minimal:hover {
  opacity: 0.7;
}
.section-centered {
  text-align: center;
  padding: 3rem 1rem;
}

.section-centered h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #2a2a2a;
  margin-bottom: 1rem;
}

.section-centered .subtitle {
  font-style: italic;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 3rem;
}

.azienda-text.full p,
.bamboo-text.full p,
.galline-text.full p {
  text-align: justify;
  text-justify: inter-word;
  max-width: 900px;
  margin: 0 auto 1rem auto;
}