/* =========================================================
   Il giardino di Francesco — stylesheet
   Giardiniere professionale a Roma e nel Lazio
   ========================================================= */

:root {
  --green-950: #16241a;
  --green-900: #1f3320;
  --green-800: #2b4a2c;
  --green-700: #3c6339;
  --green-600: #4f7a48;
  --green-500: #6b9460;
  --green-100: #e8f0e3;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #23281f;
  --ink-soft: #4c5245;
  --border: #e2e0d5;
  --gold: #b98b3e;

  --font-heading: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --radius: 6px;
  --shadow: 0 6px 18px rgba(22, 36, 26, 0.14);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover, a:focus { color: var(--gold); }
ul { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; color: var(--green-900); line-height: 1.25; }
p { margin: 0 0 1.15em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--green-900);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- hero / header ---------- */
.site-header {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 26, 15, .55), rgba(15, 26, 15, .72)), url("imm/header.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 96px 20px 46px;
}
.site-header .site-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: .01em;
}
.site-header .site-title a { color: #fff; }
.site-header .site-title a:hover { color: var(--green-100); }
.site-description {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--green-100);
}

/* ---------- nav ---------- */
.main-navigation {
  background: var(--green-900);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.main-navigation .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  position: relative;
}
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  color: #fff;
  cursor: pointer;
  padding: 16px 24px;
  font-size: .95rem;
  letter-spacing: .04em;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.nav-toggle-label .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-label .bars span { width: 22px; height: 2px; background: #fff; display: block; }

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.menu li a {
  display: block;
  color: #f1f0ea;
  padding: 18px 18px;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.menu li a:hover,
.menu li.current a {
  color: #fff;
  border-color: var(--gold);
}

@media (max-width: 780px) {
  .nav-toggle-label { display: inline-flex; }
  .main-navigation .wrap { justify-content: flex-start; min-height: auto; }
  .menu {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .menu li a { padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid transparent; }
  .menu li a:hover, .menu li.current a { border-left-color: var(--gold); border-bottom-color: rgba(255, 255, 255, .1); }
  .nav-toggle:checked ~ .menu { max-height: 480px; }
}

/* ---------- content ---------- */
.site-content { background: var(--paper); }
.content-area { padding-top: 56px; padding-bottom: 64px; }

.entry-header { text-align: center; margin-bottom: 8px; }
.entry-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 0 0 28px;
  position: relative;
  padding-bottom: 18px;
}
.entry-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--gold);
}

.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > p { font-size: 1.06rem; color: var(--ink-soft); }
.entry-content > p:first-of-type strong,
.lead {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-800);
  margin-bottom: .6em;
}

.entry-content a { border-bottom: 1px solid currentColor; }

/* ---------- home service links ---------- */
.service-links {
  list-style: none;
  max-width: 760px;
  margin: 0 auto 1.6em;
  display: grid;
  gap: 12px;
}
.service-links li a {
  display: block;
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  color: var(--green-900);
  padding: 16px 20px;
  font-size: 1.08rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .2s ease, transform .2s ease;
}
.service-links li a:hover { background: var(--green-700); color: #fff; transform: translateX(4px); }

.payment-note {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.6em;
}
.payment-cards { margin: 0 auto 2.4em; max-width: 320px; }
.payment-cards img { margin: 0 auto; }

.certifications-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-800);
  margin: 2.2em 0 1.2em;
}

/* ---------- image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 1.8em 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-100);
}
.gallery figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.gallery-wide { max-width: 900px; }
.gallery.gallery-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.caption-note {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto 0.4em;
}

/* certifications grid: smaller squares */
.cert-gallery figure img { height: 320px; }

/* ---------- contatti ---------- */
.contact-block {
  text-align: center;
  padding: 20px 0 10px;
}
.contact-block .phone {
  display: inline-block;
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--green-800);
  border: 2px solid var(--green-700);
  border-radius: 40px;
  padding: 14px 34px;
  margin-top: 8px;
}
.contact-block .phone:hover { background: var(--green-700); color: #fff; }
.contact-block .label { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-950);
  color: var(--green-100);
  text-align: center;
  padding: 34px 20px;
  font-size: .9rem;
}
.site-footer a { color: #fff; }
.site-footer .foot-tagline { color: var(--green-500); margin-top: 4px; }

/* ---------- lightbox ---------- */
.gallery img { cursor: zoom-in; }
.gallery img:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 10, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 2000;
  padding: 20px;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
body.lightbox-locked { overflow: hidden; }

.lightbox-stage { max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; }
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.lightbox-caption { color: var(--green-100); margin: 14px 0 4px; font-size: .95rem; }
.lightbox-counter { color: var(--green-500); font-size: .8rem; letter-spacing: .06em; margin: 0; }

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--gold); }

.lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; z-index: 2010; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; z-index: 2010; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-img { max-height: 66vh; }
  .lightbox-caption { font-size: .85rem; }
}

/* ---------- responsive tweaks ---------- */
@media (max-width: 600px) {
  .site-header { padding: 72px 16px 32px; }
  .content-area { padding-top: 40px; padding-bottom: 48px; }
  .wrap { padding: 0 16px; }
  .gallery figure img { height: 220px; }
}
