/* CSS RESET & NORMALIZATION */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #215A4D;
  background: #FFF;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: #215A4D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB703;
  outline: none;
}
:focus {
  outline: 2px solid #FFB703;
  outline-offset: 2px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #215A4D;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-top: 20px; }
h2 { font-size: 1.75rem; margin-top: 24px; }
h3 { font-size: 1.25rem; margin-top: 18px; }
h4 { font-size: 1rem;  margin-top: 12px; font-weight: 600; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}
p, li, span, em, strong {
  font-size: 1rem;
  color: #215A4D;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
strong { font-weight: bold; }
em { font-style: italic; }

/* CONTAINER & WRAPPER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border: none;
}
@media (max-width: 600px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* CARD & FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(33,90,77,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(33,90,77,0.13);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #F0F4F8;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(33,90,77,0.08);
  min-width: 0;
  max-width: 500px;
  transition: box-shadow 0.16s;
}
.testimonial-card h4 {
  color: #215A4D;
  font-weight: 600;
  margin: 8px 0 0 0;
  font-size: 1rem;
}
.testimonial-card p {
  color: #222;
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 12px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES ICONS */
.feature-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.feature-icons img {
  width: 38px;
  height: 38px;
  background: #F0F4F8;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(33,90,77,0.07);
  padding: 7px;
}

/* SERVICE MINI CARDS */
.service-mini-cards,
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0;
}
.service-mini-cards > div,
.service-cards > div {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(33,90,77,0.05);
  padding: 22px 18px;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-mini-cards > div:hover,
.service-cards > div:hover {
  box-shadow: 0 6px 20px rgba(33,90,77,0.13);
  transform: translateY(-3px) scale(1.018);
}
.service-cards > div span,
.service-cards > div strong {
  color: #215A4D;
}
.service-cards > div em {
  color: #525252;
  font-size: 0.92rem;
}

/* BUTTONS */
.cta-button,
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #215A4D;
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(33,90,77,0.06);
  letter-spacing: 0.01em;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.16s;
  display: inline-block;
  outline: none;
}
.cta-button:hover,
button:hover,
.cta-button:focus,
button:focus {
  background: #184338;
  color: #FFB703;
  box-shadow: 0 5px 18px rgba(33,90,77,0.15);
  transform: translateY(-1px);
}
input[type="submit"]:hover { background: #184338; color: #FFB703; }
a.cta-button { text-align: center; text-decoration: none; }

/* HIGHLIGHTED ELEMENTS */
.highlighted-fact {
  background: #F0F4F8;
  border-left: 4px solid #FFB703;
  border-radius: 7px;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: #174036;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1px 6px rgba(33,90,77,0.06);
}

/* FACT CAROUSEL */
.fact-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F0F4F8;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 14px 0;
  box-shadow: 0 1px 6px rgba(33,90,77,0.06);
}

/* FOOTER */
footer {
  background: #F0F4F8;
  border-top: 1px solid #e3e8ed;
  padding: 38px 0 18px 0;
  margin-top: 40px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 8px;
  justify-content: center;
  align-items: center;
  color: #215A4D;
}
.footer-menu a {
  color: #215A4D;
  opacity: 0.8;
  transition: opacity 0.15s;
  font-size: 1rem;
}
.footer-menu a:hover { opacity: 1; color: #FFB703; }
.footer-info {
  margin-top: 10px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: #215A4D;
  font-size: 0.98rem;
}
.footer-info img {
  width: 18px;
  margin-right: 6px;
}
@media (max-width:700px) {
  .footer-menu { flex-direction: column; gap: 8px; }
  .footer-info { flex-direction: column; gap: 8px; }
}

/* HEADER, NAV, MOBILE MENU */
header {
  width: 100%;
  background: #FFF;
  border-bottom: 1px solid #e3e8ed;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(33,90,77,0.03);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px;
}
nav > a img {
  height: 38px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
nav ul li { display: flex; }
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  padding: 4px 2px;
  border-radius: 3px;
  color: #215A4D;
  opacity: 0.92;
  transition: color 0.18s, opacity 0.18s, background 0.15s;
}
nav ul li a:hover,
nav ul li a:focus {
  color: #FFB703;
  background: #F0F4F8;
  opacity: 1;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #215A4D;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 5px;
  display: none;
  z-index: 131;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F0F4F8;
}
@media (max-width: 900px) {
  nav ul { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* MOBILE MENU SLIDE IN */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(34,44,49,0.18);
  z-index: 2002;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.27s;
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu nav.mobile-nav {
  background: #FFF;
  height: 100vh;
  width: 81vw;
  max-width: 340px;
  box-shadow: -2px 0 23px rgba(33,90,77,0.12);
  display: flex;
  flex-direction: column;
  padding: 42px 28px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.29s cubic-bezier(.37,1.25,.48,1), background 0.17s;
}
.mobile-menu.active nav.mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #215A4D;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 15px 7px;
  margin-bottom: 6px;
  border-radius: 7px;
  transition: background 0.14s, color 0.19s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F0F4F8;
  color: #FFB703;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #215A4D;
  font-size: 1.85rem;
  position: absolute;
  right: 26px;
  top: 12px;
  cursor: pointer;
  z-index: 2010;
  padding: 7px 10px;
  border-radius: 5px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F0F4F8;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* GENERAL LISTS */
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 12px;
  padding-left: 0.9em;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

/* CONTACT INFO */
li img {
  display: inline;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  margin-top: -2px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  li img { width: 17px; height: 17px; }
}

/* MODAL & BANNER ANIMATIONS */
@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ========== COOKIE BANNER & COOKIE SETTINGS MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  box-shadow: 0 -4px 44px rgba(33, 90, 77, 0.09), 0 -1.5px 12px #CFE4DC33;
  padding: 22px 12vw 22px 20vw;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  animation: fadeInUp 0.4s;
  border-top: 1.5px solid #e3e8ed;
}
.cookie-banner p { color: #215A4D; font-size: 1rem; margin-bottom: 0; }
.cookie-banner .cookie-buttons {
  display: flex; gap: 16px;
}
.cookie-banner button {
  background: #215A4D;
  color: #FFF;
  border-radius: 999px;
  border: none;
  padding: 10px 26px;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(33,90,77,0.10);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner button.cookie-settings {
  background: #F0F4F8;
  color: #215A4D;
  border: 1.5px solid #215A4D;
  box-shadow: none;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #E8ECEF;
  color: #215A4D;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #184338;
  color: #FFB703;
}
@media (max-width: 1200px) {
  .cookie-banner {
    padding-left: 8vw; padding-right: 8vw; gap: 18px;
  }
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 5vw;
  }
}
@media (max-width: 540px) {
  .cookie-banner {
    padding: 10px 2vw;
    gap: 12px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed; left: 0; top: 0; width: 100vw; height: 100dvh;
  background: rgba(33,90,77,0.22);
  z-index: 3002;
  animation: fadeIn 0.36s;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 8px 64px rgba(33, 90, 77, 0.13);
  padding: 38px 38px 32px 38px;
  width: 95vw; max-width: 420px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInUp 0.38s;
}
.cookie-modal h3 {
  color: #215A4D;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}
.cookie-modal .cookie-category label {
  font-size: 1.04rem;
  color: #215A4D;
}
.cookie-modal .cookie-toggle {
  accent-color: #FFB703 !important;
}
.cookie-modal .always-on { color: #215A4D; opacity: 0.74; }
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal button {
  background: #215A4D;
  color: #FFF;
  border-radius: 999px;
  padding: 10px 24px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1px 6px rgba(33,90,77,0.06);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal button.secondary {
  background: #F0F4F8;
  color: #215A4D;
  border: 1.5px solid #215A4D;
}
.cookie-modal button.secondary:hover, .cookie-modal button.secondary:focus {
  background: #E8ECEF; color: #184338;
}
.cookie-modal button.close-modal {
  position: absolute;
  top: 14px; right: 18px;
  padding: 6px 11px;
  font-size: 1.36rem;
  background: none;
  color: #215A4D;
  border: none;
  border-radius: 5px;
  box-shadow: none;
  z-index: 3102;
}
.cookie-modal button.close-modal:hover {
  background: #F0F4F8;
}

/* ========== RESPONSIVE LAYOUTS ========== */
@media (max-width: 1020px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  .content-grid { flex-direction: column; gap: 23px; }
  .service-mini-cards, .service-cards { flex-direction: column; gap: 20px; align-items: stretch; }
  .feature-icons { gap: 12px; }
}
@media (max-width: 600px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .feature-icons { gap: 7px; }
  .service-mini-cards > div, .service-cards > div { padding: 18px 10px; min-width: 120px; max-width: 100%; }
  nav > a img { height: 27px; }
}

/* ========== VISUAL DETAILS ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F0F4F8;
}
::-webkit-scrollbar-thumb {
  background: #d8e3df;
  border-radius: 5px;
}

/* MICRO-INTERACTIONS */
.card, .service-cards > div, .service-mini-cards > div, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s, background 0.11s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.99);
}

/* ========== SPECIAL BLOCKS ========== */
/* Fact carousel for .curiosita.html */
.fact-carousel p {
  color: #215A4D;
  font-size: 1.03rem;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ========== THANK YOU/SUCCESS MESSAGES ========== */
.thank-you-message, .success-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 34px 18px;
  background: #F0F4F8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(33,90,77,0.06);
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

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

/* ========== END OF CSS ========== */
