/* ===============================
   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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  background: #fff;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.45;
  color: #171717;
  background: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2D191B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #B05A33;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
strong { font-weight: 700; }

/* ===============================
   BRAND COLORS & TYPOGRAPHY
   =============================== */
:root {
  --color-primary: #2D191B;
  --color-secondary: #FFFFFF;
  --color-accent: #B05A33;
  --color-gray-900: #171717;
  --color-gray-700: #444444;
  --color-gray-400: #B6B6B8;
  --color-gray-200: #EAEAEA;
  --color-bg-light: #F4F4F4;
  --color-bg-alt: #FDF6ED;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #151515;
  line-height: 1.06;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--color-primary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
p, li, address {
  font-family: var(--font-body);
  color: var(--color-gray-900);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 400;
}
address { font-style: normal; }
.text-section > span, .text-section > address {
  display: block;
  margin-bottom: 10px;
}

/* ===============================
   GLOBAL LAYOUT & SPACING
   =============================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1080px;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 32px -12px rgba(44,27,29,0.11);
}

/* Monochrome effect for section alternation */
.section:nth-of-type(even),
section:nth-of-type(even) {
  background: #F4F4F4;
}

/* Responsive flex containers */
.card-container, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}

/* Card Styles */
.card {
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 30px 2px rgba(23,23,23,0.10);
  background: var(--color-secondary);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s;
  border: 1px solid #f0eeee;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 40px 4px rgba(44,27,29,0.20);
  border-color: var(--color-accent);
  z-index: 2;
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

/* Text + Image sections (for future extension) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 22px -4px rgba(55,51,49,0.12);
  border-left: 5px solid var(--color-accent);
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #2D191B;
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 3px rgba(44,27,29,0.14);
  border-left-color: #2D191B;
  background: #FAFAFA;
  z-index: 1;
}

/* Table Styles (Prezzi) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(35,35,35,0.08);
  overflow: hidden;
}
thead tr {
  background: #EFEDEB;
}
thead th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 600;
  text-align: left;
  padding: 14px 14px;
}
tbody td {
  font-size: 1rem;
  color: #171717;
  padding: 12px 14px;
  vertical-align: top;
  background: #fff;
  border-bottom: 1px solid #EAEAEA;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ===============================
   NAVIGATION
   =============================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px -8px rgba(44,27,29,0.08);
  z-index: 40;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  height: 76px;
  max-width: 1100px;
  margin: 0 auto;
}
header nav > a img {
  height: 38px;
  width: auto;
  margin-right: 28px;
}
header nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav ul li a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
header nav ul li a.active,
header nav ul li a:focus,
header nav ul li a:hover {
  background: #edeceb;
  color: var(--color-accent);
}
header nav .btn-primary {
  margin-left: 28px;
}

/* ===============================
   BUTTONS & MICRO-INTERACTIONS
   =============================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 28px;
  text-align: center;
  color: #fff;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(37,25,27,0.08);
  transition: background 0.18s, color 0.19s, box-shadow 0.18s, transform 0.16s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 5px 16px 0 rgba(176,90,51,0.18);
  transform: translateY(-2px) scale(1.028);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  font-weight: 500;
  box-shadow: none;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: #232222;
  padding: 48px 0 30px 0;
  color: #fff;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img {
  height: 44px;
  margin-bottom: 16px;
}
footer nav {
  margin-bottom: 10px;
}
footer nav a {
  color: #EFEDEB;
  font-size: 1rem;
  margin: 0 5px;
  transition: color 0.14s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-accent);
}
footer .text-section {
  color: #bbb;
  font-size: 0.98rem;
  text-align: center;
}
footer .text-section a {
  color: #fff;
  text-decoration: underline;
  word-break: break-all;
}

/* ===============================
   MOBILE NAVIGATION
   =============================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  z-index: 170;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 36px 0 rgba(23,23,23,0.15);
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.38s cubic-bezier(.87,-0.41,.19,1.51), opacity 0.26s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.6rem;
  background: transparent;
  border: none;
  color: var(--color-primary);
  position: absolute;
  top: 16px;
  right: 25px;
  z-index: 3401;
  padding: 0 15px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #B05A33;
}
.mobile-nav {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: center;
  gap: 22px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 12px 28px;
  border-radius: 8px;
  width: 85%;
  text-align: center;
  background: transparent;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 5px;
  box-sizing: border-box;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent);
  color: #fff !important;
}

@media (max-width: 1000px) {
  header nav ul {
    gap: 10px;
  }
  header nav {
    padding: 0 6px;
    gap: 8px;
  }
}

@media (max-width: 850px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  header nav {
    padding: 0 6px;
  }
  .card,
  .testimonial-card {
    padding: 20px 12px;
  }
}

@media (max-width: 768px) {
  header nav ul,
  header nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header nav {
    padding: 0 5px;
    height: 62px;
  }
  .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 10px;
    margin-bottom: 18px;
  }
  .section {
    padding: 26px 6px 26px 6px;
    margin-bottom: 34px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    max-width: 100vw;
    padding: 0 5px;
  }
  h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.17rem;
    margin-bottom: 12px;
  }
  h3 {
    font-size: 1.07rem;
  }
  footer {
    padding: 28px 0 14px 0;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: 11px 18px;
  }
}
@media (max-width: 480px) {
  .testimonial-card,
  .card {
    padding: 12px 5px;
  }
}

/* ===============================
   LISTS & ULs
   =============================== */
.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 14px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-wrapper ul li,
.content-wrapper ol li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.content-wrapper ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbb;
}

/* ===============================
   ICONS
   =============================== */
.content-wrapper img[src*='icons/'] {
  height: 36px;
  width: 36px;
  margin-bottom: 9px;
  filter: grayscale(1) contrast(1.16);
  opacity: 0.80;
}

/* ===============================
   COOKIE CONSENT BANNER
   =============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #efefef;
  color: #171717;
  box-shadow: 0 -2px 30px 0 rgba(23,23,23,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 20px 20px;
  z-index: 9999;
  gap: 18px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: showCookieBanner 0.6s cubic-bezier(.78,-0.32,.39,1.27);
  transition: transform 0.38s, opacity 0.21s;
}
@keyframes showCookieBanner {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin-bottom: 0;
  font-size: 1rem;
  flex: 1 1 auto;
}
.cookie-consent-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 7px 0 rgba(51,51,51,0.07);
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
}
.cookie-btn.accept-btn {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept-btn:hover, .cookie-btn.accept-btn:focus {
  background: var(--color-accent);
}
.cookie-btn.reject-btn {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #bbb;
}
.cookie-btn.reject-btn:hover, .cookie-btn.reject-btn:focus {
  background: #eee;
}
.cookie-btn.settings-btn {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.settings-btn:hover, .cookie-btn.settings-btn:focus {
  background: #2D191B;
  color: #fff;
}

@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 7px 11px 7px;
    font-size: 0.98rem;
  }
  .cookie-btn {
    font-size: 0.95rem;
    padding: 8px 12px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(41,41,41,0.31);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #171717;
  border-radius: 14px;
  box-shadow: 0 8px 48px 0 rgba(37,25,27,0.17);
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 92vw;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: showCookieModal 0.32s cubic-bezier(.78,-0.32,.39,1.27);
}
@keyframes showCookieModal {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: 0;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #e3e3e3;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.13s;
  box-shadow: 0 1px 5px 0 rgba(176,90,51,0.11);
}
.cookie-modal .cookie-toggle:checked:before {
  left: 22px;
}
.cookie-modal .save-cookie-btn {
  margin-top: 20px;
  padding: 11px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  border: none;
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.16s;
}
.cookie-modal .save-cookie-btn:hover,
.cookie-modal .save-cookie-btn:focus {
  background: var(--color-accent);
}
.cookie-modal .cookie-category.disabled {
  opacity: 0.46;
  pointer-events: none;
}

@media (max-width: 420px) {
  .cookie-modal {
    padding: 18px 5px 18px 5px;
    font-size: 1rem;
  }
}

/* ===============================
   MONOCHROME SOPHISTICATED STYLES
   =============================== */
/* High contrast monochrome aspect on monochrome section (nth) */
.section,
.content-wrapper, .card, .testimonial-card {
  background: #fff;
}
.section:nth-of-type(even),
section:nth-of-type(even) {
  background: #F4F4F4 !important;
}

.card, .testimonial-card {
  border: 1.1px solid #ededed;
}
.card h3,
.card h2 {
  color: var(--color-primary);
}

/* Visual hierarchy, subtle shadows */
.card, .testimonial-card {
  box-shadow: 0 4px 40px 0 rgba(41,41,41,0.10);
  transition: box-shadow 0.15s, border-color 0.14s;
}
.card:hover, .testimonial-card:hover, .card:focus-within, .testimonial-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 8px 56px 0 rgba(44,27,29,0.22);
  z-index: 2;
}


/* ========== Accessibility & Contrast Fixes ========== */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #fff;
  color: #171717;
}

/* ===============================
   UTILITY CLASSES & LAYOUT GAP ENFORCEMENT
   =============================== */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container { gap: 24px !important; }
.card { margin-bottom: 20px !important; }
.content-grid { gap: 20px !important; justify-content: space-between; }
.text-image-section { gap: 30px !important; }
.testimonial-card { gap: 20px !important; padding: 20px !important; }
.feature-item { gap: 15px !important; }

/* Card layout enforcement: prevent overlapping */
.card, .testimonial-card {
  min-width: 240px;
}

/* ===============================
   MISC: FORMS & INPUTS (for extension)
   =============================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1.01rem;
  padding: 9px 12px;
  border: 1.2px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 14px;
  transition: border-color 0.16s;
  width: 100%;
  color: #2D191B;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

button {
  font-family: inherit;
  font-size: inherit;
}

/* ===============================
   PRINT & SELECTION
   =============================== */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ===============================
   END CSS || BELLEZZA LOCALE
   =============================== */
