@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Reset ─────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Design Tokens ──────────────────────────────────────────── */

:root {
  --linen:              #FDFAF5;
  --sand:               #F5EDE0;
  --sand-dark:          #E8D9C4;
  --espresso:           #1A0A00;
  --espresso-mid:       #3D2010;
  --espresso-light:     #7A6050;
  --warm-accent:        #C17B3F;
  --warm-accent-light:  #D4956A;
  --border:             rgba(26,10,0,0.1);
  --border-strong:      rgba(26,10,0,0.22);
}

/* ─── Base ───────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--linen);
  color: var(--espresso);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
}

/* ─── Grain texture ──────────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ─── Page layout ────────────────────────────────────────────── */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 0.5rem;
}

/* ─── Avatar ─────────────────────────────────────────────────── */

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 10%;
  border-radius: 50%;
  display: block;
}

.avatar-fallback {
  display: flex;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--espresso-mid);
}

/* ─── Identity ───────────────────────────────────────────────── */

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.brand-author {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--espresso-light);
  margin-bottom: 0.2rem;
}

.brand-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--espresso-light);
  text-align: center;
  max-width: 300px;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* ─── Pills ──────────────────────────────────────────────────── */

.pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
}

.pill {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 60px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--espresso);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.pill:hover {
  background: var(--sand);
  border-color: var(--warm-accent-light);
  color: var(--espresso);
  transform: translateY(-2px);
}

.pill.filled {
  background: var(--espresso);
  color: var(--linen);
  border-color: var(--espresso);
  box-shadow: 0 4px 20px rgba(26,10,0,0.25);
}

.pill.filled:hover {
  background: var(--warm-accent);
  border-color: var(--warm-accent);
  color: var(--linen);
}

/* ─── Footer ─────────────────────────────────────────────────── */

.page-footer {
  position: absolute;
  bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.page-footer a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso-light);
  text-decoration: none;
  transition: color 0.2s;
}

.page-footer a:hover {
  color: var(--warm-accent);
}

/* ═══════════════════════════════════════════════════════════════
   CONSULENZA PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Navbar ─────────────────────────────────────────────────── */

.c-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.c-navbar.scrolled {
  background: rgba(245, 237, 224, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.c-navbar__back {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--espresso-light);
  text-decoration: none;
  transition: color 0.2s;
}

.c-navbar__back:hover {
  color: var(--espresso);
}

/* ─── Shared section utilities ───────────────────────────────── */

.c-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-accent);
  margin-bottom: 0.75rem;
}

.c-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--espresso);
}

.c-h2 em {
  font-style: italic;
}

.c-h2--light {
  color: var(--espresso);
}

.c-pill {
  max-width: 320px;
  width: 100%;
}

/* ─── Hero ───────────────────────────────────────────────────── */

.c-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  gap: 1.25rem;
}

.c-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
  max-width: 680px;
}

.c-hero__title em {
  font-style: italic;
}

.c-hero__sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--espresso-light);
  max-width: 500px;
  line-height: 2;
  margin-bottom: 2rem;
}

.c-hero__note {
  font-size: 0.78rem;
  color: var(--espresso-light);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.c-hero__quote {
  font-size: 0.78rem;
  color: var(--espresso-light);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ─── Sections ───────────────────────────────────────────────── */

.c-section {
  padding: 6rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.c-section--wide {
  max-width: 800px;
  padding: 6rem 1.5rem;
}

.include-card,
.metodo-card {
  border-radius: 12px;
  padding: 1.8rem;
}

/* ─── Step timeline ──────────────────────────────────────────── */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
  list-style: none;
}

.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--sand-dark);
  line-height: 1;
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--espresso-light);
  font-weight: 300;
  line-height: 1.8;
}

.step-list-items {
  font-size: 0.88rem;
  color: var(--espresso-light);
  font-weight: 300;
  line-height: 2;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.step-note {
  font-size: 0.8rem;
  color: var(--espresso-light);
  font-weight: 300;
  font-style: italic;
  margin-top: 1rem;
}

.step-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(26,10,0,0.25);
  transition: border-color 0.2s ease;
}

.step-link:hover {
  border-color: rgba(26,10,0,0.6);
}

/* ─── Testimonianze ──────────────────────────────────────────── */

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.testi-grid .card-full {
  grid-column: 1 / -1;
}

.testi-card {
  background: var(--linen);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: background 0.25s ease;
}

.testi-card:hover {
  background: var(--sand);
}

.testi-testo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.testi-nome {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--espresso);
}

.testi-ruolo {
  font-size: 0.78rem;
  color: var(--espresso-light);
  font-weight: 300;
}

/* ─── CTA finale ─────────────────────────────────────────────── */

.cta-section {
  background: var(--sand);
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--espresso-light);
}

.cta-note a {
  color: var(--espresso-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cta-note a:hover {
  color: var(--warm-accent);
}

/* ─── Footer consulenza ──────────────────────────────────────── */

.c-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.c-footer a {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--espresso-light);
  text-decoration: none;
  transition: color 0.2s;
}

.c-footer a:hover {
  color: var(--espresso);
}

/* ─── Media queries ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .c-section,
  .c-section--wide {
    padding: 4rem 1.2rem;
  }
}

@media (max-width: 600px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }

  .include-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITY PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Header ─────────────────────────────────────────────────── */

.comm-header {
  padding-top: 5rem;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.comm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.comm-author {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--espresso-light);
  margin-top: 0.25rem;
}

/* ─── Video ──────────────────────────────────────────────────── */

.video-wrapper {
  position: relative;
  max-width: 680px;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44,26,14,0.10);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* ─── Info grid ──────────────────────────────────────────────── */

.info-grid {
  max-width: 700px;
  margin: 1.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--espresso-mid);
}

/* ─── Posti label ────────────────────────────────────────────── */

.posti-label {
  max-width: 700px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--warm-accent);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─── Join button ────────────────────────────────────────────── */

.join-wrap {
  max-width: 700px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}

.join-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  border: none;
  background: var(--espresso);
  color: var(--linen);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s;
}

.join-btn:hover {
  background: var(--espresso-mid);
}

/* ─── Body text ──────────────────────────────────────────────── */

.comm-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.comm-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--espresso);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.comm-attribution {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--espresso-light);
  margin-bottom: 2rem;
}

.comm-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--espresso-light);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
  opacity: 0.4;
}

.comm-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--espresso);
  margin: 2rem 0 1.2rem;
}

.comm-list {
  list-style: none;
  padding: 0;
}

.comm-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--espresso-light);
  line-height: 2;
  padding-left: 1.5rem;
  position: relative;
}

.comm-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--warm-accent);
  font-size: 0.7rem;
  top: 0.45em;
}

.comm-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
}

.comm-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--espresso-light);
  text-align: center;
  margin-top: 0.8rem;
}
