/* ═══════════════════════════════════════════════════════
   VETRINA PUBBLICA — stile separato dalla dashboard
   Palette mediterranea: bianco caldo, oliva, terracotta
   ═══════════════════════════════════════════════════════ */

:root {
  --c-bg:     #faf8f5;
  --c-olive:  #6b7c4b;
  --c-terra:  #c17f4a;
  --c-dark:   #2c2416;
  --c-text:   #3d3025;
  --c-muted:  #7a6c5d;
  --c-border: #e2d9ce;
  --c-white:  #ffffff;
  --f-title:  Georgia, 'Times New Roman', serif;
  --f-body:   system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --r:        8px;
  --max-w:    900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  background: var(--c-white);
  border-bottom: 2px solid var(--c-terra);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(44,36,22,.06);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo {
  font-family: var(--f-title);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--c-dark);
  text-decoration: none;
  line-height: 1.2;
}
.site-header__logo em {
  font-style: normal;
  color: var(--c-terra);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.site-nav a {
  font-size: .9rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--c-olive); }
.site-nav a.active { color: var(--c-olive); font-weight: 600; }
.site-nav .btn-nav {
  background: var(--c-olive);
  color: var(--c-white) !important;
  padding: .4rem 1rem;
  border-radius: var(--r);
  font-weight: 600;
}
.site-nav .btn-nav:hover { opacity: .85; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 440px;
  background:
    linear-gradient(to top, rgba(44,36,22,.78) 0%, rgba(44,36,22,.18) 55%),
    var(--c-olive) url('../public/assets/hero.jpg') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero__content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
  color: var(--c-white);
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .5rem;
}
.hero__title {
  font-family: var(--f-title);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: .6rem;
}
.hero__sub {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 520px;
  line-height: 1.5;
}

/* ─── MAIN ────────────────────────────────────────────── */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.section:last-child { border-bottom: none; }
.section__tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-terra);
  margin-bottom: .5rem;
}
.section__title {
  font-family: var(--f-title);
  font-size: 1.75rem;
  font-weight: normal;
  color: var(--c-dark);
  margin-bottom: .9rem;
  line-height: 1.2;
}
.section__body {
  color: var(--c-muted);
  max-width: 600px;
  font-size: .97rem;
}

/* ─── CARDS ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
}
.card__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-muted);
  margin-bottom: .35rem;
}
.card__value {
  font-family: var(--f-title);
  font-size: 1.4rem;
  color: var(--c-dark);
}
.card__note {
  font-size: .8rem;
  color: var(--c-muted);
  margin-top: .25rem;
}

/* ─── PASSI ORDINE ────────────────────────────────────── */
.steps {
  list-style: none;
  counter-reset: steps;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: .97rem;
  color: var(--c-text);
}
.steps li::before {
  content: counter(steps);
  background: var(--c-terra);
  color: var(--c-white);
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ─── VALORI ──────────────────────────────────────────── */
.values {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.values li {
  display: flex;
  gap: .75rem;
  font-size: .97rem;
}
.values li::before {
  content: '✓';
  color: var(--c-olive);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  line-height: 1;
}
.btn:hover  { opacity: .87; }
.btn:active { transform: scale(.98); }

.btn-wa {
  background: #25d366;
  color: var(--c-white);
}
.btn-primary {
  background: var(--c-olive);
  color: var(--c-white);
}
.btn-outline {
  background: transparent;
  color: var(--c-olive);
  border: 1.5px solid var(--c-olive);
}
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* ─── FORM ORDINE ─────────────────────────────────────── */
.form-ordine {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-size: .95rem;
  font-family: var(--f-body);
  background: var(--c-white);
  color: var(--c-dark);
  transition: border-color .15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-olive);
  box-shadow: 0 0 0 3px rgba(107,124,75,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .5rem;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-muted);
  font-size: .85rem;
  margin: 2rem 0 1.5rem;
}
.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ─── ABOUT HERO ──────────────────────────────────────── */
.about-banner {
  background: var(--c-olive);
  color: var(--c-white);
  padding: 4rem 1.5rem;
}
.about-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-banner h1 {
  font-family: var(--f-title);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.about-banner p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 500px;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.65);
  padding: 3rem 1.5rem 1.5rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-family: var(--f-title);
  font-size: 1.15rem;
  color: var(--c-white);
  margin-bottom: .4rem;
}
.footer-meta {
  font-size: .85rem;
  line-height: 1.8;
}
.footer-meta a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  display: block;
}
.footer-meta a:hover { color: var(--c-white); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
  text-align: right;
}
.footer-nav a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--c-white); }
.footer-copy {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  opacity: .4;
  text-align: center;
}

/* ─── BADGE FILIERA ───────────────────────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .8rem;
  color: var(--c-muted);
}

/* ─── SKELETON LOADING ────────────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.skel-card {
  flex: 1;
  height: 90px;
  border-radius: var(--r);
  background: linear-gradient(90deg, #ede8e3 25%, #f5f1ed 50%, #ede8e3 75%);
  background-size: 400px 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

/* ─── AVVISO VUOTO ────────────────────────────────────── */
.avviso-vuoto {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  color: var(--c-muted);
  font-size: .9rem;
}

/* ─── LISTA LOTTI MACELLAZIONE ────────────────────────── */
.lotti-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.lotto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .9rem 1.25rem;
}
.lotto-item__razza {
  font-weight: 600;
  color: var(--c-dark);
  font-size: .95rem;
}
.lotto-item__meta {
  font-size: .83rem;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ─── GRIGLIA RAZZE DINAMICA ──────────────────────────── */
.razze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.razza-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .85rem 1rem;
}
.razza-card__nome {
  font-weight: 600;
  font-size: .88rem;
  color: var(--c-dark);
  margin-bottom: .35rem;
}
.razza-card__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--c-muted);
}
.razza-badge {
  padding: .15rem .5rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.razza-badge--uova        { background: #fef3c7; color: #92400e; }
.razza-badge--carne       { background: #fee2e2; color: #991b1b; }
.razza-badge--misto       { background: #d1fae5; color: #065f46; }
.razza-badge--ornamentale { background: #ede9fe; color: #4c1d95; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { height: 320px; }
  .site-header__inner { padding: .75rem 1rem; }
  .site-main { padding: 0 1rem 3.5rem; }
  .section { padding: 2rem 0; }
  .about-banner { padding: 2.5rem 1rem; }
  .site-footer { padding: 2.5rem 1rem 1rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
}
