/* === 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,
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 {
  scroll-behavior: smooth;
  background: #24221e;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(120deg, #24221e 0%, #50403a 100%);
  color: #f5e8d1;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
}
a {
  color: #f2b059;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #be3a34;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
strong {
  color: #F5E8D1;
  font-weight: 700;
}
em {
  color: #f2b059;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #f5e8d1;
  letter-spacing: .02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  font-weight: 900;
  text-shadow: 0 0 22px #be3a34aa;
  line-height: 1.1;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 0 7px #50403aae;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}
blockquote {
  border-left: 4px solid #be3a34;
  padding-left: 18px;
  font-style: italic;
  background: #f5e8d1;
  color: #50403a;
  border-radius: 7px;
  margin-bottom: 16px;
  box-shadow: 0 3px 22px 0 #2222  ;
}

/* === COMMON STRUCTURE === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: rgba(36,34,30,0.75);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px 0 #50403a11;
  color: #f5e8d1;
}

/* === BUTTONS & CTA === */
.cta, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  background: #be3a34;
  color: #f5e8d1;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 2px 32px 0 #be3a3455;
  margin-top: 16px;
  letter-spacing: .09em;
  transition: background .25s, color .21s, box-shadow .25s, transform .2s;
  outline: none;
  position: relative;
}
.cta:hover, button:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: #ea4455;
  color: #fff7bd;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 38px 0 #be3a34aa;
}
button:focus, .cta:focus {
  outline: 2px solid #f2b059;
}

/* === HERO === */
.hero {
  background: linear-gradient(120deg, #be3a34 0%, #24221e 70%);
  border-radius: 0 0 48px 48px;
  box-shadow: 0 6px 24px 0 #be3a341a;
  padding-top: 54px;
  padding-bottom: 48px;
  margin-bottom: 60px;
  position: relative;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  color: #f5e8d1;
  gap: 12px;
}

/* === NAVIGATION === */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(36, 34, 30, 0.92);
  padding: 18px 0 18px 0;
  z-index: 30;
  box-shadow: 0 1px 12px 0 #be3a3418;
}
.main-navigation img {
  height: 44px;
  margin-right: 14px;
  filter: drop-shadow(0 0 7px #be3a3422);
}
.main-navigation a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #f5e8d1;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 22px;
  transition: background .16s, color .2s, box-shadow .2s;
  letter-spacing: 0.08em;
  position: relative;
}
.main-navigation a:hover, .main-navigation a:focus {
  background: #be3a34;
  color: #fff7bd;
  box-shadow: 0 0 18px 0 #fff7bd66,0 2px 18px #be3a3494;
}

.footer-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0 0;
  margin-bottom: 8px;
}
.footer-navigation a {
  color: #be3a34;
  background: #f5e8d1;
  font-weight: 700;
  font-size: 16px;
  padding: 7px 16px;
  border-radius: 18px;
  transition: background .17s, color .17s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  background: #be3a34;
  color: #f5e8d1;
}

footer {
  background: #1b1815;
  color: #dacbbd;
  padding: 36px 0 0 0;
  box-shadow: 0 -4px 18px 0 #24221e80;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
}
footer .text-section {
  color: #dacbbd;
  background: transparent;
  margin-top: 18px;
  box-shadow: none;
  padding: 0 18px 32px 18px;
  text-align: center;
}
footer .text-section a {
  color: #be3a34;
  text-decoration: underline;
}
footer .text-section a:hover {
  color: #f2b059;
}

/* === TEXT DISPLAY/IMAGE SECTIONS & CARDS === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #312725;
  border-radius: 20px;
  box-shadow: 0 3px 22px 0 #be3a3422, 0 1.5px 12px 0 #50403a22;
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  color: #f5e8d1;
  transition: box-shadow .23s, transform .21s;
}
.card:hover {
  box-shadow: 0 7px 32px 0 #be3a3490, 0 3px 33px #f5e8d130;
  transform: translateY(-5px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* === FEATURE ITEMS === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #251b18;
  border-radius: 14px;
  box-shadow: 0 2px 18px #be3a3429;
  padding: 24px;
  transition: box-shadow .22s, background .17s;
  color: #fff7bd;
}
.feature-item strong {
  color: #f5e8d1;
}
.feature-item:hover {
  background: #be3a34;
  color: #f5e8d1;
  box-shadow: 0 4px 24px 0 #be3a34bb;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f5e8d1;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 4px 18px #be3a3422;
  flex-wrap: wrap;
  flex-direction: row;
}
.testimonial-card strong {
  color: #be3a34;
}
.testimonial-card blockquote {
  background: transparent;
  color: #333;
  border-left: 4px solid #be3a34;
  margin-bottom: 0;
  box-shadow: none;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #50403a;
}

/* === COOKIE BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #1b1815f2;
  color: #f5e8d1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  box-shadow: 0 -6px 24px 0 #be3a3459;
  border-radius: 40px 40px 0 0/ 24px 24px 0 0;
  gap: 16px;
  animation: slideUpCookie .45s ease;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btn {
  margin-right: 10px;
  background: #be3a34;
  color: #fff7bd;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  margin: 0 6px;
  box-shadow: 0 1px 8px #be3a3480;
  transition: background .18s, color .23s, box-shadow .22s, transform .2s;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #e1505c;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,34,30,0.7);
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100vh;
  transition: opacity .25s;
}
.cookie-modal {
  background: #24221e;
  color: #f5e8d1;
  padding: 38px 36px 30px 36px;
  border-radius: 27px;
  max-width: 400px;
  width: 100%;
  margin: 36px;
  box-shadow: 0 10px 56px #be3a342a, 0 1.5px 13px #50403a24;
  animation: popModal .4s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes popModal {
  0% { transform: scale(0.8); opacity:0; }
  60% { transform: scale(1.03); opacity:.6; }
  90% { transform: scale(0.97); opacity:1; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  margin-top: 0;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #be3a34;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  background: #be3a34;
  color: #fff7bd;
  border-radius: 18px;
  font-size: 15px;
  padding: 8px 20px;
  box-shadow: 0 1px 8px #be3a3480;
  border: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .18s;
}
.cookie-modal .cookie-btn:hover {
  background: #e1505c;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: #be3a34;
  color: #f5e8d1;
  font-size: 2.2rem;
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  margin-left: auto;
  z-index: 51;
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #f2b059;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  background: #24221ecf;
  z-index: 3000;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transition: transform .5s cubic-bezier(.77,0,.18,1), opacity .25s;
  will-change: transform, opacity;
}
.mobile-menu.open {
  display: flex;
  animation: mobileMenuSlide .4s ease;
}
@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
.mobile-menu-close {
  background: #be3a34;
  color: #fff7bd;
  font-size: 2rem;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  margin: 32px 36px 22px 0;
  align-self: flex-end;
  box-shadow: 0 3px 14px 0 #be3a3491;
  cursor: pointer;
  transition: background .14s, transform .15s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 36px 48px 36px;
  width: 100vw;
  max-width: 350px;
  background: #24221e;
  box-shadow: -7px 0 30px 0 #be3a3459;
  border-radius: 34px 0 0 34px;
  z-index: 3030;
  font-size: 1.12rem;
  text-align: start;
  align-items: flex-start;
}
.mobile-nav a {
  color: #f5e8d1;
  background: #be3a34;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 600;
  transition: background .18s, color .16s, box-shadow .21s;
  display: flex;
  min-width: 160px;
  letter-spacing: 0.09em;
  font-family: 'Roboto', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f2b059;
  color: #be3a34;
  box-shadow: 0 1.5px 10px #ea445588;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-navigation {
    gap: 7px;
    font-size: 15px;
  }
}
@media (max-width: 850px) {
  .main-navigation a {
    font-size: 14px;
    padding: 7px 12px;
  }
}

@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.20rem;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .hero {
    padding: 30px 0 32px 0;
    margin-bottom: 32px;
    border-radius: 0 0 21px 21px;
  }
  .main-navigation {
    flex-direction: row;
    overflow-x: scroll;
    padding: 12px 0;
    gap: 7px;
  }
  .main-navigation img {
    height: 36px;
  }
  .footer-navigation {
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    padding: 10px 0 0 0;
  }
  .content-wrapper {
    gap: 12px;
  }

  /* MOBILE NAV */
  .main-navigation {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    right: 22px;
    top: 18px;
    z-index: 1005;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }
  body.menu-open {
    overflow: hidden;
  }

  /* FLEX LAYOUTS */
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
@media (max-width: 540px) {
  html, body {
    font-size: 14px;
  }
  .section {
    padding: 12px 2px;
  }
  .hero {
    padding: 18px 0 20px 0;
    border-radius: 0 0 11px 11px;
  }
  .cookie-banner {
    padding: 12px 6px;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
  }
  .cookie-modal {
    padding: 22px 9px;
    margin: 9px;
    border-radius: 11px;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  background: #312725;
}
::-webkit-scrollbar-thumb {
  background: #be3a34;
  border-radius: 8px;
}

/* === TRANSITIONS & MICRO-INTERACTIONS === */
.card, .feature-item, .cta, .mobile-nav a, .testimonials-card, .cookie-btn {
  transition: box-shadow .22s, background .19s, color .19s, transform .18s;
}

/* === OTHERS === */
hr {
  height: 1px;
  border: none;
  background: #be3a34;
  opacity: .38;
  margin: 32px 0;
}
pre, code {
  font-family: 'Roboto Mono', monospace;
  background: #312725;
  color: #f5e8d1;
  border-radius: 7px;
  padding: 4px 9px;
}

/* === LAYOUT SPACING CLASSES (per pattern richiesto) === */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === Z-INDEX PROTECTION === */
header, .mobile-menu-toggle { z-index: 105; }
.mobile-menu { z-index: 3000; }

/* ==== END ==== */
