:root {
  --brand-yellow: #da9c2f;
  --brand-gray: #EBEBE9;
  --text-dark: #2f2f2f;
  --brown-dark: #5F4E44;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: underline;
}

/* ----------------------------------------------------------- */
/*  STICKY NAV                                                 */
/* ----------------------------------------------------------- */
.sticky-header {
  background: #977969;
  height: 100px;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  z-index: 99;

  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s linear;
}

.sticky-header.show {
  visibility: visible;
  opacity: 1;
}

.sticky-header img {
  max-height: 80px;
}

/* ----------------------------------------------------------- */
/*  UTILITIES & BASE                                           */
/* ----------------------------------------------------------- */
.section {
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

.section h2,
.info h2 {
  font-family: "Raleway", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 auto 2rem;
  max-width: 23ch;
}

.handwritten {
  font-family: "Open Sans", cursive;
  font-weight: 700;
}

.section-transparent {
  background: transparent;
  margin-top: -35px
}

.section-gray {
  background: var(--brand-gray);
}

.section-yellow {
  background: var(--brand-yellow);
  color: #ffffff;
}

.two-col {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 4rem;
    text-align: left;
  }
}

/* Decorative giallo line sopra i titoli */
.has-line::before {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: var(--brand-yellow);
  margin: 0 auto 1.5rem auto;
  border-radius: 2px;
}

/* Wavy SVG separators  */
.wave {
  display: block;
  width: 100%;
  height: 50px;
}

.flip {
  transform: rotate(180deg);
}

/* ----------------------------------------------------------- */
/* HERO 1 – COWS                                               */
/* ----------------------------------------------------------- */
.hero-cows {
  position: relative;
  height: 30vh;
  min-height: 420px;
  background: url("images/hero-cows.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cows::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}

/* ----------------------------------------------------------- */
/* TAGLINE                                                     */
/* ----------------------------------------------------------- */
.tagline {
  background: var(--brand-yellow);
  padding: 4rem 1rem;
  text-align: center;
}

.tagline h1 {
  font-family: "Raleway", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  color: #5F4E44;
  margin: 0;
}

/* ----------------------------------------------------------- */
/* HERO 2 – CAMPO + LOGO NUTRIMENTO (mock‑up 1)                */
/* ----------------------------------------------------------- */
.hero-field {
  position: relative;
  height: 100vh; /* altezza piena schermo */
  min-height: 400px;
  overflow: hidden;
}

.hero-field .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* riempie lo spazio senza distorsione */
  z-index: -1;
}

.field-img {
  width: 100%;
  height: 100vh;
  min-height: 400px;
  z-index: 10; /* stanno sopra al video */
  /*background: url("images/field.png") bottom/cover no-repeat;*/
}

.hero-logo {
  padding: 15rem 1rem 4rem;
  z-index: 1; /* stanno sopra al video */
  text-align: center;
  font-family: "Raleway", serif;
  color: var(--brand-gray);
  font-size: 30px;
  z-index: 10
}

.hero-logo img {
  width: 95%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  z-index: 10
}

/* ----------------------------------------------------------- */
/* SEZIONE – SEMOLE SPECIFICHE (mock‑up 2 top)                 */
/* ----------------------------------------------------------- */
.list-icon {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  font-family: "Open Sans", cursive;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  justify-content: center;
}

.list-icon img {
  width: 40px;
  flex-shrink: 0;
}

.text-block {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: left;
}

/* ----------------------------------------------------------- */
/* VALORI (mock‑up 2 bottom)                                   */
/* ----------------------------------------------------------- */
.values {
  max-width: 720px;
  margin: 0 auto;
}

.values ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.values li {
  position: relative;
  margin: .8rem 0 .8rem 1.8rem;
}

.values li::before {
  content: "✓";
  position: absolute;
  left: -1.5rem;
  font-weight: 700;
}

.chi-siamo {
  max-width: 720px;
  margin: 50px auto 0px auto;
  color: var(--brand-gray);
  font-size: 20px;
  font-style: italic;
}

/* ----------------------------------------------------------- */
/* BENEFICI (mock‑up 3 top)                                    */
/* ----------------------------------------------------------- */
.benefit-lists {
  max-width: 720px;
  margin: 0 auto;
}

.benefit-lists h3 {
  font-family: "Open Sans", cursive;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 .75rem;
  line-height: 1.1;
}

.benefit-lists ul {
  padding-left: 1.1rem;
  margin: 0 0 1.3rem;
  text-align: left;
}

.benefit-lists li {
  margin: .35rem 0;
}

/* ----------------------------------------------------------- */
/* CERCHIO ICONA SOVRAPPOSTO ONDA                              */
/* ----------------------------------------------------------- */
.circle-icon {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.circle-icon img {
  max-width: 68px;
  height: auto;
}

/* ----------------------------------------------------------- */
/* FARINETTA VS FARINACCIO (mock‑up 3 bottom)                   */
/* ----------------------------------------------------------- */
.products {
  max-width: 720px;
  margin: 3.5rem auto;
  position: relative;
}

.products::before {
  content: "";
  position: absolute;
  background: #fff;
  width: 1px;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width:767px) {
  .products::before {
    display: none;
  }
}

@media (min-width:768px) {
  .products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }
}

.products article {
  margin-bottom: 2.5rem;
}

.products h3 {
  font-family: "Raleway", serif;
  font-size: 1.6rem;
  margin: .2rem 0 .8rem;
}

/* ----------------------------------------------------------- */
/* CONTATTI                                                    */
/* ----------------------------------------------------------- */
.info {
  background: var(--brand-gray);
  padding: 4rem 1rem 6rem;
  text-align: center;
}

.info p {
  font-size: clamp(.95rem, 2.5vw, 1.125rem);
  margin-bottom: .9rem;
}

.logo-wrapper {
  margin: 2rem 0 2.5rem;
}

.logo-wrapper img {
  max-width: 180px;
  height: auto;
}

footer {
  font-size: .875rem;
}

.social-logo {
  max-width: 32px;
}

.float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
}

/* Bottone */
.float a {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 5px 5px 5px #999;
  transition: transform 0.2s ease;
}

.float a:hover {
  transform: scale(1.1);
}

/* Immagine nel bottone */
.floating-button-img {
  max-width: 70%;
  margin: 8px 10px;
}

/* CTA testuale */
.float-cta {
  background: #ffffff;
  color: #333;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1;
  transform: translateX(0px);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.form {
  background: rgba(255, 255, 255, 0.1); /* trasparenza */
  backdrop-filter: blur(12px); /* effetto glass */
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 550px;
  margin: 50px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left !important;
}

/* Titolo */
.form h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #5F4E44; /* marrone scuro */
  margin-bottom: 25px;
}

/* Input */
.form input,
.form textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 15px 0;
  border: 2px solid #b87333; /* colore rame/oro */
  border-radius: 10px;
  background: transparent;
  font-size: 1rem;
  color: #2a2088; /* viola come da mockup */
  outline: none;
  transition: border 0.3s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

.form input:focus,
.form textarea:focus {
  border-color: #da9c2f; /* oro acceso */
}

/* Bottone */
.form button {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  margin-top: 25px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #ffd86a, #b87333);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(218,156,47,0.5);
}

.form button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  animation: submit-spin 0.8s linear infinite;
}

.submit-spinner[hidden] {
  display: none;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------- */
/* RESPONSIVE TWEAKS                                           */
/* ----------------------------------------------------------- */
@media (min-width:768px) {
  .hero-cows {
    height: 70vh;
  }

  .tagline {
    padding: 6rem 2rem;
  }

  .info {
    padding: 6rem 2rem 8rem;
  }
}
@media (max-width:768px) {
  .float-cta {
    display: none;
  }
}
