/* === CSS RESET & NORMALIZE === */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body {
  padding: 0; margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #41344C;
  background: #F4EFEA;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  background-color: #F4EFEA;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #6B7E47; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #41344C; text-decoration: underline; }
ul, ol { padding-left: 24px; margin: 18px 0; }
li { margin-bottom: 8px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-top: 0;
  color: #41344C;
  line-height: 1.22;
}
h1 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}
p, address {
  margin: 12px 0;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #41344C;
}
strong { font-weight: 700; }

/* === NATURE ORGANIC STYLE COLORS === */
:root {
  --primary: #41344C; /* eggplant dark */
  --secondary: #BAA77B; /* sand gold */
  --accent: #F4EFEA; /* light background, offwhite */
  --organic-green: #6B7E47; /* olive green accent */
  --terracotta: #B86E3C; /* organic highlight color */
  --earth-brown: #6D5137; /* brown typography/accent */
  --error: #B94E48;
  --shadow: rgba(82,74,66,0.07);
}

/* === GLOBAL CONTAINERS === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === HEADER / NAVIGATION === */
header {
  background: #F9F6F1;
  border-bottom: 1.5px solid #E9E1D3;
  padding: 0;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 72px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
  border-radius: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--organic-green);
  color: #fff;
}
.btn-primary {
  background: var(--organic-green);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 32px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--shadow);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s, color 0.20s, transform 0.14s;
  outline: none;
  margin-left: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--organic-green);
  margin-left: 12px;
  cursor: pointer;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus { color: var(--primary); }
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,239,234,0.98);
  z-index: 200;
  box-shadow: 0 2px 24px var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.5,.1,.3,1);
  padding: 30px 20px 20px 32px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--organic-green);
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 4px 10px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--organic-green);
  color: #fff;
}

@media (max-width: 992px) {
  header .container nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === HERO / ORGANIC SECTION === */
.hero {
  background: radial-gradient(ellipse at 60% 30%, #F8F5F1 70%, #E5E1CA 120%);
  border-bottom-left-radius: 72px 56px;
  border-bottom-right-radius: 56px 76px;
  min-height: 290px;
  box-shadow: 0 4px 30px var(--shadow);
  position: relative;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--organic-green);
  letter-spacing: -1px;
}
.hero p {
  color: var(--earth-brown);
  font-size: 1.11rem;
  max-width: 540px;
}
.hero .btn-primary { margin-top: 12px; }

/* === MAIN SECTION SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 14px var(--shadow);
}

/* === FLEXBOX LAYOUTS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 230px;
  background: #F4EFEA;
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.29s, transform 0.19s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 32px var(--shadow);
  transform: translateY(-4px) scale(1.035);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: brightness(0.85) sepia(0.2) hue-rotate(35deg);
}

/* === Services List (Consulenza, Workshop) === */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-list > div {
  background: #F8F7F2;
  border-radius: 20px;
  flex: 1 1 220px;
  box-shadow: 0 1.5px 8px var(--shadow);
  padding: 24px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.16s;
}
.service-list > div:hover {
  box-shadow: 0 6px 30px var(--shadow);
  transform: translateY(-3px) scale(1.03);
}
.service-list strong {
  color: var(--organic-green);
  font-size: 1.14rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 8px;
}

/* === Cards and Card-Containers === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FCFBF8;
  border-radius: 20px;
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 9px var(--shadow);
  position: relative;
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 7px 32px var(--shadow);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* === Flex layouts for content sections === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* === Testimonials === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F4EFEA;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 2px 15px var(--shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--organic-green);
  max-width: 680px;
  transition: box-shadow 0.2s, border-color 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 38px var(--shadow);
  border-left: 8px solid var(--primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #41344C;
  margin-bottom: 2px;
}
.testimonial-meta {
  font-size: 0.99rem;
  color: #6D5137;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.02em;
  margin-top: -8px;
  opacity: 0.95;
}

/* === Feature Items === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Section and Content Spacing === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === Footer === */
footer {
  background: #41344C;
  color: #fff;
  border-top-left-radius: 46px 22px;
  border-top-right-radius: 72px 26px;
  box-shadow: 0 -2px 22px var(--shadow);
  margin-top: 48px;
  padding: 24px 0 12px 0;
}
footer .container { }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 220px;
}
.footer-brand img {
  width: 48px; height: 48px;
}
.footer-brand p {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #E9E1D3;
  font-size: 0.99rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color .16s;
}
.footer-menu a:hover, .footer-menu a:focus { color: var(--secondary); }
.footer-contact h3 {
  margin-bottom: 4px;
  color: var(--secondary);
  font-size: 1.05rem;
}
.footer-contact ul {
  color: #F4EFEA;
  font-size: 0.97rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact img {
  width: 18px; height: 18px;
  filter: brightness(1.08) contrast(1.04);
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.footer-social a img {
  width: 26px; height: 26px;
  border-radius: 50%;
  transition: transform 0.17s, box-shadow 0.18s;
  box-shadow: 0 1.5px 7px var(--shadow);
}
.footer-social a:hover img {
  transform: scale(1.13) rotate(-5deg);
  box-shadow: 0 5px 24px var(--shadow);
  background: #BAA77B22;
}

/* === Responsive Design (Mobile First) === */
@media (max-width: 768px) {
  section, .section {
    padding: 22px 6px;
    margin-bottom: 38px;
    border-radius: 17px;
  }
  .hero {
    min-height: 210px;
    padding: 22px 8px;
    border-bottom-left-radius: 42px 28px;
    border-bottom-right-radius: 32px 38px;
  }
  .footer-brand, .footer-menu, .footer-contact, .footer-social {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

/* === ORGANIC SHAPES === */
section, .card, .testimonial-card, .feature-grid > div, .service-list > div {
  border-radius: 28px 56px 22px 34px / 30px 40px 22px 39px;
}
@media (max-width: 768px) {
  section, .card, .testimonial-card, .feature-grid > div, .service-list > div {
    border-radius: 13px 22px 8px 18px / 14px 18px 9px 14px;
  }
}

/* === NATURAL ORGANIC ELEMENT TRANSITIONS === */
section, .card, .testimonial-card, .feature-grid > div, .service-list > div {
  transition: box-shadow 0.18s, border-radius 0.18s, background 0.18s;
}

/* === BUTTONS & MICRO-INTERACTIONS === */
button, .btn-primary {
  transition: background 0.15s, color 0.18s, transform 0.13s;
  outline: none;
}
button:active, .btn-primary:active {
  transform: scale(0.98);
}

/* === TABLES (If Any) === */
table {
  border-collapse: collapse;
  width: 100%;
  background: #F8F5F1;
  margin-bottom: 1em;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px var(--shadow);
}
th, td {
  padding: 12px 6px;
  border-bottom: 1px solid #E5E1CA;
  text-align: left;
}
th {
  background: #E4E1D2;
  color: var(--primary);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: #fff;
  color: #41344C;
  box-shadow: 0 -2px 26px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 14px 20px 14px;
  font-size: 0.98rem;
  border-top-left-radius: 28px 34px;
  border-top-right-radius: 62px 24px;
  animation: cookieIn 0.55s cubic-bezier(.53,1.5,.19,1.08);
}
@keyframes cookieIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 18px;
  padding: 10px 20px;
  font-size: 1rem;
  margin: 0 2px;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.13s;
}
.cookie-banner .accept {
  background: var(--organic-green);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--primary);
}
.cookie-banner .reject {
  background: #fff1ef;
  color: var(--earth-brown);
  border: 1px solid var(--earth-brown);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--error);
  color: #fff;
  border: 1px solid var(--error);
}
.cookie-banner .settings {
  background: #F4EFEA;
  color: var(--organic-green);
  border: 1px solid var(--organic-green);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--organic-green);
  color: #fff;
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 9999;
  background: rgba(65,52,76,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.38s cubic-bezier(.52,1.33,.13,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #41344C;
  border-radius: 32px 62px 22px 42px;
  box-shadow: 0 8px 48px var(--shadow);
  padding: 38px 24px 24px 24px;
  min-width: 300px;
  max-width: 97vw;
  animation: cookiePanelSlide 0.39s cubic-bezier(.61,.6,.24,1.21);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@keyframes cookiePanelSlide {
  from { transform: scale(0.94) translateY(32px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F9F6F1;
  border-radius: 19px;
  padding: 11px 16px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #6D5137;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--organic-green);
  width: 20px; height: 20px;
}
.essential-label {
  font-weight: 600;
  color: var(--organic-green);
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--organic-green);
  position: absolute;
  top: 13px; right: 18px;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover { color: var(--primary); }

@media (max-width: 600px) {
  .cookie-modal-content {
    min-width: 0;
    padding: 19px 10px 13px 10px;
    border-radius: 18px 32px 13px 18px;
    gap: 14px;
  }
}

/* === MISC ORGANIC DECORATIONS === */
.hero:before {
  content: '';
  position: absolute;
  left: -36px; top: -44px;
  width: 170px; height: 110px;
  background: #D1D8BD;
  border-radius: 80% 60% 80% 100%;
  opacity: 0.24;
  z-index: 0;
  pointer-events: none;
}
.hero:after {
  content: '';
  position: absolute;
  right: -58px; bottom: -24px;
  width: 158px; height: 90px;
  background: #6B7E47;
  border-radius: 83% 88% 63% 100%;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero:before,.hero:after {
    display: none;
  }
}

/* === FORM ELEMENTS (for contact pages) === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 15px;
  border: 1.3px solid #E9E1D3;
  padding: 12px 10px;
  background: #fff;
  color: #41344C;
  margin-bottom: 17px;
  width: 100%;
  box-shadow: 0 1px 4px var(--shadow);
  transition: border-color .18s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--organic-green);
  background: #F4EFEA;
  outline: none;
}
label {
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 3.5px;
}

/* === SPECIFIC ALIGNMENTS === */
.align-center { text-align: center; align-items: center; }
.align-left { text-align: left; align-items: flex-start; }
.align-right { text-align: right; align-items: flex-end; }

/* === TYPOGRAPHY SCALE === */
.display-xxl { font-size: 3rem; font-family: 'Playfair Display', serif; }
.display-xl { font-size: 2.25rem; font-family: 'Playfair Display', serif; }
.display-lg { font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.display-md { font-size: 1.15rem; font-family: 'Playfair Display', serif; }
@media (max-width: 600px) {
  .display-xxl { font-size: 2rem; }
  .display-xl { font-size: 1.44rem; }
}

/* === ACCESSIBILITY & FOCUS === */
a, button, .btn-primary {
  outline: none;
}
a:focus-visible, .btn-primary:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 2px var(--secondary);
  outline: none;
}

/* === ORGANIC SPACING RULES === */
.card, .testimonial-card, .feature-grid > div, .service-list > div {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .service-list, .content-grid {
  gap: 24px !important;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.text-image-section {
  gap: 30px;
}

/* === PREVENT ABSOLUTE LAYOUT FOR CONTENT === */
.card,
.card-content,
.testimonial-card,
.feature-grid > div,
.service-list > div {
  position: relative !important;
  z-index: 1;
}

/* === VISUAL HIERARCHY === */
h1, .display-xxl { color: var(--organic-green) !important; }
h2, .display-xl { color: var(--primary) !important; margin-bottom: 12px; }
h3, .display-lg { color: var(--earth-brown); margin-bottom: 6px; }

/* === ADDRESS STYLING === */
address {
  font-style: normal;
  background: #F8F5F1;
  padding: 8px 14px;
  border-radius: 14px;
  color: var(--organic-green);
  margin-bottom: 7px;
  font-size: 1.02rem;
}

/* === ERROR COLOR UTILITY === */
.text-error { color: var(--error); }

/* === UTILITY CLASSES === */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pb-2 { padding-bottom: 16px; }
.pb-3 { padding-bottom: 24px; }


/* === NO CSS GRID, NO COLUMNS — FLEX ONLY === */
/* Verified: No grid, no columns, no break-inside, no column-count, NO display:grid ANYWHERE */