/* =====================================================
   CSS 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4EFEA;
  color: #374045;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #374045;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B59A77;
}
ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 16px;
  font-family: 'Playfair Display', Times, serif;
  color: #374045;
  line-height: 1.2;
}
h1 { font-size: 2.375rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #374045;
}
strong { font-weight: 600; }
small { font-size: 85%; }

/* =====================================================
   LAYOUT - FLEXBOX ONLY
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header .container,
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* === Header === */
header {
  background: #fff;
  border-bottom: 1px solid #e1e6ea;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #374045;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B59A77;
  border-bottom: 2px solid #B59A77;
}
/* CTA Button */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #B59A77;
  color: #fff;
  border-radius: 6px;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(55, 64, 69, 0.07);
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #957c5b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(55, 64, 69, 0.12);
}

/* === Burger & Mobile Nav === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #B59A77;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border: none;
  transition: background 0.2s;
  z-index: 211;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #957c5b;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,.25,.5,1);
  z-index: 210;
  box-shadow: 0 2px 24px rgba(55, 64, 69, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 42px 32px 32px 32px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: #374045;
  background: none;
  border: none;
  padding: 4px 12px;
  margin-bottom: 32px;
  margin-top: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #B59A77;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #374045;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #e1e6ea;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B59A77;
  background: #F4EFEA;
  border-radius: 4px;
}

/* Hide menu on desktop, show on mobile */
@media (max-width: 1024px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================
   GENERAL SPACING PATTERNS
===================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(55, 64, 69, 0.08);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(55,64,69,0.13);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55,64,69,0.09);
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 540px;
  border-left: 6px solid #B59A77;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(55,64,69,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* Content layout for .features, .about, etc. */
.features .content-wrapper,
.services-preview .content-wrapper,
.services-overview .content-wrapper,
.about-story .content-wrapper,
.restoration-types .content-wrapper,
.faq-list .content-wrapper,
.contact-preview .content-wrapper,
.contact-details .content-wrapper,
.contact-info .content-wrapper,
.find-us .content-wrapper,
.about-craft .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Hero Section */
.hero {
  padding: 60px 0 36px 0;
  background: #F4EFEA;
  position: relative;
  box-shadow: 0 2px 28px rgba(55,64,69,0.04);
  margin-bottom: 0;
}
.hero h1 {
  font-size: 2.375rem;
  font-weight: 700;
  color: #374045;
  margin-bottom: 8px;
}
.hero .subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #374045;
  padding-bottom: 24px;
  font-weight: 400;
}

/* Section Headings */
section h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: #374045;
}

/* Feature Lists & Icon Placement */
.features ul, .services-preview ul, .services-overview ul, .restoration-types ul, .about-craft ul, .contact-details ul, .contact-preview ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px 0;
  padding: 0;
}
.features li, .services-preview li, .services-overview li, .restoration-types li, .about-craft li, .contact-details li, .contact-preview li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #374045;
}
.features li img,
.services-preview li img,
.services-overview li img,
.restoration-types li img,
.contact-details li img,
.contact-preview li img, .contact-info p img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}

/* Artisan/Extra highlight */
.artisan-highlight {
  background: #F4EFEA;
  border-left: 4px solid #B59A77;
  padding: 22px 28px;
  border-radius: 8px;
  font-size: 1.07rem;
  color: #374045;
  margin-top: 14px;
}

/* FAQ */
.faq-list .faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1.5px 8px rgba(55,64,69,0.09);
  padding: 24px;
  margin-bottom: 20px;
  border-left: 4px solid #B59A77;
}
.faq-list .faq-item h3 {
  font-size: 1.12rem;
  margin-bottom: 5px;
  color: #374045;
}

/* Cards & Flex Wrapping */
.testimonials .content-wrapper,
.features .content-wrapper,
.services-overview .content-wrapper,
.restoration-types .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.testimonials .testimonial-card {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
}

/* Star Rating for Recensioni */
.star-rating {
  color: #B59A77;
  font-size: 1.4em;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 600;
}

/* Map Placeholders */
.map-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #e1e6ea;
  border-radius: 8px;
  padding: 18px 24px;
  min-height: 56px;
  margin-bottom: 12px;
}
.map-placeholder img {
  width: 40px; height: 40px;
}
.map-placeholder span {
  font-size: 1rem;
  color: #374045;
}

/* Find Us (Contatti) */
.find-us ul {
  margin-top: 10px;
  margin-bottom: 0;
  gap: 8px;
}
.find-us ul li {
  font-size: 1rem;
  color: #374045;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: #374045;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(55,64,69,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  transition: transform 0.4s;
  flex-wrap: wrap;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .cookie-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  flex: 1 1 220px;
  margin-right: 28px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
}
.cookie-btn {
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #B59A77;
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(55, 64, 69, 0.07);
}
.cookie-btn.reject {
  background: #8a959d;
  color: #fff;
}
.cookie-btn.settings {
  background: #F4EFEA;
  color: #374045;
  border: 1.5px solid #B59A77;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #957c5b;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #5f6670;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e1e6ea;
  color: #374045;
  border-color: #8a959d;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 6050;
  background: rgba(37,44,54,0.50);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #374045;
  border-radius: 14px;
  padding: 40px 30px 32px 30px;
  max-width: 384px;
  width: 92%;
  box-shadow: 0 6px 36px rgba(55,64,69,0.17);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #374045;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e1e6ea;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: #374045;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: #B59A77;
  width: 21px;
  height: 21px;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #8a959d;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #B59A77; }
.cookie-modal-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
/* Toast-like animation for banner/modal */
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner,
  .cookie-modal {
    will-change: transform, box-shadow, opacity;
    transition: transform 0.45s cubic-bezier(.5,.25,.5,1),box-shadow 0.3s, opacity 0.38s;
  }
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #374045;
  color: #fff;
  font-size: 1rem;
  padding: 56px 0 18px 0;
  box-shadow: 0 -3px 32px rgba(55,64,69,0.10);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px 42px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  width: 64px;
  height: auto;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 36px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: #F4EFEA;
  font-size: 1rem;
  margin-bottom: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #B59A77;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F4EFEA;
  margin-bottom: 4px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.footer-social a img {
  width: 27px;
  height: 27px;
}
.footer-copyright {
  margin-top: 24px;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  color: #e1e6ea;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  footer .container {
    gap: 32px 18px;
  }
  .footer-links {
    gap: 16px;
  }
  .features .content-wrapper, .testimonials .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .section {
    margin-bottom: 44px;
    padding: 28px 8px;
  }
  .hero {
    padding: 38px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.34rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .testimonials .content-wrapper, .features .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid, .features .content-wrapper, .about .content-wrapper,
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 14px;
    font-size: 1rem;
    min-width: 0;
    max-width: 100%;
  }
  .faq-list .faq-item {
    padding: 14px;
  }
  .card {
    padding: 20px 12px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-modal {
    padding: 24px 10px 18px 10px;
  }
  .footer-logo img {
    width: 54px;
  }
}
/* Mobile cookie banner layout adjustments */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 6px;
    text-align: left;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
  }
}

/* =====================================================
   MISCELLANEOUS & MICRO-INTERACTIONS
===================================================== */
hr {
  border: none;
  border-bottom: 1px solid #e1e6ea;
  margin: 24px 0;
}
::-webkit-input-placeholder { color: #AEB6BF; }
::-moz-placeholder { color: #AEB6BF; }
:-ms-input-placeholder { color: #AEB6BF; }
::placeholder { color: #AEB6BF; }

/* Animations/micro-interactions */
.cta-btn, .cookie-btn, .main-nav a, .footer-links a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}
.testimonial-card, .card {
  transition: box-shadow 0.23s, border-color 0.14s;
  cursor: pointer;
}
.testimonial-card:hover, .card:hover {
  box-shadow: 0 8px 32px rgba(55,64,69,0.14);
  border-left-color: #957c5b;
}

/* Selections */
::selection { background: #B59A77; color: #fff; }

/* Accessibility focus */
a:focus, .cta-btn:focus, .cookie-btn:focus, button:focus {
  outline: 2px solid #B59A77;
  outline-offset: 2px;
}

/* Hide visually for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  border: 0;
}

/* =====================================================
   END OF CSS FILE
===================================================== */
