/* ==========================================================================
   La Cervese Srl — Preview v0.1
   Design ancorato al documento creative/Stratego-Design-DNA.md
   ========================================================================== */

:root {
  --ink: #121110;
  --ink-2: #1c1a18;
  --bone: #f1ede3;
  --bone-2: #e7e1d1;
  --steel: #3a3d3f;
  --steel-2: #26282a;
  --rust: #9c4324;
  --rust-dim: #7a3419;
  --line: rgba(18, 17, 16, 0.14);
  --line-light: rgba(241, 237, 227, 0.16);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-sans-x: 'Archivo Expanded', 'Archivo', Arial, sans-serif;

  --ease-heavy: cubic-bezier(0.65, 0, 0.24, 1);
  --dur-slow: 1050ms;
  --dur-med: 650ms;

  --gutter: clamp(1.5rem, 4vw, 4rem);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body, h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-sans-x);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.25rem;
}
.kicker--light { color: var(--bone-2); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.75rem);
  margin-bottom: 1.75rem;
}

.body-lg {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  max-width: 42ch;
  color: var(--steel);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}

.section-inner--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.section-inner--reverse { grid-template-columns: 0.85fr 1.15fr; }
.section-inner--reverse > *:first-child { order: 2; }

@media (max-width: 900px) {
  .section-inner--split,
  .section-inner--reverse { grid-template-columns: 1fr; }
  .section-inner--reverse > *:first-child { order: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-heavy), transform var(--dur-slow) var(--ease-heavy);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease-heavy), border-color var(--dur-med) var(--ease-heavy);
}
.nav.is-scrolled {
  background: rgba(241, 237, 227, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; transition: opacity var(--dur-med) var(--ease-heavy); }
.nav__brand:hover { opacity: 0.7; }
.nav__brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.nav.is-scrolled .nav__brand-name,
.hero ~ * .nav__brand-name { color: var(--ink); }
.nav:not(.is-scrolled) .nav__brand-name { color: var(--bone); }
.nav__brand-since {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-family: var(--font-sans-x);
  font-weight: 600;
}

.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }
.nav__links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
  position: relative;
  padding: 0.35rem 0;
}
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--dur-med) var(--ease-heavy);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem !important;
  border-radius: 2px;
  transition: background var(--dur-med) var(--ease-heavy), color var(--dur-med) var(--ease-heavy);
}
.nav__cta::after { display: none; }
.nav:not(.is-scrolled) .nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--bone); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--bone);
  transition: transform var(--dur-med) var(--ease-heavy), opacity var(--dur-med) var(--ease-heavy), background var(--dur-med) var(--ease-heavy);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span { background: var(--bone) !important; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-heavy);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-menu nav a {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  color: var(--bone);
  font-weight: 500;
}
.mobile-menu__foot {
  margin-top: 3rem;
  color: var(--bone-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, #232120 0%, var(--ink) 55%, var(--ink-2) 100%);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 8vh) var(--gutter) clamp(3rem, 7vh, 5.5rem);
}
.hero__grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='white'/%3E%3Ccircle cx='4' cy='2' r='0.5' fill='white'/%3E%3Ccircle cx='2' cy='4' r='0.4' fill='white'/%3E%3Ccircle cx='6' cy='5' r='0.6' fill='white'/%3E%3Ccircle cx='3' cy='6' r='0.45' fill='white'/%3E%3C/svg%3E");
}
.hero__numeral {
  position: absolute;
  right: clamp(-1rem, 2vw, 4rem);
  top: clamp(-2rem, -2vw, 1rem);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(9rem, 32vw, 27rem);
  color: rgba(241, 237, 227, 0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero__content { max-width: 1280px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero__content .kicker { display: flex; align-items: center; gap: 0.85rem; }
.hero__content .kicker::before { content: ''; width: 28px; height: 1px; background: var(--rust); }
.hero__title {
  font-size: clamp(2.75rem, 1.6rem + 7vw, 7.75rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.98;
}
.hero__title-accent { color: var(--rust); margin-top: 0.06em; }

@media (max-height: 700px) {
  .hero { justify-content: center; padding-top: calc(var(--nav-h) + 2vh); }
}
.hero__sub {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  max-width: 34ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--bone-2);
}

.hero__scroll {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: clamp(2.5rem, 8vh, 5rem) auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.hero__scroll-line {
  width: 48px; height: 1px;
  background: var(--bone-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: translateX(-100%);
  animation: scrollline 2.4s var(--ease-heavy) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { background: var(--ink); color: var(--bone); }
.manifesto__body {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 4rem);
  max-width: 46ch;
  margin-left: clamp(0px, 12vw, 220px);
}
.manifesto__body p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
}
.manifesto__closing { color: var(--rust); font-weight: 500; }

/* ==========================================================================
   AZIENDA
   ========================================================================== */
.azienda { background: var(--bone); }
.azienda .section-inner--split { grid-template-columns: 1.4fr 0.6fr; }
.azienda__text h2 { color: var(--ink); max-width: 12ch; }
.azienda__text .body-lg { margin-bottom: 1.25rem; }

.azienda__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: end;
  margin-top: clamp(0.5rem, 4vw, 2.5rem);
}
.stat {
  background: var(--bone);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
}
.stat--placeholder .stat__num { color: var(--steel); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem); font-style: italic; font-weight: 400; }
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--steel);
  max-width: 18ch;
}

/* ---------- Plate / placeholder photography ---------- */
.plate {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(155deg, var(--steel) 0%, var(--steel-2) 45%, var(--ink) 100%);
  overflow: hidden;
  border: 1px solid var(--line);
}
.plate::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='white'/%3E%3Ccircle cx='4' cy='2' r='0.5' fill='white'/%3E%3Ccircle cx='2' cy='4' r='0.4' fill='white'/%3E%3Ccircle cx='6' cy='5' r='0.6' fill='white'/%3E%3Ccircle cx='3' cy='6' r='0.45' fill='white'/%3E%3C/svg%3E");
}
.plate--card { aspect-ratio: 5 / 4; margin-top: 0; margin-bottom: 1.5rem; }
.plate__marks span {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(241, 237, 227, 0.4);
}
.plate__marks span:nth-child(1) { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.plate__marks span:nth-child(2) { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.plate__marks span:nth-child(3) { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.plate__marks span:nth-child(4) { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.plate__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  right: 14px;
  font-family: var(--font-sans-x);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(241, 237, 227, 0.75);
  text-transform: uppercase;
}

/* ==========================================================================
   METODO
   ========================================================================== */
.metodo { background: var(--ink); color: var(--bone); }
.metodo .section-inner { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.metodo h2 { color: var(--bone); max-width: 20ch; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.metodo__grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.metodo__item {
  padding: 2.25rem 1.5rem 2.25rem 0;
  border-right: 1px solid var(--line-light);
  transition: padding-left var(--dur-med) var(--ease-heavy);
}
.metodo__item:hover { padding-left: 0.5rem; }
.metodo__item:hover .metodo__num { color: var(--bone); }
.metodo__num { transition: color var(--dur-med) var(--ease-heavy); }
.metodo__item:last-child { border-right: none; }
.metodo__num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--rust);
  letter-spacing: 0.05em;
}
.metodo__item h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.4rem);
  margin: 0.85rem 0 0.75rem;
  color: var(--bone);
}
.metodo__item p { color: var(--bone-2); font-size: 0.95rem; max-width: 30ch; }

@media (max-width: 900px) {
  .metodo__grid { grid-template-columns: 1fr 1fr; }
  .metodo__item { border-bottom: 1px solid var(--line-light); padding: 2rem 1.25rem 2rem 0; }
}
@media (max-width: 560px) {
  .metodo__grid { grid-template-columns: 1fr; }
  .metodo__item { border-right: none; padding: 1.75rem 0; }
}

/* ==========================================================================
   PRODOTTI
   ========================================================================== */
.prodotti { background: var(--bone); }
.prodotti h2 { max-width: 16ch; }
.prodotti__grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.prodcard:first-child .plate--card { aspect-ratio: 4 / 3; }
.prodcard .plate--card { transition: border-color var(--dur-med) var(--ease-heavy); }
.prodcard:hover .plate--card { border-color: var(--rust); }
.prodcard h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.prodcard p { color: var(--steel); font-size: 0.95rem; }
.prodotti__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.85rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .prodotti__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TERRITORIO
   ========================================================================== */
.territorio { position: relative; background: var(--ink); color: var(--bone); overflow: hidden; }
.territorio__grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='white'/%3E%3Ccircle cx='4' cy='2' r='0.5' fill='white'/%3E%3Ccircle cx='2' cy='4' r='0.4' fill='white'/%3E%3Ccircle cx='6' cy='5' r='0.6' fill='white'/%3E%3Ccircle cx='3' cy='6' r='0.45' fill='white'/%3E%3C/svg%3E");
}
.territorio .section-inner { padding-top: clamp(6rem, 14vw, 11rem); padding-bottom: clamp(6rem, 14vw, 11rem); }
.territorio h2 { color: var(--bone); max-width: 11ch; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.5rem); }
.territorio .body-lg { color: var(--bone-2); }
.territorio__map { align-self: center; opacity: 0.9; }
.tmap__line { stroke: rgba(241, 237, 227, 0.22); stroke-width: 1; }
.tmap__line--2 { stroke: rgba(241, 237, 227, 0.4); }
.tmap__line--3 { stroke: rgba(241, 237, 227, 0.65); }
.tmap__dot { fill: var(--rust); }
.tmap__label {
  fill: var(--bone-2);
  font-family: var(--font-sans-x);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: var(--bone-2); }
.cta .section-inner { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.cta__title { max-width: 13ch; font-size: clamp(2.6rem, 1.7rem + 3.6vw, 5rem); }
.cta__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans-x);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 1.1rem 2.25rem;
  border: 1px solid var(--ink);
  transition: background var(--dur-med) var(--ease-heavy), color var(--dur-med) var(--ease-heavy);
}
.btn:hover { background: transparent; color: var(--ink); }

.cta__details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--steel);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--bone-2); }
.footer__inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.footer__brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--bone); }
.footer__tagline { font-size: 0.85rem; color: var(--rust); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-content: start;
}
.footer__links a { font-size: 0.85rem; }
.footer__links a:hover { color: var(--bone); }
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: rgba(231, 225, 209, 0.5);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.footer__preview-tag { color: var(--rust); }

@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
}
