/* ---------------------------------------------------
   Vitalità in Movimento – Scandinavian Clean CSS Theme
   ---------------------------------------------------
   Mobile-first + Flexbox-Only – All CSS applies to provided HTML classes
   ---------------------------------------------------
   CSS RESET & BASE
----------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #28534A;
  background: #F9F6F1;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #28534A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #295f54;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
main {
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #28534A;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.6rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 600; }
h4 { font-size: 1.1rem; }
p, .footer-contact, .content-wrapper ul, .content-wrapper ol {
  font-size: 1rem;
  color: #28534A;
}
@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

/* ---------------------------------------------------
   CONTAINERS & FLEX SPACING
----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.text-section {
  align-items: flex-start;
  gap: 18px;
}

/* Card Containers & Flex Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(40,83,74,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-width: 230px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid,
.team-section {
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(40,83,74,0.13);
  margin-bottom: 24px;
  border: 1px solid #E4EDD8;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(40,83,74,0.16);
  border-color: #A6D6B5;
}
.testimonial-author {
  font-size: 0.98rem;
  font-weight: 500;
  color: #28534A;
  opacity: 0.87;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.feature-grid > li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(40,83,74,0.04);
  padding: 28px 22px 22px 22px;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 310px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #E4EDD8;
  transition: box-shadow 0.18s;
}
.feature-grid > li:hover {
  box-shadow: 0 8px 30px rgba(40,83,74,0.10);
  border-color: #A6D6B5;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  filter: grayscale(18%) opacity(0.88);
}

/* Blog List */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  background: #fff;
  border: 1px solid #E4EDD8;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(40,83,74,0.05);
  padding: 24px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, border-color 0.18s;
}
.blog-list article:hover {
  box-shadow: 0 7px 20px rgba(40,83,74,0.10);
  border-color: #A6D6B5;
}
.blog-list .tag {
  background: #A6D6B5;
  color: #28534A;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 10px;
  display: inline-block;
  margin-top: 10px;
}

/* Contact Info Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-info img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

/* ---------------------------------------------------
   HEADER & NAVIGATION
----------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E4EDD8;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
}
.logo img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 2px;
  font-weight: 500;
  color: #28534A;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: #28534A;
  outline: none;
}
.btn-primary {
  background: #28534A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(40,83,74,0.06);
  cursor: pointer;
  outline: none;
  margin-left: 14px;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A6D6B5;
  color: #28534A;
  box-shadow: 0 6px 32px rgba(166,214,181,0.18);
}
.btn-secondary {
  background: #A6D6B5;
  color: #28534A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: 21px;
  cursor: pointer;
  margin-right: 10px;
  box-shadow: 0 1px 8px rgba(40,83,74,0.07);
  transition: background 0.16s, color 0.16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #28534A;
  color: #fff;
}

/* HAMBURGER (mobile-menu-toggle) */
.mobile-menu-toggle {
  background: rgba(166,214,181,0.15);
  color: #28534A;
  border: none;
  font-size: 2.2rem;
  padding: 7px 18px 6px 12px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s;
  margin-left: 12px;
  z-index: 106;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #A6D6B5;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 14px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,.2,0,1);
  box-shadow: -4px 0 32px rgba(40,83,74,0.07);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: rgba(166,214,181,0.16);
  color: #28534A;
  font-size: 2.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-bottom: 22px;
  padding: 8px 14px;
  align-self: flex-end;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #A6D6B5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding-left: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #28534A;
  padding: 14px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #A6D6B5;
  color: #28534A;
}

/* Hide menu and nav on desktop, show main-nav on desktop only */
@media (max-width: 980px) {
  .main-nav,
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* ---------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #E4EDD8;
  margin-top: 60px;
  padding: 36px 0 26px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo img {
  width: 54px;
  height: auto;
  margin-bottom: 12px;
  opacity: 0.98;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #28534A;
  font-size: 1rem;
  border-radius: 6px;
  padding: 8px 6px;
  transition: background 0.18s, color 0.15s;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #A6D6B5;
  color: #28534A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 0.97rem;
}
.footer-contact div, .footer-contact a {
  color: #28534A;
  opacity: 0.80;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* ---------------------------------------------------
   INTERACTIVE & UTILITY CLASSES
---------------------------------------------------- */
.btn-primary, .btn-secondary {
  text-align: center;
  text-decoration: none;
  min-width: 135px;
}
.btn-primary:active, .btn-secondary:active {
  transform: translateY(1px);
}

/* Gap utility for containers */
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}

/* Tag for blog */
.tag {
  background: #A6D6B5;
  color: #28534A;
  font-family: inherit;
  padding: 4px 14px;
  border-radius: 8px;
}

/* ---------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #E4EDD8;
  box-shadow: 0 -3px 20px rgba(40,83,74,0.12);
  padding: 20px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10010;
  transition: transform 0.28s cubic-bezier(.4,.2,0,1);
}
.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 26px;
  box-shadow: 0 1px 5px rgba(40,83,74,0.06);
  margin-top: 0;
  margin-bottom: 0;
  background: #A6D6B5;
  color: #28534A;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner button.accept {
  background: #28534A;
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #1a3630;
}
.cookie-banner button.reject, .cookie-banner button.settings {
  background: #A6D6B5;
  color: #28534A;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus, .cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #92cda8;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,83,74,0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 11010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 24px rgba(40,83,74,0.2);
  padding: 28px 18px 18px 18px;
  width: 98vw;
  max-width: 420px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUpCookie 0.4s cubic-bezier(.67,.1,0,1);
  position: relative;
}
@keyframes slideUpCookie {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: #28534A;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #28534A;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #A6D6B5;
}
.cookie-modal .category-desc {
  font-size: 0.92rem;
  color: #59947a;
  margin-left: 34px;
  margin-bottom: 11px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 12px;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.45rem;
  background: none;
  border: none;
  color: #28534A;
  cursor: pointer;
  transition: color 0.18s;
  border-radius: 8px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #A6D6B5;
}

/* ---------------------------------------------------
   MEDIA QUERIES – RESPONSIVE FLEX LAYOUTS
----------------------------------------------------- */
@media (max-width: 980px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    display: none !important;
  }
  .btn-primary {
    display: none;
  }
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
  .content-wrapper, .team-section, .content-grid, .feature-grid, .blog-list {
    flex-direction: column !important;
    gap: 20px;
  }
  .feature-grid > li, .blog-list article, .card {
    min-width: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-contact {
    align-items: flex-start;
  }
  .testimonial-card {
    width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  section { padding: 20px 2px; }
  .btn-primary, .btn-secondary {
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
  }
  .cookie-modal {
    padding: 16px 5px 8px 5px;
  }
}

/* ---------------------------------------------------
   ACCESSIBILITY & MISC
----------------------------------------------------- */
:focus-visible {
  outline: 2px solid #A6D6B5 !important;
  outline-offset: 2px;
}

/* Ensure min space between widget/cards */
.card, .testimonial-card, .feature-grid > li, .blog-list article {
  margin-bottom: 20px;
}

/* Hide visually */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---------------------------------------------------
   END OF CSS
----------------------------------------------------- */
