/* =========================================================
   Apicoltura Leon d'Oro — landing page
   Palette: nero profondo, oro caldo, giallo miele, crema
   ========================================================= */

:root {
  --black: #0a0907;
  --black-soft: #141210;
  --black-card: #1a1714;
  --line: rgba(212, 168, 75, 0.18);
  --line-strong: rgba(212, 168, 75, 0.35);

  --gold: #d4a84b;
  --gold-bright: #e8c06a;
  --honey: #f4c542;
  --honey-soft: #f5d97a;

  --cream: #f2ead9;
  --cream-muted: #c9c0ac;
  --cream-dim: #8a8372;

  --radius: 6px;
  --radius-lg: 12px;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

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

a { color: var(--gold-bright); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--honey); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 9, 7, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }

.brand-mark {
  color: var(--gold);
  display: flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--cream-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--cream); }

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-bright) !important;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black) !important;
}

/* ---- Shared section styles ---- */
.section {
  padding: 120px 0;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 24px;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-lead {
  color: var(--cream-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%, rgba(212, 168, 75, 0.08) 0%, transparent 60%), var(--black);
}

.hero-bg {
  position: absolute;
  top: 0; right: -10%;
  width: 70%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hero-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--cream);
}

.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 580px;
  margin: 0 0 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 500;
}

.btn-primary {
  background: var(--gold);
  color: var(--black) !important;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--honey);
  border-color: var(--honey);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 197, 66, 0.25);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream) !important;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright) !important;
}

.hero-meta {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  font-weight: 600;
}
.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ---- Two column sections ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col-flip .col-text { order: 2; }
.two-col-flip .col-image { order: 1; }

.col-text p {
  color: var(--cream-muted);
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ---- Storia ---- */
.storia {
  background: var(--black);
  padding-top: 140px;
}

.framed-card {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(212, 168, 75, 0.04), transparent);
  position: relative;
}
.framed-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.15;
  pointer-events: none;
}

.frame-inner {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
}
.illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Valori grid ---- */
.valori {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 28px;
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: #201c18;
}
.value-card:hover::after { opacity: 1; }

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(212, 168, 75, 0.08);
  border-radius: 50%;
  margin-bottom: 24px;
}

.value-card p {
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Pull quote ---- */
.quote-section {
  padding: 100px 0;
  background: var(--black);
}

.pull-quote {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  margin-bottom: 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
  margin: -10px 0 0;
}

/* ---- Prodotti ---- */
.prodotti {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-visual {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(212, 168, 75, 0.12), rgba(212, 168, 75, 0.02));
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}
.product-visual svg {
  width: 55%;
  height: auto;
}

.product-card h3 {
  margin: 0;
  padding: 22px 22px 8px;
  font-size: 20px;
}
.product-card p {
  margin: 0;
  padding: 0 22px 26px;
  color: var(--cream-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---- Stagioni ---- */
.stagioni {
  background: var(--black);
}

.seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.seasons::before {
  content: '';
  position: absolute;
  top: 62px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.4;
}

.season {
  padding: 0 20px;
  text-align: center;
  position: relative;
}
.season-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.season h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--cream);
}

.season p {
  color: var(--cream-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Rivenditori ---- */
.rivenditori {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--cream-muted);
  font-size: 15.5px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ---- Contatti ---- */
.contatti {
  background: var(--black);
}

.contact-card {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--black-card), var(--black-soft));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 72px 60px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.contact-head p {
  color: var(--cream-muted);
  max-width: 540px;
  margin: 16px auto 0;
  font-size: 16px;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  text-align: left;
}
.contact-btn span:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-btn-label {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.contact-btn-sub {
  font-size: 12.5px;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.contact-btn-primary {
  background: var(--gold);
  color: var(--black) !important;
}
.contact-btn-primary:hover {
  background: var(--honey);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 197, 66, 0.25);
}

.contact-btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream) !important;
}
.contact-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright) !important;
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.meta-value {
  color: var(--cream);
  font-size: 15px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
}
.footer-tag {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  color: var(--cream-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(20, 18, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
}
.cookie-text {
  flex: 1;
  min-width: 0;
}
.cookie-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}
.cookie-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-muted);
}
.cookie-text a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.cookie-actions .btn {
  padding: 12px 24px;
  font-size: 12px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 18px 20px;
  }
  .cookie-actions .btn { width: 100%; }
}

/* ---- Legal pages ---- */
.legal-page {
  padding: 180px 0 100px;
  background: var(--black);
  min-height: calc(100vh - 180px);
}
.legal-container {
  max-width: 760px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  margin: 12px 0 24px;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin: 56px 0 18px;
  letter-spacing: 0;
}
.legal-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream-muted);
  margin: 0 0 16px;
  max-width: 640px;
}
.legal-updated {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-page p {
  color: var(--cream-muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.legal-page ul {
  color: var(--cream-muted);
  font-size: 15.5px;
  line-height: 1.75;
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal-page ul li {
  margin-bottom: 8px;
}
.legal-page ul li::marker {
  color: var(--gold);
}
.legal-page strong {
  color: var(--cream);
  font-weight: 500;
}
.legal-page a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 192, 106, 0.35);
  transition: text-decoration-color 0.2s var(--ease);
}
.legal-page a:hover {
  text-decoration-color: var(--gold-bright);
}
.legal-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--gold-bright);
}
.legal-placeholder {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(212, 168, 75, 0.12);
  border: 1px dashed var(--gold);
  border-radius: 3px;
  color: var(--gold-bright);
  font-size: 13px;
  font-style: italic;
}
.legal-footer-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--cream-dim) !important;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--cream-muted);
}
.cookie-table th,
.cookie-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table th {
  background: var(--black-card);
  color: var(--gold);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code {
  font-size: 12.5px;
  white-space: nowrap;
}

.footer-legal-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.footer-legal-links a {
  color: var(--cream-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-legal-links a:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-4, .grid-products { grid-template-columns: repeat(2, 1fr); }
  .seasons { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .seasons::before { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col-flip .col-text { order: 1; }
  .two-col-flip .col-image { order: 2; }

  .nav a:not(.nav-cta) { display: none; }

  .section { padding: 80px 0; }

  .contact-card { padding: 48px 28px; }
  .contact-actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .grid-products { grid-template-columns: 1fr; }
  .seasons { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
  .stat:last-child { border-bottom: none; }

  .hero { padding: 140px 0 80px; }
  .hero-meta { gap: 28px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}
