/* ======================== CSS RESET & BASE ========================= */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F4F6FA;
  color: #25405a;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #E2973E;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #395773;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button {
  border: none;
  font: inherit;
  background: none;
  cursor: pointer;
  outline: none;
}
input, textarea, select {
  font: inherit;
  border-radius: 7px;
  border: 1px solid #ccd3db;
  padding: 10px 12px;
  transition: border .2s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: #E2973E;
}

.container {
  width: 100%;
  max-width: 1040px;
  padding: 0 20px;
  margin: 0 auto;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ======================== TYPOGRAPHY ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #25405a;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.lead {
  font-size: 1.15rem;
  color: #395773;
  font-weight: 500;
}

p {
  color: #395773;
}

small {
  font-size: 0.93em;
  color: #395773;
}

strong {
  color: #25405a;
}

blockquote {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #25405a;
  background: #ffdaba;
  border-left: 5px solid #E2973E;
  padding: 16px 24px;
  border-radius: 13px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px 0 rgba(57,87,115,0.10);
}
cite {
  display: block;
  font-size: 1em;
  color: #9f6b11;
  margin-top: 4px;
}

/* ======================== MAIN NAVIGATION ========================= */
header {
  background: #ffffff;
  border-bottom: 1px solid #e7eaf0;
  box-shadow: 0 2px 12px rgba(57,87,115,0.08);
  position: relative;
  z-index: 110;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  justify-content: flex-start;
  padding: 0;
}
.main-nav a {
  color: #395773;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 17px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ffe8c5;
  color: #E2973E;
}
.main-nav img {
  height: 38px;
  margin-right: 10px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 2.1rem;
  height: 42px;
  width: 42px;
  background: #ffe1b9;
  color: #395773;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  justify-content: center;
  align-items: center;
  z-index: 121;
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #E2973E;
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 82vw;
  max-width: 350px;
  height: 100vh;
  background: #fffbed;
  box-shadow: -2px 0 24px 0 rgba(57,87,115,0.18);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.77, 0, .175, 1);
  z-index: 1250;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 18px;
  font-size: 2.2rem;
  color: #25405a;
  background: #ffe8c5;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E2973E;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  align-items: flex-start;
  padding-left: 28px;
}
.mobile-nav a {
  display: block;
  width: 92%;
  padding: 12px 0 12px 4px;
  font-size: 1.12rem;
  color: #25405a;
  border-radius: 10px;
  font-weight: 600;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: background .13s, color .13s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #ffe8c5;
  color: #E2973E;
}

/* Hide main nav/show burger on mobile */
@media (max-width: 880px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 881px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======================== HERO SECTION ========================= */
.hero-section {
  background: linear-gradient(120deg, #fffbe5 0%, #ffe6bb 100%);
  border-bottom: 1.5px solid #E2973E;
  padding: 52px 0 44px;
  margin-bottom: 60px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section .content-wrapper {
  gap: 18px;
  margin-top: 16px;
}
.hero-section h1 {
  color: #25405a;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.hero-section .lead {
  color: #395773;
  font-size: 1.22rem;
}

/* ======================== BUTTONS & CTAS ========================= */
.cta {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.12rem;
  color: #fff;
  background: #E2973E;
  padding: 12px 32px;
  border-radius: 24px;
  box-shadow: 0 4px 18px 0 rgba(226,151,62,0.13);
  transition: background .22s, color .19s, box-shadow .22s;
  letter-spacing: 0.05em;
  min-width: 140px;
  text-align: center;
  margin-top: 12px;
}
.cta:hover, .cta:focus {
  background: #bc7a30;
  color: #fffbed;
  box-shadow: 0 7px 32px 0 rgba(226,151,62,.17);
}
.cta.primary {
  background: #25405a;
  color: #fff;
  border: 2px solid #25405a;
}
.cta.primary:hover, .cta.primary:focus {
  background: #395773;
  border-color: #E2973E;
  color: #ffe8c5;
}

/* ======================== FEATURES & SERVICES ========================= */
.features-section, .services-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px 0 rgba(57,87,115,0.10);
  margin-bottom: 56px;
  padding: 38px 0 32px;
}
.features-section h2, .services-section h1 {
  color: #25405a;
  margin-bottom: 22px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.services-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f9efdf;
  border-radius: 20px;
  box-shadow: 0 2.5px 13px rgba(57,87,115,0.10);
  padding: 24px 20px 26px;
  min-width: 220px;
  min-height: 240px;
  flex: 1 1 220px;
  max-width: 275px;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.services-list li:hover, .services-list li:focus-within {
  box-shadow: 0 5px 21px rgba(226,151,62,0.15);
  transform: translateY(-4px) scale(1.018);
}
.services-list li img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.services-list h2, .services-list h3 {
  font-size: 1.18rem;
  color: #25405a;
  margin-bottom: 4px;
}
.price-info {
  margin-top: 6px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #E2973E;
  font-size: 1.1rem;
}
.services-list .cta {
  margin-top: 8px;
}

@media (max-width: 1050px) {
  .services-list {
    gap: 14px;
  }
  .services-list li {
    min-width: 48vw;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .services-list {
    flex-direction: column;
    gap: 18px;
  }
  .services-list li {
    min-width: 90vw;
    max-width: 100vw;
    padding: 22px 14px;
  }
}

/* ======================== ABOUT, VALUES, FOOTER CALLOUT ========================= */
.about-snippet, .about-section, .values-section, .footer-callout, .callout-section, .confirmation-section {
  background: #fff7ea;
  border-radius: 22px;
  box-shadow: 0 1.5px 12px rgba(57,87,115,0.06);
  padding: 38px 0;
  margin-bottom: 56px;
}
.about-snippet h2, .about-section h1, .about-section h2, .footer-callout h2, .callout-section h2, .confirmation-section h1 {
  color: #25405a;
  margin-bottom: 10px;
}
.about-snippet ul, .about-section ul, .values-section ul {
  margin: 16px 0 14px 18px;
  padding-left: 14px;
}
.about-snippet ul li, .about-section ul li, .values-section ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  color: #395773;
  font-size: 1em;
}
.about-snippet ul li:before, .about-section ul li:before, .values-section ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #E2973E;
  font-size: 1.5em;
  top: 1px;
}

.footer-callout .cta {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .about-snippet, .about-section, .values-section, .footer-callout, .callout-section, .confirmation-section {
    padding: 26px 0;
    border-radius: 16px;
  }
}

/* ======================== FOOTER ========================= */
footer {
  background: #25405a;
  color: #fff;
  padding: 34px 0 12px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 16px;
  justify-content: center;
}
.footer-nav a {
  color: #ffe6bb;
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E2973E;
  text-decoration: underline;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: 10px;
}
.brand-footer img {
  height: 31px;
}
.brand-footer span {
  color: #ffe1b9;
  font-size: 1.03rem;
}
@media (max-width: 768px) {
  footer {
    border-radius: 18px 18px 0 0;
    padding: 28px 0 10px 0;
  }
}

/* ======================== TESTIMONIALS ========================= */
.testimonials-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1.5px 12px rgba(57,87,115,0.09);
  padding: 34px 0;
  margin-bottom: 54px;
}
.testimonials-section h2 {
  margin-bottom: 26px;
}
.testimonials-section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fffbed;
  border-radius: 18px;
  box-shadow: 0 2px 17px rgba(226,151,62,0.13);
  padding: 20px 24px;
  min-width: 220px;
  max-width: 340px;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .13s;
  border: 1.5px solid #ffd797;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 27px 0 rgba(226,151,62,0.19);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card cite {
  color: #9f6b11;
}
@media (max-width: 819px) {
  .testimonials-section .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    padding: 18px 12px;
  }
}

/* ======================== FAQ ========================= */
.faq-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1.5px 13px rgba(57,87,115,0.07);
  padding: 37px 0;
}
.faq-section h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}
.faq-section .text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.faq-item {
  background: #fffbed;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(226,151,62,0.10);
  padding: 18px 20px;
}
.faq-item h2 {
  font-size: 1.2rem;
  color: #25405a;
}
@media (max-width: 700px) {
  .faq-section {
    padding: 22px 0;
  }
  .faq-section .text-section {
    gap: 13px;
  }
  .faq-item {
    padding: 13px 8px;
  }
}

.faq-cta {
  background: #fff7ea;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(226,151,62,0.06);
  padding: 32px 0;
  margin-bottom: 56px;
}

/* ======================== CONTACT & FORM ========================= */
.contact-hero {
  background: #fffbed;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(57,87,115,0.12);
  padding: 42px 0 32px 0;
  margin-bottom: 56px;
}
.contact-hero h1 {
  font-size: 2.0rem;
  margin-bottom: 14px;
}
.contact-hero .lead {
  margin-bottom: 10px;
}
.contact-methods {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #25405a;
  font-size: 1.04rem;
}
.contact-methods a {
  color: #E2973E;
}

.contact-form-section {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 1.5px 10px rgba(57,87,115,0.06);
  padding: 24px 0 10px 0;
  margin-bottom: 34px;
}
.privacy-note {
  background: #ffe1b9;
  border-radius: 11px;
  padding: 8px 12px;
  color: #395773;
  margin-top: 10px;
}
.address-details {
  font-size: 1.07rem;
  background: #fff7ea;
  border-radius: 7px;
  padding: 8px 14px;
  color: #25405a;
  margin-top: 12px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.map-section {
  background: #fffbed;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px rgba(57,87,115,0.06);
  padding: 24px 0;
  margin-bottom: 37px;
}

/* ======================== PREVENTIVI & LEGAL ========================= */
.preventivo-hero, .preventivi-benefits, .legal-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1.5px 11px rgba(57,87,115,0.08);
  padding: 36px 0 28px 0;
  margin-bottom: 44px;
}
.preventivo-hero h1 {
  font-size: 2.0rem;
}
.preventivo-hero ul {
  list-style: inside disc;
  color: #395773;
  margin-left: 14px;
}
.preventivi-benefits h2 {
  margin-bottom: 12px;
}

.legal-section h1 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.legal-section .text-section h2 {
  margin-top: 21px;
  margin-bottom: 3px;
  font-size: 1.18rem;
  color: #25405a;
}
.legal-section .text-section ul {
  margin-left: 18px;
  padding-left: 0;
  list-style: disc inside;
}

/* ======================== COOKIE CONSENT BANNER & MODAL ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #fffbed;
  color: #25405a;
  box-shadow: 0 -2px 22px 6px rgba(57,87,115,0.11);
  border-top: 2.5px solid #E2973E;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  animation: bannerSlideIn .42s cubic-bezier(.7,.22,.78,2);
}
@keyframes bannerSlideIn {
  from {transform: translateY(100%); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-banner-text {
  flex: 1;
  min-width: 220px;
  font-size: 1.01rem;
  color: #25405a;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 25px;
  border-radius: 9px;
  border: none;
  margin: 0 1px;
  cursor: pointer;
  transition: background .18s, color .18s;
  box-shadow: 0 1.2px 5px rgba(57,87,115,0.06);
}
.cookie-banner .cookie-accept {
  background: #E2973E;
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #bc7a30;
}
.cookie-banner .cookie-reject {
  background: #ffe1b9;
  color: #25405a;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #ffe6bb;
  color: #E2973E;
}
.cookie-banner .cookie-settings {
  background: #f9efdf;
  color: #25405a;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #ffe8c5;
  color: #E2973E;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,48,58,0.30);
  z-index: 1800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInOverlay .26s;
}
@keyframes fadeInOverlay {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fffbed;
  color: #25405a;
  border-radius: 21px 21px 0 0;
  box-shadow: 0 0 33px 0 rgba(39,48,58,0.15);
  max-width: 380px;
  width: 94vw;
  margin-bottom: 0;
  padding: 28px 26px 21px 26px;
  animation: modalSlideIn .33s cubic-bezier(.7,.22,.78,2);
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
}
@keyframes modalSlideIn {
  from {transform: translateY(120%);}
  to {transform: translateY(0);}
}
.cookie-modal .modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-size: 1.12rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-modal-close {
  background: #ffe8c5;
  color: #25405a;
  border-radius: 50%;
  font-size: 1.25rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .13s;
}
.cookie-modal-close:hover {
  background: #E2973E;
  color: #fff;
}
.cookie-modal .modal-section {
  margin-top: 7px;
  margin-bottom: 8px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 1rem;
}
.cookie-option .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #ffe1b9;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background .16s;
  cursor: pointer;
}
.cookie-option .cookie-toggle:checked {
  background: #E2973E;
}
.cookie-option .cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left .17s;
}
.cookie-option .cookie-toggle:checked:before {
  left: 18px;
}

@media (max-width: 480px) {
  .cookie-modal {
    max-width: 94vw;
    padding: 15px 6vw 14px 6vw;
  }
}

/* ======================== GEN. RESPONSIVE ========================= */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 700px) {
  .container {padding: 0 7px;}
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  .section {padding: 26px 6px;}
}

/* ======================== FLEXBOX: GENERAL LAYOUTS ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================== UTILITIES: SPACING ========================= */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ======================== MODERN MICRO-EFFECTS ========================= */
.card, .testimonial-card, .services-list li {
  transition: box-shadow .16s, transform .15s;
}
.card:hover, .testimonial-card:hover, .services-list li:hover {
  box-shadow: 0 7px 18px rgba(226,151,62,0.14)!important;
  transform: translateY(-3px) scale(1.014) !important;
}
button:active {
  transform: scale(0.97);
}

/* ======================== THANK YOU PAGE ========================= */
.confirmation-section {
  margin-top: 58px;
}
.next-steps {
  background: #fffbed;
  border-radius: 9px;
  box-shadow: 0 1.5px 6px rgba(226,151,62,0.07);
  padding: 10px 16px;
  margin: 10px 0;
  font-size: 1rem;
}

/* ======================== SCROLLBAR & FOCUS ========================= */
*:focus-visible {
  outline: 2px solid #E2973E;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  background: #f4f6fa;
}
::-webkit-scrollbar-thumb {
  background: #E2973E;
  border-radius: 7px;
}

/* ======================== MISC MEDIA QUERIES ========================= */
@media (max-width: 530px) {
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .brand-footer {
    flex-direction: column;
    gap: 8px;
  }
}
