/* ===========================================================
   RESET & BASE STYLES
=========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #233A56;
  background: #FFF9F5;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #233A56;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }
p { margin-top: 0; margin-bottom: 16px; }
ul, ol { margin: 0 0 24px 24px; }
img { max-width: 100%; border-radius: 14px; display: block; }
a { color: #70A37F; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F6B041; outline: none; }
button, .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 36px;
  padding: 13px 28px;
  font-size: 1.05rem;
  background: #F6B041;
  color: #233A56;
  cursor: pointer;
  transition: background 0.2s, color 0.15s, box-shadow 0.2s, border-color 0.2s, transform 0.13s;
  box-shadow: 0px 2px 12px rgba(115, 84, 43, 0.09);
  margin: 8px 0 0 0;
  display: inline-block;
}
button:active, .cta:active {
  transform: scale(0.98);
}
.cta.primary {
  background: #F6B041;
  color: #233A56;
  border: 2px solid #F6B041;
}
.cta.primary:hover, .cta.primary:focus {
  background: #233A56;
  color: #fff;
  border-color: #233A56;
}
.cta:not(.primary) {
  background: #70A37F;
  color: #fff;
  border: 2px solid #70A37F;
}
.cta:not(.primary):hover, .cta:not(.primary):focus {
  background: #233A56;
  color: #fff;
  border-color: #233A56;
}
strong { font-weight: 600; }

/* ===========================================================
   LAYOUT & CONTAINER STYLES
=========================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(246, 176, 65, 0.10);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(35, 58, 86, 0.07);
  padding: 24px;
  min-width: 260px;
  max-width: 100%;
}
.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: #FFF7E6;
  border-radius: 30px;
  box-shadow: 0 2px 16px rgba(246, 176, 65, 0.11);
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, background 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(246, 176, 65, 0.15);
  background: #fff3d6;
}
.testimonial-meta {
  color: #233A56;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Featured blocks across pages */
.feature-grid, .feature-list, .category-grid, .articles-grid, .stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
}
.feature, .category {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(35, 58, 86, 0.08);
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 380px;
  transition: box-shadow 0.18s, background 0.18s, transform 0.12s;
  gap: 10px;
}
.feature:hover, .category:hover {
  box-shadow: 0 8px 34px rgba(112, 163, 127, 0.19);
  background: #fefdff;
  transform: translateY(-4px) scale(1.015);
}
.category-grid, .articles-grid, .stat-grid {
  gap: 20px;
}
.article-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(246, 176, 65, 0.09);
  padding: 18px 16px 16px 16px;
  flex: 1 1 210px;
  min-width: 190px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.article-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.article-card .read-more {
  margin-top: 10px;
  color: #F6B041;
  font-weight: 500;
  display: inline-block;
  transition: color 0.13s;
}
.article-card .read-more:hover { color: #233A56; }
.stat-grid {
  justify-content: flex-start;
  align-items: center;
}
.stat-grid > div {
  background: #FFF7E6;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #233A56;
  text-align: center;
  padding: 24px 22px;
  min-width: 120px;
  font-size: 1.1rem;
}

/* ================================
   HERO
================================ */
.hero {
  padding: 38px 0 40px 0;
  background: linear-gradient(90deg, #FFF7E6 0%, #FFF9F5 75%);
  margin-bottom: 0;
}
.hero h1 {
  color: #233A56;
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.hero p {
  color: #504530;
  font-size: 1.18rem;
}
.hero .cta {
  margin-top: 18px;
}

/* ================================
   NAVIGATION & HEADER
================================ */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(35,58,86,0.05);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
.logo img {
  height: 38px;
  width: auto;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
}
.main-nav a {
  color: #233A56;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 24px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFF7E6;
  color: #70A37F;
}
header .cta.primary {
  margin-left: 30px;
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu-toggle {
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 41;
  background: #F6B041;
  color: #233A56;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(246, 176, 65, 0.15);
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { background: #70A37F; color: #fff; }
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw; max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0px 36px rgba(35, 58, 86, 0.16);
  z-index: 99;
  padding-top: 70px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.69,.07,.36,.97);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  right: 22px; top: 18px;
  background: #F6B041;
  color: #233A56;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 101;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #70A37F; color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  color: #233A56;
  font-size: 1.17rem;
  background: #FFF7E6;
  border-radius: 22px;
  padding: 12px 22px;
  margin: 0 14px;
  font-weight: 500;
  width: 90%;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #F6B041; color: #fff; }

@media (max-width: 1100px) {
  .container { padding: 0 12px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; font-size: 1rem; }
  .footer-top { flex-wrap: wrap; }
}
@media (max-width: 910px) {
  .card, .feature, .category { min-width: 180px; }
}

@media (max-width: 850px) {
  header .container { flex-direction: row; flex-wrap: wrap; gap:8px; }
}
@media (max-width: 768px) {
  .main-nav { display: none!important; }
  .mobile-menu-toggle { display: flex; }
  header .cta.primary { display: none; }
  .container { max-width: 98vw; }
  .section { padding: 28px 8px; margin-bottom: 32px; }
  .hero { padding: 22px 0 24px 0; }
  .content-grid, .feature-grid, .feature-list, .category-grid, .articles-grid, .stat-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; gap: 14px; }
  .feature, .category, .card, .testimonial-card, .article-card { min-width: 0; max-width: 100%; padding: 17px 10px; }
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-newsletter { margin-top: 1.1em; }
}
@media (max-width:480px) {
  .container { padding: 0 3vw; }
  .content-wrapper { padding: 0; }
  .section { padding: 15px 2vw; }
}

/* ================================
   SLIDERS & SPECIAL SECTIONS
================================ */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 24px;
}
.trust-icons {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  align-items: center;
}
.trust-icons img {
  height: 52px;
  width: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(246,176,65,0.07);
  padding: 2px 4px;
}

/* ================================
   FOOTER
================================ */
footer {
  background: #233A56;
  color: #fff;
  font-size: 1rem;
  margin-top: 64px;
  padding: 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 44px 0 16px 0;
}
.footer-top > * {
  margin-bottom: 18px;
  flex: 1 1 210px;
}
.footer-newsletter {
  background: #FFF7E6;
  color: #233A56;
  border-radius: 22px;
  padding: 16px 16px 12px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(246,176,65,0.09);
  min-width: 180px;
}
.footer-newsletter h4 { margin-bottom: 5px; }
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-nav a, .legal-nav a {
  color: #FFF9F5;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 16px;
  padding: 4px 9px;
  transition: background 0.12s, color 0.12s;
}
.footer-nav a:hover, .legal-nav a:hover { background: #70A37F; color: #fff; }
.footer-contact div {
  display: flex; align-items: center; font-size: 0.96rem; gap: 8px; margin-bottom: 4px; }
.footer-contact img {
  width: 19px; height: 19px;
  margin-right: 5px; display: inline-block; border-radius: 7px; }
.footer-social {
  display: flex; gap: 10px; align-items: center; min-width: 60px; }
.footer-social a img { height: 34px; width: 34px; border-radius: 10px; background: #fff; transition: box-shadow 0.12s; box-shadow: 0 2px 8px rgba(35,58,86,0.08); }
.footer-social a:hover img { box-shadow: 0 3px 18px #F6B04126; }
.footer-bottom { border-top: 1px solid #FFF7E6; padding: 14px 0; width: 100%; font-size: 0.97em; color: #FFF7E6; text-align: center; }

/* ================================
   FORMS & SPECIAL TEXT
================================ */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 18px;
  border: 1.5px solid #CFDACB;
  padding: 12px 17px;
  outline: none;
  margin: 4px 0 13px 0;
  background: #FFF9F5;
  box-sizing: border-box;
  width: 100%;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #70A37F;
}

.text-section {
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.text-section ul li {
  list-style: none;
  display: flex; align-items: center;
  margin-bottom: 10px;
  font-size: 1.04rem;
  color: #233A56;
}
.text-section ul li img {
  width: 20px; height: 20px;
  margin-right: 9px;
  background: #FFF7E6;
  border-radius: 7px;
}

/* ================================
   COOKIE BANNER
================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 98vw;
  box-shadow: 0 2px 18px #F6B04133;
  background: #fffbea;
  color: #233A56;
  border-radius: 24px 24px 0 0;
  z-index: 1201;
  padding: 26px 24px 17px 24px;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.77,.2,.23,1), opacity 0.18s;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner strong { color:#233A56; }
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 9px;
}
.cookie-banner .cookie-settings-btn {
  background: #FFF9F5;
  color: #233A56;
  border: 1.5px solid #70A37F;
}
.cookie-banner .cookie-settings-btn:hover { background: #70A37F; color: #fff; }

/* ================================
   COOKIE PREFERENCES MODAL
================================ */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left:0; width: 100vw; height: 100vh;
  background: rgba(35, 58, 86, 0.25);
  z-index: 1260;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open { display: flex; }
.cookie-modal {
  background: #fffbea;
  color: #233A56;
  border-radius: 26px;
  max-width: 380px;
  width: 92vw;
  padding: 30px 22px 18px 22px;
  box-shadow: 0 6px 32px #F6B04124;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: popIn 0.15s cubic-bezier(.36,1.97,.58,.92);
}
@keyframes popIn { from{ transform:scale(0.91); opacity:0.5; } to{ transform:scale(1); opacity:1; } }
.cookie-modal h3 {
  margin-bottom: 8px;
  color: #233A56;
  font-size: 1.23rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.02rem;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: #70A37F;
}
.cookie-modal input[type="checkbox"]:disabled {
  accent-color: #ccc;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex; gap: 11px; margin-top: 10px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 15px;
  top: 13px;
  background: #F6B041;
  color: #233A56;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .close-modal-btn:hover { background: #70A37F; color: #fff; }

@media (max-width: 500px) {
  .cookie-banner { max-width: 99vw; padding: 16px 9px 13px 9px; font-size: 0.98rem; }
  .cookie-modal {padding:20px 6px 12px 6px;}
}

/* ================================
   MISC & UTILITIES
================================ */
::-webkit-input-placeholder { color: #acacac; }
::-moz-placeholder { color: #acacac; }
:-ms-input-placeholder { color: #acacac; }
::placeholder { color: #acacac; }

.read-more {
  color: #F6B041;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1.02em;
  transition: color 0.11s;
}
.read-more:hover { color: #70A37F; }

ul, ol {
  padding-left: 24px;
}

/* ================================
   SPACING & GAPS ACROSS COMPONENTS
================================ */
section {
  margin-bottom: 60px;
}
.card-container, .feature-grid, .feature-list, .category-grid, .articles-grid, .stat-grid, .testimonial-slider {
  gap: 24px;
}
.card, .feature, .category, .article-card, .testimonial-card {
  margin-bottom: 20px;
}
.content-grid, .text-image-section {
  gap: 20px;
}
.feature-item, .testimonial-card {
  gap: 15px;
}

/* ================================
   VISUAL EFFECTS & MICRO-INTERACTIONS
================================ */
button, .cta, .card, .feature, .category, .testimonial-card, .article-card {
  transition: box-shadow 0.15s, background 0.13s, color 0.14s, border 0.12s, transform 0.12s;
}

.card:hover, .feature:hover, .category:hover, .article-card:hover {
  box-shadow: 0 8px 34px rgba(246,176,65,0.13);
  background: #fff9ec;
  /* subtle upward lift */
  transform: translateY(-3px) scale(1.017);
}

button:focus, .cta:focus {
  outline: 3px solid #F6B04144;
}

::-webkit-scrollbar { width: 10px; background: #FFF7E6; border-radius: 12px; }
::-webkit-scrollbar-thumb { background: #F6B041; border-radius: 12px; }

/* ================================
   PRINT (ENSURE NO OVERLAPS)
================================ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  header, footer { box-shadow: none; }
  body { background: #fff !important; }
}

/* ================================
   TYPOGRAPHY SCALE
================================ */
@media (min-width: 900px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.32rem; }
  h4 { font-size: 1.15rem; }
  body, html { font-size: 17px; }
}

/* ================================
   Z-INDEX FOR LAYERED ELEMENTS
================================ */
header { z-index: 20; }
.mobile-menu-toggle { z-index: 41; }
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 1201; }
.cookie-modal-backdrop { z-index: 1260; }

/* ================================
   FINAL SAFEGUARDS
================================ */
/* Forbid grid layout and columns */
[class*="grid"], [class*="columns"] {
  /* Spacing handled by flex layouts only! */
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
}

/* END OF CSS: CommutAbito warm_friendly style, mobile-first, flexbox strictly enforced */