/* RESET & NORMALIZE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #FFF6F0;
  font-family: 'Lato', Arial, sans-serif;
  color: #374346;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%; height: auto; border-radius: 12px;
  display: block;
}
a {
  color: #852E1A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #c94d27;
  outline: none;
}
ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #852E1A;
  font-weight: 700;
  border: none;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.06rem; }
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
blockquote {
  font-style: italic;
  color: #374346;
  background: #FFF;
  border-left: 5px solid #FAD6A5;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
}
/* UTILITIES */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  background: #FFF;
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 6px 26px 0px rgba(133,46,26,0.09);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #FFF6F0;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(133,46,26,0.10);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  padding: 24px 20px;
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(133,46,26,0.18);
  transform: translateY(-4px) scale(1.01);
  z-index: 2;
}
.content-grid, .features {
  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: #FAD6A5;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(55,67,70,0.10);
  color: #374346;
  margin-bottom: 20px;
  flex: 1 1 290px;
  min-width: 0;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card blockquote {
  background: rgba(255,255,255,0.79);
  border-left: 4px solid #852E1A;
  color: #374346;
  margin: 0 0 4px 0;
  font-size: 1.08rem;
  padding: 10px 14px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #852E1A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 36px; height: 36px;
  background: #FAD6A5;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 1px 2px 0 rgba(55, 67, 70, 0.08);
}

/**** HEADER & NAV ****/
header {
  background: #FFF;
  box-shadow: 0 2px 10px 0 rgba(133,46,26,0.06);
  padding: 0;
  position: relative;
  z-index: 300;
}
header nav[aria-label="Menu principale"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
}
header nav[aria-label="Menu principale"] img {
  width: 140px; height: auto;
}
header nav[aria-label="Menu principale"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
header nav[aria-label="Menu principale"] ul li a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #374346;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav[aria-label="Menu principale"] ul li a:hover,
header nav[aria-label="Menu principale"] ul li a:focus {
  background: #FAD6A5;
  color: #852E1A;
}
.cta-btn {
  display: inline-block;
  background: #852E1A;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 30px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 3px 16px 0 rgba(133,46,26,0.16);
  cursor: pointer;
  margin-left: 13px;
  transition: background 0.22s, box-shadow 0.18s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #a53b20;
  box-shadow: 0 6px 26px 0 rgba(133,46,26,0.26);
  transform: translateY(-2px) scale(1.01);
  color: #FFF;
}
.secondary-cta {
  display: inline-block;
  color: #852E1A;
  background: #FAD6A5;
  border-radius: 22px;
  padding: 11px 23px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 12px;
  border: none;
  box-shadow: 0 1px 8px 0 rgba(133,46,26,0.10);
  transition: background .16s, color .16s;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #fbe5c6;
  color: #a53b20;
}

/**** HAMBURGER MENU MOBILE ****/
.mobile-menu-toggle {
  display: none;
  background: #FAD6A5;
  color: #852E1A;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 9px 17px 9px 13px;
  box-shadow: 0 2px 10px 0 rgba(133,46,26,0.09);
  margin-right: 16px;
  cursor: pointer;
  transition: background 0.21s;
  position: absolute;
  top: 18px; right: 14px;
  z-index: 500;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #852E1A;
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 995;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(250, 214, 165, 0.98);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s, transform 0.31s;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #852E1A;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 31px 29px 0 0;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 12px;
  transition: background 0.14s, color 0.18s;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #852E1A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
  align-items: flex-start;
  margin: 60px 0 0 30px;
}
.mobile-nav a {
  color: #374346;
  font-size: 1.16rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 24px;
  transition: background 0.2s, color 0.19s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #852E1A;
  color: #fff;
}
/**** SECTIONS ****/
section {
  margin-bottom: 60px;
  padding: 0;
}
section > .container {
  margin-top: 0;
  margin-bottom: 0;
}
/**** CARDS, UL/LI ****/
ul {
  list-style: disc inside;
}
ul li {
  margin-bottom: 12px;
  line-height: 1.5;
}
ul li:last-child {
  margin-bottom: 0;
}
.content-wrapper > ul {
  margin-bottom: 0;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
/**** FOOTER ****/
footer {
  background: #FFF6F0;
  box-shadow: 0 -3px 12px 0 rgba(133,46,26,0.09);
  padding-top: 28px;
  margin-top: 60px;
}
footer nav[aria-label="Footer"] {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  font-size: 1.01rem;
  margin-bottom: 18px;
}
footer nav[aria-label="Footer"] a {
  color: #852E1A;
  padding: 0 7px;
  transition: color 0.19s;
  border-radius: 6px;
}
footer nav[aria-label="Footer"] a:hover, footer nav[aria-label="Footer"] a:focus {
  background: #FAD6A5;
  color: #374346;
}
footer .content-wrapper {
  align-items: center;
  gap: 7px;
  text-align: center;
  margin-bottom: 18px;
}
footer img {
  width: 54px;
  margin-bottom: 6px;
}
footer address, footer small {
  color: #374346;
  font-size: 0.99rem;
}
address a {
  color: #852E1A;
  font-style: normal;
}

/**** COOKIE BANNER ****/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #FFF;
  border-top: 3px solid #FAD6A5;
  box-shadow: 0 -2px 16px 0 rgba(55,67,70,0.08);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 18px 12px;
  font-size: 1rem;
  color: #374346;
  animation: cookieSlideIn 0.42s cubic-bezier(.44,1.38,.75,.9);
}
@keyframes cookieSlideIn {
    from { transform: translateY(74px); opacity: 0.2; }
    to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-banner button {
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 27px;
  margin: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.17s;
}
.cookie-banner .accept {
  background: #852E1A;
  color: #FFF;
  margin-right: 8px;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #a53b20;
}
.cookie-banner .reject {
  background: #374346;
  color: #FFF;
  margin-right: 8px;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #22282a;
}
.cookie-banner .settings {
  background: #FAD6A5;
  color: #852E1A;
  border: 1px solid #852E1A;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #fae1bc;
  color: #a53b20;
}
/**** COOKIE MODAL ****/
.cookie-modal-backdrop {
  position:fixed;
  z-index: 12000;
  top:0; left:0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(55,67,70,0.22);
  display:none;
  align-items:center;
  justify-content:center;
  animation: fadeInBackdrop .24s;
}
.cookie-modal-backdrop.open {
  display:flex;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF6F0;
  border-radius: 22px;
  box-shadow: 0 8px 44px 0 rgba(55,67,70,0.17);
  min-width: 320px;
  max-width: 380px;
  padding: 34px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  animation: modalBounceIn .32s cubic-bezier(.36,1.2,.53,1.04);
}
@keyframes modalBounceIn {
  0% { opacity:0; transform: scale(0.89) translateY(68px); }
  80% { opacity:1; transform: scale(1.08) translateY(-10px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  color: #852E1A;
  font-size: 1.28rem;
  margin-bottom: 9px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  width: 100%;
}
.cookie-modal label {
  font-size: 1rem;
  color: #374346;
}
.toggle-switch {
  width: 40px; height: 22px;
  background: #FAD6A5;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.17s;
  flex-shrink: 0;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-switch .slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #eee;
  border-radius: 50%;
  transition: left 0.19s, background 0.18s;
}
.toggle-switch input[type="checkbox"]:checked + .slider {
  left: 21px;
  background: #852E1A;
}
.cookie-modal .cookie-actions {
  width: 100%;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-actions button {
  background: #852E1A;
  color: #fff;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 18px;
  border: none;
  font-size: 1rem;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .cookie-actions button:last-child {
  margin-right: 0;
}
.cookie-modal .cookie-actions button.secondary {
  background: #FAD6A5;
  color: #852E1A;
  border: 1px solid #852E1A;
}
.cookie-modal .cookie-actions button.secondary:hover, .cookie-modal .cookie-actions button.secondary:focus {
  background: #fae1bc;
  color: #a53b20;
}
.cookie-modal .cookie-actions button.primary:hover, .cookie-modal .cookie-actions button.primary:focus {
  background: #a53b20;
}

/**** RESPONSIVE DESIGN ****/
@media (max-width: 1055px) {
  header nav[aria-label="Menu principale"] ul {
    gap: 10px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 900px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-grid, .card-container, .features {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav[aria-label="Menu principale"] ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section, .section {
    padding: 24px 4px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card, .card, .feature-item {
    flex-basis: 100%;
    min-width: 0!important;
  }
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .mobile-menu {
    width: 100vw;
    left: 0; right: 0; top: 0;
    min-width: 0;
    border-radius: 0 0 18px 0;
    overflow-y: auto;
  }
}
@media (max-width: 510px) {
  html { font-size: 14px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .container, section, .section {
    padding-left: 1px; padding-right: 1px;
  }
  .testimonial-card {
    padding: 12px 7px;
  }
}

/**** BUTTONS GLOBAL ****/
button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
}
button:focus {
  outline: 2px solid #FAD6A5;
  outline-offset: 2px;
}
/**** MICRO-INTERACTIONS ****/
.card, .testimonial-card, .feature-item, .cta-btn, .secondary-cta, .mobile-nav a, .cookie-banner button,
.cookie-modal .cookie-actions button {
  transition: box-shadow 0.18s, background 0.19s, color 0.17s, transform 0.17s;
}
.card:active, .testimonial-card:active, .cta-btn:active, .secondary-cta:active, .mobile-nav a:active {
  transform: scale(0.97);
}
/**** FOCUS VISIBLE ****/
a:focus-visible, button:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid #FAD6A5;
  outline-offset: 2px;
  background: #FAF7F3;
}

/**** CUSTOM FONTS (Webfont fallback handled by HTML link tags externally) ****/
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lato'), url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');
}

/**** HIGHLIGHTED CLASSES FROM HTML STRUCTURE ****/
/* .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item already handled above */
.content-wrapper > a:not(.cta-btn):not(.secondary-cta) {
  margin-top: 10px;
  margin-bottom: 10px;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}
/**** ENSURE NO OVERLAPPING ****/
section, .section, .container, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}
/**** BASIC FORMATTING FOR ADDRESS ****/
address {
  font-style: normal;
  line-height: 1.5;
}
/**** END OF CSS ****/
