/* =========================================================
   Chiara Maglione - Design system
   ========================================================= */

:root {
  /* Palette */
  --bg-cream: #FDFBF7;
  --bg-warm: #F5EFE4;
  --bg-deep: #EBE1D0;
  --text-dark: #2C2620;
  --text: #4A413B;
  --text-soft: #786C66;
  --accent: #C86A53;
  --accent-dark: #A85440;
  --accent-soft: #F0D6CC;
  --border: #E8E0D0;
  --white: #FFFFFF;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 9999px;

  /* Shadow */
  --shadow-soft: 0 4px 24px rgba(60, 50, 40, 0.06);
  --shadow-card: 0 8px 32px rgba(60, 50, 40, 0.08);
}

/* =========================================================
   RESET
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent-soft); color: var(--text-dark); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p { font-size: clamp(1rem, 1.05vw, 1.0625rem); line-height: 1.8; color: var(--text-soft); }
p + p { margin-top: 16px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

section { padding: var(--section-y) 0; }
.bg-cream { background: var(--bg-cream); }
.bg-warm { background: var(--bg-warm); }
.bg-deep { background: var(--bg-deep); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--section-y); margin-bottom: clamp(48px, 6vw, 80px); }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.0625rem; }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200, 106, 83, .25); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--text-dark); border-color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253, 251, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.site-header.transparent { background: transparent; border-bottom-color: transparent; }
.site-header.transparent .logo,
.site-header.transparent .nav-link { color: var(--white); }
.site-header.scrolled { background: rgba(253, 251, 247, 0.96); box-shadow: 0 1px 0 var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { font-family: var(--serif); font-size: 1.5rem; color: var(--text-dark); letter-spacing: 0.01em; }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-soft); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.menu-toggle { display: none; padding: 8px; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--bg-cream);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  padding: 80px 32px 32px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link { font-size: 1.125rem; padding: 12px 0; color: var(--text-dark); }
.mobile-nav .nav-link:hover { color: var(--accent); }
.mobile-nav .nav-cta { margin-top: 24px; padding: 14px 24px; font-size: 15px; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.mobile-nav-close:hover { background: var(--bg-warm); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(20,12,8,0.72) 0%, rgba(20,12,8,0.45) 45%, rgba(20,12,8,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 96px 0 64px;
}
.hero-content .eyebrow { color: #F0CDC0; }
.hero-content h1 { color: var(--white); margin: 16px 0 24px; }
.hero-content p { color: rgba(255,255,255,0.95); font-size: 1.125rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   SPLIT (img + text)
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-content .eyebrow { margin-bottom: 12px; }
.split-content h2 { margin-bottom: 20px; }
.split-content h2 .accent { color: var(--accent); }
.split-content p { margin-bottom: 24px; }

/* =========================================================
   CARDS
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.pill {
  display: inline-block;
  background: var(--bg-deep);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  align-self: flex-start;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.card-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   LISTS
   ========================================================= */

.checklist li, .dashlist li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.dashlist li::before {
  content: '–';
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 20px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 4px; left: 18px;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-soft);
  z-index: 0;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.testimonial cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

/* =========================================================
   PAGE INTRO (sub-pages)
   ========================================================= */

.page-intro {
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(64px, 8vw, 112px));
  padding-bottom: clamp(48px, 6vw, 80px);
  background: var(--bg-cream);
}
.page-intro .eyebrow { margin-bottom: 16px; }
.page-intro h1 { max-width: 760px; margin: 0 auto 16px; }
.page-intro h1 .accent { color: var(--accent); }
.page-intro .lead { max-width: 620px; margin: 0 auto; font-size: 1.0625rem; }

/* =========================================================
   QUOTE BLOCK
   ========================================================= */

.quote-block {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.65;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 48px 0;
}

/* =========================================================
   STORY BODY (Chi Sono long text)
   ========================================================= */

.story-body { max-width: 720px; margin: 0 auto; }
.story-body p { font-size: 1.0625rem; line-height: 1.85; margin-bottom: 18px; }
.story-body .lead-line { font-size: 1.1875rem; color: var(--text); font-weight: 500; }
.story-img-inline {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 48px auto;
  max-width: 480px;
  box-shadow: var(--shadow-card);
}
.story-img-inline img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* =========================================================
   CTA SECTION
   ========================================================= */

.cta-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-center h2 { margin-bottom: 16px; }
.cta-center p { font-size: 1.0625rem; margin-bottom: 32px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
  text-align: center;
}
.contact-link.whatsapp { background: #25D366; color: var(--white); }
.contact-link.whatsapp:hover { background: #1FB458; transform: translateY(-1px); }
.contact-link.email {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.contact-link.email:hover { background: var(--accent); color: var(--white); }
.social-row { display: flex; gap: 20px; }
.social-row a { font-size: 14px; color: var(--text-soft); }
.social-row a:hover { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer { background: var(--bg-warm); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand h4 { font-family: var(--serif); font-size: 1.25rem; color: var(--text-dark); margin-bottom: 4px; }
.footer-brand p { font-size: 14px; line-height: 1.5; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 13px; color: var(--text-soft); }

/* =========================================================
   UTILITY
   ========================================================= */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
  .fade-up.in { opacity: 1; transform: none; }
}
