/* ==========================================================================
   Bliss Bloom Immobiliare – INDUSTRIAL MODERN CSS THEME
   ========================================================================== */
/* RESET & BASELINE 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #23292f;
  color: #F8F6F1;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #87B682;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A0D199;
  text-decoration: underline;
}
ul, ol {
  margin-left: 30px;
}
strong {
  font-weight: 700;
  color: #F8F6F1;
}
hr {
  border: none;
  border-top: 1px solid #444C54;
  margin: 24px 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  color: #F8F6F1;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #dbdbda;
}
li {
  font-size: 1rem;
  margin-bottom: 8px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #23292F;
}

/* BRAND COLORS */
:root {
  --brand-dark: #25313D;
  --brand-secondary: #87B682;
  --brand-accent: #F8F6F1;
  --brand-metal: #86909a;
  --brand-steel: #444C54;
  --brand-coal: #23292f;
  --shadow-dark: rgba(12,18,27,0.12);
}

/* CONTAINER LAYOUTS (Flex Only) */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-grid, .service-grid, .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature, .service, .benefit {
  flex: 1 1 270px;
  min-width: 250px;
  background: #26313D;
  color: #F8F6F1;
  padding: 28px 22px 24px 22px;
  border-radius: 12px;
  box-shadow: 0 3px 18px var(--shadow-dark);
  border: 1.5px solid #323c43;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 20px;
}
.feature:hover, .service:hover, .benefit:hover {
  transform: translateY(-4px) scale(1.017);
  box-shadow: 0 6px 24px 0 rgba(100,100,100,0.19);
  border-color: var(--brand-secondary);
}
.feature img, .service img, .benefit img {
  width: 44px;
  height: 44px;
  filter: grayscale(40%) contrast(1.2);
  margin-bottom: 16px;
}

.service-list, .step-list, .benefit-list, .usp-list, .summary-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}

ol.step-list {
  list-style: decimal inside;
  padding: 0 0 0 16px;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-list li img {
  width: 28px;
  height: 28px;
}
.faq-preview {
  margin-top: 18px;
  border-left: 3px solid var(--brand-secondary);
  padding-left: 22px;
  background: rgba(60,63,70, 0.28);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(128deg, #25313D 88%, #344150 100%);
  padding: 60px 0 56px 0;
  margin-bottom: 60px;
  border-bottom: 1px solid #323c43;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--brand-secondary);
  margin-bottom: 20px;
  text-shadow: 0 4px 22px #11212866;
}
.hero p {
  max-width: 600px;
  color: #F8F6F1;
  margin-bottom: 28px;
  font-size: 1.15rem;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  background: var(--brand-secondary);
  color: #25313D;
  padding: 14px 35px;
  border-radius: 46px;
  border: 0;
  box-shadow: 0 2px 8px 0 #1420242d;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.14s, color 0.14s, box-shadow 0.16s, transform 0.12s;
  margin-top: 2px;
}
.cta-button:hover, .cta-button:focus {
  background: #A7D89D;
  color: #11181f;
  box-shadow: 0 6px 24px 0 #25313d33;
  outline: none;
  transform: translateY(-2px) scale(1.023);
}

/* MAIN NAVIGATION */
header {
  background: #23292F;
  border-bottom: 1.8px solid #323c43;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  justify-content: space-between;
}
.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #F8F6F1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.14s;
  position: relative;
  padding: 4px 3px;
}
.main-nav a:after {
  display: block;
  content: '';
  height: 1.8px;
  width: 0;
  background: var(--brand-secondary);
  transition: width 0.25s;
  position: absolute;
  left: 0; bottom: -2px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 70%;
}
.main-nav a.active {
  color: var(--brand-secondary);
}

header img {
  height: 42px;
  width: auto;
  margin-right: 20px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.2rem;
  color: var(--brand-accent);
  border: 0;
  cursor: pointer;
  margin-left: 18px;
  z-index: 201;
  transition: color 0.13s, transform 0.13s;
}
.mobile-menu-toggle:active {
  color: var(--brand-secondary);
  transform: scale(0.93);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #23292fe9;
  box-shadow: 2px 0 22px #00000036;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.68, -0.55, 0.27, 1.25);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  margin: 24px 28px 8px 0;
  background: none;
  border: 0;
  color: #F8F6F1;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 2020;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 22px 0 0 0;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #F8F6F1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.7em 0;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2c393f;
  color: var(--brand-secondary);
}

@media (max-width: 1040px) {
  .container {
    max-width: 97vw;
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 820px) {
  header .container {
    gap: 9px;
  }
}
@media (max-width: 830px) {
  .feature-grid, .service-grid, .benefit-grid {
    gap: 14px;
  }
}
@media (max-width: 991px) {
  .feature, .service, .benefit {
    min-width: 170px;
  }
}
/* HIDE DESKTOP NAV ON MOBILE, SHOW BURGER */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    font-size: 1.05rem;
    padding: 12px 22px;
  }
  
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 36px 0 30px 0;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 19px;
  }
  h2 {
    font-size: 1.5rem;
    margin-bottom: 13px;
  }
  .feature, .service, .benefit {
    font-size: 0.97rem;
    padding: 15px 8px 14px 8px;
    min-width: 95vw;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
  }
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(96deg, #23292F 66%, #25313D 100%);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 #19304230;
  margin-bottom: 56px;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta-banner h2 {
  color: var(--brand-secondary);
  margin-bottom: 10px;
}

/* CARDS AND CARD CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px 24px 20px;
  background: #26313D;
  border-radius: 12px;
  box-shadow: 0 1px 10px #111a2070;
  border: 1.3px solid #323c43;
  color: #F8F6F1;
  display: flex;
  flex-direction: column;
  min-width: 256px;
  flex: 1 1 256px;
  z-index: 1;
  transition: box-shadow 0.13s, border 0.13s;
}
.card:hover {
  border-color: var(--brand-secondary);
  box-shadow: 0 6px 19px #15202c33;
}

/* FLEX ROWS & GRID-LIKE SECTIONS */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .service-grid, .benefit-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* TESTIMONIAL CARDS */
.testimonial-carousel {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 20px 22px;
  margin-bottom: 20px;
  background: #F8F6F1;
  color: #222b33;
  border-left: 4px solid var(--brand-secondary);
  border-radius: 14px;
  box-shadow: 0 4px 32px 0 #1530320b, 0 1px 2px #2d455550;
  min-width: 240px;
  max-width: 410px;
  font-size: 1.03rem;
  transition: box-shadow 0.14s, border 0.14s;
}
.testimonial-card p, .testimonial-card strong {
  color: #11181f;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 #202a2c22;
  border-left-color: var(--brand-metal);
}
.testimonial-meta {
  font-size: 1em;
  color: #6f868b;
  margin-top: 3px;
}

/* SECTION LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FOOTER */
footer {
  background: #1B2329;
  color: #A3B1B9;
  border-top: 2px solid #323c43;
  padding: 16px 0 12px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
.footer-brand {
  flex: 2 1 340px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-brand img {
  width: 42px;
  margin-bottom: 7px;
}
.footer-info p, .footer-brand p {
  color: #d7d8d8;
  font-size: 0.99rem;
}
.footer-nav {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #C2C7CC;
  font-size: 1.01rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}
@media (max-width: 840px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* CONTACT DETAILS - for contatti.html */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 23px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  filter: grayscale(24%) contrast(1.1);
  vertical-align: middle;
}

/* GENERAL ANIMATION UTILITIES */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.49,0.18,0.49,0.89);
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* BUTTONS (for cookie, forms, etc) */
button, .button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 28px;
  border: 0;
  background: var(--brand-secondary);
  color: #25313D;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.12s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #A0D199;
  color: #222526;
  transform: scale(1.025);
}

/* -----------------------------
   COOKIE CONSENT BANNER+MODAL
   ----------------------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 3000;
  background: #23292fec;
  display: flex;
  justify-content: center;
  box-shadow: 0 -3px 32px #181f1f45;
  padding: 0;
  animation: slideUp 0.6s cubic-bezier(.59,.02,.51,.99);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 15px 20px;
  max-width: 1000px;
  width: 100%;
  font-size: 1rem;
  color: #F8F6F1;
}
.cookie-banner-content p {
  margin-bottom: 0;
  color: #F8F6F1;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-accept {
  background: var(--brand-secondary);
  color: #23292F;
  font-weight: 700;
  border: 0;
}
.cookie-reject {
  background: #2e3840;
  color: #F8F6F1;
  font-weight: 500;
  border: 1.5px solid #87B682;
  transition: background 0.11s, color 0.19s;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #25313D;
  color: #87B682;
}
.cookie-settings {
  background: none;
  border: 1.5px solid #F8F6F1;
  color: #F8F6F1;
  font-weight: 500;
  transition: background 0.14s, color 0.16s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #323b4450;
  color: var(--brand-secondary);
}

@media (max-width: 700px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 14px 6px 14px 12px;
  }
  .cookie-banner-buttons {
    gap: 7px;
  }
}

/* COOKIE MODAL POPUP */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(50,57,60,0.89);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.14s;
}
.cookie-modal-content {
  background: #F8F6F1;
  color: #25313d;
  border-radius: 20px;
  max-width: 410px;
  width: 98vw;
  padding: 30px 28px 22px 28px;
  box-shadow: 0 6px 28px #1D323420;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.04rem;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.23rem;
  color: #25313d;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
  margin-top: 0;
}
.cookie-modal-content ul {
  margin-left: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #23323D;
  cursor: pointer;
  font-weight: 600;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.cookie-category .cookie-toggle {
  appearance: none;
  display: inline-block;
  width: 34px; height: 19px;
  background: #c2ceb7;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.13s;
  cursor: pointer;
  border: 1.2px solid #87B682;
}
.cookie-category .cookie-toggle:checked {
  background: #87B682;
}
.cookie-category .cookie-toggle:before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #F8F6F1;
  border-radius: 50%;
  position: absolute;
  left: 2.2px; top: 1.1px;
  transition: left 0.15s;
  box-shadow: 0 2px 6px #0002;
}
.cookie-category .cookie-toggle:checked:before {
  left: 15px;
}
.cookie-category label {
  font-size: 1.05em;
  font-weight: 500;
  color: #25313d;
}
.cookie-category .essential-label {
  color: #87B682;
  font-weight: 700;
}

.cookie-modal-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 9px 18px;
  border-radius: 12px;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 14px 2vw 10px 2vw;
    font-size: 1em;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================
   UTILITY CLASSES
   ========================== */
.mt-0 { margin-top: 0 !important; }
.mt-32 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.align-center { text-align: center !important; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* ==========================
   INDUSTRIAL MODERN TOUCHES
   ========================== */
/* Metallic/factory detail: card border, decorative divider, etc. */
.card, .feature, .benefit, .testimonial-card {
  border-top: 2.5px solid #86909A44;
  border-bottom: 1px solid #86909A27;
}
hr, .divider {
  border: none;
  border-top: 2px solid #86909a55;
  margin: 36px 0;
}

/* Urban, industrial style subtle slab font crossbar effect on headings */
@supports (font-variation-settings: normal) {
  h1, h2, h3 {
    font-variation-settings: 'wght' 700, 'slnt' 0;
  }
}

/* Industrial focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-metal);
  outline-offset: 2px;
}

/* ==========================
   MISCELLANEOUS
   ========================== */
::-webkit-input-placeholder { color: #b5bac6; }
::-moz-placeholder { color: #b5bac6; }
:-ms-input-placeholder { color: #b5bac6; }
::placeholder { color: #b5bac6; }

/* Hide cookie elements if not present - fallback */
#cookie-banner, #cookie-modal { display: none; }
