/* ===================== VARIABILI & RESET ===================== */
:root {
  --green: #439674;
  --green-dark: #35785d;
  --green-soft: #eaf3ef;
  --ink: #1f1d1a;
  --ink-soft: #4a463f;
  --muted: #79736a;
  --cream: #f7f3ec;
  --sand: #efe7d9;
  --wood: #b98a5e;
  --white: #ffffff;
  --line: #e4dccf;
  --shadow: 0 18px 40px -20px rgba(40, 34, 24, .35);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .6rem;
}

/* ===================== BOTTONI ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .9rem 1.6rem;
  border-radius: 40px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-whatsapp { background: #25d366; color: #08331c; }
.btn-whatsapp:hover { background: #1eb958; transform: translateY(-2px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 10px 0;
}
.site-header.scrolled {
  background: rgba(247, 243, 236, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px -14px rgba(0,0,0,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 116px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 62px; }
/* logo bianco quando header trasparente sopra hero */
.hero-open .brand-logo { filter: brightness(0) invert(1); }
.site-header.scrolled .brand-logo { filter: none; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
  transition: color .2s ease;
}
.nav a:hover { color: var(--green); }
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a:hover { color: var(--green); }
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 28px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: .3s;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,18,15,.82) 0%, rgba(20,18,15,.55) 45%, rgba(20,18,15,.25) 100%);
}
.hero-content { position: relative; max-width: 640px; padding-top: 80px; padding-bottom: 80px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .75rem; color: #d8ccb8; margin-bottom: 1.1rem; font-weight: 500; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.2rem; color: #fff; }
.hero-sub { font-size: 1.28rem; line-height: 1.6; font-weight: 400; max-width: 580px; color: #f5f1e8; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; font-size: 1.9rem;
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity .4s ease;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-scroll.is-hidden { opacity: 0 !important; }
.hero-scroll .chevron { display: block; line-height: 1; opacity: 1; }
.hero-scroll .chevron:nth-child(2) { opacity: .55; margin-top: -18px; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ===================== PUNTI DI FORZA ===================== */
.strengths { background: var(--white); padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.strength { text-align: center; padding: 1rem; }
.strength-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
  font-size: 1.5rem;
}
.strength h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.strength p { font-size: .92rem; color: var(--muted); }

/* ===================== SECTION HEAD ===================== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .8rem; }
.section-lead { color: var(--muted); font-size: 1.02rem; }

/* ===================== CHI SIAMO ===================== */
.about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media img {
  width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); filter: saturate(1.03) contrast(1.02);
}
.about-text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: .4rem 0 1.2rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-text .btn { margin-top: .6rem; }

/* ===================== CATEGORIE ===================== */
.categories { padding: 6rem 0; background: var(--sand); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 300px; box-shadow: var(--shadow); cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: brightness(.82) saturate(1.05); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,13,10,.72) 0%, rgba(15,13,10,.05) 60%); }
.cat-card .cat-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem 1.5rem; color: #fff;
}
.cat-card .cat-caption h3 { font-size: 1.8rem; color: #fff; margin-bottom: .15rem; }
.cat-card .cat-caption span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-soft); }

/* ===================== GALLERY ===================== */
.works { padding: 6rem 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.filter-btn {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; padding: .55rem 1.2rem; border-radius: 30px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--green-dark); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 10px; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--sand);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: rgba(45,110,88,.0); opacity: 0; transition: .3s;
}
.gallery-item:hover::after { background: rgba(53,120,93,.38); opacity: 1; }
.gallery-item.hide { display: none; }
.gallery-more-wrap { text-align: center; margin-top: 2.4rem; }

/* ===================== CONTATTI ===================== */
.contact { padding: 6rem 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; }
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin: .4rem 0 .8rem; }
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 160px; }
.form-feedback { margin-top: 1rem; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-feedback.ok { color: var(--green-dark); }
.form-feedback.err { color: #c0392b; }
.privacy-note { margin-top: .9rem; font-size: .75rem; color: var(--muted); }

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-list { list-style: none; display: grid; gap: 1.1rem; }
.info-list li { display: flex; flex-direction: column; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); font-weight: 600; margin-bottom: .2rem; }
.info-list a:hover { color: var(--green); }
.hours-live { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .82rem; font-weight: 500; color: var(--green-dark); }
.hours-live:hover { color: var(--green); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6);} 70% { box-shadow: 0 0 0 8px rgba(46,204,113,0);} 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0);} }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ===================== FOOTER ===================== */
.site-footer { background: #1c1a17; color: #cfc8bd; padding: 3.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { height: 74px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; color: #a49c8f; }
.footer-col h4 { color: #fff; font-size: 1.15rem; margin-bottom: .9rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: #b7afa3; margin-bottom: .45rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom span { font-size: .78rem; color: #877f73; }

/* ===================== FLOATING WHATSAPP ===================== */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4); transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12,10,8,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 26px; width: 46px; height: 46px; font-size: 1.8rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.4rem; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .strengths-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-media img { height: 360px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: var(--cream); padding: 2rem; transform: translateX(100%);
    transition: transform .35s ease; box-shadow: -12px 0 40px -20px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--ink) !important; font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-cta { background: var(--green); padding: .7rem 1.4rem; border-radius: 30px; }
  .brand-logo { height: 80px; }
  .site-header.scrolled .brand-logo { height: 52px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-content { padding-top: 110px; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .form-actions .btn { min-width: 100%; }
}
