/* =============================================================
   EcoCatania Futuro - NATURE ORGANIC THEME
   Modern & organic, nature-inspired style, flexbox only.          
   ============================================================= */

/* ---------------------
   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,hr,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,
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 { line-height: 1.5; background: #FAF9F3; }
img { max-width: 100%; display: block; }
ul, ol { list-style-position: inside; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------------------------------
   ROOT COLORS & ORGANIC THEME VARS
-----------------------------------*/
:root {
  --ec-primary: #25744D;
  --ec-secondary: #E6E2C3;
  --ec-background: #FAF9F3;
  --ec-accent: #18406A;
  --ec-dark: #28332A;
  --ec-brown: #917F62;
  --ec-green-light: #41B083;
  --ec-error: #B7563C;
  --ec-white: #fff;
  --ec-shadow: 0 2px 8px 0 rgba(60,75,48,0.10), 0 1.5px 6px 0 rgba(90,104,71,0.13);
  --ec-radius: 18px;
  --ec-radius-card: 24px;
  --ec-spacing: 20px;
  --ec-spacing-lg: 40px;
  --ec-transition: 0.25s cubic-bezier(.77,0,.175,1);
  --ec-shadow-hover: 0 4px 20px 0 rgba(60,75,48,0.15);
  --ec-nav-bg: #fff;
  --ec-nav-txt: #25744D;
}

/* --------------
   TYPOGRAPHY
---------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ec-dark);
  background: var(--ec-background);
}

h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--ec-primary);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -2px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  color: var(--ec-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--ec-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.10rem;
  color: var(--ec-primary);
  font-weight: 700;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--ec-dark);
  margin-bottom: 1em;
  line-height: 1.6;
}
strong { font-weight: 700; color: var(--ec-primary); }
em, i { color: var(--ec-brown); font-style: italic; }
dt { font-weight: bold; }
.small, small { font-size: 0.95em; color: var(--ec-brown); }

/* --------------------
   CONTAINER & SECTIONS
----------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--ec-radius-card);
  background: var(--ec-white);
  box-shadow: var(--ec-shadow);
  /* organic blob background with subtle curve effect */
  position: relative;
  z-index: 1;
}

section.hero-section {
  background: linear-gradient(120deg, #E8EFE1 60%, #F9F6E8 100%);
  box-shadow: none;
  min-height: 310px;
  margin-bottom: 40px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  background: var(--ec-secondary);
  border-radius: 28px;
  box-shadow: var(--ec-shadow);
  margin: 0 auto;
  max-width: 560px;
}

.values-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

/* ---------------------
   FLEX LAYOUT PATTERNS
-----------------------*/
.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;
}

.feature-grid, .benefit-grid, .solutions-grid, .project-teasers, .team-list, .service-list, .guide-list, .newsletter-section, .projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature, .service, .project, .guide, .post {
  background: var(--ec-white);
  border-radius: var(--ec-radius-card);
  box-shadow: var(--ec-shadow);
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--ec-transition), transform var(--ec-transition);
}
.feature:hover, .service:hover, .project:hover, .guide:hover, .post:hover {
  box-shadow: var(--ec-shadow-hover);
  transform: translateY(-6px) scale(1.03);
}

.project-teasers > div, .benefit-grid > div, .solutions-grid > div, .projects-list > .project {
  flex: 1 1 240px;
  min-width: 210px;
}

.team-list {
  gap: 32px;
  flex-wrap: wrap;
}
.team-member {
  background: var(--ec-secondary);
  border-radius: 16px;
  box-shadow: var(--ec-shadow);
  padding: 20px 18px;
  min-width: 190px;
  flex: 1 1 180px;
  text-align: center;
}

/* ----------------------
   HEADER / NAVIGATION
-------------------------*/
header {
  background: var(--ec-nav-bg);
  box-shadow: 0 3px 16px rgba(39, 93, 77, 0.10);
  position: sticky;
  top: 0;
  z-index: 21;
  min-height: 68px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.logo img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ec-primary);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background var(--ec-transition), color var(--ec-transition);
  font-size: 1.04em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--ec-secondary);
  color: var(--ec-accent);
}
.cta-btn {
  background: var(--ec-primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08em;
  font-weight: bold;
  border: none;
  border-radius: 60px 26px 80px 18px / 48px 24px 68px 16px;
  padding: 11px 28px 13px;
  box-shadow: var(--ec-shadow);
  margin-left: 18px;
  transition: background var(--ec-transition), color var(--ec-transition), box-shadow var(--ec-transition), transform var(--ec-transition);
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--ec-green-light);
  color: var(--ec-dark);
  box-shadow: var(--ec-shadow-hover);
  transform: translateY(-2px) scale(1.03);
  text-decoration: underline;
}

/* Burger (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  background: var(--ec-secondary);
  color: var(--ec-primary);
  font-size: 2rem;
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  margin-left: 20px;
  cursor: pointer;
  z-index: 54;
  transition: background var(--ec-transition), color var(--ec-transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--ec-primary);
  color: var(--ec-white);
}

/* -------------
   MOBILE MENU
-----------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ec-secondary);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.73,0,.33,1);
  z-index: 999;
  opacity: 0.98;
  box-shadow: 2px 0 22px 0 rgba(34,54,44,0.11);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--ec-primary);
  margin: 24px 24px 0 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--ec-transition), color var(--ec-transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--ec-primary);
  color: var(--ec-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  color: var(--ec-primary);
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 12px 0;
  transition: color var(--ec-transition), background var(--ec-transition);
  border-radius: 12px;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--ec-green-light);
  color: var(--ec-white);
}

/* -------------
   GENERAL LAYOUT
-----------------*/
@media (max-width: 980px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 820px) {
  .service-list, .projects-list, .feature-grid, .benefit-grid, .solutions-grid, .team-list, .guide-list, .newsletter-section {
    gap: 16px;
  }
  .main-nav { gap: 10px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 6px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .cta-block, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-grid, .benefit-grid, .projects-list, .service-list, .solutions-grid, .blog-overviews, .project-teasers, .team-list, .guide-list, .newsletter-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  h1,.h1 { font-size: 2rem; }
  h2,.h2 { font-size: 1.3rem; }
  h3,.h3 { font-size: 1.08rem; }
  .cta-btn { font-size: 0.98em; padding: 10px 18px 12px; }
  .mobile-nav a { font-size: 1.1rem; }
  section { padding: 28px 6px; }
}

/* ---------------
   TESTIMONIALS
-----------------*/
.testimonial-card {
  background: var(--ec-secondary);
  border-radius: 24px 40px 18px 32px/32px 18px 30px 40px;
  box-shadow: var(--ec-shadow);
  color: #222;
  margin-bottom: 20px;
  max-width: 570px;
}
.testimonial-card blockquote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ec-dark);
  margin-right: 12px;
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--ec-accent);
}

/* ---------------
   FOOTER
-----------------*/
footer {
  background: #f2f0ea;
  color: var(--ec-dark);
  font-size: 0.99em;
  box-shadow: 0 -3px 17px rgba(39, 93, 77, 0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 20px 18px 20px;
}
.footer-brand {
  flex: 1 1 240px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand img {height: 38px;}
.footer-nav, .footer-contact, .footer-social {
  flex: 1 1 180px;
  min-width: 120px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav nav, .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-social a {
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s;
  padding: 3px;
}
.footer-social a:hover { background: var(--ec-green-light); }
.footer-nav a, .footer-contact a { color: var(--ec-primary); }
.footer-nav a:hover, .footer-contact a:hover {
  color: var(--ec-accent); text-decoration: underline;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  background: none;
  padding: 16px 8px 20px 8px;
  font-size: 0.92em;
  color: var(--ec-brown);
}
.footer-legal a {
  color: var(--ec-accent);
  margin-right: 8px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 4px;
  transition: background .17s, color .17s;
}
.footer-legal a:hover {
  color: var(--ec-primary);
  background: #dedbc7;
}
@media (max-width: 920px) {
  footer .container {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* -------------
    SEARCH BAR
----------------*/
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0 0;
}
.search-bar input {
  border: 1.5px solid var(--ec-brown);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 1em;
  width: 210px;
  background: #f8f6ee;
  color: var(--ec-dark);
  transition: border .16s;
}
.search-bar input:focus {
  border-color: var(--ec-primary);
  outline: none;
}
.search-bar button {
  background: #45966e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background .14s;
}
.search-bar button:hover, .search-bar button:focus {
  background: var(--ec-green-light);
}

/* ---------------------
   NEWSLETTER FORM
----------------------*/
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 10px 0;
}
.newsletter-form input[type="email"] {
  border: 1.5px solid var(--ec-brown);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 1em;
  background: #f6f5ed;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--ec-primary);
  outline: none;
}
.newsletter-form button {
  background: var(--ec-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ec-transition);
}
.newsletter-form button:hover, .newsletter-form button:focus {
  background: var(--ec-green-light);
  color: var(--ec-dark);
}

/* --------------
   FAQ ACCORDION
----------------*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  background: #f8f6ee;
  border-radius: 18px;
  padding: 18px 18px 5px 18px;
  box-shadow: 0 1px 7px rgba(70,84,62,0.07);
}
.faq-accordion strong { display: block; color: var(--ec-primary); margin-bottom:5px; }
.faq-accordion p { margin: 0 0 8px 0; }

/* ---------------
    ACCENT CARDS
-----------------*/
.guide, .post {
  background: var(--ec-secondary);
  border-radius: 18px;
  box-shadow: 0 1.5px 7px rgba(75,84,62,0.08);
  padding: 20px 13px;
  min-width: 170px;
  max-width: 350px;
  margin-bottom: 20px;
  color: var(--ec-dark);
}
.guide a, .post a {
  color: var(--ec-accent);
  font-weight: 700;
  text-decoration: underline;
}
.guide a:hover, .post a:hover { color: var(--ec-primary); }

/* ---------------
   CONTACT INFO
-----------------*/
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-list li, .footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Roboto", sans-serif;
  font-size: 1.05em;
  color: var(--ec-dark);
  margin-bottom: 3px;
}

.map-placeholder {
  margin: 12px 0 0 0;
  background: var(--ec-white);
  border-radius: 12px;
  box-shadow: 0 1.5px 7px rgba(75,84,62,0.07);
  padding: 16px 14px;
  font-size: 1.06em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

/* ------------------
   COOKIE CONSENT
-------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #272D1E;
  color: #FAF9E2;
  box-shadow: 0 -2px 22px rgba(55,63,35,0.16);
  padding: 22px 12px 18px 18px;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  transition: transform .36s cubic-bezier(.7,0,.31,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 18px;
  padding: 9px 18px;
  margin-right: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background var(--ec-transition), color var(--ec-transition);
}
.cookie-banner .accept {
  background: var(--ec-green-light);
  color: var(--ec-dark);
}
.cookie-banner .reject {
  background: var(--ec-error);
  color: #fff;
}
.cookie-banner .settings {
  background: #f8f6ee;
  color: var(--ec-dark);
  border: 1.5px solid var(--ec-brown);
}
.cookie-banner button:focus, .cookie-banner button:hover {
  filter: brightness(0.94);
  outline: 2px solid var(--ec-primary);
}
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2222;
  background: rgba(39, 93, 77, 0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s cubic-bezier(.7,0,.31,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #fff;
  color: var(--ec-dark);
  border-radius: 32px 40px 18px 26px/30px 20px 44px 32px;
  box-shadow: 0 8px 42px rgba(78,110,85,0.17);
  padding: 38px 26px 28px 30px;
  max-width: 360px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ec-accent);
  cursor: pointer;
  padding: 7px;
  border-radius: 10px;
  transition: background .2s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { background: #f4f4eb; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--ec-primary);
  font-size: 1.02em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--ec-primary);
  width: 19px;
  height: 19px;
  margin-right: 4px;
}
.cookie-category.essential label { color: var(--ec-accent); }
.cookie-category.essential input { display: none; }

/* ---------------
   ANIMATIONS
-----------------*/
.cta-btn, .feature, .service, .project, .guide, .testimonial-card, .newsletter-form button,
.footer-legal a, .main-nav a, .footer-social a, .mobile-nav a, .mobile-menu-close, .mobile-menu-toggle {
  transition: background var(--ec-transition), color var(--ec-transition), box-shadow var(--ec-transition), transform var(--ec-transition);
}
.cta-btn { transition: background var(--ec-transition), color var(--ec-transition), box-shadow var(--ec-transition), transform var(--ec-transition); }
.feature:hover, .service:hover, .project:hover {
  transform: translateY(-7px) scale(1.03);
}

/* ---------------
   ORGANIC SHAPES
-----------------*/
.feature, .service, .card, .project, .team-member, .cta-block, .guide, .testimonial-card, section, .cookie-modal .modal-content {
  border-radius: 32px 18px 44px 24px / 40px 24px 32px 18px;
}
.values-icons img, .footer-social a img, .social-links a img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(78,110,85,0.12);
  background: #f2f8f1;
  padding: 6px;
}

/* ---------------
   UTILITIES
-----------------*/
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.rounded { border-radius: var(--ec-radius-card); }
.shadow { box-shadow: var(--ec-shadow); }
.text-center { text-align: center; }
.align-center { align-items: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-16 { gap: 16px; }

/* ---------------
   PRINT STYLES
-----------------*/
@media print { html,body,header,footer,section,nav,.container,* { background: #fff !important; color: #000 !important; box-shadow: none !important; } }

/* ---------------
   END OF FILE
-----------------*/
