/* ========= 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #18364e;
  background: #F8F5F0;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #21527A;
  line-height: 1.15;
  letter-spacing: -1px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.05rem; }

@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.44rem; } 
}

p, .content-wrapper p, ul, ol, dl, dd {
  font-size: 1.06rem;
  color: #23415C;
}
strong, b {
  font-weight: bold;
  color: #18364e;
}

hr {
  border: 0;
  border-bottom: 1px solid #E0E0E0;
  margin: 28px 0;
}

/* ========= LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FLEX PATTERN: Section, Cards, Grid ============= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(33,82,122,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1;
  transition: box-shadow .22s,transform .22s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(61,189,230,0.15);
  transform: translateY(-4px) scale(1.015);
  z-index: 1;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(46,205,192,0.07);
  border-left: 7px solid #FCBD41;
  position: relative;
  transition: box-shadow .20s, border-color .20s;
  color: #18364e;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px rgba(57,160,139,0.14);
  border-color: #85B36B;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F8F5F0;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(33,82,122,0.07);
  flex: 1 1 220px;
  min-width: 200px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .20s, background .2s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  background: #fff9e6;
  box-shadow: 0 6px 18px rgba(33,82,122,0.16);
}
.resource-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(61,189,230,0.09);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 190px;
}

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

/******* Brand Footer and Contact Snippet *******/
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 250px;
  max-width: 400px;
}
.brand-footer > img {
  width: 130px;
}
.contact-snippet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.08rem;
  color: #23415C;
  margin-top: 2px;
}
.contact-snippet img {
  display: inline-block;
  width: 19px; height: 19px;
  margin-right: 7px;
  vertical-align: sub;
}

.map {
  background: #F5FAFF;
  border-radius: 13px;
  padding: 14px 18px;
  margin-top: 14px;
  box-shadow: 0 1px 6px rgba(33,82,122,0.04);
}

/******* NAVIGATION *******/
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(33,82,122,0.08);
  position: relative;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  min-height: 68px;
}
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0px;
  padding: 0 20px;
}
header > a > img {
  height: 50px;
  display: block;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #21527A;
  position: relative;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background .14s, color .14s;
}
header nav a:hover, header nav a:focus {
  color: #fff;
  background: #21527A;
}
.cta-primary {
  background: #FCBD41;
  color: #21527A;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.14rem;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 32px;
  margin-left: 16px;
  box-shadow: 0 2px 12px rgba(252,189,65,0.13);
  letter-spacing: 0.5px;
  transition: background .18s, color .12s, box-shadow .18s;
  text-align: center;
  border: none;
  cursor: pointer;
  outline: 0;
}
.cta-primary:hover, .cta-primary:focus {
  background: #85B36B;
  color: #fff;
  box-shadow: 0 5px 22px rgba(33,82,122,0.18);
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: #FCBD41;
  border-radius: 12px;
  color: #21527A;
  margin-left: 18px;
  border: none;
  transition: background .18s, color .12s;
  z-index: 5000;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #21527A;
  color: #fff;
}

/******* MOBILE MENU SYSTEM *******/
.mobile-menu {
  position: fixed;
  inset: 0 0 0 100%;
  background: rgba(33, 82, 122, 0.97);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(-100vw);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  inset: 0;
}
.mobile-menu:not(.open) {
  transform: translateX(0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.22s, transform 0.35s cubic-bezier(.65,.05,.36,1);
}
.mobile-menu .mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: #21527A;
  border-radius: 8px;
  margin-top: 18px;
  margin-left: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, color .12s;
  border: none;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: #FCBD41;
  color: #21527A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0px;
  margin-top: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.32rem;
  font-weight: bold;
  display: block;
  width: 100%;
  padding: 16px 36px 16px 36px;
  transition: background 0.18s, color 0.12s,
    font-weight 0.15s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FCBD41;
  color: #21527A;
}

/******* Hide mobile nav by default, show hamburger *******/
@media (max-width: 992px) {
  header nav,
  header .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .brand-footer .contact-snippet span,
  .brand-footer .contact-snippet a {
    font-size: 1rem;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #21527A;
  color: #fff;
  padding: 50px 0 0 0;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(33,82,122,0.07);
}
footer a {
  color: #fff;
  font-weight: 600;
  font-size: 1.01rem;
  transition: color .14s;
}
footer a:hover, footer a:focus {
  color: #FCBD41;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: flex-start;
  margin-bottom: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}
footer .social {
  display: flex;
  gap: 24px;
  margin-top: 18px;
}
footer .social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1) drop-shadow(0 0 3px #FCBD41);
  transition: filter .15s;
}
footer .social img:hover {
  filter: brightness(1) sepia(1) hue-rotate(220deg) drop-shadow(0 0 8px #85B36B);
}

/* ========== BUTTONS ========== */
button, .cta-primary, .mobile-menu-close {
  outline: 0;
  border: none;
}
button:focus, .cta-primary:focus {
  box-shadow: 0 0 0 2px #21527A55;
}

/* ========== Micro-Interactions & SHADOWS ========== */
.card, .testimonial-card, .feature-grid > div, .resource-card {
  transition: box-shadow .18s, transform .15s, border-color .13s;
}
.card:hover, .resource-card:hover {
  box-shadow: 0 8px 24px rgba(33,82,122,0.16);
  transform: translateY(-2px) scale(1.012);
  z-index: 2;
}

/************* COOKIE CONSENT BANNER **************/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #21527A;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 12px 26px 16px;
  box-shadow: 0 -2px 22px rgba(33,82,122,0.11);
  font-size: 1.06rem;
  transition: transform 0.26s cubic-bezier(.65,.05,.36,1), opacity .18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-msg {
  max-width: 540px;
  font-size: 1.1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  min-width: 120px;
  border-radius: 32px;
  font-family: 'Merriweather', serif;
  font-size: 1.06rem;
  font-weight: bold;
  padding: 10px 22px;
  transition: background .18s, color .14s, box-shadow .18s;
}
.cookie-banner .cookie-accept {
  background: #FCBD41;
  color: #21527A;
  border: none;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #85B36B;
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #21527A;
  border: 1.5px solid #FCBD41;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #FCBD41;
  color: #21527A;
}
.cookie-banner .cookie-settings {
  background: #21527A;
  color: #fff;
  border: 1.5px solid #FCBD41;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FCBD41;
  color: #21527A;
}

/*********** COOKIE MODAL ***********/
.cookie-modal {
  position: fixed;
  z-index: 100050;
  inset: 0;
  background: rgba(33,82,122,0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal-content {
  background: #fff;
  color: #21527A;
  border-radius: 22px;
  box-shadow: 0 6px 44px rgba(0,0,0,0.21);
  min-width: 300px;
  max-width: 96vw;
  padding: 34px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-close {
  background: #fff;
  color: #21527A;
  border-radius: 8px;
  font-size: 1.6rem;
  align-self: flex-end;
  padding: 2px 10px;
  border: 1.5px solid #21527A;
  margin: -13px 0 4px 0;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #21527A;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #85B36B;
}
.cookie-category [data-essential] {
  font-size: 1rem;
  font-weight: 600;
  color: #21527A;
}
.cookie-modal .cookie-modal-actions {
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 28px;
  padding: 10px 24px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.06rem;
  border: none;
  background: #FCBD41;
  color: #21527A;
  transition: color .15s, background .13s;
}
.cookie-modal .cookie-modal-actions button:hover,
.cookie-modal .cookie-modal-actions button:focus {
  background: #85B36B; color: #fff;
}

/**************** RESPONSIVE DESIGN ****************/
@media (max-width: 1100px) {
  .container {
    max-width: 980px;
  }
  .content-wrapper, footer .content-wrapper {
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }
  .content-wrapper, footer .content-wrapper {
    gap: 16px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; padding-left: 7px; padding-right: 7px; }

  .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .section {
    padding: 26px 3px;
  }
  header {
    padding: 0 7px;
    min-height: 56px;
  }
  .testimonial-card,
  .feature-grid > div,
  .card {
    padding: 17px 11px;
    min-width: 0;
  }
  .brand-footer {
    min-width: 0;
    max-width: 98vw;
    gap: 12px;
  }
  footer .content-wrapper {
    gap: 20px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 4px 16px 8px;
    font-size: 1rem;
  }
  .cookie-banner .cookie-actions{
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-menu .mobile-menu-close {
    margin-top: 9px;
    margin-left: 12px;
    width: 37px; height: 37px;
  }
}
@media (max-width: 520px) {
  h1{font-size:1.62rem;} h2{font-size:1.24rem;} h3{font-size:1.09rem;}
  .container {padding:2px;}
}

/*********** UTILITY CLASSES & HELPERS ***********/
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.m--1 { margin-bottom: 4px !important; }
.px-2 { padding-left: 12px !important; padding-right: 12px !important; }

/********** CUSTOM SCROLLBAR ***********/
::-webkit-scrollbar {
  width:12px; background:#F8F5F0;
}
::-webkit-scrollbar-thumb {
  background:#FCBD41; border-radius:9px;
}
::-webkit-scrollbar-thumb:hover {background:#85B36B;}

/********* VISUAL ACCENTS & ENERGETIC DETAILS **********/
.feature-grid img, .feature-grid svg {
  width: 39px; height: 39px;
  display: block;
  filter: drop-shadow(0 0 3px #FCBD41) drop-shadow(0 0 3px #85B36B);
  margin-bottom: 7px;
}
.resource-card h3 {
  color: #21527A;
  font-size: 1.13rem; font-weight: 700; margin-bottom: 2px;
}
.resource-card a {
  color: #85B36B;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: 1rem;
  transition: color .13s;
}
.resource-card a:hover, .resource-card a:focus { color: #21527A; }

/*********** FAQ, FAQ Styles ************/
dl dt {
  font-weight: 700;
  color: #21527A;
  margin-top: 20px;
}
dl dd {
  margin-bottom: 11px;
  color: #23415C;
}

/* Highlighted accent underline for some headings */
h2, h3 { position:relative; }
h2:after, h3:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: -6px;
  width: 65px;
  height: 5px;
  background: #FCBD41;
  border-radius: 6px;
  opacity: 0.55;
  z-index: 1;
}
h3:after { width:33px; height:4px; bottom: -5px;}

/********* Vibrant Call-to-action bar ***********/
.section.cta-bar {
  background: linear-gradient(90deg,#FCBD41 18%,#85B36B 74%,#21527A 97%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 18px;
  margin-bottom: 36px;
  text-align: center;
  box-shadow: 0 2px 24px rgba(226,145,42,0.12);
}

/***** TABLES *****/
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
thead {
  background: #21527A;
  color: #fff;
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #E5E8EF;
  font-size: 1rem;
}
th {
  font-size: 1.11rem;
  font-family: 'Merriweather', serif;
  font-weight: bold;
}

/* =======================================
   SCHEMA ENERGETICO: ELETTRIC, VIBRANTE
   ======================================= */
body, .section, .feature-grid > div, .resource-card { 
  background: #F8F5F0;
}
.section:not(.cta-bar), main > section {
  background: #F8F5F0;
  border-radius: 12px;
  box-shadow: 0 1px 9px rgba(33,82,122,0.03);
}
/***** ENERGETIC ACCENTS ******/
.cta-primary, .cookie-banner .cookie-accept, .cookie-modal .cookie-modal-actions button {
  box-shadow: 0 2px 14px rgba(252,189,65,0.19);
  animation: pulseShadow 3.7s infinite cubic-bezier(.6,.05,.36,1);
}
@keyframes pulseShadow {
  0%,100%{box-shadow:0 2px 14px rgba(252,189,65,0.13);}
  50%{box-shadow:0 6px 21px 2px rgba(61,189,230,0.15);}
}

/******* Error & Success Texts *******/
.text-success { color: #58B274; }
.text-danger { color: #F44E4E; }

/***** Z-INDEX LAYERING ******/
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 10000;
}
.cookie-modal { z-index: 100050; }
.mobile-menu { z-index: 9999; }

/***** Prevent Overlapping on Cards ******/
.card,
.card-container > *,
.feature-grid > *,
.content-grid > *,
.testimonial-card,
.resource-card,
.section, main > section {
  margin-bottom: 20px;
}
.card:last-child,
.section:last-child, main > section:last-child {
  margin-bottom: 0;
}

/***** FONT INCLUSION FOR BRAND — You should import these in HTML <head> *****/
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/***** END: STYLE.CSS (no grid, only flex) *****/
