/* ==========================================================
   Crimson Step Italia - Premium Luxury Flexbox Theme
   Style: Elegance italiana, gold accents, premium fonts
   Fonts: Montserrat (display headings), Roboto (body)
   Brand Colors: Primary #7A1121, Secondary #164155, Accent #EDEAE4, Gold #C3A269, Black #18121A
   ========================================================== */

/* --------------------
   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,
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F6F4F0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #18121A;
  background: #F6F4F0;
  min-height: 100vh;
  line-height: 1.55;
}
ul, ol {
  padding-left: 1.2em;
}
a {
  color: #7A1121;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C3A269;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #18121A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p, li, dd {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 14px;
  color: #2f232d;
}

strong {
  font-weight: bold;
  color: #18121A;
}

.container {
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------
   LUXURY PREMIUM COLORS & ACCENTS
   ------------------------------ */
:root {
  --primary: #7A1121;
  --secondary: #164155;
  --accent: #EDEAE4;
  --lux-gold: #C3A269;
  --lux-black: #18121A;
  --lux-soft-bg: #F6F4F0;
  --lux-gray: #E3E0DA;
}

/* ------------------------
   BASIC SPACING & SECTIONS
   ------------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(200,192,175, 0.12);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    padding: 26px 6px;
  }
  .content-wrapper {
    gap: 24px;
  }
}

.text-section {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ---------------------
   NAVIGATION & HEADER
   --------------------- */
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(30,24,32,0.04);
  position: relative;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}
.main-nav > img {
  height: 55px;
  margin-right: 16px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 2px solid transparent;
  padding: 2px 2px 4px 2px;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--lux-gold);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 27px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.85em 2.2em;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: 0 1px 8px rgba(60,25,10,0.08);
  transition: background 0.17s, color 0.17s, box-shadow 0.15s;
  margin-left: 12px;
  background: var(--lux-gold);
  color: var(--lux-black);
}
.btn-primary:hover, .btn-primary:focus {
  background: #a17c47;
  color: #fff;
  box-shadow: 0 4px 18px rgba(195, 162, 105,0.13);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--lux-gold);
  margin-left: 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--lux-gold);
  color: #fff;
}

/* ---------------
   MOBILE NAV MENU
   --------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  padding: 6px 10px;
  z-index: 60;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--lux-gold);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,18,26,0.97);
  color: #fff;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.46,.03,.52,.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--lux-gold);
  font-size: 2.4rem;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 11000;
  transition: color 0.15s;
  padding: 6px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff5d6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 72px;
  width: 100vw;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.003em;
  padding: 10px 0;
  border-left: 3px solid transparent;
  transition: border-left 0.18s, color 0.2s;
  min-width: 200px;
  min-height: 44px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--lux-gold);
  border-left: 3px solid var(--lux-gold);
  background: rgba(122, 17, 33, 0.09);
}
@media (max-width: 1023px) {
  .main-nav ul,
  .main-nav > a {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* ------------------
   FLEX LAYOUTS (MANDATORY)
   ------------------ */
.features-grid, .team-grid, .values-list, .testimonials-list, .method-steps, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.card-container, .content-grid {
  gap: 20px;
  justify-content: space-between;
}
.feature, .text-section, .testimonial-card, .card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 32px rgba(195,162,105,0.09), 0 1px 7px rgba(40,32,22,0.05);
  border: 1px solid var(--lux-gray);
  margin-bottom: 20px;
  padding: 28px 26px;
  position: relative;
  min-width: 250px;
  flex: 1 1 255px;
}
.feature {
  border-top: 4px solid var(--lux-gold);
  background: #FAF8F5;
  transition: box-shadow 0.19s, border-color 0.19s, transform 0.16s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 28px rgba(195,162,105,0.25);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.01);
}

.text-section {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
/* Team grid only has text-section cards */
.team-grid {
  flex-direction: row;
  gap: 30px;
}
.values-list {
  gap: 20px;
}
@media (max-width: 900px) {
  .features-grid, .team-grid, .values-list, .testimonials-list, .method-steps {
    gap: 16px;
  }
  .feature, .testimonial-card, .card {
    min-width: 220px;
    padding: 20px 10px;
  }
}
@media (max-width: 768px) {
  .features-grid, .team-grid, .values-list, .testimonials-list, .method-steps, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    margin-bottom: 16px;
  }
}

.testimonials-list {
  gap: 24px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fdfdfc;
  color: #18121A;
  border-left: 4px solid var(--lux-gold);
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border-color 0.13s;
}
.testimonial-card p {
  color: #281921;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card > div > strong {
  color: var(--secondary);
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 36px rgba(195,162,105,0.17);
}
.testimonial-card img {
  height: 1.18em;
  vertical-align: middle;
  margin-right: 1.5px;
}

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

.card {
  min-height: 220px;
  border: 1px solid var(--lux-gold);
  transition: box-shadow 0.18s, border-color 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(122,17,33,0.11);
  border-color: var(--primary);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

/* ---------------------
   SEARCH + FILTER BARS
   --------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 35px;
  border: 1px solid var(--lux-gray);
  box-shadow: 0 2px 18px rgba(195,162,105,0.06);
  padding: 8px 14px;
  margin-bottom: 16px;
}
.search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  padding: 8px 10px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #18121A;
}
.search-bar button {
  background: var(--lux-gold);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.search-bar button:hover, .search-bar button:focus {
  background: var(--primary);
}
.search-bar button img {
  width: 19px;
  filter: brightness(0.80);
}

.filter-options {
  display: flex;
  gap: 22px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-options label {
  font-size: 0.98rem;
  color: #3A2C1D;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
}
.filter-options input[type="checkbox"] {
  accent-color: var(--lux-gold);
  margin-right: 6px;
}

@media (max-width: 768px) {
  .search-bar, .filter-options {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
}

/* ---------------
   FOOTER
   --------------- */
footer {
  padding: 44px 0 24px 0;
  background: #151115;
  color: #f5ede1;
  font-size: 1rem;
  border-top: 2px solid var(--lux-gold);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img {
  height: 48px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 3px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--lux-gold);
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.98rem;
}
.footer-contact div {
  color: #e6e5e3;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 19px;
  vertical-align: middle;
  margin-right: 3px;
}
footer p {
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  color: #b5a693;
}
@media (max-width: 768px) {
  .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ------------
   LISTS & DL
   ------------ */
ul, ol {
  margin-top: 4px;
  margin-bottom: 14px;
}
ul li, ol li, dl dt, dl dd {
  margin-bottom: 11px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
dt {
  font-weight: bold;
  color: var(--primary);
  margin-top: 12px;
}
dd {
  margin-left: 16px;
  color: #272220;
}
ul li img, ol li img {
  height: 22px;
  margin-right: 7px;
  vertical-align: text-bottom;
}

/* --------
   OL Steps
   -------- */
ol {
  list-style-type: decimal;
  padding-left: 1.3em;
}
ol li {
  margin-bottom: 12px;
}

/* ----------------------
   GOLD ACCENTS
   ---------------------- */
.gold {
  color: var(--lux-gold)!important;
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .section {
    padding: 17px 2px;
    margin-bottom: 36px;
  }
}

/* ---------------
   MICRO-INTERACTIONS
   --------------- */
.feature img, .values-list img, .method-steps img {
  height: 42px;
  margin-bottom: 10px;
  transition: transform 0.18s;
}
.feature:hover img, .feature:focus-within img,
.values-list .text-section:hover img {
  transform: scale(1.12) rotate(-3deg);
}

.btn-primary, .btn-secondary {
  transition: background 0.17s, color 0.17s, box-shadow 0.15s, border 0.16s;
}

input, textarea, button {
  font-family: inherit;
}

/* ---------------
   MODAL/BANNER: COOKIE CONSENT
   --------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: #18121A;
  color: #fff;
  border-top: 3px solid var(--lux-gold);
  box-shadow: 0 -4px 22px rgba(30,24,32,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 10vw 22px 4vw;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial,sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
#cookie-banner-text {
  flex: 1 1 480px;
  margin-right: 20px;
  color: #fff;
}
#cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
#cookie-banner .cookie-btn {
  padding: 9px 25px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin: 0 2px;
  transition: background 0.14s, color 0.13s, box-shadow 0.12s;
}
#cookie-banner .cookie-btn.accept {
  background: var(--lux-gold);
  color: #18121A;
}
#cookie-banner .cookie-btn.accept:hover {
  background: #a17c47;
  color: #fff;
}
#cookie-banner .cookie-btn.reject {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
#cookie-banner .cookie-btn.reject:hover {
  background: #322822;
}
#cookie-banner .cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--lux-gold);
}
#cookie-banner .cookie-btn.settings:hover {
  background: var(--lux-gold);
  color: #fff;
}
@media (max-width: 800px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 5vw;
    font-size: 0.92rem;
  }
  #cookie-banner-text {
    margin-bottom: 10px;
    margin-right: 0;
    width: 100%;
  }
  #cookie-banner-actions {
    gap: 7px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,18,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100009;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
#cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal-content {
  background: #fff;
  color: #18121A;
  border-radius: 18px;
  box-shadow: 0 18px 80px rgba(90,80,55,0.22);
  max-width: 500px;
  width: 98vw;
  padding: 36px 20px 29px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 13px;
  background: none;
  font-size: 2.2rem;
  border: none;
  color: var(--lux-gold);
  cursor: pointer;
  transition: color 0.16s;
}
#cookie-modal-close:hover {
  color: var(--primary);
}
#cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
#cookie-modal .cookie-category label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
#cookie-modal .toggle-switch {
  width: 38px;
  height: 21px;
  background: #eee;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
}
#cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
#cookie-modal .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  height: 17px; width: 17px;
  border-radius: 50%;
  background: #bbb;
  transition: left 0.15s, background 0.20s;
}
#cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 19px;
  background: var(--lux-gold);
}
#cookie-modal .toggle-switch.disabled,
#cookie-modal .toggle-switch input[disabled] + .toggle-slider {
  background: #eee !important;
  opacity: 0.45;
  cursor: not-allowed;
}
#cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
#cookie-modal-actions .cookie-btn {
  font-size: 1rem;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 26px;
  min-width: 120px;
  border: none;
}
#cookie-modal-actions .cookie-btn.accept {
  background: var(--lux-gold);
  color: #18121A;
}
#cookie-modal-actions .cookie-btn.accept:hover {
  background: var(--primary);
  color: #fff;
}
#cookie-modal-actions .cookie-btn.reject {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
#cookie-modal-actions .cookie-btn.reject:hover {
  background: #f8ebe2;
}
@media (max-width: 600px) {
  #cookie-modal-content {
    padding: 13px 4px 13px 10px;
    min-width: 0;
    max-width: 96vw;
    border-radius: 12px;
  }
}

/* ----------------------
   FORM ELEMENTS
   ---------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1.8px solid var(--lux-gray);
  background: #f9f6f2;
  color: #18121A;
  margin-bottom: 12px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.17s, background 0.13s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--lux-gold);
  background: #fffef8;
}

button, .btn-primary, .btn-secondary {
  user-select: none;
}

::selection { background: #F6E8bf; }

/* ----------------------
   LEGAL PAGES
   ---------------------- */
main section h2 {
  color: var(--primary);
}

/*-----------------------
  SPECIAL: THANK YOU PAGE
------------------------*/
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* -------------
 * MISCELLANEA
 ------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #f5f3ea;
}
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--lux-gold);
  min-height: 25px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b1996c;
}

@media (max-width: 500px) {
  .container {
    padding: 0 6px;
  }
  .main-nav {
    padding: 12px 0;
  }
}
