/* CSS RESET & BASE TYPOGRAPHY ------------------------------------------------*/
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,
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, hgroup, menu,
nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F8F8F6;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: #22313a;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a {
  color: #305236;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #9BA567;
}

/* TYPOGRAPHY ---------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22313a;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.25rem; margin-bottom: 12px; }
h5 { font-size: 1.1rem; margin-bottom: 10px; }
h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol {
  margin-bottom: 16px;
  color: #22313a;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
  color: #305236;
}

/* CONTAINER & LAYOUT -------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(34,49,58,0.06);
}

/* CARDS & GRID FLEX LAYOUT ---------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,49,58,0.06);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(34,49,58,0.10);
  transform: translateY(-3px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* FEATURE GRID, LIST & ITEMS ----------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.feature-grid li {
  background: #f3f6f9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(34,49,58,0.03);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 18px rgba(34,49,58,0.10);
}
.feature-grid img {
  width: 40px; height: 40px;
  margin-bottom: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SERVICE LIST -------------------------------------------------------------*/
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 0;
  margin-bottom: 0;
}
.service-list li {
  background: #f3f6f9;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 1px 4px rgba(34,49,58,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li strong {
  color: #305236;
  font-size: 1.08rem;
}
.service-list li span, .service-list li em {
  font-size: 1rem;
  color: #68713a;
}
.service-list li em { font-weight: 600; }

/* STEP PROCESS (Come Lavoriamo) --------------------------------------------*/
.step-process {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.step-process li {
  background: #eef2f5;
  border-radius: 10px;
  padding: 20px 16px;
  flex: 1 1 210px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.step-process img {
  width: 34px;
}
.step-process strong {
  color: #305236;
}

/* TEXT IMAGE SECTIONS ------------------------------------------------------*/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  margin-bottom: 24px;
}

/* TESTIMONIALS -------------------------------------------------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #F8F8F6;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,49,58,0.04);
  margin-bottom: 20px;
  color: #22313a;
  border-left: 5px solid #305236;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,49,58,0.10);
  border-left: 5px solid #9BA567;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #22313a;
  margin-bottom: 2px;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1rem;
  color: #305236;
}
.review-summary {
  font-weight: 600;
  color: #305236;
  margin-top: 24px;
  font-size: 1.08rem;
}

/* BUTTONS & CTA ------------------------------------------------------------*/
.cta-btn {
  display: inline-block;
  background: #305236;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 8px rgba(34,49,58,0.09);
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  margin-right: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #9BA567;
  color: #22313a;
  transform: translateY(-2px) scale(1.04);
}

.button, .btn, [type="button"], [type="submit"] {
  font-family: inherit;
}

/* HEADER & NAVIGATION ------------------------------------------------------*/
header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #305236;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: color 0.17s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: #9BA567;
  width: 0;
  transition: width 0.18s;
  position: absolute;
  left: 0; bottom: 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #9BA567;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.header-logo img {
  height: 48px;
}
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #305236;
  margin-left: 8px;
  cursor: pointer;
  display: none;
  z-index: 2001;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #305236;
}

/* MOBILE MENU --------------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,49,58, 0.95);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.52,1.64,.37,.66);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  z-index: 2200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 84px 34px 0 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.16s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #305236;
  color: #9BA567;
}

/* HIDE HEADER NAV ELEMENTS ON MOBILE ---------------------------------------*/
@media (max-width: 991px) {
  .main-nav { display: none; }
  .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
}

/* FOOTER -------------------------------------------------------------------*/
footer {
  background: #305236;
  color: #fff;
  padding-top: 42px;
  padding-bottom: 0;
}
footer .container {
  padding-top: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
}
.footer-contact {
  font-size: 1.01rem;
  color: #f3f3f3;
  margin-top: 12px;
  margin-bottom: 0;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-nav a {
  color: #f4f4f4;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #9BA567;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.90;
  transition: opacity 0.18s, filter 0.15s;
}
.social-links a:hover img {
  opacity: 1;
  filter: brightness(1.25);
}
footer .copyright {
  padding: 16px 0 0 0;
  color: #dde3db;
  font-size: 0.95rem;
  text-align: center;
}

/* HIGHLIGHT TEXTS ----------------------------------------------------------*/
.highlight, .quality-statement {
  background: #ebefd6;
  color: #305236;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 11px 14px;
  border-radius: 8px;
  margin: 18px 0 0 0;
  display: inline-block;
}

/* OL/UL STYLES -------------------------------------------------------------*/
ul, ol {
  margin-left: 20px;
}
ul li, ol li {
  margin-bottom: 6px;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }
ul {
  list-style-position: inside;
}
address {
  font-style: normal;
  margin-bottom: 14px;
  color: #22313a;
}

/* FORMS (if present, for future use) ---------------------------------------*/
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  color: #22313a;
}
input[type="text"], input[type="email"], textarea, select {
  border: 1px solid #bfcfdb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 14px;
  width: 100%;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #305236;
  border-color: #305236;
}
button[type="submit"] {
  background: #305236;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 30px;
  font-size: 1rem;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: #9BA567;
  color: #22313a;
}

/* COOKIE CONSENT BANNER ------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #22313a;
  color: #fff;
  box-shadow: 0 0 18px rgba(34,49,58,0.13);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 1rem;
  flex-wrap: wrap;
  gap: 18px;
  transition: transform 0.32s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 200px;
  color: #fff;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-banner__btn {
  padding: 10px 18px;
  border-radius: 24px;
  border: none;
  background: #9BA567;
  color: #22313a;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.16s;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #305236;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* COOKIE PREFERENCE MODAL -------------------------------------------------*/
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2600;
  align-items: center;
  justify-content: center;
  background: rgba(34,49,58, 0.87);
  animation: fadein 0.2s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  color: #22313a;
  border-radius: 16px;
  max-width: 480px;
  width: 90vw;
  padding: 34px 26px 22px 26px;
  box-shadow: 0 8px 48px rgba(34,49,58,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideUp 0.27s cubic-bezier(.58,1.28,.43,.77);
}
@keyframes slideUp {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal__close {
  background: none;
  border: none;
  color: #305236;
  font-size: 2rem;
  position: absolute;
  top: 12px; right: 18px;
  cursor: pointer;
  z-index: 3;
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal__section {
  margin-bottom: 14px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #22313a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.cookie-modal input[type=checkbox] {
  accent-color: #305236;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal__save, .cookie-modal__cancel {
  background: #9BA567;
  color: #22313a;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal__save:hover, .cookie-modal__save:focus {
  background: #305236;
  color: #fff;
}
.cookie-modal__cancel {
  background: #f3f6f9;
  color: #305236;
}
.cookie-modal__cancel:hover, .cookie-modal__cancel:focus {
  background: #e5ebdf;
  color: #305236;
}

/* ACCESSIBILITY -----------------------------------------------------------*/
:focus {
  outline: 2px solid #9BA567;
  outline-offset: 2px;
}

/* GENERAL SPACING & FLEX LAYOUTS ------------------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/* RESPONSIVE DESIGN: MOBILE-FIRST -----------------------------------------*/
@media (max-width: 991px) {
  .container {
    padding: 0 10px;
    max-width: 95vw;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .service-list, .step-process {
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 4px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container {
    padding: 0 8px;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li, .card, .step-process li {
    min-width: 0;
    padding: 16px 12px;
  }
  .testimonial-card {
    padding: 16px 12px;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 44px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .mobile-menu-close {
    top: 12px; right: 18px;
    font-size: 2rem;
  }
  .mobile-nav {
    gap: 18px;
    padding: 54px 16px 0 16px;
  }
}

/* HIDE MOBILE MENU INITIALLY -----------------------------------------------*/
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
}
@media (max-width: 991px) {
  .mobile-menu {
    display: flex;
  }
}

/* HIDE SCROLL WHEN MOBILE MENU OPEN ----------------------------------------*/
body.menu-open {
  overflow: hidden;
}

/* UTILITY CLASSES ---------------------------------------------------------*/
.d-none {
  display: none !important;
}

/* END OF CSS */
