/* ============================================================
   SERPE VERDE - Giardinaggio - Stintino (SS)
   Tema base + 3 direzioni grafiche (data-theme)
   ============================================================ */

/* ---------- DIREZIONE 1 · BOSCO (default) ---------- */
:root,
[data-theme="bosco"] {
  --bg:        #f4efe2;
  --surface:   #fbf8f0;
  --surface-2: #efe8d6;
  --text:      #1e3a2c;
  --head:      #172e23;
  --muted:     #586a5e;
  --accent:    #2f5640;
  --accent-2:  #7d9466;
  --gold:      #a9854e;
  --on-accent: #f4efe2;
  --line:      rgba(30,58,44,.16);
  --hero-1:    rgba(20,40,30,.18);
  --hero-2:    rgba(16,32,24,.82);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: .002em;
  --radius: 14px;
  --maxw: 1120px;
}

/* ---------- DIREZIONE 2 · TERRA ---------- */
[data-theme="terra"] {
  --bg:        #f5ede0;
  --surface:   #fbf6ec;
  --surface-2: #efe2cf;
  --text:      #33402d;
  --head:      #2b3826;
  --muted:     #6e6151;
  --accent:    #b65f3f;
  --accent-2:  #6f8155;
  --gold:      #c0894f;
  --on-accent: #fbf6ec;
  --line:      rgba(51,64,45,.16);
  --hero-1:    rgba(60,40,28,.16);
  --hero-2:    rgba(40,28,20,.80);
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --head-weight: 400;
  --head-spacing: .01em;
}

/* ---------- DIREZIONE 3 · VERDE MARE ---------- */
[data-theme="mare"] {
  --bg:        #f7faf8;
  --surface:   #ffffff;
  --surface-2: #eaf2ee;
  --text:      #19302b;
  --head:      #12251f;
  --muted:     #51655f;
  --accent:    #2a8783;
  --accent-2:  #3f8b53;
  --gold:      #2a8783;
  --on-accent: #f7faf8;
  --line:      rgba(25,48,43,.14);
  --hero-1:    rgba(15,40,40,.14);
  --hero-2:    rgba(10,30,28,.80);
  --font-head: "Spectral", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: 0em;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.12;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
}

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 16px 0 14px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ============================================================
   STYLE SWITCHER (strumento di anteprima)
   ============================================================ */
.switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(20,40,30,.16);
}
.switcher .sw-label {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5b6b5f;
  margin-right: 2px;
}
.switcher button {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 0;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  color: #3a4a40;
  transition: background .2s, color .2s;
}
.switcher button.active { background: var(--accent); color: var(--on-accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: auto; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt b {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.18rem;
  color: var(--head);
  letter-spacing: .02em;
}
.brand .bt span {
  font-size: .56rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-top: 3px;
}
.header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .82rem;
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  white-space: nowrap;
}
.header-cta svg { width: 15px; height: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--hero-1) 0%, transparent 32%, var(--hero-2) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 22px 56px; max-width: var(--maxw); margin: 0 auto; }
.hero-logo { width: 92px; margin-bottom: 22px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 12vw, 5.2rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero h1 em { font-style: italic; color: #e9e0c8; }
.hero .lead {
  color: rgba(255,255,255,.92);
  font-size: 1.12rem;
  max-width: 30ch;
  margin: 0 0 28px;
  text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tag::before { content:""; width: 28px; height: 1px; background: rgba(255,255,255,.6); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(20,40,30,.28); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-dark { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--surface); }
.about-grid { display: grid; gap: 34px; }
.about-figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-figure img { width: 100%; height: 340px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 12px; padding: 12px 16px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.about-badge b { font-family: var(--font-head); font-size: 1.7rem; display: block; line-height: 1; }
.about-badge span { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.about-body h2 { font-size: clamp(2rem, 7vw, 2.9rem); margin-bottom: 18px; }
.about-body p { color: var(--text); margin: 0 0 16px; }
.about-body .sign {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.about-body .sign b { font-family: var(--font-head); font-size: 1.3rem; color: var(--head); }
.about-body .sign span { display: block; color: var(--muted); font-size: .82rem; letter-spacing: .04em; }

/* ============================================================
   SERVIZI
   ============================================================ */
.services { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,40,30,.12); }
.svc-img { position: relative; height: 190px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-num {
  position: absolute; top: 12px; left: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; color: var(--head);
  border: 1px solid var(--line);
}
.svc-text { padding: 22px 22px 26px; }
.svc-text h3 { font-size: 1.5rem; margin-bottom: 9px; }
.svc-text p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============================================================
   GALLERIA
   ============================================================ */
.gallery { background: var(--surface); }
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal-grid figure { margin: 0; border-radius: 10px; overflow: hidden; position: relative; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-grid figure:hover img { transform: scale(1.06); }
.gal-grid .tall { grid-row: span 2; }
.gal-grid figure img { min-height: 150px; }
.gal-grid .tall img { height: 100%; }

/* ============================================================
   PERCHÉ NOI
   ============================================================ */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.why-item { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.why-ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.why-ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 5px; }
.why-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ============================================================
   CONTATTI / CTA
   ============================================================ */
.contact { position: relative; color: #fff; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,24,.78), rgba(16,32,24,.92)); }
.contact .wrap { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 76px; }
.contact h2 { color: #fff; font-size: clamp(2.1rem, 8vw, 3.2rem); margin-bottom: 14px; }
.contact .lead { color: rgba(255,255,255,.85); max-width: 46ch; margin: 0 0 34px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.c-action {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  transition: background .2s;
}
.c-action:hover { background: rgba(255,255,255,.16); }
.c-action .ci { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.c-action .ci svg { width: 21px; height: 21px; color: var(--on-accent); }
.c-action .cv { display: flex; flex-direction: column; line-height: 1.3; }
.c-action .cv span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.c-action .cv b { font-size: 1.06rem; font-weight: 700; }
.placeholder-pill {
  display: inline-block; margin-top: 6px;
  font-size: .7rem; letter-spacing: .04em; color: #ffd9a8;
  background: rgba(255,170,80,.14); border: 1px dashed rgba(255,190,110,.5);
  padding: 2px 8px; border-radius: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--head); color: rgba(255,255,255,.7); padding: 48px 0 120px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 46px; }
.footer-brand b { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.footer-brand span { display: block; font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 22px; font-size: .92rem; }
.footer-cols h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.footer-cols a, .footer-cols p { display: block; color: rgba(255,255,255,.7); margin: 0 0 7px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 6px; }

/* ============================================================
   STICKY MOBILE ACTION BAR
   ============================================================ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(20,40,30,.12);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 8px; font-weight: 700; font-size: .92rem;
  background: var(--surface); color: var(--head);
}
.mobile-bar a.wa { background: var(--accent); color: var(--on-accent); }
.mobile-bar a svg { width: 18px; height: 18px; }

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

/* ============================================================
   RESPONSIVE - TABLET / DESKTOP
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .section { padding: 96px 0; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-figure img { height: 460px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 56px; }
  .contact-actions { max-width: 520px; }
}
@media (min-width: 1000px) {
  .hero h1 { font-size: 5.6rem; }
  .hero .lead { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
