/* =====================================================
   RIFLESSI DI TEMPO - "elegant_classic" STYLE MAIN CSS
   ===================================================== */
/* ------ CSS RESET & NORMALIZE ------ */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  background: #FAFAFA;
  color: #363B41;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin: 12px 0;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  color: #363B41;
  font-weight: 600;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
a {
  color: #8A6B30;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #363B41;
  text-decoration: underline;
  outline: none;
}
strong {
  font-weight: 700;
  color: #363B41;
}

/* ===================
    LAYOUT STRUCTURE
==================== */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(54,59,65,0.045);
  transition: box-shadow 0.2s;
}
.section:hover {
  box-shadow: 0 6px 24px rgba(54,59,65,0.07);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F7F6F4;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(54,59,65,0.06);
  margin-bottom: 20px;
  padding: 28px 22px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(138,107,48,0.09);
  transform: translateY(-4px) scale(1.012);
}

.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;
  background: #F3F2F1;
  border-left: 4px solid #B0976D;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(54,59,65,0.07);
  color: #363B41; /* For contrast */
}
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-size: 1.18rem;
  color: #363B41;
  margin: 0;
  font-style: italic;
}
blockquote:before { content: open-quote; color: #B0976D; font-size: 2.6rem; line-height: 0; }
blockquote:after { content: close-quote; color: #B0976D; font-size: 2.6rem; line-height: 0; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 24px;
  padding: 0;
}

/* ===================
      NAVIGATION
==================== */
header {
  width: 100%;
  background: #FFF;
  border-bottom: 1px solid #E9E8E7;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 32px;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: #363B41;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #B0976D;
  border-radius: 1px;
  transition: width 0.2s;
  position: absolute;
  bottom: -3px;
  left: 0;
}
header nav a:hover, header nav a:focus {
  color: #8A6B30;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
.cta-btn {
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  color: #FFF;
  background: #8A6B30;
  border: none;
  border-radius: 7px;
  padding: 11px 30px;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(54,59,65,.06);
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: none;
  text-shadow: 0 1px 2px rgba(54,59,65,0.05);
}
.cta-btn:hover, .cta-btn:focus {
  background: #B0976D;
  box-shadow: 0 4px 16px rgba(138,107,48,0.09);
  color: #FFF;
  transform: translateY(-2px) scale(1.035);
  text-decoration: none;
}

/* ===============
   MOBILE MENU
================ */
.mobile-menu-toggle {
  display: none;
  z-index: 130;
  background: #FFF;
  border: none;
  font-size: 2.1rem;
  color: #8A6B30;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(54,59,65,0.10);
  cursor: pointer;
  position: fixed;
  top: 18px;
  right: 16px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  background: #F0EDEB;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF;
  box-shadow: 0 0 24px rgba(54,59,65,0.20);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.66,.12,.34,1.02);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #363B41;
  font-size: 2.1rem;
  padding: 16px 22px 4px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-family:'Montserrat', serif;
  font-weight: 500;
  font-size: 1.13rem;
  color: #363B41;
  padding: 13px 0;
  min-width: 220px;
  border-bottom: 1px solid #F1EFE8;
  transition: color 0.15s, background 0.16s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3F2F1;
  color: #8A6B30;
}

/* ==========
  MAIN
========*/
main {
  min-height: 450px;
  padding-top: 34px;
  padding-bottom: 60px;
}

/* ==========
  FOOTER
========== */
footer {
  width: 100%;
  background: #363B41;
  color: #e3e0d6;
  font-size: 0.97rem;
  letter-spacing: 0;
  padding: 44px 0 26px 0;
  border-top: 2px solid #E9E8E7;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 8px;
}
footer nav a {
  color: #DEDCD5;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color 0.16s;
}
footer nav a:hover {
  color: #B0976D;
  text-decoration: underline;
}
footer img {
  height: 38px;
  margin-bottom: 0;
}
footer p {
  color: #B8B4AA;
  margin-top: 18px;
  text-align: center;
  max-width: 460px;
}

/* ===================
    FORMS & BUTTONS
==================== */
input, textarea, select {
  font-family: 'Roboto', serif;
  font-size: 1rem;
  border: 1px solid #DAD8D1;
  border-radius: 7px;
  padding: 9px 15px;
  background: #FFF;
  margin-bottom: 15px;
  color: #363B41;
  outline: none;
  transition: border 0.16s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B0976D;
  box-shadow: 0 0 0 1px #B0976D19;
}
button {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  background: #8A6B30;
  color: #FFF;
  border: none;
  border-radius: 7px;
  padding: 9px 28px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, box-shadow 0.15s;
  box-shadow: 0 1px 6px rgba(54,59,65,0.08);
}
button:hover, button:focus {
  background: #B0976D;
  color: #FFF;
  box-shadow: 0 2px 16px rgba(138,107,48,0.13);
  outline: none;
}

/* ===================
   UTILITY CLASSES
==================== */
.hidden { display: none !important; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-column { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }

/* ===============
   ICONS in LI
================ */
ul li img, ol li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 9px;
  vertical-align: middle;
  display: inline-block;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}

/* =========================
   PRICING, BADGES etc.
========================== */
.price {
  font-size: 1.09rem;
  color: #8A6B30;
  background: #EFECE6;
  padding: 2px 12px;
  border-radius: 7px;
  margin-left: 8px;
  font-family: 'Montserrat', serif;
  font-weight: 500;
}

/* =========================
   TRANSITIONS & EFFECTS
========================= */
.section, .card, .cta-btn, button, .card, .testimonial-card {
  transition: box-shadow 0.16s, background 0.14s, color 0.12s, transform 0.18s;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1080px) {
  .container { max-width: 96vw; }
  header .container { gap: 12px; }
}
@media (max-width: 900px) {
  header nav { gap: 16px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 11px;
  }
  main { padding-top: 22px; padding-bottom: 32px; }
  .section {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: 9px;
  }
  .card-container, .content-grid { gap: 13px; }
  .card { padding: 18px 8px; border-radius: 9px; }
  header .container { flex-direction: row; gap: 8px; }
  footer .container { padding: 0 6px; }
  .testimonial-card { padding: 13px; }
  .content-wrapper { gap: 13px; }
  .text-image-section { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 700px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
  main { padding-top: 12px; }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .section { padding: 14px 3px; }
  .card, .testimonial-card { padding: 8px 3px; }
  .mobile-nav { padding: 0 16px; }
}

/* =========================
    COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F8F5EE;
  color: #363B41;
  border-top: 2px solid #B0976D;
  box-shadow: 0 -2px 24px rgba(54,59,65,.07);
  z-index: 5000;
  padding: 21px 24px 21px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-size: 1rem;
  animation: cookieBannerFadeIn 0.55s;
  transition: bottom 0.26s;
}
@keyframes cookieBannerFadeIn { from { bottom: -80px; opacity:0; } to { bottom:0; opacity:1; } }
.cookie-banner .cookie-btn {
  margin-left: 12px;
  font-size: 0.97rem;
  font-family: 'Montserrat', serif;
  border-radius: 7px;
  border: none;
  padding: 8px 20px;
  background: #8A6B30;
  color: #FFF;
  font-weight: 600;
  margin-right: 9px;
  box-shadow: 0 2px 7px rgba(54,59,65,0.07);
  transition: background 0.16s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #363B41;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #ECE9DF;
  color: #363B41;
  border: 1px solid #B0976D;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #B0976D;
  color: #FFF;
  box-shadow: 0 4px 24px rgba(138,107,48,0.09);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(54, 59, 65, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInModal 0.31s;
}
@keyframes fadeInModal { from { opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 8px 42px rgba(54,59,65,0.18);
  max-width: 410px;
  width: 92vw;
  padding: 32px 27px 28px 27px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 10001;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #E9E8E7;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Roboto', serif;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #8A6B30;
  width: 19px;
  height: 19px;
  margin: 0 8px 0 0;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px; right: 17px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #8A6B30;
  cursor: pointer;
}

/* ===========================
     SPECIAL ADJUSTMENTS
============================*/
/* Ensure testimonial text always dark on light bg */
.testimonial-card p, .testimonial-card blockquote, .testimonial-card strong {
  color: #363B41;
}

/* Utility for visually separating components */
.section + .section {
  margin-top: 20px;
}

/* Remove extra space for section inside main if first-child */
main > section:first-child .section,
main > section:first-child > .container > .content-wrapper {
  margin-top: 20px;
}

/* ===============
   PRINT STYLES
================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner { display: none !important; }
  main { padding: 0 !important; }
}

/* ===============
   BRAND FOCUS
================ */
::selection {
  background: #B0976D; color: #FFF;
}

/* End of CSS - generated for "Riflessi di Tempo" elegant_classic aesthetic */
