/* =======================================================
   Taglio Verde - Scandinavian Clean UI
   Professional, functional, fresh, airy, natural-inspired
   ======================================================= */

/* RESET & BASELINE NORMALIZATION */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F5;
  color: #1C2321;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #225E37; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #498056; }
ul, ol { padding-left: 1.2em; }
ul { list-style: disc; }
ol { list-style: decimal; }

/* FONT SCALE & HEADINGS */
h1, .h1 { font-family: 'Montserrat', Arial, sans-serif; font-size: 2.5rem; font-weight: 700; color: #225E37; line-height: 1.22; margin-bottom: 24px; }
h2, .h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 2rem; font-weight: 600; color: #225E37; line-height: 1.24; margin-bottom: 20px; }
h3, .h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.25rem; font-weight: 500; color: #1C2321; margin-bottom: 16px; }
h4, .h4 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; font-weight: 500; color: #225E37; margin-bottom: 10px; }
p { margin-bottom: 20px; line-height: 1.7; }

/* UTILITIES & PATTERN CLASSES */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,94,55,0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  max-width: 640px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(34,94,55,0.07);
  padding: 28px 22px;
  flex: 1 1 264px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(34,94,55,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(34,94,55,0.05);
  margin-bottom: 20px;
  color: #1C2321;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS & CTA */
.cta-button {
  display: inline-block;
  background: #225E37;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 14px 32px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px 0 rgba(34,94,55,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
}
.cta-button:hover, .cta-button:focus {
  background: #498056;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px 0 rgba(34,94,55,0.18);
}
button, .button {
  font-family: inherit;
  border: none;
  background: #86C477;
  color: #1C2321;
  border-radius: 28px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 6px 12px 6px 0;
}
.button:hover, button:hover, button:focus {
  background: #64b15c;
  box-shadow: 0 2px 9px 0 rgba(34,94,55,0.12);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(34,94,55,0.04);
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #225E37;
  font-weight: 500;
  padding: 5px 2px;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F5F5;
  color: #498056;
}
header .cta-button { margin-left: 16px; }

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #225E37;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.13s;
  z-index: 700;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E4F2E4;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 24px 0 rgba(34,94,55,0.20);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.23,.97,.44,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 20px 28px;
  gap: 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #225E37;
  margin-bottom: 16px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #498056; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 18px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #225E37;
  padding: 11px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #E4F2E4; color: #498056; }

/* HERO SECTIONS & SEPARATORS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,94,55,0.07);
}
section:not(:first-child) { margin-top: 0; }
section > .container > .content-wrapper > h1, section > .container > .content-wrapper > h2 {
  margin-bottom: 0.6em;
}

/* LISTS: FEATURE, PROCESS, SERVICES */
ul, ol {
  margin-bottom: 20px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #225E37;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
}

/* TABLES: PRICING */
table {
  width: 100%;
  border-collapse: collapse;
  background: #F5F5F5;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(34,94,55,0.06);
  font-size: 1rem;
}
thead {
  background: #E4F2E4;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #225E37;
  text-align: left;
  padding: 12px 14px;
}
tbody td {
  color: #223822;
  padding: 13px 14px;
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid #d5dfd6;
}

/* CASE STUDY / BLOG TEASER */
.case-study, .blog-teaser {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 8px 0 rgba(34,94,55,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.case-study:hover, .blog-teaser:hover {
  box-shadow: 0 2px 20px 0 rgba(34,94,55,0.14);
}

/* FOOTER */
footer {
  margin-top: 80px;
  background: #fff;
  border-top: 1px solid #E4F2E4;
  padding: 48px 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 48px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex: 1 1 200px;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex: 2 1 300px;
  flex-wrap: wrap;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  color: #225E37;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-links a:hover, .footer-links a:focus { color: #498056; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.97rem;
  color: #35594B;
}
.footer-contact img { width: 1.17em; height: 1.17em; }
.footer-contact a { color: #225E37; transition: color 0.13s; }
.footer-contact a:hover { color: #498056; }
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 8px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  background: #E4F2E4;
  border-radius: 50%;
  padding: 4px;
  transition: box-shadow 0.12s;
  box-shadow: none;
}
.footer-social a:hover img, .footer-social a:focus img {
  box-shadow: 0 2px 8px 0 rgba(34,94,55,0.11);
}
.legal-notice {
  width: 100%;
  text-align: center;
  color: #98A6A0;
  font-size: 0.95rem;
  padding: 24px 0 8px 0;
  margin-top: 20px;
  border-top: 1px solid #E4F2E4;
}

/* TESTIMONIAL CARD VARIANT: ENSURE CONTRAST */
.testimonial-card {
  background: #F5F5F5;
  color: #1C2321;
  border-left: 5px solid #86C477;
  box-shadow: 0 1px 6px 0 rgba(34,94,55,0.05);
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #262f28;
  margin-bottom: 7px;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-weight: 500;
  color: #225E37;
  font-size: 0.98rem;
  margin-left: 8px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 2px solid #E4F2E4;
  box-shadow: 0 -2px 16px 0 rgba(34,94,55,0.11);
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  font-size: 1rem;
  animation: cookieBannerAppear 0.65s cubic-bezier(.23,.97,.44,.99);
}
@keyframes cookieBannerAppear {
  from { opacity: 0; transform: translateY(44px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p { flex: 2 1 240px; color: #225E37; }
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  min-width: 112px;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 23px;
  box-shadow: 0 1px 5px 0 rgba(34,94,55,0.09);
  transition: background 0.12s, box-shadow 0.11s;
}
.cookie-consent-banner .accept-all {
  background: #225E37;
  color: #fff;
  font-weight: 600;
}
.cookie-consent-banner .accept-all:hover, .cookie-consent-banner .accept-all:focus {
  background: #498056;
}
.cookie-consent-banner .reject-all {
  background: #fff;
  color: #225E37;
  border: 1px solid #86C477;
}
.cookie-consent-banner .reject-all:hover, .cookie-consent-banner .reject-all:focus {
  background: #E4F2E4;
}
.cookie-consent-banner .cookie-settings {
  background: #86C477;
  color: #1C2321;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: #a8e09c;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,94,55,0.16);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.24s cubic-bezier(.23,.97,.44,.99);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(34,94,55,0.16);
  border-radius: 18px;
  padding: 38px 32px 32px 32px;
  min-width: 310px;
  max-width: 95vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideInModal 0.38s cubic-bezier(.23,.97,.44,.99);
}
@keyframes slideInModal {
  from { opacity:0; transform: translateY(44px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #225E37;
  font-size: 1.3rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #86C477;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { color: #225E37; }
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1.07rem;
  font-weight: 500;
  color: #225E37;
  margin-right: 6px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #86C477;
  width: 19px; height: 19px;
  margin-left: 6px;
}
.cookie-category .essential {
  opacity: 0.7;
  font-style: italic;
}
.cookie-modal .cookie-save {
  background: #225E37;
  color: #fff;
  border-radius: 25px;
  padding: 11px 32px;
  font-weight: 700;
  margin-top: 20px;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: #498056;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 880px) {
  .footer-links, .container, .footer-contact { flex-direction: column; gap: 8px; }
  footer .container { gap: 16px; }
  .footer-brand, .footer-contact { align-items: flex-start; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  section {
    padding: 24px 7px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .content-wrapper, .text-section {
    padding: 0;
    gap: 11px;
    margin-bottom: 18px;
  }
  .card-container, .content-grid {
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 16px 10px;
    border-radius: 9px;
    margin-bottom: 13px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .case-study, .blog-teaser {
    padding: 14px 10px;
    margin-bottom: 12px;
  }
  .footer-links, .footer-contact, .footer-brand, .footer-social {
    align-items: flex-start;
    gap: 7px;
  }
  footer .container {
    padding-bottom: 18px;
  }
  .section { padding: 20px 7px; }
  .text-image-section { flex-direction: column; gap: 14px; }
}
@media (max-width: 500px) {
  table, thead, tbody, tr, th, td { font-size: 0.95rem; }
  .cookie-modal { width: 98vw; padding: 20px 8px 12px 8px; }
}

/* MICRO-INTERACTIONS, ACCESSIBILITY */
a, button, .cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-consent-banner button, .cookie-modal .close-modal { outline: none; }
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px #86C47766;
}

/* Miscellaneous / Brand Specific Tuning */
::-webkit-input-placeholder { color: #B1D4BE; }
::-moz-placeholder { color: #B1D4BE; }
:-ms-input-placeholder { color: #B1D4BE; }
input::placeholder, textarea::placeholder { color: #B1D4BE; }

/* Hide scroll on modal open */
body.menu-open, body.modal-open { overflow: hidden; }

/* ===============================
   END Taglio Verde - Scandinavian Clean UI
   =============================== */
