/* =============================
   CSS RESET & NORMALIZATION
============================= */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F3F7F1;
  color: #181818;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: #346735;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #D7A15F;
  outline: none;
}
img {
  border-style: none;
  display: block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

/* =============================
   BRAND COLORS & GLOBALS
============================= */
:root {
  --primary: #346735;
  --primary-dark: #275127;
  --secondary: #F3F7F1;
  --white: #FFFFFF;
  --accent: #D7A15F;
  --accent-dark: #A16E2A;
  --shadow: 0 4px 24px 0 rgba(52,103,53,0.08);
  --text-title: #181818;
  --text-body: #222;
  --bg-vibrant: #fffbe6;
  --bg-card: #fff;
  --vibrant-a: #FF665A;
  --vibrant-b: #00CFC1;
  --vibrant-c: #FFD938;
  --error: #D7263D;
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: local('Merriweather Bold'), local('Merriweather-Bold');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato'), local('Lato-Regular');
}

body {
  font-family: 'Lato', Arial, sans-serif;
  background-color: var(--secondary);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -2px;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
}
h2 {
  font-size: 2rem;
  color: var(--primary-dark);
}
h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
}
p, li, blockquote, span {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-body);
}
strong {
  font-weight: bold;
  color: var(--primary);
}
blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  margin: 20px 0;
  padding: 11px 22px;
  background: var(--bg-vibrant);
  color: var(--primary);
  border-radius: 12px;
}

/* =============================
   FLEXBOX SPACING & CONTAINERS
============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  min-width: 260px;
  transition: transform 0.18s cubic-bezier(.4,1.2,.4,1), box-shadow 0.18s cubic-bezier(.4,1.2,.4,1);
}
.card:hover, .card:focus-within {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 34px 0 rgba(52,103,53,0.16);
}
.content-grid {
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 20px 0 rgba(0,0,0,0.04);
  border-radius: 18px;
  margin-bottom: 24px;
  margin-top: 16px;
  flex-direction: column;
  max-width: 620px;
  color: #181818;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  background: var(--white);
  box-shadow: 0 2px 20px 0 rgba(52, 103, 53, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px 0;
}
header nav a img {
  height: 46px;
  width: auto;
  margin-right: 30px;
}
header nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav ul li a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 7px;
  transition: 
    background 0.16s,
    color 0.16s,
    box-shadow 0.18s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(52,103,53,0.14);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: var(--accent);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(215,161,95,0.11);
  z-index: 202;
  border: none;
  margin-left: auto;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--white);
  outline: none;
}

/* =============================
   MOBILE NAVIGATION (OVERLAY)
============================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(52,103,53,0.94);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.76,1.6,.34,.98);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary-dark);
  align-self: flex-end;
  margin: 18px 26px 0 0;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 28px 28px 0 38px;
  gap: 18px;
}
.mobile-nav a {
  color: #fffbe6;
  font-weight: bold;
  font-size: 1.35rem;
  background: none;
  border-radius: 8px;
  padding: 12px 8px;
  margin-bottom: 8px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
  letter-spacing: .7px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

/* =============================
   HERO (VIBRANT ENERGETIC STYLE)
============================= */
.hero {
  min-height: 52vh;
  background: linear-gradient(116deg, var(--vibrant-b) 0%, var(--white) 85% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 60px;
  padding: 70px 0 40px 0;
  border-bottom: 7px solid var(--accent);
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 750px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 var(--accent), 0 3px 12px rgba(255,216,56,0.06);
  letter-spacing: -1.5px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

/* =============================
   CALL TO ACTION BUTTONS
============================= */
.cta, a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: bold;
  padding: 13px 34px;
  margin-top: 13px;
  margin-bottom: 16px;
  min-width: 155px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 18px 0 rgba(215,161,95,0.21);
  letter-spacing: .89px;
  transition: background 0.18s, color 0.15s, transform 0.16s;
  outline: none;
}
.cta.primary, a.cta.primary {
  background: var(--primary);
  color: var(--white);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary, a.cta.secondary {
  background: var(--vibrant-c);
  color: var(--primary-dark);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
.cta:active {
  transform: scale(.98);
  background: var(--primary-dark);
}

/* =============================
   FEATURES SECTIONS
============================= */
.features, .services-overview ul, .category-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.features ul, .services-overview ul, .category-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.features li, .services-overview li, .category-list li {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(52,103,53,.10);
  min-width: 250px;
  flex: 1 1 225px;
  max-width: 320px;
  padding: 28px 19px 19px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.15s cubic-bezier(.4,.9,.52,1.3);
  margin-bottom: 20px;
}
.features li:hover,
.services-overview li:hover,
.category-list li:hover {
  box-shadow: 0 8px 32px 0 rgba(215,161,95,0.12);
  cursor: pointer;
}
.features img, .services-overview img, .services img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  filter: hue-rotate(-7deg) saturate(1.2);
}
.features h3,
.services-overview span,
.category-list strong {
  margin-top: 8px;
  color: var(--primary);
  font-size: 1.22rem;
  font-family: 'Merriweather', serif;
  font-weight: bold;
}
.features p,
.category-list li {
  color: var(--primary-dark);
  font-size: 1rem;
}

/* =============================
   ABOUT/INFO/CONTENT SECTIONS
============================= */
.about-short, .about, .mission, .team, .gdpr-info, 
.privacy-policy, .cookies-policy, .terms-of-use, .thank-you, .catalog-intro, .gift-lists, .contact, .assistance {
  margin-bottom: 60px;
  padding: 40px 0px;
  background: var(--bg-vibrant);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(255, 216, 56, 0.06);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 900px;
  margin: 0 auto;
  gap: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

/* =============================
   CARD & LIST STYLES
============================= */
.card, .services li, .category-list li {
  box-shadow: var(--shadow);
  border-radius: 14px;
  background: var(--white);
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.services li {
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 330px;
  padding: 24px 18px;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
  background: var(--white);
}

/* =============================
   TESTIMONIALS
============================= */
.testimonials {
  margin-bottom: 60px;
  background: var(--white);
  border-radius: 18px;
  padding: 46px 0 24px 0;
  box-shadow: 0 8px 32px 0 rgba(215,161,95,0.05);
}
.testimonials h2 {
  margin-bottom: 22px;
  font-weight: bold;
  letter-spacing: .5px;
}
.testimonial-card blockquote {
  color: var(--primary-dark);
  font-size: 1.13rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 10px;
  border-left: 5px solid var(--accent);
  background: var(--secondary);
  border-radius: 10px;
  padding-left: 15px;
}
.testimonial-card p {
  color: #181818;
  margin: 0;
  font-weight: 600;
}
.testimonial-card strong {
  color: var(--accent-dark);
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 38px 0 24px 0;
  position: relative;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.97rem;
  color: var(--white);
}
footer nav a {
  color: var(--white);
  text-decoration: underline dotted;
  font-weight: 500;
  letter-spacing: .09em;
  opacity: 0.97;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--accent);
  text-decoration: underline solid;
  opacity: 1;
}
footer p {
  color: var(--white);
  opacity: 0.86;
  font-size: 0.96rem;
  margin-top: 6px;
}

/* =============================
   COOKIE CONSENT BANNER
============================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  font-size: 1rem;
  box-shadow: 0 -8px 28px 0 rgba(52,103,53,0.18);
  z-index: 998;
  animation: cookieBannerSlide 0.8s cubic-bezier(.63,1.7,.29,.85) 1;
}
@keyframes cookieBannerSlide {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner span {
  margin-right: 12px;
  max-width: 420px;
  text-align: left;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 12px;
  margin-left: 16px;
}
.cookie-consent-banner button {
  padding: 9px 20px;
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
}
.cookie-consent-banner button.accept {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-consent-banner button.accept:hover {
  background: var(--vibrant-c);
}
.cookie-consent-banner button.reject {
  background: var(--vibrant-a);
  color: var(--white);
}
.cookie-consent-banner button.reject:hover {
  background: #F44336;
}
.cookie-consent-banner button.settings {
  background: var(--primary);
  color: var(--white);
}
.cookie-consent-banner button.settings:hover {
  background: #222;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.40);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.35s cubic-bezier(.31,.92,.51,1);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 6px 54px 0 rgba(52,103,53,0.15);
  padding: 36px 30px 28px 30px;
  max-width: 420px;
  min-width: 340px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideInCookieModal 0.36s cubic-bezier(.31,.92,.51,1);
}
@keyframes slideInCookieModal {
  0% { transform: translateY(120px) scale(0.95); opacity: 0.81; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .close-modal {
  background: var(--vibrant-a);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 10px;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #A70028;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 6px 0;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-modal .cookie-category label {
  font-weight: bold;
}
.cookie-modal .cookie-category.essential label:after {
  content: ' (sempre attivo)';
  color: var(--accent-dark);
  font-size: 0.87rem;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background 0.12s;
}

/* =============================
   RESPONSIVE BREAKPOINTS
============================= */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .content-wrapper {
    max-width: 98vw;
  }
  .features ul, .category-list ul, .services-overview ul {
    flex-wrap: wrap;
    gap: 16px;
  }
  .features li, .services li, .category-list li {
    min-width: 175px;
    max-width: 100%;
    flex: 1 1 230px;
    font-size: 0.98rem;
    padding: 16px 10px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .section, .about-short, .about, .mission, .team, .gdpr-info, 
  .privacy-policy, .cookies-policy, .terms-of-use, .thank-you, .catalog-intro, .gift-lists, .contact, .assistance {
    padding: 22px 0;
    border-radius: 13px;
    margin-bottom: 39px;
  }
  .card {
    padding: 18px 10px;
    border-radius: 11px;
    min-width: 90vw;
  }
  
  .features ul, .category-list ul, .services-overview ul, .services ul {
    flex-direction: column;
    gap: 11px;
    margin-top: 14px;
  }
  .features li, .services li, .category-list li, .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    padding: 14px 8px;
    border-radius: 10px;
  }
  .testimonial-card {
    gap: 14px;
    padding: 12px 8px;
  }
  .content-grid, .text-image-section, .features, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    align-items: flex-start;
    gap: 11px;
  }
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .cookie-modal {
    min-width: 92vw;
    padding: 20px 10px 18px 10px;
  }
}

/* =============================
   MISCELLANEOUS MICRO-INTERACTIONS
============================= */
.cta, .cookie-consent-banner button, .cookie-modal .modal-actions button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.16s, transform 0.16s, box-shadow 0.18s;
}
.cta:active,
.cookie-consent-banner button:active,
.cookie-modal .modal-actions button:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active {
  transform: scale(0.97);
}
nav a, .mobile-nav a {
  transition: color 0.16s, background 0.16s, box-shadow 0.15s;
}

/* =============================
   ANIMATIONS
============================= */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0 !important;
    transition-duration: 0 !important;
  }
}
