/* Gronasteria Benessere - Main Stylesheet */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Nunito:wght@300;400;600;700&display=swap");

:root {
  --sage: #83a65b;
  --sage-light: #a8c68a;
  --sage-pale: #e8f0de;
  --sage-dark: #5e7d3e;
  --brown: #5a4130;
  --brown-light: #7a6150;
  --brown-pale: #f5efe8;
  --white: #ffffff;
  --off-white: #fafaf7;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --border: #e2ddd5;
  --shadow: rgba(90, 65, 48, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--sage-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo span {
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage);
}

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  padding: 8px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: var(--sage);
  background: var(--sage-pale);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--white) 50%, var(--brown-pale) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--brown);
}

.hero-text h1 em {
  color: var(--sage);
  font-style: normal;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(131, 166, 91, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}

.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--shadow);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-sage { background: var(--sage-pale); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--sage-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-family: "DM Sans", sans-serif;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(90, 65, 48, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 a {
  color: var(--brown);
  text-decoration: none;
}

.card-body h3 a:hover { color: var(--sage); }

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 8px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage);
}

.card-link:hover { color: var(--sage-dark); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--sage-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--sage);
  fill: none;
  stroke-width: 2;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

.two-col img {
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 40px 0;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--sage);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--sage);
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.testimonial-author {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  color: var(--brown);
  font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Nunito", sans-serif;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--brown);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover { background: var(--brown-light); }

/* Footer */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p { font-size: 0.9rem; line-height: 1.8; }

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--sage-light); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sage-light); }

/* Article */
.article-hero {
  padding: 50px 0 30px;
  background: var(--sage-pale);
}

.article-hero h1 { font-size: 2.2rem; }

.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 10px;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-content p { margin-bottom: 20px; }
.article-content h2 { margin-top: 40px; margin-bottom: 16px; font-size: 1.6rem; }
.article-content h3 { margin-top: 30px; }

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content img {
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 4px 16px var(--shadow);
}

.article-content blockquote {
  border-left: 4px solid var(--sage);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--sage-pale);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Page */
.page-hero {
  background: var(--sage-pale);
  padding: 60px 0;
  text-align: center;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content p { margin-bottom: 16px; }
.page-content h2 { margin-top: 36px; }

/* Legal */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px;
}

.legal-content h2 { margin-top: 36px; font-size: 1.4rem; }
.legal-content h3 { margin-top: 24px; font-size: 1.15rem; }
.legal-content p { margin-bottom: 14px; font-size: 0.95rem; }
.legal-content ul { margin: 12px 0; padding-left: 24px; }
.legal-content li { margin-bottom: 6px; font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--sage);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brown);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 50px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-text h1 { font-size: 2rem; }

  .section { padding: 50px 0; }

  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col-reverse { direction: ltr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px var(--shadow);
  }
  .main-nav.open { display: flex; }

  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
