/* =======================================================
   CSS RESET & BASE VARIABLES for Brave Rest Roma Corporate Style
   ======================================================= */
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;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F3E9;
  color: #2E3C39;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #2E3C39;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B88B4A;
  outline: none;
}
ul, ol {
  padding-left: 1.6em;
}
img {
  max-width: 100%;
  display: block;
}

:root {
  --br-primary: #2E3C39;
  --br-secondary: #B88B4A;
  --br-accent: #F6F3E9;
  --br-white: #fff;
  --br-black: #222;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 14px rgba(46,60,57,0.08);
  --shadow-dark: 0 2px 24px rgba(46,60,57,0.14);
  --transition: all 0.23s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--br-accent);
  color: var(--br-primary);
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--br-primary);
  margin-bottom: 18px;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.125rem;
}
.subtitle {
  color: var(--br-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 20px;
}
p, ul, ol, li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--br-primary);
}
strong, b { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section spacing */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  background: var(--br-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--br-primary);
  padding: 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--br-secondary);
  border-bottom: 2px solid var(--br-secondary);
}
.cta-button {
  background: var(--br-primary);
  color: var(--br-white) !important;
  border: none;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(46,60,57,0.06);
  transition: var(--transition);
  margin-left: 20px;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--br-secondary);
  color: var(--br-primary) !important;
}

/* Hamburger (mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--br-primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--br-secondary);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--br-white);
  box-shadow: var(--shadow-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.32,.72,.11,1);
  width: 100vw;
  height: 100vh;
  padding: 36px 24px 24px 32px;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--br-primary);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: var(--br-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--br-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 10px 6px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--br-accent);
  color: var(--br-secondary);
}

@media (max-width: 1050px) {
  .container { max-width: 960px; }
}
@media (max-width: 768px) {
  header .container nav,
  header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================
   HERO SECTION / HOME OVERVIEW
   ======================================== */
.hero {
  background: linear-gradient(90deg, #F6F3E9 60%, #eaf0f5 110%);
  padding: 56px 0 36px 0;
  margin-bottom: 0;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
}
.hero h1 {
  color: var(--br-primary);
  font-size: 2.8rem;
  margin-bottom: 18px;
}

/* =============================
   FEATURES FLEX GRID
   ============================= */
.features {
  background: var(--br-accent);
  padding-top: 32px;
  padding-bottom: 32px;
}
.features .container { gap: 32px; }
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: start;
}
.feature-item {
  background: var(--br-white);
  border-radius: var(--radius);
  padding: 28px 24px 22px 24px;
  box-shadow: var(--shadow);
  flex: 1 1 200px;
  min-width: 207px;
  max-width: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item h3 {
  color: var(--br-primary);
  font-size: 1.175rem;
  margin-bottom: 5px;
}
.feature-item p {
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 6px 24px rgba(46,60,57,0.13);
  transform: translateY(-4px) scale(1.025);
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonials {
  background: var(--br-white);
}
.testimonials .container {
  gap: 26px;
}
.testimonials .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px 18px 24px;
  background: #eaf0f5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, background 0.22s;
}
.testimonial-card p {
  color: #22302E;
  font-size: 1.03rem;
}
.testimonial-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  color: var(--br-secondary);
  font-weight: 700;
  letter-spacing: 0.018em;
}
.testimonial-card:hover {
  background: var(--br-accent);
  box-shadow: 0 6px 24px rgba(46,60,57,0.15);
}

/* ========================
   CARDS AND FLEX GRIDS
   ======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--br-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(46,60,57,0.13);
  transform: translateY(-2px) scale(1.01);
}

.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;
}

/********* FAQ and CONTENT (cura-benessere etc) *********/
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.faq-item {
  background: var(--br-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s;
}
.faq-item h3 {
  font-size: 1.09rem;
  margin-bottom: 10px;
}
.faq-item:hover {
  box-shadow: 0 4px 18px rgba(46,60,57,0.10);
}

/**** Service Cards ****/
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.service-card {
  background: var(--br-white);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  max-width: 290px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.service-card img {
  width: 36px;
  height: 36px;
}
.service-card h3 {
  font-size: 1.09rem;
}
.service-card .service-price {
  color: var(--br-secondary);
  font-size: 0.98rem;
  font-weight: 700;
}
.service-card:hover {
  box-shadow: 0 8px 26px rgba(46,60,57,0.15);
  transform: scale(1.025);
}

/* Articles List/Preview Flex Layout */
.articles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.articles-list li {
  background: var(--br-white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.articles-list li a {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--br-primary);
  margin-bottom: 4px;
  transition: color 0.19s;
}
.articles-list li a:hover {
  color: var(--br-secondary);
}
.articles-list li p {
  font-size: 1rem;
}

/**** Featured Article / Preview ****/
.featured-article {
  background: #eaf0f5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 24px 24px;
  margin-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-article h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--br-primary);
}
.cta-link {
  color: var(--br-secondary);
  text-decoration: underline;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
}
.cta-link:hover {
  color: var(--br-primary);
}

/**** About Preview Section ****/
.about-preview {
  background: var(--br-white);
}
.about-preview .content-wrapper {
  align-items: flex-start;
}

/**** Next steps info (Thank You page) ****/
.next-steps-info ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--br-primary);
}

/**** Contact Info ****/
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
  font-weight: 500;
}
.contact-info img { width: 20px; height: 20px; opacity: 0.84; }
.contact-message {
  font-size: 1.04rem;
  margin-bottom: 18px;
}

/**** Map Info Section ****/
.map-info {
  background: var(--br-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin: 12px 0 18px 0;
}

/**** Newsletter Signup (contatti) ****/
@media (min-width: 640px) {
  .newsletter-form {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 8px;
  }
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: var(--br-primary);
  color: var(--br-accent);
  margin-top: 52px;
  font-size: 1rem;
}
footer .container {
  padding: 32px 18px 22px;
  gap: 20px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--br-accent);
  font-size: 0.97rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.17s, border-color 0.17s;
}
footer nav a:hover {
  color: var(--br-secondary);
  border-bottom: 2px solid var(--br-secondary);
}
footer img {
  height: 44px;
}
.footer-contact {
  color: var(--br-accent);
  font-size: 0.99rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  opacity: 0.95;
  margin-bottom: 6px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: -2px;
}
footer small {
  color: #b7bfc4;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--br-white);
  box-shadow: 0 -2px 20px rgba(46,60,57,0.09);
  z-index: 1500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 18px 20px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 70px;
  transition: transform 0.35s cubic-bezier(.42,.19,.59,1), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  flex: 1;
  color: var(--br-primary);
  font-size: 1.06rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  background: var(--br-primary);
  color: var(--br-white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  padding: 9px 18px;
  margin-right: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(46,60,57,0.05);
  transition: var(--transition);
}
.cookie-banner .cookie-btn:not(.cookie-settings):hover {
  background: var(--br-secondary);
  color: var(--br-primary);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: transparent;
  color: var(--br-primary);
  border: 1.5px solid var(--br-primary);
  font-weight: 600;
  padding: 9px 14px;
}
.cookie-banner .cookie-btn.cookie-settings:hover {
  background: var(--br-accent);
  border-color: var(--br-secondary);
  color: var(--br-secondary);
}

/***** Cookie Modal Popup *****/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,60,57,0.28);
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: var(--br-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  min-width: 320px;
  max-width: 95vw;
  padding: 36px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalIn 0.37s cubic-bezier(.46,1.7,.48,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal .cookie-modal-title {
  font-size: 1.19rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--br-primary);
  font-family: 'Lora', 'Georgia', serif;
}
.cookie-modal .cookie-category {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--br-primary);
  margin-bottom: 2px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--br-secondary);
  width: 21px;
  height: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/***** Responsive - Cookie Banner *****/
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 10px 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .cookie-modal { padding: 24px 10px 18px 10px; }
}

/* ==========================
   RESPONSIVE DESIGN RULES
   ========================== */
@media (max-width: 1040px) {
  .feature-grid, .service-cards, .content-grid, .faq-list {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-cards, .faq-list {
    flex-basis: 100%;
    gap: 18px;
  }
  .feature-item, .service-card, .faq-item {
    min-width: 45%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.78rem; }
  h2 { font-size: 1.43rem; }
  .section { padding: 28px 8px; margin-bottom: 38px; }
  .hero { padding: 34px 0 22px 0; }
  .container { padding: 0 8px; }
  .feature-grid, .service-cards, .faq-list, .content-grid, .testimonials .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .feature-item, .service-card, .faq-item {
    max-width: 100%;
    width: 100%;
    padding: 18px 13px 15px 15px;
  }
  .testimonial-card {
    max-width: 100%;
    width: 100%;
    padding: 18px 8px 14px 14px;
  }
  .text-image-section { flex-direction: column; gap: 20px; }
  .about-preview .content-wrapper, .hero .content-wrapper {
    align-items: flex-start;
  }
  footer .container { padding: 22px 6px 16px 6px;
    gap: 10px;
  }
  .footer-contact { flex-direction: column; gap: 4px; }
}
@media (max-width: 520px) {
  h1, h2 { font-size: 1.19rem; margin-bottom: 13px; }
  .feature-item, .service-card, .faq-item { min-width: 100px; }
}

/* =========================
   MICRO-INTERACTIONS
   ========================= */
button, .cta-button, input[type=submit], .cookie-btn {
  transition: var(--transition);
}
input[type=search], input[type=text], input[type=email], textarea {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1.5px solid #D9DCE1;
  background: var(--br-accent);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(46,60,57,0.03);
  outline: none;
  margin-bottom: 8px;
  width: 100%;
  transition: border 0.18s;
}
input[type=search]:focus, input[type=text]:focus, textarea:focus {
  border-color: var(--br-secondary);
}

/* =========================
   CATEGORY FILTER & SEARCH BAR
   ========================= */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.category-filter a {
  color: var(--br-secondary);
  font-weight: 600;
  margin-right: 6px;
  transition: color 0.18s;
}
.category-filter a:hover { color: var(--br-primary); }
.search-bar {
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
}

/***** Miscellaneous *****/
strong {
  color: var(--br-black);
}
a[href^="mailto"] {
  color: var(--br-primary);
  text-decoration: underline;
}
a[href^="mailto"]:hover {
  color: var(--br-secondary);
}

/***** Utility: Visually Hidden *****/
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0;
}

/****************************
   PRINT (for legal pages)
*****************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
