/* ============================
   CSS RESET & NORMALIZE
============================ */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #F3F7F0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F3F7F0;
  color: #22323E;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #216A3D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0f3f23;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  padding-left: 0;
}
section, main, article, aside, footer, header, nav {
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  border: none;
  background: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ============================
   BRAND VARIABLES & FONTS
============================ */
:root {
  --primary: #216A3D;
  --secondary: #96C355;
  --accent: #F3F7F0;
  --neutral-dark: #22323E;
  --neutral-light: #f6f8fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-500: #99a7b6;
  --gray-700: #495867;
  --shadow: 0 4px 16px rgba(40,60,90,0.08);
  --card-radius: 12px;
  --transition: 0.25s cubic-bezier(.57,.25,.69,1.27);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22323E;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}
p, ul, ol {
  font-size: 1rem;
  color: #495867;
  margin-bottom: 1em;
}
strong, b {
  font-weight: 600;
  color: #22323E;
}

/* ======================
    GLOBAL STRUCTURE
====================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main {
  padding-bottom: 96px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  main {
    padding-bottom: 32px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 10px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/*
==============================
    HEADER & NAVIGATION
==============================
*/
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
}
.main-nav > a img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #22323E;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
  background: var(--gray-100);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 32px;
  border-radius: 99px;
  border: none;
  box-shadow: 0 2px 8px rgba(33,106,61,0.06);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #17482a;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 99px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  box-shadow: 0 2px 6px rgba(33,106,61,0.04);
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 1024px) {
  .main-nav {
    padding: 0 8px;
  }
  .nav-links {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.2rem;
  color: #216A3D;
  border: none;
  border-radius: 7px;
  margin-left: auto;
  z-index: 41;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(34,50,62,0.84);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,.01,.53,1) 0s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  margin: 18px 18px 0 0;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 102;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #173e1f;
}
.mobile-nav {
  background: #fff;
  width: 87vw;
  max-width: 360px;
  min-height: 100vh;
  padding: 40px 30px 30px 30px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
  align-items: flex-start;
  position: relative;
}
.mobile-nav a {
  color: #216A3D;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 0;
  border-radius: 5px;
  width: 100%;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-100);
}
@media (min-width: 901px) {
  .mobile-menu { display: none; }
  .mobile-menu-toggle { display: none; }
}

/* ============================
   HERO SECTION
============================ */
.hero {
  background: var(--accent);
  padding: 56px 0 60px 0;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
}
.hero .content-wrapper {
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 1.15;
}
.hero p {
  color: #495867;
  font-size: 1.15rem;
}
.hero .btn-primary {
  margin-top: 24px;
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 34px 0;
  }
  .hero .content-wrapper {
    gap: 14px;
    text-align: left;
    align-items: flex-start;
  }
}

/* ============================
   FEATURES SECTION
============================ */
.features {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.features .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 14px;
  list-style: none;
  justify-content: flex-start;
}
.features .content-wrapper > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 245px;
  min-width: 245px;
  background: var(--accent);
  border-radius: var(--card-radius);
  padding: 24px 18px 20px 18px;
  box-shadow: 0 1px 8px rgba(33,106,61,0.07);
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features .content-wrapper > ul > li:hover {
  box-shadow: 0 6px 20px rgba(33,106,61,0.15);
  transform: translateY(-4px) scale(1.01);
}
.features .content-wrapper > ul > li img {
  width: 44px; height: 44px;
}
.features .content-wrapper > ul > li h3 {
  font-size: 1.16rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.features .content-wrapper > ul > li p, .features .content-wrapper > ul > li b {
  color: #495867;
}
@media (max-width: 900px) {
  .features .content-wrapper > ul {
    gap: 18px;
  }
  .features .content-wrapper > ul > li {
    flex: 1 1 150px;
    min-width: 150px;
  }
}
@media (max-width: 768px) {
  .features .content-wrapper > ul {
    flex-direction: column;
    gap: 20px;
  }
  .features .content-wrapper > ul > li {
    min-width: unset;
    width: 100%;
    padding: 20px 12px;
  }
}

/* =========================
   SERVICES LIST & CARDS
========================= */
.services, .services-list {
  background: #f9fafb;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.services .content-wrapper > ul, .services-list .content-wrapper > ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.services .content-wrapper > ul > li,
.services-list .content-wrapper > ul > li {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 1.5px 10px rgba(34,50,62,0.05);
  padding: 18px 14px 14px 14px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.05rem;
}
.services .content-wrapper > ul > li b,
.services-list .content-wrapper > ul > li span {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.10rem;
  margin-left: 10px;
}
.btn-secondary {
  margin-top: 20px;
}
@media (max-width: 768px) {
  .services .content-wrapper > ul > li,
  .services-list .content-wrapper > ul > li {
    padding: 14px 8px 12px 8px;
    font-size: 0.98rem;
  }
}

/* ==========================
    ABOUT & TEXT CONTENT
========================== */
.about, .about-story, .values, .contact-info, .contact-form, .preventivo-form, .legal {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 6px;
}
.text-section ul {
  padding-left: 18px;
}
.text-section ul li {
  padding-left: 7px;
  margin-bottom: 8px;
  position: relative;
}
.text-section img {
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
  height: 20px; width: 20px;
}
@media (max-width: 768px) {
  .text-section {
    gap: 12px;
  }
}

/* ============================
    TESTIMONIALS
============================ */
.testimonials {
  background: #F3F7F0;
  border-radius: 18px;
  box-shadow: none;
}
.testimonials .content-wrapper > h2 {
  margin-bottom: 13px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: #fff;
  color: #22323E;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 16px rgba(34,50,62,0.08);
  border-left: 5px solid var(--primary);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(33,106,61,0.12);
  border-color: var(--secondary);
}
.testimonial-card p {
  color: #22323E;
  font-style: italic;
  font-size: 1.07rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: #495867;
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 14px 12px;
    font-size: 0.97rem;
  }
}

/* ============================
    CTA SECTION
============================ */
.cta {
  background: var(--primary);
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(33,106,61,0.08);
  padding: 36px 0;
  color: #fff;
  margin-bottom: 60px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta .btn-primary, .cta .btn-secondary {
  margin-top: 0;
  margin-right: 16px;
}
@media (max-width: 768px) {
  .cta {
    border-radius: 18px;
    padding: 20px 0;
  }
}

/* ============================
    FOOTER
============================ */
footer {
  background: #22323E;
  color: #fff;
  padding: 34px 0 0 0;
  position: relative;
  z-index: 3;
  border-top: 4px solid var(--primary);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-bottom: 18px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.92;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #dee2e6;
  padding: 0 0 14px 0;
}
.footer-info img {
  display: inline-block;
  vertical-align: middle;
  width: 28px; height: 28px;
  margin-bottom: -5px;
  margin-right: 3px;
}
@media (max-width: 768px) {
  .footer-nav {
    gap: 10px;
    font-size: 0.97rem;
  }
  .footer-info {
    font-size: 0.89rem;
  }
}

/* ===========================
    SECTION STRUCTURES
=========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(33,106,61,0.13);
  transform: translateY(-3px) scale(1.012);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
}

/* ============================
    FORM ELEMENTS
============================ */
input, textarea, select {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #22323E;
  margin-bottom: 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 rgba(33,106,61,0.22);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 1px 14px rgba(33,106,61,0.08);
}
label {
  font-weight: 500;
  color: #22323E;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ============================
    COOKIE CONSENT BANNER
============================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 24px rgba(34,50,62,0.11);
  z-index: 110;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 18px 10px;
  transition: transform 0.4s var(--transition), opacity 0.38s var(--transition);
  gap: 24px;
  opacity: 1;
}
.cookie-consent.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent__text {
  color: #22323E;
  font-size: 1rem;
  flex: 1 1 420px;
  margin-right: 16px;
}
.cookie-consent__actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 99px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--secondary);
  color: #173e1f;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #173e1f;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .cookie-consent__text {
    margin-right: 0;
    font-size: 0.98rem;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: rgba(34,50,62,0.66);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.35s var(--transition);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(33,106,61,0.13);
  max-width: 425px;
  min-width: 0;
  width: 95vw;
  padding: 36px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideInUp 0.36s var(--transition);
}
@keyframes slideInUp {
  from { transform: translateY(50px); opacity:0.2; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal__close {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #173e1f;
  font-size: 1.55rem;
  transition: background var(--transition);
}
.cookie-modal__close:hover,.cookie-modal__close:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.cookie-modal__section {
  margin-bottom: 0;
}
.cookie-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #22323E;
}
.cookie-toggle {
  appearance: none;
  width: 40px; height: 22px;
  background: #dee2e6;
  border-radius: 99px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 2px 6px rgba(60,72,70,0.10);
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: var(--primary);
}
.cookie-modal__description {
  font-size: 0.95rem;
  color: #495867;
  margin-top: 2px;
  margin-bottom: 0;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .cookie-modal__content {
    padding: 22px 6vw 20px 6vw;
  }
}

/* ========================
    ANIMATIONS & EFFECTS
======================== */
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-close, .cookie-modal__close {
  transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card, .features .content-wrapper > ul > li, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:active, .features .content-wrapper > ul > li:active, .testimonial-card:active {
  transform: scale(.99);
}

/* ===============
   UTILITIES
=============== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ========================
 RESPONSIVE MEDIA QUERIES
======================== */
@media (max-width: 1024px) {
  .container { max-width: 92vw; }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 500px) {
  html, body { font-size: 15px; }
}
