/* ============================================
   SPEEDYEGGS — styles.css
   Ovoprodotti freschi pastorizzati — Malegno (BS)
   ============================================ */

:root {
  --yolk: #E8A93B;
  --yolk-dark: #C88A24;
  --yolk-light: #FBE4B8;
  --tomato: #C1440E;
  --charcoal: #241C12;
  --charcoal-soft: #3A2E1D;
  --cream: #FFFaF1;
  --cream-soft: #FCF3E1;
  --white: #FFFFFF;
  --ink-muted: #6B6155;
  --border: #EAE0CB;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(36, 28, 18, .08);
  --shadow-lg: 0 24px 60px rgba(36, 28, 18, .14);

  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yolk-dark);
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.35); }

/* ── Nav ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 241, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav--scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(36,28,18,.05); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}
.nav__logo span { color: var(--yolk-dark); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: .3rem 0;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a.active { color: var(--charcoal); }
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--yolk);
}
.nav__links a.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: .75rem 1.5rem !important;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  padding: .5rem;
}
.nav__hamburger span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform .35s ease;
  z-index: 150;
}
.nav__mobile.active { transform: translateY(0); }
.nav__mobile a {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--cream);
}
.nav__mobile a.active { color: var(--yolk); }

/* ── Hero ────────────────────────────── */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero__label { margin-bottom: var(--space-sm); }
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: var(--space-sm);
}
.hero__title em { font-style: italic; color: var(--yolk-dark); }
.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  background: var(--white);
  padding: .9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.hero__badge span { font-size: .8rem; color: var(--ink-muted); }

/* ── Immagine di raccordo tra sezioni ─── */
.story-image {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21/9;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 720px) {
  .story-image { aspect-ratio: 4/3; }
}

/* ── Hero full-bleed (home) ───────────── */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-full__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-full__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-full__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(24, 18, 10, .55), rgba(24, 18, 10, 0) 45%),
    linear-gradient(105deg, rgba(24, 18, 10, .78) 0%, rgba(24, 18, 10, .5) 38%, rgba(24, 18, 10, .12) 65%, rgba(24, 18, 10, 0) 85%);
}
.hero-full__content {
  max-width: 640px;
  padding: var(--space-xl) 0 var(--space-lg);
}
.hero-full__label { color: var(--yolk); }
.hero-full__title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: var(--space-sm) 0;
}
.hero-full__title em { font-style: italic; color: var(--yolk); }
.hero-full__sub {
  font-size: 1.1rem;
  color: #EFE6D6;
  max-width: 46ch;
  margin-bottom: var(--space-md);
}
.hero-full__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-full__badge {
  position: absolute;
  bottom: 6.5rem;
  right: 1.5rem;
  z-index: 1;
  background: var(--white);
  padding: .9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-full__badge strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--charcoal); }
.hero-full__badge span { font-size: .8rem; color: var(--ink-muted); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn--ghost-light:hover { background: var(--cream); color: var(--charcoal); }

@media (max-width: 720px) {
  .hero-full { min-height: 78vh; }
  .hero-full__badge { display: none; }
}

/* ── Section header ──────────────────── */
.section {
  padding: var(--space-lg) 0;
}
.section--tight { padding: var(--space-md) 0; }
.section--soft { background: var(--cream-soft); }
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-md);
}
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: .5rem 0 .8rem;
}
.section-sub { color: var(--ink-muted); font-size: 1.05rem; }

/* ── Feature / value cards ───────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px;
  color: var(--yolk-dark);
  margin-bottom: 1.2rem;
}
.card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.card__desc { color: var(--ink-muted); font-size: .96rem; }

/* ── Process steps ───────────────────── */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step {
  position: relative;
  padding-top: 2.6rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--yolk);
  display: block;
  margin-bottom: .8rem;
}
.step__title { font-size: 1.1rem; margin-bottom: .5rem; }
.step__desc { color: var(--ink-muted); font-size: .93rem; }

/* ── Product / service cards ─────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__body { padding: 1.6rem; }
.product-card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.product-card__desc { color: var(--ink-muted); font-size: .92rem; margin-bottom: .9rem; }
.product-card__uses {
  font-size: .84rem;
  color: var(--charcoal-soft);
  line-height: 1.55;
  margin-bottom: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}
.product-card__uses strong { color: var(--charcoal); font-weight: 600; }
.product-card__uses span { display: block; margin-top: .4rem; color: var(--yolk-dark); font-weight: 600; font-size: .8rem; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .74rem;
  font-weight: 600;
  background: var(--yolk-light);
  color: var(--yolk-dark);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ── Formats strip ───────────────────── */
.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.format-pill {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.format-pill__weight { font-family: var(--font-head); font-size: 2.1rem; color: var(--yolk); }
.format-pill__desc { font-size: .88rem; color: #D8CDBB; margin-top: .3rem; }

/* ── Delivery zone ───────────────────── */
.zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.zone__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.zone__map iframe { width: 100%; height: 360px; border: 0; display: block; }
.zone__list { margin-top: 1.2rem; }
.zone__list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .8rem;
  font-size: .96rem;
  color: var(--charcoal-soft);
}
.zone__list svg { flex-shrink: 0; color: var(--yolk-dark); margin-top: .2rem; }

/* ── Stats strip ─────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__num { font-family: var(--font-head); font-size: 2.6rem; color: var(--yolk-dark); }
.stat__label { color: var(--ink-muted); font-size: .9rem; margin-top: .3rem; }

/* ── Manifesto / quote ───────────────── */
.manifesto {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: var(--space-xl) 0;
}
.manifesto__label { color: var(--yolk); }
.manifesto__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.35;
}

/* ── Gallery ──────────────────────────── */
.gallery-grid {
  columns: 3 260px;
  column-gap: 1.2rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1rem .8rem;
  background: linear-gradient(to top, rgba(36,28,18,.85), transparent);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 15, 8, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ── CTA section ──────────────────────── */
.cta-section {
  background: var(--yolk-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  margin: 0 1.5rem;
}
.cta-section__title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .8rem; }
.cta-section__sub { color: var(--charcoal-soft); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ── Contact page ─────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--space-lg);
  align-items: start;
}
.contact-info__item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info__item svg { flex-shrink: 0; color: var(--yolk-dark); margin-top: .2rem; }
.contact-info__item strong { display: block; margin-bottom: .2rem; }
.contact-info__item span, .contact-info__item a { color: var(--ink-muted); font-size: .94rem; }
.contact-info__item a:hover { color: var(--yolk-dark); }

.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream-soft);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--yolk); border-color: transparent; }
.form-row textarea { resize: vertical; min-height: 120px; }

/* ── Footer ───────────────────────────── */
.footer {
  background: var(--charcoal);
  color: #D8CDBB;
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr .9fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.footer__legal { font-size: .88rem; color: #D8CDBB; line-height: 1.7; }
.footer__legal strong { display: block; color: var(--cream); margin-bottom: .6rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--cream); margin-bottom: .8rem; }
.footer__logo span { color: var(--yolk); }
.footer__tagline { font-size: .92rem; max-width: 34ch; }
.footer__heading { color: var(--cream); font-weight: 600; margin-bottom: .9rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__links li { margin-bottom: .6rem; font-size: .92rem; }
.footer__links a:hover { color: var(--yolk); }
.footer__contact-item { display: flex; gap: .6rem; margin-bottom: .8rem; font-size: .9rem; align-items: flex-start; }
.footer__contact-item svg { flex-shrink: 0; margin-top: .15rem; color: var(--yolk); }
.footer__bottom {
  border-top: 1px solid rgba(216,205,187,.15);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .85rem;
}
.footer__partner { height: 120px; width: auto; margin-top: 1.2rem; }

/* ── WhatsApp float ───────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* ── 404 ──────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--yolk);
  line-height: 1;
}
.error-page__title { margin: 1rem 0 .8rem; }
.error-page__sub { color: var(--ink-muted); margin-bottom: 2rem; max-width: 42ch; margin-left: auto; margin-right: auto; }

/* ── Reveal animations ────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .35s; }

/* ── Responsive ───────────────────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16/10; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .zone { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .cta-section { margin: 0 1rem; padding: var(--space-lg) 1.2rem; }
}
