/* ========================
   Cuori Fedeli Style Reset
   ======================== */
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #FAF3E3;
  color: #245065;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #245065; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FB8901; text-decoration: underline; }
ul, ol { margin-left: 28px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

/* =============================
   Typography & Artistic Headings
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #1A3751;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 12px rgba(36,80,101, 0.09);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  position: relative;
}
h1:after {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  background: #FB8901;
  border-radius: 6px;
  margin-top: 8px;
  margin-left: 1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  position: relative;
}
h2:after {
  content: '';
  display: block;
  height: 3px;
  width: 44px;
  background: #FB8901;
  border-radius: 5px;
  margin-top: 7px;
  margin-left: 1px;
}
h3 {
  font-size: 1.35rem;
  color: #245065;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* ==============
   Container Layout
   ============== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==================
   Section Styling
   ================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 6px 32px rgba(251,137,1,0.06), 0 1px 5px rgba(36,80,101,0.05);
  transition: box-shadow 0.3s;
}
section:hover {
  box-shadow: 0 12px 48px rgba(36,80,101,0.15), 0 3px 35px rgba(251,137,1,0.09);
}

@media (max-width: 768px) {
  section {
    padding: 25px 9px;
    border-radius: 18px 4px 18px 4px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* =================
   Navigation Styles
   ================= */
header {
  background: linear-gradient(85deg, #fb8901 2%, #fae7b8 100%);
  padding: 0;
  box-shadow: 0 2px 20px rgba(36, 80, 101, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.desktop-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
  padding: 5px 6px;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.2s, color 0.18s;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: #1A3751;
  border-bottom: 2px solid #FB8901;
}
header img {
  height: 44px;
  margin-right: 18px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #FB8901;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.07rem;
  border: none;
  border-radius: 16px 4px 16px 4px;
  padding: 13px 28px;
  margin-left: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 20px rgba(251,137,1,0.10);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s;
  text-shadow: 0 2px 10px rgba(36, 80, 101, 0.08);
}
.cta-btn:hover, .cta-btn:focus {
  background: #245065;
  color: #FB8901;
  box-shadow: 0 6px 28px rgba(36,80,101,0.18);
  text-decoration: none;
}

/* ===============
   Mobile Navigation
   =============== */
.mobile-menu-toggle {
  display: none;
  background: #FB8901;
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 50px; height: 50px;
  border-radius: 10px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 101;
  box-shadow: 0 2px 20px rgba(251,137,1,0.13);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1A3751;
  color: #FB8901;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF3E3;
  box-shadow: 0 0 40px rgba(36,80,101,0.10);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.85,.2,.38,1.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1A3751;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 122;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FB8901;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 80px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #1A3751;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  border-radius: 10px;
  background: none;
  transition: background 0.17s, color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FB8901;
  color: #FFF;
}

@media (max-width: 1024px) {
  .desktop-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========
   Main
   ========= */
main {
  flex: 1 1 auto;
  margin-top: 10px;
}

/* =============
   Artistic Lists
   ============= */
ul {
  list-style: disc;
  padding-left: 20px;
  color: #245065;
  font-size: 1.10rem;
}
ol {
  list-style: decimal inside;
  padding-left: 18px;
  color: #245065;
  font-size: 1.07rem;
}
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.content-wrapper ul li img, .content-wrapper ol li img {
  width: 22px;
  height: 22px;
}

/* =================================
   Cards, Testimonials, Features
   ================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #FAF3E3;
  border-radius: 20px 6px 20px 6px;
  padding: 24px 18px;
  box-shadow: 0 2px 14px rgba(251,137,1,0.09), 0 1px 8px rgba(36,80,101,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, background 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(36,80,101,0.14);
  background: #fff9ef;
}
.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;
  background: #FFF;
  color: #245065;
  padding: 20px;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 3px 28px rgba(251,137,1,0.06), 0 1px 9px rgba(36,80,101,0.07);
  margin-bottom: 20px;
  font-size: 1.10rem;
  position: relative;
  min-width: 250px;
}
.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  font-size: 1.14rem;
  font-style: italic;
  color: #1A3751;
  border-left: 5px solid #FB8901;
  padding-left: 17px;
}
.testimonial-card p {
  margin: 0 0 0 10px;
  color: #FB8901;
  font-weight: bold;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 18px 7px 18px 7px;
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 12px rgba(36,80,101,0.07);
}

@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ================
   Buttons & Links
   ================ */
button, .cta-btn, a.button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  transition: background 0.19s, box-shadow 0.21s, color 0.17s;
  cursor: pointer;
}
a.button {
  display: inline-block;
  background: #245065;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px 4px 10px 4px;
  box-shadow: 0 2px 10px rgba(36,80,101,0.09);
  margin: 8px 0;
}
a.button:hover, a.button:focus {
  background: #FB8901;
  color: #1A3751;
}

/* ========================
   Footer
   ======================== */
footer {
  background: #245065;
  color: #FAF3E3;
  padding: 38px 0 10px 0;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer h3 {
  color: #FB8901;
  font-size: 1.13rem;
  margin-bottom: 11px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer nav a {
  color: #FAF3E3;
  opacity: 0.88;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.18s, opacity 0.15s;
  border-bottom: 1px solid transparent;
  padding: 1px 2px;
}
footer nav a:hover, footer nav a:focus {
  color: #FB8901;
  opacity: 1;
  border-bottom: 1px solid #FB8901;
}
footer p, footer li {
  color: #FAF3E3;
  opacity: 0.95;
}
footer img {
  vertical-align: middle;
  margin-right: 8px;
  filter: brightness(0.94);
}
.social-media {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
}
.social-media a img {
  width: 28px; height: 28px;
  transition: filter 0.23s, transform 0.22s;
  filter: grayscale(60%) brightness(1.2);
}
.social-media a:hover img {
  transform: scale(1.18) rotate(-10deg);
  filter: none;
}

@media (max-width: 1100px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  footer nav {
    flex-direction: column;
    gap: 11px;
  }
  .social-media {
    margin-bottom: 14px;
  }
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF8EA;
  color: #1A3751;
  box-shadow: 0 -2px 22px rgba(251,137,1, 0.07);
  border-top: 2px solid #FB8901;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 10px 18px 10px;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: cookieBannerAppear 0.7s cubic-bezier(.8,.2,.3,1.12);
}
@keyframes cookieBannerAppear {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 7px;
  color: #245065;
  flex: 1 1 250px;
  max-width: 480px;
}
.cookie-banner button {
  margin-left: 10px;
  padding: 10px 21px;
  border-radius: 11px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: #FAF3E3;
  color: #245065;
  box-shadow: 0 2px 5px rgba(36, 80, 101, 0.09);
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner button.accept {
  background: #FB8901;
  color: #FFF;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #245065;
  color: #FB8901;
}
.cookie-banner button.reject {
  background: #245065;
  color: #FFF;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #FB8901;
  color: #245065;
}
.cookie-banner button.settings {
  background: #FAF3E3;
  color: #245065;
  border: 1px solid #FB8901;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #FFF4D7;
  color: #FB8901;
  border-color: #245065;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 10px 4px 14px 4px;
    font-size: 0.99rem;
  }
  .cookie-banner button {
    width: 100%;
    margin-left: 0;
    margin-top: 7px;
  }
}

/* =====================
   Cookie Modal dialog
   ===================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 80, 101, 0.19);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.4s cubic-bezier(.7,.2,.3,1.1);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 19px 6px 19px 6px;
  padding: 38px 26px 28px 26px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 10px 40px rgba(251,137,1,0.18), 0 3px 18px rgba(36,80,101,0.12);
  position: relative;
  color: #245065;
  font-size: 1rem;
  flex-direction: column;
  display: flex;
  gap: 18px;
  animation: modalAppear 0.45s cubic-bezier(.8,.2,.3,1.01);
}
@keyframes modalAppear {
  0% { transform: scale(0.89); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif; color: #FB8901; margin-bottom: 3px;
}
.cookie-modal ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  color: #245065;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 12px;
}
.cookie-modal .toggle {
  width: 38px; height: 22px;
  border-radius: 13px;
  background: #FAF3E3;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.cookie-modal .toggle[data-enabled="true"] {
  background: #FB8901;
}
.cookie-modal .toggle::before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(36,80,101,0.08);
  transition: left 0.18s;
}
.cookie-modal .toggle[data-enabled="true"]::before {
  left: 18px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 12px; top: 14px;
  background: none; border: none;
  font-size: 1.6rem; color: #245065; cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  color: #FB8901;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .modal-actions button {
  padding: 10px 21px;
  border-radius: 11px;
}

@media (max-width: 500px) { .cookie-modal { padding: 20px 5px 16px 7px; max-width: 98vw; } }

/* =============================
   Responsive Typography Scale
   ============================= */
@media (min-width: 375px) {
  body { font-size: 15.5px; }
}
@media (min-width: 600px) {
  body { font-size: 16.5px; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
}

/* ========================
   Misc Utility Spacing
   ======================== */
.mb-20 { margin-bottom: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-24 { gap: 24px; }

/* =====================
   Artistic Touches
   ===================== */
section {
  border: 2.5px dashed #FB8901;
  background-image: url('../assets/bg-artistic.svg');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 18%;
}
@media (max-width: 650px) {
  section { background-size: 32%; }
}

/* Artistic playful drop shadow and scribble borders */
.card, .testimonial-card, .feature-item {
  box-shadow: 0 4px 20px rgba(251,137,1,0.10), 0 1.5px 10px rgba(36,80,101,0.07);
  border: 1.7px solid #FB8901;
  border-radius: 17px 5px 12px 5px;
}

/* ====================
   Form Field Elements
   ==================== */
input, textarea, select {
  padding: 11px 12px;
  border-radius: 8px 3px 8px 3px;
  border: 1.5px solid #245065;
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FFF;
  box-shadow: 0 1px 4px rgba(36,80,101,0.06);
  transition: border 0.17s;
  font-size: 1rem;
  color: #245065;
}
input:focus, textarea:focus, select:focus {
  border-color: #FB8901;
  outline: none;
}

/* ====================
   Accessibility helpers
   ==================== */
:focus { outline: 2px solid #FB8901; outline-offset: 1.5px; }
[tabindex="-1"]:focus { outline: none !important; }

/* ===================
   Micro Interactions
   =================== */
.cta-btn, .card, .testimonial-card, .feature-item, .mobile-menu {
  will-change: box-shadow, background, transform;
}
.cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 10px rgba(251,137,1,0.13);
}

.card:hover, .testimonial-card:hover, .feature-item:hover {
  transform: translateY(-1.5px) scale(1.012);
  border-color: #1A3751;
}

/* 
  END CSS 
*/