/* =======================================================================
   CSS RESET & ROOT VARIABLES - Nature Organic Aesthetic 
   ======================================================================= */
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 {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  background: #F8F7F1;
  color: #3A4431;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #255987;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3E9F8E;
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* =======================================================================
   BRAND & COLOR VARIABLES (with fallbacks)
   ======================================================================= */
:root {
  --color-primary: #255987;
  --color-primary-rgb: 37,89,135;
  --color-secondary: #3E9F8E;
  --color-accent: #FFDFA8;
  --color-bg: #F8F7F1;
  --color-card: #FFFFFF;
  --color-card-accent: #F6F3E8;
  --color-green: #577B63;
  --color-brown: #B7A16A;
  --color-earth: #DCCDB2;
  --color-text: #3A4431;
  --color-heading: #27513C;
  --color-border: #D0D6C8;
  --color-shadow: rgba(87, 123, 99, 0.10);
}

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

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', cursive;
  color: var(--color-heading);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-size: 1rem;
}
strong, b {
  font-weight: 600;
  color: var(--color-primary);
}

.text-section {
  margin-bottom: 32px;
  color: var(--color-text);
  font-size: 1.08rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* =======================================================================
   LAYOUT CONTAINER SPACING FOR FLEXBOX
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.card-grid,
.featured-items-list,
.promo-list,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: 1px solid var(--color-border);
  min-width: 250px;
  max-width: 570px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 4px 20px rgba(62,159,142,0.17);
  background: var(--color-earth);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

.value-list, .how-to-access, .benefits-list ul, .user-rights-list, .cookie-types, .cookie-management-instructions, .user-obligations, .contact-info {
  margin: 0 0 20px 0;
  padding-left: 22px;
}

/* =======================================================================
   NAVIGATION & HEADER
   ======================================================================= */
header {
  background: #EBE8DC;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1050;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 30px;
}
header img {
  height: 48px;
  width: auto;
  border-radius: 13px;
  background: var(--color-accent);
  padding: 5px 9px;
  box-shadow: 0 1px 10px var(--color-shadow);
}
nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
  background: var(--color-accent);
  color: var(--color-green);
  outline: none;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-size: 1.19rem;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-weight: 600;
  box-shadow: 0 3px 18px var(--color-shadow);
  cursor: pointer;
  outline: none;
  letter-spacing: 0.05em;
  margin-left: 16px;
  transition: background 0.2s, box-shadow 0.17s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-green);
  box-shadow: 0 6px 30px rgba(37,89,135,0.18);
  color: var(--color-accent);
  transform: translateY(-1px) scale(1.03);
}

/* MOBILE BURGER MENU ----------------------------------------- */
.mobile-menu-toggle {
  display: none;
  color: var(--color-primary);
  background: none;
  border: none;
  font-size: 2rem;
  margin-left: 12px;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--color-green);
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250, 248, 235,0.96);
  transform: translateX(-100%);
  z-index: 2100;
  transition: transform 0.36s cubic-bezier(0.77,0.08,0.45,0.96);
  box-shadow: 2px 0 40px 0 var(--color-shadow);
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-primary);
  padding: 4px 20px 16px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: 16px;
}
.mobile-nav a {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  color: var(--color-green);
  padding: 14px 36px;
  border-radius: 30px;
  width: 90vw;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 998px) {
  nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
}
@media (min-width: 999px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =======================================================================
   HERO SECTION, ORGANIC SHAPES, CARDS
   ======================================================================= */
.hero {
  background: linear-gradient(120deg, #F8F7F1 70%, #E3EDD7 100%);
  min-height: 340px;
  border-radius: 0 0 80px 30px/0 0 60px 50px;
  box-shadow: 0 3px 22px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  margin-top: 38px;
}
.hero h1, .hero p {
  color: var(--color-green);
}
.hero .cta-btn {
  background: var(--color-primary);
  color: #fff;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Organic Card Styles */
.feature-card,
.service-card {
  background: var(--color-card-accent);
  border-radius: 32px 16px 32px 24px/36px 28px 28px 32px;
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 1.5px solid var(--color-border);
  padding: 26px 21px 26px 25px;
  min-width: 230px;
  max-width: 285px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border 0.16s, background 0.20s;
  position: relative;
}
.feature-card img,
.service-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 6px;
  background: #E6EDE1;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.feature-card:hover,
.service-card:hover {
  background: var(--color-accent);
  box-shadow: 0 8px 38px rgba(62,159,142,0.21);
  border: 1.5px solid var(--color-secondary);
}

.feature-grid, .promo-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* =======================================================================
   SECTION SPECIFIC & ORGANIC SHAPE ACCENTS
   ======================================================================= */
.features {
  background: #F5F9F1;
  border-radius: 62px 80px 32px 48px/32px 48px 48px 40px;
}
.promo-teaser, .about-teaser, .promo-list, .newsletter-signup, .consulting, .cta {
  background: #F6F3E8;
  border-radius: 48px 72px 36px 48px/36px 40px 48px 40px;
  margin-bottom: 50px;
}

.pickup-info-box {
  background: #E3EDD7;
  color: var(--color-heading);
  border-radius: 15px;
  padding: 14px 20px;
  margin-bottom: 18px;
  font-weight: bold;
  border-left: 6px solid var(--color-green);
}

/* Specials for about/valori */
.valori {
  background: #EDF6E0;
  border-radius: 36px 50px 36px 32px/36px 35px 48px 48px;
}

.confirmation {
  background: #F8F7F1;
  border-radius: 48px 22px 42px 38px/32px 35px 32px 25px;
  min-height: 260px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

/* =======================================================================
   TESTIMONIALS
   ======================================================================= */
.testimonials {
  background: #FFFDF8;
  border-radius: 24px 30px 28px 36px/32px 48px 16px 28px;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* =======================================================================
   FORMS, MAPS & TEXT SUPPORT
   ======================================================================= */
input, textarea, select {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #FCF9F2;
  box-shadow: 0 1px 3px var(--color-shadow);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-secondary);
  border-color: var(--color-green);
}

.map-embed {
  background: #F6F3E8;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 1px 9px var(--color-shadow);
  margin-bottom: 24px;
}

.category-filter-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.category-filter-menu a {
  font-family: 'Baloo 2', cursive;
  color: var(--color-green);
  background: #F0EAD2;
  border-radius: 30px;
  padding: 9px 27px;
  font-size: 1.13rem;
  transition: background 0.2s, color 0.2s;
}
.category-filter-menu a:hover,
.category-filter-menu a:focus {
  color: #fff;
  background: var(--color-secondary);
}

ol.steps-list, .user-obligations {
  list-style-type: decimal;
  margin: 0 0 20px 20px;
}
ol.steps-list li {
  margin-bottom: 10px;
  padding-left: 10px;
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  background: #F5F9F1;
  color: var(--color-green);
  border-top: 2px solid #F6F3E8;
  padding: 45px 0 25px;
  margin-top: 70px;
  font-size: 1rem;
  box-shadow: 0 -2px 14px var(--color-shadow);
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
.footer-menu {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--color-primary);
  padding: 4px 16px;
  border-radius: 10px;
  font-size: 1rem;
  background: #F6F3E8;
  transition: background 0.20s, color 0.15s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-info {
  text-align: center;
  color: var(--color-green);
}
.footer-info a {
  color: var(--color-primary);
  font-weight: 500;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8ea;
  color: #29513d;
  box-shadow: 0 -2px 16px rgba(87,123,99,0.12);
  z-index: 2222;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 26px 24px 20px 24px;
  gap: 28px;
  width: 100vw;
  font-size: 1.04rem;
  animation: fadeInBanner 0.5s;
}
@keyframes fadeInBanner {
  from { opacity:0; transform: translateY(40px); }
  to {opacity:1; transform: none;}
}
.cookie-consent-banner__text {
  flex: 1 1 0;
}
.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-left: 20px;
}
.cookie-btn,
.cookie-btn-primary {
  font-family: 'Baloo 2', cursive;
  padding: 11px 25px;
  border-radius: 28px;
  border: 0;
  cursor: pointer;
  font-size: 1.04rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  background: var(--color-accent);
  color: var(--color-primary);
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.18s, color 0.16s, box-shadow 0.17s;
}
.cookie-btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--color-green);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,62,49,0.32);
  z-index: 2333;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.45s;
}
@keyframes modalFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #FEFCF4;
  border-radius: 24px 36px 24px 36px;
  padding: 36px 28px;
  box-shadow: 0 6px 42px 0 rgba(62,159,142,0.18);
  min-width: 325px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px; height: 22px;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: #CECECE;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 25px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-green);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
}

/* =======================================================================
   RESPONSIVE DESIGN (Mobile First)
   ======================================================================= */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.12rem; }
  .section, section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .card-container, .card-grid, .feature-grid, .promo-list, .service-grid, .content-wrapper, .testimonials .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-card, .service-card {
    min-width: 0;
    max-width: 100%;
    padding: 18px 14px;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: 0;
    padding: 10px 10px 18px 12px;
  }
  .footer-menu {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 60px;
  }
  .mobile-menu {
    padding-top: 6px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 8px 12px 8px;
    font-size: 0.97rem;
  }
  .cookie-consent-banner__actions {
    gap: 9px;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-modal {
    min-width: 0;
    padding: 22px 7vw;
  }
}

/* Hide scroll on mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* =======================================================================
   UTILITIES FOR ORGANIC STYLE & SHADOWS
   ======================================================================= */
.shadow {
  box-shadow: 0 4px 28px rgba(87,123,99,0.17);
}
.rounded-xl {
  border-radius: 48px;
}
.bg-earth {
  background: var(--color-earth);
}
.bg-green {
  background: var(--color-green);
  color: #fff;
}
.bg-accent {
  background: var(--color-accent);
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-green {
  color: var(--color-green) !important;
}

/* =======================================================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ======================================================================= */
a, .cta-btn, .feature-card, .service-card, .footer-menu a, .category-filter-menu a, .cookie-btn, .cookie-btn-primary {
  transition: background 0.17s, color 0.15s, box-shadow 0.19s, transform 0.14s;
}
.feature-card:active, .service-card:active, .cta-btn:active, .cookie-btn:active, .cookie-btn-primary:active {
  transform: scale(0.98);
}

/* =======================================================================
   ACCESSIBILITY
   ======================================================================= */
:focus {
  outline: 2px solid var(--color-secondary) !important;
  outline-offset: 1px;
}

/* END */
