/* ==========================================================================
   ECCELLENZE GASTRONOMICHE — Art of Italian taste
   Master stylesheet
   Palette: cream #F8F1E4 / gold #C9A26A / deep green #1F2D26
   ========================================================================== */

:root {
  --cream: #F8F1E4;
  --cream-light: #FDF9F0;
  --gold: #C9A26A;
  --gold-dark: #9C7A48;
  --gold-light: #E2C896;
  --ink: #1F2D26;
  --ink-soft: #3A4A40;
  --muted: #6B7770;
  --line: rgba(31, 45, 38, 0.12);
  --shadow-sm: 0 2px 8px rgba(31, 45, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 45, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 45, 38, 0.16);
  --radius: 4px;
  --radius-lg: 12px;
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
  --container: 1240px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset --------------------------------------------------------------------- */
*, *::before, *::after { 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.65;
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* Typography ---------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.6; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.section-title { text-align: center; margin-bottom: 0.5em; }
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Layout -------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }

/* Header / Nav -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 240, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__brand-mark svg { width: 100%; height: 100%; }
.nav__brand-img {
  height: clamp(46px, 5.4vw, 60px);
  width: auto;
  display: block;
}
.nav__brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav__menu a:hover::after,
.nav__menu a.active::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.nav__lang a { padding: 0 4px; }
.nav__lang a.active { color: var(--gold-dark); }
.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: all var(--transition);
}
.nav__cart:hover { background: var(--ink); color: var(--cream); }
.nav__cart-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: all 0.3s;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top:  7px; }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 9vw, 8rem);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248,241,228,0.88) 0%, rgba(248,241,228,0.78) 50%, rgba(248,241,228,0.92) 100%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.55;
  filter: saturate(0.85) blur(2px);
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__logo {
  width: clamp(180px, 22vw, 280px);
  margin: 0 auto 2rem;
}
.hero__logo--full {
  width: clamp(420px, 64vw, 820px);
  max-width: 100%;
}
.hero__logo svg { width: 100%; height: auto; display: block; }
.hero h1 { margin-bottom: 1rem; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--gold-dark);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: var(--sans);
}
.btn--primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn--block { display: block; width: 100%; }
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.78rem; }

/* Grid ---------------------------------------------------------------------- */
.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Story / split section ---------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--gold-light), var(--cream));
  box-shadow: var(--shadow-md);
}
.split__media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__caption {
  position: absolute;
  bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Pillars (3-column features) ---------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pillar {
  text-align: center;
  padding: 2rem 1rem;
}
.pillar__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.4rem;
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

/* Product card -------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--cream), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold-dark);
  text-align: center;
  padding: 2rem;
}
.product-card__media-fallback svg { width: 60px; height: 60px; margin-bottom: 0.6rem; }
.product-card__media-fallback span { font-family: var(--serif); font-style: italic; font-size: 0.95rem; }
.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.product-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.product-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  flex: 1;
}
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.product-card__price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.product-card__price small { font-size: 0.65em; color: var(--muted); font-weight: 400; }

/* Stats / numbers strip ----------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Quote / pull --------------------------------------------------------------*/
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
}
.quote::before {
  content: '"';
  display: block;
  font-size: 6rem;
  line-height: 0.4;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.quote__author {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.85rem;
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Forms --------------------------------------------------------------------- */
.form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form__field { margin-bottom: 1.2rem; }
.form__field label,
.form__row .form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.form__check input { margin-top: 0.3rem; }
.form__msg {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form__msg--ok { background: rgba(96, 154, 110, 0.12); color: #2f6d3f; border: 1px solid rgba(96, 154, 110, 0.4); }
.form__msg--err { background: rgba(184, 71, 71, 0.10); color: #8c2d2d; border: 1px solid rgba(184, 71, 71, 0.35); }

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-family: var(--sans);
  font-weight: 700;
}
.site-footer a { color: rgba(248, 241, 228, 0.75); }
.site-footer a:hover { color: var(--gold-light); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer__tag {
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.footer__about { color: rgba(248, 241, 228, 0.7); font-size: 0.92rem; line-height: 1.6; }
.footer__list li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.footer__contact li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: rgba(248, 241, 228, 0.78);
}
.footer__bottom {
  border-top: 1px solid rgba(248, 241, 228, 0.12);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(248, 241, 228, 0.55);
}
.footer__bottom-links { display: flex; gap: 1.5rem; }

/* Page header (interior pages) --------------------------------------------- */
.page-header {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: center;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
}
.page-header h1 { margin-bottom: 0.6rem; }
.page-header .lead { max-width: 720px; margin: 0 auto; }

/* Featured row (alternating) ---------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }

/* Map / world strip -------------------------------------------------------- */
.world {
  background:
    radial-gradient(circle at 30% 50%, rgba(201, 162, 106, 0.22), transparent 60%),
    var(--ink);
  color: var(--cream);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.world h2 { color: var(--cream); }
.world__cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
}
.world__cities span { position: relative; }
.world__cities span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -1.4rem;
  color: var(--gold);
  font-style: normal;
}

/* Misc utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--3, .grid--4, .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split, .feature-row, .feature-row:nth-child(even) .feature-row__media {
    grid-template-columns: 1fr;
  }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--cream-light);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__menu a::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .nav__cart span:not(.nav__cart-count):not(.nav__cart-icon) { display: none; }
  .grid--2, .grid--3, .grid--4, .pillars,
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
