/* ==========================================================================
   CSS RESET & BASE STYLES (Normalize + Brand)
   ========================================================================== */
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, main, 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;
}
.cookie-banner strong {
  color: white;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, li {
  font-family: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style-type: none;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border: none;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  appearance: none;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #E5F6F7 0%, #fff 85%);
  color: #234869;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   VARIABLES (Fallbacks included)
   ========================================================================== */
:root {
  --color-primary: #234869;
  --color-secondary: #E5F6F7;
  --color-bg: #ffffff;
  --color-accent: #8BAF5A;
  --color-accent-dark: #68902c;
  --color-dark: #1a2d3c;
  --color-light: #fafdff;
  --text-main: #234869;
  --text-dark: #1a2d3c;
  --text-light: #ffffff;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 18px rgba(35,72,105,0.07);
  --shadow-hover: 0 4px 24px rgba(35,72,105,0.16);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, .display-1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  line-height: 1.1;
}
h2, .display-2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-dark);
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.review-summary strong {
  color: var(--color-accent-dark);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
header {
  background: linear-gradient(90deg, #234869 0%, #41758e 95%);
  color: #fff;
  box-shadow: 0 2px 12px #23486912;
  position: relative;
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: filter 0.2s;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 16px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color .2s;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}

.cta.primary {
  background: linear-gradient(90deg, #8BAF5A 0%, #68902c 80%);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1.08rem;
  margin-left: 20px;
  box-shadow: 0 3px 10px rgba(107,151,51,0.09);
  transition: background 0.25s, box-shadow 0.2s, transform 0.14s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.cta.secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 1.07rem;
  margin-top: 18px;
  box-shadow: 0 1px 8px #23486915;
  transition: background 0.18s, color 0.19s, box-shadow 0.13s, border-color .2s;
  cursor: pointer;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #68902c 0%, #8BAF5A 60%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 12px;
  padding: 0 14px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
  cursor: pointer;
  z-index: 900;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent-dark);
}

/* ==========================================================================
   MOBILE MENU (Slide In)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #234869 90%, #8BAF5A 160%);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.65,.2,.23,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  padding: 24px 32px 10px 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 50px 0;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: #fff;
  padding: 8px 0;
  transition: color 0.14s, background 0.15s;
  min-height: 44px;
  min-width: 80vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  background: linear-gradient(90deg, #234869 0%, #E5F6F7 80%);
  color: var(--text-light);
  min-height: 440px;
  padding: 0 0 40px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  min-height: 310px;
}
.hero h1, .hero p {
  color: var(--text-light);
  text-shadow: 0 2px 18px #23486915;
}
.hero .cta.primary {
  margin-top: 16px;
  box-shadow: 0 4px 18px #23486913;
}

/* ==========================================================================
   FLEXBOX LAYOUTS & COMPONENT PATTERNS
   ========================================================================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  min-width: 220px;
  flex: 1 1 225px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.feature:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.025);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.services-list li {
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.services-list strong {
  color: var(--color-primary);
  font-size: 1.04rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px) scale(1.02);
}

.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: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px #2348690c;
  margin-bottom: 20px;
  max-width: 740px;
  color: var(--color-dark);
  font-size: 1rem;
  transition: box-shadow 0.18s, background 0.16s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin: 0 0 0 0;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px #23486922;
  background: #f7fdfb;
}

.review-summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 18px;
  font-size: 1.07rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 7px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: linear-gradient(90deg, #234869 0%, #8BAF5A 100%);
  color: #fff;
  font-size: 0.98rem;
  padding: 36px 0 10px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
  align-items: center;
}
.footer-brand img {
  height: 42px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  color: #fff;
}
footer nav a {
  color: #fff;
  font-size: 0.99rem;
  font-family: var(--font-display);
  transition: color .18s;
}
footer nav a:hover, footer nav a:focus {color: var(--color-accent);}
.footer-contact {display: flex; flex-direction: column; gap: 7px; align-items: center;}
.footer-contact p {
  color: #dde9f1;
  display: flex;
  gap: 7px;
  font-size: 0.98rem;
}
.footer-contact strong {
  color: #fff;
  font-weight: 700;
}
.footer-info {color: #aad3f7; font-size: .92rem; margin-top: 12px; text-align: center;}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 99999;
  background: linear-gradient(90deg, #234869 80%, #8BAF5A 120%);
  color: #fff;
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 18px #23486919;
  animation: fadeInBanner 0.67s cubic-bezier(.25,.79,.25,1.1);
  gap: 16px;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1.01rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner button {
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px #68902c14;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .cookie-accept {
  background: linear-gradient(90deg, #8BAF5A 20%, #68902c 80%);
  color: #fff;
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: linear-gradient(90deg, #68902c 60%, #8BAF5A 90%);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #234869;
  border: 1px solid #234869;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #f1f1f1;
  color: #8BAF5A;
  border-color: #8baf5a;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #234869;
  border: 1px solid #68902c;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #E5F6F7;
  color: #68902c;
}

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 111111;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px #23486929;
  max-width: 98vw;
  width: 380px;
  padding: 32px 18px 22px 22px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: scaleInModal 0.32s cubic-bezier(.11,.61,.49,1.28);
}
@keyframes scaleInModal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.cookie-modal h2, .cookie-modal h3 {
  color: var(--color-primary);
  text-align: left;
  margin-bottom: 8px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent-dark);
  margin-right: 6px;
}
.cookie-modal .cat-desc {
  font-size: .97rem;
  color: #234869;
  margin-left: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.45rem;
  cursor: pointer;
  z-index: 1;
  transition: color 0.16s;
}
.cookie-modal .cookie-close:hover {
  color: var(--color-accent-dark);
}

/* ==========================================================================
   MEDIA QUERIES (Mobile Responsive)
   ========================================================================== */
@media (max-width: 992px) {
  .container { max-width: 97vw; }
  header .container {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 8px;
  }
  .main-nav { gap: 16px; }
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  header .container { flex-direction: row; padding: 6px 6px; }
  .main-nav { display: none; }
  .cta.primary { margin-left: 0; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
  .hero {
    min-height: unset;
    padding: 24px 0 26px 0;
  }
  .hero .container {
    min-height: unset;
    padding: 0 0 0 0;
    align-items: flex-start;
  }
  h1, .display-1 { font-size: 2rem; }
  h2, .display-2 { font-size: 1.41rem; }
  .features-grid,
  .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature { min-width: unset; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    font-size: 1rem;
    padding: 19px 10px;
  }
  .section {
    margin-bottom: 34px;
    padding: 20px 5px;
  }
  .footer-brand img {
    height: 32px;
    margin-bottom: 5px;
  }
  .footer-contact p { font-size: 0.92rem; }
  .cookie-modal { width: 98vw; min-width: 90vw; padding: 24px 7px; }
}
@media (max-width: 545px) {
  .testimonial-card { font-size: .97rem; padding: 14px 3px; }
  .feature { padding: 20px 12px; }
  .hero h1 { font-size: 1.22rem; }
  .cookie-modal, .cookie-banner { padding: 11px 2vw; }
}

/* ==========================================================================
   ACCESSIBILITY & MICRO-INTERACTIONS
   ========================================================================== */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
button, .cta {
  cursor: pointer;
}
.cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.21s, transform .15s, box-shadow .21s;
}
.cta:active,
button:active { transform: scale(0.97); }

/* Sublte hover underline nav */
.main-nav a::after {
  content: "";
  display: block;
  width: 0%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  margin: 0 auto;
  transition: width 0.22s; }
.main-nav a:hover::after, .main-nav a:focus::after { width: 60%; }

/* ==========================================================================
   MISC CLASSES
   ========================================================================== */
.bg-accent {
  background: linear-gradient(96deg, #8BAF5A 0%, #68902c 100%);
  color: #fff;
}
.bg-primary {
  background: #234869;
  color: #fff;
}

/* For any .card, .services-list, .feature, .section structure */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Remove number styling for process steps */
ol {
  list-style: none;
  counter-reset: processstep;
  padding-left: 0;
}
ol > li {
  counter-increment: processstep;
  position: relative;
  margin-bottom: 18px;
  padding-left: 32px;
}
ol > li::before {
  content: counter(processstep);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}

/* Appearance for inline icons */
img[alt^="Icona"], img[alt^="icon-"] {
  vertical-align: middle;
  margin-right: 7px;
  min-width: 18px;
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   PRINT-FRIENDLY
   ========================================================================== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, header, footer { display: none !important; }
  body { color: #000; background: #fff; }
}
