:root {
  --green: #3f6b4f;
  --green-light: #5c8a68;
  --sand: #f4ede1;
  --sand-2: #eef2e6;
  --terracotta: #c98a4b;
  --ink: #2a2f27;
  --ink-soft: #565f52;
  --line: #e2ddd0;
  --radius: 14px;
  --font-serif: "Fraunces", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fffdf9;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-light);
  margin: 0 0 12px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead.center { max-width: 640px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

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

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--green); }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: #345a41; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-small { padding: 9px 18px; font-size: 0.88rem; }

/* Hero */
.hero {
  padding: 76px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero .lead { font-size: 1.08rem; max-width: 520px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(63, 107, 79, 0.35);
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slideshow img.is-active {
  opacity: 1;
}

/* Strip */
.strip {
  background: var(--green);
  color: #fff;
  padding: 28px 0;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { font-family: var(--font-serif); font-size: 1.05rem; }
.strip-item span { font-size: 0.88rem; opacity: 0.85; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--sand-2); }

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.section-media svg { border-radius: var(--radius); }
.section-media { min-width: 0; }

@media (min-width: 861px) {
  #chi-siamo .section-grid { grid-template-columns: 1.2fr 1fr; }
}

.chi-siamo-top { padding-top: 56px; }

.chi-siamo-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(42, 47, 39, 0.4);
}

.chi-siamo-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.chi-siamo-slideshow img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand-2);
  border: 1.5px solid var(--green-light);
}

/* Gallery */
.gallery-section { padding-top: 64px; padding-bottom: 64px; }

.photo-gallery {
  margin-top: 40px;
}

.photo-gallery img {
  width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* Carousel (gallery + dipladenia) */
.carousel-wrap {
  position: relative;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--green-light) transparent;
}

.carousel-track img {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.carousel-track img:hover { transform: translateY(-3px); }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -12px rgba(42, 47, 39, 0.35);
}

.carousel-nav:hover { background: var(--green); color: #fff; border-color: var(--green); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

/* Catalog */
.catalog-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card h3, .catalog-card > p { margin-left: 24px; margin-right: 24px; }
.catalog-card h3 { margin-top: 20px; }
.catalog-card > p:last-child { margin-bottom: 24px; }

.catalog-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card p { font-size: 0.94rem; margin-bottom: 0; }

.catalog-card-icon {
  background: var(--sand);
  border-color: var(--sand);
  padding: 24px 24px 24px;
}

.catalog-card-icon h3, .catalog-card-icon > p { margin-left: 0; margin-right: 0; }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-circle svg { width: 24px; height: 24px; }

/* Featured (Dipladenia) banner */
.catalog-card-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 32px;
  margin-bottom: 24px;
}

.featured-body {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.featured-body .badge { margin-left: auto; margin-right: auto; }
.featured-body h3 { font-size: 1.6rem; margin-bottom: 10px; }
.featured-body p { margin-bottom: 0; }

.featured-media img {
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.badge {
  display: inline-block;
  background: var(--sand);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.catalog-banner {
  margin-top: 24px;
  background: var(--green);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.catalog-banner h3, .catalog-banner p { color: #fff; margin-bottom: 4px; }
.catalog-banner p { opacity: 0.9; margin-bottom: 0; }
.catalog-banner .btn-primary { background: #fff; color: var(--green); flex-shrink: 0; }
.catalog-banner .btn-primary:hover { background: var(--sand); }

/* Contact */
.contact-grid { align-items: start; }

.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-info strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
  margin-bottom: 2px;
}

.contact-form {
  display: grid;
  gap: 14px;
  background: var(--sand-2);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 1px;
}

.contact-form .btn { justify-self: start; margin-top: 6px; }

.hidden-field { position: absolute; left: -9999px; top: -9999px; }

.form-note {
  font-size: 0.88rem;
  color: var(--green);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-inner a { color: var(--ink-soft); }

/* Leaf cursor */
.leaf-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-4px, -4px);
  transition: opacity 0.2s ease;
}

body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active textarea {
  cursor: none;
}

body.custom-cursor-active .leaf-cursor {
  opacity: 1;
}

/* Responsive */
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-media { order: -1; width: 100%; max-width: 320px; margin: 0 auto 20px; }
  #chi-siamo .section-media { max-width: 480px; }
  .strip-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: 100%; max-width: 340px; margin: 0 auto; }
  .photo-gallery img { width: 200px; }
  .featured-media img { width: 240px; }
}

@media (max-width: 640px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fffdf9;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .photo-gallery img { width: 160px; }
  .featured-media img { width: 190px; }
  #chi-siamo .section-media { max-width: 360px; }
  .carousel-nav { display: none; }
  .catalog-card-featured { padding: 20px; }
  .catalog-banner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 40px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-arrow { width: 42px; height: 42px; }
  .lightbox-close { top: 10px; right: 10px; }
}
