/* ══════════════════════════════════════════
   EcoPsy – Shared Stylesheet
   Font: Plus Jakarta Sans (titoli) + Inter (corpo)
   ══════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1a4a2e;
  --green-mid:   #2d7a4f;
  --green-light: #4aa56e;
  --green-pale:  #f0f7f2;
  --text:        #1e1e1e;
  --text-muted:  #5a6672;
  --border:      #dde6e0;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(26,74,46,.08);
  --radius:      12px;
  --max-w:       1140px;
  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.alt { background: var(--green-pale); }

/* ── Language toggle ── */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="it"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }

/* ── Header / Nav ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--green-dark); letter-spacing: -.5px;
}
.logo-text span { color: var(--green-mid); }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 600;
  color: var(--text-muted); padding: 6px 12px; border-radius: 6px;
  transition: background .15s, color .15s;
}
nav a:hover,
nav a.active { background: var(--green-pale); color: var(--green-dark); text-decoration: none; }
nav a.active { font-weight: 700; }

.lang-btn {
  margin-left: 16px;
  background: var(--green-dark); color: var(--white);
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: .78rem; font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer; letter-spacing: .5px;
  transition: background .15s;
}
.lang-btn:hover { background: var(--green-mid); }

/* ── Hero tagline ── */
.hero-tagline {
  font-family: var(--font-head);
  font-size: 1rem; font-style: italic; font-weight: 400;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px; letter-spacing: .01em;
}

/* ── Page hero (mini) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0f2e1c 100%);
  color: var(--white); padding: 56px 0 48px;
}
.page-hero .section-label { color: rgba(255,255,255,.6); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 640px; }

/* ── Section headings ── */
.section-label {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 10px;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--green-dark); line-height: 1.15; margin-bottom: 16px;
}
.section-intro {
  font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--font-head);
  padding: 12px 28px; border-radius: 8px;
  font-size: .9rem; font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.btn-primary { background: var(--green-mid); color: var(--white); }
.btn-dark { background: var(--green-dark); color: var(--white); }

/* ── Cards generici ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 24px;
  box-shadow: var(--shadow);
}

/* ── Design strip ── */
.design-strip {
  background: var(--green-dark); border-radius: var(--radius);
  padding: 32px 36px; color: var(--white);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.design-item { text-align: center; }
.design-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: #6fe0a0; }
.design-desc { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 4px; line-height: 1.4; }

/* ── Contact box ── */
.contact-box {
  background: var(--green-dark); border-radius: var(--radius);
  padding: 36px 40px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-box h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.contact-box p { font-size: .9rem; color: rgba(255,255,255,.75); }
.contact-box a.btn { background: #6fe0a0; color: var(--green-dark); }
.contact-box a.btn:hover { background: var(--white); }

/* ── Footer ── */
footer {
  background: #1a2e38; color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo-text { font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
footer h4 { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--white); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { font-size: .85rem; margin-bottom: 6px; }
footer ul li a { color: rgba(255,255,255,.65); }
footer ul li a:hover { color: #6fe0a0; text-decoration: none; }
.footer-logos { display: flex; align-items: center; justify-content: space-around; margin-top: 16px; width: 100%; }
.footer-logos img { flex: 0 1 auto; max-width: 33%; max-height: 48px; width: auto; object-fit: contain; object-position: center center; opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  font-size: .78rem; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}

/* ── Hamburger button ── */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px;
  color: var(--green-dark);
  transition: background .15s;
}
.menu-toggle:hover { background: var(--green-pale); }
.menu-toggle svg { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .design-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; text-align: center; }

  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 16px; gap: 4px; z-index: 99;
  }
  nav.open { display: flex; }
  nav a { display: block; padding: 10px 14px; font-size: .95rem; }
  nav a[data-lang="en"] { display: none; }
  nav a[data-lang="it"] { display: block; }
  body.lang-en nav a[data-lang="it"] { display: none; }
  body.lang-en nav a[data-lang="en"] { display: block; }
  nav a:not([data-lang]) { display: block; }
  .lang-btn { margin: 8px 14px 4px; width: calc(100% - 28px); }
}
