/* --- CSS 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;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3B252C;
  background: #F3E8E2;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-width: 320px;
  word-break: break-word;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #3B252C;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #7C5047;
  outline-offset: 1px;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 20px;
}
input, button, textarea, select {
  font: inherit;
}

/* --- BRAND FONTS -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #3B252C;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.lead {
  font-size: 1.3rem;
  color: #7C5047;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Display hierarchy */
.section h2 {
  margin-bottom: 12px;
}

/* --- CONTAINER & LAYOUT ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width:768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 34px;
  }
}

/* --- HEADER ------------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px -5px rgba(59, 37, 44, 0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 8px;
}
@media(max-width: 900px){
  header .container {
    flex-wrap: wrap;
    gap:12px;
  }
}

.header-logo {
  flex: 0 0 auto;
  min-width: 128px;
  max-width: 155px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 3px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: color 0.17s, background 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: #7C5047;
  background: #F3E8E2;
}

.btn-cta {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #7C5047;
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 10px 24px 10px 24px;
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px -2px rgba(59,37,44,0.10);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.13s, color 0.13s;
  margin-left: 14px;
  outline: none;
  position: relative;
}
.btn-cta:hover, .btn-cta:focus {
  background: #3B252C;
  color: #F3E8E2;
  box-shadow: 0 4px 20px -2px rgba(59,37,44,0.17);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  color: #7C5047;
  margin-left: 16px;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #7C5047;
}
@media (max-width: 1050px) {
  .main-nav,
  .btn-cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE MENU -------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(.7,0,.4,1), opacity 0.16s;
  transform: translateX(102vw);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #7C5047;
  margin: 18px 22px 0 0;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.15s;
}
.mobile-menu-close:focus {
  outline: 2px solid #7C5047;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 38px 10px 38px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3B252C;
  background: none;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid #F3E8E2;
  transition: background 0.12s, color 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3E8E2;
  color: #7C5047;
}

@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO, SECTIONS, FLEX & GRID ---------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-grid li {
  flex: 1 1 235px;
  min-width: 210px;
  border: 2.5px solid #3B252C10;
  background: #fff;
  border-radius: 18px 32px 14px 26px;
  box-shadow: 0 3px 16px -5px rgba(123, 80, 71,0.07);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.12s;
}
.feature-grid li:hover {
  border-color: #7C5047;
  box-shadow: 0 2px 28px -7px #7C504711;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
}

.service-list, .experience-list, .event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-list li, .experience-list li, .event-list li {
  background:#fff;
  border: 2px solid #F3E8E2;
  border-radius: 8px 24px 18px 24px;
  box-shadow: 0 2px 18px -5px #3B252C12;
  flex: 1 1 260px;
  min-width: 220px;
  padding: 20px 20px 16px 22px;
  margin-bottom: 20px;
  font-size: 1.03rem;
  transition: box-shadow 0.17s, border-color 0.13s;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-list li:hover, .experience-list li:hover, .event-list li:hover {
  border-color: #7C5047;
  box-shadow: 0 4px 18px -4px #7C504714;
}
.price {
  color: #7C5047;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.team-bio {
  background: #fff;
  border-radius: 16px 30px 16px 24px;
  box-shadow: 0 2px 14px -4px #3B252C13;
  padding: 26px 28px;
  font-size: 1.08rem;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 13px -4px #3B252C1a;
  padding: 30px 28px;
  flex: 1 1 330px;
  min-width: 260px;
}

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

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

/* --- TESTIMONIALS ------------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px 38px 16px 24px;
  box-shadow: 0 3px 16px -4px #7C50472a;
  border: 2px solid #F3E8E2;
  margin-bottom: 20px;
  max-width: 560px;
  transition: box-shadow 0.12s, border-color 0.13s;
}
.testimonial-card:hover {
  border-color: #7C5047;
  box-shadow: 0 4px 24px -6px #3B252C24;
}
.testimonial-card p {
  color: #3B252C;
  font-style: italic;
  font-size: 1.13rem;
  margin-bottom: 14px;
  flex: 1 1;
}
.testimonial-info {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #7C5047;
  font-size: 1.05rem;
  margin-left: 12px;
}

/* --- FOOTER ------------------------------------------------------------- */
footer {
  width: 100%;
  background: #3B252C;
  color: #fff;
  padding: 48px 0 28px 0;
  margin-top: 30px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo img {
  width: 62px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  padding: 5px 4px;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: color 0.14s, background 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #7C5047;
  color: #F3E8E2;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #F3E8E2;
}
.footer-contacts div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7C5047;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  transition: background 0.15s, box-shadow 0.13s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #F3E8E2;
  box-shadow: 0 2px 10px -2px #fff6;
}
.footer-social img {
  width: 22px;
  height: 22px;
}

/* --- CONTACT DETAILS (Contatti) ----------------------------------------- */
.contact-details {
  background: #fff;
  border-radius: 18px 32px 14px 26px;
  box-shadow: 0 2px 14px -5px #3B252C13;
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
  color: #3B252C;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* --- CONFIRMATION PAGE MESSAGE ------------------------------------------ */
.confirmation-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 2px solid #F3E8E2;
  padding: 32px 32px 24px 32px;
  border-radius: 22px 36px 20px 26px;
  box-shadow: 0 2px 12px -5px #7C50472e;
  gap: 20px;
}
.confirmation-message p {
  font-size: 1.15rem;
  color: #3B252C;
}

/* --- UTILITIES ---------------------------------------------------------- */
@media (max-width: 1050px) {
  .feature-grid,
  .service-list,
  .experience-list,
  .content-grid,
  .event-list  {
    gap: 18px;
  }
  .testimonial-card,
  .card,
  .team-bio {
    padding: 20px 12px;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .feature-grid,
  .service-list,
  .experience-list,
  .event-list {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card,
  .card,
  .team-bio {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-contacts {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
  .section { padding: 18px 2px; }
  .feature-grid li, .service-list li, .event-list li {
    padding: 12px 8px;
    min-width: 0;
    font-size: 0.97rem;
  }
}

/* --- BUTTONS & INTERACTIVES --------------------------------------------- */
button,
.btn-cta {
  cursor: pointer;
  transition: background 0.14s, color 0.11s, box-shadow 0.12s, border 0.11s;
  user-select: none;
}
button:disabled,
.btn-cta:disabled {
  background: #DDD6D1;
  color: #a7a2a0;
  cursor: not-allowed;
}

/* --- COOKIE CONSENT BANNER (BOTTOM) ------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #fff;
  border-top: 4px solid #7C5047;
  color: #3B252C;
  padding: 24px 18px 23px 18px;
  box-shadow: 0 0 22px 0 #3B252C0f;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(104%);
  transition: opacity 0.19s, transform 0.38s cubic-bezier(.7,0,.4,1);
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 8px 16px 8px 18px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: #7C5047;
  color: #fff;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn.accept {
  background: #3B252C;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #3B252C;
  border: 2px solid #7C5047;
}
.cookie-btn.settings {
  background: #F3E8E2;
  color: #3B252C;
  border: 2px solid #7C5047;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #7C5047;
  color: #F3E8E2;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #7C5047;
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #fff;
  color: #7C5047;
}

/* --- COOKIE CONSENT MODAL ----------------------------------------------- */
.cookie-modal {
  position: fixed;
  z-index: 1601;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 37, 44, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.7,0,.4,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px 36px 14px 23px;
  padding: 34px 24px 32px 24px;
  min-width: 290px;
  max-width: 420px;
  box-shadow: 0 6px 36px -6px #7C504788;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.37rem;
  margin-bottom: 8px;
  color: #3B252C;
  letter-spacing: 0.01em;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #F3E8E2;
  padding: 10px 14px;
  border-radius: 11px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  color: #3B252C;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #DDD6D1;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  margin-left: 3px;
  margin-right: 3px;
}
.cookie-toggle:checked {
  background: #7C5047;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.9px;
  width: 17px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.20s cubic-bezier(.7,0,.4,1);
}
.cookie-toggle:checked:before {
  left: calc(100% - 20px);
  background: #F3E8E2;
}
.cookie-category .essential {
  color: #7C5047;
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 600;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal-close {
  background: transparent;
  color: #3B252C;
  position: absolute;
  top: 15px; right: 15px;
  border: none;
  font-size: 1.44rem;
  cursor: pointer;
}
.cookie-modal-close:focus {
  outline: 2px solid #7C5047;
}

/* --- MICRO-ANIMATIONS -------------------------------------------------- */
.btn-cta:active {
  transform: scale(0.97);
}
.card:active, .testimonial-card:active {
  transform: scale(0.985);
  box-shadow: 0 6px 22px -4px #7C504711;
}
.cookie-btn:active {
  transform: scale(0.97);
}

/* --- GEOMETRIC STRUCTURED DECOR ----------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: 0.015em;
  /* accentuate geometric, angular style */
}
.section, .card, .testimonial-card, .team-bio, .contact-details {
  border-radius: 18px 38px 16px 24px;
}
.section {
  border: 2px solid #F3E8E2;
}

/* --- MISC GEOMETRIC ANGULAR EFFECTS ------------------------------------- */
.card, .testimonial-card, .feature-grid li, .service-list li {
  border-width: 2.5px;
  border-style: solid;
  border-color: #F3E8E2;
  /* At hover, color accent  */
}

/* --- VISIBILITY/ACCESSIBILITY (for contrast) ---------------------------- */
.testimonial-card p,
.testimonial-card .testimonial-info {
  color: #3B252C !important;
  background: transparent !important;
}
@media (max-width:450px) {
  .footer-nav {
    gap: 7px;
    flex-wrap: wrap;
  }
  .footer-social {
    gap: 10px;
  }
}

/* --- VERY SMALL SCREENS: shrink paddings ------------------------------- */
@media (max-width: 400px) {
  .confirm-message, .contact-details, .content-wrapper, .section {
    padding: 8px 2px !important;
  }
}
