/* =====================================================
   Dopascana Immobiliare CSS — 'geometric_structured' Style
   Brand: Elegant, professional, geometric, modern
   ===================================================== */

/* ==== CSS RESET & NORMALIZATION ==== */
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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F6F6F2;
  font-family: 'Roboto', Arial, sans-serif;
  color: #14203D;
  font-size: 16px;
  line-height: 1.6;
}
*, *:before, *:after { box-sizing: inherit; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; transition: color 0.25s; }
ul, ol { list-style: none; }

/* ==== VARIABLES (NO CSS custom properties for better compatibility) ==== */
/* ================ TYPOGRAPHY SCALE ================ */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: #14203D;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #14203D;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #14203D;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
p, li, ul, ol, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #14203D;
}
strong {
  font-weight: 700;
  color: #B29B58;
}

/* ====== LAYOUT HELPERS & CONTAINERS ====== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(20,32,61,0.08);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 20px;
  }
}

/* ==== FLEX PATTERNS MANDATORY ==== */
.card-container, .features-list, .values-list, .services-list, .process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card, .features-list li, .values-list li, .services-list li, .process-steps li {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(20,32,61,0.09);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2px solid #F6F6F2;
}
@media (max-width: 768px) {
  .card-container, .features-list, .values-list, .services-list, .process-steps {
    gap: 14px;
  }
  .card, .features-list li, .values-list li, .services-list li, .process-steps li {
    padding: 18px 10px;
    border-radius: 14px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 20px 24px;
  background: #f7f7f5;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(20,32,61,0.07);
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid #B29B58;
}
.testimonial-meta {
  margin-left: auto;
  font-size: 0.96rem;
  font-family: 'Montserrat',Arial,sans-serif;
  color: #14203D;
  opacity: 0.85;
  font-style: italic;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border-left-width: 3px;
    border-radius: 12px;
  }
  .testimonial-meta { margin-top: 12px; margin-left: 0; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HERO ==== */
.hero-section {
  padding: 64px 0 40px 0;
  background: linear-gradient(90deg, #fff 80%, #B29B58 110%);
  border-bottom-left-radius: 80px 48px;
  border-bottom-right-radius: 80px 48px;
}
.hero-section .container { max-width: 900px; }
.hero-section h1 {
  font-size: 2.6rem;
  letter-spacing: -2px;
  color: #14203D;
  margin-bottom: 14px;
}
.hero-section p {
  color: #14203D;
  font-size: 1.18rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 22px 0;
    border-bottom-left-radius: 28px 10px;
    border-bottom-right-radius: 28px 10px;
  }
  .hero-section h1 { font-size: 2rem; }
}

/* ===== NAVIGATION BAR & HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,32,61,0.07);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}
.main-nav > a img {
  height: 38px;
  display: block;
}
.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav li a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #14203D;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav li a:hover, .main-nav li a:focus {
  background: #B29B58;
  color: #fff;
}
.cta-primary {
  font-family: 'Montserrat',Arial,sans-serif;
  background: #14203D;
  color: #fff !important;
  padding: 11px 26px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 3px 24px rgba(20,32,61,0.12);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.15s;
  margin-left: 12px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #B29B58;
  color: #14203D !important;
  box-shadow: 0 7px 24px rgba(178,155,88,0.15);
}
.cta-secondary {
  font-family: 'Montserrat',Arial,sans-serif;
  background: #fff;
  color: #B29B58;
  border: 2px solid #B29B58;
  padding: 10px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: 0 2px 6px rgba(178,155,88,0.06);
  margin: 10px 0 0 0;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #B29B58;
  color: #fff;
  border-color: #14203D;
}

@media (max-width: 992px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 10px;
  }
  .main-nav ul { gap: 12px; }
  .cta-primary { padding: 9px 17px; font-size: 0.98rem; }
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #14203D;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 41;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #B29B58;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  background: rgba(20,32,61,0.96);
  z-index: 40;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.85,0,0.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #B29B58;
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 41;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #B29B58;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 92px;
  width: 100%;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  padding: 9px 0;
  border-radius: 8px;
  transition: color 0.18s, background 0.12s;
  width: fit-content;
  position: relative;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B29B58;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 992px) {
  .main-nav ul, .main-nav .cta-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ==== FOOTER ==== */
footer {
  background: #14203D;
  color: #fff;
  padding: 44px 0 24px 0;
  margin-top: 60px;
  border-top-left-radius: 44px 20px;
  border-top-right-radius: 44px 20px;
  box-shadow: 0 -3px 14px rgba(20,32,61,0.12);
}
.footer-nav { margin-bottom: 18px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.footer-nav ul li a {
  color: #fff;
  opacity: 0.86;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav ul li a:hover, .footer-nav ul li a:focus {
  color: #B29B58;
  background: #fff;
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 0.99rem;
  opacity: 0.85;
  margin-top: 10px;
}
.footer-contact a {
  color: #B29B58;
  font-weight: 500;
}

@media (max-width: 600px) {
  footer {
    padding: 24px 0 18px 0;
    border-top-left-radius: 14px 6px;
    border-top-right-radius: 14px 6px;
  }
  .footer-nav ul { gap: 11px; }
}

/* ==== BUTTONS ==== */
button, [type=button], [type=submit] {
  font-family: 'Montserrat',Arial,sans-serif;
  padding: 10px 23px;
  border-radius: 13px;
  background: #B29B58;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.16s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 1px 8px rgba(178,155,88,0.12);
}
button:hover, button:focus {
  background: #14203D;
  color: #fff;
  box-shadow: 0 3px 16px rgba(20,32,61,0.13);
}

/* ==== CONTENT CARDS, FEATURES, VALUES ==== */
.features-list li, .values-list li {
  width: calc(50% - 16px);
  min-width: 240px;
  max-width: 340px;
  min-height: 240px;
  flex: 1 1 220px;
}
.services-list li {
  width: calc(33% - 18px);
  min-width: 230px;
  max-width: 360px;
  flex: 1 1 210px;
}
.process-steps li {
  width: calc(33% - 16px);
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 180px;
}
@media (max-width: 900px) {
  .features-list li, .values-list li { width: 100%; max-width: 100%; min-width: 0; }
  .services-list li, .process-steps li { width: 100%; max-width: 100%; min-width: 0; }
}
.features-list img, .values-list img, .process-steps img {
  height: 55px;
  width: 55px;
  margin-bottom: 6px;
}

/* ==== CONTACT DETAILS ==== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: #FFFDEC;
  padding: 22px 24px;
  border-radius: 14px;
  border-left: 5px solid #B29B58;
  box-shadow: 0 2px 10px rgba(178,155,88,0.07);
  margin-bottom: 20px;
}
.contact-info .cta-secondary { margin-top: 6px; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact-details li img {
  width: 22px; height: 22px;
  display: block;
}
.social-links {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 8px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  transition: filter 0.15s;
}
.social-links a:hover img { filter: brightness(1.3) contrast(1.2); }

/* ==== TIPS LIST, EXPERT BIO, ETC ==== */
.tips-list h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #14203D;
}
.tips-list p { margin-bottom: 8px; }
.expert-bio {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(20,32,61,0.08);
  padding: 20px 20px 20px 32px;
  margin-bottom: 20px;
  border-left: 5px solid #B29B58;
}
.expert-bio h3 { margin-top: 9px; }

/* ==== TEXT SECTIONS & EXTRAS ==== */
.text-section, .text-image-section {
  font-size: 1rem;
  color: #14203D;
  line-height: 1.7;
  margin-bottom: 12px;
}
.text-section ul {
  list-style-type: square;
  margin-left: 28px;
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 10px;
}

/* ==== MISC ==== */
a:hover, a:focus { color: #B29B58; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid #B29B58;
  box-shadow: 0 -2px 12px rgba(20,32,61,0.12);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
  color: #14203D;
  animation: slideUpBanner 0.72s cubic-bezier(0.57,1,0.31,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  font-size: 1rem;
  flex: 2 1 180px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex: 1 1 130px;
}
.cookie-banner button {
  background: #B29B58;
  color: #fff;
  font-size: 0.97rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 7px rgba(178,155,88,0.09);
  transition: background 0.18s, color 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #14203D;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 13px 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  .cookie-banner .cookie-banner-actions { justify-content: flex-end; }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  background: rgba(20,32,61,0.42);
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.45s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 36px rgba(20,32,61, 0.14);
  max-width: 420px;
  padding: 30px 28px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleInModal 0.38s;
}
@keyframes scaleInModal {
  from { transform: scale(0.83); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 19px;
  background: none;
  border: none;
  color: #B29B58;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #B29B58;
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: #B29B58;
  width: 22px;
  height: 22px;
}
.cookie-category input:disabled {
  accent-color: #14203D;
}
.cookie-category label {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #14203D;
}
.cookie-category .cookie-category-desc {
  font-size: 0.97rem;
  color: #474747;
  margin-left: 8px;
  opacity: 0.87;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 7px;
}
.cookie-modal-actions button {
  background: #B29B58;
  color: #fff;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #14203D;
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-modal { padding: 12px 3vw; max-width: 98vw; }
}


/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cta-primary, .cta-secondary, .features-list li, .values-list li, .services-list li, .process-steps li {
  transition: box-shadow 0.18s, border-color 0.20s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .features-list li:hover, .values-list li:hover, .services-list li:hover, .process-steps li:hover {
  box-shadow: 0 7px 32px rgba(178,155,88,0.15), 0 1.5px 8px rgba(20,32,61,0.07);
  border-color: #B29B58;
  transform: translateY(-3px) scale(1.025);
}

/* ==== VISUAL GEOMETRIC ELEMENTS ==== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -14px; left: 30px;
  width: 56px; height: 7px;
  border-radius: 5px;
  background: #B29B58;
  opacity: 0.16;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -14px; right: 30px;
  width: 56px; height: 7px;
  border-radius: 5px;
  background: #B29B58;
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section:before, .section:after { display: none; }
}

/* ==== FORM & INPUTS (Basic) ==== */
input, textarea, select {
  border: 2px solid #DFDFD8;
  background: #fff;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #14203D;
  transition: border 0.15s;
  font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: #B29B58;
  outline: none;
}

/* ==== ACCESSIBILITY: FOCUS STYLES ==== */
:focus {
  outline: 2px dashed #B29B58;
  outline-offset: 2px;
}

/* ==== SPACING RULES - FLEXBOX ONLY ==== */
/* (Reinforced for all main content sections) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 20px 6px;
  }
}

/* ==== OVERLAP & STACKING: NO OVERLAP ENFORCED ==== */
.card, .features-list li, .values-list li, .services-list li, .process-steps li, .testimonial-card, .contact-info {
  z-index: 1;
}
footer, header, .cookie-banner, .cookie-modal-overlay, .mobile-menu { z-index: 10000; }

/* ==== PRINT FRIENDLY ==== */
@media print {
  *, *:before, *:after { background: none!important; color: #14203D!important; box-shadow: none!important; }
  img, .section:before, .section:after, .cookie-banner, .mobile-menu { display: none!important; }
}

/* ==== UTILITY ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ===============================
   END OF Dopascana Immobiliare CSS
   =============================== */
