:root {
  --ink: #16201b;
  --muted: #5d6862;
  --paper: #f4f5f1;
  --white: #ffffff;
  --green: #1f5b43;
  --green-dark: #123f2d;
  --lime: #bdd632;
  --line: #dfe3dc;
  --shadow: 0 18px 50px rgba(19, 43, 32, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.4vw, 3.05rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 30px;
  padding: 7px max(20px, calc((100vw - 1180px) / 2)) 6px calc(max(20px, calc((100vw - 1180px) / 2)) + 315px);
  color: rgba(220, 233, 225, 0.82);
  background: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: right;
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 220, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.category-nav {
  border-bottom: 1px solid rgba(223, 227, 220, 0.9);
  background: var(--green-dark);
}

.category-toggle {
  display: none;
}

.category-links {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-links a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #dce9e1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.category-links a:hover,
.category-links a[aria-current="page"] {
  background: var(--lime);
  color: var(--green-dark);
}

.nav {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 250px;
  height: auto;
  max-width: calc(100vw - 128px);
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: -34px;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--green-dark);
  box-shadow: 0 12px 30px rgba(18, 63, 45, 0.18);
}

.brand::after {
  content: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-product-links {
  display: none;
}

.nav-links a:not(.button):hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: #15200f;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(97, 118, 20, 0.22);
}

.button-dark {
  background: var(--green-dark);
  color: var(--white);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--lime);
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 42px;
  background:
    radial-gradient(circle at 88% 10%, rgba(189, 214, 50, 0.2), transparent 30%),
    linear-gradient(135deg, #eef2e9 0%, #ffffff 65%);
}

.hero-grid,
.split {
  display: grid;
  align-items: center;
  gap: 44px;
  grid-template-columns: 1.12fr 0.88fr;
}

.hero-copy p {
  max-width: 660px;
  font-size: 1.13rem;
}

.actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 36px 8px 36px 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.hero-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 35, 25, 0.72));
  content: "";
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--white);
}

.hero-note strong {
  display: block;
  font-size: 1.45rem;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.08rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 66px 0;
}

.section-soft {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--green-dark);
}

.section-dark .eyebrow {
  color: #f2ffd5;
}

.section-dark .eyebrow::before {
  background: #c8e129;
}

.section-dark p {
  color: #c9d7cf;
}

.section-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading p {
  max-width: 470px;
  margin-bottom: 6px;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-image {
  height: 215px;
  overflow: hidden;
  background: #e8ebe4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-image img {
  transform: scale(1.035);
}

.card-body {
  padding: 22px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-card .card-image {
  height: 205px;
}

.portfolio-card .card-image img {
  object-position: center;
}

.notice {
  padding: 22px 24px;
  border-left: 4px solid var(--lime);
  border-radius: 0 14px 14px 0;
  background: var(--paper);
}

.notice p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.faq-list summary {
  padding: 16px 44px 16px 18px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 16px;
}

.product-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-table th,
.product-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.product-table th {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-table tr:last-child td {
  border-bottom: 0;
}

.product-table td:first-child {
  color: var(--green-dark);
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

.feature {
  padding: 22px;
  border-top: 3px solid var(--lime);
  background: rgba(255, 255, 255, 0.07);
}

.feature p {
  margin-bottom: 0;
}

.image-frame {
  overflow: hidden;
  border-radius: 10px 34px 10px 34px;
  background: var(--paper);
}

.image-frame img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.25em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-dark);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.stats {
  display: grid;
  margin-top: 26px;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
}

.process {
  counter-reset: steps;
}

.process-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.process-card::before {
  display: block;
  margin-bottom: 24px;
  color: var(--lime);
  counter-increment: steps;
  content: "0" counter(steps);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.page-hero {
  padding: 54px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(189, 214, 50, 0.18), transparent 28%),
    var(--green-dark);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  color: #c9d7cf;
  font-size: 1.08rem;
}

.product-hero {
  padding: 46px 0;
}

.product-visual {
  min-height: 360px;
  padding: 24px;
  border-radius: 34px 8px 34px 8px;
  background: var(--paper);
}

.product-visual img {
  width: 100%;
  height: 315px;
  object-fit: contain;
}

.spec-grid {
  display: grid;
  margin-top: 20px;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.spec {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.spec strong {
  display: block;
  font-size: 0.88rem;
}

.spec span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 34px;
  color: var(--white);
  background: var(--green);
}

.cta::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 250px;
  height: 250px;
  border: 55px solid rgba(189, 214, 50, 0.16);
  border-radius: 50%;
  content: "";
}

.cta h2,
.cta p,
.cta .actions {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.cta p {
  color: #deebe3;
}

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-panel {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item small {
  display: block;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  margin-top: 5px;
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 91, 67, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
}

.form-status {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status[data-state="pending"] {
  color: var(--green);
}

.form-status[data-state="sent"] {
  color: var(--green-dark);
}

.form-status[data-state="error"] {
  color: #a13722;
}

.captcha-challenge {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbef;
}

.captcha-challenge label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.captcha-challenge span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.captcha-challenge img {
  border-radius: 8px;
  background: var(--white);
}

.site-footer {
  padding: 52px 0 24px;
  color: var(--white);
  background: #0b2d20;
}

.footer-grid {
  display: grid;
  margin-bottom: 36px;
  gap: 50px;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
}

.footer-logo {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 68px;
  height: 64px;
  object-fit: contain;
}

.footer-logo strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 0.95;
}

.footer-brand p,
.footer-links a,
.footer-contact {
  color: #b8c9bf;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  justify-content: space-between;
  gap: 20px;
  color: #849c8f;
  font-size: 0.78rem;
}

.agenzzia-signature {
  color: #ff7a00;
  font-weight: 800;
}

.agenzzia-signature:hover {
  color: #ff9d42;
  text-decoration: underline;
}

.whatsapp {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-width: 218px;
  min-height: 66px;
  padding: 12px 20px 12px 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 5px solid var(--white);
  border-radius: 999px;
  background: #0b7a3b;
  color: var(--white);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.38);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.05;
  animation: whatsapp-pulse 1.9s ease-in-out infinite;
}

.whatsapp::after {
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(11, 122, 59, 0.45);
  border-radius: inherit;
  content: "";
  animation: whatsapp-ring 1.9s ease-out infinite;
  pointer-events: none;
}

.whatsapp:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32), 0 0 0 8px rgba(11, 122, 59, 0.18);
}

.whatsapp-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.35rem;
}

.whatsapp-logo {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-text {
  max-width: 126px;
  text-align: left;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.045);
  }
}

@keyframes whatsapp-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.94);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 98px;
    right: 0;
    left: 0;
    display: none;
    padding: 26px 20px;
    align-items: stretch;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .category-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .contact-grid {
    gap: 45px;
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    display: none;
  }

  .nav-links {
    position: static;
    flex: 0 0 100%;
    order: 3;
    margin-top: 8px;
    padding: 22px 20px 24px;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  .nav {
    min-height: 124px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    width: 58px;
    height: 58px;
    padding: 14px;
  }

  .category-nav .container {
    width: 100%;
  }

  .category-nav {
    display: none;
  }

  .category-toggle {
    display: none;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 0;
    color: #dce9e1;
    background: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .category-toggle::after {
    content: "+";
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
    line-height: 1;
  }

  .category-nav.is-open .category-toggle::after {
    content: "-";
  }

  .category-links {
    display: none;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 14px 12px;
    overflow: visible;
  }

  .category-links a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .category-nav.is-open .category-links,
  .mobile-menu-open .category-links {
    display: grid;
  }

  .mobile-product-links {
    display: grid;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--line);
  }

  .mobile-product-links span {
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-product-links a {
    width: 100%;
    padding: 10px 0;
    color: var(--ink);
    font-size: 1rem;
  }

  .brand img {
    width: 230px;
    max-width: calc(100vw - 118px);
    height: auto;
  }

  .brand {
    margin-top: 0;
    padding: 8px 12px;
    border-radius: 0 0 10px 10px;
    background: var(--green-dark);
    box-shadow: 0 10px 26px rgba(18, 63, 45, 0.18);
  }

  .hero,
  .page-hero,
  .product-hero {
    padding: 46px 0;
  }

  .section {
    padding: 56px 0;
  }

  .hero-card,
  .hero-card img {
    min-height: 330px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .stats,
  .spec-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .cta {
    padding: 34px 24px;
  }

  .whatsapp {
    right: 16px;
    bottom: 18px;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border-width: 4px;
    overflow: visible;
  }

  .whatsapp-icon {
    width: 42px;
    height: 42px;
  }

  .whatsapp-logo {
    width: 29px;
    height: 29px;
  }

  .whatsapp-text {
    display: none !important;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .product-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
