/* Rita Bigi — sito statico HTML/CSS/JS */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&family=Caveat:wght@500;600&display=swap");

:root {
  --background: #f8f3ea;
  --surface: #ffffff;
  --foreground: #3a2e25;
  --muted: #7a6e64;
  --border: #e5ddd1;
  --primary: #c97a5c;
  --primary-hover: #b86b4e;
  --sage: #94b3a4;
  --sage-hover: #82a293;
  --radius: 1.25rem;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
h1 { font-size: 2.6rem; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

body {
  overflow-x: hidden;
}

.hello{
  font-family: var(--font-script);
}

.icon{
  color: var(--primary);
}

.container {
  width: 100%;
}
.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}
main.container { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) {
  .section-card { padding: 4rem 3rem; }
}

/* Navbar */
.nav-wrap { padding-top: 0.5rem; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.logo {
  font-family: var(--font-script);
  font-size: 1.875rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--foreground);
}
.logo .flower { color: var(--sage); font-size: 1.1rem; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: rgba(58,46,37,0.8); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--foreground); font-weight: 500; }
.nav-cta {
  background: var(--sage); color: #fff; padding: 0.5rem 1.25rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }
.menu-btn {
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  color: var(--foreground);
}
.mobile-menu { display: none; padding: 0 1.5rem 1rem; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.5rem 0; font-size: 0.875rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-hover); }

/* Hero */
.grid-2 { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: 2rem; }
@media (min-width: 768px) { .hero h1 { font-size: 2.6rem; } }
.hero p { margin-top: 1.5rem; max-width: 28rem; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-img { border-radius: 1rem; object-fit: cover; max-width: 28rem; margin: 0 auto; }

/* Generic centers */
.text-center { text-align: center; }
.section-title { text-align: center; font-size: 1.875rem; }
@media (min-width: 768px) { .section-title { font-size: 2rem; } }
.section-sub { text-align: center; max-width: 36rem; margin: 1rem auto 0; }

/* 3-column grid */
.cols-3 {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cols-3 .col-item:last-child {
    grid-column: 2;
  }
}

.col-item {
  text-align: center;
}

.col-item p {
  max-width: 18rem;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
}

/* Method icons */
.method-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: rgba(201,122,92,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Book section */
.book-cover { max-width: 280px; margin: 0 auto; border-radius: 0.375rem;
  box-shadow: 0 20px 40px -10px rgba(58,46,37,0.25); }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Chi sono grid */
.bio-grid { display: grid; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
@media (min-width: 768px) { .bio-grid { grid-template-columns: 260px 1fr; } }
.avatar { width: 14rem; height: 14rem; border-radius: 9999px; object-fit: cover; margin: 0 auto; }
.signature { font-family: var(--font-script); font-size: 1.5rem; margin-top: 1.5rem; }

/* Testimonials */
.cards-3 { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.card-quote { font-size: 0.875rem; line-height: 1.6; color: rgba(58,46,37,0.9); }
.card-name { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; }
.card-role { font-size: 0.75rem; color: var(--muted); }

/* Method/general cards */
.feature-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.875rem; }

/* Books grid */
.books-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .books-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .books-grid { grid-template-columns: repeat(3, 1fr); } }
.book-card { text-align: center; display: block; transition: transform 0.2s; }
.book-card img { max-width: 240px; margin: 0 auto; border-radius: 0.375rem;
  box-shadow: 0 15px 30px -10px rgba(58,46,37,0.25); transition: transform 0.2s; }
.book-card:hover img { transform: translateY(-4px); }
.book-card h3 { margin-top: 1.25rem; }
.book-card .sub { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }

/* List */
.list-clean { max-width: 48rem; margin: 2rem auto 0; }
.list-clean li { list-style: none; margin-bottom: 0.75rem; color: var(--muted); }

/* Form */
.form { max-width: 36rem; margin: 2.5rem auto 0; display: grid; gap: 1rem; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--border); background: var(--background);
  border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem;
  font-family: inherit; color: var(--foreground);
  outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,122,92,0.15);
}
.form textarea { resize: vertical; }
.form .center { display: flex; justify-content: center; }

/* Empty state */
.empty {
  margin-top: 3rem; border: 1px dashed var(--border);
  border-radius: 0.75rem; padding: 2.5rem; text-align: center; color: var(--muted);
}

/* Footer */
footer { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-grid h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; }
.foot-grid ul { list-style: none; margin-top: 0.75rem; }
.foot-grid li { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.socials { display: flex; gap: 0.75rem; }
.socials a {
  border: 1px solid var(--border); border-radius: 9999px;
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.foot-bottom { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 2.5rem; }

/* Fade up */
.fade-up { animation: fadeUp 0.7s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA */
.cta-center { text-align: center; }
.cta-center .btn { margin-top: 1.75rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* ==================================
   MOBILE RESPONSIVE FIXES
   ================================== */

@media (max-width: 767px) {

  h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-card {
    padding: 2rem 1.25rem;
    overflow: hidden;
  }

  .nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .hero {
    text-align: center;
  }

  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-img {
    max-width: 100%;
    width: 100%;
  }

  .avatar {
    width: 10rem;
    height: 10rem;
  }

  .bio-grid {
    gap: 1.5rem;
  }

  .books-grid,
  .cols-3,
  .cards-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-card img {
    max-width: 180px;
  }

  .book-cover {
    max-width: 220px;
  }

  .form {
    margin-top: 2rem;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  iframe,
  video,
  table {
    max-width: 100%;
  }

  * {
    word-wrap: break-word;
  }
}
