/* RESET & BASE */
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFEECB;
  color: #222;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul {
  list-style: none;
  padding-left: 0;
}
a {
  color: #8B3424;
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s;
}
a:focus, a:hover {
  color: #496B2E;
  outline: none;
  box-shadow: 0 2px 0 0 #FFC13B;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
button, .cta-primary, .cta-secondary {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  appearance: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

/* VARIABLE DEFINITIONS (with solid color fallback) */
:root {
  --color-primary: #8B3424;
  --color-secondary: #FFEECB;
  --color-accent: #496B2E;
  --color-brand-dark: #254014;
  --color-brand-light: #fffdef;
  --color-warning: #FFC13B;
  --color-info: #2CC2ED;
  --radius: 18px;
  --shadow: 0 3px 12px rgba(139,52,36,0.1), 0 0.5px 1.5px rgba(73,107,46,0.05);
}

/* FONTS: playful/dynamic */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&family=Roboto:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Roboto', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  text-shadow: 3px 3px 0 #FFC13B11;
  line-height: 1.1;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-accent);
  text-shadow: 1px 2px 0 #ffeeca;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
p, li, a, ul {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
p {
  margin-bottom: 14px;
}
strong {
  font-weight: bold;
}

/* LAYOUT: universal flexible containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffdef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  margin-top: 8px;
  margin-bottom: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 26px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-2deg);
  box-shadow: 0 8px 30px rgba(139,52,36,0.2), 0 0.5px 1.5px rgba(73,107,46,0.18);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 11px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(73,107,46,0.10);
  border: 2px solid #FFEECB;
  color: #111;
  font-size: 1.08rem;
  min-width: 240px;
  max-width: 100%;
  transition: box-shadow 0.21s, border 0.21s;
}
.testimonial-card strong {
  color: var(--color-accent);
  font-size: 1.07rem;
  margin-bottom: 2px;
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
}
.testimonial-card p {
  color: #3a3a3a;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px #496B2E22;
  border-color: #FFC13B;
  transform: scale(1.04) rotate(1.2deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 10px;
}

/* LISTS FOR FEATURES */
ul {
  list-style: disc inside;
}
ul > li {
  margin-bottom: 8px;
  padding-left: 6px;
  position: relative;
}
ul > li strong {
  color: var(--color-primary);
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* CALL TO ACTION BUTTONS */
.cta-primary {
  display: inline-block;
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  padding: 13px 36px;
  border-radius: 40px;
  background: var(--color-primary);
  color: #fff;
  margin: 12px 0;
  box-shadow: 0 3px 14px #8B342421;
  border: 2.5px solid var(--color-primary);
  outline: none;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.19s, transform 0.17s;
  position: relative;
  z-index: 2;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: #fffdef;
  box-shadow: 0 8px 28px #496B2E33;
  transform: translateY(-2px) scale(1.06) rotate(-1deg);
  border-color: #FFC13B;
}
.cta-secondary {
  display: inline-block;
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-size: 1.08rem;
  padding: 10px 28px;
  border-radius: 35px;
  background: var(--color-accent);
  color: #fff;
  margin: 10px 0;
  border: 2px solid var(--color-accent);
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: #FFEECB;
  border-color: #FFC13B;
  transform: scale(1.08) rotate(1deg);
}
/* Buttons in cookie banner and everywhere */
.btn-small {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 32px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  margin: 0 6px;
  transition: background 0.16s, color 0.14s;
}
.btn-small:hover, .btn-small:focus {
  background: var(--color-primary);
  color: #FFC13B;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 4px solid #FFC13B;
  box-shadow: 0 3px 18px #8B342438;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
header nav a img {
  height: 44px;
  width: auto;
  border-radius: 7px;
  background: #FFEECB;
  padding: 2px 7px;
  margin-right: 10px;
  box-shadow: 0 1px 6px #8B342427;
}
header nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-size: 1.08rem;
  color: var(--color-accent);
  padding: 7px 16px;
  border-radius: 30px;
  background: transparent;
  font-weight: 400;
  transition: background 0.18s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
header nav .cta-primary {
  margin-left: 22px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1101;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 5px 17px;
  border: 2px solid #FFC13B;
  box-shadow: 0 2px 8px #8B34241c;
  margin-left: 10px;
  transition: background 0.19s, color 0.15s, transform 0.11s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFC13B;
  color: #254014;
  transform: scale(1.11) rotate(2deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffbe6;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1200;
  box-shadow: 0 10px 40px #8B342444;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 30px 30px 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-brand-dark);
  border: none;
  font-size: 2rem;
  margin-bottom: 32px;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.18s, transform 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-primary);
  transform: scale(1.19) rotate(4deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  color: var(--color-accent);
  font-size: 1.45rem;
  padding: 12px 0 12px 12px;
  border-radius: 18px 0 0 18px;
  background: none;
  transition: background 0.17s, color 0.16s;
  margin-right: auto;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 950px) {
  header nav ul {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header nav .cta-primary {
    display: none;
  }
}
@media (max-width: 820px) {
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.09rem;
  }
  .section {
    padding: 20px 4px 22px 4px;
    margin-bottom: 32px;
  }
}

/* FOOTER */
footer {
  background: #fff;
  padding: 28px 5px 36px 5px;
  box-shadow: 0 -4px 32px #8B342430;
  border-radius: 12px 12px 0 0;
  margin-top: 60px;
  text-align: center;
  font-size: 1rem;
  color: var(--color-primary);
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-accent);
  font-size: 1rem;
  padding: 3px 8px;
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  border-radius: 11px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #FFEECB;
  color: var(--color-primary);
}
@media (max-width: 600px) {
  footer nav { flex-direction: column; gap: 0; }
  footer div { font-size: 0.97rem; }
}


/*******************************
 * COOKIE CONSENT BANNER
 *******************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #fffaff;
  box-shadow: 0 -2px 30px #8B342438;
  border-top: 3px solid #FFC13B;
  padding: 22px 10vw 18px 10vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  animation: cookieslideIn 0.65s cubic-bezier(.74,-0.4,.28,1.1);
  font-size: 0.97rem;
}
@keyframes cookieslideIn {
  from { transform: translateY(140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .btn-small {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  margin: 0 5px;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 32px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  min-width: 110px;
  transition: background 0.14s, color 0.14s, transform 0.16s;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--color-primary);
  color: #FFC13B;
  transform: scale(1.09);
}
@media (max-width: 810px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/********************
 * COOKIE MODAL
 ********************/
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #0008;
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalfadeIn 0.3s;
}
@keyframes modalfadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdf7;
  border-radius: 22px;
  padding: 32px 24px 22px 24px;
  box-shadow: 0 6px 44px #496B2E44;
  min-width: 340px;
  max-width: 95vw;
  z-index: 1570;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieslideIn 0.3s;
}
.cookie-modal h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.cookie-category {
  margin: 11px 0 8px 0;
  padding: 9px 14px;
  background: #FFEECBaa;
  border-radius: 10px;
  color: var(--color-accent);
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-toggle {
  margin-left: 14px;
  accent-color: var(--color-accent);
  width: 28px;
  height: 28px;
}
.cat-essential {
  font-weight: bold;
  color: var(--color-primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 14px; top: 12px;
  background: transparent;
  color: var(--color-accent);
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1600;
  transition: color 0.17s, transform 0.11s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-primary);
  transform: scale(1.18) rotate(4deg);
}
@media (max-width: 480px) {
  .cookie-modal { padding: 18px 6px 10px 8px; min-width: 0; }
  .cookie-modal h2 { font-size: 1.21rem; }
  .cookie-category { font-size: 0.99rem; }
}


/*******************
 * PLAYFUL ANIMATIONS
 *******************/
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  60% { transform: translateY(-10px); }
}
.cta-primary:hover, .cta-primary:focus, .mobile-menu-toggle:active {
  animation: bounce 0.5s 1;
}
.section {
  animation: fadeUp 0.5s cubic-bezier(.53,1.4,.72,1.01);
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/****************
 * MISC
 ****************/
::-webkit-scrollbar {
  width: 9px;
  background: #FFEECB;
}
::-webkit-scrollbar-thumb {
  background: #FFC13B99;
  border-radius: 11px;
}
hr {
  border: 0;
  border-top: 2px dashed #FFC13B51;
  margin: 32px 0 28px 0;
}

/* Miscellaneous classes for grid-alike flex layouts */
.features, .feature-list, .advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .features, .feature-list, .advantages {
    flex-direction: column;
    gap: 15px;
  }
}

/* .card-grid pattern for product listings */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

/*************
 * SPACING ENFORCEMENT
 *************/
.section > *+*, .content-wrapper > *+*, .text-section > *+*, .card-container > *+* {
  margin-top: 18px !important;
}
.card-grid > *+* {
  margin-left: 20px !important;
}
@media (max-width: 700px) {
  .card-grid { flex-direction: column; gap: 12px; }
  .card-grid > *+* { margin-left: 0 !important; }
}

/*************
 * RESPONSIVE ALIGNMENTS
 *************/
@media (max-width: 900px) {
  header nav, .container, .content-grid, .card-container, .card-grid, .testimonial-card {
    flex-direction: column !important;
    align-items: stretch;
    gap: 11px;
  }
  header nav ul { flex-direction: column !important; align-items: flex-start; gap: 6px; }
}
@media (max-width: 600px) {
  .content-wrapper, .features, .feature-list, .advantages {
    gap: 8px;
  }
}

/* DISTINCTIVE FUN FONTS & COLORS (Playful dynamic) */
h1, h2, h3 {
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
h1 {
  font-family: 'Bebas Neue', cursive, sans-serif;
  color: #8B3424;
}
h2 {
  font-family: 'Bebas Neue', cursive, sans-serif;
  color: #496B2E;
}
h3 {
  color: #8B3424;
}

/* ENERGIZING COLOR SPLASHES */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -20px; left: -20px;
  width: 56px; height: 56px;
  background: #FFC13B22;
  box-shadow: 0 2px 12px #8B34241c;
  border-radius: 40% 60% 60% 40%/40% 50% 60% 50%;
  z-index: 1;
  animation: blobPulse 5s infinite alternate cubic-bezier(.48,0,.52,1.04);
}
@keyframes blobPulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.12) rotate(16deg); }
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  right: -36px; bottom: -22px;
  width: 45px; height: 45px;
  background: #2CC2ED36;
  border-radius: 50%;
  z-index: 1;
  animation: blobPulse 8s infinite alternate cubic-bezier(.61,.01,.58,.99);
}
@media (max-width: 600px) {
  .section::before, .section::after {
    display: none;
  }
}
/* Remove these blobs for text/terms only pages */
main > section:only-child .section::before, main > section:only-child .section::after {
  display: none;
}

/* ACCESSIBILITY */
:focus-visible {
  outline: 2px solid #2CC2ED;
  outline-offset: 2px;
}

/********************************************************
 * END - Grigliati di Quartiere playful dynamic style.css *
 ********************************************************/
