/* =========================================================
   SALUMIFICIO GETRA SILA — design system
   ========================================================= */

:root {
  /* Palette — parchment, wine, sepia */
  --bg-cream: #f1e7d2;
  --bg-cream-soft: #f5eedb;
  --bg-cream-warm: #e8dcc1;
  --bg-paper: #ede2c8;
  --ink: #1f1810;
  --ink-soft: #3a2e22;
  --ink-mute: #6b5b48;
  --ink-faint: #9a8767;

  --wine: #6b1f23;
  --wine-deep: #4f1418;
  --wine-soft: #8a2a2f;

  --sepia: #8a6f4a;
  --sepia-soft: #b9a37c;
  --sepia-faint: #cfb98f;
  --sepia-line: rgba(106, 80, 48, 0.32);

  --gold: #b08c4f;
  --gold-soft: #c9a366;

  --dark: #1b120c;
  --dark-soft: #2a1d13;
  --dark-warm: #3a2818;

  /* Type */
  --ff-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --ff-body: "Jost", "Helvetica Neue", system-ui, sans-serif;
  --ff-script: "Allura", "Apple Chancery", cursive;
  --ff-label: "Jost", system-ui, sans-serif;

  /* Type scale */
  --fs-display-xl: clamp(56px, 7vw, 116px);
  --fs-display: clamp(44px, 5.4vw, 86px);
  --fs-h2: clamp(34px, 3.6vw, 60px);
  --fs-h3: clamp(24px, 2vw, 32px);
  --fs-lead: clamp(16px, 1.1vw, 18px);
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 11px;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 3vw, 56px);
  --topbar-h: 108px;
}

/* ========== Reset / base ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg-cream);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, .btn, .link-arrow { touch-action: manipulation; }

/* Paper grain — subtle */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 210, 0.45), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(80, 50, 20, 0.05), transparent 50%);
  opacity: 0.85;
}
main, header, footer, section { position: relative; z-index: 2; }

/* ========== Typography ========== */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-display); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.05; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--ff-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow--mute { color: var(--ink-mute); }
.eyebrow--gold { color: var(--gold-soft); }

.script {
  font-family: var(--ff-script);
  font-weight: 400;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--wine);
  color: #f6ecd2;
  border: 1px solid var(--wine);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}
.btn:hover { background: var(--wine-deep); }
.btn--ghost {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}
.btn--ghost:hover { background: var(--wine); color: #f6ecd2; }
.btn--cream {
  background: #f1e3c1;
  color: var(--ink);
  border: 1px solid #f1e3c1;
}
.btn--cream:hover { background: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 18px; }
.link-arrow svg { width: 18px; height: 12px; }

/* ========== Topbar ========== */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
}
.topbar--dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: #ead7af;
}
.topbar--dark .nav-link,
.topbar--dark .lang { color: #ead7af; }
.topbar--dark .nav-link:hover { color: #fff; }
.topbar--dark .topbar__cta { color: #f6ecd2; }
.topbar--cream { background: var(--bg-cream); border-bottom: 1px solid var(--sepia-line); }

.topbar__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; }
.brand img,
.brand svg { height: 96px; width: auto; display: block; }
.topbar--dark .brand .b-fill { fill: #ead7af; }
.topbar--dark .brand .b-stroke { stroke: #ead7af; }

.nav { display: flex; justify-content: center; gap: 36px; }
.nav-link {
  font-family: var(--ff-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--wine); }
.nav-link--active { border-bottom-color: var(--wine); color: var(--wine); }
.topbar--dark .nav-link--active { color: #f4d27c; border-bottom-color: #f4d27c; }

.topbar__right {
  display: flex; align-items: center; gap: 24px;
  justify-content: flex-end;
}
.lang {
  font-family: var(--ff-label);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  padding-right: 24px;
  border-right: 1px solid var(--sepia-line);
  cursor: pointer;
}
.topbar--dark .lang { border-right-color: rgba(234, 215, 175, 0.25); }
.topbar__cta {
  padding: 14px 26px;
  background: var(--wine);
  color: #f6ecd2;
  font-family: var(--ff-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.topbar__cta:hover { background: var(--wine-deep); }

/* ========== Decorative corner stamp ========== */
.corner-stamp {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.corner-stamp--bl { bottom: 28px; left: 28px; width: 112px; height: 112px; }

/* Landscape line illustration */
.landscape-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  opacity: 0.36;
  z-index: 2;
}

/* Botanical accents */
.botanical {
  position: absolute;
  pointer-events: none;
  opacity: 0.32;
  z-index: 1;
}

/* Diamond divider */
.diamond-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  color: var(--sepia);
}
.diamond-divider::before,
.diamond-divider::after {
  content: ""; height: 1px; flex: 1; max-width: 96px;
  background: var(--sepia-line);
}

/* ========== Sections ========== */
.section { padding: clamp(80px, 9vw, 140px) var(--gutter); }
.section--tight { padding: clamp(60px, 6vw, 100px) var(--gutter); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}
.section-head h2 { max-width: 800px; }
.section-head .lead { max-width: 640px; margin: 0; }

/* ========== Cards ========== */
.card {
  background: var(--bg-cream-soft);
  border: 1px solid var(--sepia-line);
  padding: 28px;
  position: relative;
}
.card--ornate::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  --bk-color: var(--sepia);
  --bk-len: 16px;
  background:
    /* top-left */
    linear-gradient(var(--bk-color), var(--bk-color)) top left / var(--bk-len) 1px no-repeat,
    linear-gradient(var(--bk-color), var(--bk-color)) top left / 1px var(--bk-len) no-repeat,
    /* top-right */
    linear-gradient(var(--bk-color), var(--bk-color)) top right / var(--bk-len) 1px no-repeat,
    linear-gradient(var(--bk-color), var(--bk-color)) top right / 1px var(--bk-len) no-repeat,
    /* bottom-left */
    linear-gradient(var(--bk-color), var(--bk-color)) bottom left / var(--bk-len) 1px no-repeat,
    linear-gradient(var(--bk-color), var(--bk-color)) bottom left / 1px var(--bk-len) no-repeat,
    /* bottom-right */
    linear-gradient(var(--bk-color), var(--bk-color)) bottom right / var(--bk-len) 1px no-repeat,
    linear-gradient(var(--bk-color), var(--bk-color)) bottom right / 1px var(--bk-len) no-repeat;
}
.card--ornate::after { display: none; }

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, var(--dark) 0%, #150d08 100%);
  color: #ead7af;
  padding: 80px var(--gutter) 36px;
  position: relative;
  z-index: 3;
}
.site-footer .footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.9fr;
  gap: 56px;
  align-items: flex-start;
}
.site-footer .brand img,
.site-footer .brand svg { height: 110px; }
.site-footer .brand .b-fill { fill: #ead7af; }
.site-footer .brand .b-stroke { stroke: #ead7af; }

.footer-col h4 {
  font-family: var(--ff-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a366;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-family: var(--ff-display); font-size: 17px; color: #ead7af; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0 0 6px; font-size: 14px; color: #d6c39e; }

.newsletter {
  margin-top: 18px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(234, 215, 175, 0.35);
  padding-bottom: 8px;
}
.newsletter input {
  background: transparent; border: 0; outline: 0;
  color: #ead7af;
  font-family: var(--ff-display); font-size: 17px;
  flex: 1; padding: 8px 0;
}
.newsletter input::placeholder { color: rgba(234, 215, 175, 0.55); }
.newsletter button {
  background: transparent; border: 0; cursor: pointer;
  color: #ead7af; padding: 8px; display: inline-flex;
}

.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(234, 215, 175, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
}
.socials a:hover { border-color: #f4d27c; color: #f4d27c; }

.footer-bottom {
  max-width: var(--maxw); margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 215, 175, 0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(234, 215, 175, 0.65);
  letter-spacing: 0.06em;
}
.footer-bottom .legal { display: flex; gap: 28px; }
.footer-bottom .legal a:hover { color: #fff; }

.footer-stamp {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 70px;
  width: 110px; height: 110px;
  opacity: 0.5;
  pointer-events: none;
}

/* ========== Page hero scaffolding ========== */
.page-hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  overflow: hidden;
}

/* ========== Content images (formerly <image-slot>) ========== */
.slot-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  background: var(--slot-bg, transparent);
}
.slot-img--contain { object-fit: contain; }

/* ========== Burger button ========== */
.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: inherit;
  position: relative;
  z-index: 60;
  align-items: center;
  justify-content: center;
}
.burger__lines {
  position: relative;
  display: block;
  width: 28px;
  height: 18px;
}
.burger__lines span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s ease, top 0.32s ease, opacity 0.2s ease, background 0.2s;
}
.burger__lines span:nth-child(1) { top: 2px; }
.burger__lines span:nth-child(2) { top: 8px; width: 70%; }
.burger__lines span:nth-child(3) { top: 14px; }
.burger.is-open { color: var(--ink); }
.burger.is-open .burger__lines span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.burger.is-open .burger__lines span:nth-child(2) { opacity: 0; }
.burger.is-open .burger__lines span:nth-child(3) { top: 8px; transform: rotate(-45deg); width: 100%; }

/* ========== Fullscreen mobile menu ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s;
  overflow-y: auto;
  padding: calc(var(--topbar-h) + 12px) var(--gutter) 48px;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 210, 0.55), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(80, 50, 20, 0.06), transparent 50%);
}
.mobile-menu__inner {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mobile-menu__eyebrow {
  font-family: var(--ff-label);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-menu__nav a {
  font-family: var(--ff-display);
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  display: inline-block;
}
.mobile-menu__nav a:hover { color: var(--wine); }
.mobile-menu__nav a.is-active {
  color: var(--wine);
  font-style: italic;
}
.mobile-menu__divider {
  width: 40px;
  height: 1px;
  background: var(--sepia-line);
  border: 0;
  margin: 8px 0;
}
.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--wine);
  color: #f6ecd2;
  font-family: var(--ff-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.22s;
}
.mobile-menu__cta:hover { background: var(--wine-deep); }
.mobile-menu__addr {
  font-family: var(--ff-label);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 4px 0 0;
  line-height: 1.8;
}
.mobile-menu__socials {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.mobile-menu__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--sepia-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.mobile-menu__socials a:hover { border-color: var(--wine); color: var(--wine); }

.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--sepia-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  z-index: 3;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__close:hover {
  color: var(--wine);
  border-color: var(--wine);
  transform: rotate(90deg);
}

body.menu-open { overflow: hidden; }
body.menu-open .burger { display: none; }

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .topbar__inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav { display: none; }
  .topbar__right { display: none; }
  .burger { display: inline-flex; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-stamp { display: none; }

  /* Decorative — hide on small screens to avoid overlap */
  .botanical { display: none !important; }
  .corner-stamp { width: 72px; height: 72px; opacity: 0.35; }
  .corner-stamp--bl { bottom: 16px; left: 16px; }

  /* CTA band (shared across pages) */
  .cta-band { padding: 48px var(--gutter); }
  .cta-band__art { display: none; }
  .cta-band__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-band__ctas .btn,
  .cta-band__ctas .btn--ghost { width: 100%; max-width: 320px; margin: 0 auto; }

  /* Strip (defined in index + prodotti) */
  .strip { padding: 28px var(--gutter); }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Section spacing */
  .section { padding: clamp(56px, 8vw, 80px) var(--gutter); }
  .section--tight { padding: clamp(48px, 6vw, 64px) var(--gutter); }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  :root {
    --topbar-h: 72px;
    --gutter: 20px;
  }
  .brand img,
  .brand svg { height: 70px; }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .strip__item p { font-size: 11px; letter-spacing: 0.18em; }
  .strip__item svg { width: 40px; height: 40px; flex: 0 0 40px; }
  .site-footer { padding: 56px var(--gutter) 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .footer-bottom { font-size: 11px; }
  .footer-bottom .legal { flex-wrap: wrap; justify-content: center; gap: 16px; }

  .corner-stamp { display: none; }

  /* Touch-friendly targets */
  .btn { min-height: 48px; padding: 14px 24px; }
  .link-arrow { min-height: 44px; align-items: center; }
  .mobile-menu__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .strip__inner { grid-template-columns: 1fr; }
  .brand img,
  .brand svg { height: 58px; }
  .burger { padding: 8px; }
  .site-footer .brand img,
  .site-footer .brand svg { height: 78px; }
}
