/* 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, 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; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #F0E3CD 0%, #FFF 100%);
  color: #5B341E;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style-position: inside; }
a {color: #387A54; text-decoration: none; transition: color .2s;}
a:hover, a:focus { color: #83553C; text-decoration: underline; }

/* FONTS ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #5B341E;
  line-height: 1.13;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.13rem; font-weight: 700; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.2rem; }
  body { font-size: 18px; }
}

p, ul, ol, li, span, address { font-family: 'Open Sans', Arial, sans-serif; }

strong { font-weight: 600; }
em { font-style: italic; }

/* GENERAL CONTAINERS/PATTERNS ------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SPACING & SECTION LAYOUTS ------------- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.features, .feature-grid, .services-cards, .steps-list, .product-list, .recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container, .product-list, .feature-grid, .recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
}
.content-grid, .services-cards, .product-list {
  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: 12px;
  padding: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(56, 122, 84,.11);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 480px;
  border: 1px solid #F0E3CD;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 15px;
  padding: 20px 16px;
  box-shadow: 0 1px 8px 0 rgba(56, 122, 84,.06);
  width: calc(100% - 24px);
}

@media (min-width: 700px) {
  .features, .feature-grid, .services-cards, .product-list, .recipe-cards {
    flex-direction: row;
    gap: 32px;
  }
  .content-wrapper { gap: 36px; }
  .feature-item { width: calc(33% - 32px); }
  .recipe-card, .product-item, .service-card { min-width: 240px; flex: 1 1 0; }
}
@media (max-width: 768px) {
  .text-image-section, .features, .feature-grid, .services-cards, .steps-list, .product-list, .recipe-cards {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item { width: 100%; }
}

/* HEADER & NAVIGATION ------------------- */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 20px 0 rgba(56, 122, 84, 0.04);
  position: sticky; top: 0; z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
  justify-content: flex-start;
}
.main-nav a {
  color: #83553C;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: linear-gradient(93deg, #F0E3CD 50%, #f8eee0 100%);
  color: #387A54;
}
.main-nav a img {
  height: 44px; width: auto; display: inline-block; vertical-align: middle;
}

/* MOBILE MENU -------------- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #fff;
  color: #83553C;
  font-size: 2rem;
  border: none;
  outline: none;
  padding: 8px 16px;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: 0 0 1px rgba(56,122,84,0.04);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1002;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { background: #F0E3CD; color: #387A54; }

@media (min-width: 1025px) {
  .mobile-menu-toggle {display: none;}
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(137deg,#F0E3CD 60%, #fff 100%);
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.77,0,.175,1);
    z-index: 1100;
    pointer-events: none;
    opacity: 0.98;
  }
  .mobile-menu.open {
    transform: translateX(0);
    pointer-events: all;
  }
  .mobile-menu-close {
    align-self: flex-end;
    font-size: 2.3rem;
    color: #387A54;
    background: none;
    border: none;
    margin: 24px 28px 0 0;
    cursor: pointer;
    z-index: 1120;
    transition: color .2s;
  }
  .mobile-menu-close:hover { color: #83553C; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 56px 32px;
    font-size: 1.17rem;
  }
  .mobile-nav a {
    color: #83553C;
    font-weight: 700;
    border-radius: 8px;
    padding: 16px 16px;
    background: #fff;
    transition: background .14s, color .14s;
    margin-left: 0; margin-right: 0;
    box-shadow: 0 1px 5px 0 rgba(56,122,84,0.06);
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #F0E3CD; color: #387A54;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* HERO & CALLOUTS ---------------------- */
.hero, .catalog-hero, .services-hero, .consigli-hero, .contacts-hero, .confirmation-section {
  background: linear-gradient(106deg, #F0E3CD 60%, #FFF 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 4px 32px 0 rgba(56,122,84,0.04);
  margin-bottom: 56px;
  padding: 56px 0 56px 0;
}
.hero h1, .catalog-hero h1, .services-hero h1, .consigli-hero h1, .contacts-hero h1, .confirmation-section h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
  color: #83553C;
}
.hero .cta-button,
.catalog-hero .cta-button,
.contacts-hero .cta-button,
.confirmation-section .cta-button {
  margin-top: 24px;
}
@media (min-width: 700px) {
  .hero, .catalog-hero, .services-hero, .consigli-hero, .contacts-hero, .confirmation-section {
    padding: 80px 0 80px 0;
  }
  .hero h1, .catalog-hero h1, .services-hero h1, .consigli-hero h1, .contacts-hero h1, .confirmation-section h1 {
    font-size: 2.8rem;
  }
}

/* BUTTONS  ----------------------------- */
.cta-button, .cookie-accept, .cookie-reject, .cookie-settings-button, .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  background: linear-gradient(90deg, #387A54 30%, #83553C 100%);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  border-radius: 22px;
  padding: 12px 32px;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(56, 122, 84,0.13);
  transition: background .2s, transform .13s, box-shadow .13s; 
}
.cta-button.primary {
  background: linear-gradient(97deg, #83553C 50%, #387A54 100%);
  color: #fff;
}
.cta-button.secondary {
  background: #F0E3CD;
  color: #387A54;
}
.cta-button:hover, .cookie-accept:hover, .cookie-settings-button:hover, .modal-close:hover {
  background: linear-gradient(93deg,#387A54 60%, #83553C 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px 0 rgba(56, 122, 84,0.18);
}

/* FORMS (for future extensions) ------------- */
input, textarea, select, button {
  font: inherit;
  box-sizing: border-box;
}
input[type=text], input[type=email], textarea, select {
  border-radius: 9px;
  border: 1.5px solid #F0E3CD;
  padding: 10px 14px;
  background: #FFF;
  color: #5B341E;
  max-width: 100%;
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: #387A54;
  outline: 1px solid #83553C;
}

/* LISTS & GRID-LIKE CONTENTS --------------- */
ul, ol {
  margin-left: 0;
  padding-left: 0.6em;
  margin-bottom: 16px;
  color: #83553C;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.featured-products, .product-list {
  padding-left: 0;
}
.product-item, .recipe-card {
  background: #fff;
  border-radius: 13px;
  padding: 18px 14px 16px 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px 0 rgba(56,122,84,0.10);
  border: 1px solid #F0E3CD;
  flex: 1 1 210px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width:800px) {
  .product-item, .recipe-card {
    min-width: 250px;
    max-width: 28%;
  }
}

.service-card {
  background: #387A54;
  color: #fff;
  border-radius: 16px;
  padding: 22px 18px 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(56,122,84,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  flex: 1 1 200px;
}
.service-card h3 {
  color: #F0E3CD;
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.service-price {
  font-weight: 600;
  color: #F0E3CD;
  background: rgba(131,85,60,0.13);
  border-radius: 10px;
  padding: 4px 12px;
  font-size: .98rem;
  margin-top: 4px;
}
.services-cards {
  gap: 24px;
}
@media (max-width: 600px) {
  .service-card, .product-item, .recipe-card {
    min-width: 100%;
    max-width: 100%;
  }
}

/****************** TESTIMONIALS ******************/
.testimonials {
  background: linear-gradient(93deg, #fff 70%, #F0E3CD 100%);
  border-radius: 38px;
}
.testimonial-card p {
  color: #5B341E;
  margin-bottom: 2px;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #387A54;
  font-weight: 600;
  font-size: .98rem;
  margin-top: 4px;
}

/****************** ABOUT & TEXT BLOCKS ******************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.text-section ul {
  margin-left: 0;
  padding-left: 0.6em;
}

/****************** STEPS & BENEFITS ******************/
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps-list h3 {
  margin-bottom: 6px;
}
.steps-list ol {
  list-style: decimal inside;
}

/****************** FOOTER  *******************/
footer {
  background: #387A54;
  color: #fff;
  padding: 30px 0 18px 0;
  margin-top: 62px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -1px 16px 0 rgba(56,122,84,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #F0E3CD;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border-radius: 7px;
  padding: 7px 13px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F0E3CD;
  color: #387A54;
}
.address-block {
  font-size: 1rem;
  line-height: 1.55;
  color: #F0E3CD;
  text-align: center;
  margin-top: 9px;
}

/**************** COOKIES CONSENT BANNER & MODAL ****************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: linear-gradient(98deg, #F0E3CD 60%, #FFF 100%);
  color: #5B341E;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 19px 18px;
  box-shadow: 0 -2px 20px 0 rgba(56,122,84,.12);
  border-radius: 16px 16px 0 0;
  max-width: 560px;
  width: 95%;
  margin: 0 auto;
  gap: 18px;
  transition: transform .23s cubic-bezier(.7,0,.3,1), opacity .19s;
  opacity: 1; transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(140px);
}
.cookie-banner p {
  font-size: 1.01rem;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.cookie-accept {
  background: linear-gradient(93deg, #387A54 60%, #83553C 100%);
}
.cookie-reject {
  background: #FFF;
  color: #387A54;
  box-shadow: 0 2px 7px 0 rgba(56,122,84,0.06);
}
.cookie-reject:hover {
  background: #F0E3CD;
}
.cookie-settings-button {
  background: #F0E3CD;
  color: #83553C;
}
.cookie-settings-button:hover {
  background: #387A54;
  color: #fff;
}

/* COOKIE MODAL POPUP -------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1400;
  background: rgba(56,122,84,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .18s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #5B341E;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(56,122,84,.16);
  padding: 34px 32px 18px 32px;
  min-width: 300px;
  max-width: 90vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookiesPopup .26s cubic-bezier(.76,0,.23,1);
}
@keyframes cookiesPopup {
  0% { opacity: 0; transform: scale(.96) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.27rem;
  color: #83553C;
  margin-bottom: 8px;
}
.cookie-modal-content .categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.cookie-modal-content input[type=checkbox]:disabled + span {
  color: #aaa;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #387A54;
  background: none;
  border: none;
  cursor: pointer;
}
.modal-close:hover {
  color: #83553C;
}

/******** RESPONSIVE LAYOUT ********/
@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  .cookie-banner { max-width: 99vw; padding: 16px 2vw; }
  .cookie-modal-content { padding: 16px 8px 10px 8px; min-width: unset; }
}

/********* MISCELLANEOUS/UTILITY CLASSES ************/
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-16 { padding-bottom: 16px !important; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/*********** VISUALS & ACCESSIBILITY *********/
::-webkit-input-placeholder, ::placeholder {
  color: #83553C;
  opacity: 0.8;
}
[role=dialog] { outline: 0; }

/* ICONS */
.feature-item img, .features ul img, .product-categories ul img {
  width: 34px; height: 34px;
  margin-right: 12px;
  margin-bottom: 0;
  display: inline-block;
}
.features ul li, .product-categories ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #387A54;
  background: #fff;
  border-radius: 11px;
  padding: 11px 13px 11px 11px;
  box-shadow: 0 1px 5px 0 rgba(56,122,84,0.07);
}

/******** CUSTOM VISUAL EFFECTS ********/
@media (hover: hover) {
  .card, .feature-item, .service-card, .product-item, .recipe-card {
    transition: box-shadow .2s, transform .12s;
  }
  .card:hover, .feature-item:hover, .service-card:hover, .product-item:hover, .recipe-card:hover {
    box-shadow: 0 6px 18px 0 rgba(131,85,60,0.14);
    transform: translateY(-4px) scale(1.03);
    z-index: 2;
  }
}

/********* ACCESSIBILITY FOCUS STATES ******/
a:focus,
.cta-button:focus,
button:focus,
input:focus,
.cookie-accept:focus,
.cookie-settings-button:focus,
.modal-close:focus {
  outline: 2px solid #387A54;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #F0E3CD;
}

/********** PRINT ************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {display: none !important;}
  main, .container {padding: 0 !important; margin: 0 !important; width: 100% !important;}
}
