/* ========================================================================
   VITA EQUILIBRATA MILANO – NATURE_ORGANIC THEME
   ------------------------------------------------------------------------
   By: Senior CSS Developer
   Description: Professional, nature-inspired, organic, earth tones, green accents, soft organic shapes and textures. Responsive, flexbox-only, mobile-first, with animated mobile menu and cookie banner.
   ======================================================================== */

/* -------- RESET & NORMALIZE ---------*/
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2A3531;
  background: #F6F3E8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 8px;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

::-webkit-input-placeholder { color: #678D58; opacity: 1; }
::-moz-placeholder { color: #678D58; opacity: 1; }
:-ms-input-placeholder { color: #678D58; opacity: 1; }
::placeholder { color: #678D58; opacity: 1; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #24505C;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #377A61;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #2A3531;
}
strong, b {
  font-weight: 700;
}
.text-section h3 {
  color: #24505C;
}

/* --- LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 40px 40px 30px 50px / 28px 40px 40px 45px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(73, 123, 93, 0.08), 0 1.5px 0 0 #EBE7D9;
  /* Organic: subtle organic shape via border-radius. */
}
main {
  margin-bottom: 40px;
}
@media (min-width:769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #F6F3E8;
  border-bottom: 2px solid #E8E5DA;
  box-shadow: 0 2px 12px rgba(40,64,43,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.logo img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: none;
}
@media (min-width: 1025px) {
  .main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: none;
  }
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #24505C;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background 0.16s, color 0.22s;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e1ecd6;
  color: #306545;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  background: #377A61;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  box-shadow: 0 3px 13px rgba(36,80,92,0.095);
  margin-left: 10px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.23s, transform 0.17s;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #24505C;
  color: #D6A75E;
  transform: translateY(-2px) scale(1.037);
  box-shadow: 0 6px 25px rgba(36,80,92,0.14);
}

.mobile-menu-toggle {
  font-size: 2.18rem;
  background: none;
  color: #24505C;
  border: 2px solid #D6A75E;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.16s, background 0.2s;
  z-index: 2002;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  border-color: #377A61;
  background: #e1ecd6;
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(57, 88, 63, 0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(.7,0,.4,1);
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 32px 30px 10px 0;
  background: #fff;
  color: #24505C;
  font-size: 2.3rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid #D6A75E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 13px rgba(36,80,92,0.08);
  transition: background 0.21s, color 0.16s, border 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #e1ecd6;
  color: #377A61;
  border-color: #24505C;
}
.mobile-nav {
  margin: auto auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: flex-start;
  padding: 18px 20px 24px 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.26rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 14px 0 14px 14px;
  border-radius: 20px;
  width: 94%;
  margin-bottom: 3px;
  transition: background 0.18s, color 0.12s;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #D6A75E;
  color: #24505C;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO/SECTION HEADINGS --- */
section > .container > h1, section > .container > h2 {
  margin-bottom: 24px;
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  color: #24505C;
  letter-spacing: 0.015em;
  line-height: 1.16;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 40px 40px 30px 50px / 28px 40px 40px 45px;
  box-shadow: 0 4px 16px rgba(73, 123, 93, 0.07), 0 1.5px 0 0 #EBE7D9;
}
@media (max-width:768px) {
  section {
    padding: 32px 6px;
    margin-bottom: 40px;
  }
}

/* --- FEATURE GRID (PILASTRI & FEATURES) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F6F3E8;
  border-radius: 28px 36px 22px 32px / 22px 28px 30px 27px;
  box-shadow: 0 3px 14px rgba(56, 91, 72, 0.10);
  padding: 22px 18px 18px 18px;
  flex: 1 1 230px;
  max-width: 310px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 5px solid #377A61;
  transition: box-shadow 0.24s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 8px 28px rgba(73, 123, 93, 0.15);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 5px;
}
.feature-grid h3 {
  margin: 0 0 5px 0;
  font-size: 1.12rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CARDS & CARD CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #F6F3E8;
  border-radius: 32px 25px 35px 38px/33px 25px 39px 41px;
  box-shadow: 0 4px 18px rgba(73, 123, 93, 0.08);
  padding: 24px 18px 18px 24px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.12s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 10px 24px rgba(73, 123, 93, 0.15);
  transform: translateY(-3px) scale(1.019);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-radius: 28px 35px 32px 40px/22px 30px 29px 36px;
  background: #F2EBD4;
  box-shadow: 0 2px 14px rgba(117,130,100,0.11);
  margin-bottom: 20px;
  border-left: 5px solid #D6A75E;
  position: relative;
  color: #27413A;
}
.testimonial-card p {
  color: #27413A;
  font-size: 1.07rem;
  font-style: italic;
  flex: 1;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-family: 'Montserrat', sans-serif;
  color: #396946;
  font-size: 0.98rem;
  font-weight: 600;
}
.testimonial-card:before {
  content: '“';
  font-size: 2.6rem;
  color: #D6A75E;
  line-height: 1;
  font-weight: 700;
  position: absolute;
  left: 18px; top: 10px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 15px;
    gap: 6px;
  }
  .testimonial-card:before {
    left: 5px;
    top: 8px;
  }
}

/* --- TEXT/INFO SECTIONS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.03rem;
}
.text-section ul {
  margin-bottom: 10px;
  padding-left: 20px;
}
.text-section li {
  line-height: 1.55;
  padding-left: 2px;
  color: #355F4B;
  font-size: 1.01rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.text-section img {
  width: 25px;
  height: 25px;
  margin-right: 7px;
}
.text-section .mission {
  font-size: 1.10rem;
  color: #377A61;
  font-weight: 500;
  margin-top: 10px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.location-map {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EDE9DA;
  padding: 10px 14px;
  border-radius: 20px 30px 20px 30px/20px 29px 25px 23px;
  color: #24505C;
  font-size: 1.01rem;
  margin-bottom: 15px;
}

/* --- LISTS (SERVICES, FEATURES, CONTACTS) --- */
section ul {
  margin-bottom: 8px;
  margin-top: 0;
}
section li {
  margin-bottom: 8px;
}
section li span {
  color: #24505C;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-left: 8px;
}

/* --- FOOTER --- */
footer {
  background: #e7e3cf;
  border-top: 3px solid #D6A75E;
  box-shadow: 0 -1px 10px rgba(117,130,100,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 38px;
  padding-bottom: 30px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 7px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #24505C;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  background: #EDE9DA;
  padding: 6px 13px;
  border-radius: 16px;
  transition: background 0.18s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #24505C;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.99rem;
  color: #377A61;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-copy {
  font-size: 0.93rem;
  color: #9C9C8A;
  margin-top: 7px;
  text-align: center;
  letter-spacing: 0.035em;
}
@media (min-width:769px){
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 18px;
  }
  .footer-logo {
    flex: 0 0 auto;
    align-self: flex-start;
  }
  .footer-contact {
    align-items: flex-end;
    margin-bottom: 0;
  }
  .footer-nav {
    align-items: flex-start;
    margin-bottom: 0;
  }
  .footer-copy {
    align-self: flex-end;
    margin-top: 0;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: #fffbe6;
  box-shadow: 0 -2px 18px rgba(36,80,92,0.11);
  border-top: 3px solid #D6A75E;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 26px 18px 24px 18px;
  font-size: 1.05rem;
  transition: transform 0.38s cubic-bezier(.67,0,.33,1);
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 17px;
  justify-content: center;
  margin-top: 6px;
}
.cookie-banner button,
.cookie-banner .btn {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  padding: 11px 22px;
  margin: 0 0 4px 0;
  box-shadow: 0 1px 7px rgba(36,80,92,0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.13s;
}
.cookie-banner .accept {
  background: #377A61;
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #24505C;
  color: #D6A75E;
}
.cookie-banner .reject {
  background: #D6A75E;
  color: #24505C;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #fff;
  color: #D6A75E;
  border: 2px solid #D6A75E;
}
.cookie-banner .settings {
  background: #fff;
  color: #377A61;
  border: 1.5px solid #D6A75E;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #F6F3E8;
  color: #24505C;
}

@media (max-width:600px){
  .cookie-banner {
    font-size: 0.98rem;
    padding: 17px 8px 18px 8px;
    gap: 9px;
  }
  .cookie-banner .cookie-btns{
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-banner .btn,
  .cookie-banner button {
    width: 100%;
    min-width: unset;
    text-align:center;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(31,51,35,0.56);
  z-index: 6000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookieModalFade .36s cubic-bezier(.32,1.49,.4,1) both;
}
@keyframes cookieModalFade {
  0% { opacity: 0; transform: scale(0.95) translateY(44px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 30px 40px 28px 38px/28px 35px 29px 35px;
  box-shadow: 0 8px 52px rgba(90, 100, 67, 0.16);
  max-width: 410px;
  width: 98%;
  padding: 32px 25px 30px 27px;
  font-family: 'Roboto',sans-serif;
  font-size: 1rem;
  color: #27413A;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-header {
  font-weight: 700;
  font-size: 1.24rem;
  color: #24505C;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: #355F4B;
  background: #F6F3E8;
  border-radius: 16px 24px 18px 22px;
  padding: 10px 13px 10px 16px;
}
.cookie-modal-cat .toggle {
  display: flex;
  gap: 5px;
  align-items: center;
}
.cookie-modal-cat input[type='checkbox'] {
  width: 23px;
  height: 23px;
  accent-color: #377A61;
  border-radius: 10px;
}
.cookie-modal-cat[aria-disabled='true'] label {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions .btn {
  font-family: 'Montserrat',sans-serif;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #377A61;
  color: #fff;
  transition: background 0.17s, color 0.13s;
}
.cookie-modal-actions .btn.secondary {
  background: #fff;
  color: #24505C;
  border: 1.5px solid #D6A75E;
}
.cookie-modal-actions .btn.secondary:hover,
.cookie-modal-actions .btn.secondary:focus {
  background: #f6f3e8;
  color: #377A61;
}
.cookie-modal-actions .btn:hover,
.cookie-modal-actions .btn:focus {
  background: #24505C;
  color: #D6A75E;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 16px;
  background: none;
  color: #24505C;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.19s, color 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #e1ecd6;
  color: #377A61;
}

@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 19px 6px 19px 12px;
    font-size: .96rem;
    max-width: 98vw;
  }
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
    border-left-width: 4px;
    border-radius: 18px 19px 14px 18px/16px 15px 15px 14px;
    box-shadow: 0 2px 7px rgba(56, 91, 72, 0.08);
  }
  .text-image-section {
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
}

/* --- UTILITIES --- */
.hide-desktop {
  display: none !important;
}
@media (max-width: 1024px) {
  .hide-desktop {
    display: block !important;
  }
}
.hide-mobile {
  display: block !important;
}
@media (max-width: 1024px) {
  .hide-mobile {
    display: none !important;
  }
}

/* --- MISC & MICRO-INTERACTIONS --- */
a, .btn-primary, button {
  transition: background 0.18s, color 0.13s, box-shadow 0.19s, border-color 0.16s, transform 0.14s;
}
img[alt*="Icona"], img.icon {
  filter: saturate(0.72) contrast(1.13) hue-rotate(-16deg);
}

/* Subtle organic background for key panels/cards */
.section, .card, .feature-grid > div, .testimonial-card {
  background-image:
    linear-gradient(120deg, rgba(234, 222, 202, 0.11), transparent 66%),
    linear-gradient(40deg, rgba(214,167,94, 0.028) 33%, transparent 77%);
  background-repeat: no-repeat;
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 2px solid #377A61;
  outline-offset: 3px;
}

/* --- PRINT STYLES --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container {
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
  }
}
