/* RESET & NORMALIZE */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { height: 100%; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #17446E; text-decoration: none; transition: color 0.15s; }
a:hover, a:focus { text-decoration: underline; color: #156853; }
ul, ol { margin-left: 1.25em; margin-bottom: 1em; }
li { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(23,68,110,0.04); }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid #F4F5F7; font-size: 1rem; }
th { background: #F4F5F7; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* BRAND FONT */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  color: #17446E;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul li, ol li { font-size: 1rem; margin-bottom: 12px; }
strong, b { font-weight: 700; }
small { font-size: 0.925rem; color: #555; }

/* CONTAINER & CONTENT SPACING */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper, .text-section {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child { margin-bottom: 0; }

/* FLEX SPACING/ALIGNMENT CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,68,110,0.08);
  border-radius: 13px;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.26s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(23,68,110,0.14);
  transform: translateY(-2px) scale(1.01);
}
.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: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,68,110,0.06);
  margin-bottom: 24px;
  min-width: 0;
  position: relative;
  transition: box-shadow 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(23,68,110,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO/FEATURES CARDS/GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin: 24px 0 0 0;
}
.feature-grid > div {
  flex: 1 1 calc(25% - 18px);
  min-width: 210px;
  background: #fff;
  padding: 24px 18px;
  border-radius: 13px;
  box-shadow: 0 2px 11px rgba(21,104,83,.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.21s;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 26px rgba(21,104,83,.14);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img { height: 38px; width: auto; margin-bottom: 8px; filter: grayscale(.05); }

/* BUTTONS */
.button-primary,
.button-secondary {
  padding: 12px 28px;
  border: none;
  border-radius: 9px;
  font-size: 1.08rem;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 600;
  background: #17446E;
  color: #fff;
  box-shadow: 0 1px 8px rgba(23,68,110,0.07);
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 6px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.22s;
}
.button-primary:hover, .button-primary:focus {
  background: #156853;
  color: #fff;
  box-shadow: 0 4px 20px rgba(21,104,83,.16);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}
.button-secondary {
  background: #fff;
  color: #156853;
  border: 2px solid #156853;
}
.button-secondary:hover, .button-secondary:focus {
  background: #156853;
  color: #fff;
  border-color: #156853;
}

/* NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #F4F5F7;
  padding: 0;
  box-shadow: 0 4px 12px rgb(23, 68, 110, .02);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  padding: 6px 0;
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  font-weight: 400;
  position: relative;
  transition: color .15s;
}
header nav a:hover, header nav a:focus {
  color: #17446E;
  text-decoration: underline;
  outline: none;
}
header img[alt='RincaFioci Reparaturservice'] {
  height: 48px;
  width: auto;
}
header .button-primary {
  margin-left: auto;
  margin-right: 0;
  min-width: 148px;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #17446E;
  cursor: pointer;
  margin-left: auto;
  z-index: 99;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus { outline: 2px solid #17446E; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,32,49,0.9);
  z-index: 999;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  overflow-y: auto;
  transition: opacity 0.38s, transform 0.34s;
}
.mobile-menu.show {
  display: flex;
  animation: menuSlideIn 0.31s cubic-bezier(0.66,0,0.27,1) both;
}
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  margin: 36px 32px 18px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  color: #156853;
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-end;
  margin: 14px 44px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4F5F7;
  text-decoration: underline;
  outline: none;
}

/* HIDING/SHOWING NAV ON MOBILE */
@media (max-width: 1024px) {
  header nav, header .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN/LAYOUT UTILS */
main {
  min-height: 52vh;
  background: #fff;
  padding-top: 38px;
  padding-bottom: 44px;
}

.section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(23,68,110,0.025);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* CONTACT SHORT INFO */
.contact-short-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 12px;
}
.contact-short-info > div, .contact-short-info > span, .contact-short-info > a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  color: #17446E;
}
.contact-short-info img { height: 26px; width: auto; margin-right: 4px; filter: grayscale(.03); }

/* STAR RATING */
.star-rating { display: flex; align-items: center; gap: 4px; }
.star-rating img { height: 18px; width: auto; filter: grayscale(0) brightness(1.08); }

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  padding: 18px 24px;
  background: #f4f5f7;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(23,68,110,0.03);
  transition: box-shadow 0.17s;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 6px 24px rgba(21,68,83,0.10);
}
.faq-item h2 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #17446E;
}
.faq-item p { margin: 0; color: #222; font-size: 1rem; }

/* FOOTER */
footer {
  background: #fcfcfc;
  border-top: 1px solid #F4F5F7;
  padding: 60px 0 30px 0;
  margin-top: 22px;
}
footer .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.brand-footer {
  display: flex; align-items: center; gap: 30px;
  margin-bottom: 12px;
}
.brand-footer img { height: 38px; width: auto; }
.contact-short { display: flex; flex-direction: column; gap: 4px; }
.contact-short span { font-size: 1rem; color: #156853; display: flex; align-items: center; gap: 5px; }
.footer-nav {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin: 18px 0;
  justify-content: center;
}
.footer-nav a {
  font-size: 1rem;
  color: #888;
  transition: color 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #17446E;
  text-decoration: underline;
}
footer small { display: block; margin-top: 10px; color: #999; text-align: center; }

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #222;
  box-shadow: 0 -2px 32px rgba(23,68,110,0.10);
  border-top: 1px solid #F4F5F7;
  padding: 24px 30px 20px 24px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: cookieBannerEnter .42s cubic-bezier(0.6,0,0.3,1) both;
}
@keyframes cookieBannerEnter {
  from { opacity: 0; transform: translateY(100px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner strong { color: #17446E; }
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}
.cookie-banner .cookie-btn {
  padding: 9px 28px;
  font-size: 1.03rem;
  border-radius: 8px;
  border: none;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 600;
  background: #17446E;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, transform 0.15s;
}
.cookie-banner .cookie-btn.cookie-secondary {
  background: #fff;
  color: #17446E;
  border: 2px solid #17446E;
}
.cookie-banner .cookie-btn.cookie-tertiary {
  background: #fff;
  color: #156853;
  border: 2px solid #156853;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #156853;
  color: #fff;
  outline: 0;
  transform: scale(1.04);
}
.cookie-banner .cookie-btn.cookie-tertiary:hover, .cookie-banner .cookie-btn.cookie-tertiary:focus {
  background: #156853;
  color: #fff;
  border-color: #156853;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,32,49,0.57);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalOverlayIn .33s cubic-bezier(.74,0,.25,1) both;
}
@keyframes cookieModalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 6px 44px rgba(23,68,110,0.18);
  max-width: 420px;
  width: 96%;
  padding: 36px 30px 30px 30px;
  animation: cookieModalIn .37s cubic-bezier(.68,0,.29,1) both;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 13px;
  color: #17446E;
}
.cookie-category {
  margin-bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-category label {
  font-size: 1.04rem;
  color: #222;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 26px;
}
.cookie-switch input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #F4F5F7;
  border-radius: 26px;
  transition: background 0.22s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: #17446E;
}
.cookie-switch-slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  border-radius: 50%;
  left: 3px; top: 3px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(23,68,110,0.08);
  transition: transform 0.22s, background 0.16s;
}
.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(18px);
  background: #156853;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 1.35rem;
  color: #17446E;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.17s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #156853;
  outline: none;
}
.cookie-essential {
  color: #156853;
  font-weight: 600;
  opacity: 1;
}

/* RESPONSIVE STYLES */
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .feature-grid > div { flex: 1 1 45%; min-width: 155px; }
  .content-grid { gap: 14px; }
}
@media (max-width: 768px) {
  main { padding-top: 24px; padding-bottom: 30px; }
  .container { padding: 0 8px; }
  .section { padding: 22px 4px; margin-bottom: 36px; }
  .content-wrapper, .text-section { gap: 15px; }
  .feature-grid { gap: 13px; }
  .feature-grid > div { flex: 1 1 96%; min-width: 90%; }
  .testimonial-card { padding: 13px; gap: 11px; }
  .contact-short-info { gap: 10px; font-size: 0.98rem; }
  .text-image-section { flex-direction: column; gap: 14px; }
  header .container { flex-direction: row; gap: 13px; padding: 8px 9px; }
  .brand-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-nav { gap: 15px; margin: 8px 0; }
  footer { padding: 36px 0 17px 0; }
  .cookie-banner { padding: 16px 11px 13px 10px; font-size: 0.99rem; gap: 11px; }
}

/* TESTIMONIALS CARDS EMPHASIS FOR CONTRAST */
.testimonial-card {
  background: #fff;
  color: #222;
  border: 1px solid #F4F5F7;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #222;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #17446E;
}

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

/* HTML elements default spacing */
p, ul, ol { margin-bottom: 16px; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }

/* Card spacing pattern for any .card-container or .content-grid */
.card-container > * { margin-bottom: 0; }
.content-grid > * { margin-bottom: 0; }

/* Remove last child spacing in repeated sections */
.section > .container > .content-wrapper > *:last-child {
  margin-bottom: 0 !important;
}

/* Micro-interactions (fade/scale) */
.button-primary, .button-secondary, .cookie-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.18s;
}
.card, .feature-grid > div, .testimonial-card, .faq-item {
  transition: box-shadow 0.25s, transform 0.19s;
}

/* Remove outline for mouse, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Hide scroll on mobile menu open */
.mobile-menu.show {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Miscellaneous improvements for minimal look */
hr { border: none; border-top: 1px solid #F4F5F7; margin: 32px 0; }

/* Ensure no content overlap */
.card, .feature-grid > div, .testimonial-card, .faq-item {
  min-width: 0;
  word-wrap: break-word;
}

/* END */