/* ===========================================================
   AMB Villa d'Ogna — v2.0 (anteprima home)
   =========================================================== */

:root {
  --forest-900: #0e2a1d;
  --forest-800: #163a27;
  --forest-700: #1f4d33;
  --forest-600: #2d6a4a;
  --forest-500: #3f8560;
  --sage-100: #eef3ea;
  --cream: #faf7f0;
  --amber: #d98324;
  --amber-light: #f2b84b;
  --ink: #1c2420;
  --ink-soft: #4a544c;
  --white: #ffffff;
  --line: rgba(28, 36, 32, 0.1);
  --shadow: 0 20px 50px rgba(14, 42, 29, 0.12);
  --radius: 18px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 14px;
}

.center { text-align: center; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: var(--white); box-shadow: 0 10px 25px rgba(217, 131, 36, 0.35); }
.btn--primary:hover { background: #c1731d; transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--outline { border-color: var(--forest-600); color: var(--forest-700); }
.btn--outline:hover { background: var(--forest-700); color: var(--white); }
.btn--ghost { color: var(--forest-800); font-weight: 600; padding: 10px 22px; }
.btn--ghost:hover { color: var(--amber); }

.link-arrow { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--forest-700); position: relative; }
.link-arrow:hover { color: var(--amber); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--forest-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 44px;
  font-size: 0.88rem;
  position: relative;
  text-align: center;
}
.announce p { margin: 0; }
.announce__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.announce__close:hover { color: var(--white); }
.announce.hidden { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(14,42,29,0.08);
  padding: 10px 0;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(14,42,29,0.35));
  transition: height 0.35s ease, width 0.35s ease;
}
.site-header.scrolled .brand__logo { height: 38px; width: 38px; }
.brand__text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--white); transition: color 0.35s ease; }
.site-header.scrolled .brand__text { color: var(--forest-900); }
.brand__text em { font-style: normal; color: var(--amber-light); }
.site-header.scrolled .brand__text em { color: var(--amber); }

.navbar ul { display: flex; gap: 34px; }
.navbar a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.site-header.scrolled .navbar a { color: var(--ink); }
.navbar a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.3s ease;
}
.navbar a:hover::after, .navbar a.active::after { width: 100%; }
.navbar a:hover { color: var(--amber-light); }
.site-header.scrolled .navbar a:hover { color: var(--amber); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-cta { color: rgba(255,255,255,0.95) !important; border: 2px solid rgba(255,255,255,0.5); padding: 9px 20px; }
.site-header.scrolled .header-cta { color: var(--forest-800) !important; border-color: var(--forest-700); }
.header-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--white) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.site-header.scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -86px;
  padding-top: 86px;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,29,0.55) 0%, rgba(14,42,29,0.65) 55%, rgba(14,42,29,0.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  color: var(--white);
}
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); color: var(--white); }
.hero__lead { margin: 26px auto 0; max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,0.88); }
.hero__actions { margin-top: 38px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- Stats ---------- */
.stats { background: var(--forest-900); padding: 64px 32px; }
.stats__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--amber-light); font-weight: 600; }
.stat__suffix { font-family: var(--font-display); font-size: 2.6rem; color: var(--amber-light); font-weight: 600; }
.stat p { color: rgba(255,255,255,0.75); margin-top: 6px; font-size: 0.95rem; }

/* ---------- About ---------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about__content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--forest-900); margin-bottom: 20px; }
.about__content p { color: var(--ink-soft); font-size: 1.05rem; }
.check-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  color: var(--forest-600);
  font-weight: 700;
}

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--forest-900); }

/* ---------- Activities ---------- */
.activities { background: var(--sage-100); padding: 110px 32px; }
.activities__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(14,42,29,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { font-size: 2.2rem; margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; color: var(--forest-900); margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- News ---------- */
.news { max-width: 1200px; margin: 0 auto; padding: 110px 32px; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(14,42,29,0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 24px; }
.news-card__body time { font-size: 0.8rem; color: var(--amber); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.news-card__body h3 { font-size: 1.15rem; margin: 10px 0; color: var(--forest-900); }
.news-card__body p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--forest-900); padding: 110px 32px; }
.gallery .section-head .eyebrow { color: var(--amber-light); }
.gallery .section-head h2 { color: var(--white); }
.gallery__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery__grid figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__grid figure:hover img { transform: scale(1.08); }

/* ---------- CTA join ---------- */
.cta-join {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  padding: 100px 32px;
  text-align: center;
}
.cta-join__content { max-width: 620px; margin: 0 auto; color: var(--white); }
.cta-join h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); margin-bottom: 18px; }
.cta-join p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.cta-join .hero__actions { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,0.8); padding: 80px 32px 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  height: 54px;
  width: 54px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-col--brand p { color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-light); margin-bottom: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.72); font-size: 0.92rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--amber-light); }
.social-icons a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; }
.social-icons img { width: 18px; filter: invert(1); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-preview-tag { color: var(--amber-light); font-weight: 600; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 400;
  box-shadow: 0 10px 25px rgba(14,42,29,0.3);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--amber); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .navbar, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .navbar.open {
    display: block;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--forest-900);
    padding: 100px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  }
  .navbar.open ul { flex-direction: column; gap: 26px; }
  .navbar.open a { color: var(--white); font-size: 1.1rem; }

  .about { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; }
  .about__media img { aspect-ratio: 16/10; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .activities__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .header-inner { padding: 0 20px; }
  .brand__text { display: none; }
  .hero__actions, .cta-join .hero__actions { flex-direction: column; align-items: stretch; }
  .activities__grid { grid-template-columns: 1fr; }
  .announce { padding: 10px 50px; font-size: 0.8rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
