/* --- CSS RESET & BASE --- */
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;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F9F9F9;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}
a {
  color: #174C6F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FED766;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}

/* --- BRAND FONTS (font-face for fallback) --- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
h1, h2, h3, h4, .cta-button {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.75rem; line-height: 1.13; color: #112e42; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 18px; color: #174C6F; }
h3 { font-size: 1.25rem; color: #174C6F; margin-bottom: 12px; line-height: 1.15; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, li, a, span { font-family: 'Open Sans', Arial, sans-serif; font-size: 1rem; }
strong { font-weight: 700; }

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 720px;
  margin: 0 auto;
}

/* --- SECTION SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23, 76, 111, 0.07);
  position: relative;
  z-index: 1;
}
section.hero {
  background: #174C6F;
  color: #F9F9F9;
  text-align: left;
  box-shadow: 0 6px 40px 0 rgba(23, 76, 111, 0.11);
  margin-bottom: 48px;
}
section.cta {
  background: #FED766;
  text-align: center;
  color: #174C6F;
  box-shadow: 0 4px 28px 0 rgba(254, 215, 102, 0.14);
  margin-bottom: 0;
}

/* --- FLEX LAYOUT PATTERNS --- */
.card-container, .service-cards, .service-list, .blog-list, .testimonial-slider, .testimonial-list, .stat-grid, .feature-grid, .client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card, .service-item, .blog-post-teaser {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px 0 rgba(23, 76, 111, 0.08);
  padding: 30px 26px 24px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .service-card:hover, .service-item:hover, .blog-post-teaser:hover {
  box-shadow: 0 10px 36px 0 rgba(254, 215, 102, 0.21), 0 2px 14px 0 rgba(23, 76, 111, 0.16);
  transform: translateY(-6px) scale(1.025);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F9F9;
  border-radius: 11px;
  box-shadow: 0 1px 8px 0 rgba(23, 76, 111, 0.08);
  padding: 26px 18px 20px 18px;
  min-width: 200px;
  flex: 1 1 210px;
  transition: box-shadow 0.19s;
}
.feature-item img {
  width: 38px; height: 38px;
  margin-bottom: 4px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 18px 24px;
  background: #fff;
  border-left: 6px solid #FED766;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(23, 76, 111, 0.08);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 390px;
  color: #191919;
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #174C6F;
}
.testimonial-card span {
  color: #555;
  font-size: 1rem;
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.stat-grid > div {
  background: #FED766;
  border-radius: 12px;
  padding: 18px 30px;
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 230px;
  text-align: center;
}
.stat-grid h3 { font-size: 2rem; color: #174C6F; margin-bottom: 7px; }
.stat-grid p { color: #174C6F; font-size: 1.1rem; }

.client-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 24px;
}
.client-logos img { height: 42px; opacity: 0.95; transition: opacity 0.14s; }
.client-logos img:hover { opacity: 1; }

/* --- BUTTONS & INTERACTIONS --- */
.cta-button, button.cta-button {
  display: inline-block;
  background: #174C6F;
  color: #fff !important;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: bold;
  font-size: 1.18rem;
  border-radius: 32px;
  padding: 14px 38px;
  margin-top: 18px;
  box-shadow: 0 3px 16px 0 rgba(23, 76, 111, 0.13);
  border: 2px solid #174C6F;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.17s, border-color 0.15s, transform 0.18s;
}
.cta-button:hover, .cta-button:focus {
  background: #FED766;
  color: #174C6F !important;
  border-color: #FED766;
  box-shadow: 0 6px 30px 0 rgba(254, 215, 102, 0.17);
  transform: scale(1.055);
  text-decoration: none;
}
button {
  cursor: pointer;
  background: transparent;
  border: none;
  transition: opacity 0.1s;
}
button:active {
  opacity: 0.7;
}

/* --- TABLES (Pricing Table) --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 18px 0;
  font-size: 1rem;
}
.pricing-table thead th {
  background: #174C6F;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: bold;
  padding: 14px 10px;
  border-right: 2.5px solid #fff;
  font-size: 1.13rem;
}
.pricing-table thead th:last-child {
  border-right: none;
}
.pricing-table tbody td {
  background: #F3FBFF;
  color: #191919;
  padding: 12px 10px;
  border-bottom: 1.5px solid #EAEAEA;
}
.pricing-table tbody tr:hover td {
  background: #FED766;
  color: #174C6F;
  transition: background 0.15s, color 0.16s;
}
.note {
  color: #555;
  font-size: 0.98rem;
  margin-top: 11px;
  margin-bottom: 0;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #F9F9F9;
  border-radius: 13px;
  box-shadow: 0 1px 7px 0 rgba(23, 76, 111, 0.07);
  padding: 18px 18px 10px 24px;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
}
.faq-item:hover {
  background: #FED766;
  box-shadow: 0 3px 16px 0 rgba(254, 215, 102, 0.09);
}
.faq-item h3 {
  font-size: 1.09rem;
  font-family: 'Roboto Slab', Georgia, serif;
}
.faq-item p {
  margin: 7px 0 5px 0;
  color: #174C6F;
  font-size: 1rem;
}

/* --- HEADER & NAV BAR --- */
header {
  background: #fff;
  border-bottom: 3px solid #FED766;
  box-shadow: 0 1px 12px 0 rgba(23, 76, 111, 0.06);
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  flex-wrap: wrap;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.13rem;
  color: #174C6F;
  font-weight: 600;
  transition: color 0.18s;
  padding: 3px 7px;
  border-radius: 5px;
  position: relative;
}
header nav a.active, header nav a:focus, header nav a:hover {
  color: #FED766;
  background: #174C6F;
  text-decoration: none;
}
header nav .cta-button {
  margin-left: 24px;
}
header img[alt="RuzzoConto"] {
  height: 45px;
  margin-right: 24px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: #FED766;
  border-radius: 50%;
  font-size: 2.1rem;
  color: #174C6F;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 120;
  margin-left: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,76,111,0.12);
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, transform 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #174C6F;
  color: #FED766;
  outline: none;
  box-shadow: 0 6px 18px 0 rgba(254, 215, 102, 0.14);
  transform: scale(1.13);
}

/* Mobile MENU overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,76,111,0.96);
  z-index: 2000;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.7,.03,.27,1.01);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: #FED766;
  color: #174C6F;
  font-size: 2rem;
  margin: 22px 28px 10px 0;
  align-self: flex-end;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(254,215,102,0.24);
  transition: background 0.16s, color 0.13s, transform 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #174C6F;
  color: #FED766;
  transform: scale(1.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.mobile-nav a {
  color: #FED766 !important;
  font-size: 1.27rem;
  font-weight: 700;
  padding: 11px 0;
  width: 78%;
  display: block;
  border-bottom: 2px solid rgba(254,215,102,0.13);
  border-radius: 0;
  text-align: center;
  background: transparent;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #174C6F !important;
  background: #FED766;
  border-bottom: 2px solid #FED766;
  text-decoration: none;
}

/* --- FOOTER --- */
footer {
  background: #174C6F;
  padding: 40px 0 15px 0;
  color: #fff;
  font-size: 1rem;
  border-top: 4px solid #FED766;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
footer nav a {
  color: #FED766;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 9px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
.contact-details {
  font-size: 0.98rem;
  color: #FED766;
  margin: 0 0 11px 0;
}
.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-socials img {
  height: 32px;
  opacity: 0.91;
  transition: opacity 0.12s, transform 0.11s;
}
.footer-socials img:hover { opacity: 1; transform: scale(1.06); }

/* --- BLOG / NEWSLETTER --- */
.blog-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-post-teaser {
  flex: 1 1 245px;
  min-width: 225px;
  max-width: 370px;
}
.blog-post-teaser h3 {
  font-size: 1.18rem;
  margin-bottom: 7px;
}
.blog-post-teaser p {
  margin-bottom: 8px;
}
.blog-post-teaser a {
  color: #174C6F;
  font-weight: 700;
  margin-top: 12px;
  transition: color 0.16s;
}
.blog-post-teaser a:hover {
  color: #FED766;
}

.newsletter, .newsletter .container, .newsletter .content-wrapper {
  background: #174C6F !important;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(23,76,111,0.10);
  margin-bottom: 32px;
}
.newsletter h2, .newsletter p {
  color: #FED766;
}

/* --- MAP PLACEHOLDER SECTION (contact.html) --- */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  margin: 26px 0 0 0;
}
.map-placeholder img {
  width: 60px;
  height: 60px;
}
.map-placeholder p {
  color: #174C6F;
  font-style: italic;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 3000;
  background: #222;
  color: #fff;
  padding: 29px 18px 17px 18px;
  box-shadow: 0 -6px 32px 0 rgba(23,76,111,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.36s cubic-bezier(.8,.23,.23,1.01), opacity 0.38s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(105%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 290px;
  font-size: 1rem;
  color: #fed766;
  margin-right: 10px;
}
.cookie-banner button {
  min-width: 110px;
  padding: 8px 18px;
  margin-left: 9px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: bold;
  background: #FED766;
  color: #174C6F;
  border-radius: 18px;
  border: none;
  box-shadow: 0 1px 6px 0 rgba(254, 215, 102, 0.23);
  transition: background 0.16s, color 0.17s, transform 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #174C6F;
  color: #FED766;
  transform: scale(1.05);
}

/* COOKIE MODAL OVERLAY  */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,76,111,0.92);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity 0.29s, transform 0.33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}
.cookie-modal-content {
  background: #fff;
  color: #174C6F;
  border-radius: 20px;
  padding: 40px 28px 30px 28px;
  min-width: 270px;
  max-width: 97vw;
  box-shadow: 0 6px 44px 0 rgba(254,215,102,0.18), 0 2px 12px 0 rgba(23,76,111,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  color: #174C6F;
  margin-bottom: 9px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.11rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #FED766;
}
.cookie-category label {
  font-size: 1rem;
  color: #174C6F;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cookie-modal button {
  padding: 10px 28px;
  font-size: 1rem;
  font-family: 'Roboto Slab', Georgia, serif;
  border-radius: 18px;
  background: #174C6F;
  color: #FED766;
  border: none;
  font-weight: 700;
  box-shadow: 0 1px 7px 0 rgba(23,76,111,0.17);
  transition: background 0.18s, color 0.16s, transform 0.13s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #FED766;
  color: #174C6F;
  transform: scale(1.06);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 22px;
  font-size: 2rem;
  background: none;
  color: #F35959;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.13s, transform 0.11s;
}
.cookie-modal .close-modal:hover {
  color: #174C6F;
  transform: scale(1.11);
}

/* --- RESPONSIVE MEDIA QUERIES (Mobile First) --- */
@media (max-width: 980px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .footer .container, .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .stat-grid > div, .feature-item, .service-card, .service-item, .blog-post-teaser, .testimonial-card {
    min-width: 165px;
    max-width: 99vw;
    flex: 1 1 140px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container, .content-wrapper, section {
    padding: 22px 8px !important;
    border-radius: 13px;
  }
  .footer .content-wrapper {
    gap: 16px;
    flex-wrap: wrap;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 63px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .card-container, .service-cards, .service-list, .blog-list, .testimonial-slider, .testimonial-list, .stat-grid, .client-logos {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-socials {
    gap: 14px;
    margin-top: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    padding: 18px 8px 11px 8px;
  }
  .cookie-banner button { margin: 9px 9px 0 0; }
  .map-placeholder {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
  }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.1rem; }
  .card, .service-card, .blog-post-teaser, .testimonial-card, .feature-item {
    padding: 14px 9px;
  }
}

/* --- GENERAL SPACING & WHITE SPACE --- */
section, .card, .feature-item, .service-card, .service-item, .testimonial-card, .stat-grid > div, .faq-item, .blog-post-teaser {
  margin-bottom: 20px;
}
section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* --- VISUAL MICRO-INTERACTIONS --- */
.card, .feature-item, .service-card, .blog-post-teaser, .testimonial-card, .faq-item {
  transition: box-shadow 0.19s, transform 0.12s;
}
.card:hover, .feature-item:hover, .service-card:hover, .blog-post-teaser:hover, .testimonial-card:hover, .faq-item:hover {
  box-shadow: 0 8px 32px 0 rgba(254, 215, 102, 0.18), 0 2px 14px 0 rgba(23, 76, 111, 0.13);
  transform: translateY(-5px) scale(1.025);
}

/* --- FORM ELEMENTS (newsletter, contact, etc) --- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: 1rem;
  border: 2px solid #174C6F;
  border-radius: 9px;
  margin-bottom: 14px;
  background: #F9F9F9;
  color: #174C6F;
  transition: border 0.17s, background 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #FED766;
  background: #fff9e7;
}
label {
  color: #174C6F;
  font-size: 1.02rem;
  margin-bottom: 7px;
  display: block;
}

/*--- Ensure enough contrast in testimonial/review ---*/
.testimonial-card {
  background: #fff !important;
  color: #174C6F !important;
}
.testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: #174C6F !important;
}

/* --- Hide hamburger nav on desktop --- */
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* --- Prevent content overlap & Ensure spacing --- */
.card, .feature-item, .service-card, .testimonial-card, .blog-post-teaser {
  margin-bottom: 20px;
  margin-right: 0;
}
.card-container, .service-cards, .service-list, .blog-list, .testimonial-slider, .testimonial-list, .stat-grid, .feature-grid, .client-logos {
  gap: 24px !important;
}

/* --- Hide mobile overlays by default --- */
.mobile-menu {
  display: flex;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

/* --- Utility: visually-hidden for accessibility --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
