/* ===================== Variabili ===================== */
:root {
  --red: #e0182d;
  --red-dark: #9b0a1c;
  --green: #3f9a3a;
  --green-dark: #2a6b2a;
  --cream: #fff8f2;
  --pink: #ffe4e1;
  --ink: #2b1a1a;
  --muted: #6b5656;
  --white: #ffffff;

  /* Palette scura "nero e carbone" */
  --black: #000000;
  --charcoal: #111111;      /* sezione Qualità */
  --card: #1a1a1a;          /* schede */
  --line: #2a2a2a;          /* bordi e divisori */
  --near-black: #0a0a0a;    /* sezione Contatti */
  --text-soft: #b9aeae;     /* testo secondario */
  --leaf: #7cc85a;          /* verde foglia */

  --font-head: "Noto Serif Display", Georgia, serif;
  --font-body: "Noto Sans", system-ui, sans-serif;

  --header-h: 76px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }   /* le àncore non finiscono sotto la barra */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

a { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-align: center; }

/* ===================== Header ===================== */
/* Barra fissa: trasparente sulla hero, scura e sfocata quando si scorre (classe da js/main.js) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  color: var(--white);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__img { display: block; height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }

/* Pulsante di acquisto nella barra */
.nav .btn--nav {
  margin-top: 0;
  padding: .55rem 1.2rem;
  font-size: .95rem;
  box-shadow: 0 4px 14px rgba(224, 24, 45, .35);
}
.nav .btn--nav:hover { color: var(--white); }

.lang select {
  font: inherit; font-weight: 600;
  padding: .35rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: #111; color: var(--white); cursor: pointer;
}

/* ===================== Hero ===================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: #000;
  color: var(--white);
  overflow: hidden;
}

.hero__kicker {
  text-transform: uppercase; letter-spacing: .15em;
  font-size: .85rem; font-weight: 600; color: var(--green);
  margin: 0 0 1rem;
}

.hero__kicker { color: #7cc85a; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.5rem); color: var(--white); }
.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #b9aeae; max-width: 32ch; }

.btn {
  display: inline-block; margin-top: 1.5rem;
  padding: .9rem 1.8rem; border-radius: 999px;
  background: var(--red); color: var(--white);
  text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 20px rgba(224, 24, 45, .3);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 24, 45, .4); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero__actions .btn { margin-top: 0; }

.btn--buy { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.btn__icon { width: 20px; height: 20px; }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--white); box-shadow: none; }

.hero__art {
  position: relative;
  width: 100%;
  height: auto;
  max-height: min(84svh, 780px);
  aspect-ratio: 16 / 9;          /* stesse proporzioni del video: la fragola si vede intera */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;   /* lo zoom del video non deve coprire il testo */
  /* bordi sfumati: il nero del video si fonde con quello della pagina */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}

.hero__berry {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  /* zoom facoltativo (1 = nessuno). Il video è Full HD: oltre 1.1 perde nitidezza */
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 50%;
  transition: opacity .7s ease;
}
.hero__video.is-fading { opacity: 0; }   /* dissolvenza al nero tra un giro e l'altro (js/main.js) */

/* ===================== Qualità ===================== */
.organic {
  min-height: 50vh;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--charcoal);
}

.organic__intro { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; color: var(--text-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.card:hover { border-color: rgba(124, 200, 90, .45); }
.card__icon {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(124, 200, 90, .1);    /* cerchio verde foglia dietro l'icona */
  border: 1px solid rgba(124, 200, 90, .28);
  color: var(--leaf);
  transition: background-color .3s ease, transform .3s ease;
}
/* Icone a linea, stesso tratto per tutte */
.card__icon svg {
  width: 1.65rem; height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card__icon { background: rgba(124, 200, 90, .18); transform: translateY(-2px); }

/* Icone illustrate (contorno nero, colori pieni): cerchio bianco più grande, così i contorni restano leggibili */
.card__icon--img { width: 5rem; height: 5rem; overflow: hidden; background: #fff; border-color: #fff; }
.card__icon--img img { display: block; width: 100%; height: 100%; }
.card__icon--img svg { width: 80%; height: 80%; }
.card:hover .card__icon--img { background: #fff; }
.card h3 { font-size: 1.25rem; color: var(--white); }
.card p { margin: 0; color: var(--text-soft); }

/* ===================== Coltivazione: dalla piantina al frutto ===================== */
.grow {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--black);
}
.grow__intro { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; color: var(--text-soft); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step h3 { font-size: 1.2rem; margin-top: .35rem; }
.step p { margin: 0; color: var(--text-soft); }

/* Video di ogni fase */
.step__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.step__media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.step:hover .step__media video { transform: scale(1.04); }
.step__num { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.1rem; }

/* ===================== Serra / Raccolta: foto + testo affiancati ===================== */
.feature {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--black);
}
.feature--alt { background: var(--charcoal); }

.feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature__grid--reverse .feature__media { order: 2; }   /* foto a destra */

.feature__media { margin: 0; }
.feature__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature__media--pair .feature__img { aspect-ratio: 4 / 5; }

.feature__kicker {
  text-transform: uppercase; letter-spacing: .15em;
  font-size: .85rem; font-weight: 600; color: var(--leaf);
  margin: 0 0 .75rem;
}
.feature__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.feature__lead { color: var(--text-soft); margin: 0 0 1.5rem; }

.feature__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-soft);
}
.feature__list li::before {   /* spunta verde */
  content: "";
  position: absolute; left: 0; top: .2rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: rgba(124, 200, 90, .15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%237cc85a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.feature__list strong { display: block; color: var(--white); font-weight: 600; }

/* ===================== Per chi coltiviamo ===================== */
.audience {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--charcoal);
}
.audience__intro { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; color: var(--text-soft); }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px; margin: 0 auto;
}
.audience__card { display: flex; flex-direction: column; padding: 2rem; }
.audience__card p { margin-bottom: 1.5rem; }
.audience__card .btn { margin-top: auto; align-self: flex-start; }   /* pulsanti allineati in fondo */

/* ===================== Domande frequenti ===================== */
.faq {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--black);
}
.faq__list { max-width: 780px; margin: 2rem auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {   /* + che diventa × quando la risposta è aperta */
  content: "+";
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--red);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--leaf); }
.faq__item summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; border-radius: 4px; }
.faq__item p { margin: 0 0 1.25rem; padding-right: 2.5rem; color: var(--text-soft); }

/* ===================== Invito finale al preventivo ===================== */
.cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--charcoal);
}
.cta__box {
  max-width: 820px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(224, 24, 45, .35);
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 24, 45, .22), transparent 70%), var(--card);
}
.cta__title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta__text { max-width: 48ch; margin: 0 auto; color: var(--text-soft); }

/* ===================== Contatti ===================== */
.contacts {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  background: var(--near-black);
  border-top: 2px solid var(--red);
  color: var(--text-soft);
}
.contacts .section-title { color: var(--white); }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item h3 { font-size: 1.1rem; color: var(--red); }
.contact-item a { color: var(--white); }
.contact-item p, .contact-item address { margin: 0 0 .25rem; font-style: normal; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.copyright {
  margin: 3rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center; font-size: .9rem;
}

.legal-links { margin: .6rem 0 0; text-align: center; font-size: .85rem; color: var(--text-soft); }
.legal-links a, .consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover, .consent a:hover { color: var(--red); }

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }   /* altezza dalle proporzioni 16:9 del video */
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience__grid { grid-template-columns: 1fr; }
  .feature__grid { grid-template-columns: 1fr; }
  .feature__grid--reverse .feature__media { order: 0; }   /* su schermi stretti la foto va sempre sopra */
}

@media (max-width: 560px) {
  .nav { gap: .75rem; }
  .nav a:not(.btn--nav) { display: none; }      /* su mobile restano logo, acquisto e lingua */
  .nav .btn--nav { padding: .5rem .9rem; font-size: .9rem; }
  .logo__img { height: 48px; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===================== Richiesta di preventivo (preventivo.html) ===================== */
.site-header.is-solid {
  background: rgba(10, 10, 10, .92);
  border-bottom-color: var(--line);
}

.order {
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(3rem, 8vw, 5rem);
  background: var(--charcoal);
}
.order__intro { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; color: var(--text-soft); }

.order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}
.order__main { display: grid; gap: 1.5rem; }

.order__box {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
}
.order__box legend {
  float: left; width: 100%;          /* legend dentro il riquadro, come un titolo */
  margin-bottom: 1rem; padding: 0;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}
.order__box legend + * { clear: both; }

/* Quantità in kg: campo con l'unità a destra */
.field__unit { position: relative; display: block; max-width: 260px; }
.field__unit input { padding-right: 3rem; font-size: 1.15rem; font-weight: 600; -moz-appearance: textfield; }
.field__unit input::-webkit-outer-spin-button,
.field__unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }   /* le frecce coprirebbero "kg" */
.field__unit > span {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); font-weight: 600; pointer-events: none;
}
.field__hint { font-size: .85rem; color: var(--text-soft); }

/* Scelta consegna */
.choice { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.choice__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); cursor: pointer;
}
.choice__item:has(input:checked) { border-color: var(--leaf); background: rgba(124, 200, 90, .08); }
.choice__item input, .consent input { accent-color: var(--red); }

/* Campi */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field__label { font-size: .9rem; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; color: var(--white);
  background: #111; border: 1px solid var(--line); border-radius: 10px;
  color-scheme: dark;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.was-submitted .field input:invalid { border-color: var(--red); }

/* Riepilogo */
.order__summary { position: sticky; top: calc(var(--header-h) + 1rem); }
.summary__title { font-size: 1.3rem; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.summary__total strong { font-size: 1.4rem; }
.summary__shipping {   /* avviso spese di spedizione, con icona del furgone */
  margin: 1rem 0 0; padding: .75rem .9rem .75rem 2.6rem;
  border-radius: 12px; background: rgba(124, 200, 90, .08); border: 1px solid rgba(124, 200, 90, .25);
  font-size: .9rem; color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cc85a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2z M13 10h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .8rem 50%; background-size: 1.3rem;
}
.summary__note { font-size: .9rem; color: var(--text-soft); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.consent input { margin-top: .25rem; }
.was-submitted .consent input:invalid + span { color: var(--red); }
.form-error { margin: 1rem 0 0; color: #ff6b78; font-weight: 600; }
.summary__submit { width: 100%; justify-content: center; margin-top: 1.25rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

.order__sent { max-width: 560px; margin: 0 auto; text-align: center; }
.order__sent p { color: var(--text-soft); }

@media (max-width: 860px) {
  .order__layout { grid-template-columns: 1fr; }
  .order__summary { position: static; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
}
