/* ============================================================
   Elan Garden — Smart Experience
   Foglio di stile principale
   ============================================================ */

:root {
  /* Palette brand (calibrata sul volantino) */
  --verde-scuro: #11301f;
  --verde-scuro-2: #163a26;
  --verde-scuro-3: #0c241702;
  --lime: #97c93d;
  --lime-2: #86bb2e;
  --lime-chiaro: #b6dd5e;
  --bianco: #ffffff;
  --grigio-chiaro: #f4f6f4;
  --grigio: #e6ebe6;
  --testo: #1d2a22;
  --testo-soft: #56635b;
  --testo-chiaro: rgba(255, 255, 255, 0.82);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -20px rgba(17, 48, 31, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(17, 48, 31, 0.4);
  --maxw: 1160px;
  --gap: clamp(1rem, 2vw, 1.75rem);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ----------------------- Reset / base ----------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--testo);
  background: var(--bianco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}
.container-narrow { max-width: 820px; }

/* ----------------------- Bottoni ----------------------- */
.btn {
  --c: var(--verde-scuro);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--lime); color: var(--verde-scuro); box-shadow: 0 12px 26px -12px rgba(134, 187, 46, 0.85); }
.btn-primary:hover { background: var(--lime-chiaro); }

.btn-ghost { background: transparent; color: var(--bianco); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-whatsapp { background: #25d366; color: #053d1c; box-shadow: 0 12px 26px -12px rgba(37, 211, 102, 0.85); }
.btn-whatsapp:hover { background: #2ee874; }

.btn-pill { padding: 0.7rem 1.2rem; font-size: 0.92rem; }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 48, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding 0.25s ease, background 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.site-header.scrolled { background: rgba(13, 36, 23, 0.98); }
.site-header.scrolled .header-inner { min-height: 62px; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: none;
}
.brand-text strong span { color: var(--lime); font-weight: 700; }
.brand-text em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-top: 3px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav > a:not(.btn) {
  color: var(--testo-chiaro);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.18s ease;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--lime);
  transition: width 0.22s ease;
}
.nav > a:not(.btn):hover { color: #fff; }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { background: var(--lime); color: var(--verde-scuro); }
.nav-cta:hover { background: var(--lime-chiaro); transform: translateY(-1px); }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
}
.header-phone svg { color: var(--lime); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 24px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------- Hero ----------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(86vh, 760px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--verde-scuro);
  background-image:
    radial-gradient(70% 60% at 88% 14%, rgba(151, 201, 61, 0.18), transparent 60%),
    linear-gradient(101deg,
      rgba(17, 48, 31, 0.97) 0%,
      rgba(17, 48, 31, 0.95) 36%,
      rgba(17, 48, 31, 0.72) 54%,
      rgba(13, 40, 25, 0.30) 78%,
      rgba(11, 32, 20, 0.52) 100%),
    url("../assets/images/hero.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center right;
  background-repeat: no-repeat;
}
.hero-bg::after {
  /* trama leggera a puntini */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lime-chiaro);
  background: rgba(151, 201, 61, 0.12);
  border: 1px solid rgba(151, 201, 61, 0.3);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--lime); }
.hero-sub {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--testo-chiaro);
  max-width: 600px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.9rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.badge svg { width: 20px; height: 20px; color: var(--lime); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.3rem; }

/* ----------------------- Sezioni generiche ----------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--grigio-chiaro); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime-2);
  margin-bottom: 0.7rem;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.5px; }
.section-head-light .kicker { color: var(--lime-chiaro); }
.section-head-light h2 { color: #fff; }

/* ----------------------- Card soluzioni ----------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--grigio);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(151, 201, 61, 0.5); }
.card-featured { border-color: rgba(151, 201, 61, 0.55); position: relative; }
.card-featured::before {
  content: "Più richiesto";
  position: absolute;
  top: -12px; left: 1.7rem;
  background: var(--lime);
  color: var(--verde-scuro);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.card-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--verde-scuro), var(--verde-scuro-2));
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 30px; height: 30px; color: var(--lime); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card-lead { color: var(--testo-soft); margin-bottom: 1.2rem; }

.ticks { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.ticks li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.96rem; }
.ticks li svg {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  color: var(--lime-2);
  background: rgba(151, 201, 61, 0.15);
  border-radius: 50%;
  padding: 2px;
}
.ticks.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; }

.card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 600;
  color: var(--verde-scuro);
}
.card-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.card-link:hover { color: var(--lime-2); }
.card-link:hover svg { transform: translateX(4px); }

/* ----------------------- Feature (dettaglio servizi) ----------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}
.feature + .feature { border-top: 1px solid var(--grigio); }
.feature-reverse .feature-media { order: 2; }

.feature-media { position: relative; }
.feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.media-ph {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(110% 90% at 75% 10%, rgba(151, 201, 61, 0.28), transparent 55%),
    linear-gradient(155deg, #1a4029, #11301f);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-ph svg { width: 33%; height: 33%; color: rgba(182, 221, 94, 0.85); }
.media-ph::after {
  content: attr(data-label);
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime-2);
  background: rgba(151, 201, 61, 0.14);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.feature-body h3 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-bottom: 0.9rem; }
.feature-body p { color: var(--testo-soft); margin-bottom: 1rem; }
.feature-body .ticks { margin-block: 1.3rem 1.7rem; }

/* ----------------------- Vantaggi ----------------------- */
.vantaggi {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(151, 201, 61, 0.16), transparent 55%),
    linear-gradient(160deg, #163a26, #11301f);
  color: #fff;
}
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.22s ease, background 0.22s ease;
}
.value:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); }
.value-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(151, 201, 61, 0.16);
  margin-bottom: 1rem;
}
.value-icon svg { width: 28px; height: 28px; color: var(--lime-chiaro); }
.value h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.value p { color: var(--testo-chiaro); font-size: 0.95rem; }

/* ----------------------- Come funziona (steps) ----------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--grigio);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.step-num {
  position: absolute;
  top: -18px; left: 1.5rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--verde-scuro);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px -8px rgba(134, 187, 46, 0.9);
}
.step-ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grigio-chiaro);
  margin: 0.4rem 0 1rem;
}
.step-ic svg { width: 26px; height: 26px; color: var(--verde-scuro); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--testo-soft); font-size: 0.95rem; }

/* ----------------------- FAQ ----------------------- */
.faq { display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--grigio);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: rgba(151, 201, 61, 0.5); box-shadow: var(--shadow-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--lime-2);
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem 1.25rem; }
.faq-a p { color: var(--testo-soft); }

/* ----------------------- Banda CTA ----------------------- */
.cta-band {
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(151, 201, 61, 0.22), transparent 50%),
    linear-gradient(120deg, #163a26, #0e2819);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band p { color: var(--testo-chiaro); margin-top: 0.4rem; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ----------------------- Contatti ----------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.contact-card {
  background: #fff;
  border: 1px solid var(--grigio);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.contact-card:not(.contact-card-static):hover {
  transform: translateY(-5px);
  border-color: rgba(151, 201, 61, 0.55);
  box-shadow: var(--shadow);
}
.contact-ic {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--verde-scuro), var(--verde-scuro-2));
  margin-bottom: 1rem;
}
.contact-ic svg { width: 28px; height: 28px; color: var(--lime); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--testo-soft); }
.contact-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lime-2);
}

/* ----------------------- Footer ----------------------- */
.site-footer { background: #0b2014; color: var(--testo-chiaro); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p { margin-top: 1rem; max-width: 360px; font-size: 0.95rem; }
.brand-footer { margin-bottom: 0.3rem; }
.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col span { color: var(--testo-chiaro); font-size: 0.95rem; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ----------------------- WhatsApp flottante ----------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 90;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #053d1c;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.8);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ----------------------- Animazioni reveal ----------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------- Responsive ----------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .card-featured { order: -1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 70px; }

  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.2rem 1.4rem;
    background: rgba(13, 36, 23, 0.99);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform 0.32s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) {
    padding: 0.95rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 1.05rem;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; justify-content: center; padding: 0.9rem; }
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .ticks.two-col { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .value-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .brand-text strong { font-size: 1.18rem; }
}

/* ----------------------- Accessibilità ----------------------- */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Banner cookie
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: clamp(0.8rem, 3vw, 1.5rem);
  right: clamp(0.8rem, 3vw, 1.5rem);
  bottom: clamp(0.8rem, 3vw, 1.5rem);
  z-index: 120;
  background: var(--verde-scuro);
  color: var(--testo-chiaro);
  border: 1px solid rgba(151, 201, 61, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
  padding: 1.1rem clamp(1.1rem, 3vw, 1.6rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 980px;
  margin-inline: auto;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
/* Evita sovrapposizione col pulsante WhatsApp flottante mentre il banner è visibile */
body:has(.cookie-banner.is-visible) .wa-float { opacity: 0; pointer-events: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-text { font-size: 0.92rem; line-height: 1.55; flex: 1 1 360px; margin: 0; }
.cookie-text a { color: var(--lime-chiaro); text-decoration: underline; }
.cookie-text strong { color: #fff; }
.cookie-banner .cookie-ok { flex: none; }
@media (max-width: 560px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner .cookie-ok { justify-content: center; }
}

/* ============================================================
   Sottopagine: hero compatto + breadcrumb
   ============================================================ */
.subhero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.6rem, 7vw, 4.5rem);
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 120% at 90% 0%, rgba(151, 201, 61, 0.18), transparent 55%),
    linear-gradient(150deg, #163a26, #0c2417);
}
.subhero .pill { margin-bottom: 0.9rem; }
.subhero h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.5px; }
.subhero p { color: var(--testo-chiaro); max-width: 640px; margin-top: 0.9rem; font-size: 1.08rem; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(255, 255, 255, 0.35); }
.breadcrumb a { color: var(--lime-chiaro); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   Contenuto editoriale (pagine legali e tematiche)
   ============================================================ */
.prose { max-width: 820px; }
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  color: var(--verde-scuro);
}
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: 0.5rem; color: var(--verde-scuro); }
.prose p, .prose li { color: var(--testo); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; list-style: revert; }
.prose a { color: var(--lime-2); text-decoration: underline; }
.prose strong { color: var(--verde-scuro); }
.prose .lead { font-size: 1.12rem; color: var(--testo-soft); }
.prose hr { border: none; border-top: 1px solid var(--grigio); margin: 2.2rem 0; }
.prose .updated { font-size: 0.88rem; color: var(--testo-soft); margin-bottom: 1.5rem; }
.prose .placeholder {
  background: #fff7e0;
  border: 1px dashed #e0b500;
  border-radius: 6px;
  padding: 0 0.35rem;
  font-weight: 600;
  color: #8a6d00;
}
.prose .callout {
  background: var(--grigio-chiaro);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--grigio); }
.prose th { color: var(--verde-scuro); }

/* Indice/sommario laterale opzionale per pagine tematiche */
.service-cta-band {
  margin-top: 2.5rem;
  background: var(--grigio-chiaro);
  border: 1px solid var(--grigio);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.service-cta-band h2 { margin: 0; color: var(--verde-scuro); font-size: 1.3rem; }
.service-cta-band p { margin: 0.3rem 0 0; color: var(--testo-soft); }

/* Griglia di richiami ai servizi correlati */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 1.5rem; }
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--grigio);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); border-color: rgba(151, 201, 61, 0.5); }
.related-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--verde-scuro); }
.related-card p { font-size: 0.92rem; color: var(--testo-soft); }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* Linea legale nel footer */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}
.footer-legal a:hover { color: var(--lime); }
