/* =========================================================
   CLEAR LEDGE MILANO – ELEGANT CLASSIC CSS THEME
   =========================================================
   - Mobile-first, elegant classic style
   - All layouts strictly flexbox (NO grid, NO columns)
   - Brand colors, fonts, and spacing applied
   - Responsive menu & cookie consent banner included
   ========================================================= */
  
/* ----------------------
   CSS RESET & BASELINE
------------------------ */
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 {
  scroll-behavior: smooth;
}
body {
  background: #F5F3ED;
  color: #173152;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  border: none;
}
a {
  color: #224162;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #D98B30;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  outline: none;
}
strong { font-weight: 700; }
hr {
  border: 0;
  border-top: 1px solid #e1e1e1;
  margin: 32px 0;
}

/* ----------------------
   BRAND COLORS & FONTS
------------------------ */
:root {
  --primary: #224162;
  --primary-dark: #173152;
  --secondary: #F5F3ED;
  --background: #FFFFFF;
  --accent: #D98B30;
  --text: #173152;
  --muted: #788093;
  --testimonial-bg: #F9F8F3;
  --border: #e8e5e0;
  --shadow: 0 2px 8px rgba(34,65,98,.08);
}

/* Web Fonts */
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary-dark);
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

p, li, span, label, input, textarea {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text);
}
p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}
small {
  font-size: .92rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.4rem; }
  p, li { font-size: 1.08rem; }
}

/* ---------------------
   CONTAINER & SECTIONS
------------------------ */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  max-width: 1020px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin: 20px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
}
.map-location {
  margin: 12px 0;
  padding: 16px 24px;
  background: #f9f7f2;
  border-radius: 8px;
  color: var(--primary);
  font-size: 1rem;
  font-style: italic;
}

/* Card pattern */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
}

/* Content grids & flex layouts (Always display:flex, never grid/columns) */
.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;
  margin-bottom: 20px;
  background: var(--testimonial-bg);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(34,65,98,.07);
  font-size: 1.08rem;
  flex-direction: column;
  position: relative;
}
.testimonial-card p {
  color: var(--primary-dark);
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--muted);
  align-self: flex-end;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

ul > li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
ul > li:last-child {
  margin-bottom: 0;
}

/* -----------------------------
   HEADER & MAIN NAVIGATION
------------------------------- */
header {
  width: 100%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  box-shadow: 0 1px 8px rgba(34, 65, 98, 0.04);
  position: relative;
  z-index: 100;
}
header > a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: none;
}
header nav a {
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-weight: 500;
  font-size: 1.08rem;
  margin: 0 12px;
  transition: color .18s;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: #F0E3CD;
  text-decoration: none;
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.8rem;
  margin-left: 8px;
  border: 1px solid var(--primary);
  transition: background .15s, color .15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 41, 54, 0.87);
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  transition: opacity .28s, pointer-events 0s linear .3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transition: opacity .35s;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 8px 0;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFDFAF;
  box-shadow: 0 3px 20px rgba(34,65,98,0.08);
  transition: background .15s, color .15s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 26px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  background: rgba(255,255,255,0.07);
  padding: 15px 28px;
  font-size: 1.25rem;
  border-radius: 8px;
  font-family: 'Merriweather', serif;
  transition: background .18s, color .18s;
  line-height: 1.3;
  width: 90vw;
  text-align: center;
  max-width: 410px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(255,234,202,0.15);
  text-decoration: none;
}

@media (min-width: 900px) {
  header nav {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ----------------------
   CTA BUTTONS
------------------------ */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Merriweather', serif;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 12px 32px;
  margin-top: 12px;
  border-radius: 28px;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(34,65,98,0.06);
  letter-spacing: 0.03em;
  transition: background .19s, color .18s, border-color .16s, transform .2s;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px) scale(1.04);
}

/* ----------------------
   FOOTER DESIGN
------------------------ */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 42px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: .96rem;
}
footer > a img {
  height: 32px;
  margin-bottom: 12px;
  width: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: 'Merriweather', serif;
  font-size: 1.0rem;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--primary);
  text-decoration: underline;
  margin: 0 6px;
  font-weight: 500;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus { color: var(--accent); text-decoration: none; }
footer .text-section {
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
}
footer .text-section a {
  color: var(--accent);
  text-decoration: underline;
}

/* Social links (thank-you page) */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.social-links p {
  font-size: 1rem;
  color: var(--muted);
  margin-right: 8px;
}
.social-links a img {
  height: 28px;
  width: 28px;
  filter: grayscale(25%) brightness(.93);
  opacity: .85;
  transition: filter .16s, opacity .13s;
}
.social-links a:hover img,
.social-links a:focus img {
  filter: none;
  opacity: 1;
}

/* -------------------------
   RESPONSIVE FLEX LAYOUTS
-------------------------- */
@media (max-width: 768px) {
  .section { padding: 30px 7px; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 16px; }
  .content-grid, .card-container, .features, .text-image-section {
    flex-direction: column !important;
    gap: 20px;
  }
  .testimonial-card {
    padding: 16px 9px;
  }
}

/* ------------------------------
   MICRO-INTERACTIONS / EFFECTS
-------------------------------- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow .16s, transform .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 36px rgba(34,65,98,0.13);
  transform: translateY(-2px) scale(1.021);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 20px rgba(34,65,98,0.12);
  transform: translateY(-1px) scale(1.012);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
  background: #FAF5EE;
}

/* --------------------------------------------
   ICONS in UL LISTS (all pages)
---------------------------------------------- */
ul > li img {
  margin-right: 12px;
  height: 28px;
  width: 28px;
  flex: 0 0 28px;
  filter: grayscale(20%) saturate(.85);
  opacity: .96;
}

/* ---------------
   FORMS (if any)
---------------- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid #D6D3C5;
  border-radius: 6px;
  margin-bottom: 20px;
  background: #f7f6f2;
  color: var(--primary-dark);
  transition: border .14s, box-shadow .18s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
}
label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 7px;
  display: block;
}

/* -------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--secondary);
  padding: 22px 24px;
  box-shadow: 0 -1px 26px 3px rgba(34,65,98,0.08);
  font-size: 1rem;
  gap: 18px;
  min-height: 64px;
  transition: transform .38s cubic-bezier(.77,.21,.26,.99), opacity .25s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-text {
  flex: 1;
  font-size: 1rem;
  color: var(--secondary);
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 22px;
  font-size: .98rem;
  transition: background .18s, color .15s;
  border: 1.5px solid var(--accent);
}
.cookie-banner .accept-btn {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-banner .reject-btn {
  background: transparent;
  color: var(--secondary);
  font-weight: 500;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #223;
  color: var(--accent);
}
.cookie-banner .settings-btn {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  border-color: var(--secondary);
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* Cookie modal popup */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,65,98,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .21s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(34,65,98,0.10);
  padding: 36px 22px 32px 22px;
  max-width: 410px;
  min-width: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: fadeDown .4s cubic-bezier(.63,.15,.34,1.1);
}
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-18px) scale(.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal .modal-title {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.cookie-modal label {
  font-size: 1.05rem;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-category-desc {
  font-size: .96rem;
  color: var(--muted);
  margin-left: 2.5em;
  margin-bottom: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .modal-actions button {
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 22px;
  font-size: .98rem;
  font-weight: 500;
}
.cookie-modal .close-modal {
  position: absolute; top: 12px; right: 18px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--primary-dark);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.12rem; font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--primary);
  color: var(--secondary);
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 14px 8px; }
  .cookie-modal { max-width: 96vw; padding: 22px 8px 14px 8px; }
}

/* ------------------
   UTILITY CLASSES
------------------- */
.hide { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-20 { gap: 20px; }
.rounded { border-radius: 20px; }
.shadow { box-shadow: var(--shadow); }

/* -----------------------------------
   PRINT-FRIENDLY (optional)
------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main, .container, .section { box-shadow: none !important; }
}
