/* Il Noccioleto — landing page */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --ivory: #f4eee3;
  --sand: #ede4d3;
  --line: #e3d9c8;
  --line-strong: #d8cdb8;
  --ink: #1e1a16;
  --ink-soft: #3b342c;
  --muted: #5a5148;
  --brown: #6b4226;
  --gold: #c9a24a;
  --dark: #121110;
  --dark-line: #2e2a25;
  --cream: #f7f1e6;
  --cream-soft: #e4dccd;
  --cream-muted: #bfb6a6;
  --cream-dim: #a89f8e;
  --cream-faint: #7e7565;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 80px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 16px;
  background: var(--dark); color: var(--cream); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.eyebrow {
  color: var(--brown); font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--line { display: flex; align-items: center; gap: 12px; }
.eyebrow--line::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: #d4b15c; color: var(--dark); }
.btn--ghost { border: 1.5px solid var(--cream-soft); color: var(--cream); font-weight: 600; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); height: 44px; padding: 0 22px; font-weight: 600; }
.btn--outline:hover { border-color: var(--gold); color: var(--brown); }

.link {
  align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--brown);
  text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
}
.link:hover { color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.nav a:hover { color: var(--brown); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; color: var(--ink); cursor: pointer;
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 760px; background: var(--dark); color: var(--cream); overflow: hidden; display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,17,16,.86) 0%, rgba(18,17,16,.55) 48%, rgba(18,17,16,.10) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero__inner { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.04; color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 19px; line-height: 1.6; color: var(--cream-soft); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--cream); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.h2--lg { font-size: clamp(32px, 3.2vw, 46px); }
.lead { font-size: 18px; color: var(--ink-soft); }
.body { font-size: 17px; color: var(--ink-soft); }

/* azienda */
.azienda__head { grid-column: span 5; }
.azienda__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--brown); }
.fact span { font-size: 14px; color: var(--muted); }

/* marchi */
.marchi { padding: 64px 0; }
.marchi__head { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.marchi__list { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.badge-card { padding: 24px 28px; background: var(--ivory); border-radius: 16px; display: flex; align-items: center; gap: 24px; }
.badge-card img { flex-shrink: 0; width: auto; }
.badge-card h3 { font-size: 22px; }
.badge-card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* filosofia */
.filosofia { padding: 80px 0; }
.filosofia__head { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.filosofia h2 { font-weight: 300; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; color: var(--gold); }
.filosofia__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; }
.filosofia__quote { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.35; color: var(--cream); }
.filosofia__text { color: var(--cream-muted); }

/* frutteti */
.frutteti__media { grid-column: span 6; position: relative; padding-bottom: 48px; padding-right: 32px; }
.frutteti__main { width: 100%; max-width: 520px; aspect-ratio: 13 / 10; object-fit: cover; border-radius: 18px; }
.frutteti__inset {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 6 / 5; object-fit: cover;
  border-radius: 14px; border: 8px solid var(--ivory);
}
.frutteti__body { grid-column: 8 / span 5; }

/* nocciola */
.nocciola { padding: 0; }
.nocciola .grid-12 { row-gap: 0; }
.nocciola__body { grid-column: span 5; padding: 96px 0; }
.nocciola__media { grid-column: 7 / span 6; align-self: stretch; margin-right: calc(-1 * var(--gutter)); }
.nocciola__media img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }

/* prodotti */
.prodotti__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.prodotti__head .stack { gap: 14px; max-width: 640px; }
.prodotti__note { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; gap: 14px; }
.product img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 14px; background: #fff; }
.product img.contain { object-fit: contain; padding: 12px; }
.product h3 { font-size: 22px; }
.product p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* clienti */
.clienti { padding: 72px 0; }
.clienti h2 { font-size: 36px; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card { padding: 24px; background: var(--ivory); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.card h3 { font-size: 22px; line-height: 1.15; }
.card p { flex-grow: 1; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* galleria */
.galleria__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }

/* footer */
.site-footer { background: var(--dark); color: #d9d0bf; padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.footer__brand { grid-column: span 4; display: flex; flex-direction: column; gap: 22px; }
.footer__brand img.logo { height: 64px; width: auto; }
.footer__legal { font-size: 15px; line-height: 1.6; color: var(--cream-dim); }
.footer__badges { display: flex; align-items: center; gap: 18px; padding-top: 6px; }
.footer__badges img { width: auto; }
.footer__badges .deco { height: 44px; background: var(--cream); padding: 4px 6px; border-radius: 6px; }
.footer__badges .fvg { height: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__contatti { grid-column: 6 / span 3; }
.footer__dove { grid-column: 9 / span 4; }
.footer__col .eyebrow { font-size: 12px; }
.footer__tel { font-family: var(--serif); font-size: 26px; color: var(--cream); text-decoration: none; }
.footer__mail { font-size: 16px; color: var(--cream); text-decoration: none; }
.footer__pec { font-size: 14px; color: var(--cream-dim); text-decoration: none; }
.footer__col a:hover { color: var(--gold); }
.footer__addr { font-size: 15px; line-height: 1.6; color: var(--cream); }
.footer__addr--dim { color: var(--cream-dim); }
.footer__addr strong { color: var(--cream); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line);
  font-size: 13px; color: var(--cream-faint);
}
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a { color: var(--cream-dim); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- legal page ---------- */
.legal { padding: 72px 0 96px; max-width: 820px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .updated { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 24px; }
  .marchi__head, .marchi__list { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header .wrap { height: 76px; }
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 0 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); }
  .nav .btn--outline { margin: 8px var(--gutter) 0; height: 50px; justify-content: center; }

  .hero { min-height: 620px; align-items: flex-end; }
  .hero__shade { background: linear-gradient(180deg, rgba(18,17,16,.25) 0%, rgba(18,17,16,.55) 40%, rgba(18,17,16,.92) 100%); }
  .hero__img { object-position: 65% 50%; }
  .hero .wrap { padding-top: 64px; padding-bottom: 48px; }
  .hero__inner { gap: 18px; }
  .hero .eyebrow { white-space: normal; font-size: 11px; letter-spacing: 0.18em; }
  .hero .eyebrow--line::before { width: 24px; flex-shrink: 0; }
  .hero p { font-size: 16px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .section { padding: 56px 0; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
  .azienda__body { gap: 20px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .fact { flex-direction: row; align-items: baseline; gap: 12px; }
  .fact strong { font-size: 24px; }
  .fact span { font-size: 13px; }

  .marchi { padding: 48px 0; }
  .marchi__list { grid-template-columns: 1fr; gap: 16px; }
  .badge-card { padding: 18px 20px; gap: 18px; }
  .badge-card h3 { font-size: 19px; }
  .badge-card img.deco { height: 56px !important; }
  .badge-card img.fvg { height: 72px !important; }

  .filosofia { padding: 56px 0; }
  .filosofia__quote { font-size: 21px; }

  .frutteti__media { padding: 0; }
  .frutteti__main { max-width: none; aspect-ratio: 16 / 10; }
  .frutteti__inset { display: none; }

  .nocciola__body { padding: 40px 0 56px; order: 2; }
  .nocciola__media { order: 1; margin: 0 calc(-1 * var(--gutter)); }
  .nocciola__media img { min-height: 0; height: 280px; }

  .prodotti__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product h3 { font-size: 20px; }

  .clienti { padding: 56px 0; }
  .clienti h2 { font-size: 28px; margin-bottom: 20px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 20px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .gallery img:first-child { grid-row: span 1; }

  .site-footer { padding: 56px 0 32px; }
  .footer__grid { row-gap: 28px; }
  .footer__grid > * { grid-column: 1 / -1; }
  .footer__brand img.logo { height: 56px; }
  .footer__badges .fvg { height: 60px; }
  .footer__badges .deco { height: 40px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 36px; }
  .legal h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:last-child { grid-column: span 2; }
}

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