/* ============================================================
   CUCINA DI MAMMA — v7 SHARED STYLES
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-muted: #5a5a5a;
  --ink-light: #8e8e8e;
  --bg: #ffffff;
  --bg-alt: #f9f9fb;
  --coral: #ef6b47;
  --coral-deep: #d65632;
  --rule: #e5e0d8;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; color: var(--coral); }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  padding: 1rem 2.5rem;
  transition: all 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--rule);
  padding: 0.7rem 2.5rem;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}
.brand-logo {
  height: 72px;
  width: auto;
  transition: height 0.3s;
}
nav.scrolled .brand-logo { height: 60px; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a.active {
  color: var(--coral);
  font-weight: 500;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  margin-left: auto;
}

@media (max-width: 980px) {
  nav { padding: 0.85rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding-right: 0; }
  .brand-logo { height: 56px; }
  nav.scrolled .brand-logo { height: 48px; }
}

/* Mobile menu (when expanded) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 80vw;
  background: var(--white);
  z-index: 200;
  padding: 6rem 2rem 2rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  flex-direction: column;
}
.nav-mobile.open {
  display: flex;
  transform: translateX(0);
}
.nav-mobile a {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.nav-mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.7; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow::before { content: '— '; }

/* ============ COMMON LAYOUT ============ */
.section {
  padding: 7rem 2rem;
}
.section-alt {
  background: var(--bg-alt);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-narrow {
  max-width: 920px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-head .eyebrow { display: block; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .section { padding: 5rem 1.5rem; }
  .section-head { margin-bottom: 2.5rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 1.05rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(239, 107, 71, 0.45);
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(239, 107, 71, 0.55);
}
.btn-secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--coral);
  color: var(--coral);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after {
  content: ' →';
  transition: margin-left 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--coral); }
.btn-ghost:hover::after { margin-left: 4px; }

/* ============ SUBPAGE HERO (smaller than homepage hero) ============ */
.subpage-hero {
  padding: 11rem 2rem 5rem;
  background: var(--bg-alt);
  text-align: center;
}
.subpage-hero .eyebrow {
  display: block;
  margin-bottom: 1.2rem;
}
.subpage-hero h1 {
  max-width: 880px;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.subpage-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .subpage-hero { padding: 9rem 1.5rem 4rem; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-alt);
  color: var(--ink-muted);
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 1.2rem;
  max-width: 280px;
}
.footer-logo {
  height: 60px;
  width: auto;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer-col ul li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.footer-col ul li a {
  color: var(--ink-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--coral); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-light);
}
.footer-investor-link {
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: all 0.2s;
  background: var(--white);
}
.footer-investor-link:hover {
  border-color: var(--coral);
  color: var(--coral);
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
